From 2a7df651090f8e383a83fda8f655a985456900c7 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Thu, 14 Mar 2024 12:00:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E8=B4=A7=E6=96=B0=E5=A2=9E=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=BF=90=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../arteryDistrilbutionBillLadingList.js | 11 +- .../arteryDistrilbutionBillLadingList.js | 70 +++-- .../distributionDeliveryListmar.vue | 2 +- .../addArteryDistrilbutionBillLadingList.vue | 11 +- .../arteryDistrilbutionBillLadingList.vue | 291 +++++++++--------- 5 files changed, 219 insertions(+), 166 deletions(-) diff --git a/src/api/distribution/arteryDistrilbutionBillLadingList.js b/src/api/distribution/arteryDistrilbutionBillLadingList.js index b3fa47dd..d5d6a502 100644 --- a/src/api/distribution/arteryDistrilbutionBillLadingList.js +++ b/src/api/distribution/arteryDistrilbutionBillLadingList.js @@ -143,4 +143,13 @@ export const postFindWaybillListNotBillladingId = data => { }); }; -// /logpm-trunkline/billlading/findBillladingClientByName +/** + * 查询运单 + */ +export const postFindWaybillBillladingList = data => { + return request({ + url: '/api/logpm-warehouse/warehouseWaybill/findWaybillBillladingList', + method: 'post', + data, + }); +}; diff --git a/src/option/distribution/arteryDistrilbutionBillLadingList.js b/src/option/distribution/arteryDistrilbutionBillLadingList.js index 5b340a92..3a204833 100644 --- a/src/option/distribution/arteryDistrilbutionBillLadingList.js +++ b/src/option/distribution/arteryDistrilbutionBillLadingList.js @@ -20,7 +20,7 @@ export const columnList = [ { prop: 'billladingCode', label: '提货批次', - type: 6, + type: 13, values: '', width: '250', checkarr: [], @@ -31,7 +31,7 @@ export const columnList = [ { prop: 'carNumber', label: '车牌号', - type: 1, + type: 2, values: '', width: '130', checkarr: [], @@ -41,7 +41,7 @@ export const columnList = [ { prop: 'driverName', label: '司机名称', - type: 1, + type: 2, values: '', width: '130', checkarr: [], @@ -51,7 +51,7 @@ export const columnList = [ { prop: 'driverPhone', label: '司机电话', - type: 1, + type: 2, values: '', width: '130', checkarr: [], @@ -61,7 +61,7 @@ export const columnList = [ { prop: 'warehouseName', label: '仓库名称', - type: 1, + type: 2, values: '', width: '130', checkarr: [], @@ -119,22 +119,56 @@ export const columnList = [ sortable: true, }, { - prop: 'billladingStatus', + prop: 'billladingStatusName', label: '状态', - type: 1, - values: '', - width: '130', - checkarr: [], - fixed: false, - sortable: true, - }, - { - prop: 'chargeType', + type: 3, + values: '', + width: '130', + checkarr: [ + { + label: '未开始', + value: 1, + }, + { + label: '提货中', + value: 2, + }, + { + label: '已完成', + value: 3, + }, + { + label: '已结算', + value: 4, + }, + { + label: '已取消', + value: 5, + }, + ], + fixed: false, + sortable: true, + }, + { + prop: 'chargeTypeName', label: '计费模式', - type: 1, + type: 3, values: '', width: '130', - checkarr: [], + checkarr: [ + { + label: '按件计费', + value: 1, + }, + { + label: '按重量计费', + value: 2, + }, + { + label: '按体积计费', + value: 3, + }, + ], fixed: false, sortable: true, }, @@ -211,7 +245,7 @@ export const columnList = [ { prop: 'createUserName', label: '创建人', - type: 1, + type: 2, values: '', width: '130', checkarr: [], diff --git a/src/views/distribution/deliverylist/distributionDeliveryListmar.vue b/src/views/distribution/deliverylist/distributionDeliveryListmar.vue index 150c66d2..8b1206e0 100644 --- a/src/views/distribution/deliverylist/distributionDeliveryListmar.vue +++ b/src/views/distribution/deliverylist/distributionDeliveryListmar.vue @@ -164,7 +164,7 @@ - +
diff --git a/src/views/distribution/inventory/addArteryDistrilbutionBillLadingList.vue b/src/views/distribution/inventory/addArteryDistrilbutionBillLadingList.vue index fa00c237..9bd6f2e6 100644 --- a/src/views/distribution/inventory/addArteryDistrilbutionBillLadingList.vue +++ b/src/views/distribution/inventory/addArteryDistrilbutionBillLadingList.vue @@ -43,6 +43,7 @@ remote reserve-keyword placeholder="节点" + ref="selectNodeRef" @change="val => destinationWarehouseNameChange(val, index)" :remote-method="remoteMethod" :loading="details.loadingObj.nodeLoading" @@ -340,7 +341,7 @@
- +
@@ -442,6 +443,9 @@ const ruleFormRef = ref(); const oldFormNode = ref(); const newFormNode = ref(); +// 节点下拉框实例 +const selectNodeRef = ref(); + const details = reactive({ columnNewList, newColumnNewList: deepClone(columnNewList), @@ -1028,8 +1032,11 @@ const handleRemoveWaybill = () => { }; /** 新增节点 */ -const handleAddNode = index => { +const handleAddNode = async index => { nodeInfoData.splice(index, 0, { nodeName: '' }); + console.log('selectNodeRef :>> ', selectNodeRef); + await nextTick(); + selectNodeRef.value[index + 1].focus(); }; /** 删除节点 */ diff --git a/src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue b/src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue index 3bf679fe..725466fd 100644 --- a/src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue +++ b/src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue @@ -1,5 +1,5 @@