fix(wms): 修复发货单审核状态默认值并优化地址显示格式
移除发货单页面中默认的审核状态值,避免影响查询结果 优化订单组件中地址的显示格式,使用标准格式加自定义内容 在复制信息提示中增加"类型"描述,使提示更清晰
This commit is contained in:
@@ -638,7 +638,7 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// materialType 会触发 watch,自动设置 itemType 并加载物品列表
|
// materialType 会触发 watch,自动设置 itemType 并加载物品列表
|
||||||
this.$message.success('已复制当前信息,包含' + this.currentInfo.materialType + '的相关信息, 请根据需要修改');
|
this.$message.success('已复制当前信息,包含' + this.currentInfo.materialType + '类型的相关信息, 请根据需要修改');
|
||||||
},
|
},
|
||||||
|
|
||||||
// 保存更新
|
// 保存更新
|
||||||
|
|||||||
@@ -110,6 +110,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { listDeliveryPlanDetail, getDeliveryPlanDetail, delDeliveryPlanDetail, addDeliveryPlanDetail, updateDeliveryPlanDetail } from "@/api/wms/deliveryPlanDetail";
|
import { listDeliveryPlanDetail, getDeliveryPlanDetail, delDeliveryPlanDetail, addDeliveryPlanDetail, updateDeliveryPlanDetail } from "@/api/wms/deliveryPlanDetail";
|
||||||
import { listOrder } from '@/api/crm/order'
|
import { listOrder } from '@/api/crm/order'
|
||||||
|
import { formatAreaTextEnhanced } from '@/components/ChinaAreaSelect/index.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "DeliveryPlanDetail",
|
name: "DeliveryPlanDetail",
|
||||||
@@ -199,32 +200,16 @@ export default {
|
|||||||
},
|
},
|
||||||
handleRowClick(row) {
|
handleRowClick(row) {
|
||||||
this.currentRow = row;
|
this.currentRow = row;
|
||||||
// this.form = {
|
|
||||||
// detailId: row.detailId,
|
|
||||||
// planId: this.planId,
|
|
||||||
// orderId: row.orderId,
|
|
||||||
// orderDetail: row.orderDetail,
|
|
||||||
// customerId: row.customerId,
|
|
||||||
// customerDetail: row.customerDetail,
|
|
||||||
// address: row.address,
|
|
||||||
// remark: row.remark,
|
|
||||||
// delFlag: row.delFlag,
|
|
||||||
// createTime: row.createTime,
|
|
||||||
// createBy: row.createBy,
|
|
||||||
// updateTime: row.updateTime,
|
|
||||||
// updateBy: row.updateBy
|
|
||||||
// };
|
|
||||||
},
|
},
|
||||||
handleOrderChange(orderId) {
|
handleOrderChange(orderId) {
|
||||||
console.log(orderId);
|
|
||||||
// 查找改订单
|
// 查找改订单
|
||||||
const order = this.orderList.find(item => item.orderId === orderId);
|
const order = this.orderList.find(item => item.orderId === orderId);
|
||||||
console.log(order);
|
|
||||||
if (order) {
|
if (order) {
|
||||||
|
const address = formatAreaTextEnhanced(order.address)
|
||||||
this.form.orderDetail = order.orderCode;
|
this.form.orderDetail = order.orderCode;
|
||||||
this.form.customerId = order.customerId;
|
this.form.customerId = order.customerId;
|
||||||
this.form.customerDetail = order.customerCode;
|
this.form.customerDetail = order.customerCode;
|
||||||
this.form.address = order.address;
|
this.form.address = address.standard + ' ' + address.custom;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ export default {
|
|||||||
pageSize: 20, // 增大分页大小以确保树形结构显示足够数据
|
pageSize: 20, // 增大分页大小以确保树形结构显示足够数据
|
||||||
planName: undefined,
|
planName: undefined,
|
||||||
planType: 0,
|
planType: 0,
|
||||||
auditStatus: 1,
|
// auditStatus: 1,
|
||||||
},
|
},
|
||||||
coilList: []
|
coilList: []
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user