feat: There is no way the, bug #52272
This commit is contained in:
@@ -512,6 +512,19 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
|
<el-collapse v-show="verifySarStandard" v-model="activeName" accordion>
|
||||||
|
<el-collapse-item title="回执说明" name="1">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="commentText">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
</div>
|
</div>
|
||||||
<div class="block" style="padding-top: 20px;" v-show="active === '2'">
|
<div class="block" style="padding-top: 20px;" v-show="active === '2'">
|
||||||
<el-timeline>
|
<el-timeline>
|
||||||
@@ -564,19 +577,6 @@
|
|||||||
</el-timeline>
|
</el-timeline>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-collapse v-show="verifySarStandard" v-model="activeName" accordion>
|
|
||||||
<el-collapse-item title="回执说明" name="1">
|
|
||||||
<div style="margin: 10px 0;">
|
|
||||||
<el-input
|
|
||||||
type="textarea"
|
|
||||||
:rows="3"
|
|
||||||
resize="none"
|
|
||||||
placeholder="请输入意见"
|
|
||||||
v-model="commentText">
|
|
||||||
</el-input>
|
|
||||||
</div>
|
|
||||||
</el-collapse-item>
|
|
||||||
</el-collapse>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 保存||提交-->
|
<!-- 保存||提交-->
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
@@ -913,7 +913,7 @@
|
|||||||
import ProcessHeader from '../../components/ProcessHeader'
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import {saveTaskFirst, queryTaskFirst} from "api/process";
|
import {saveTaskFirst, queryTaskFirst, taskDel} from "api/process";
|
||||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||||
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
||||||
|
|
||||||
@@ -1421,21 +1421,24 @@
|
|||||||
return data.name.indexOf(value) !== -1;
|
return data.name.indexOf(value) !== -1;
|
||||||
},
|
},
|
||||||
getTaskId () {
|
getTaskId () {
|
||||||
queryTaskFirst({
|
if(this.$route.query.bpnId){
|
||||||
bpnId: this.$route.query.bpnId
|
queryTaskFirst({
|
||||||
}).then(res => {
|
bpnId: this.$route.query.bpnId
|
||||||
let mes = JSON.parse(res.mes)
|
}).then(res => {
|
||||||
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
this.verifySarStandard = this.$route.query.verifySarStandard
|
||||||
this.form = mes.form
|
let mes = JSON.parse(res.mes)
|
||||||
this.form['lawsSyqy'] = this.filterObj(this.form['lawsSyqy'])
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form['lawsSycx'] = this.filterObj(this.form['lawsSycx'])
|
this.form = mes.form
|
||||||
this.form['lawsLabel'] = this.filterObj(this.form['lawsLabel'])
|
this.form['lawsSyqy'] = this.filterObj(this.form['lawsSyqy'])
|
||||||
this.form['YYRZLAWS'] = this.filterObj(this.form['YYRZLAWS'])
|
this.form['lawsSycx'] = this.filterObj(this.form['lawsSycx'])
|
||||||
this.form['NYLXLAWS'] = this.filterObj(this.form['NYLXLAWS'])
|
this.form['lawsLabel'] = this.filterObj(this.form['lawsLabel'])
|
||||||
this.form['TGRLAWS'] = this.filterObj(this.form['TGRLAWS'])
|
this.form['YYRZLAWS'] = this.filterObj(this.form['YYRZLAWS'])
|
||||||
this.roleForm = mes.roleForm
|
this.form['NYLXLAWS'] = this.filterObj(this.form['NYLXLAWS'])
|
||||||
this.commentText = mes.commentText
|
this.form['TGRLAWS'] = this.filterObj(this.form['TGRLAWS'])
|
||||||
})
|
this.roleForm = mes.roleForm
|
||||||
|
this.commentText = mes.commentText
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
filterObj(obj){
|
filterObj(obj){
|
||||||
if(obj && obj !== ''){
|
if(obj && obj !== ''){
|
||||||
@@ -2164,6 +2167,7 @@
|
|||||||
// this.sarStandardsInfoEO.country = item.country.split(",");
|
// this.sarStandardsInfoEO.country = item.country.split(",");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
this.isSubmit = true
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
this.fileInfoHandle()
|
this.fileInfoHandle()
|
||||||
let _formData = new FormData()
|
let _formData = new FormData()
|
||||||
@@ -2186,10 +2190,12 @@
|
|||||||
}))
|
}))
|
||||||
saveTaskFirst(_formData).then(res => {
|
saveTaskFirst(_formData).then(res => {
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
// this.bpnId = res.result
|
// this.bpnId = res.result
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
fileInfoHandle(){
|
fileInfoHandle(){
|
||||||
@@ -2239,6 +2245,14 @@
|
|||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
|
if (this.$route.query.bpnId !== '') {
|
||||||
|
let taskId = {
|
||||||
|
id: this.$route.query.bpnId
|
||||||
|
}
|
||||||
|
taskDel(taskId).then(res=>{
|
||||||
|
return res
|
||||||
|
})
|
||||||
|
}
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user