Commit 96c73d8b authored by 15008242619's avatar 15008242619 Committed by jingnan

退库单退库优化(暂不部署正式)

parent 45491d8f
......@@ -154,6 +154,7 @@ export default {
} else if (isTkdBack === this.selectionRows.length) {
post('/InventoryRequest/purchaseApply/submit?applyIds=' + this.selectionRows.map(item => Number(item.id))).then(res => {
this.$utils.showMessageSuccess('提交成功')
this.$refs.applyTable.$refs.asCom.getData()
}).catch(() => {
this.$utils.showMessageWarning('出现异常,提交失败')
}).finally(() => {
......@@ -174,6 +175,7 @@ export default {
}
post('/InStorageRequestItem/creator/apply?userIds=' + this.form.userIds, ids).then(res => {
this.$utils.showMessageSuccess('提交成功')
this.$refs.applyTable.$refs.asCom.getData()
}).catch(() => {
this.$utils.showMessageWrong('出现异常,提交失败')
}).finally(() => {
......
......@@ -16,7 +16,7 @@
<dee-dialog
title="发起退库申请"
:dialog-visible="dialogVisible"
>
>
<div style="margin-bottom: 20px;font-size: 14px;font-weight: bolder;">确认提交吗?</div>
<div style="text-align: center;">
<el-button type="primary" @click="confirm">确 定</el-button>
......@@ -85,7 +85,7 @@ export default {
}
},
created() {
let httpParams = {
const httpParams = {
"pageFrom": 1,
"pageSize": 9999,
"searchItems": {
......@@ -161,6 +161,7 @@ export default {
} else if (isTkdBack === this.selectionRows.length) {
post('/DxWorkflowTask/apply/pass', this.selectionRows.map(item => item.processTaskId)).then(res => {
this.$utils.showMessageSuccess('提交成功')
this.$refs.applyTable.$refs.asCom.getData()
}).catch(err => {
this.$utils.showMessageWarning('出现异常,提交失败')
}).finally(()=>{
......@@ -182,6 +183,7 @@ export default {
}
post('/InStorageRequestItem/creator/applyByItems?userIds=' + this.form.userIds, ids).then(res => {
this.$utils.showMessageSuccess('提交成功')
this.$refs.applyTable.$refs.asCom.getData()
}).catch(err => {
this.$utils.showMessageWarning('出现异常,提交失败')
}).finally(()=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment