对接认证清单引用交付物

This commit is contained in:
范强强
2023-03-14 09:23:23 +08:00
parent 075c83a0ce
commit 0dcc9ea2ac
5 changed files with 217 additions and 146 deletions
@@ -107,13 +107,18 @@
<a-form-model-item <a-form-model-item
class="itemModel" class="itemModel"
:prop="'dataList.'+index+'.configItem'" :prop="'dataList.'+index+'.configItem'"
:rules="[{ required: true, message: $t('configurationItem') + $t('cannotEmpty'), trigger: 'change'},]" :rules="[{ required: true, message: $t('configurationItem') + $t('cannotEmpty'), trigger: 'blur'},
{max: 300,message: $t('configurationItem') + $t('cannotExceed') + 300 + $t('Characters'),trigger: 'blur'
}]"
> >
<j-dict-select-tag class="box-input" v-model="item.configItem" <a-input class="box-input"
@input="handleInput('dataList.'+index+'.configItem')" v-model="item.configItem"
:placeholder="$t('PleaseSelect')+$t('configurationItem')" :placeholder="$t('PleaseEnter')+$t('configurationItem')"/>
:type="'select'" <!-- <j-dict-select-tag class="box-input" v-model="item.configItem"-->
:triggerChange="false" :dictCode="'ren4_zheng4_qing1_dan1_-_pei4_zhi4_xiang4'"/> <!-- @input="handleInput('dataList.'+index+'.configItem')"-->
<!-- :placeholder="$t('PleaseSelect')+$t('configurationItem')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'ren4_zheng4_qing1_dan1_-_pei4_zhi4_xiang4'"/>-->
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -130,6 +135,7 @@
> >
<j-dict-select-tag class="box-input" v-model="item.dutyTerritory" <j-dict-select-tag class="box-input" v-model="item.dutyTerritory"
@input="handleInput('dataList.'+index+'.dutyTerritory')" @input="handleInput('dataList.'+index+'.dutyTerritory')"
@changeQuery="dutyHandleChange(index)"
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')" :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
:type="'select'" :type="'select'"
:triggerChange="false" :dictCode="'duty_territory'"/> :triggerChange="false" :dictCode="'duty_territory'"/>
@@ -190,17 +196,25 @@
<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-multi" <a-form-model-item class="itemModel"
:prop="'dataList.'+index+'.sdtName'" :prop="'dataList.'+index+'.sdt'"
:rules="[{ required: true, message: $t('engineeringInterfacePerson') + $t('cannotEmpty'), trigger: 'change'},]" :rules="[{ required: true, message: $t('engineeringInterfacePerson') + $t('cannotEmpty'), trigger: 'change'},]"
> >
<PersonnelSelection <a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"
:query="{db_field_name:'sdt',db_field_txt:$t('engineeringInterfacePerson'),subscript:index}" optionFilterProp="label"
:personneQuery="item" showSearch
:isSingleChoice="true" @change="handleInput('dataList.'+index+'.sdt')"
@change="PersonnelSelectionChange" v-model="item.sdt">
:disabled="disabled" <a-select-option v-for="(val, key) in item.engineeringInterfacePersonList"
v-model="item.sdtName"/> :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>
@@ -228,28 +242,28 @@
</a-col> </a-col>
</a-row> </a-row>
<!-- <a-row :gutter="24">--> <!-- <a-row :gutter="24">-->
<!-- <a-col :span="12">--> <!-- <a-col :span="12">-->
<!-- <div class="box-title-text">--> <!-- <div class="box-title-text">-->
<!-- <div class="title-text">--> <!-- <div class="title-text">-->
<!-- <span class="Required">*</span>--> <!-- <span class="Required">*</span>-->
<!-- <span class="title-text-text" :title="$t('personLiable')">{{$t('personLiable')}}</span>--> <!-- <span class="title-text-text" :title="$t('personLiable')">{{$t('personLiable')}}</span>-->
<!-- </div>--> <!-- </div>-->
<!-- <a-form-model-item class="itemModel-multi"--> <!-- <a-form-model-item class="itemModel-multi"-->
<!-- :prop="'dataList.'+index+'.dutyPersonName'"--> <!-- :prop="'dataList.'+index+'.dutyPersonName'"-->
<!-- :rules="[{ required: true, message: $t('personLiable') + $t('cannotEmpty'), trigger: 'change'},]"--> <!-- :rules="[{ required: true, message: $t('personLiable') + $t('cannotEmpty'), trigger: 'change'},]"-->
<!-- >--> <!-- >-->
<!-- <PersonnelSelection--> <!-- <PersonnelSelection-->
<!-- :query="{db_field_name:'dutyPerson',db_field_txt:$t('personLiable'),subscript:index}"--> <!-- :query="{db_field_name:'dutyPerson',db_field_txt:$t('personLiable'),subscript:index}"-->
<!-- :personneQuery="item"--> <!-- :personneQuery="item"-->
<!-- :isSingleChoice="true"--> <!-- :isSingleChoice="true"-->
<!-- @change="PersonnelSelectionChange"--> <!-- @change="PersonnelSelectionChange"-->
<!-- :disabled="disabled"--> <!-- :disabled="disabled"-->
<!-- v-model="item.dutyPersonName"/>--> <!-- v-model="item.dutyPersonName"/>-->
<!-- </a-form-model-item>--> <!-- </a-form-model-item>-->
<!-- </div>--> <!-- </div>-->
<!-- </a-col>--> <!-- </a-col>-->
<!-- </a-row>--> <!-- </a-row>-->
</div> </div>
</div> </div>
@@ -297,11 +311,14 @@
class="itemModel" class="itemModel"
:prop="'configItem'" :prop="'configItem'"
> >
<j-dict-select-tag class="box-input" v-model="formInline.configItem" <a-input class="box-input"
@input="handleInput('configItem')" v-model="formInline.configItem"
:placeholder="$t('PleaseSelect')+$t('configurationItem')" :placeholder="$t('PleaseEnter')+$t('configurationItem')"/>
:type="'select'" <!-- <j-dict-select-tag class="box-input" v-model="formInline.configItem"-->
:triggerChange="false" :dictCode="'ren4_zheng4_qing1_dan1_-_pei4_zhi4_xiang4'"/> <!-- @input="handleInput('configItem')"-->
<!-- :placeholder="$t('PleaseSelect')+$t('configurationItem')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'ren4_zheng4_qing1_dan1_-_pei4_zhi4_xiang4'"/>-->
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -317,6 +334,7 @@
> >
<j-dict-select-tag class="box-input" v-model="formInline.dutyTerritory" <j-dict-select-tag class="box-input" v-model="formInline.dutyTerritory"
@input="handleInput('dutyTerritory')" @input="handleInput('dutyTerritory')"
@changeQuery="handleChange"
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')" :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
:type="'select'" :type="'select'"
:triggerChange="false" :dictCode="'duty_territory'"/> :triggerChange="false" :dictCode="'duty_territory'"/>
@@ -375,16 +393,23 @@
<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-multi" <a-form-model-item class="itemModel"
:prop="'sdtName'" :prop="'sdt'"
> >
<PersonnelSelection <a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"
:query="{db_field_name:'sdt',db_field_txt:$t('engineeringInterfacePerson')}" optionFilterProp="label"
:personneQuery="formInline" showSearch
:isSingleChoice="true" v-model="formInline.sdt">
@change="PersonnelSelectionChange" <a-select-option v-for="(item, key) in engineeringInterfacePersonList"
:disabled="disabled" :label="item.name"
v-model="formInline.sdtName"/> :key="key"
:value="item.value">
<span style="display: inline-block;width: 100%"
:title=" item.name ">
{{ item.name}}
</span>
</a-select-option>
</a-select>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -523,7 +548,7 @@
trigger: 'change' trigger: 'change'
} }
], ],
sdtName: [ sdt: [
{ {
required: true, required: true,
message: this.$t('engineeringInterfacePerson') + this.$t('cannotEmpty'), message: this.$t('engineeringInterfacePerson') + this.$t('cannotEmpty'),
@@ -537,16 +562,21 @@
trigger: 'change' trigger: 'change'
} }
], ],
endTime:[ endTime: [
{ {
required: true, required: true,
message: this.$t('closingDate') + this.$t('cannotEmpty'), message: this.$t('closingDate') + this.$t('cannotEmpty'),
trigger: 'change' trigger: 'change'
} }
], ],
configItem:[ configItem: [
{ required: true, message: this.$t('configurationItem') + this.$t('cannotEmpty'), trigger: 'change' }, { required: true, message: this.$t('configurationItem') + this.$t('cannotEmpty'), trigger: 'blur' },
], {
max: 300,
message: this.$t('configurationItem') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
trigger: 'blur'
}
]
}, },
disabled: false, disabled: false,
projectNameList: [], projectNameList: [],
@@ -558,7 +588,8 @@
add: '/project/projectCertificationInventoryEO/batchAdd', add: '/project/projectCertificationInventoryEO/batchAdd',
edit: '/project/projectCertificationInventoryEO/edit', edit: '/project/projectCertificationInventoryEO/edit',
list: '/project/projectLawsInventoryEO/list' list: '/project/projectLawsInventoryEO/list'
} },
engineeringInterfacePersonList: []
} }
}, },
mounted() { mounted() {
@@ -570,11 +601,11 @@
disabledDate(current) { disabledDate(current) {
return current && current < moment().subtract(1, 'day') return current && current < moment().subtract(1, 'day')
}, },
dateChange(item,index) { dateChange(item, index) {
if (index){ if (index) {
this.formInline.dataList[index][item.db_field_name] = this.formInline.dataList[index][item.db_field_name] ? moment(this.formInline.dataList[index][item.db_field_name]).format('YYYY-MM-DD') : '' this.formInline.dataList[index][item.db_field_name] = this.formInline.dataList[index][item.db_field_name] ? moment(this.formInline.dataList[index][item.db_field_name]).format('YYYY-MM-DD') : ''
}else{ } else {
this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : '' this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : ''
} }
@@ -607,6 +638,9 @@
if (this.formInline.deliverableType) { if (this.formInline.deliverableType) {
this.formInline.deliverableType = this.formInline.deliverableType.split(',') this.formInline.deliverableType = this.formInline.deliverableType.split(',')
} }
if (value.dutyTerritory) {
this.queryPersonByProject(value.dutyTerritory)
}
this.getRegulationNo() this.getRegulationNo()
this.title = this.$t('edit') this.title = this.$t('edit')
this.$nextTick(() => { this.$nextTick(() => {
@@ -635,6 +669,7 @@
url = this.url.add url = this.url.add
Action = postAction Action = postAction
query.dataList.forEach(val => { query.dataList.forEach(val => {
delete val.engineeringInterfacePersonList
Object.keys(val).forEach(res => { Object.keys(val).forEach(res => {
if (val[res] && val[res] instanceof Array) { if (val[res] && val[res] instanceof Array) {
val[res] = val[res].join(',') val[res] = val[res].join(',')
@@ -726,8 +761,37 @@
let content = this.projectNameList.filter(res => { let content = this.projectNameList.filter(res => {
return res.id === value return res.id === value
}) })
this.formInline.bussDocumentLibraryId = content[0].id if (content && content.length > 0) {
this.formInline.serialNumber = content[0].serialNumber this.formInline.bussDocumentLibraryId = content[0].id
this.formInline.serialNumber = content[0].serialNumber
}
},
handleChange(value) {
this.formInline.sdt = undefined
this.queryPersonByProject(this.formInline.dutyTerritory)
},
dutyHandleChange(index) {
this.formInline.dataList[index].sdt = undefined
this.formInline = {... this.formInline}
this.queryPersonByProject(this.formInline.dataList[index].dutyTerritory, index)
},
queryPersonByProject(row, index) {
let query = {
projectId: this.$route.query.id,
dutyTerritory: row
}
getAction('/project/projectRelatedPersonnel/queryPersonByProjectId', query).then((res) => {
if (res.success) {
if (this.formInline.id) {
this.engineeringInterfacePersonList = res.result.engineeringInterfacePersonList || [] //工程接口人
} else {
this.$nextTick(()=>{
this.formInline.dataList[index].engineeringInterfacePersonList = res.result.engineeringInterfacePersonList || []
this.formInline = {...this.formInline}
})
}
}
})
} }
} }
} }
@@ -17,11 +17,15 @@
<span class="title-text-text" :title="$t('configurationItem')">{{$t('configurationItem')}}</span> <span class="title-text-text" :title="$t('configurationItem')">{{$t('configurationItem')}}</span>
</div> </div>
<a-form-model-item class="itemModel"> <a-form-model-item class="itemModel">
<j-dict-select-tag class="box-input" v-model="formInline.configItem" <a-input class="box-input"
@input="handleInput('configItem')" v-model="formInline.configItem"
:placeholder="$t('PleaseSelect')+$t('configurationItem')" :placeholder="$t('PleaseEnter')+$t('configurationItem')"/>
:type="'select'"
:triggerChange="false" :dictCode="'ren4_zheng4_qing1_dan1_-_pei4_zhi4_xiang4'"/> <!-- <j-dict-select-tag class="box-input" v-model="formInline.configItem"-->
<!-- @input="handleInput('configItem')"-->
<!-- :placeholder="$t('PleaseSelect')+$t('configurationItem')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'ren4_zheng4_qing1_dan1_-_pei4_zhi4_xiang4'"/>-->
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -33,6 +37,7 @@
<a-form-model-item class="itemModel"> <a-form-model-item class="itemModel">
<j-dict-select-tag class="box-input" v-model="formInline.dutyTerritory" <j-dict-select-tag class="box-input" v-model="formInline.dutyTerritory"
@input="handleInput('dutyTerritory')" @input="handleInput('dutyTerritory')"
@changeQuery="handleChange"
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')" :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
:type="'select'" :type="'select'"
:triggerChange="false" :dictCode="'duty_territory'"/> :triggerChange="false" :dictCode="'duty_territory'"/>
@@ -50,13 +55,15 @@
<a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')" <a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"
class="box-input" class="box-input"
allowClear allowClear
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"
:value="item.value"> :value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.label "> <span style="display: inline-block;width: 100%" :title=" item.name ">
{{ item.label }} {{ item.name }}
</span> </span>
</a-select-option> </a-select-option>
</a-select> </a-select>
@@ -122,17 +129,17 @@
</a-row> </a-row>
<a-row :gutter="24" v-if="name == $t('BatchSetting') && roleSwitchingCode == 2"> <a-row :gutter="24" v-if="name == $t('BatchSetting') && roleSwitchingCode == 2">
<a-col :span="24"> <a-col :span="24">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
<span class="title-text-text" <span class="title-text-text"
:title="$t('remarks')">{{$t('remarks')}}</span> :title="$t('remarks')">{{$t('remarks')}}</span>
</div>
<a-form-model-item class="itemModel" :prop="'certificationProgressRemark'">
<a-textarea
:placeholder="$t('PleaseEnter')+$t('remarks')"
v-model="formInline.certificationProgressRemark" :rows="4"/>
</a-form-model-item>
</div> </div>
<a-form-model-item class="itemModel" :prop="'certificationProgressRemark'">
<a-textarea
:placeholder="$t('PleaseEnter')+$t('remarks')"
v-model="formInline.certificationProgressRemark" :rows="4"/>
</a-form-model-item>
</div>
</a-col> </a-col>
</a-row> </a-row>
</a-form-model> </a-form-model>
@@ -146,7 +153,7 @@
export default { export default {
name: 'batSetting', name: 'batSetting',
props: ['url','roleSwitchingCode'], props: ['url', 'roleSwitchingCode'],
components: { components: {
PersonnelSelection PersonnelSelection
}, },
@@ -155,9 +162,7 @@
visible: false, visible: false,
confirmLoading: false, confirmLoading: false,
formInline: {}, formInline: {},
rules: { rules: {},
},
ids: [], ids: [],
configurationItemList: [], configurationItemList: [],
engineeringInterfacePersonList: [], engineeringInterfacePersonList: [],
@@ -270,6 +275,21 @@
}, },
dateChange(item) { dateChange(item) {
this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : '' this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : ''
},
handleChange(value) {
this.formInline.sdt = undefined
this.queryPersonByProject(this.formInline.dutyTerritory)
},
queryPersonByProject(row) {
let query = {
projectId: this.$route.query.id,
dutyTerritory: row
}
getAction('/project/projectRelatedPersonnel/queryPersonByProjectId', query).then((res) => {
if (res.success) {
this.engineeringInterfacePersonList = res.result.engineeringInterfacePersonList || [] //工程接口人
}
})
} }
} }
} }
@@ -40,54 +40,57 @@
<script> <script>
import { getAction, postAction } from '@/api/manage' import { getAction, postAction } from '@/api/manage'
export default { export default {
name: 'modifyHistoryList', name: 'modifyHistoryList',
data() { data() {
return { return {
visible:false, visible: false,
dataList:[], dataList: [],
confirmLoading:false, confirmLoading: false,
loading:false, loading: false,
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
total: 0, total: 0,
url:{ projectCertificationInventoryId: '',
list:'', url: {
list: '/project/projectCertificationInventoryLogEO/page'
}, },
columns:[ columns: [
{ {
title: this.$t('Operator'), title: this.$t('Operator'),
dataIndex: 'Operator', dataIndex: 'createBy',
align: 'left', align: 'left',
ellipsis: true, ellipsis: true,
width: 228 width: 108
}, },
{ {
title: this.$t('operationTime'), title: this.$t('operationTime'),
dataIndex: 'operationTime', dataIndex: 'createTime',
align: 'left', align: 'left',
ellipsis: true, ellipsis: true,
width: 228 width: 148
}, },
{ {
title: this.$t('OperationContent'), title: this.$t('OperationContent'),
dataIndex: 'OperationContent', dataIndex: 'content',
align: 'left', align: 'left',
ellipsis: true, ellipsis: true,
width: 228 width: 528
}, }
], ]
} }
}, },
mounted() { mounted() {
}, },
methods:{ methods: {
handleCancel(){ handleCancel() {
this.visible = false this.visible = false
}, },
getList() { getList(id) {
this.pageNo = 1 this.pageNo = 1
this.visible = true this.visible = true
this.projectCertificationInventoryId = id
this.replacePage() this.replacePage()
}, },
onChange(page, pageSize) { onChange(page, pageSize) {
@@ -99,13 +102,14 @@
this.pageSize = pageSize this.pageSize = pageSize
this.replacePage() this.replacePage()
}, },
replacePage(){ replacePage() {
let query = { let query = {
pageNo: this.pageNo, pageNo: this.pageNo,
pageSize: this.pageSize, pageSize: this.pageSize,
projectCertificationInventoryId: this.projectCertificationInventoryId
} }
this.loading = true this.loading = true
postAction(this.url.list, query).then((res) => { getAction(this.url.list, query).then((res) => {
if (res.success) { if (res.success) {
this.dataList = res.result.records || [] this.dataList = res.result.records || []
this.total = res.result.total this.total = res.result.total
@@ -116,7 +120,7 @@
this.loading = false this.loading = false
} }
}) })
}, }
} }
} }
</script> </script>
@@ -56,7 +56,7 @@
<div class="drawer-bootom-button"> <div class="drawer-bootom-button">
<a-button @click="handleCancel" style="margin-right: 16px">{{$t('cancel')}}</a-button> <a-button @click="handleCancel" style="margin-right: 16px">{{$t('cancel')}}</a-button>
<a-button @click="handleSubmit(undefined)" type="primary" :loading="confirmLoading">{{$t('determine')}}</a-button> <a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('determine')}}</a-button>
</div> </div>
</a-drawer> </a-drawer>
</template> </template>
@@ -95,17 +95,19 @@
loading: false, loading: false,
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
total: 0 total: 0,
ids:'',
} }
}, },
mounted() { mounted() {
}, },
methods: { methods: {
transferModel() { transferModel(ids) {
this.visible = true this.visible = true
this.queryParam = {} this.queryParam = {}
this.selectedRowKeys = [] this.selectedRowKeys = []
this.ids = ids.join(',')
this.replacePage() this.replacePage()
}, },
searchQuery() { searchQuery() {
@@ -151,49 +153,31 @@
}, },
handleCancel() { handleCancel() {
this.visible = false this.visible = false
this.$emit('visible')
}, },
handleSubmit(flag) { handleSubmit() {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.confirmLoading = true this.confirmLoading = true
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
this.confirmLoading = false postAction('/project/projectCertificationInventoryEO/citeDeliverable', {
this.$emit('transferListForm',selectedRowKeys.join(',')) projectCertificationInventoryIds: this.ids,
this.selectedRowKeys = [] projectLibraryId: this.$route.query.id,
// postAction('project/projectLawsInventoryEO/add', { citeProjectLibraryId: selectedRowKeys.join(',')
// dummyInventoryBaseId: selectedRowKeys.join(','), }).then((res) => {
// projectLibraryId: this.$route.query.id, if (res.success) {
// flag: flag this.confirmLoading = false
// }).then((res) => { this.$message.success(this.$t('OperationSuccessful'))
// if (res.success) { this.visible = false
// this.confirmLoading = false this.selectedRowKeys = []
// // this.$message.success(this.$t('OperationSuccessful')) this.$emit('referenceDeliverablesListForm')
// // this.visible = false } else {
// this.selectedRowKeys = [] this.$message.warning(this.$t('operationFailed'))
// this.$emit('transferListForm',selectedRowKeys.join(',')) this.confirmLoading = false
// } else { }
// // if (res.message == '该虚拟清单的维护清单中没有数据,是否需要添加') { })
// // this.confirmLoading = false
// // this.getAdd()
// // return
// // }
// this.$message.warning(this.$t('operationFailed'))
// this.confirmLoading = false
// }
// })
} else { } else {
this.$message.warning(this.$t('selectLeastOne')) this.$message.warning(this.$t('selectLeastOne'))
} }
}, },
getAdd() {
let _this = this
this.$confirm({
content: _this.$t('TheDoesNotContainData'),
onOk() {
_this.handleSubmit('1')
}
})
}
} }
} }
</script> </script>
@@ -485,10 +485,9 @@
text: this.$t('inspectionItems') text: this.$t('inspectionItems')
}, },
{ {
type: '', type: 'string',
value: 'configItem', value: 'configItem',
text: this.$t('configurationItem'), text: this.$t('configurationItem'),
dictCode: 'ren4_zheng4_qing1_dan1_-_pei4_zhi4_xiang4'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
}, },
{ {
type: 'string', type: 'string',
@@ -1161,8 +1160,8 @@
} }
}) })
}, },
modifyHistoryClick() { modifyHistoryClick(row) {
this.$refs.modifyHistoryRef.getList() this.$refs.modifyHistoryRef.getList(row.id)
}, },
getRoleByUserId(callback) { getRoleByUserId(callback) {
getAction('/project/projectCertificationInventoryEO/getRoleByUserId', { projectLibraryId: this.$route.query.id }).then((res) => { getAction('/project/projectCertificationInventoryEO/getRoleByUserId', { projectLibraryId: this.$route.query.id }).then((res) => {
@@ -1263,7 +1262,7 @@
//引用交付物 //引用交付物
referenceDeliverablesClick() { referenceDeliverablesClick() {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.$refs.referenceDeliverablesListRef.transferModel() this.$refs.referenceDeliverablesListRef.transferModel(JSON.parse(JSON.stringify(this.selectedRowKeys)))
} else { } else {
this.$message.warning(this.$t('selectLeastOne')) this.$message.warning(this.$t('selectLeastOne'))
} }