qq_41295110
2026-01-16 c433fd81014dca445748d06837d089daef840557
src/views/scMould/basicModeling/Gy_MouldFile.vue
@@ -95,9 +95,9 @@
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="单位" prop="HUnitName" v-show="isHide">
              <el-form-item label="单位" prop="HUnitName" v-show="isShow">
                <el-input v-model="form.HUnitName" placeholder="请输入单位" disabled>
                  <el-button slot="append" icon="el-icon-search"></el-button>
                  <el-button slot="append" icon="el-icon-search"  @click="openDataDialog(11)"></el-button>
                </el-input>
              </el-form-item>
            </el-col>
@@ -505,6 +505,7 @@
      <GySupplier @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="gySupplierShow" />
      <GyCustomer @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="gyCustomerShow" />
      <GyStockPlace @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="gyStockPlaceShow" />
      <GyUnit @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="gyUnitShow" />
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="deptClickSub">确 定</el-button>
        <el-button @click="deptClose">取 消</el-button>
@@ -527,11 +528,12 @@
import GySupplier from '@/views/basic/gy/gySupplier.vue'
import GyCustomer from '@/views/GyCustomer'
import GyStockPlace from '@/views/basic/gyStockPlace/gyStockPlace.vue'
import GyUnit from '@/views/basic/gyUnit/gyUnit.vue'
import moment from 'moment';
export default {
  name: 'Gy_MouldFile',
  components: { Dept, Warehouse, Material, RowSettings, GyEmployee, GySource, GySupplier, GyCustomer, GyStockPlace },
  components: { Dept, Warehouse, Material, RowSettings, GyEmployee, GySource, GySupplier, GyCustomer, GyStockPlace,GyUnit },
  props: {
    OperationType: { type: Number, },
    linterid: { type: Number, },
@@ -569,6 +571,7 @@
      gySupplierShow: false,
      gyCustomerShow: false,
      gyStockPlaceShow: false,
      gyUnitShow: false,
      deptform: {},//弹窗选中数据
      openData: false,//数据弹窗
      dialogTitle: '',
@@ -624,6 +627,7 @@
      form: {},
      // 表单校验
      rules: {
        HUnitName:[{required: true, message: "单位不能为空", trigger: "blur" }],
        // HSupName: [
        //   { required: true, message: "客户不能为空", trigger: "blur" }
        // ],
@@ -841,7 +845,6 @@
          this.gySupplierShow = false
          this.openData = false
        } else if (num == 7) {
          console.log(deptRow)
          this.form.HCusName = deptRow.客户名称
          this.form.HCusID = deptRow.HItemID
          this.gyCustomerShow = false
@@ -856,6 +859,12 @@
          }
          this.gyStockPlaceShow = false
          this.openData = false
        } else if (num == 11){
           this.form.HUnitName = deptRow.计量单位名称;
            this.form.HUnitID = deptRow.HItemID;
          this.gyUnitShow= false
          this.openData = false
        }
      } else {
        this.$modal.msgError("请选择单条数据!");
@@ -1143,8 +1152,8 @@
          // this.form.HMouldWidth = data.HMouldWidth
          // this.form.HMouldHeight = data.HMouldHeight
          // this.form.HMouldFoldHeight = data.HMouldFoldHeight
          this.form.HTransPackFlag = data.发货容器标记
          this.form.HSendPackFlag = data.周转容器标记
          this.form.HTransPackFlag = data.周转容器标记
          this.form.HSendPackFlag = data.发货容器标记
          this.form.HMouldFoldHeight = data.折叠高度
            this.form.HMouldLength = data.长
          this.form.HMouldWidth = data.宽
@@ -1503,6 +1512,7 @@
      this.gySupplierShow = false
      this.gyCustomerShow = false
      this.gyStockPlaceShow = false
      this.gyUnitShow= false
    },
    //  打开数据列表弹窗
    openDataDialog(num, row) {
@@ -1543,6 +1553,10 @@
        this.dialogTitle = '仓位列表'
        this.gyStockPlaceShow = true
        this.openData = true
      } else if (num == 11) {
        this.dialogTitle = '单位列表'
        this.gyUnitShow = true
        this.openData = true
      }
    },
  }