|
@@ -319,115 +319,14 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- pjPicker(e) {
|
|
|
- this.OutList.grade = this.pjList[e[0]].type
|
|
|
- this.OutList.gradeKey = e[0] + 1
|
|
|
- },
|
|
|
- pjPicker1(e) {
|
|
|
- this.EnterList.grade = this.pjList[e[0]].type
|
|
|
- this.EnterList.gradeKey = e[0] + 1
|
|
|
- },
|
|
|
- passSubmit() {
|
|
|
- this.OutList.inOutFlag = 1
|
|
|
- this.EnterList.inOutFlag = 2
|
|
|
- if (this.OutList.taskTypeKey == 1) {
|
|
|
- this.requestadd(this.OutList)
|
|
|
- } else if (this.EnterList.taskTypeKey == 2) {
|
|
|
- this.requestadd(this.EnterList)
|
|
|
- } else if (
|
|
|
- this.OutList.taskTypeKey == 3 ||
|
|
|
- this.OutList.taskTypeKey == 4
|
|
|
- ) {
|
|
|
- this.requestadd(this.OutList, 'repetition')
|
|
|
- if (!this.deletetask) {
|
|
|
- this.requestadd(this.EnterList, 'repetition')
|
|
|
- }
|
|
|
- }
|
|
|
- if(this.retreatList.taskTypeKey == 1 || this.retreatList.taskTypeKey == 2){
|
|
|
- this.requestadd(this.retreatList)
|
|
|
- }else if(this.retreatList.taskTypeKey == 3 || this.retreatList.taskTypeKey == 4){
|
|
|
- this.requestadd(this.retreatList, 'repetition')
|
|
|
- }
|
|
|
- },
|
|
|
- rejectSubmit() {
|
|
|
- // (1出库2入库3移库4退库并出库)taskTypeKey
|
|
|
- if (!this.rejectInfo) {
|
|
|
- this.$api.msg('驳回原因不能为空!')
|
|
|
- } else {
|
|
|
- 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.OutList.taskTypeKey == 3 ||
|
|
|
- this.OutList.taskTypeKey == 4
|
|
|
- ) {
|
|
|
- this.requestaudit(this.OutList, 'repetition')
|
|
|
- if (!this.deletetask) {
|
|
|
- this.requestaudit(this.OutList, 'repetition')
|
|
|
- }
|
|
|
- }
|
|
|
- if(this.EnterList){
|
|
|
- if(this.EnterList.taskTypeKey == 1 || this.EnterList.taskTypeKey == 2){
|
|
|
- this.requestaudit(this.EnterList)
|
|
|
- }else if(this.EnterList.taskTypeKey == 3 || this.EnterList.taskTypeKey == 4){
|
|
|
- this.requestaudit(this.EnterList, 'repetition')
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if(this.retreatList){
|
|
|
- if(this.retreatList.taskTypeKey == 1 || this.retreatList.taskTypeKey == 2){
|
|
|
- this.requestaudit(this.retreatList)
|
|
|
- }else if(this.retreatList.taskTypeKey == 3 || this.retreatList.taskTypeKey == 4){
|
|
|
- this.requestaudit(this.retreatList, 'repetition')
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- requestadd(list, status) {
|
|
|
-
|
|
|
- list.compId = sessionStorage.getItem('ws-pf_compId')
|
|
|
- // list.publisher = this.userInfo.userName
|
|
|
- this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(res => {
|
|
|
- if (res.data.code == 200) {
|
|
|
- this.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
- taskId: list.taskId,
|
|
|
- approved: true,
|
|
|
- auditMind: '34',
|
|
|
- needReapply: false
|
|
|
- }).then(res => {
|
|
|
- if (res.data.code == 200) {
|
|
|
- this.$api.msg('审核成功!')
|
|
|
- setTimeout(function() {
|
|
|
- uni.navigateBack()
|
|
|
- }, 1000);
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- requestaudit(list, status) {
|
|
|
- list.compId = '2710b21efc1e4393930c5dc800010dc4'
|
|
|
- // list.publisher = this.userInfo.userName
|
|
|
- this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(res => {
|
|
|
- if (res.data.code == 200) {
|
|
|
- this.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
- taskId: list.taskId,
|
|
|
- approved: false,
|
|
|
- auditMind: this.rejectInfo,
|
|
|
- needReapply: true
|
|
|
- }).then(res => {
|
|
|
- if (res.data.code == 200) {
|
|
|
- this.$api.msg('驳回成功!')
|
|
|
- setTimeout(function() {
|
|
|
- uni.navigateBack()
|
|
|
- }, 1000);
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+ // pjPicker(e) {
|
|
|
+ // this.OutList.grade = this.pjList[e[0]].type
|
|
|
+ // this.OutList.gradeKey = e[0] + 1
|
|
|
+ // },
|
|
|
+ // pjPicker1(e) {
|
|
|
+ // this.EnterList.grade = this.pjList[e[0]].type
|
|
|
+ // this.EnterList.gradeKey = e[0] + 1
|
|
|
+ // },
|
|
|
fanHui(){
|
|
|
uni.navigateBack()
|
|
|
}
|