diff --git a/klp-ui/src/views/wms/delivery/components/planList.vue b/klp-ui/src/views/wms/delivery/components/planList.vue
index e69de29b..c500b184 100644
--- a/klp-ui/src/views/wms/delivery/components/planList.vue
+++ b/klp-ui/src/views/wms/delivery/components/planList.vue
@@ -0,0 +1,329 @@
+
+
+
+
+
+
+
+
+
+
+ handleContextMenu(e, data)"
+ >
+ {{ data.planName }}
+
+ handleDropdownCommand(cmd, data)"
+ style="margin-left: 10px; cursor: pointer;"
+ >
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/klp-ui/src/views/wms/delivery/components/wayBill.vue b/klp-ui/src/views/wms/delivery/components/wayBill.vue
index 67b435e9..4b5bb5bd 100644
--- a/klp-ui/src/views/wms/delivery/components/wayBill.vue
+++ b/klp-ui/src/views/wms/delivery/components/wayBill.vue
@@ -86,8 +86,7 @@
placeholder="0" />
|
- |
+ |
diff --git a/klp-ui/src/views/wms/delivery/waybill/index.vue b/klp-ui/src/views/wms/delivery/waybill/index.vue
index 8dbe6ba4..73a2cfd2 100644
--- a/klp-ui/src/views/wms/delivery/waybill/index.vue
+++ b/klp-ui/src/views/wms/delivery/waybill/index.vue
@@ -1,26 +1,11 @@
-
-
-
-
-
-
-
- {{ data.planName }}
-
-
-
-
-
+
+
-
+
@@ -80,8 +65,7 @@
-
+
@@ -138,13 +122,15 @@ import { listDeliveryWaybillDetail } from "@/api/wms/deliveryWaybillDetail";
import MemoInput from "@/components/MemoInput";
import DeliveryWaybillDetail from "../components/detailTable.vue";
import WayBill from "../components/wayBill.vue";
+import PlanList from "../components/planList.vue";
export default {
name: "DeliveryWaybill",
components: {
MemoInput,
DeliveryWaybillDetail,
- WayBill
+ WayBill,
+ PlanList
},
data() {
return {
@@ -194,15 +180,6 @@ export default {
form: {},
// 表单校验
rules: {},
- // 发货计划相关数据
- planList: [],
- planTreeData: [],
- planTreeProps: {
- label: 'planName',
- children: 'children'
- },
- planTotal: 0,
- planLoading: false,
selectedPlan: null,
planQueryParams: {
pageNum: 1,
@@ -294,31 +271,9 @@ export default {
}
this.handleQuery();
},
- // 获取发货计划列表
- getPlanList() {
- this.planLoading = true;
- listDeliveryPlan(this.planQueryParams).then(response => {
- this.planList = response.rows;
- this.planTotal = response.total;
- // 转换为树形数据格式
- this.planTreeData = response.rows;
- this.planLoading = false;
- });
- },
-
- // 发货计划搜索
- handlePlanQuery() {
- this.planQueryParams.pageNum = 1;
- this.getPlanList();
- },
- // 发货计划重置
- resetPlanQuery() {
- this.planQueryParams.planName = undefined;
- this.handlePlanQuery();
- },
handlePlanSelect(row) {
this.selectedPlan = row;
- this.refreshCoilList();
+ // this.refreshCoilList();
// 更新查询参数,根据选中的planId筛选发货单
this.queryParams.planId = row.planId;
this.waybillId = null;
@@ -429,7 +384,8 @@ export default {
material: item.material,
quantity: item.quantity,
weight: item.weight,
- unitPrice: item.unitPrice,
+ unitPrice: item.unitPrice || '',
+ // 单价为空时,显示为空字符串
remark: item.remark
}));
const coils = this.currentWaybillDetails.map(item => item.coilId).join(',');
|