|
|
@@ -76,7 +76,8 @@
|
|
|
<template v-slot:requiredFormingNum="{ row, $index }">
|
|
|
|
|
|
<el-input v-model.number="row.requiredFormingNum" size="small" type="number" style="width: 100%"
|
|
|
- placeholder="输入数量" @input="tableHandleKeyUp(row, 'sum')"></el-input>
|
|
|
+ placeholder="输入要求生产数量" @input="tableHandleKeyUp(row, 'procut')"></el-input>
|
|
|
+ <!-- placeholder="输入要求生产数量" @input="tableHandleKeyUp(row, 'sum')"></el-input> -->
|
|
|
|
|
|
</template>
|
|
|
|
|
|
@@ -845,12 +846,14 @@ export default {
|
|
|
}
|
|
|
|
|
|
console.log(this.form);
|
|
|
+ let flag = true;
|
|
|
this.form.productInfoList.forEach(v => {
|
|
|
if (!v.produceRoutingId) {
|
|
|
+ flag = false
|
|
|
return this.$message.error('请选择工艺路线');
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+ if(!flag) return
|
|
|
if (!this.form.id) {
|
|
|
if (this.form.productInfoList.length) {
|
|
|
this.form.productInfoList.map((item, index) => {
|
|
|
@@ -865,7 +868,7 @@ export default {
|
|
|
this.form.timeDimensionPlanType = this.type;
|
|
|
await this.getPlanCode();
|
|
|
this.loading = true;
|
|
|
-
|
|
|
+
|
|
|
temporaryPlanSave(this.form)
|
|
|
.then((res) => {
|
|
|
this.$message.success('新增成功!');
|
|
|
@@ -943,7 +946,10 @@ export default {
|
|
|
tableHandleKeyUp(row, name) {
|
|
|
// return
|
|
|
// , index, e, name
|
|
|
-
|
|
|
+ if(name == 'procut'){
|
|
|
+ let total = row.productUnitWeight * row.requiredFormingNum;
|
|
|
+ this.$set(row,'productWeight',total)
|
|
|
+ }
|
|
|
if (row.specification && this.clientEnvironmentId == 4) {
|
|
|
|
|
|
let modelArr = row.specification.split('*');
|