[update 法规采购流程] 标准化主管级领导审批节点增加法规工程师表单
This commit is contained in:
@@ -188,7 +188,8 @@ module.exports = {
|
||||
reasonForPurchase: '采购理由',
|
||||
export: '导出',
|
||||
goToThePCToExport: '请前往PC端导出',
|
||||
carbonCopy: '抄送'
|
||||
carbonCopy: '抄送',
|
||||
regulatoryEngineer: '法规工程师'
|
||||
},
|
||||
// 企标稽查计划
|
||||
esInspectionPlan: {
|
||||
|
||||
@@ -216,7 +216,8 @@ module.exports = {
|
||||
reasonForPurchase: '采购理由',
|
||||
export: '导出',
|
||||
goToThePCToExport: '请前往PC端导出',
|
||||
carbonCopy: '抄送'
|
||||
carbonCopy: '抄送',
|
||||
regulatoryEngineer: '法规工程师'
|
||||
},
|
||||
// 企标稽查计划
|
||||
esInspectionPlan: {
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
</van-field>
|
||||
</van-form>
|
||||
</div>
|
||||
|
||||
<!-- 业务基本信息 -->
|
||||
<div class="process-part">
|
||||
<div class="process-part-title">{{ $t('basicServiceInformation') }}</div>
|
||||
@@ -59,7 +58,23 @@
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
|
||||
<!--节点三填写法规工程师-->
|
||||
<van-form
|
||||
v-if="isStandardLeaderApproval"
|
||||
ref="businessFormRef"
|
||||
input-align="right"
|
||||
error-message-align="right"
|
||||
>
|
||||
<select-user-field
|
||||
:rules="rules.confirmEngineer"
|
||||
:label="$t('procurement.regulatoryEngineer')"
|
||||
v-model="businessFormData.confirmEngineer"
|
||||
fieldName="confirmEngineer"
|
||||
@selectNameChange="userNameChange"
|
||||
:checkedNames="businessFormData.confirmEngineer_dictText"
|
||||
type="radio"
|
||||
/>
|
||||
</van-form>
|
||||
<!--流程审批信息-->
|
||||
<div class="process-part">
|
||||
<div class="process-part-title">{{ $t('processApprovalInfo') }}</div>
|
||||
@@ -150,16 +165,19 @@ import {
|
||||
} from '../../../api/api'
|
||||
import SelectUser from '../../../components/SelectUser'
|
||||
import * as dd from 'dingtalk-jsapi'
|
||||
import SelectUserField from '@/components/SelectUserField'
|
||||
|
||||
export default {
|
||||
name: 'StandardProcurementProcess',
|
||||
components: { SelectUser, ZUpload, ProcessCommonLayout },
|
||||
components: { SelectUserField, SelectUser, ZUpload, ProcessCommonLayout },
|
||||
data () {
|
||||
return {
|
||||
ProcessKey,
|
||||
loading: false,
|
||||
processInfo: {},
|
||||
approvalInfo: {},
|
||||
// 业务信息
|
||||
businessFormData: {},
|
||||
columns: [
|
||||
{ // 标准编号
|
||||
title: this.$t('standardNumber'),
|
||||
@@ -185,7 +203,9 @@ export default {
|
||||
],
|
||||
dataSource: [],
|
||||
rules: {
|
||||
handleText: [{ required: false, message: this.$t('pleaseEnter') + this.$t('remark'), trigger: 'onBlur' }]
|
||||
handleText: [{ required: false, message: this.$t('pleaseEnter') + this.$t('remark'), trigger: 'onBlur' }],
|
||||
// 法规工程师
|
||||
confirmEngineer: [{ required: true, message: this.$t('pleaseSelect') + this.$t('procurement.regulatoryEngineer'), trigger: 'onChange' }]
|
||||
},
|
||||
currentNode: null,
|
||||
isTransfer: true, // 是否转办
|
||||
@@ -196,6 +216,10 @@ export default {
|
||||
// 是否法规工程师确认节点
|
||||
isRegulatoryEngineerConfirmation () {
|
||||
return this.currentNode === ProcurementProcessNodes.regulatoryEngineerConfirmation.value
|
||||
},
|
||||
// 是否节点三-标准化主管级领导审批
|
||||
isStandardLeaderApproval () {
|
||||
return this.currentNode === ProcurementProcessNodes.standardLeaderApproval.value
|
||||
}
|
||||
},
|
||||
created () {
|
||||
@@ -203,6 +227,9 @@ export default {
|
||||
this.initProcessData()
|
||||
},
|
||||
methods: {
|
||||
userNameChange (value, fieldName) {
|
||||
this.businessFormData[fieldName + '_dictText'] = value
|
||||
},
|
||||
initProcessData () {
|
||||
this.loading = true
|
||||
const params = {
|
||||
@@ -213,10 +240,14 @@ export default {
|
||||
}
|
||||
queryProcurementProcessInfo(params).then(res => {
|
||||
if (res.success) {
|
||||
const { result = {} } = res
|
||||
let { result = {} } = res
|
||||
if (result.infoJsonStr) {
|
||||
result = JSON.parse(result.infoJsonStr)
|
||||
}
|
||||
this.processInfo = Object.assign({}, result.basicProcessInfoDTO || {})
|
||||
this.dataSource = result.businessInfoDTO || []
|
||||
this.approvalInfo = Object.assign({}, result.basicTaskInfoDTO || {})
|
||||
this.businessFormData = Object.assign({}, result.businessInfoFormDTO || {})
|
||||
} else {
|
||||
this.$message(res.message)
|
||||
}
|
||||
@@ -297,10 +328,23 @@ export default {
|
||||
flag = false
|
||||
this.$message(this.$t('pleaseEnterRemarks'))
|
||||
}
|
||||
// 节点三,法规工程师必填
|
||||
if (this.isStandardLeaderApproval) {
|
||||
const businessForm = await this.validateForm('businessFormRef')
|
||||
if (!businessForm) {
|
||||
flag = false
|
||||
this.$message(this.$t('pleaseSelect') + this.$t('procurement.regulatoryEngineer'))
|
||||
}
|
||||
}
|
||||
const userInfoMap = await this.$refs.personInfo.getDataObjVerify()
|
||||
if (!userInfoMap) {
|
||||
flag = false
|
||||
}
|
||||
// 节点三,法规工程师必填
|
||||
if (this.isStandardLeaderApproval && userInfoMap) {
|
||||
userInfoMap.confirmEngineer = this.businessFormData.confirmEngineer
|
||||
userInfoMap.confirmEngineer_dictText = this.businessFormData.confirmEngineer_dictText
|
||||
}
|
||||
if (!flag) {
|
||||
return false
|
||||
}
|
||||
@@ -310,6 +354,7 @@ export default {
|
||||
basicProcessInfoDTO: { ...this.processInfo },
|
||||
basicTaskInfoDTO: approvalInfo,
|
||||
businessInfoDTO: this.dataSource,
|
||||
businessInfoFormDTO: this.businessFormData,
|
||||
userInfoMap: userInfoMap || {}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user