|
@@ -732,34 +732,39 @@
|
|
|
confirmText: '确定',
|
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
|
+ uni.showLoading({
|
|
|
+ title: "审核中",
|
|
|
+ mask:true
|
|
|
+ })
|
|
|
console.log(that.OutList,that.EnterList)
|
|
|
that.OutList.inOutFlag = 1
|
|
|
that.EnterList.inOutFlag = 2
|
|
|
- // if (that.OutList.taskTypeKey == 1) {
|
|
|
- // that.requestadd(that.OutList)
|
|
|
- // } else if (that.EnterList.taskTypeKey == 2) {
|
|
|
- // that.requestadd(that.EnterList)
|
|
|
- // } else if (
|
|
|
- // that.OutList.taskTypeKey == 3 ||
|
|
|
- // that.OutList.taskTypeKey == 4
|
|
|
- // ) {
|
|
|
- // that.requestadd(that.OutList, 'repetition')
|
|
|
- // if (!that.deletetask) {
|
|
|
- // that.requestadd(that.EnterList, 'repetition')
|
|
|
- // }
|
|
|
- // }
|
|
|
- // if (that.retreatList.taskTypeKey == 1 || that.retreatList.taskTypeKey == 2) {
|
|
|
- // that.requestadd(that.retreatList)
|
|
|
- // } else if (that.retreatList.taskTypeKey == 3 || that.retreatList.taskTypeKey ==
|
|
|
- // 4) {
|
|
|
- // that.requestadd(that.retreatList, 'repetition')
|
|
|
- // }
|
|
|
+ if (that.OutList.taskTypeKey == 1) {
|
|
|
+ that.requestadd(that.OutList)
|
|
|
+ } else if (that.EnterList.taskTypeKey == 2) {
|
|
|
+ that.requestadd(that.EnterList)
|
|
|
+ } else if (
|
|
|
+ that.OutList.taskTypeKey == 3 ||
|
|
|
+ that.OutList.taskTypeKey == 4
|
|
|
+ ) {
|
|
|
+ that.requestadd(that.OutList, 'repetition')
|
|
|
+ if (!that.deletetask) {
|
|
|
+ that.requestadd(that.EnterList, 'repetition')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (that.retreatList.taskTypeKey == 1 || that.retreatList.taskTypeKey == 2) {
|
|
|
+ that.requestadd(that.retreatList)
|
|
|
+ } else if (that.retreatList.taskTypeKey == 3 || that.retreatList.taskTypeKey ==
|
|
|
+ 4) {
|
|
|
+ that.requestadd(that.retreatList, 'repetition')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
rejectSubmit() {
|
|
|
+
|
|
|
// (1出库2入库3移库4退库并出库)
|
|
|
if (!this.auditMind) {
|
|
|
this.$api.msg('驳回原因不能为空!')
|
|
@@ -772,6 +777,10 @@
|
|
|
confirmText: '确定',
|
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
|
+ uni.showLoading({
|
|
|
+ title: "审核中",
|
|
|
+ mask:true
|
|
|
+ })
|
|
|
if (that.OutList.taskTypeKey == 1) {
|
|
|
that.requestaudit(that.OutList)
|
|
|
} else if (that.OutList.taskTypeKey == 2) {
|
|
@@ -808,14 +817,12 @@
|
|
|
}
|
|
|
},
|
|
|
requestadd(list, status) {
|
|
|
+ this.show1=false
|
|
|
let that = this
|
|
|
uni.getStorage({
|
|
|
key: 'pcUserInfo',
|
|
|
success(e) {
|
|
|
list.compId = e.data.compId //这就是你想要取的token
|
|
|
- uni.showLoading({
|
|
|
- title: "审核中"
|
|
|
- })
|
|
|
that.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(
|
|
|
res => {
|
|
|
if (res.data.code == 200) {
|
|
@@ -830,29 +837,34 @@
|
|
|
needReapply: false
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
+
|
|
|
that.$api.msg('审核成功!')
|
|
|
that.count++
|
|
|
if (that.everyCheck) {
|
|
|
helper.setAudit(that.list)
|
|
|
}
|
|
|
} else {
|
|
|
+ that.show1=true
|
|
|
that.$api.msg('审核失败!')
|
|
|
}
|
|
|
if (list.taskTypeKey == '3' || list.taskTypeKey == '4') {
|
|
|
if (that.count == 2) {
|
|
|
setTimeout(function() {
|
|
|
+ console.log(11111)
|
|
|
uni.hideLoading()
|
|
|
uni.navigateBack()
|
|
|
}, 1000);
|
|
|
}
|
|
|
} else {
|
|
|
setTimeout(function() {
|
|
|
+ console.log(2222222)
|
|
|
uni.hideLoading()
|
|
|
uni.navigateBack()
|
|
|
}, 1000);
|
|
|
}
|
|
|
|
|
|
}).catch(res => {
|
|
|
+ console.log(33333)
|
|
|
uni.hideLoading()
|
|
|
if (res.message) {
|
|
|
uni.showToast({
|
|
@@ -895,9 +907,6 @@
|
|
|
},
|
|
|
requestaudit(list, status) {
|
|
|
|
|
|
- uni.showLoading({
|
|
|
- title: "审核中"
|
|
|
- })
|
|
|
let pcUserInfo = uni.getStorageSync('pcUserInfo')
|
|
|
if(pcUserInfo){
|
|
|
list.compId = pcUserInfo.compId
|