| | |
| | | created() { |
| | | }, |
| | | watch:{ |
| | | "form": { |
| | | "editDialogVisible": { |
| | | handler() { |
| | | this.getInfo() |
| | | }, |
| | |
| | | }, |
| | | methods: { |
| | | getInfo(){ |
| | | this.proForm={ |
| | | createTime: this.form.createTime, |
| | | groupNumber: this.form.groupNumber, |
| | | workshopId: this.form.workshopId, |
| | | spec: this.form.spec, |
| | | marketId: this.form.marketId, |
| | | tareWeight: "", |
| | | netWeight: "", |
| | | carNumber: this.form.carNumber, |
| | | pieceNumber: this.form.pieceNumber, |
| | | pieces: this.form.pieces, |
| | | this.proForm.createTime=this.form.createTime |
| | | this.proForm.groupNumber=this.form.groupNumber |
| | | this.proForm.workshopId=this.form.workshopId |
| | | this.proForm.spec=this.form.spec |
| | | this.proForm.marketId=this.form.marketId |
| | | if(!this.proForm.carNumber){ |
| | | this.proForm.carNumber=this.form.carNumber |
| | | } |
| | | this.$forceUpdate(); |
| | | }, |
| | |
| | | } |
| | | } |
| | | }); |
| | | if(this.proForm.groupNumber){ |
| | | this.changeForm() |
| | | } |
| | | }else{ |
| | | this.workshopGroupList =[] |
| | | } |
| | | }, |
| | | changeForm(val){ |
| | | if(this.proForm.createTime&&this.proForm.groupNumber&&this.proForm.marketId&&this.proForm.spec&&this.proForm.workshopId){ |
| | | if(this.editDialogVisible&&this.proForm.createTime&&this.proForm.groupNumber&&this.proForm.marketId&&this.proForm.spec&&this.proForm.workshopId){ |
| | | changeYieldRegister({ |
| | | createTime: this.proForm.createTime, |
| | | groupNumber: this.proForm.groupNumber, |