| | |
| | | |
| | | <template> |
| | | <view-grid |
| | | <div> |
| | | <div id="zhu"> |
| | | <div id="task">ä»»å¡å·</div> |
| | | </div> |
| | | <view-grid |
| | | ref="grid" |
| | | :columns="columns" |
| | | :detail="detail" |
| | |
| | | :searchFormFields="searchFormFields" |
| | | :searchFormOptions="searchFormOptions" |
| | | :table="table" |
| | | :extend="extend" |
| | | > |
| | | </view-grid> |
| | | </div> |
| | | </template> |
| | | <style scoped> |
| | | #task{ |
| | | width: 6%; |
| | | height: 300%; |
| | | position: absolute; |
| | | border-radius: 5px; |
| | | left: 2.5%; |
| | | top: 820%; |
| | | cursor: pointer; |
| | | text-align: center; |
| | | line-height: 230%;; |
| | | font-size: 13px; |
| | | font-weight: 700; |
| | | z-index: 100; |
| | | } |
| | | #shu{ |
| | | width: 7%; |
| | | height: 300%; |
| | | position: absolute; |
| | | border-radius: 5px; |
| | | left: 42%; |
| | | top: 220%; |
| | | z-index: 100; |
| | | } |
| | | #wan{ |
| | | width: 4%; |
| | | height: 300%; |
| | | background: #f60; |
| | | position: absolute; |
| | | border-radius: 5px; |
| | | left: 50%; |
| | | top: 220%; |
| | | cursor: pointer; |
| | | text-align: center; |
| | | line-height: 230%; |
| | | color: beige; |
| | | z-index: 100; |
| | | } |
| | | #zhu { |
| | | width: 100%; |
| | | height: 1vh; |
| | | position: relative; |
| | | } |
| | | </style> |
| | | <script> |
| | | |
| | | import extend from "@/extension/taskinfo/task.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | //表å
¶ä»é
ç½® |
| | | const table = ref({ |
| | | key: "taskId", |
| | | footer: "Foots", |
| | |
| | | url: "/Task/", |
| | | sortName: "CreateDate", |
| | | }); |
| | | //ç¼è¾å段 |
| | | const editFormFields = ref({}); |
| | | const editFormOptions = ref([]); |
| | | //ç¼è¾é
ç½® |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { |
| | | field: "taskState", |
| | | title: "ä»»å¡ç¶æ", |
| | | type: "select", |
| | | dataKey: "taskState", |
| | | } |
| | | ] |
| | | ]); |
| | | //æ¥è¯¢å段 |
| | | const searchFormFields = ref({ |
| | | taskNum: "", |
| | | palletCode: "", |
| | |
| | | creater: "", |
| | | createDate: "", |
| | | }); |
| | | //æ¥è¯¢é
ç½® |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "ä»»å¡å·", field: "taskNum", type: "int" }, |
| | | { title: "æçç¼å·", field: "palletCode", type: "like" }, |
| | | { |
| | | title: "ä»»å¡ç±»å", |
| | | field: "taskType", |
| | |
| | | dataKey: "taskState", |
| | | data: [], |
| | | }, |
| | | { |
| | | title: "ç©æä¿¡æ¯", |
| | | field: "remark", |
| | | type: "selectList", |
| | | dataKey: "remark", |
| | | data: [], |
| | | }, |
| | | ], |
| | | [ |
| | | { title: "èµ·å§å°å", field: "sourceAddress", type: "like" }, |
| | | { title: "ç®æ å°å", field: "targetAddress", type: "like" }, |
| | | { title: "å½åä½ç½®", field: "currentAddress", type: "like" }, |
| | | { title: "ä¸ä¸ä½ç½®", field: "nextAddress", type: "like" }, |
| | | ], |
| | | [ |
| | | { title: "å··éå·", field: "roadway", type: "like" }, |
| | | { title: "å建人", field: "creater", type: "like" }, |
| | | { title: "å建æ¶é´", field: "createDate", type: "datetime" }, |
| | | ], |
| | | ]); |
| | | //æ¥è¯¢é¡µé¢table表çé
ç½® |
| | | const columns = ref([ |
| | | { |
| | | field: "taskId", |
| | | title: "TaskId", |
| | | title: "ä»»å¡å·", |
| | | type: "int", |
| | | width: 90, |
| | | hidden: true, |
| | |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "taskNum", |
| | | title: "ä»»å¡å·", |
| | | field: "taskId", |
| | | title: "ä»»å¡ID", |
| | | type: "int", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "palletCode", |
| | | title: "æçç¼å·", |
| | | type: "string", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "roadway", |
| | | title: "å··éå·", |
| | | type: "string", |
| | | width: 90, |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "taskType", |
| | | title: "ä»»å¡ç±»å", |
| | | type: "int", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | bind: { key: "taskType", data: [] }, |
| | |
| | | { |
| | | field: "taskState", |
| | | title: "ä»»å¡ç¶æ", |
| | | type: "int", |
| | | type: "string", |
| | | width: 150, |
| | | align: "left", |
| | | bind: { key: "taskState", data: [] }, |
| | | }, |
| | | { |
| | | field: "remark", |
| | | title: "ç©æä¿¡æ¯", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "mateType", data: [] }, |
| | | }, |
| | | { |
| | | field: "sourceAddress", |
| | |
| | | { |
| | | field: "targetAddress", |
| | | title: "ç®æ å°å", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "currentAddress", |
| | | title: "å½åä½ç½®", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "nextAddress", |
| | | title: "ä¸ä¸ä½ç½®", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | |
| | | hidden: true, |
| | | }, |
| | | ]); |
| | | //䏻仿ç»è¡¨é
ç½® |
| | | const detail = ref({ |
| | | cnName: "", |
| | | table: "", |