From 2c0969ee0b55a731b5cdcc5f799c8c0ddd2ac91d Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Wed, 21 Aug 2024 15:24:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E6=89=BF=E8=BF=90=E5=95=86?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basicdata/basicdataCarrier.js | 17 +- src/option/basicdata/basicdataCarrier2.js | 10 +- src/option/basicdata/basicdataVehicle2.js | 24 +- .../basicdata/carrier/basicdataCarrier.vue | 1097 +++++++++++++---- .../basicdata/carrier/basicdataCarrier2.vue | 707 ----------- .../basicdata/vehicle/basicdataVehicle2.vue | 51 +- 6 files changed, 936 insertions(+), 970 deletions(-) delete mode 100644 src/views/basicdata/carrier/basicdataCarrier2.vue diff --git a/src/api/basicdata/basicdataCarrier.js b/src/api/basicdata/basicdataCarrier.js index 68885bec..2e7bed39 100644 --- a/src/api/basicdata/basicdataCarrier.js +++ b/src/api/basicdata/basicdataCarrier.js @@ -1,14 +1,10 @@ import request from '@/axios'; -export const getList = (current, size, params) => { +export const getList = params => { return request({ url: '/api/logpm-basicdata/carrier/list', method: 'get', - params: { - ...params, - current, - size, - }, + params, }); }; @@ -32,6 +28,15 @@ export const remove = ids => { }); }; +/** 提交承运商 */ +export const postCarrierSubmit = data => { + return request({ + url: '/api/logpm-basicdata/carrier/submit', + method: 'post', + data, + }); +}; + export const add = row => { return request({ url: '/api/logpm-basicdata/carrier/submit', diff --git a/src/option/basicdata/basicdataCarrier2.js b/src/option/basicdata/basicdataCarrier2.js index 2d73b849..3831f281 100644 --- a/src/option/basicdata/basicdataCarrier2.js +++ b/src/option/basicdata/basicdataCarrier2.js @@ -23,6 +23,7 @@ export const columnList = [ checkarr: [], fixed: false, sortable: true, + isTitleSearch: true, }, { label: '承运商编号', @@ -43,6 +44,7 @@ export const columnList = [ checkarr: [], fixed: false, sortable: true, + isTitleSearch: true, }, { label: '承运商名称', @@ -63,6 +65,7 @@ export const columnList = [ checkarr: [], fixed: false, sortable: true, + isTitleSearch: true, }, { label: '手机号', @@ -258,21 +261,20 @@ export const columnList = [ { prop: 'notes', label: '操作', - width: '200', type: 6, values: '', width: '200', checkarr: [], fixed: 'right', - sortable: true, + sortable: false, }, ]; export const formOptions = [ { label: '类型', - prop: 'typeName', - type: 1, + prop: 'type', + type: 3, checkarr: [], rules: [], }, diff --git a/src/option/basicdata/basicdataVehicle2.js b/src/option/basicdata/basicdataVehicle2.js index b15969d1..141590fe 100644 --- a/src/option/basicdata/basicdataVehicle2.js +++ b/src/option/basicdata/basicdataVehicle2.js @@ -23,16 +23,18 @@ export default [ checkarr: [], fixed: true, sortable: true, + isTitleSearch: true, }, { label: '车辆来源', - prop: 'vehicleSource', - type: 1, + prop: 'vehicleSourceName', + type: 3, values: '', width: '150', checkarr: [], fixed: false, sortable: true, + isTitleSearch: true, }, { label: '是否车头', @@ -55,23 +57,25 @@ export default [ }, { label: '挂车类型', - prop: 'trailerType', - type: 1, + prop: 'trailerTypeName', + type: 3, values: '', width: '150', checkarr: [], fixed: false, sortable: true, + isTitleSearch: true, }, { label: '车辆类型', - prop: 'vehicleModel', - type: 1, + prop: 'vehicleModelName', + type: 3, values: '', width: '150', checkarr: [], fixed: false, sortable: true, + isTitleSearch: true, }, { label: '车厢类型', @@ -105,13 +109,14 @@ export default [ }, { label: '付款方式', - prop: 'paymentMethod', - type: 1, + prop: 'paymentMethodName', + type: 3, values: '', width: '150', checkarr: [], fixed: false, sortable: true, + isTitleSearch: true, }, { label: '核定体积', @@ -315,13 +320,14 @@ export default [ }, { label: '承运商', - prop: 'carrierId', + prop: 'carrierIdName', type: 3, values: '', width: '150', checkarr: [], fixed: false, sortable: true, + isTitleSearch: true, }, { label: '车辆年审时间', diff --git a/src/views/basicdata/carrier/basicdataCarrier.vue b/src/views/basicdata/carrier/basicdataCarrier.vue index ea2dafcc..96f689ee 100644 --- a/src/views/basicdata/carrier/basicdataCarrier.vue +++ b/src/views/basicdata/carrier/basicdataCarrier.vue @@ -1,255 +1,888 @@ - diff --git a/src/views/basicdata/carrier/basicdataCarrier2.vue b/src/views/basicdata/carrier/basicdataCarrier2.vue deleted file mode 100644 index b0e8eed0..00000000 --- a/src/views/basicdata/carrier/basicdataCarrier2.vue +++ /dev/null @@ -1,707 +0,0 @@ - - - - - diff --git a/src/views/basicdata/vehicle/basicdataVehicle2.vue b/src/views/basicdata/vehicle/basicdataVehicle2.vue index ef7b7695..16659710 100644 --- a/src/views/basicdata/vehicle/basicdataVehicle2.vue +++ b/src/views/basicdata/vehicle/basicdataVehicle2.vue @@ -5,16 +5,43 @@
- - - - - - - - - - + @@ -85,7 +112,7 @@ background @size-change="sizeChange" @current-change="currentChange" - :current-page="page.currentPage" + :current-page="page.current" :page-sizes="[30, 50, 80, 120]" :page-size="page.size" layout="total, sizes, prev, pager, next, jumper" @@ -355,7 +382,7 @@ const searchChange = () => { const searchReset = () => { details.query = {}; details.stockupDate = []; - details.page.currentPage = 1; + details.page.current = 1; handleClearTableQuery(details.columnList); onLoad(details.page); };