|
@@ -292,7 +292,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
- <el-form-item label="最小起定量" prop="minOrderQty">
|
|
|
|
|
|
+ <el-form-item label="最小起订量" prop="minOrderQty">
|
|
<el-input type="number" min="0" :disabled="disable" v-model="basicForm.minOrderQty"></el-input>
|
|
<el-input type="number" min="0" :disabled="disable" v-model="basicForm.minOrderQty"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -872,7 +872,7 @@
|
|
storageCondition: [{required: true, message: '请选择存储条件', trigger: 'change'}],
|
|
storageCondition: [{required: true, message: '请选择存储条件', trigger: 'change'}],
|
|
materialRate: [{required: true, message: '请选择物料税类', trigger: 'change'}],
|
|
materialRate: [{required: true, message: '请选择物料税类', trigger: 'change'}],
|
|
deliveryPeriod: [{required: true, message: '请输入交货周期', trigger: 'blur'}],
|
|
deliveryPeriod: [{required: true, message: '请输入交货周期', trigger: 'blur'}],
|
|
- minOrderQty: [{required: true, message: '请输入最小起定量', trigger: 'blur'}],
|
|
|
|
|
|
+ minOrderQty: [{required: true, message: '请输入最小起订量', trigger: 'blur'}],
|
|
minPackQty: [{required: true, message: '请输入最小包装量', trigger: 'blur'}],
|
|
minPackQty: [{required: true, message: '请输入最小包装量', trigger: 'blur'}],
|
|
puPersonnelId: [{required: true, message: '请选择采购员', trigger: 'change'}],
|
|
puPersonnelId: [{required: true, message: '请选择采购员', trigger: 'change'}],
|
|
minBatchQty: [{required: true, message: '请输入最小批量', trigger: 'blur'}],
|
|
minBatchQty: [{required: true, message: '请输入最小批量', trigger: 'blur'}],
|
|
@@ -1362,7 +1362,7 @@
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
|
|
- Promise.all([form1, form2]).then(() => {
|
|
|
|
|
|
+ // Promise.all([form1, form2]).then(() => {
|
|
if (this.basicForm.isMedicine == '0' && this.sysMaterialMedcineItemApply.length == 0) {
|
|
if (this.basicForm.isMedicine == '0' && this.sysMaterialMedcineItemApply.length == 0) {
|
|
this.$modal.notifyWarning("医药物料需要维护物料类别!");
|
|
this.$modal.notifyWarning("医药物料需要维护物料类别!");
|
|
|
|
|
|
@@ -1381,7 +1381,7 @@
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ // })
|
|
} else {
|
|
} else {
|
|
|
|
|
|
// alert('保存传status:0')
|
|
// alert('保存传status:0')
|
|
@@ -1395,6 +1395,7 @@
|
|
sparams.sysMaterialMedcineItemApply = this.sysMaterialMedcineItemApply;
|
|
sparams.sysMaterialMedcineItemApply = this.sysMaterialMedcineItemApply;
|
|
|
|
|
|
console.log('保存参数', sparams)
|
|
console.log('保存参数', sparams)
|
|
|
|
+
|
|
const form1 = new Promise((resolve, reject) => {
|
|
const form1 = new Promise((resolve, reject) => {
|
|
this.$refs['basic'].validate(valid => {
|
|
this.$refs['basic'].validate(valid => {
|
|
if (valid) resolve()
|
|
if (valid) resolve()
|
|
@@ -1405,7 +1406,8 @@
|
|
if (valid) resolve()
|
|
if (valid) resolve()
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- Promise.all([form1, form2]).then(() => {
|
|
|
|
|
|
+
|
|
|
|
+ // Promise.all([form1, form2]).then(() => {
|
|
if (this.basicForm.isMedicine == '0' && this.sysMaterialMedcineItemApply.length == 0) {
|
|
if (this.basicForm.isMedicine == '0' && this.sysMaterialMedcineItemApply.length == 0) {
|
|
this.$modal.notifyWarning("医药物料需要维护物料类别!");
|
|
this.$modal.notifyWarning("医药物料需要维护物料类别!");
|
|
} else {
|
|
} else {
|
|
@@ -1423,7 +1425,7 @@
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ // })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
submit() {
|
|
submit() {
|
|
@@ -1445,7 +1447,8 @@
|
|
if (valid) resolve()
|
|
if (valid) resolve()
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- Promise.all([form1, form2]).then(() => {
|
|
|
|
|
|
+
|
|
|
|
+ // Promise.all([form1, form2]).then(() => {
|
|
// 提交时候要维护物料类别
|
|
// 提交时候要维护物料类别
|
|
if (this.sysMaterialMedcineItemApply.length !== 0) {
|
|
if (this.sysMaterialMedcineItemApply.length !== 0) {
|
|
this.$modal.loading("提交中...");
|
|
this.$modal.loading("提交中...");
|
|
@@ -1467,7 +1470,7 @@
|
|
type: 'warning'
|
|
type: 'warning'
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ // })
|
|
},
|
|
},
|
|
back() {
|
|
back() {
|
|
this.$emit('jugislist', true)
|
|
this.$emit('jugislist', true)
|