feat: There is no way the, bug #52272
This commit is contained in:
@@ -512,6 +512,19 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
</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 class="block" style="padding-top: 20px;" v-show="active === '2'">
|
||||
<el-timeline>
|
||||
@@ -564,19 +577,6 @@
|
||||
</el-timeline>
|
||||
</div>
|
||||
</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>
|
||||
<!-- 保存||提交-->
|
||||
<ProcessFooter
|
||||
@@ -913,7 +913,7 @@
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
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 TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
||||
|
||||
@@ -1421,21 +1421,24 @@
|
||||
return data.name.indexOf(value) !== -1;
|
||||
},
|
||||
getTaskId () {
|
||||
queryTaskFirst({
|
||||
bpnId: this.$route.query.bpnId
|
||||
}).then(res => {
|
||||
let mes = JSON.parse(res.mes)
|
||||
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||
this.form = mes.form
|
||||
this.form['lawsSyqy'] = this.filterObj(this.form['lawsSyqy'])
|
||||
this.form['lawsSycx'] = this.filterObj(this.form['lawsSycx'])
|
||||
this.form['lawsLabel'] = this.filterObj(this.form['lawsLabel'])
|
||||
this.form['YYRZLAWS'] = this.filterObj(this.form['YYRZLAWS'])
|
||||
this.form['NYLXLAWS'] = this.filterObj(this.form['NYLXLAWS'])
|
||||
this.form['TGRLAWS'] = this.filterObj(this.form['TGRLAWS'])
|
||||
this.roleForm = mes.roleForm
|
||||
this.commentText = mes.commentText
|
||||
})
|
||||
if(this.$route.query.bpnId){
|
||||
queryTaskFirst({
|
||||
bpnId: this.$route.query.bpnId
|
||||
}).then(res => {
|
||||
this.verifySarStandard = this.$route.query.verifySarStandard
|
||||
let mes = JSON.parse(res.mes)
|
||||
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||
this.form = mes.form
|
||||
this.form['lawsSyqy'] = this.filterObj(this.form['lawsSyqy'])
|
||||
this.form['lawsSycx'] = this.filterObj(this.form['lawsSycx'])
|
||||
this.form['lawsLabel'] = this.filterObj(this.form['lawsLabel'])
|
||||
this.form['YYRZLAWS'] = this.filterObj(this.form['YYRZLAWS'])
|
||||
this.form['NYLXLAWS'] = this.filterObj(this.form['NYLXLAWS'])
|
||||
this.form['TGRLAWS'] = this.filterObj(this.form['TGRLAWS'])
|
||||
this.roleForm = mes.roleForm
|
||||
this.commentText = mes.commentText
|
||||
})
|
||||
}
|
||||
},
|
||||
filterObj(obj){
|
||||
if(obj && obj !== ''){
|
||||
@@ -2164,6 +2167,7 @@
|
||||
// this.sarStandardsInfoEO.country = item.country.split(",");
|
||||
// }
|
||||
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.fileInfoHandle()
|
||||
let _formData = new FormData()
|
||||
@@ -2186,10 +2190,12 @@
|
||||
}))
|
||||
saveTaskFirst(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
this.$message.success('保存成功')
|
||||
// this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
fileInfoHandle(){
|
||||
@@ -2239,6 +2245,14 @@
|
||||
this.$message.success(res.message)
|
||||
this.isSubmit = 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'})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user