¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ä¸å¡è¯·å¨@/extension/widesea_wms/stock/Dt_BillGroupStock.jsæ¤å¤ç¼å |
| | | --> |
| | | |
| | | <template> |
| | | <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/widesea_wms/stock/Dt_BillGroupStock.jsx"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'id', |
| | | footer: "Foots", |
| | | cnName: 'åºåä¿¡æ¯', |
| | | name: 'stock/Dt_BillGroupStock', |
| | | url: "/StockInfo/", |
| | | sortName: "createDate" |
| | | }); |
| | | const editFormFields = ref({ |
| | | "palletCode": "", |
| | | "productionLine": "", |
| | | "outboundTime": "", |
| | | // "groupType": "" |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { "title": "æçæ¡ç ", "field": "palletCode", type: "text" }, |
| | | { "title": "ç产产线", "field": "productionLine", type: "text" }, |
| | | { "title": "åºåºåºæ¶é´", "field": "outboundTime", type: "datetime" }, |
| | | // { "title": "ç»çç±»å", "field": "groupType", type: "select", dataKey: "GroupType", data: [] }, |
| | | ] |
| | | ]); |
| | | const searchFormFields = ref({}); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "æçæ¡ç ", "field": "palletCode", type: "text" }, |
| | | { "title": "ç产产线", "field": "productionLine", type: "select", dataKey: "ProductionLine", data: [] }, |
| | | { "title": "åºåº", "field": "areaCode", type: "select", dataKey: "AreaType", data: [] }, |
| | | { "title": "åºåç±»å", "field": "isFull", type: "select", dataKey: "isFull", data: [] }, |
| | | ], [ |
| | | { "title": "åºä½å·", "field": "locationCode", type: "text" }, |
| | | { "title": "å··é", "field": "roadwayNo", type: "text" }, |
| | | { "title": "è´§ä½ç¶æ", "field": "locationStatus", type: "select", dataKey: "LocationState", data: [] }, |
| | | { "title": "ç©æç¼ç ", "field": "materielCode", type: "text"}, |
| | | ] |
| | | ]); |
| | | const columns = ref( |
| | | [{ field: 'id', title: 'åºåID', type: 'int', width: 110, hidden: true, readonly: true, require: true, align: 'left' }, |
| | | { field: 'locationCode', title: 'åºä½', type: 'string', width: 100, align: 'left', }, |
| | | { field: 'palletCode', title: 'æçæ¡ç ', type: 'string', width: 110, align: 'left', }, |
| | | { field: 'isFull', title: 'åºåç±»å', type: 'bool', width: 60, align: 'left', bind: { key: "isFull", data: [{ key: false, value: '空ç' }, { key: true, value: 'å®ç' }] }, }, |
| | | { field: 'linedProcessFeedbackTime', title: 'å·¥èºå¼å§æ¶é´', type: 'string', width: 110, align: 'left', }, |
| | | { field: 'roadwayNo', title: 'å··é', type: 'string', width: 60, align: 'left', sort: true }, |
| | | { field: 'materielCode', title: 'ç©æç¼ç ', type: 'string', width: 90, align: 'left', sort: true }, |
| | | { field: 'locationStatus', title: 'è´§ä½ç¶æ', type: 'int', width: 60, align: 'left', bind: { key: "LocationState", data: [] } }, |
| | | { field: 'specialParameterDuration', title: 'å·¥èºæ¶é¿', type: 'string', width: 60, align: 'left', sort: true }, |
| | | { field: 'outboundTime', title: 'åºåºåºæ¶é´', type: 'string', width: 110, align: 'left', sort: true }, |
| | | { field: 'productionLine', title: 'ç产产线', type: 'string', width: 60, align: 'left', bind: { key: "ProductionLine", data: [] } }, |
| | | { field: 'areaCode', title: 'åºåº', type: 'string', width: 60, align: 'left', bind: { key: "AreaType", data: [] } }, |
| | | { field: 'remark', title: 'çµè¯æ°é', type: 'string', width: 60, align: 'left', }, |
| | | { field: 'creater', title: 'å建人', type: 'string', sort: true, width: 110, align: 'left', hidden: true }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', sort: true, width: 150, align: 'left', }, |
| | | { field: 'modifier', title: 'æåä¿®æ¹äºº', type: 'string', sort: true, width: 100, hidden: true, align: 'left' }, |
| | | // { field: 'modifyDate', title: 'æåä¿®æ¹æ¶é´', type: 'datetime', sort: true, width: 150, align: 'left', sort: true }, |
| | | ] |
| | | ); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "" |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |