feature(产品标准): 标准化复审节点添加保存按钮
This commit is contained in:
@@ -140,15 +140,16 @@
|
||||
<!-- 保存||提交-->
|
||||
<ProcessFooter
|
||||
v-show="verifySarStandard"
|
||||
:show-save="false"
|
||||
show-over2
|
||||
show-submit2
|
||||
show-transfer
|
||||
show-save
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
@transfer="handleTransfer"
|
||||
@submit2="handle2"
|
||||
@over2="handle1"
|
||||
@save="handleSave"
|
||||
/>
|
||||
<el-dialog
|
||||
v-dragDialogWidth
|
||||
@@ -532,7 +533,7 @@ import formList from './common/formList.vue'
|
||||
import ProcessHeader from '../../components/ProcessHeader'
|
||||
import ProcessFooter from '../../components/ProcessFooter'
|
||||
import ProcessTitle from '../../components/ProcessTitle'
|
||||
import { saveTaskFirst, queryTaskFirst, getBusStandFileByAttId, inboundLiaisonDetail, changeAssigneeNew } from 'api/process';
|
||||
import { saveTaskFirst, saveTaskForPub, queryTaskFirst, getBusStandFileByAttId, inboundLiaisonDetail, changeAssigneeNew } from 'api/process';
|
||||
import { getEvaluationIndex } from 'api/businessApi';
|
||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
||||
@@ -2163,21 +2164,22 @@ export default {
|
||||
// if(item.country !== undefined && item.country !== null){
|
||||
// this.sarStandardsInfoEO.country = item.country.split(",");
|
||||
// }
|
||||
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
const _formData = new FormData()
|
||||
// _formData.append('id', this.bpnId)
|
||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
||||
_formData.append('taskIds', this.taskIds)
|
||||
_formData.append('prcType', 'buss2')
|
||||
_formData.append('prcName', '企标制修订-产品标准')
|
||||
_formData.append('json', JSON.stringify({
|
||||
taskInfo: this.taskInfo,
|
||||
form: this.form,
|
||||
roleForm: this.roleForm,
|
||||
commentText: this.commentText
|
||||
commentText: this.formTongGuo.commentText
|
||||
}))
|
||||
saveTaskFirst(_formData).then(res => {
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.$message.success('保存成功')
|
||||
// this.bpnId = res.result
|
||||
}).finally(() => {
|
||||
@@ -2441,7 +2443,11 @@ export default {
|
||||
pId: this.pId
|
||||
}).then(res => {
|
||||
if (res) {
|
||||
const processForm = JSON.parse(res.mesg)
|
||||
const mesg = JSON.parse(res.mesg)
|
||||
const processForm = mesg.form || mesg
|
||||
if (mesg.form) {
|
||||
this.formTongGuo.commentText = mesg.commentText
|
||||
}
|
||||
const dateArr = []
|
||||
if(processForm.commentCycleStart && processForm.commentCycleEnd) {
|
||||
dateArr[0] = processForm.commentCycleStart
|
||||
|
||||
Reference in New Issue
Block a user