| | |
| | | |
| | | <template> |
| | | <view-grid |
| | | ref="grid" |
| | | :columns="columns" |
| | | :detail="detail" |
| | | :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" |
| | | :searchFormFields="searchFormFields" |
| | | :searchFormOptions="searchFormOptions" |
| | | :table="table" |
| | | :extend="extend" |
| | | > |
| | | <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions" |
| | | :table="table" :extend="extend"> |
| | | </view-grid> |
| | | </template> |
| | | <script> |
| | | <script> |
| | | import extend from "@/extension/taskinfo/task.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | |
| | | cnName: "ä»»å¡ä¿¡æ¯", |
| | | name: "task", |
| | | url: "/Task/", |
| | | sortName: "CreateDate", |
| | | sortName: "createDate", |
| | | }); |
| | | const editFormFields = ref({ |
| | | taskNum:"", |
| | | taskNum: "", |
| | | palletCode: "", |
| | | roadway: "", |
| | | taskType:"", |
| | | taskState:"", |
| | | wMSId:"", |
| | | taskType: "", |
| | | taskState: "", |
| | | wMSId: "", |
| | | sourceAddress: "", |
| | | targetAddress: "", |
| | | currentAddress: "", |
| | |
| | | creater: "", |
| | | createDate: "", |
| | | grade: "", |
| | | productionLine:"" |
| | | carType:"", |
| | | pvi:"" |
| | | }); |
| | | const editFormOptions = ref([[{ title: "ä¼å
级", field: "grade", type: "int" },]]); |
| | | const searchFormFields = ref({ |
| | |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "ä»»å¡å·", field: "taskNum", type: "int" }, |
| | | { title: "æçç¼å·", field: "palletCode", type: "text" }, |
| | | { |
| | | { title: "æ»æ©å·", field: "palletCode", type: "text" }, |
| | | { title: "PVIç ", field: "palletCode", type: "text" }, |
| | | { |
| | | title: "ä»»å¡ç±»å", |
| | | field: "taskType", |
| | | type: "selectList", |
| | | dataKey: "taskType", |
| | | data: [], |
| | | }, |
| | | { |
| | | title: "ä»»å¡ç¶æ", |
| | | field: "taskState", |
| | | type: "selectList", |
| | | dataKey: "taskState", |
| | | data: [], |
| | | }, |
| | | } |
| | | |
| | | ], |
| | | [ |
| | | { title: "èµ·å§å°å", field: "sourceAddress", type: "text" }, |
| | |
| | | { title: "ä¸ä¸ä½ç½®", field: "nextAddress", type: "text" }, |
| | | ], |
| | | [ |
| | | |
| | | { |
| | | title: "ä»»å¡ç¶æ", |
| | | field: "taskState", |
| | | type: "selectList", |
| | | dataKey: "taskState", |
| | | data: [], |
| | | }, |
| | | { title: "å··éå·", field: "roadway", type: "text" }, |
| | | { "title": "ç产产线", "field": "productionLine", type: "select", dataKey: "ProductionLine", data: [] }, |
| | | // { "title": "ç产产线", "field": "productionLine", type: "select", dataKey: "ProductionLine", data: [] }, |
| | | { title: "å建人", field: "creater", type: "text" }, |
| | | { title: "å建æ¶é´", field: "createDate", type: "datetime" }, |
| | | |
| | | ], |
| | | ]); |
| | | const columns = ref([ |
| | |
| | | }, |
| | | { |
| | | field: "palletCode", |
| | | title: "æçç¼å·", |
| | | title: "æ»æ©å·", |
| | | type: "string", |
| | | width: 160, |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "pvi", |
| | | title: "PVIç ", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | width: 150, |
| | | align: "left", |
| | | bind: { key: "taskState", data: [] }, |
| | | }, |
| | | { |
| | | field: "carType", |
| | | title: "车å", |
| | | type: "int", |
| | | width: 90, |
| | | align: "left", |
| | | |
| | | }, |
| | | { |
| | | field: "sourceAddress", |
| | |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "productionLine", |
| | | title: "产线", |
| | | type: "string", |
| | | width: 70, |
| | | align: "left", |
| | | bind: { key: "ProductionLine", data: [] } |
| | | }, |
| | | // { |
| | | // field: "productionLine", |
| | | // title: "产线", |
| | | // type: "string", |
| | | // width: 70, |
| | | // align: "left", |
| | | // bind: { key: "ProductionLine", data: [] } |
| | | // }, |
| | | { |
| | | field: "exceptionMessage", |
| | | title: "å¼å¸¸ä¿¡æ¯", |
| | | type: "string", |
| | | width: 90, |
| | | width: 150, |
| | | align: "left", |
| | | |
| | | |
| | | }, |
| | | { |
| | | field: "grade", |
| | | title: "ä¼å
级", |
| | | type: "int", |
| | | width: 60, |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | |
| | | |
| | | { |
| | | field: "createDate", |
| | | title: "å建æ¶é´", |
| | |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | |
| | | |
| | | { |
| | | field: "modifyDate", |
| | | title: "ä¿®æ¹æ¶é´", |