| | |
| | | import gridBody from './extend/materielcodeprintView.vue' |
| | | import modelHeader from './extend/materielcodeSelectView.vue' |
| | | import modelBody from './extend/purchaseOrderNoSelectView.vue' |
| | | import modelFooter from './extend/GetOrderQuantityView.vue' |
| | | let extension = { |
| | | components: { |
| | | //æ¥è¯¢ç颿©å±ç»ä»¶ |
| | |
| | | //æ°å»ºãç¼è¾å¼¹åºæ¡æ©å±ç»ä»¶ |
| | | modelHeader: modelHeader, |
| | | modelBody: modelBody, |
| | | modelFooter: '' |
| | | modelFooter: 'modelFooter' |
| | | }, |
| | | tableAction: '', //æå®æå¼ 表çæé(è¿éå¡«å表å,é»è®¤ä¸ç¨å¡«å) |
| | | buttons: { view: [], box: [], detail: [] }, //æ©å±çæé® |
| | |
| | | //触åäºä»¶ |
| | | click: (item) => { |
| | | this.$refs.modelBody.open(this.editFormFields.materielCode); |
| | | } |
| | | }; |
| | | } |
| | | }); |
| | | }); |
| | | this.editFormOptions.forEach((option) => { |
| | | option.forEach((item) => { |
| | | if (item.field == 'quantity') { |
| | | //åå§åå¼¹åºæ¡éæ©å¨é
ç½® |
| | | item.extra = { |
| | | icon: 'el-icon-zoom-out', //æ¾ç¤ºå¾æ |
| | | text: 'éè´åæå¤§æ°é', //æ¾ç¤ºææ¬ |
| | | style: 'color: #3a8ee6;font-size: 13px;cursor: pointer;', |
| | | //触åäºä»¶ |
| | | click: (item) => { |
| | | this.$refs.modelFooter.open(this.editFormFields.purchaseOrderNo); |
| | | } |
| | | }; |
| | | } |
| | |
| | | let year = date.getFullYear(); |
| | | let month = String(date.getMonth() + 1).padStart(2, "0"); |
| | | let day = String(date.getDate()).padStart(2, "0"); |
| | | this.editFormFields.lotNo = year + month + day; |
| | | let hour= String(date.getHours()).padStart(2, "0"); |
| | | let minute= String(date.getMinutes()).padStart(2, "0"); |
| | | let second= String(date.getSeconds()).padStart(2, "0"); |
| | | //å°yearæªååä¸¤ä½ |
| | | this.editFormFields.lotNo = (year.toString().substr(-2)) + month+day + hour + minute+second; |
| | | this.editFormFields.productionDate = year + "-" + month + "-" + day; |
| | | this.editFormFields.effectiveDate = year + 2 + "-" + month + "-" + day; |
| | | } |