[update] 企标立项,变更流程
This commit is contained in:
@@ -96,6 +96,15 @@
|
|||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</template>
|
</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>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -171,6 +180,13 @@ export default {
|
|||||||
dataIndex: 'originEnStandardNo',
|
dataIndex: 'originEnStandardNo',
|
||||||
scopedSlots: { customRender: 'toDetailOld' }
|
scopedSlots: { customRender: 'toDetailOld' }
|
||||||
},
|
},
|
||||||
|
{ // 新企标编号
|
||||||
|
title: this.$t('enterpriseStandardLibrary.plan.newEnterpriseStandardNum'),
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
dataIndex: 'newEnStandardNo',
|
||||||
|
scopedSlots: { customRender: 'toDetailNew' }
|
||||||
|
},
|
||||||
{ // 原企标名称
|
{ // 原企标名称
|
||||||
title: this.$t('enterpriseStandardLibrary.plan.oldEnterpriseStandardName'),
|
title: this.$t('enterpriseStandardLibrary.plan.oldEnterpriseStandardName'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
@@ -178,6 +194,13 @@ export default {
|
|||||||
dataIndex: 'originEnStandardName',
|
dataIndex: 'originEnStandardName',
|
||||||
scopedSlots: { customRender: 'toDetailOld' }
|
scopedSlots: { customRender: 'toDetailOld' }
|
||||||
},
|
},
|
||||||
|
{ // 新企标名称
|
||||||
|
title: this.$t('enterpriseStandardLibrary.plan.newEnterpriseStandardName'),
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
dataIndex: 'newEnStandardName',
|
||||||
|
scopedSlots: { customRender: 'toDetailNew' }
|
||||||
|
},
|
||||||
{ // 授权部门
|
{ // 授权部门
|
||||||
title: this.$t('enterpriseStandardLibrary.plan.authDepartment'),
|
title: this.$t('enterpriseStandardLibrary.plan.authDepartment'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
@@ -290,6 +313,15 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 新企标点击跳转企标详情
|
||||||
|
handleGoDetailNew (record) {
|
||||||
|
this.$openPageNewSheet({
|
||||||
|
path: '/enterpriseStandardLibrary/enterpriseStandardDetail',
|
||||||
|
query: {
|
||||||
|
standardNumber: record.newEnStandardNo
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
// 获取表格数据
|
// 获取表格数据
|
||||||
replacePage () {
|
replacePage () {
|
||||||
const query = {
|
const query = {
|
||||||
|
|||||||
@@ -981,9 +981,6 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
|
||||||
goBack () {
|
|
||||||
this.$router.go(-1)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -255,8 +255,8 @@ export default {
|
|||||||
console.log(value)
|
console.log(value)
|
||||||
if (value && value.length > 0) {
|
if (value && value.length > 0) {
|
||||||
const formInline = {}
|
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 = value[0].mainDraftingUser
|
||||||
formInline.mainDraftingUser_dictText = value[0].mainDraftingUser_dictText
|
formInline.mainDraftingUser_dictText = value[0].mainDraftingUser_dictText
|
||||||
formInline.mainDraftingUnit = value[0].mainDraftingUnit
|
formInline.mainDraftingUnit = value[0].mainDraftingUnit
|
||||||
|
|||||||
+2
-2
@@ -280,9 +280,9 @@ export default {
|
|||||||
// this.$refs.ruleForm.clearValidate()
|
// this.$refs.ruleForm.clearValidate()
|
||||||
const formInline = {}
|
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 = value[0].mainDraftingUser
|
||||||
formInline.mainDraftingUser_dictText = value[0].mainDraftingUser_dictText
|
formInline.mainDraftingUser_dictText = value[0].mainDraftingUser_dictText
|
||||||
|
|||||||
@@ -26,7 +26,6 @@
|
|||||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.enterpriseStandardNum')"
|
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.enterpriseStandardNum')"
|
||||||
v-model="formInline.espId"
|
v-model="formInline.espId"
|
||||||
:standard-number="formInline.originEnStandardNo"
|
:standard-number="formInline.originEnStandardNo"
|
||||||
@standardNumberChange="standardNumberChange"
|
|
||||||
:searchParam="{ projectType: projectType }"
|
:searchParam="{ projectType: projectType }"
|
||||||
@listChange="listChange"/>
|
@listChange="listChange"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -152,15 +151,12 @@ export default {
|
|||||||
this.model = Object.assign({}, record)
|
this.model = Object.assign({}, record)
|
||||||
this.formInline = Object.assign({}, record)
|
this.formInline = Object.assign({}, record)
|
||||||
},
|
},
|
||||||
// 企标计划选择完成的企标编号回调
|
|
||||||
standardNumberChange (value) {
|
|
||||||
this.formInline.originEnStandardNo = value
|
|
||||||
},
|
|
||||||
// 企标选编号选择完成的回调
|
// 企标选编号选择完成的回调
|
||||||
listChange (value) {
|
listChange (value) {
|
||||||
console.log(value)
|
console.log(value)
|
||||||
if (value && value.length > 0) {
|
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 = value[0].mainDraftingUser
|
||||||
this.formInline.mainDraftingUser_dictText = value[0].mainDraftingUser_dictText
|
this.formInline.mainDraftingUser_dictText = value[0].mainDraftingUser_dictText
|
||||||
this.formInline.mainDraftingUnit = value[0].mainDraftingUnit
|
this.formInline.mainDraftingUnit = value[0].mainDraftingUnit
|
||||||
|
|||||||
@@ -26,7 +26,6 @@
|
|||||||
:standard-number="formInline.standardNoOne"
|
:standard-number="formInline.standardNoOne"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:searchParam="{ projectType: projectType, excludeIds: formInline.standardIdTwo }"
|
:searchParam="{ projectType: projectType, excludeIds: formInline.standardIdTwo }"
|
||||||
@standardNumberChange="standardNumberChangeOne"
|
|
||||||
@listChange="listChangeOne"/>
|
@listChange="listChangeOne"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -77,7 +76,6 @@
|
|||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:standard-number="formInline.standardNoTwo"
|
:standard-number="formInline.standardNoTwo"
|
||||||
:searchParam="{ projectType: projectType, excludeIds: formInline.standardIdOne }"
|
:searchParam="{ projectType: projectType, excludeIds: formInline.standardIdOne }"
|
||||||
@standardNumberChange="standardNumberChangeTwo"
|
|
||||||
@listChange="listChangeTwo"/>
|
@listChange="listChangeTwo"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -672,21 +670,15 @@ export default {
|
|||||||
this.$set(this.retractableFlag, module, !this.retractableFlag[module])
|
this.$set(this.retractableFlag, module, !this.retractableFlag[module])
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
},
|
},
|
||||||
// 企标计划1选择完成的企标编号回调
|
|
||||||
standardNumberChangeOne (value) {
|
|
||||||
this.formInline.standardNoOne = value
|
|
||||||
},
|
|
||||||
// 企标计划2选择完成的企标编号的回调
|
|
||||||
standardNumberChangeTwo (value) {
|
|
||||||
this.formInline.standardNoTwo = value
|
|
||||||
},
|
|
||||||
// 企标选编号1选择完成的回调
|
// 企标选编号1选择完成的回调
|
||||||
listChangeOne (value) {
|
listChangeOne (value) {
|
||||||
console.log(value)
|
console.log(value)
|
||||||
if (value && value.length > 0) {
|
if (value && value.length > 0) {
|
||||||
const formInline = {}
|
const formInline = {}
|
||||||
|
// 企标编号1
|
||||||
|
this.formInline.standardNoOne = value[0].newEnStandardNo || ''
|
||||||
// 企标名称1
|
// 企标名称1
|
||||||
formInline.standardNameOne = value[0].originEnStandardName || ''
|
formInline.standardNameOne = value[0].newEnStandardName || ''
|
||||||
// 制修订类型1
|
// 制修订类型1
|
||||||
formInline.projectTypeOne = value[0].applicationCategory || undefined
|
formInline.projectTypeOne = value[0].applicationCategory || undefined
|
||||||
// 新企标名称
|
// 新企标名称
|
||||||
@@ -733,8 +725,10 @@ export default {
|
|||||||
console.log(value)
|
console.log(value)
|
||||||
if (value && value.length > 0) {
|
if (value && value.length > 0) {
|
||||||
const formInline = {}
|
const formInline = {}
|
||||||
|
// 企标编号2
|
||||||
|
this.formInline.standardNoTwo = value[0].newEnStandardNo
|
||||||
// 企标名称2
|
// 企标名称2
|
||||||
formInline.standardNameTwo = value[0].originEnStandardName
|
formInline.standardNameTwo = value[0].newEnStandardName
|
||||||
// 制修订类型2
|
// 制修订类型2
|
||||||
formInline.projectTypeTwo = value[0].applicationCategory
|
formInline.projectTypeTwo = value[0].applicationCategory
|
||||||
this.formInline = Object.assign(this.formInline, formInline)
|
this.formInline = Object.assign(this.formInline, formInline)
|
||||||
|
|||||||
Reference in New Issue
Block a user