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

调整逻辑为继续提交

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