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