| | |
| | | <span slot="label"> |
| | | <span class="formLabel">净重</span> |
| | | </span> |
| | | <el-input v-model="proForm.netWeight" @blur="changeTableInput" size="small"></el-input> |
| | | <el-input v-model="proForm.netWeight" @blur="changeTableInput" size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="20"> |
| | |
| | | <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) |
| | | } |
| | | }, |