fix 79729、79474
This commit is contained in:
+18
-3
@@ -76,7 +76,7 @@
|
||||
<!-- 征求意见对象 -->
|
||||
<a-form-item :label="$t('workCenter.esInspectionPlan.solicitingOpinionsFrom')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<user-selection :placeholder="$t('pleaseSelect') + $t('workCenter.esInspectionPlan.solicitingOpinionsFrom')"
|
||||
type="checkbox" :nameStr="model.objectOfConsultationDictText"
|
||||
type="checkbox" :nameStr="model.objectOfConsultationDictText" :disabled="isFillInComments" :showBtn="!isFillInComments"
|
||||
v-decorator="['objectOfConsultation', validatorRules.solicitingOpinionsFrom]" />
|
||||
</a-form-item>
|
||||
<!-- 备注 -->
|
||||
@@ -105,7 +105,7 @@ import UserSelection from '@comp/selection/UserSelection'
|
||||
import { getWorkGroupTreeList } from '@api/api'
|
||||
import WorkGroupSelection from '@comp/selection/WorkGroupSelection'
|
||||
import { addInspectPlanTable, editInspectPlanTable } from '@api/workCenter'
|
||||
import { StandardSource } from '@/enums/commonEnums'
|
||||
import { EsInspectionPlan, StandardSource } from '@/enums/commonEnums'
|
||||
|
||||
export default {
|
||||
name: 'InspectionPlanDrawer',
|
||||
@@ -234,9 +234,24 @@ export default {
|
||||
created () {
|
||||
this.getWorkGroupTree()
|
||||
},
|
||||
computed: {
|
||||
// 是否节点2
|
||||
isFillInComments () {
|
||||
return this.$route.query.nodeId === EsInspectionPlan.fillInComments.value
|
||||
},
|
||||
currentUserName () {
|
||||
return this.$store.getters.userInfo.realname + '(' + this.$store.getters.userInfo.username + ')'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
add () {
|
||||
this.edit({})
|
||||
const obj = {}
|
||||
// 如果是节点2,征求意见对象默认回显自己,并且禁用
|
||||
if (this.isFillInComments) {
|
||||
obj.objectOfConsultationDictText = this.currentUserName
|
||||
obj.objectOfConsultation = this.$store.getters.userInfo.id
|
||||
}
|
||||
this.edit(obj)
|
||||
},
|
||||
edit (record) {
|
||||
this.visible = true
|
||||
|
||||
+14
@@ -70,6 +70,20 @@ export default {
|
||||
},
|
||||
data () {
|
||||
const columns = [
|
||||
{ // 依据条款
|
||||
title: this.$t('workCenter.esInspectionProcess.accordingToTerms'),
|
||||
align: 'center',
|
||||
width: 120,
|
||||
dataIndex: 'enterpriseStandardInspectReport.baseClause',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 标准内容或要求
|
||||
title: this.$t('workCenter.esInspectionProcess.standardContentOrDemand'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'enterpriseStandardInspectReport.standardRequire',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 不符合项描述
|
||||
title: this.$t('workCenter.esInspectionProcess.nonCompliantDescription'),
|
||||
align: 'center',
|
||||
|
||||
Reference in New Issue
Block a user