平台件项目库 法规清单编辑回显 认证清单修改按钮权限
This commit is contained in:
+37
-35
@@ -234,21 +234,12 @@
|
|||||||
:prop="item.deliverableType == '1635545748968783874'?'':'dataList.'+index+'.sdt'"
|
:prop="item.deliverableType == '1635545748968783874'?'':'dataList.'+index+'.sdt'"
|
||||||
:rules="[{ required: item.deliverableType == '1635545748968783874'?false:true, message: $t('engineeringInterfacePerson') + $t('cannotEmpty'), trigger: 'change'},]"
|
:rules="[{ required: item.deliverableType == '1635545748968783874'?false:true, message: $t('engineeringInterfacePerson') + $t('cannotEmpty'), trigger: 'change'},]"
|
||||||
>
|
>
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"
|
<PersonnelSelection :query="{db_field_name:'sdt',db_field_txt:$t('engineeringInterfacePerson')}"
|
||||||
optionFilterProp="label"
|
:isSingleChoice="true"
|
||||||
showSearch
|
:personneQuery="formInline"
|
||||||
@change="handleInput('dataList.'+index+'.sdt',item.sdt,index,item.engineeringInterfacePersonList)"
|
v-if="visible"
|
||||||
v-model="item.sdt">
|
@change="PersonnelSelectionChange"
|
||||||
<a-select-option v-for="(val, key) in item.engineeringInterfacePersonList"
|
v-model="item.sdt"/>
|
||||||
:label="val.name"
|
|
||||||
:key="key"
|
|
||||||
:value="val.value">
|
|
||||||
<span style="display: inline-block;width: 100%"
|
|
||||||
:title=" val.name ">
|
|
||||||
{{ val.name}}
|
|
||||||
</span>
|
|
||||||
</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -500,21 +491,27 @@
|
|||||||
:rules="[{ required: formInline.deliverableType=='1635545748968783874'?false:true,
|
:rules="[{ required: formInline.deliverableType=='1635545748968783874'?false:true,
|
||||||
message: $t('engineeringInterfacePerson') + $t('cannotEmpty'), trigger: 'change'}]"
|
message: $t('engineeringInterfacePerson') + $t('cannotEmpty'), trigger: 'change'}]"
|
||||||
>
|
>
|
||||||
<a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"
|
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"-->
|
||||||
optionFilterProp="label"
|
<!-- optionFilterProp="label"-->
|
||||||
@change="handleInput('sdt',formInline.sdt)"
|
<!-- @change="handleInput('sdt',formInline.sdt)"-->
|
||||||
showSearch
|
<!-- showSearch-->
|
||||||
v-model="formInline.sdt">
|
<!-- v-model="formInline.sdt">-->
|
||||||
<a-select-option v-for="(item, key) in engineeringInterfacePersonList"
|
<!-- <a-select-option v-for="(item, key) in engineeringInterfacePersonList"-->
|
||||||
:label="item.name"
|
<!-- :label="item.name"-->
|
||||||
:key="key"
|
<!-- :key="key"-->
|
||||||
:value="item.value">
|
<!-- :value="item.value">-->
|
||||||
<span style="display: inline-block;width: 100%"
|
<!-- <span style="display: inline-block;width: 100%"-->
|
||||||
:title=" item.name ">
|
<!-- :title=" item.name ">-->
|
||||||
{{ item.name}}
|
<!-- {{ item.name}}-->
|
||||||
</span>
|
<!-- </span>-->
|
||||||
</a-select-option>
|
<!-- </a-select-option>-->
|
||||||
</a-select>
|
<!-- </a-select>-->
|
||||||
|
<PersonnelSelection :query="{db_field_name:'sdt',db_field_txt:$t('engineeringInterfacePerson')}"
|
||||||
|
:isSingleChoice="true"
|
||||||
|
:personneQuery="formInline"
|
||||||
|
v-if="visible"
|
||||||
|
@change="PersonnelSelectionChange"
|
||||||
|
v-model="formInline.sdt"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -974,12 +971,17 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
PersonnelSelectionChange(value, id, index) {
|
PersonnelSelectionChange(value, id, index) {
|
||||||
|
console.log(value, id, index)
|
||||||
if (this.formInline.id) {
|
if (this.formInline.id) {
|
||||||
this.formInline[value] = id
|
this.formInline[value] = id
|
||||||
} else {
|
} else {
|
||||||
this.formInline.dataList[index][value] = id
|
this.formInline.dataList[index][value] = id
|
||||||
}
|
}
|
||||||
this.formInline = { ...this.formInline }
|
// console.log(this.formInline.sdt)
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
|
this.$refs.ruleForm.validateField([value])
|
||||||
|
})
|
||||||
},
|
},
|
||||||
clickButtonToUpload(item, index, isTrue) {
|
clickButtonToUpload(item, index, isTrue) {
|
||||||
this.numIndex = index
|
this.numIndex = index
|
||||||
@@ -1048,15 +1050,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleChange(value) {
|
handleChange(value) {
|
||||||
this.formInline.sdt = undefined
|
// this.formInline.sdt = undefined
|
||||||
this.queryPersonByProject(this.formInline.dutyTerritory.join(','))
|
// this.queryPersonByProject(this.formInline.dutyTerritory.join(','))
|
||||||
},
|
},
|
||||||
dutyHandleChange(index) {
|
dutyHandleChange(index) {
|
||||||
this.formInline.dataList[index].sdt = undefined
|
this.formInline.dataList[index].sdt = undefined
|
||||||
this.formInline = { ...this.formInline }
|
this.formInline = { ...this.formInline }
|
||||||
this.handleInput('dataList.' + index + '.dutyTerritory')
|
this.handleInput('dataList.' + index + '.dutyTerritory')
|
||||||
console.log(11)
|
// console.log(11)
|
||||||
this.queryPersonByProject(this.formInline.dataList[index].dutyTerritory.join(','), index)
|
// this.queryPersonByProject(this.formInline.dataList[index].dutyTerritory.join(','), index)
|
||||||
},
|
},
|
||||||
queryPersonByProject(row, index) {
|
queryPersonByProject(row, index) {
|
||||||
let query = {
|
let query = {
|
||||||
|
|||||||
+21
-15
@@ -35,21 +35,27 @@
|
|||||||
<span class="title-text-text" :title="$t('engineeringInterfacePerson')">{{$t('engineeringInterfacePerson')}}</span>
|
<span class="title-text-text" :title="$t('engineeringInterfacePerson')">{{$t('engineeringInterfacePerson')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel">
|
<a-form-model-item class="itemModel">
|
||||||
<a-select :placeholder="$t('cannotSetResponsibilityAreas')"
|
<!-- <a-select :placeholder="$t('cannotSetResponsibilityAreas')"-->
|
||||||
class="box-input"
|
<!-- class="box-input"-->
|
||||||
allowClear
|
<!-- allowClear-->
|
||||||
optionFilterProp="label"
|
<!-- optionFilterProp="label"-->
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
<!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"-->
|
||||||
v-model="formInline.sdt">
|
<!-- v-model="formInline.sdt">-->
|
||||||
<a-select-option v-for="(item, key) in engineeringInterfacePersonList"
|
<!-- <a-select-option v-for="(item, key) in engineeringInterfacePersonList"-->
|
||||||
:key="item.key"
|
<!-- :key="item.key"-->
|
||||||
:label="item.name"
|
<!-- :label="item.name"-->
|
||||||
:value="item.value">
|
<!-- :value="item.value">-->
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.name ">
|
<!-- <span style="display: inline-block;width: 100%" :title=" item.name ">-->
|
||||||
{{ item.name }}
|
<!-- {{ item.name }}-->
|
||||||
</span>
|
<!-- </span>-->
|
||||||
</a-select-option>
|
<!-- </a-select-option>-->
|
||||||
</a-select>
|
<!-- </a-select>-->
|
||||||
|
<PersonnelSelection :query="{db_field_name:'sdt',db_field_txt:$t('engineeringInterfacePerson')}"
|
||||||
|
:isSingleChoice="true"
|
||||||
|
:personneQuery="formInline"
|
||||||
|
v-if="visible"
|
||||||
|
@change="PersonnelSelectionChange"
|
||||||
|
v-model="formInline.sdt"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
+1
-1
@@ -54,7 +54,7 @@
|
|||||||
total: 0,
|
total: 0,
|
||||||
projectCertificationInventoryId: '',
|
projectCertificationInventoryId: '',
|
||||||
url: {
|
url: {
|
||||||
list: '/platform/projectCertificationInventoryLogEO/page'
|
list: '/project/projectCertificationInventoryLogEO/page'
|
||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
|
|||||||
+6
-6
@@ -228,27 +228,27 @@
|
|||||||
|
|
||||||
<!-- 发起任务-->
|
<!-- 发起任务-->
|
||||||
<div @click="initiatingProcessClick('rzgcsjsrw',$t('confirmLaunchTask'))"
|
<div @click="initiatingProcessClick('rzgcsjsrw',$t('confirmLaunchTask'))"
|
||||||
v-if="roleSwitchingCode == 2" class="operator-text">
|
v-if="roleSwitchingCode == 1" class="operator-text">
|
||||||
<a-icon type="check-circle"/>
|
<a-icon type="check-circle"/>
|
||||||
{{ $t('initiateTask') }}
|
{{ $t('initiateTask') }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 退回至Studio-->
|
<!-- 退回至Studio-->
|
||||||
<div @click="returnToStudioClick('rzgcsthrw',$t('areYouReturnToStudio'))"
|
<div @click="returnToStudioClick('rzgcsthrw',$t('areYouReturnToStudio'))"
|
||||||
v-if="roleSwitchingCode == 2" class="operator-text">
|
v-if="roleSwitchingCode == 1" class="operator-text">
|
||||||
<a-icon type="close-circle"/>
|
<a-icon type="close-circle"/>
|
||||||
{{ $t('returnToStudio') }}
|
{{ $t('returnToStudio') }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 审批通过-->
|
<!-- 审批通过-->
|
||||||
<div @click="ApprovedClick('rzgcssc_tg',$t('confirmApproval'))" v-if="roleSwitchingCode == 2"
|
<div @click="ApprovedClick('rzgcssc_tg',$t('confirmApproval'))" v-if="roleSwitchingCode == 1"
|
||||||
class="operator-text">
|
class="operator-text">
|
||||||
<a-icon type="check-circle"/>
|
<a-icon type="check-circle"/>
|
||||||
{{ $t('reviewAndPass') }}
|
{{ $t('reviewAndPass') }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 审批退回-->
|
<!-- 审批退回-->
|
||||||
<div @click="ApprovedClick('rzgcssc_th',$t('confirmReturnForApproval'))" v-if="roleSwitchingCode == 2"
|
<div @click="ApprovedClick('rzgcssc_th',$t('confirmReturnForApproval'))" v-if="roleSwitchingCode == 1"
|
||||||
class="operator-text">
|
class="operator-text">
|
||||||
<a-icon type="close-circle"/>
|
<a-icon type="close-circle"/>
|
||||||
{{ $t('reviewAndReturn') }}
|
{{ $t('reviewAndReturn') }}
|
||||||
@@ -1125,10 +1125,10 @@
|
|||||||
...this.queryParam,
|
...this.queryParam,
|
||||||
ids: selectedRowKeys.join(','),
|
ids: selectedRowKeys.join(','),
|
||||||
...this.queryParamQuery,
|
...this.queryParamQuery,
|
||||||
excelName: this.$route.query.projectName,
|
excelName: this.$route.query.projectNameId,
|
||||||
projectLibraryId: this.$route.query.id
|
projectLibraryId: this.$route.query.id
|
||||||
}
|
}
|
||||||
downloadFile(this.url.exportData, this.$route.query.projectName + '.zip', query, this.Deselect)
|
downloadFile(this.url.exportData, this.$route.query.projectNameId + '.zip', query, this.Deselect)
|
||||||
},
|
},
|
||||||
handleDel() {
|
handleDel() {
|
||||||
let _this = this
|
let _this = this
|
||||||
|
|||||||
+10
-10
@@ -166,7 +166,7 @@
|
|||||||
<span class="Required" v-if="formInline.roleCodeIndex == 1">*</span>
|
<span class="Required" v-if="formInline.roleCodeIndex == 1">*</span>
|
||||||
<span class="title-text-text" :title="$t('regulatoryEngineer')">{{$t('regulatoryEngineer')}}</span>
|
<span class="title-text-text" :title="$t('regulatoryEngineer')">{{$t('regulatoryEngineer')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" :prop="'regulationOwnerId'">
|
<a-form-model-item class="itemModel" :prop="'regulationOwnerIdName'">
|
||||||
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('regulatoryEngineer')"-->
|
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('regulatoryEngineer')"-->
|
||||||
<!-- class="box-input"-->
|
<!-- class="box-input"-->
|
||||||
<!-- :disabled="formInline.roleCodeIndex == 1 ? false : true"-->
|
<!-- :disabled="formInline.roleCodeIndex == 1 ? false : true"-->
|
||||||
@@ -187,7 +187,7 @@
|
|||||||
v-if="visible"
|
v-if="visible"
|
||||||
:disabled="isEdit(this.formInline)"
|
:disabled="isEdit(this.formInline)"
|
||||||
@change="PersonnelSelectionChange"
|
@change="PersonnelSelectionChange"
|
||||||
v-model="formInline.regulationOwnerId"/>
|
v-model="formInline.regulationOwnerIdName"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -197,7 +197,7 @@
|
|||||||
<span class="Required">*</span>
|
<span class="Required">*</span>
|
||||||
<span class="title-text-text" :title="$t('engineeringInterfacePerson')">{{$t('engineeringInterfacePerson')}}</span>
|
<span class="title-text-text" :title="$t('engineeringInterfacePerson')">{{$t('engineeringInterfacePerson')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" :prop="'engineeringInterfacePerson'">
|
<a-form-model-item class="itemModel" :prop="'engineeringInterfacePersonName'">
|
||||||
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"-->
|
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"-->
|
||||||
<!-- class="box-input"-->
|
<!-- class="box-input"-->
|
||||||
<!-- allowClear-->
|
<!-- allowClear-->
|
||||||
@@ -217,7 +217,7 @@
|
|||||||
v-if="visible"
|
v-if="visible"
|
||||||
:disabled="isEdit(this.formInline)"
|
:disabled="isEdit(this.formInline)"
|
||||||
@change="PersonnelSelectionChange"
|
@change="PersonnelSelectionChange"
|
||||||
v-model="formInline.engineeringInterfacePerson"/>
|
v-model="formInline.engineeringInterfacePersonName"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -847,8 +847,6 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
dutyTerritoryChange(event) {
|
dutyTerritoryChange(event) {
|
||||||
this.formInline.regulationOwnerId = undefined
|
|
||||||
this.formInline.engineeringInterfacePerson = undefined
|
|
||||||
this.formInline.homologationEngineerId = undefined
|
this.formInline.homologationEngineerId = undefined
|
||||||
this.formInline.designInitiatorId = undefined
|
this.formInline.designInitiatorId = undefined
|
||||||
this.formInline.prehomoInitiatorId = undefined
|
this.formInline.prehomoInitiatorId = undefined
|
||||||
@@ -940,12 +938,14 @@
|
|||||||
this.getDutyTerritory(item.dutyDepart.join(','))
|
this.getDutyTerritory(item.dutyDepart.join(','))
|
||||||
}
|
}
|
||||||
console.log(item.dutyTerritory)
|
console.log(item.dutyTerritory)
|
||||||
if (item.dutyTerritory && item.dutyTerritory.length > 0) {
|
// if (item.dutyTerritory && item.dutyTerritory.length > 0) {
|
||||||
this.queryPersonByProject(item)
|
// this.queryPersonByProject(item)
|
||||||
} else {
|
// } else {
|
||||||
this.formInline = item
|
this.formInline = item
|
||||||
this.formInline = { ...this.formInline }
|
this.formInline = { ...this.formInline }
|
||||||
}
|
// }
|
||||||
|
console.log(this.formInline)
|
||||||
|
console.log(this.formInline.regulationOwnerIdName)
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.ruleForm.clearValidate()
|
this.$refs.ruleForm.clearValidate()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user