|
@@ -17,7 +17,7 @@
|
|
<template v-if="toggleSearchStatus">
|
|
<template v-if="toggleSearchStatus">
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-item label="简称(abbrevation)" :label-col="labelCol1" :wrapper-col="wrapperCol1">
|
|
<a-form-item label="简称(abbrevation)" :label-col="labelCol1" :wrapper-col="wrapperCol1">
|
|
- <a-input placeholder="请输入" v-model:value="queryParams.abbrevation"></a-input>
|
|
|
|
|
|
+ <a-input placeholder="请输入" v-model:value="queryParams.abbreviation"></a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
@@ -27,7 +27,7 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-item label="联系人(contact)" >
|
|
<a-form-item label="联系人(contact)" >
|
|
- <a-input placeholder="请输入" v-model:value="queryParams.contact"></a-input>
|
|
|
|
|
|
+ <a-input placeholder="请输入" v-model:value="queryParams.contacts"></a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
@@ -47,7 +47,7 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-item label="临期天数(deadline days)" :label-col="labelCol1" :wrapper-col="wrapperCol1">
|
|
<a-form-item label="临期天数(deadline days)" :label-col="labelCol1" :wrapper-col="wrapperCol1">
|
|
- <a-input placeholder="请输入" v-model:value="queryParams.deadlineDays"></a-input>
|
|
|
|
|
|
+ <a-input placeholder="请输入" v-model:value="queryParams.deadlineReminder"></a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
@@ -74,7 +74,7 @@
|
|
<a-card :body-style="{ padding: '10px' }" :bordered="false" style="margin: 10px;">
|
|
<a-card :body-style="{ padding: '10px' }" :bordered="false" style="margin: 10px;">
|
|
<!-- 操作按钮区域 -->
|
|
<!-- 操作按钮区域 -->
|
|
<div style="margin-bottom: 4px;">
|
|
<div style="margin-bottom: 4px;">
|
|
- <a-button @click="handleExport" type="primary" preIcon="ant-design:plus" style="margin-right: 1%;">导出(export)</a-button>
|
|
|
|
|
|
+ <a-button @click="handleExport" type="primary" style="margin-right: 1%;">导出(export)</a-button>
|
|
<!-- <a-dropdown v-if="selectedRowKeys.length > 0" >
|
|
<!-- <a-dropdown v-if="selectedRowKeys.length > 0" >
|
|
<template #overlay>
|
|
<template #overlay>
|
|
<a-menu>
|
|
<a-menu>
|
|
@@ -136,6 +136,8 @@
|
|
import { filterObj, getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
|
import { filterObj, getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
|
import { JDictSelectTag} from '/@/components/Form';
|
|
import { JDictSelectTag} from '/@/components/Form';
|
|
import { downloadFile } from '/@/utils/common/renderUtils';
|
|
import { downloadFile } from '/@/utils/common/renderUtils';
|
|
|
|
+ import { useMethods } from '/@/hooks/system/useMethods';
|
|
|
|
+ const { handleExportXls, handleImportXls } = useMethods();
|
|
const columns = [
|
|
const columns = [
|
|
{
|
|
{
|
|
title: '编码(code)',
|
|
title: '编码(code)',
|
|
@@ -151,8 +153,8 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '简称(abbrevation)',
|
|
title: '简称(abbrevation)',
|
|
- key: 'abbrevation',
|
|
|
|
- dataIndex: 'abbrevation',
|
|
|
|
|
|
+ key: 'abbreviation',
|
|
|
|
+ dataIndex: 'abbreviation',
|
|
align:"center"
|
|
align:"center"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -164,7 +166,7 @@
|
|
{
|
|
{
|
|
title: '联系人(contact)',
|
|
title: '联系人(contact)',
|
|
key: 'contact',
|
|
key: 'contact',
|
|
- dataIndex: 'contact',
|
|
|
|
|
|
+ dataIndex: 'contacts',
|
|
align:"center"
|
|
align:"center"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -227,8 +229,8 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '临期天数(deadline days)',
|
|
title: '临期天数(deadline days)',
|
|
- key: 'deadlineDays',
|
|
|
|
- dataIndex: 'deadlineDays',
|
|
|
|
|
|
+ key: 'deadlineReminder',
|
|
|
|
+ dataIndex: 'deadlineReminder',
|
|
align:"center",
|
|
align:"center",
|
|
},
|
|
},
|
|
];
|
|
];
|
|
@@ -254,13 +256,13 @@
|
|
const queryParams = ref({
|
|
const queryParams = ref({
|
|
code:'',
|
|
code:'',
|
|
name:'',
|
|
name:'',
|
|
- abbrevation:'',
|
|
|
|
|
|
+ abbreviation:'',
|
|
dutyParagraph:'',
|
|
dutyParagraph:'',
|
|
- contact:'',
|
|
|
|
|
|
+ contacts:'',
|
|
phone:'',
|
|
phone:'',
|
|
paymentTerms:'',
|
|
paymentTerms:'',
|
|
country:'',
|
|
country:'',
|
|
- deadlineDays:'',
|
|
|
|
|
|
+ deadlineReminder:'',
|
|
originalFactory:'',
|
|
originalFactory:'',
|
|
});
|
|
});
|
|
let pagination = ref({
|
|
let pagination = ref({
|
|
@@ -276,13 +278,13 @@
|
|
});
|
|
});
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
//初始加载页面
|
|
//初始加载页面
|
|
- // loadData();
|
|
|
|
|
|
+ loadData();
|
|
// getOptiom()
|
|
// getOptiom()
|
|
});
|
|
});
|
|
function loadData(){
|
|
function loadData(){
|
|
let params = getQueryParams();
|
|
let params = getQueryParams();
|
|
defHttp
|
|
defHttp
|
|
- .get({ url: '/baseCode/baseProductArchive/list',params}, { isTransformResponse: false })
|
|
|
|
|
|
+ .get({ url: '/cuspCode/cuspSupplierProfile/list2',params}, { isTransformResponse: false })
|
|
.then((res) => {
|
|
.then((res) => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
dataSource.value = res.result.records;
|
|
dataSource.value = res.result.records;
|
|
@@ -316,13 +318,13 @@
|
|
queryParams.value = {
|
|
queryParams.value = {
|
|
code:'',
|
|
code:'',
|
|
name:'',
|
|
name:'',
|
|
- abbrevation:'',
|
|
|
|
|
|
+ abbreviation:'',
|
|
dutyParagraph:'',
|
|
dutyParagraph:'',
|
|
- contact:'',
|
|
|
|
|
|
+ contacts:'',
|
|
phone:'',
|
|
phone:'',
|
|
paymentTerms:'',
|
|
paymentTerms:'',
|
|
country:'',
|
|
country:'',
|
|
- deadlineDays:'',
|
|
|
|
|
|
+ deadlineReminder:'',
|
|
originalFactory:'',
|
|
originalFactory:'',
|
|
}
|
|
}
|
|
pagination.value.current =1;
|
|
pagination.value.current =1;
|
|
@@ -336,7 +338,8 @@
|
|
selectedRowKeys.value = keys
|
|
selectedRowKeys.value = keys
|
|
}
|
|
}
|
|
function handleExport(){
|
|
function handleExport(){
|
|
-
|
|
|
|
|
|
+ let paramsForm = getQueryParams();
|
|
|
|
+ handleExportXls('供应商资质临期', '/cuspCode/cuspSupplierProfile/exportXls2', filterObj(paramsForm))
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style scoped lang="less">
|
|
<style scoped lang="less">
|