|
@@ -161,7 +161,7 @@
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="总数量">
|
|
|
- <el-input clearable :disabled="sonDisable" v-model="basicForm.qty" type="number" min="0" size="mini" style="width: 200px"/>
|
|
|
+ <el-input disabled v-model="basicForm.qty" type="number" min="0" size="mini" style="width: 200px"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
@@ -1449,6 +1449,7 @@ export default {
|
|
|
currencyName: "",
|
|
|
rate: 1,
|
|
|
onRouteAffilliation: "",
|
|
|
+ oaId: '',
|
|
|
qty: "",
|
|
|
accountPath: "",
|
|
|
customer: "",
|
|
@@ -1574,12 +1575,22 @@ export default {
|
|
|
item.storageAllocationName = null;
|
|
|
});
|
|
|
},
|
|
|
- // 输入数量或者主数量同步改变
|
|
|
+ // 输入数量或者主数量同步改变,计算基本信息总数量
|
|
|
getZSL(scope) {
|
|
|
scope.row.qty = scope.row.mainQty;
|
|
|
+ let sum = 0
|
|
|
+ this.materialInfo.forEach(item => {
|
|
|
+ sum += Number(item.qty)
|
|
|
+ this.basicForm.qty = sum
|
|
|
+ })
|
|
|
},
|
|
|
getSL(scope) {
|
|
|
scope.row.mainQty = scope.row.qty;
|
|
|
+ let sum = 0
|
|
|
+ this.materialInfo.forEach(item => {
|
|
|
+ sum += Number(item.qty)
|
|
|
+ this.basicForm.qty = sum
|
|
|
+ })
|
|
|
},
|
|
|
copy() {
|
|
|
// await this.getDetails(this.row)
|