refactor(wms): add component names and fix export time query

1. 为多个wms页面组件添加name属性统一命名规范
2. 修复运单页面导出时间参数为空时的拼接报错问题
This commit is contained in:
2026-05-15 16:36:27 +08:00
parent e938515efb
commit 78b2e21da7
6 changed files with 7 additions and 3 deletions

View File

@@ -1747,8 +1747,8 @@ export default {
...this.queryParams, ...this.queryParams,
exportTimeBy: true, exportTimeBy: true,
selectType: this.querys.materialType === '原料' ? 'raw_material' : 'product', selectType: this.querys.materialType === '原料' ? 'raw_material' : 'product',
startTime: this.queryParams.shipmentTime?.[0] + ' 00:00:00', startTime: this.queryParams.shipmentTime?.[0] && this.queryParams.shipmentTime?.[0] + ' 00:00:00',
endTime: this.queryParams.shipmentTime?.[1] + ' 23:59:59', endTime: this.queryParams.shipmentTime?.[1] && this.queryParams.shipmentTime?.[1] + ' 23:59:59',
} }
listBoundCoil(query).then(res => { listBoundCoil(query).then(res => {
this.materialCoilList = res.rows || []; this.materialCoilList = res.rows || [];

View File

@@ -6,6 +6,7 @@
import BasePage from './panels/base.vue'; import BasePage from './panels/base.vue';
export default { export default {
name: "Exp-Coil",
components: { components: {
BasePage BasePage
}, },

View File

@@ -10,6 +10,7 @@
import BasePage from './panels/base.vue'; import BasePage from './panels/base.vue';
export default { export default {
name: 'Exp-Bind',
components: { components: {
BasePage BasePage
}, },

View File

@@ -70,6 +70,7 @@ import { listCoilByIds } from "@/api/wms/coil";
import WayBill from "../components/wayBill.vue"; import WayBill from "../components/wayBill.vue";
export default { export default {
name: "Exp-Bills",
data() { data() {
return { return {
deliveryWaybillList: [], deliveryWaybillList: [],

View File

@@ -15,6 +15,7 @@
import BasePage from '@/views/wms/coil/panels/base.vue'; import BasePage from '@/views/wms/coil/panels/base.vue';
export default { export default {
name: "Exp-Canuse",
components: { components: {
BasePage BasePage
}, },

View File

@@ -248,7 +248,7 @@ import PlanSelector from "../components/planSelector.vue";
import DragResizePanel from "@/components/DragResizePanel"; import DragResizePanel from "@/components/DragResizePanel";
export default { export default {
name: "DeliveryWaybill", name: "Exp-Waybill",
components: { components: {
MemoInput, MemoInput,
DeliveryWaybillDetail, DeliveryWaybillDetail,