From 641c0825ded51d1ff487822c87002d96caf57282 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Wed, 14 Aug 2024 18:20:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=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 | 41 +- src/api/basicdata/basicdataVehicle.js | 8 + src/api/distribution/SeparateTheList.js | 0 src/option/basicdata/basicdataCarrier2.js | 503 +++++----- src/option/basicdata/basicdataVehicle2.js | 2 +- src/option/distribution/SeparateTheList.js | 48 + .../basicdata/carrier/basicdataCarrier2.vue | 872 ++++++++---------- .../basicdata/vehicle/basicdataVehicle2.vue | 91 +- .../vehicle/basicdataVehicleAddForm.vue | 356 ++++++- .../vehicle/basicdataVehicleInfo.vue | 2 +- .../inventory/delivery/SeparateTheList.vue | 372 ++++++++ .../system/pdaversion/pdaversionManage.vue | 73 +- 12 files changed, 1527 insertions(+), 841 deletions(-) create mode 100644 src/api/distribution/SeparateTheList.js create mode 100644 src/option/distribution/SeparateTheList.js create mode 100644 src/views/distribution/inventory/delivery/SeparateTheList.vue diff --git a/src/api/basicdata/basicdataCarrier.js b/src/api/basicdata/basicdataCarrier.js index 17eb3805..68885bec 100644 --- a/src/api/basicdata/basicdataCarrier.js +++ b/src/api/basicdata/basicdataCarrier.js @@ -8,43 +8,42 @@ export const getList = (current, size, params) => { ...params, current, size, - } - }) -} + }, + }); +}; -export const getDetail = (id) => { +export const getDetail = id => { return request({ url: '/api/logpm-basicdata/carrier/detail', method: 'get', params: { - id - } - }) -} + id, + }, + }); +}; -export const remove = (ids) => { +export const remove = ids => { return request({ url: '/api/logpm-basicdata/carrier/remove', method: 'post', params: { ids, - } - }) -} + }, + }); +}; -export const add = (row) => { +export const add = row => { return request({ url: '/api/logpm-basicdata/carrier/submit', method: 'post', - data: row - }) -} + data: row, + }); +}; -export const update = (row) => { +export const update = row => { return request({ url: '/api/logpm-basicdata/carrier/submit', method: 'post', - data: row - }) -} - + data: row, + }); +}; diff --git a/src/api/basicdata/basicdataVehicle.js b/src/api/basicdata/basicdataVehicle.js index 3e19fb54..e6b17057 100644 --- a/src/api/basicdata/basicdataVehicle.js +++ b/src/api/basicdata/basicdataVehicle.js @@ -27,6 +27,7 @@ export const getVehicle = () => { }); }; +/** 车辆详情 */ export const getDetail = id => { return request({ url: '/api/logpm-basicdata/vehicle/detail', @@ -106,3 +107,10 @@ export const getDictionary = params => { params, }); }; + +export const getVehicleExport = () => { + return request({ + url: '/api/blade-basicdataVehicle/basicdataVehicle/export-basicdataVehicle', + method: 'get', + }); +}; diff --git a/src/api/distribution/SeparateTheList.js b/src/api/distribution/SeparateTheList.js new file mode 100644 index 00000000..e69de29b diff --git a/src/option/basicdata/basicdataCarrier2.js b/src/option/basicdata/basicdataCarrier2.js index aeffd954..8c1c4bf0 100644 --- a/src/option/basicdata/basicdataCarrier2.js +++ b/src/option/basicdata/basicdataCarrier2.js @@ -1,232 +1,271 @@ -export default { - expand: false, - index: true, - border: true, - selection: true, - column: [ - { - label: "主键", - prop: "id", - display: false, - hide: true, - }, - { - label: "租户号", - prop: "tenantId", - display: false, - hide: true, - }, - { - label: "创建人", - prop: "createUser", - display: false, - hide: true, - }, - { - label: "创建时间", - prop: "createTime", - display: false, - hide: true, - }, - { - label: "更新人", - prop: "updateUser", - display: false, - hide: true, - }, - { - label: "更新时间", - prop: "updateTime", - display: false, - hide: true, - }, - { - label: "状态", - prop: "status", - display: false, - hide: true, - }, - { - label: "是否已删除;1-未删除,2-已删除", - prop: "isDeleted", - display: false, - hide: true, - }, - { - label: "创建部门", - prop: "createDept", - display: false, - hide: true, - }, - { - label: "类型", - prop: "type", - search: true, - width:"100px" - }, - { - label: "承运商编号", - prop: "number", - search: true, - width:"100px" - }, - { - label: "集团ID", - prop: "groupId", - search: true, - width:"100px" - }, - { - label: "承运商电话", - prop: "carrierPhone", - width:"100px" - }, - // { - // label: "绑定仓库Id", - // prop: "warehouseId", - // }, - { - label: "负责人", - prop: "head", - search: true, - width:"100px" - }, - { - label: "手机号", - prop: "headPhone", - width:"100px" - }, - { - label: "营业执照注册号", - prop: "licenseNub", - width:"150px" - }, - { - label: "法人", - prop: "legalPerson", - width:"100px" - }, - { - label: "法人电话", - prop: "legalPersonPhone", - width:"100px" - }, - { - label: "法人身份证", - prop: "legalPersonId", - width:"100px" - }, - { - label: "邮箱", - prop: "mailbox", - width:"100px" - }, - { - label: "客服电话", - prop: "customerServicePhone", - width:"100px" - }, - { - label: "合同起始时间", - prop: "contractStartTime", - format: "YYYY-MM-DD", - valueFormat: "YYYY-MM-DD", - width:"150px" - }, - { - label: "合同结束时间", - prop: "contractEndTime", - format: "YYYY-MM-DD", - valueFormat: "YYYY-MM-DD", - width:"150px" - }, - // { - // label: "合同附件", - // prop: "contractAppendices", - // }, - // { - // label: "道路运输许可证图片", - // prop: "roadTransportPhoto", - // width:"100px" - // }, - { - label: "道路运输许可证编号", - prop: "roadTransportNub", - width:"170px" - }, - { - label: "物流园", - prop: "logisticsPark", - width:"100px" - }, - { - label: "自由车辆数", - prop: "freeVehiclesNub", - width:"100px" - }, - { - label: "外部车辆数", - prop: "externalVehiclesNub", - width:"100px" - }, - { - label: "星级", - prop: "starRating", - width:"80px" - }, - { - label: "定位地址", - prop: "locationAddress", - width:"100px" - }, - { - label: "经度", - prop: "longitude", - width:"100px" - }, - { - label: "纬度", - prop: "latitude", - width:"100px" - }, - { - label: "备注", - prop: "notes", - width:"100px" - }, - // { - // label: "照片信息", - // prop: "photo", - // }, - { - label: "预留1", - prop: "reserve1", - display: false, - hide: true, - }, - { - label: "预留2", - prop: "reserve2", - display: false, - hide: true, - }, - { - label: "预留3", - prop: "reserve3", - display: false, - hide: true, - }, - { - label: "预留4", - prop: "reserve4", - display: false, - hide: true, - }, - { - label: "预留5", - prop: "reserve5", - display: false, - hide: true, - }, - ] -} +export const columnList = [ + { + prop: '', + label: '复选框', + type: 0, + width: 55, + fixed: true, + }, + { + prop: '', + label: '序号', + type: 12, + values: '', + width: 55, + fixed: true, + }, + { + label: '类型', + prop: 'typeName', + type: 3, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '承运商编号', + prop: 'number', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '承运商电话', + prop: 'carrierPhone', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '承运商名称', + prop: 'carrierPhone', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '负责人', + prop: 'head', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '手机号', + prop: 'headPhone', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '营业执照注册号', + prop: 'licenseNub', + width: '150px', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '法人', + prop: 'legalPerson', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '法人电话', + prop: 'legalPersonPhone', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '法人身份证', + prop: 'legalPersonId', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '邮箱', + prop: 'mailbox', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '客服电话', + prop: 'customerServicePhone', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '合同起始时间', + prop: 'contractStartTime', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '合同结束时间', + prop: 'contractEndTime', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '道路运输许可证编号', + prop: 'roadTransportNub', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '物流园', + prop: 'logisticsPark', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '自由车辆数', + prop: 'freeVehiclesNub', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '外部车辆数', + prop: 'externalVehiclesNub', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '星级', + prop: 'starRating', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '定位地址', + prop: 'locationAddress', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '经度', + prop: 'longitude', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '纬度', + prop: 'latitude', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '备注', + prop: 'notes', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + label: '道路运输许可证图片', + prop: 'notes', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'notes', + label: '操作', + width: '200', + type: 6, + values: '', + width: '200', + checkarr: [], + fixed: 'right', + sortable: true, + }, +]; + +export default columnList; diff --git a/src/option/basicdata/basicdataVehicle2.js b/src/option/basicdata/basicdataVehicle2.js index 981a55dd..b15969d1 100644 --- a/src/option/basicdata/basicdataVehicle2.js +++ b/src/option/basicdata/basicdataVehicle2.js @@ -21,7 +21,7 @@ export default [ values: '', width: '150', checkarr: [], - fixed: false, + fixed: true, sortable: true, }, { diff --git a/src/option/distribution/SeparateTheList.js b/src/option/distribution/SeparateTheList.js new file mode 100644 index 00000000..bbf70a26 --- /dev/null +++ b/src/option/distribution/SeparateTheList.js @@ -0,0 +1,48 @@ +/** 自提详情内表格 */ +export const columnList = [ + // { + // prop: '', + // label: '复选框', + // type: 0, + // width: 55, + // fixed: true, + // }, + { + prop: '', + label: '序号', + type: 12, + values: '', + width: 55, + fixed: true, + }, + { + prop: 'oprationUserName', + label: '操作人', + type: 1, + values: '', + width: '150', + fixed: true, + sortable: true, + head: false, + }, + { + prop: 'createTime', + label: '操作时间', + type: 1, + values: '', + width: '150', + fixed: true, + sortable: true, + head: false, + }, + { + prop: 'content', + label: '操作内容', + type: 1, + values: '', + width: '600', + fixed: true, + sortable: true, + head: false, + }, +]; diff --git a/src/views/basicdata/carrier/basicdataCarrier2.vue b/src/views/basicdata/carrier/basicdataCarrier2.vue index f0e14b1e..d8944e9b 100644 --- a/src/views/basicdata/carrier/basicdataCarrier2.vue +++ b/src/views/basicdata/carrier/basicdataCarrier2.vue @@ -1,532 +1,402 @@