调取-勾选清单中已经存在的数据的提示语

This commit is contained in:
范强强
2023-03-28 09:11:55 +08:00
parent 22b5391b2e
commit 89503ec389
@@ -33,8 +33,8 @@
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons"> <span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
<a-col :md="12" :sm="24"> <a-col :md="12" :sm="24">
<!-- <globalAdvancedQuery ref="globalAdvancedQueryRef"--> <!-- <globalAdvancedQuery ref="globalAdvancedQueryRef"-->
<!-- @handleSuperQuery="handleSuperQuery"--> <!-- @handleSuperQuery="handleSuperQuery"-->
<!-- :fieldList="fieldList"/>--> <!-- :fieldList="fieldList"/>-->
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button> <a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button> <a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
</a-col> </a-col>
@@ -52,18 +52,18 @@
:loading="loading"> :loading="loading">
</a-table> </a-table>
<!-- <div class="page" v-if="dataList.length > 0">--> <!-- <div class="page" v-if="dataList.length > 0">-->
<!-- <a-pagination--> <!-- <a-pagination-->
<!-- :show-total="total => $t('total')+` ${total} `+$t('strip')"--> <!-- :show-total="total => $t('total')+` ${total} `+$t('strip')"-->
<!-- show-quick-jumper--> <!-- show-quick-jumper-->
<!-- show-size-changer--> <!-- show-size-changer-->
<!-- :page-size.sync="pageSize"--> <!-- :page-size.sync="pageSize"-->
<!-- :total="total"--> <!-- :total="total"-->
<!-- :current="pageNo"--> <!-- :current="pageNo"-->
<!-- @change="onChange"--> <!-- @change="onChange"-->
<!-- @showSizeChange="SizeChange"--> <!-- @showSizeChange="SizeChange"-->
<!-- />--> <!-- />-->
<!-- </div>--> <!-- </div>-->
</div> </div>
<div class="drawer-bootom-button"> <div class="drawer-bootom-button">
@@ -74,10 +74,10 @@
</template> </template>
<script> <script>
import { getAction, postAction } from '@/api/manage' import { getAction, postAction } from '@/api/manage'
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index' import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
export default { export default {
name: 'transferList', name: 'transferList',
components: { components: {
globalAdvancedQuery globalAdvancedQuery
@@ -95,7 +95,7 @@ export default {
align: 'left', align: 'left',
dataIndex: 'category', dataIndex: 'category',
width: 150, width: 150,
ellipsis: true, ellipsis: true
}, },
{ {
title: this.$t('inspectionItems'), title: this.$t('inspectionItems'),
@@ -110,29 +110,29 @@ export default {
align: 'left', align: 'left',
dataIndex: 'wvtaId', dataIndex: 'wvtaId',
width: 150, width: 150,
ellipsis: true, ellipsis: true
}, },
{ {
title: this.$t('standard'), title: this.$t('standard'),
align: 'left', align: 'left',
dataIndex: 'serialNumber', dataIndex: 'serialNumber',
width: 150, width: 150,
ellipsis: true, ellipsis: true
}, },
{ {
title: this.$t('areaOfResponsibility'), title: this.$t('areaOfResponsibility'),
align: 'left', align: 'left',
dataIndex: 'dutyTerritoryName', dataIndex: 'dutyTerritoryName',
width: 200, width: 200,
ellipsis: true, ellipsis: true
}, },
{ {
title: this.$t('typeOfDeliverables'), title: this.$t('typeOfDeliverables'),
align: 'left', align: 'left',
dataIndex: 'deliverableTypeName', dataIndex: 'deliverableTypeName',
width: 200, width: 200,
ellipsis: true, ellipsis: true
}, }
], ],
fieldList: [ fieldList: [
{ {
@@ -143,19 +143,19 @@ export default {
{ {
type: 'string', type: 'string',
value: 'inspectionItem', value: 'inspectionItem',
text: this.$t('inspectionItems'), text: this.$t('inspectionItems')
}, },
{ {
type: '', type: '',
value: 'dutyTerritory', value: 'dutyTerritory',
text: this.$t('areaOfResponsibility'), text: this.$t('areaOfResponsibility'),
dictCode: 'duty_territory'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框 dictCode: 'duty_territory'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
}, }
], ],
dataList: [], dataList: [],
content: [], content: [],
loading: false, loading: false,
dummyInventoryBaseId:'', dummyInventoryBaseId: '',
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
total: 0 total: 0
@@ -239,11 +239,26 @@ export default {
postAction('project/projectCertificationInventoryEO/callAdd', { postAction('project/projectCertificationInventoryEO/callAdd', {
authDummyInventoryBaseId: this.dummyInventoryBaseId, authDummyInventoryBaseId: this.dummyInventoryBaseId,
projectLibraryId: this.$route.query.id, projectLibraryId: this.$route.query.id,
authDummyInventoryInfoIds: selectedRowKeys.join(','), authDummyInventoryInfoIds: selectedRowKeys.join(',')
}).then((res) => { }).then((res) => {
if (res.success) { if (res.success) {
this.confirmLoading = false this.confirmLoading = false
if (res.result && res.result.length > 0) {
let detailedWarningList = []
res.result.forEach(val => {
detailedWarningList.push(
< div > { val } < /div>)
})
this.$warning({
content: (
< div >
{ detailedWarningList }
< /div>
)
})
} else {
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))
}
this.visible = false this.visible = false
this.selectedRowKeys = [] this.selectedRowKeys = []
this.$emit('transferListFormHomo') this.$emit('transferListFormHomo')
@@ -255,18 +270,18 @@ export default {
} else { } else {
this.$message.warning(this.$t('selectLeastOne')) this.$message.warning(this.$t('selectLeastOne'))
} }
},
} }
} }
}
</script> </script>
<style scoped> <style scoped>
.page { .page {
text-align: right; text-align: right;
margin-top: 20px; margin-top: 20px;
} }
.drawer-bootom-button { .drawer-bootom-button {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
z-index: 100; z-index: 100;
@@ -277,16 +292,16 @@ export default {
left: 0; left: 0;
background: #fff; background: #fff;
border-radius: 0 0 2px 2px; border-radius: 0 0 2px 2px;
} }
.box-title-text { .box-title-text {
line-height: 1.4; line-height: 1.4;
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 10px; margin-bottom: 10px;
} }
.title-text { .title-text {
width: 20%; width: 20%;
min-width: 110px; min-width: 110px;
color: #000F16; color: #000F16;
@@ -299,16 +314,16 @@ export default {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.box-input { .box-input {
display: inline-block; display: inline-block;
width: 70%; width: 70%;
height: 38px; height: 38px;
margin-top: 2px; margin-top: 2px;
} }
.box-button { .box-button {
height: 38px; height: 38px;
} }
</style> </style>