| | |
| | | sortName: "id", |
| | | }); |
| | | |
| | | const editFormFields = ref({ |
| | | const editFormFields = ref({ |
| | | palletCode: "", |
| | | palletType: 0, |
| | | warehouseId: 0, |
| | | mesUploadStatus: "", |
| | | stockStatus: "", |
| | | locationCode: "", |
| | | locationDetails: "" |
| | | }); |
| | | |
| | | |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { field: "palletCode", title: TEXT.palletCode, type: "string" }, |
| | | { field: "stockStatus", title: TEXT.stockStatus, type: "select", dataKey: "stockStatusEmun", data: []}, |
| | | { field: "locationCode", title: TEXT.locationCode, type: "string" }, |
| | | ], |
| | | ]); |
| | | |
| | | const searchFormFields = ref({ |
| | | palletCode: "", |
| | | stockStatus: "", |
| | | locationCode: "", |
| | | }); |
| | | |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: TEXT.palletCode, field: "palletCode", type: "like" }, |
| | | { title: TEXT.stockStatus, field: "stockStatus", type: "selectList", dataKey: "stockStatusEmun", data: [] }, |
| | | { title: TEXT.locationCode, field: "locationCode", type: "like" }, |
| | | ], |
| | | ]); |
| | |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "stockStatusEmun", data: [] }, |
| | | }, |
| | | { |
| | | field: "mesUploadStatus", |
| | | title: "MES状态", |
| | | type: "int", |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "mesUploadStatusEnum", data: [] }, |
| | | }, |
| | | { |
| | | field: "locationCode", |
| | |
| | | |
| | | const loadStockStatusOptions = async () => { |
| | | try { |
| | | const result = await proxy.http.post("/api/Sys_Dictionary/GetVueDictionary", ["stockStatusEmun"]); |
| | | const result = await proxy.http.post("/api/Sys_Dictionary/GetVueDictionary", ["stockStatusEmun", "mesUploadStatusEnum"]); |
| | | const matched = (result || []).find((item) => item.dicNo === "stockStatusEmun"); |
| | | stockStatusOptions.value = matched ? matched.data || [] : []; |
| | | } catch (error) { |