[update] 企标立项,变更流程

This commit is contained in:
lideqin
2023-11-10 10:13:52 +08:00
parent 7405161e15
commit 1ceed7e856
6 changed files with 44 additions and 25 deletions
@@ -96,6 +96,15 @@
</a-tooltip>
</template>
<!-- 新企标编号/新企标名称 -->
<template v-slot:toDetailNew="text, record">
<a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
<a v-if="text" class="link-a" @click="handleGoDetailNew(record)">{{ text }}</a>
<div v-else class="table-text">{{ global.emptyLine }}</div>
</a-tooltip>
</template>
</a-table>
</div>
@@ -171,6 +180,13 @@ export default {
dataIndex: 'originEnStandardNo',
scopedSlots: { customRender: 'toDetailOld' }
},
{ // 新企标编号
title: this.$t('enterpriseStandardLibrary.plan.newEnterpriseStandardNum'),
align: 'center',
width: 180,
dataIndex: 'newEnStandardNo',
scopedSlots: { customRender: 'toDetailNew' }
},
{ // 原企标名称
title: this.$t('enterpriseStandardLibrary.plan.oldEnterpriseStandardName'),
align: 'center',
@@ -178,6 +194,13 @@ export default {
dataIndex: 'originEnStandardName',
scopedSlots: { customRender: 'toDetailOld' }
},
{ // 新企标名称
title: this.$t('enterpriseStandardLibrary.plan.newEnterpriseStandardName'),
align: 'center',
width: 180,
dataIndex: 'newEnStandardName',
scopedSlots: { customRender: 'toDetailNew' }
},
{ // 授权部门
title: this.$t('enterpriseStandardLibrary.plan.authDepartment'),
align: 'center',
@@ -290,6 +313,15 @@ export default {
}
})
},
// 新企标点击跳转企标详情
handleGoDetailNew (record) {
this.$openPageNewSheet({
path: '/enterpriseStandardLibrary/enterpriseStandardDetail',
query: {
standardNumber: record.newEnStandardNo
}
})
},
// 获取表格数据
replacePage () {
const query = {
@@ -981,9 +981,6 @@ export default {
})
}
})
},
goBack () {
this.$router.go(-1)
}
}
}
@@ -255,8 +255,8 @@ export default {
console.log(value)
if (value && value.length > 0) {
const formInline = {}
formInline.originEnStandardNo = value[0].originEnStandardNo
formInline.originEnStandardName = value[0].originEnStandardName
formInline.originEnStandardNo = value[0].newEnStandardNo
formInline.originEnStandardName = value[0].newEnStandardName
formInline.mainDraftingUser = value[0].mainDraftingUser
formInline.mainDraftingUser_dictText = value[0].mainDraftingUser_dictText
formInline.mainDraftingUnit = value[0].mainDraftingUnit
@@ -280,9 +280,9 @@ export default {
// this.$refs.ruleForm.clearValidate()
const formInline = {}
// 企标编号
formInline.originEnStandardNo = value[0].originEnStandardNo
formInline.originEnStandardNo = value[0].newEnStandardNo
// 企标名称
formInline.originEnStandardName = value[0].originEnStandardName
formInline.originEnStandardName = value[0].newEnStandardName
// 主起草人
formInline.mainDraftingUser = value[0].mainDraftingUser
formInline.mainDraftingUser_dictText = value[0].mainDraftingUser_dictText
@@ -26,7 +26,6 @@
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.enterpriseStandardNum')"
v-model="formInline.espId"
:standard-number="formInline.originEnStandardNo"
@standardNumberChange="standardNumberChange"
:searchParam="{ projectType: projectType }"
@listChange="listChange"/>
</a-form-model-item>
@@ -152,15 +151,12 @@ export default {
this.model = Object.assign({}, record)
this.formInline = Object.assign({}, record)
},
// 企标计划选择完成的企标编号回调
standardNumberChange (value) {
this.formInline.originEnStandardNo = value
},
// 企标选编号选择完成的回调
listChange (value) {
console.log(value)
if (value && value.length > 0) {
this.formInline.originEnStandardName = value[0].originEnStandardName
this.formInline.originEnStandardNo = value[0].newEnStandardNo
this.formInline.originEnStandardName = value[0].newEnStandardName
this.formInline.mainDraftingUser = value[0].mainDraftingUser
this.formInline.mainDraftingUser_dictText = value[0].mainDraftingUser_dictText
this.formInline.mainDraftingUnit = value[0].mainDraftingUnit
@@ -26,7 +26,6 @@
:standard-number="formInline.standardNoOne"
:disabled="disabled"
:searchParam="{ projectType: projectType, excludeIds: formInline.standardIdTwo }"
@standardNumberChange="standardNumberChangeOne"
@listChange="listChangeOne"/>
</a-form-model-item>
</div>
@@ -77,7 +76,6 @@
:disabled="disabled"
:standard-number="formInline.standardNoTwo"
:searchParam="{ projectType: projectType, excludeIds: formInline.standardIdOne }"
@standardNumberChange="standardNumberChangeTwo"
@listChange="listChangeTwo"/>
</a-form-model-item>
</div>
@@ -672,21 +670,15 @@ export default {
this.$set(this.retractableFlag, module, !this.retractableFlag[module])
this.$forceUpdate()
},
// 企标计划1选择完成的企标编号回调
standardNumberChangeOne (value) {
this.formInline.standardNoOne = value
},
// 企标计划2选择完成的企标编号的回调
standardNumberChangeTwo (value) {
this.formInline.standardNoTwo = value
},
// 企标选编号1选择完成的回调
listChangeOne (value) {
console.log(value)
if (value && value.length > 0) {
const formInline = {}
// 企标编号1
this.formInline.standardNoOne = value[0].newEnStandardNo || ''
// 企标名称1
formInline.standardNameOne = value[0].originEnStandardName || ''
formInline.standardNameOne = value[0].newEnStandardName || ''
// 制修订类型1
formInline.projectTypeOne = value[0].applicationCategory || undefined
// 新企标名称
@@ -733,8 +725,10 @@ export default {
console.log(value)
if (value && value.length > 0) {
const formInline = {}
// 企标编号2
this.formInline.standardNoTwo = value[0].newEnStandardNo
// 企标名称2
formInline.standardNameTwo = value[0].originEnStandardName
formInline.standardNameTwo = value[0].newEnStandardName
// 制修订类型2
formInline.projectTypeTwo = value[0].applicationCategory
this.formInline = Object.assign(this.formInline, formInline)