|  |  |  | 
|---|
|  |  |  | </view-grid> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | <script> | 
|---|
|  |  |  | import extend from "@/extension/outbound/outboundOrderDetail.js"; | 
|---|
|  |  |  | import extend from "@/extension/outbound/mesOutboundOrder.js"; | 
|---|
|  |  |  | import { ref, defineComponent } from "vue"; | 
|---|
|  |  |  | export default defineComponent({ | 
|---|
|  |  |  | setup() { | 
|---|
|  |  |  | 
|---|
|  |  |  | sortName: "id", | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | const editFormFields = ref({ | 
|---|
|  |  |  | deviceCode: "", | 
|---|
|  |  |  | deviceName: "", | 
|---|
|  |  |  | deviceType: "", | 
|---|
|  |  |  | deviceStatus: "", | 
|---|
|  |  |  | deviceIp: "", | 
|---|
|  |  |  | devicePort: "", | 
|---|
|  |  |  | devicePlcType: "", | 
|---|
|  |  |  | deviceRemark: "", | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | const editFormOptions = ref([ | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | { | 
|---|
|  |  |  | title: "设å¤ç¼å·", | 
|---|
|  |  |  | required: true, | 
|---|
|  |  |  | field: "deviceCode", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | title: "设å¤åç§°", | 
|---|
|  |  |  | required: true, | 
|---|
|  |  |  | field: "deviceName", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | title: "设å¤ç±»å", | 
|---|
|  |  |  | required: true, | 
|---|
|  |  |  | field: "deviceType", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | title: "设å¤ç¶æ", | 
|---|
|  |  |  | required: true, | 
|---|
|  |  |  | field: "deviceStatus", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | ], | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | { title: "设å¤IP", required: true, field: "deviceIp", type: "string" }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | title: "设å¤ç«¯å£", | 
|---|
|  |  |  | required: true, | 
|---|
|  |  |  | field: "devicePort", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | title: "PLCç±»å", | 
|---|
|  |  |  | required: true, | 
|---|
|  |  |  | field: "devicePlcType", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | title: "夿³¨", | 
|---|
|  |  |  | field: "deviceRemark", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | ], | 
|---|
|  |  |  | ]); | 
|---|
|  |  |  | const searchFormFields = ref({ | 
|---|
|  |  |  | deviceCode: "", | 
|---|
|  |  |  | deviceType: "", | 
|---|
|  |  |  | deviceStatus: "", | 
|---|
|  |  |  | orderNo: "", | 
|---|
|  |  |  | taskNo:"", | 
|---|
|  |  |  | materialCode: "", | 
|---|
|  |  |  | batchNo: "", | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | const searchFormOptions = ref([ | 
|---|
|  |  |  | [ | 
|---|
|  |  |  | { title: "设å¤ç¼å·", field: "deviceCode" }, | 
|---|
|  |  |  | { title: "设å¤ç±»å", field: "deviceType" }, | 
|---|
|  |  |  | { title: "设å¤ç¶æ", field: "deviceStatus" }, | 
|---|
|  |  |  | { title: "åæ®ç¼å·", field: "orderNo", type:"like" }, | 
|---|
|  |  |  | { title: "MESä»»å¡åå·", field: "taskNo", type:"like" }, | 
|---|
|  |  |  | { title: "ç©æç¼å·", field: "materialCode" ,type:"like"}, | 
|---|
|  |  |  | { title: "æ¹æ¬¡å·", field: "batchNo" ,type:"like"}, | 
|---|
|  |  |  | ], | 
|---|
|  |  |  | ]); | 
|---|
|  |  |  | const columns = ref([ | 
|---|
|  |  |  | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "orderId", | 
|---|
|  |  |  | title: "åºåºå主é®", | 
|---|
|  |  |  | field: "warehouseId", | 
|---|
|  |  |  | title: "æå±ä»åº", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | width: 90, | 
|---|
|  |  |  | width: 80, | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | hidden: true, | 
|---|
|  |  |  | bind: { key: "warehouses", data: [] }, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "materielCode", | 
|---|
|  |  |  | title: "ç©æç¼å·", | 
|---|
|  |  |  | field: "orderNo", | 
|---|
|  |  |  | title: "åæ®ç¼å·", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | width: 150, | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "materielName", | 
|---|
|  |  |  | title: "ç©æåç§°", | 
|---|
|  |  |  | field: "taskNo", | 
|---|
|  |  |  | title: "MESä»»å¡åå·", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | width: 150, | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | 
|---|
|  |  |  | width: 90, | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // { | 
|---|
|  |  |  | //   field: "OrderStatus", | 
|---|
|  |  |  | //   title: "åæ®æ°é", | 
|---|
|  |  |  | //   type: "string", | 
|---|
|  |  |  | //   width: 90, | 
|---|
|  |  |  | //   align: "left", | 
|---|
|  |  |  | //   bind: { key: "orderDetailStatusEnum", data: [] } | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "orderQuantity", | 
|---|
|  |  |  | title: "åæ®æ°é", | 
|---|
|  |  |  | field: "createType", | 
|---|
|  |  |  | title: "å建æ¹å¼", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | width: 90, | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "lockQuantity", | 
|---|
|  |  |  | title: "é宿°é", | 
|---|
|  |  |  | type: "int", | 
|---|
|  |  |  | width: 120, | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | bind: { key: "createType", data: [] }, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "overOutQuantity", | 
|---|
|  |  |  | title: "å·²åºæ°é", | 
|---|
|  |  |  | field: "materialCode", | 
|---|
|  |  |  | title: "ç©æç¼å·", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | width: 200, | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "orderDetailStatus", | 
|---|
|  |  |  | title: "订åæç»ç¶æ", | 
|---|
|  |  |  | field: "materialName", | 
|---|
|  |  |  | title: "ç©æåç§°", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | width: 180, | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "creater", | 
|---|
|  |  |  | title: "å建人", | 
|---|
|  |  |  | field: "unit", | 
|---|
|  |  |  | title: "åä½", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | width: 90, | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "orderQuantity", | 
|---|
|  |  |  | title: "åæ®æ°é", | 
|---|
|  |  |  | type: "datetime", | 
|---|
|  |  |  | width: 160, | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "lockQuantity", | 
|---|
|  |  |  | title: "é宿°é", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | width: 100, | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // { | 
|---|
|  |  |  | //   field: "overOutQuantity", | 
|---|
|  |  |  | //   title: "å·²åºæ°é", | 
|---|
|  |  |  | //   type: "datetime", | 
|---|
|  |  |  | //   width: 160, | 
|---|
|  |  |  | //   align: "left", | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "line", | 
|---|
|  |  |  | title: "线ä½", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | width: 100, | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "targetAddressCode", | 
|---|
|  |  |  | title: "线边ä»å°åç ", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | width: 100, | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | hidden: true | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "createDate", | 
|---|
|  |  |  | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "modifier", | 
|---|
|  |  |  | title: "ä¿®æ¹äºº", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | width: 100, | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "modifyDate", | 
|---|
|  |  |  | title: "ä¿®æ¹æ¶é´", | 
|---|
|  |  |  | type: "datetime", | 
|---|
|  |  |  | width: 160, | 
|---|
|  |  |  | align: "left", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | field: "remark", | 
|---|
|  |  |  | title: "夿³¨", | 
|---|
|  |  |  | field: "width", | 
|---|
|  |  |  | title: "è£å宽", | 
|---|
|  |  |  | type: "string", | 
|---|
|  |  |  | width: 100, | 
|---|
|  |  |  | align: "left", | 
|---|