|  |  | 
 |  |  |       </el-col> | 
 |  |  |       <el-col :span="12"> | 
 |  |  |         <el-form-item label="数量" prop="number"> | 
 |  |  |           <el-input-number :step="0.01" :min="0" style="width: 100%" | 
 |  |  |           <el-input-number :min="1" style="width: 100%" | 
 |  |  |             v-model="form.number" | 
 |  |  |                                                      disabled | 
 |  |  |             placeholder="请输入数量" | 
 |  |  |             @change="mathNum" | 
 |  |  |           /> | 
 |  |  | 
 |  |  |   storageLocation: undefined, // 存放位置 | 
 |  |  |   enableDepreciation: false, // 是否启用折旧 | 
 |  |  |   unit: undefined, // 单位 | 
 |  |  |   number: undefined, // 数量 | 
 |  |  |   number: 1, // 数量 | 
 |  |  |   taxIncludingPriceUnit: undefined, // 含税单价 | 
 |  |  |   taxIncludingPriceTotal: undefined, // 含税总价 | 
 |  |  |   taxRate: undefined, // 税率 | 
 |  |  | 
 |  |  |     form.storageLocation = data.storageLocation; | 
 |  |  |     form.enableDepreciation = data.enableDepreciation; | 
 |  |  |     form.unit = data.unit; | 
 |  |  |     form.number = data.number; | 
 |  |  |     form.number = 1; | 
 |  |  |     form.taxIncludingPriceUnit = data.taxIncludingPriceUnit; | 
 |  |  |     form.taxIncludingPriceTotal = data.taxIncludingPriceTotal; | 
 |  |  |     form.taxRate = data.taxRate; | 
 |  |  | 
 |  |  | const mathNum = () => { | 
 |  |  |   if (!form.taxIncludingPriceUnit) { | 
 |  |  |     ElMessage.error("请输入单价"); | 
 |  |  |     return; | 
 |  |  |   } | 
 |  |  |   if (!form.number) { | 
 |  |  |     ElMessage.error("请输入数量"); | 
 |  |  |     return; | 
 |  |  |   } | 
 |  |  |   form.taxIncludingPriceTotal = calculateTaxIncludeTotalPrice( |