|
@@ -102,7 +102,14 @@
|
|
|
if (gw.length > 0) {
|
|
|
this.auditForm = gw[0]
|
|
|
}
|
|
|
- if (role == '办公室主任') this.isoffice = true
|
|
|
+ if (role == '办公室主任') {
|
|
|
+ this.isoffice = true
|
|
|
+ let gw1 = data.filter(item => {
|
|
|
+ return item.which == 0
|
|
|
+ })
|
|
|
+ this.auditForm = gw1[0]
|
|
|
+ console.log("gwForm",this.gwForm);
|
|
|
+ }
|
|
|
if (role == '局领导' && gw.length > 0) this.isleader = true
|
|
|
if (role == '科室负责人' && gw.length > 0) this.isundertake = true
|
|
|
})
|
|
@@ -140,7 +147,7 @@
|
|
|
createTruename: '',
|
|
|
nextTruename: '',
|
|
|
nextUser: '',
|
|
|
- which: '',
|
|
|
+ which: '0',
|
|
|
state: '0',
|
|
|
|
|
|
next: '',
|
|
@@ -148,6 +155,7 @@
|
|
|
nextDepUser: '',
|
|
|
remark: '',
|
|
|
},
|
|
|
+ gwForm:{},
|
|
|
gwId: "",
|
|
|
isoffice: false,
|
|
|
isleader: false,
|
|
@@ -202,10 +210,20 @@
|
|
|
},
|
|
|
// 提交表单
|
|
|
doSubmit() {
|
|
|
+ let inputForm={};
|
|
|
this.loading = true
|
|
|
- if (this.auditForm.nextLeadUser != '' || this.auditForm.nextDepUser != '') this.auditForm.next = '1'
|
|
|
- this.auditForm.state = "0"
|
|
|
- gwFlowService.save(this.auditForm).then(data => {
|
|
|
+ // if(this.one){
|
|
|
+ if (this.auditForm.nextLeadUser != '' || this.auditForm.nextDepUser != '') this.auditForm.next = '1'
|
|
|
+ this.auditForm.state = "0"
|
|
|
+ this.auditForm.gwId = this.gwId
|
|
|
+ inputForm = this.auditForm
|
|
|
+ // }else {
|
|
|
+ // this.gwForm.nextLeadUser = this.gwForm.nextLeadUser + "," +this.auditForm.nextLeadUser
|
|
|
+ // this.gwForm.nextDepUser = this.auditForm.nextDepUser+ "," +this.auditForm.nextDepUser
|
|
|
+ // inputForm = this.gwForm
|
|
|
+ // }
|
|
|
+
|
|
|
+ gwFlowService.save(inputForm).then(data => {
|
|
|
let param = {
|
|
|
type: 'success',
|
|
|
message: data,
|
|
@@ -213,11 +231,6 @@
|
|
|
url:"/pages/fileTransmit/fileTransmitList?type=1"
|
|
|
}
|
|
|
this.showToast(param);
|
|
|
- // setTimeout(() => {
|
|
|
- // uni.navigateTo({
|
|
|
- // url: ''
|
|
|
- // });
|
|
|
- // }, 500)
|
|
|
}).catch(() => {
|
|
|
let param = {
|
|
|
type: 'error',
|