| | |
| | | |
| | | <template> |
| | | <view-grid |
| | | ref="grid" |
| | |
| | | > |
| | | </view-grid> |
| | | </template> |
| | | <script> |
| | | <script> |
| | | import extend from "@/extension/basic/locationInfo.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | |
| | | sortName: "id", |
| | | }); |
| | | const editFormFields = ref({ |
| | | locationStatus: "", |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { title: "è´§ä½ç¶æ", field: "locationStatus" ,type: "select",dataKey: "locationStatusEnum",data: [],}, |
| | | ], |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | warehouseId: "", |
| | | locationCode: "", |
| | | locationName: "", |
| | | roadwayNo: "", |
| | | locationType: "", |
| | | enableStatus: "", |
| | | locationStatus: "", |
| | | row: "", |
| | | column: "", |
| | | layer: "", |
| | | depth: "", |
| | | locationType: "", |
| | | locationStatus: "", |
| | | enableStatus: "", |
| | | remark: "", |
| | | warehouseCode: "", |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | | // { |
| | | // field: "warehouseId", |
| | | // title: "åºæ¿ç¼å·", |
| | | // type: "select", |
| | | // required: true, |
| | | // span: 12, |
| | | // dataKey: "warehouseNuber", |
| | | // data: [] |
| | | // }, |
| | | { |
| | | field: "warehouseCode", |
| | | title: "åºæ¿ç¼å·", |
| | | type: "select", |
| | | required: true, |
| | | span: 12, |
| | | dataKey: "warehouseNuber", |
| | | data: [], |
| | | }, |
| | | |
| | | { |
| | | field: "locationCode", |
| | | title: "è´§ä½ç¼å·", |
| | | type: "string", |
| | | span: 12, |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | field: "locationName", |
| | | title: "è´§ä½åç§°", |
| | | type: "string", |
| | | span: 12, |
| | | }, |
| | | { |
| | | field: "roadwayNo", |
| | | title: "å··éç¼å·", |
| | | type: "string", |
| | | span: 12, |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | field: "row", |
| | | title: "è´§ä½è¡", |
| | | type: "int", |
| | | span: 8, |
| | | }, |
| | | { |
| | | field: "column", |
| | | title: "è´§ä½å", |
| | | type: "int", |
| | | span: 8, |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | field: "depth", |
| | | title: "è´§ä½æ·±åº¦", |
| | | type: "int", |
| | | span: 12, |
| | | }, |
| | | // { |
| | | // field: "locationType", |
| | | // title: "è´§ä½ç±»å", |
| | | // type: "select", |
| | | // span: 12, |
| | | // data: [], |
| | | // dataKey: "locationTypeEnum", |
| | | // } |
| | | { |
| | | field: "layer", |
| | | title: "è´§ä½å±", |
| | | type: "int", |
| | | span: 8, |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | field: "locationStatus", |
| | | title: "è´§ä½ç¶æ", |
| | | type: "select", |
| | | span: 12, |
| | | data: [], |
| | | dataKey: "locationStatusEnum", |
| | | }, |
| | | { |
| | | field: "enableStatus", |
| | | title: "ç¦ç¨ç¶æ", |
| | | type: "select", |
| | | span: 12, |
| | | dataKey: "EnableStatusEnum", |
| | | data: [], |
| | | }, |
| | | ], |
| | | // [ |
| | | // { |
| | | // field: "remark", |
| | | // title: "夿³¨", |
| | | // type: "string", |
| | | // span: 24 |
| | | // } |
| | | // ] |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | // warehouseId: "", |
| | | locationCode: "", |
| | | locationName: "", |
| | | roadwayNo: "", |
| | | locationType: "", |
| | | locationStatus: "", |
| | | enableStatus: "", |
| | | row: "", |
| | | column: "", |
| | | layer: "", |
| | | warehouseCode: "", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | // { title: "åºæ¿ç¼å·", field: "warehouseId", type: "select", dataKey: "warehouseNuber", data: [] } , |
| | | { |
| | | title: "åºæ¿ç¼å·", |
| | | field: "warehousecode", |
| | | type: "select", |
| | | dataKey: "warehouseNuber", |
| | | data: [], |
| | | }, |
| | | { title: "è´§ä½ç¼å·", field: "locationCode", type: "like" }, |
| | | { title: "å··éç¼å·", field: "roadwayNo",type:"like" }, |
| | | { title: "è´§ä½ç±»å", field: "locationType",type: "select",dataKey: "locationTypeEnum",data: [], }, |
| | | { title: "ç¦ç¨ç¶æ", field: "enableStatus" ,type: "select",dataKey: "status",data: [],}, |
| | | { title: "è´§ä½åç§°", field: "locationName", type: "like" }, |
| | | ], |
| | | [ |
| | | { title: "è´§ä½ç¶æ", field: "locationStatus" ,type: "selectList",dataKey: "locationStatusEnum",data: [],}, |
| | | { title: "è¡", field: "row" ,type: "int"}, |
| | | { title: "å", field: "column" ,type: "int"}, |
| | | { title: "å±", field: "layer" ,type: "int"} |
| | | { title: "å··éç¼å·", field: "roadwayNo", type: "like" }, |
| | | // { title: "è´§ä½ç±»å", field: "locationType", type: "select", dataKey: "locationTypeEnum", data: [] }, |
| | | { |
| | | title: "è´§ä½ç¶æ", |
| | | field: "locationStatus", |
| | | type: "select", |
| | | dataKey: "locationStatusEnum", |
| | | data: [], |
| | | }, |
| | | { |
| | | title: "ç¦ç¨ç¶æ", |
| | | field: "enableStatus", |
| | | type: "select", |
| | | data: [], |
| | | dataKey: "status", |
| | | }, |
| | | ], |
| | | [ |
| | | { title: "è¡", field: "row", type: "int" }, |
| | | { title: "å", field: "column", type: "int" }, |
| | | { title: "å±", field: "layer", type: "int" }, |
| | | ], |
| | | ]); |
| | | const columns = ref([ |
| | | { |
| | | field: "id", |
| | | title: "Id", |
| | | title: "主é®", |
| | | type: "int", |
| | | width: 100, |
| | | width: 90, |
| | | hidden: true, |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "areaId", |
| | | // title: "åºå主é®", |
| | | // type: "string", |
| | | // width: 90, |
| | | // field: "warehouseId", |
| | | // title: "åºæ¿ç¼å·", |
| | | // type: "select", |
| | | // width: 120, |
| | | // align: "left", |
| | | // bind: {key: "areainfo",data: []} |
| | | // data: [], |
| | | // bind: { key: "warehouses", data: [] } |
| | | // }, |
| | | { |
| | | field: "warehouseCode", |
| | | title: "åºæ¿ç¼å·", |
| | | type: "select", |
| | | width: 120, |
| | | align: "left", |
| | | data: [], |
| | | bind: { key: "warehouseNuber", data: [] }, |
| | | }, |
| | | { |
| | | field: "locationCode", |
| | | title: "è´§ä½ç¼å·", |
| | | type: "string", |
| | | width: 200, |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "locationName", |
| | | title: "è´§ä½åç§°", |
| | | type: "string", |
| | | width: 280, |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "roadwayNo", |
| | | title: "å··éç¼å·", |
| | | type: "decimal", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "row", |
| | | title: "è´§ä½è¡", |
| | | type: "string", |
| | | width: 90, |
| | | type: "int", |
| | | width: 80, |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "column", |
| | | title: "è´§ä½å", |
| | | type: "int", |
| | | width: 120, |
| | | width: 80, |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "layer", |
| | | title: "è´§ä½å±", |
| | | type: "string", |
| | | width: 200, |
| | | type: "int", |
| | | width: 80, |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "depth", |
| | | title: "è´§ä½æ·±åº¦", |
| | | type: "string", |
| | | width: 180, |
| | | type: "int", |
| | | width: 100, |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "locationType", |
| | | title: "è´§ä½ç±»å", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | bind:{key: "locationTypeEnum", data: []} |
| | | }, |
| | | // { |
| | | // field: "locationType", |
| | | // title: "è´§ä½ç±»å", |
| | | // type: "select", |
| | | // width: 120, |
| | | // align: "left", |
| | | // data: [], |
| | | // bind: { key: "locationTypeEnum", data: [] } |
| | | // }, |
| | | { |
| | | field: "locationStatus", |
| | | title: "è´§ä½ç¶æ", |
| | | type: "string", |
| | | type: "select", |
| | | width: 120, |
| | | align: "left", |
| | | data: [], |
| | | bind: { key: "locationStatusEnum", data: [] }, |
| | | }, |
| | | { |
| | | field: "enableStatus", |
| | | title: "ç¦ç¨ç¶æ", |
| | | type: "string", |
| | | width: 80, |
| | | type: "select", |
| | | width: 100, |
| | | align: "left", |
| | | data: [], |
| | | bind: { key: "status", data: [] }, |
| | | }, |
| | | // { |
| | | // field: "remark", |
| | | // title: "夿³¨", |
| | | // type: "string", |
| | | // width: 150, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "creater", |
| | | title: "å建人", |
| | | type: "string", |
| | | width: 90, |
| | | width: 100, |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "createDate", |
| | |
| | | width: 160, |
| | | align: "left", |
| | | sort: true, |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "modifier", |
| | |
| | | width: 160, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | { |
| | | field: "remark", |
| | | title: "夿³¨", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | hidden: true |
| | | }, |
| | | ]); |
| | | const detail = ref({ |
| | |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
| | | |
| | | </script> |