Browse Source

完善存放地点变更--重复提交

master
yunuo970428 3 years ago
parent
commit
d437f8b3e9
  1. 22
      anrui-scm/anrui-scm-ui/src/views/supplychain/cunfangdidianbiangeng/cunfangdidianbiangengAdd.vue
  2. 19
      anrui-scm/anrui-scm-ui/src/views/workFlow/cunfangdidianbiangengFlow/cunfangdidianbiangengEdit.vue

22
anrui-scm/anrui-scm-ui/src/views/supplychain/cunfangdidianbiangeng/cunfangdidianbiangengAdd.vue

@ -3,9 +3,9 @@
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" @click="handleCreate()">保存</el-button>
<el-button type="primary" size="small" @click="handleSubmit()">提交</el-button>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleCreate()">保存</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSubmit()">提交</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
@ -194,8 +194,6 @@ export default {
return {
viewTitle: '',
// ---------
FormLoading: false,
listLoading: false,
vinNo_list: [], //
warehouwarehouse_list: [], //
staff_list: [],
@ -250,7 +248,8 @@ export default {
location: [{ required: true, message: '现存放地点不能为空', trigger: 'change' }],
targetLocation: [{ required: true, message: '目标存放地点不能为空', trigger: 'change' }],
staffName: [{ required: true, message: '现存放地点负责人不能为空', trigger: 'change' }]
}
},
submitdisabled: false //
}
},
methods: {
@ -462,6 +461,7 @@ export default {
policyImage: [],
scmVehicleGressionVehs: []
}
this.submitdisabled = false
this.vinNo_list = []
this.$emit('doback')
},
@ -484,13 +484,14 @@ export default {
}
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.FormLoading = true
this.submitdisabled = true
//
saveCarTransferInfo(this.temp).then((response) => {
this.FormLoading = false
if (response.success) {
this.handleReturn('true')
}
}).catch(() => {
this.submitdisabled = false
})
}
})
@ -521,19 +522,18 @@ export default {
}
this.$refs['dataForm'].validate(valid => {
if (valid) {
// this.submitdisabled = true
this.$confirm('是否确定提交该业务', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.submitdisabled = true
submitCarTransfer(this.temp).then(resp => {
// this.submitdisabled = false
if (resp.success) {
this.handleReturn('true')
}
}).catch(() => {
// this.submitdisabled = false
this.submitdisabled = false
})
})
} else {

19
anrui-scm/anrui-scm-ui/src/views/workFlow/cunfangdidianbiangengFlow/cunfangdidianbiangengEdit.vue

@ -3,8 +3,8 @@
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" @click="handleCreate()">保存</el-button>
<el-button type="primary" size="small" @click="handleSubmit()">提交</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleCreate()">保存</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSubmit()">提交</el-button>
</div>
</div>
<div class="">
@ -193,8 +193,6 @@ export default {
return {
viewTitle: '',
// ---------
FormLoading: false,
listLoading: false,
vinNo_list: [], //
warehouwarehouse_list: [], //
staff_list: [],
@ -250,7 +248,8 @@ export default {
location: [{ required: true, message: '现存放地点不能为空', trigger: 'change' }],
targetLocation: [{ required: true, message: '目标存放地点不能为空', trigger: 'change' }],
staffName: [{ required: true, message: '现存放地点负责人不能为空', trigger: 'change' }]
}
},
submitdisabled: false
}
},
mounted() {
@ -470,10 +469,9 @@ export default {
}
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.FormLoading = true
this.submitdisabled = true
//
saveCarTransferInfo(this.temp).then((response) => {
this.FormLoading = false
if (response.code === '200') {
this.dialogFormVisible = false
// ()
@ -485,6 +483,8 @@ export default {
}
}, '*')
}
}).catch(() => {
this.submitdisabled = false
})
}
})
@ -515,14 +515,13 @@ export default {
}
this.$refs['dataForm'].validate(valid => {
if (valid) {
// this.submitdisabled = true
this.submitdisabled = true
this.$confirm('是否确定提交该业务', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
submitCarTransfer(this.temp).then(resp => {
// this.submitdisabled = false
if (resp.success) {
// ()
window.parent.postMessage({
@ -534,7 +533,7 @@ export default {
}, '*')
}
}).catch(() => {
// this.submitdisabled = false
this.submitdisabled = false
})
})
} else {

Loading…
Cancel
Save