| | |
| | | |
| | | <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> |
| | |
| | | { title: "æçå·", field: "palleCode" ,type:"like"}, |
| | | { title: "ç©æç¼å·", field: "materielCode",type:"like" }, |
| | | { title: "åæ®ç¼å·", field: "orderNo" ,type:"like"}, |
| | | { title: "åå¨ç±»å", field: "changeType" ,type: "selectList",dataKey: "stockChangeType",data: [],}, |
| | | // { title: "åå¨ç±»å", field: "changeType", type: "selectList", dataKey: "stockChangeType", data: [], }, |
| | | ], |
| | | [ |
| | | { title: "æ¹æ¬¡å·", field: "batchNo" ,type:"like"}, |
| | | { title: "åæ¡ç ", field: "originalSerilNumber", type: "like" }, |
| | | { title: "ä»»å¡å·", field: "taskNum" ,type:"like"}, |
| | | { title: "åºåå·", field: "serilNumber" ,type:"like"}, |
| | | { title: "æ¹æ¬¡å·", field: "batchNo", type: "like" }, |
| | | ], |
| | | ]); |
| | | const columns = ref([ |
| | |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | }, { |
| | | field: "taskNum", |
| | | title: "ä»»å¡å·", |
| | | type: "string", |
| | | width: 70, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "palleCode", |
| | | title: "æçç¼å·", |
| | | type: "string", |
| | | width: 150, |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "materielName", |
| | | // title: "ç©æåç§°", |
| | | // type: "decimal", |
| | | // width: 90, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "materielName", |
| | | title: "ç©æåç§°", |
| | | type: "decimal", |
| | | width: 90, |
| | | field: "originalSerilNumber", |
| | | title: "åæ¡ç ", |
| | | type: "string", |
| | | width: 180, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "barcode", |
| | | title: "æ¡ç ", |
| | | field: "newSerilNumber", |
| | | title: "æ°æ¡ç ", |
| | | type: "string", |
| | | width: 150, |
| | | width: 180, |
| | | align: "left", |
| | | }, |
| | | |
| | | // { |
| | | // field: "serilNumber", |
| | | // title: "åºåå·", |
| | | // type: "int", |
| | | // width: 280, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "remark", |
| | | title: "夿³¨", |
| | | type: "string", |
| | | width: 280, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "batchNo", |
| | | title: "æ¹æ¬¡å·", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "serilNumber", |
| | | title: "åºåå·", |
| | | type: "int", |
| | | width: 280, |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "taskNum", |
| | | title: "ä»»å¡å·", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "changeType", |
| | | title: "åå¨ç±»å", |
| | | type: "int", |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "stockChangeType", data: [] }, |
| | | }, |
| | | |
| | | // { |
| | | // field: "changeType", |
| | | // title: "åå¨ç±»å", |
| | | // type: "int", |
| | | // width: 120, |
| | | // align: "left", |
| | | // bind: { key: "stockChangeType", data: [] }, |
| | | // }, |
| | | { |
| | | field: "changeQuantity", |
| | | title: "å卿°é", |
| | |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "modifyDate", |
| | |
| | | type: "datetime", |
| | | width: 160, |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "orderId", |
| | |
| | | type: "string", |
| | | width: 180, |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "orderDetailId", |
| | |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "remark", |
| | |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | ]); |
| | | const detail = ref({ |