| | |
| | | |
| | | export default defineComponent({ |
| | | setup() { |
| | | // è¡¨æ ¼åºç¡é
ç½® |
| | | const table = ref({ |
| | | key: "id", |
| | | footer: "Foots", |
| | | cnName: "é
æ¹ä¿¡æ¯è¯¦æ
", |
| | | name: "formulaDetail", |
| | | url: "/formulaDetail/", |
| | | sortName: "createDate", |
| | | url: "/formulaDetail/", |
| | | sortName: "createDate", |
| | | }); |
| | | |
| | | // ç¼è¾è¡¨åç»å®åæ®µï¼æ°å¢supplierCodeï¼ |
| | | const editFormFields = ref({ |
| | | id: "", |
| | | formulaId: "", |
| | | formulaId: "", |
| | | componentCode: "", |
| | | componentName: "", |
| | | supplierCode: "", |
| | | isScanned: "", |
| | | }); |
| | | |
| | | |
| | | // ç¼è¾è¡¨åé
ç½®é¡¹ï¼æ°å¢ä¾æ¹ä»£ç è¾å
¥é¡¹ï¼ |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { |
| | |
| | | field: "formulaId", |
| | | type: "input", |
| | | width: 200, |
| | | require: true |
| | | require: true, |
| | | }, |
| | | { |
| | | title: "é¶ä»¶ç¼å·", |
| | | field: "componentCode", |
| | | type: "input", |
| | | width: 200, |
| | | require: true |
| | | require: true, |
| | | }, |
| | | { |
| | | title: "é¶ä»¶åç§°", |
| | | field: "componentName", |
| | | type: "input", |
| | | width: 200, |
| | | require: true |
| | | } |
| | | require: true, |
| | | }, |
| | | { |
| | | title: "便¹ä»£ç ", |
| | | field: "supplierCode", |
| | | type: "input", |
| | | width: 200, |
| | | }, |
| | | { |
| | | title: "æ¯å¦æ«ç ", |
| | | field: "isScanned", |
| | | type: "select", |
| | | data: [ |
| | | { key: "0", value: "å¦" }, |
| | | { key: "1", value: "æ¯" }, |
| | | ], |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | |
| | | type: "input", |
| | | width: 100, |
| | | hidden: true, |
| | | readonly: true |
| | | } |
| | | ] |
| | | readonly: true, |
| | | }, |
| | | ], |
| | | ]); |
| | | |
| | | // æç´¢è¡¨åç»å®åæ®µï¼æ°å¢supplierCodeï¼ |
| | | const searchFormFields = ref({ |
| | | formulaId: "", |
| | | componentCode: "", |
| | | componentName: "", |
| | | supplierCode: "", |
| | | creater: "", |
| | | createDate: "", |
| | | isScanned: "", |
| | | }); |
| | | |
| | | // æç´¢è¡¨åé
ç½®é¡¹ï¼æ°å¢ä¾æ¹ä»£ç æ¨¡ç³æç´¢ï¼ |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "é
æ¹ä¿¡æ¯ä¸»é®", field: "formulaId", type: "int" }, |
| | | { title: "é¶ä»¶ç¼å·", field: "componentCode", type: "like" }, |
| | | { title: "é¶ä»¶åç§°", field: "componentName", type: "like" }, |
| | | { title: "便¹ä»£ç ", field: "supplierCode", type: "like" }, |
| | | { |
| | | title: "æ¯å¦æ«ç ", |
| | | field: "isScanned", |
| | | type: "select", |
| | | data: [ |
| | | { key: "0", value: "å¦" }, |
| | | { key: "1", value: "æ¯" }, |
| | | ], |
| | | }, |
| | | ], |
| | | [ |
| | | { title: "å建人", field: "creater", type: "like" }, |
| | |
| | | ], |
| | | ]); |
| | | |
| | | // è¡¨æ ¼åé
ç½®ï¼æ°å¢ä¾æ¹ä»£ç åï¼ |
| | | const columns = ref([ |
| | | { |
| | | field: "id", |
| | |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "supplierCode", |
| | | title: "便¹ä»£ç ", |
| | | type: "string", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | title: "æ¯å¦æ«ç ", |
| | | field: "isScanned", |
| | | type: "select", |
| | | bind: { |
| | | key: "value", |
| | | data: [ |
| | | { key: "0", value: "å¦" }, |
| | | { key: "1", value: "æ¯" }, |
| | | ], |
| | | }, |
| | | }, |
| | | { |
| | | field: "creater", |
| | | title: "å建人", |
| | | type: "string", |
| | |
| | | }, |
| | | ]); |
| | | |
| | | // 详æ
页é
ç½®ï¼ææªä½¿ç¨ï¼ä¿æåæï¼ |
| | | const detail = ref({ |
| | | cnName: "", |
| | | table: "", |
| | |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
| | | </script> |