| | |
| | | footer: "Foots", |
| | | cnName: "ç»çä¿¡æ¯", |
| | | name: "boxing", |
| | | url: "/boxing/", |
| | | sortName: "createDate", |
| | | url: "/boxing/", |
| | | sortName: "createDate", |
| | | }); |
| | | |
| | | // ç¼è¾è¡¨ååæ®µ - æ°å¢boxingNo |
| | | const editFormFields = ref({ |
| | | id: "", |
| | | palletCode: "", |
| | | palletCode: "", |
| | | productCode: "", |
| | | productName: "", |
| | | boxingNo: "", // æµæ°´å·å段 |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | |
| | | field: "palletCode", |
| | | type: "input", |
| | | width: 200, |
| | | require: true |
| | | require: true, |
| | | }, |
| | | { |
| | | title: "æåç¼å·", |
| | | field: "productCode", |
| | | type: "input", |
| | | width: 200, |
| | | require: true |
| | | require: true, |
| | | }, |
| | | { |
| | | title: "æååç§°", |
| | | field: "productName", |
| | | type: "input", |
| | | width: 200, |
| | | require: true |
| | | } |
| | | require: true, |
| | | }, |
| | | // æ°å¢ï¼æµæ°´å·ç¼è¾é¡¹ï¼åå®ä½ä¸è´éç©ºï¼æ
设require: trueï¼ |
| | | { |
| | | title: "æµæ°´å·", |
| | | field: "boxingNo", |
| | | type: "input", |
| | | width: 200, |
| | | require: true, |
| | | }, |
| | | ], |
| | | [ |
| | | [{ |
| | | title: "便¹ä»£ç ", |
| | | field: "supplierCode", |
| | | type: "input", |
| | | width: 200, |
| | | require: true, |
| | | }, |
| | | { |
| | | title: "主é®ID", |
| | | field: "id", |
| | | type: "input", |
| | | width: 100, |
| | | hidden: true, |
| | | readonly: true |
| | | } |
| | | ] |
| | | readonly: true, |
| | | }, |
| | | ], |
| | | ]); |
| | | |
| | | // æ¥è¯¢è¡¨ååæ®µ - æ°å¢boxingNo |
| | | const searchFormFields = ref({ |
| | | palletCode: "", |
| | | productCode: "", |
| | | productName: "", |
| | | boxingNo: "", // æµæ°´å·æ¥è¯¢å段 |
| | | creater: "", |
| | | createDate: "", |
| | | supplierCode: "", |
| | | }); |
| | | |
| | | const searchFormOptions = ref([ |
| | |
| | | { title: "å·¥è£
æ¿ç¼å·", field: "palletCode", type: "like" }, |
| | | { title: "æåç¼å·", field: "productCode", type: "like" }, |
| | | { title: "æååç§°", field: "productName", type: "like" }, |
| | | // æ°å¢ï¼æµæ°´å·æ¥è¯¢é¡¹ï¼æ¨¡ç³æ¥è¯¢likeï¼åå
¶ä»ç¼å·ä¿æä¸è´ï¼ |
| | | { title: "æµæ°´å·", field: "boxingNo", type: "like" }, |
| | | ], |
| | | [ |
| | | { title: "便¹ä»£ç ", field: "supplierCode", type: "like" }, |
| | | { title: "å建人", field: "creater", type: "like" }, |
| | | { title: "å建æ¶é´", field: "createDate", type: "datetime" }, |
| | | ], |
| | | ]); |
| | | |
| | | // è¡¨æ ¼åé
ç½® - æ°å¢boxingNoå |
| | | const columns = ref([ |
| | | { |
| | | field: "id", |
| | |
| | | field: "palletCode", |
| | | title: "å·¥è£
æ¿ç¼å·", |
| | | type: "string", |
| | | link: true, |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | |
| | | { |
| | | field: "productName", |
| | | title: "æååç§°", |
| | | type: "string", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "supplierCode", |
| | | title: "便¹ä»£ç ", |
| | | type: "string", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | // æ°å¢ï¼æµæ°´å·è¡¨æ ¼åï¼å®½åº¦åå
¶ä»ç¼å·ä¿æ200ï¼å¯æ ¹æ®éæ±è°æ´ï¼ |
| | | { |
| | | field: "boxingNo", |
| | | title: "æµæ°´å·", |
| | | type: "string", |
| | | width: 200, |
| | | align: "left", |
| | |
| | | ]); |
| | | |
| | | const detail = ref({ |
| | | cnName: "", |
| | | table: "", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "", |
| | | cnName: "ç»ç详ç»ä¿¡æ¯", |
| | | table: "DoxingDetail", |
| | | columns: [ |
| | | { |
| | | field: "boxingId", |
| | | title: "ç»çID", |
| | | type: "int", |
| | | width: 90, |
| | | hidden: true, |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "componentCode", |
| | | title: "é¶ä»¶ç¼å·", |
| | | type: "string", |
| | | edit: { type: "" }, |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "componentName", |
| | | title: "é¶ä»¶åç§°", |
| | | type: "string", |
| | | edit: { type: "" }, |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | ], |
| | | sortName: "createDate", |
| | | key: "id", |
| | | }); |
| | | |
| | | return { |
| | |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
| | | </script> |