|
@@ -136,7 +136,6 @@
|
|
|
label-width="170">
|
|
|
<u-input v-model="OutList.binNumber" input-align="right" placeholder="未指定" />
|
|
|
</u-form-item>
|
|
|
-
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
@@ -333,20 +332,22 @@
|
|
|
}
|
|
|
},
|
|
|
rejectSubmit() {
|
|
|
+ // (1出库2入库3移库4退库并出库)
|
|
|
if (!this.rejectInfo) {
|
|
|
this.$api.msg('驳回原因不能为空!')
|
|
|
} else {
|
|
|
- if (this.EnterList.taskTypeKey == 1) {
|
|
|
- this.requestaudit(this.EnterList)
|
|
|
- } else if (this.EnterList.taskTypeKey == 2) {
|
|
|
- this.requestaudit(this.EnterList)
|
|
|
+ this.show1 = false
|
|
|
+ if (this.OutList.taskTypeKey == 1) {
|
|
|
+ this.requestaudit(this.OutList)
|
|
|
+ } else if (this.OutList.taskTypeKey == 2) {
|
|
|
+ this.requestaudit(this.OutList)
|
|
|
} else if (
|
|
|
- this.EnterList.taskTypeKey == 3 ||
|
|
|
- this.EnterList.taskTypeKey == 4
|
|
|
+ this.OutList.taskTypeKey == 3 ||
|
|
|
+ this.OutList.taskTypeKey == 4
|
|
|
) {
|
|
|
- this.requestaudit(this.EnterList, 'repetition')
|
|
|
+ this.requestaudit(this.OutList, 'repetition')
|
|
|
if (!this.deletetask) {
|
|
|
- this.requestaudit(this.EnterList, 'repetition')
|
|
|
+ this.requestaudit(this.OutList, 'repetition')
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -356,7 +357,7 @@
|
|
|
list.publisher = this.userInfo.userName
|
|
|
this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
- this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', {
|
|
|
+ this.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
taskId: list.taskId,
|
|
|
approved: true,
|
|
|
auditMind: '34',
|
|
@@ -364,6 +365,9 @@
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.$api.msg('审核成功!')
|
|
|
+ this.setTimeout(function() {
|
|
|
+ uni.navigateBack()
|
|
|
+ }, 1000);
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -374,7 +378,7 @@
|
|
|
list.publisher = this.userInfo.userName
|
|
|
this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
- this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', {
|
|
|
+ this.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
taskId: list.taskId,
|
|
|
approved: false,
|
|
|
auditMind: this.rejectInfo,
|
|
@@ -382,6 +386,9 @@
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.$api.msg('驳回成功!')
|
|
|
+ this.setTimeout(function() {
|
|
|
+ uni.navigateBack()
|
|
|
+ }, 1000);
|
|
|
}
|
|
|
})
|
|
|
}
|