haoxuan
2024-04-11 faa61347e57ce4ec516aa766494c3b69c9bf1280
台产量,个人产量,台时产量等组合一组数据
1个文件已修改
19 ■■■■ 已修改文件
src/views/productManage/productRegisterForm/components/addProductDialog.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/productRegisterForm/components/addProductDialog.vue
@@ -118,7 +118,7 @@
              <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">
@@ -157,6 +157,7 @@
<script>
import {
  getWorkshopManageGroup,
  changeYieldRegister,
} from "@/api/productManage/productRegisterForm.js";
export default {
  props: { 
@@ -273,10 +274,24 @@
      }
    },
    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)
      }
    },