Commit 3f82e231 authored by 李苏's avatar 李苏 💬

调整逻辑为继续提交

parent b72c1a89
......@@ -65,14 +65,8 @@
"style": {
"navigationBarTitleText": ""
}
},
/* 测试页面 */
{
"path": "node_modules/appcommon/src/pages/test/index",
"style": {
"navigationBarTitleText": ""
}
}
......
......@@ -52,7 +52,7 @@
<ac-upload accept='video' ref="uploadvideo" /> -->
<u-button @tap='submit' type="primary" style="width: 60vw;height: 40px;margin-top: 15px;"
text="提交日报"></u-button>
:text="btext"></u-button>
......@@ -90,6 +90,7 @@
},
data() {
return {
btext:'提交日报',
/* 表单信息 */
form: {
xmName: '',
......@@ -97,7 +98,7 @@
sjwhName: '',
ywrq: new Date().getTime(),
qzkhid: '',
type: '',
type: 'N',
xmid: '',
ycgzid: '',
sjwhSjms: '',
......@@ -128,11 +129,7 @@
gznr: [{
required: true,
message: '请填写工作内容',
}],
gzjh: [{
required: true,
message: '请填写下一步计划',
}],
}]
}
......@@ -151,18 +148,12 @@
})
},
back(){
eventBus.$emit('save')
uni.navigateBack({
delta: 1,
})
},
submit() {
this.$refs.form.validate().then(res => {
uni.showModal({
title: '提示',
content: '是否继续操作。',
......@@ -180,8 +171,7 @@
})
const wfdata = addres.data.records[0]
wfdata.wfoperate = '1'
let userres = await this.$post(
'kqgl/gzrb/wfnextinfo', wfdata)
let userres = await this.$post('kqgl/gzrb/wfnextinfo', wfdata)
const tjlist = userres.data.records[0]
this.$post('kqgl/gzrb/wfgo', {
nextinfo: tjlist,
......@@ -189,16 +179,14 @@
}).then(res => {
if (res.success) {
this.btext='继续提交'
this.$tip.toast('提交成功')
this.back()
this.form.gznr=''
this.form.gzjh=''
}
})
/* 直接提交工作流 */
} else {
this.$tip.toast('提交失败')
}
......
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