更新
This commit is contained in:
@@ -235,7 +235,7 @@
|
||||
<el-dialog v-el-drag-dialog :title="title2" :visible.sync="dialogVisible2" center style="min-height: 300px" width="350px">
|
||||
<el-form ref="form2" :model="form2" :rules="rules2" label-position="right" label-width="80px">
|
||||
<el-form-item label="计划名称" prop="计划名称">
|
||||
<el-input v-model="form2.离线采购计划名称" size="small"/>
|
||||
<el-input v-model="form2.计划名称" size="small"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="供应商" prop="supplierNameValue">
|
||||
<el-select v-model="form2.supplierNameValue" placeholder="供应商" size="small" filterable>
|
||||
@@ -302,12 +302,12 @@ export default {
|
||||
计划完成日期: '',
|
||||
采购单名称: '',
|
||||
form2: {
|
||||
离线采购计划名称: '',
|
||||
计划名称: '',
|
||||
supplierNameValue: '',
|
||||
离线采购计划流水号: ''
|
||||
},
|
||||
rules2: {
|
||||
计划名称: [{ required: true, message: '请填写离线采购计划名称' }],
|
||||
计划名称: [{ required: true, message: '请填写计划名称' }],
|
||||
supplierNameValue: [{ required: true, message: '请选择供应商' }]
|
||||
},
|
||||
form3: {
|
||||
@@ -509,7 +509,7 @@ export default {
|
||||
if (this.$refs['form2'] !== undefined) {
|
||||
this.$refs['form2'].resetFields()
|
||||
}
|
||||
this.form2.离线采购计划名称 = ''
|
||||
this.form2.计划名称 = ''
|
||||
this.form2.supplierNameValue = ''
|
||||
this.title2 = '创建外购备料计划'
|
||||
this.dialogVisible2 = true
|
||||
@@ -517,7 +517,7 @@ export default {
|
||||
submitAddPurchaseOrder() { // 新建采购单
|
||||
this.$refs['form2'].validate((valid) => {
|
||||
if (valid) {
|
||||
addPurchaseOrder(this.form2.离线采购计划名称, this.form2.supplierNameValue).then(response => {
|
||||
addPurchaseOrder(this.form2.计划名称, this.form2.supplierNameValue).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('新建离线外购备料成功')
|
||||
this.searchTable()
|
||||
@@ -535,14 +535,14 @@ export default {
|
||||
}
|
||||
this.title2 = '编辑外购备料计划'
|
||||
this.form2.离线采购计划流水号 = row.离线采购计划流水号
|
||||
this.form2.离线采购计划名称 = row.离线采购计划名称
|
||||
this.form2.计划名称 = row.离线采购计划名称
|
||||
this.form2.supplierNameValue = row.供应商流水号
|
||||
this.dialogVisible2 = true
|
||||
},
|
||||
submitEditPurchaseOrder() {
|
||||
this.$refs['form2'].validate((valid) => {
|
||||
if (valid) {
|
||||
editPurchaseOrder(this.form2.离线采购计划流水号, this.form2.离线采购计划名称, this.form2.supplierNameValue).then(response => {
|
||||
editPurchaseOrder(this.form2.离线采购计划流水号, this.form2.计划名称, this.form2.supplierNameValue).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('修改离线外购备料成功')
|
||||
this.searchTable()
|
||||
|
||||
Reference in New Issue
Block a user