| | |
| | | <script> |
| | | import { |
| | | getWorkshopManageGroup, |
| | | changeYieldRegister, |
| | | } from "@/api/productManage/productRegisterForm.js"; |
| | | export default { |
| | | props: { |
| | |
| | | } |
| | | }, |
| | | changeForm(val){ |
| | | if(this.proForm.createTime&&this.proForm.groupNumber&&this.proForm.marketId&&this.proForm.spec&&this.proForm.workshopId){ |
| | | changeYieldRegister({ |
| | | createTime: this.proForm.createTime, |
| | | groupNumber: this.proForm.groupNumber, |
| | | marketId: this.proForm.marketId, |
| | | spec: this.proForm.spec, |
| | | workshopId: this.proForm.workshopId, |
| | | }).then((res) => { |
| | | if (res.code == 200) { |
| | | console.log(res,'res') |
| | | } |
| | | }); |
| | | } |
| | | |
| | | this.$emit('changeForm',this.proForm,val) |
| | | }, |
| | | changeTableInput(){ |
| | | if(this.proForm.netWeight&&this.proForm.pieces&&this.proForm.carNumber&&this.proForm.pieceNumber){ |
| | | if(this.proForm.pieces&&this.proForm.carNumber&&this.proForm.pieceNumber){ |
| | | this.$emit('changeTableInput',this.proForm) |
| | | } |
| | | }, |