| | |
| | | *ä¸å¡è¯·å¨@/extension/widesea_wcs/order/Dt_OutboundOrder_Hty.jsæ¤å¤ç¼å |
| | | --> |
| | | <template> |
| | | <view-grid ref="grid" |
| | | :columns="columns" |
| | | :detail="detail" |
| | | :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" |
| | | :searchFormFields="searchFormFields" |
| | | :searchFormOptions="searchFormOptions" |
| | | :table="table" |
| | | :extend="extend"> |
| | | </view-grid> |
| | | <view-grid |
| | | ref="grid" |
| | | :columns="columns" |
| | | :detail="detail" |
| | | :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" |
| | | :searchFormFields="searchFormFields" |
| | | :searchFormOptions="searchFormOptions" |
| | | :table="table" |
| | | :extend="extend" |
| | | > |
| | | </view-grid> |
| | | </template> |
| | | <script> |
| | | import extend from "@/extension/outbound/outboundOrder_Hty.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'id', |
| | | footer: "Foots", |
| | | cnName: 'åå²åºåºå', |
| | | name: 'DeliveryOrderHty', |
| | | url: "/DeliveryOrderHty/", |
| | | sortName: "id" |
| | | }); |
| | | const editFormFields = ref({}); |
| | | const editFormOptions = ref([]); |
| | | const searchFormFields = ref({ |
| | | out_no: "", |
| | | out_type: "", |
| | | client_no: "", |
| | | client_name: "", |
| | | warehouse_no: "", |
| | | outStatus: "", |
| | | account_time: "", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "åºåºåå·", field: "out_no", type: "like" }, |
| | | { title: "客æ·ä»£ç ", field: "client_no", type: "like" }, |
| | | { |
| | | title: "åºåºåç±»å", |
| | | field: "out_type", |
| | | type: "select", |
| | | dataKey: "out_type", |
| | | data: [], |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | title: "ç¶æ", |
| | | field: "outStatus", |
| | | type: "select", |
| | | dataKey: "outStatus", |
| | | data: [], |
| | | }, |
| | | { title: "客æ·åç§°", field: "client_name", type: "like" }, |
| | | { title: "åºåºè®°è´¦æ¶é´", field: "account_time", type: "datetime" }, |
| | | ] |
| | | ]); |
| | | const columns = ref([ |
| | | { |
| | | field: 'id', |
| | | title: 'åå²è®°å½ä¸»é®', |
| | | type: 'int', |
| | | width: 120, |
| | | hidden: true, |
| | | readonly: true, |
| | | require: true, |
| | | align: 'left' |
| | | }, |
| | | { |
| | | field: 'sourceId', |
| | | title: 'å主é®', |
| | | type: 'int', |
| | | width: 100, |
| | | align: 'left' |
| | | }, |
| | | { |
| | | field: 'out_no', |
| | | title: 'åºåºåå·', |
| | | type: 'string', |
| | | width: 150, |
| | | require: true, |
| | | align: 'left', |
| | | sort: true, |
| | | link: true |
| | | }, |
| | | { |
| | | field: 'out_type', |
| | | title: 'åºåºåç±»å', |
| | | type: 'string', |
| | | width: 120, |
| | | require: true, |
| | | align: 'left', |
| | | bind: { key: "out_type", data: [] } |
| | | }, |
| | | { |
| | | field: 'client_no', |
| | | title: '客æ·ä»£ç ', |
| | | type: 'string', |
| | | width: 120, |
| | | align: 'left' |
| | | }, |
| | | { |
| | | field: 'client_name', |
| | | title: '客æ·åç§°', |
| | | type: 'string', |
| | | width: 150, |
| | | align: 'left' |
| | | }, |
| | | { |
| | | field: 'warehouse_no', |
| | | title: 'åºåå·', |
| | | type: 'string', |
| | | width: 100, |
| | | align: 'left', |
| | | bind: { key: "warehouseNuber", data: [] } |
| | | }, |
| | | { |
| | | field: 'account_time', |
| | | title: 'åºåºè®°è´¦æ¶é´', |
| | | type: 'datetime', |
| | | width: 160, |
| | | align: 'left' |
| | | }, |
| | | { |
| | | field: 'outStatus', |
| | | title: '头æ ç¶æ', |
| | | type: 'string', |
| | | width: 120, |
| | | align: 'left', |
| | | bind: { key: "outStatus", data: [] } |
| | | }, |
| | | { |
| | | field: 'creater', |
| | | title: 'å建人', |
| | | type: 'string', |
| | | width: 90, |
| | | align: 'left' |
| | | }, |
| | | { |
| | | field: 'createDate', |
| | | title: 'å建æ¶é´', |
| | | type: 'datetime', |
| | | width: 160, |
| | | align: 'left', |
| | | sort: true |
| | | }, |
| | | { |
| | | field: 'modifier', |
| | | title: 'ä¿®æ¹äºº', |
| | | type: 'string', |
| | | width: 100, |
| | | align: 'left' |
| | | }, |
| | | { |
| | | field: 'modifyDate', |
| | | title: 'ä¿®æ¹æ¶é´', |
| | | type: 'datetime', |
| | | width: 160, |
| | | align: 'left', |
| | | sort: true |
| | | } |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "åå²åºåºåæç»", |
| | | table: "DtDeliveryOrderDetailHty", |
| | | columns: [ |
| | | { |
| | | field: 'id', |
| | | title: 'åå²è®°å½ä¸»é®', |
| | | type: 'int', |
| | | width: 120, |
| | | hidden: true, |
| | | readonly: true, |
| | | require: true, |
| | | align: 'left' |
| | | }, |
| | | { |
| | | field: 'sourceId', |
| | | title: 'å主é®', |
| | | type: 'int', |
| | | width: 100, |
| | | align: 'left' |
| | | }, |
| | | // { |
| | | // field: 'deliveryOrderId', |
| | | // title: 'å
³èåºåºåID', |
| | | // type: 'int', |
| | | // width: 120, |
| | | // require: true, |
| | | // align: 'left', |
| | | // sort: true, |
| | | // hidden: true |
| | | // }, |
| | | { |
| | | field: 'reservoirarea', |
| | | title: 'åºåº', |
| | | type: 'string', |
| | | width: 120, |
| | | align: 'left', |
| | | bind: { key: "warehouseNuber", data: [] } |
| | | }, |
| | | { |
| | | field: "goods_no", |
| | | title: "ç©æåç§°", |
| | | type: "string", |
| | | width: 150, |
| | | align: "left", |
| | | required: true, |
| | | edit:{type:""}, |
| | | bind: { key: "MaterielNames", data: [] }, |
| | | }, |
| | | { |
| | | field: 'goods_no', |
| | | title: 'è¯åç¼ç ', |
| | | type: 'string', |
| | | width: 150, |
| | | require: true, |
| | | align: 'left', |
| | | bind: { key: "medicineGoods", data: [] } |
| | | }, |
| | | { |
| | | field: 'order_qty', |
| | | title: 'è®¢åæ°é', |
| | | type: 'decimal', |
| | | width: 100, |
| | | require: true, |
| | | align: 'left' |
| | | }, |
| | | { |
| | | field: 'batch_num', |
| | | title: 'æ¹å·', |
| | | type: 'string', |
| | | width: 120, |
| | | require: true, |
| | | align: 'left' |
| | | }, |
| | | { |
| | | field: 'exp_date', |
| | | title: 'æ ¡æ', |
| | | type: 'string', |
| | | width: 120, |
| | | align: 'left' |
| | | }, |
| | | { |
| | | field: 'ootDetailStatus', |
| | | title: 'ç¶æ', |
| | | type: 'string', |
| | | width: 120, |
| | | align: 'left', |
| | | bind: { key: "ootDetailStatus", data: [] } |
| | | }, |
| | | { |
| | | field: 'status', |
| | | title: 'åæ¥ç¶æ', |
| | | type: 'int', |
| | | width: 120, |
| | | align: 'left', |
| | | bind: { key: "syncStatus", data: [] } |
| | | }, |
| | | { |
| | | field: 'creater', |
| | | title: 'å建人', |
| | | type: 'string', |
| | | width: 90, |
| | | align: 'left' |
| | | }, |
| | | { |
| | | field: 'createDate', |
| | | title: 'å建æ¶é´', |
| | | type: 'datetime', |
| | | width: 160, |
| | | align: 'left', |
| | | sort: true |
| | | }, |
| | | { |
| | | field: 'modifier', |
| | | title: 'ä¿®æ¹äºº', |
| | | type: 'string', |
| | | width: 100, |
| | | align: 'left' |
| | | }, |
| | | { |
| | | field: 'modifyDate', |
| | | title: 'ä¿®æ¹æ¶é´', |
| | | type: 'datetime', |
| | | width: 160, |
| | | align: 'left', |
| | | sort: true |
| | | } |
| | | ], |
| | | sortName: "id", |
| | | key: "id" |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | import extend from "@/extension/outbound/outboundOrder_Hty.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: "id", |
| | | footer: "Foots", |
| | | cnName: "åå²åºåºå", |
| | | name: "DeliveryOrderHty", |
| | | url: "/DeliveryOrderHty/", |
| | | sortName: "id", |
| | | }); |
| | | const editFormFields = ref({}); |
| | | const editFormOptions = ref([]); |
| | | const searchFormFields = ref({ |
| | | out_no: "", |
| | | out_type: "", |
| | | client_no: "", |
| | | client_name: "", |
| | | warehouse_no: "", |
| | | outStatus: "", |
| | | account_time: "", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "åºåºåå·", field: "out_no", type: "like" }, |
| | | { title: "客æ·ä»£ç ", field: "client_no", type: "like" }, |
| | | { |
| | | title: "åºåºåç±»å", |
| | | field: "out_type", |
| | | type: "select", |
| | | dataKey: "out_type", |
| | | data: [], |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | title: "ç¶æ", |
| | | field: "outStatus", |
| | | type: "select", |
| | | dataKey: "outStatus", |
| | | data: [], |
| | | }, |
| | | { title: "客æ·åç§°", field: "client_name", type: "like" }, |
| | | { title: "åºåºè®°è´¦æ¶é´", field: "account_time", type: "datetime" }, |
| | | ], |
| | | ]); |
| | | const columns = ref([ |
| | | { |
| | | field: "id", |
| | | title: "åå²è®°å½ä¸»é®", |
| | | type: "int", |
| | | width: 120, |
| | | hidden: true, |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "sourceId", |
| | | title: "å主é®", |
| | | type: "int", |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "out_no", |
| | | title: "åºåºåå·", |
| | | type: "string", |
| | | width: 150, |
| | | require: true, |
| | | align: "left", |
| | | sort: true, |
| | | link: true, |
| | | }, |
| | | { |
| | | field: "out_type", |
| | | title: "åºåºåç±»å", |
| | | type: "string", |
| | | width: 120, |
| | | require: true, |
| | | align: "left", |
| | | bind: { key: "out_type", data: [] }, |
| | | }, |
| | | { |
| | | field: "client_no", |
| | | title: "客æ·ä»£ç ", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "client_name", |
| | | title: "客æ·åç§°", |
| | | type: "string", |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "warehouse_no", |
| | | title: "åºåå·", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | bind: { key: "warehouseNuber", data: [] }, |
| | | }, |
| | | { |
| | | field: "account_time", |
| | | title: "åºåºè®°è´¦æ¶é´", |
| | | type: "datetime", |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "outStatus", |
| | | title: "头æ ç¶æ", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "outStatus", data: [] }, |
| | | }, |
| | | // { |
| | | // field: 'creater', |
| | | // title: 'å建人', |
| | | // type: 'string', |
| | | // width: 90, |
| | | // align: 'left' |
| | | // }, |
| | | { |
| | | field: "createDate", |
| | | title: "å建æ¶é´", |
| | | type: "datetime", |
| | | width: 160, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | // { |
| | | // field: 'modifier', |
| | | // title: 'ä¿®æ¹äºº', |
| | | // type: 'string', |
| | | // width: 100, |
| | | // align: 'left' |
| | | // }, |
| | | // { |
| | | // field: 'modifyDate', |
| | | // title: 'ä¿®æ¹æ¶é´', |
| | | // type: 'datetime', |
| | | // width: 160, |
| | | // align: 'left', |
| | | // sort: true |
| | | // } |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "åå²åºåºåæç»", |
| | | table: "DtDeliveryOrderDetailHty", |
| | | columns: [ |
| | | { |
| | | field: "id", |
| | | title: "åå²è®°å½ä¸»é®", |
| | | type: "int", |
| | | width: 120, |
| | | hidden: true, |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "sourceId", |
| | | title: "å主é®", |
| | | type: "int", |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: 'deliveryOrderId', |
| | | // title: 'å
³èåºåºåID', |
| | | // type: 'int', |
| | | // width: 120, |
| | | // require: true, |
| | | // align: 'left', |
| | | // sort: true, |
| | | // hidden: true |
| | | // }, |
| | | { |
| | | field: "reservoirarea", |
| | | title: "åºåº", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "warehouseNuber", data: [] }, |
| | | }, |
| | | { |
| | | field: "goods_no", |
| | | title: "ç©æåç§°", |
| | | type: "string", |
| | | width: 150, |
| | | align: "left", |
| | | required: true, |
| | | edit: { type: "" }, |
| | | bind: { key: "MaterielNames", data: [] }, |
| | | }, |
| | | { |
| | | field: "goods_no", |
| | | title: "è¯åç¼ç ", |
| | | type: "string", |
| | | width: 150, |
| | | require: true, |
| | | align: "left", |
| | | bind: { key: "medicineGoods", data: [] }, |
| | | }, |
| | | { |
| | | field: "order_qty", |
| | | title: "è®¢åæ°é", |
| | | type: "decimal", |
| | | width: 100, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "order_Outqty", |
| | | title: "宿æ°é", |
| | | type: "decimal", |
| | | width: 100, |
| | | require: true, |
| | | align: "left", |
| | | // edit:{type:"number"} |
| | | }, |
| | | { |
| | | field: "batch_num", |
| | | title: "æ¹å·", |
| | | type: "string", |
| | | width: 120, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "exp_date", |
| | | title: "æ ¡æ", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "ootDetailStatus", |
| | | title: "ç¶æ", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "ootDetailStatus", data: [] }, |
| | | }, |
| | | { |
| | | field: "status", |
| | | title: "åæ¥ç¶æ", |
| | | type: "int", |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "syncStatus", data: [] }, |
| | | }, |
| | | { |
| | | field: "creater", |
| | | title: "å建人", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "createDate", |
| | | title: "å建æ¶é´", |
| | | type: "datetime", |
| | | width: 160, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | { |
| | | field: "modifier", |
| | | title: "ä¿®æ¹äºº", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "modifyDate", |
| | | title: "ä¿®æ¹æ¶é´", |
| | | type: "datetime", |
| | | width: 160, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | ], |
| | | sortName: "id", |
| | | key: "id", |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |