| | |
| | | const editFormOptions = ref([ |
| | | // 第ä¸è¡ï¼å
³é®ä¿¡æ¯ |
| | | [ |
| | | { |
| | | title: "ç©æç¼å·", |
| | | field: "materielCode", |
| | | type: "string", |
| | | span: 12, |
| | | required: true, |
| | | }, |
| | | // { |
| | | // title: "ç©æç¼å·", |
| | | // field: "materielCode", |
| | | // type: "string", |
| | | // span: 12, |
| | | // required: true, |
| | | // }, |
| | | { |
| | | title: "ç©æåç§°", |
| | | field: "materielName", |
| | |
| | | type: "number", |
| | | span: 8, |
| | | required: true, |
| | | validate: [ |
| | | { |
| | | required: true, |
| | | message: "ç®±è§ä¸è½ä¸ºç©º" |
| | | }, |
| | | { |
| | | validator: (value) => value > 0, |
| | | message: "ç®±è§å¿
须大äº0" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | title: "ç©æç¶æ", |
| | | field: "materielState", |
| | | type: "select", |
| | | dataKey: "materielState", |
| | | data: [], |
| | | span: 8, |
| | | required: true, |
| | | } |
| | | // { |
| | | // title: "ç©æç¶æ", |
| | | // field: "materielState", |
| | | // type: "select", |
| | | // dataKey: "materielState", |
| | | // data: [], |
| | | // span: 8, |
| | | // required: true, |
| | | // } |
| | | ], |
| | | // 第äºè¡ï¼åºåä¿¡æ¯ |
| | | [ |
| | |
| | | |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { |
| | | title: "ä»åºç¼å·", |
| | | field: "warehouseCode", |
| | | type: "string" |
| | | }, |
| | | // { |
| | | // title: "ä»åºç¼å·", |
| | | // field: "warehouseCode", |
| | | // type: "string" |
| | | // }, |
| | | { |
| | | title: "ç©æç¼å·", |
| | | field: "materielCode", |
| | | type: "like" |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | { |
| | | title: "ç©æåç§°", |
| | | field: "materielName", |
| | | type: "like" |
| | | }, |
| | | { |
| | | title: "åå/éç¨å", |
| | | field: "item", |
| | | type: "like", |
| | | }, |
| | | { |
| | | title: "è¯å", |
| | |
| | | dataKey: "materielType", |
| | | data: [], |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | { |
| | | title: "ç©æå±æ§åç±»", |
| | | field: "materielSourceType", |
| | | type: "select", |
| | | dataKey: "materialCode", |
| | | data: [], |
| | | }, |
| | | { |
| | | title: "ç©æç¶æ", |
| | | field: "materielState", |
| | | type: "select", |
| | | dataKey: "materielState", |
| | | data: [], |
| | | }, |
| | | ], |
| | | [ |
| | | // { |
| | | // title: "ç©æç¶æ", |
| | | // field: "materielState", |
| | | // type: "select", |
| | | // dataKey: "materielState", |
| | | // data: [], |
| | | // }, |
| | | ], |
| | | // [ |
| | | // { |
| | |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "materielState", |
| | | title: "ç©æç¶æ", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | bind: { key: "materielState", data: [] }, |
| | | require: true, |
| | | }, |
| | | // { |
| | | // field: "materielState", |
| | | // title: "ç©æç¶æ", |
| | | // type: "string", |
| | | // width: 100, |
| | | // align: "left", |
| | | // bind: { key: "materielState", data: [] }, |
| | | // require: true, |
| | | // }, |
| | | { |
| | | field: "goodStatusState", |
| | | title: "ä¸åç¶æ", |
| | |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "creater", |
| | | title: "å建人", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "creater", |
| | | // title: "å建人", |
| | | // type: "string", |
| | | // width: 90, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "createDate", |
| | | title: "å建æ¶é´", |
| | |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "modifier", |
| | | title: "ä¿®æ¹äºº", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "modifier", |
| | | // title: "ä¿®æ¹äºº", |
| | | // type: "string", |
| | | // width: 100, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "modifyDate", |
| | | title: "ä¿®æ¹æ¶é´", |