feat: There is no way the,

This commit is contained in:
super_liu
2022-01-05 10:08:20 +08:00
parent 60dc24cee7
commit 41f9590033
@@ -557,7 +557,7 @@
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail} from "api/process";
import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail,processCreateBuss,evaluationHisList} from "api/process";
import {getEvaluationIndex} from "api/businessApi";
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
@@ -794,6 +794,8 @@
countryArr:'',
commentCycleDate:'',
form: {
reviseStatus:'',
standSn:'',
evaluationData:[],
modelData:[],
modelDataNameVerify:[],
@@ -2340,6 +2342,7 @@
// 流程提交之后,应该流转至待办任务页面
this.isSubmit = false
this.saveLoading = false
this.processCreateBuss(json)
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
// if(this.formTongGuo.approvalOpinion === '1'){
// this.$message.warning("驳回成功")
@@ -2357,6 +2360,24 @@
}
})
},
/**
* @description: 流程入库
* @date: 2020-11-18 21:47:58
*/
processCreateBuss(json) {
const _formData = new FormData()
_formData.append('infoJson', json)
processCreateBuss(_formData).then(res => {
if (res.result === '操作成功' || res.data === '入库成功') {
this.$message.success(res.data)
this.submitLoading = false
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
this.isSubmit = false
}
})
},
busVsFunc(){
this.$http.get('sarVppsTree/list', '', {
_this: this
@@ -2392,6 +2413,7 @@
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = item.id
this.getStandInfoByReviseStatus()
})
},
assemble(ids,names){
@@ -2454,6 +2476,21 @@
})
}
},
getStandInfoByReviseStatus() {
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:this.form.reviseStatus}, {
_this: this
}, res => {
const obj = res.data
let standSn = (obj === null || obj.newStandSn === null) ? '001' : obj.newStandSn
let date = new Date();
let year = date.getFullYear();
this.form.standSn = standSn
this.form.standNumber = standSn
this.form.standYear = this.form.reviseStatus === '2' ? (year + ' X') : year // 待带入立项标准
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
}, e => {
})
},
processTable () {
this.$nextTick(() => {
Promise.all([this.getTaskId()]).then((value) => {