From f4fc032065aec0a810c6d57bb1d3f49e42707354 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Mon, 1 Apr 2024 20:04:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8F=B8=E6=9C=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E7=9A=84=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basicdata/basicdataVehicle.js | 80 +- src/mixins/index.js | 3 + .../basicdata/basicdataDriverArtery1.js | 267 ++++++ src/router/views/index.js | 32 + src/styles/common.scss | 4 + src/views/basicdata/driverArtery/bas.vue | 501 +++++++++++ .../driverArtery/basicdataDriverArtery10.vue | 293 +++++++ .../driverArtery/basicdataDriverArteryAdd.vue | 811 ++++++++++++++++++ .../basicdataDriverArteryView.vue | 605 +++++++++++++ .../delivery/distributionStockArticle.vue | 2 - .../distributionStockArticleDiscuss.vue | 2 - .../distributionStockArticleMarket.vue | 2 - .../delivery/distributionStockArticleSelf.vue | 2 - .../inventory/distrilbutionBillLadingList.vue | 2 +- .../turndelivery/deliveryMarket.vue | 106 ++- 15 files changed, 2637 insertions(+), 75 deletions(-) create mode 100644 src/option/basicdata/basicdataDriverArtery1.js create mode 100644 src/views/basicdata/driverArtery/bas.vue create mode 100644 src/views/basicdata/driverArtery/basicdataDriverArtery10.vue create mode 100644 src/views/basicdata/driverArtery/basicdataDriverArteryAdd.vue create mode 100644 src/views/basicdata/driverArtery/basicdataDriverArteryView.vue diff --git a/src/api/basicdata/basicdataVehicle.js b/src/api/basicdata/basicdataVehicle.js index 484266ee..2f2cdde7 100644 --- a/src/api/basicdata/basicdataVehicle.js +++ b/src/api/basicdata/basicdataVehicle.js @@ -8,9 +8,9 @@ export const getList = (current, size, params) => { ...params, current, size, - } - }) -} + }, + }); +}; export const getPage = (current, size, params) => { return request({ url: '/api/logpm-basicdata/vehicle/page', @@ -19,51 +19,51 @@ export const getPage = (current, size, params) => { ...params, current, size, - } - }) -} + }, + }); +}; export const getVehicle = () => { return request({ url: '/api/logpm-basicdata/vehicle/dictionary', method: 'get', - }) -} + }); +}; -export const getDetail = (id) => { +export const getDetail = id => { return request({ url: '/api/logpm-basicdata/vehicle/detail', method: 'get', params: { - id - } - }) -} + id, + }, + }); +}; -export const remove = (ids) => { +export const remove = ids => { return request({ url: '/api/logpm-basicdata/vehicle/remove', method: 'post', params: { ids, - } - }) -} + }, + }); +}; -export const add = (row) => { +export const add = row => { return request({ url: '/api/logpm-basicdata/vehicle/save', method: 'post', - data: row - }) -} + data: row, + }); +}; -export const update = (row) => { +export const update = row => { return request({ url: '/api/logpm-basicdata/vehicle/update', method: 'post', - data: row - }) -} + data: row, + }); +}; export const getVehicleList = () => { return request({ @@ -74,10 +74,8 @@ export const getVehicleList = () => { // current, // size, // } - }) - - -} + }); +}; //导出 export const $_Exportvehicle = params => { @@ -87,4 +85,26 @@ export const $_Exportvehicle = params => { params, responseType: 'blob', }); -}; \ No newline at end of file +}; + +/** + * 仓库 + */ +export const getListName = params => { + return request({ + url: '/api/logpm-basicdata/warehouse/listName', + method: 'get', + params, + }); +}; + +/** + * 承运商 + */ +export const getDictionary = params => { + return request({ + url: '/api/logpm-basicdata/carrier/dictionary', + method: 'get', + params, + }); +}; diff --git a/src/mixins/index.js b/src/mixins/index.js index 2fabdfbc..7b42cce4 100644 --- a/src/mixins/index.js +++ b/src/mixins/index.js @@ -19,6 +19,7 @@ export default { methods: { //实时检测刷新token refreshToken() { + const that = this; console.log('刷新token'); this.refreshTime = setInterval(() => { const token = @@ -39,6 +40,8 @@ export default { }) .catch(err => { console.log(err); + that.$route.push('/login'); + clearInterval(this.refreshTime); this.refreshLock = false; }); } diff --git a/src/option/basicdata/basicdataDriverArtery1.js b/src/option/basicdata/basicdataDriverArtery1.js new file mode 100644 index 00000000..fcd643a9 --- /dev/null +++ b/src/option/basicdata/basicdataDriverArtery1.js @@ -0,0 +1,267 @@ +/** 自提详情内表格 */ +export const columnList = [ + { + prop: '', + label: '复选框', + type: 0, + width: 55, + fixed: true, + }, + { + prop: '', + label: '序号', + type: 12, + values: '', + width: 55, + fixed: true, + }, + { + prop: 'name', + label: '姓名', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: true, + sortable: true, + }, + { + prop: 'phone', + label: '手机号码', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'typeName', + label: '司机类型', + type: 3, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'jobTypeName', + label: '职务类型', + type: 3, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'drivingTypeName', + label: '准驾车型', + type: 3, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'drivingTypeName', + label: '准驾车型', + type: 3, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'bindVehicle', + label: '绑定车辆', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'contractStartTime', + label: '合同开始时间', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'contractEndTime', + label: '合同结束时间', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'idCard', + label: '身份证号', + type: 1, + values: '', + width: '180', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'genderName', + label: '性别', + type: 3, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'warehouseNames', + label: '仓库', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'residentialAddress', + label: '居住地址', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'bankTypeName', + label: '银行类型', + type: 3, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'bankCardNub', + label: '银行卡号', + type: 2, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'driverLicenseNub', + label: '驾驶证号', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'driverLicenseOrgan', + label: '驾驶证发证机关', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'driverLicenseStartTime', + label: '驾驶证起始日期', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'driverLicenseEndTime', + label: '驾驶证到期日期', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'employeeQualificationNub', + label: '从业资格证编号', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'roadOperationLicenseNub', + label: '道路经营许可证号', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'carrierId', + label: '承运商', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'transportationAgreement', + label: '运输协议', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: 'notes', + label: '备注', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + }, + { + prop: '', + label: '操作', + type: 6, + values: '', + width: '200', + checkarr: [], + fixed: 'right', + }, +]; diff --git a/src/router/views/index.js b/src/router/views/index.js index 3a31f9b2..cba64c83 100644 --- a/src/router/views/index.js +++ b/src/router/views/index.js @@ -359,6 +359,38 @@ export default [ /* webpackChunkName: "views" */ '@/views/distribution/inventory/delivery/orderLogs.vue' ), }, + { + path: '/basicdata/driverArtery/bas', + name: '司机信息1', + meta: { + data: 'data', + }, + component: () => + import(/* webpackChunkName: "views" */ '@/views/basicdata/driverArtery/bas.vue'), + }, + { + path: '/basicdata/driverArtery/basicdataDriverArteryAdd', + name: '司机信息新增', + meta: { + data: 'data', + keepAlive: true, + }, + component: () => + import( + /* webpackChunkName: "views" */ '@/views/basicdata/driverArtery/basicdataDriverArteryAdd.vue' + ), + }, + { + path: '/basicdata/driverArtery/basicdataDriverArteryView', + name: '司机信息查看', + meta: { + data: 'data', + }, + component: () => + import( + /* webpackChunkName: "views" */ '@/views/basicdata/driverArtery/basicdataDriverArteryView.vue' + ), + }, ], }, { diff --git a/src/styles/common.scss b/src/styles/common.scss index 46c4e35c..5030c719 100644 --- a/src/styles/common.scss +++ b/src/styles/common.scss @@ -201,6 +201,10 @@ a { word-break: break-all; } +.fwb { + font-weight: bold; +} + // 头部搜索 .search_container { display: grid; diff --git a/src/views/basicdata/driverArtery/bas.vue b/src/views/basicdata/driverArtery/bas.vue new file mode 100644 index 00000000..7ea8e64c --- /dev/null +++ b/src/views/basicdata/driverArtery/bas.vue @@ -0,0 +1,501 @@ + + + + + diff --git a/src/views/basicdata/driverArtery/basicdataDriverArtery10.vue b/src/views/basicdata/driverArtery/basicdataDriverArtery10.vue new file mode 100644 index 00000000..93ec9de4 --- /dev/null +++ b/src/views/basicdata/driverArtery/basicdataDriverArtery10.vue @@ -0,0 +1,293 @@ + + + + + diff --git a/src/views/basicdata/driverArtery/basicdataDriverArteryAdd.vue b/src/views/basicdata/driverArtery/basicdataDriverArteryAdd.vue new file mode 100644 index 00000000..b35f205e --- /dev/null +++ b/src/views/basicdata/driverArtery/basicdataDriverArteryAdd.vue @@ -0,0 +1,811 @@ + + + + + diff --git a/src/views/basicdata/driverArtery/basicdataDriverArteryView.vue b/src/views/basicdata/driverArtery/basicdataDriverArteryView.vue new file mode 100644 index 00000000..f5f2ddf2 --- /dev/null +++ b/src/views/basicdata/driverArtery/basicdataDriverArteryView.vue @@ -0,0 +1,605 @@ + + + + + diff --git a/src/views/distribution/inventory/delivery/distributionStockArticle.vue b/src/views/distribution/inventory/delivery/distributionStockArticle.vue index 1e6618b1..2d0927e9 100644 --- a/src/views/distribution/inventory/delivery/distributionStockArticle.vue +++ b/src/views/distribution/inventory/delivery/distributionStockArticle.vue @@ -530,8 +530,6 @@ export default { }, loginRules: { typeService: [{ required: true, message: '请选择服务类型', trigger: ['blur', 'change'] }], - cost: [{ required: true, message: '请输入费用', trigger: ['blur', 'change'] }], - cause: [{ required: true, message: '请输入原因', trigger: ['blur', 'change'] }], }, /** loading */ loadingObj: { diff --git a/src/views/distribution/inventory/delivery/distributionStockArticleDiscuss.vue b/src/views/distribution/inventory/delivery/distributionStockArticleDiscuss.vue index 97e7f97f..9c9c4baf 100644 --- a/src/views/distribution/inventory/delivery/distributionStockArticleDiscuss.vue +++ b/src/views/distribution/inventory/delivery/distributionStockArticleDiscuss.vue @@ -454,8 +454,6 @@ export default { }, serveRules: { typeService: [{ required: true, message: '请选择服务类型', trigger: ['blur', 'change'] }], - cost: [{ required: true, message: '请输入费用', trigger: ['blur', 'change'] }], - cause: [{ required: true, message: '请输入原因', trigger: ['blur', 'change'] }], }, // 表单数据 form: {}, diff --git a/src/views/distribution/inventory/delivery/distributionStockArticleMarket.vue b/src/views/distribution/inventory/delivery/distributionStockArticleMarket.vue index 310dab8e..ae55f31e 100644 --- a/src/views/distribution/inventory/delivery/distributionStockArticleMarket.vue +++ b/src/views/distribution/inventory/delivery/distributionStockArticleMarket.vue @@ -428,8 +428,6 @@ export default { }, serveRules: { typeService: [{ required: true, message: '请选择服务类型', trigger: ['blur', 'change'] }], - cost: [{ required: true, message: '请输入费用', trigger: ['blur', 'change'] }], - cause: [{ required: true, message: '请输入原因', trigger: ['blur', 'change'] }], }, // 表单数据 form: {}, diff --git a/src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue b/src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue index 0c25e9f8..45f1cd63 100644 --- a/src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue +++ b/src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue @@ -570,8 +570,6 @@ export default { }, serveRules: { typeService: [{ required: true, message: '请选择服务类型', trigger: ['blur', 'change'] }], - cost: [{ required: true, message: '请输入费用', trigger: ['blur', 'change'] }], - cause: [{ required: true, message: '请输入原因', trigger: ['blur', 'change'] }], }, // 分页信息 page: { diff --git a/src/views/distribution/inventory/distrilbutionBillLadingList.vue b/src/views/distribution/inventory/distrilbutionBillLadingList.vue index f6f44bac..dc30550d 100644 --- a/src/views/distribution/inventory/distrilbutionBillLadingList.vue +++ b/src/views/distribution/inventory/distrilbutionBillLadingList.vue @@ -553,7 +553,7 @@ export default { label: '操作', type: 6, values: '', - width: '250', + width: '300', checkarr: [], fixed: 'right', hide: true, diff --git a/src/views/distribution/turndelivery/deliveryMarket.vue b/src/views/distribution/turndelivery/deliveryMarket.vue index 6e222095..16b16568 100644 --- a/src/views/distribution/turndelivery/deliveryMarket.vue +++ b/src/views/distribution/turndelivery/deliveryMarket.vue @@ -1,6 +1,6 @@ + +