chenhaozhe
5 天以前 cfd0b53967daca92d98cd304e4d4e0577e2efbd3
src/views/scMould/basicModeling/Gy_MouldFileList.vue
@@ -96,9 +96,9 @@
      </el-collapse>
    </el-form>
    <el-row :gutter="10" class="mb8" style="margin-top: 10px;">
      <el-col :span="1.5">
      <!-- <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-download" size="mini" @click="handleImport">导入</el-button>
      </el-col>
      </el-col> -->
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAddEdit(OperationType = 1)"
          id="btn-Add">新增</el-button>
@@ -107,10 +107,10 @@
        <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single"
          @click="handleEdit(row = rowForm, OperationType = 3)">编辑</el-button>
      </el-col>
      <el-col :span="1.5">
      <!-- <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single"
          @click="handleEdit(row = rowForm, OperationType = 2)">复制</el-button>
      </el-col>
          @click="handleEdit(row = rowForm, copyType = 1)">复制</el-button>
      </el-col> -->
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete">删除
        </el-button>
@@ -123,14 +123,14 @@
        <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single"
          @click="set_CheckBill(1, form = rowForm)">返审核</el-button>
      </el-col>
      <el-col :span="1.5">
      <!-- <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single"
          @click="set_De_Stop(0, form = rowForm)">禁用</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single"
          @click="set_De_Stop(1, form = rowForm)">反禁用</el-button>
      </el-col>
      </el-col> -->
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport">导出</el-button>
      </el-col>
@@ -295,7 +295,7 @@
        HUSEORGID: sessionStorage["OrganizationID"] - 0,
        HName: null,
        HNumber: null,
        HMouldTypeID: null,
        HMouldTypeID: 0,
        Comparator1: '',
        Comparator2: '',
        Comparator: '',
@@ -412,11 +412,9 @@
          "user": sessionStorage["HUserName"],
        },
      }).then(response => {
        let data1 = response.data
        if (data1.count == 1) {
          let data = JSON.parse(data1.data)
          console.log(JSON.parse(data1.data))
          var liStr = '[';
          //遍历生成主菜单
          for (var i = 0; i < data.length; i++) {
@@ -438,7 +436,6 @@
          this.treeOptions = JSON.parse(liStr);
        }
      }).catch(error => {
        console.log(error)
        this.$modal.msgError("接口请求失败!");
      });
    },
@@ -521,77 +518,78 @@
              col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 });
            }
          }
          option.cols = [[
            { type: 'checkbox', fixed: 'left', totalRowText: '合计行' }
            , { field: 'hmainid', title: 'hmainid', sort: true, hide: true }
            , { field: '日期', title: '日期', sort: true }
            , { field: '单据号', title: '单据号', sort: true, width: 120 }
            , { field: '条码编号', title: '条码编号', sort: true, width: 120 }
            , { field: '对应ERP物料编码', title: '物料编号', sort: true, width: 120 }
            , { field: '模具编号', title: '容器编号', sort: true, width: 120 }
            , { field: '模具名称', title: '容器名称', sort: true, width: 120 }
            , { field: '模具型号', title: '容器型号', sort: true, width: 120 }
            , { field: '模具品类', title: '容器品类', sort: true, width: 120 }
            , { field: '模具状态', title: '容器状态', sort: true, width: 120 }
            , { field: '模具可用状态', title: '模具可用状态', sort: true, width: 140 }
            , { field: '穴数', title: '穴数', sort: true, width: 120 }
            , { field: '对应ERP物料编码', title: '容器ERP物料', sort: true, width: 140 }
            , { field: '直径', title: '直径', sort: true, width: 120 }
            , { field: '辅助属性', title: '辅助属性', sort: true, width: 120 }
            , { field: '辅助属性2', title: '辅助属性2', sort: true, width: 120 }
            , { field: '图号', title: '图号', sort: true, width: 120 }
            , { field: '生产产品型号', title: '生产产品型号', sort: true, width: 120 }
            , { field: 'HUnitID', title: 'HUnitID', hide: true, sort: true, width: 120 }
            , { field: '计量单位代码', title: '计量单位代码', sort: true, width: 120 }
            , { field: '计量单位', title: '计量单位', sort: true, width: 120 }
            , { field: '出厂日期', title: '出厂日期', sort: true, width: 120 }
            , { field: '出厂编号', title: '出厂编号', sort: true, width: 120 }
            , { field: '使用部门代码', title: '使用部门代码', sort: true, width: 120 }
            , { field: '使用部门', title: '使用部门', sort: true, width: 120 }
            , { field: 'HSupID', title: 'HSupID', hide: true, sort: true, width: 120 }
            , { field: '供应商代码', title: '供应商代码', sort: true, width: 120 }
            , { field: '供应商', title: '供应商', sort: true, width: 120 }
            , { field: 'HWhID', title: 'HWhID', hide: true, sort: true, width: 120 }
            , { field: '默认仓库', title: '默认仓库', sort: true, width: 120 }
            , { field: 'HSPID', title: 'HSPID', hide: true, sort: true, width: 120 }
            , { field: '默认仓位', title: '默认仓位', sort: true, width: 120 }
            , { field: '版本', title: '版本', sort: true, width: 120 }
            , { field: '当前仓库', title: '当前仓库', sort: true, width: 120 }
            , { field: '当前仓位', title: '当前仓位', sort: true, width: 120 }
            , { field: '虚拟仓类型', title: '虚拟仓类型', sort: true, width: 120 }
            , { field: '虚拟仓', title: '虚拟仓', sort: true, width: 120 }
            , { field: '当前模具规格', title: '当前容器规格', sort: true, width: 140 }
            , { field: '初始模具规格', title: '初始容器规格', sort: true, width: 140 }
            , { field: '当前设计寿命', title: '当前设计寿命', sort: true, totalRow: true, width: 140 }
            , { field: '初始设计寿命', title: '初始设计寿命', sort: true, totalRow: true, width: 140 }
            , { field: '使用寿命', title: '使用寿命', sort: true, totalRow: true, width: 120 }
            , { field: '剩余寿命', title: '剩余寿命', sort: true, totalRow: true, width: 120 }
            , { field: '已生产数量', title: '已生产数量', sort: true, totalRow: true, width: 120 }
            , { field: '已生产重量', title: '已生产重量', sort: true, totalRow: true, width: 120 }
            , { field: '备注', title: '备注', sort: true, width: 120 }
            , { field: '关联数量', title: '关联数量', sort: true, totalRow: true, width: 120 }
            , { field: '制单人', title: '制单人', sort: true, width: 120 }
            , { field: '制单日期', title: '制单日期', sort: true, width: 120 }
            , { field: '审核人', title: '审核人', sort: true, width: 120 }
            , { field: '审核日期', title: '审核日期', sort: true, width: 120 }
            , { field: '修改人', title: '修改人', sort: true, width: 120 }
            , { field: '修改日期', title: '修改日期', sort: true, width: 120 }
            , { field: '关闭人', title: '关闭人', sort: true, width: 120 }
            , { field: '关闭日期', title: '关闭日期', sort: true, width: 120 }
            , { field: '作废人', title: '作废人', sort: true, width: 120 }
            , { field: '作废日期', title: '作废日期', sort: true, width: 120 }
            , { field: 'hbilltype', title: 'hbilltype', hide: true, sort: true, width: 120 }
            , { field: '单据类型', title: '单据类型', hide: true, sort: true, width: 120 }
            , { field: 'HMoudType', title: 'HMoudType', hide: true, sort: true, width: 120 }
            , { field: 'hsubid', title: 'hsubid', hide: true, sort: true, width: 120 }
          ]]
          option.cols = [col]
          // option.cols = [[
          //   { type: 'checkbox', fixed: 'left', totalRowText: '合计行' }
          //   , { field: 'hmainid', title: 'hmainid', sort: true, hide: true }
          //   , { field: '日期', title: '日期', sort: true }
          //   , { field: '单据号', title: '单据号', sort: true, width: 120 }
          //   , { field: '条码编号', title: '条码编号', sort: true, width: 120 }
          //   , { field: '对应ERP物料编码', title: '物料编号', sort: true, width: 120 }
          //   , { field: '模具编号', title: '容器编号', sort: true, width: 120 }
          //   , { field: '模具名称', title: '容器名称', sort: true, width: 120 }
          //   , { field: '模具型号', title: '容器型号', sort: true, width: 120 }
          //   , { field: '模具品类', title: '容器品类', sort: true, width: 120 }
          //   , { field: '模具状态', title: '容器状态', sort: true, width: 120 }
          //   , { field: '模具可用状态', title: '模具可用状态', sort: true, width: 140 }
          //   , { field: '穴数', title: '穴数', sort: true, width: 120 }
          //   , { field: '对应ERP物料编码', title: '容器ERP物料', sort: true, width: 140 }
          //   , { field: '直径', title: '直径', sort: true, width: 120 }
          //   , { field: '辅助属性', title: '辅助属性', sort: true, width: 120 }
          //   , { field: '辅助属性2', title: '辅助属性2', sort: true, width: 120 }
          //   , { field: '图号', title: '图号', sort: true, width: 120 }
          //   , { field: '生产产品型号', title: '生产产品型号', sort: true, width: 120 }
          //   , { field: 'HUnitID', title: 'HUnitID', hide: true, sort: true, width: 120 }
          //   , { field: '计量单位代码', title: '计量单位代码', sort: true, width: 120 }
          //   , { field: '计量单位', title: '计量单位', sort: true, width: 120 }
          //   , { field: '出厂日期', title: '出厂日期', sort: true, width: 120 }
          //   , { field: '出厂编号', title: '出厂编号', sort: true, width: 120 }
          //   , { field: '使用部门代码', title: '使用部门代码', sort: true, width: 120 }
          //   , { field: '使用部门', title: '使用部门', sort: true, width: 120 }
          //   , { field: 'HSupID', title: 'HSupID', hide: true, sort: true, width: 120 }
          //   , { field: '供应商代码', title: '供应商代码', sort: true, width: 120 }
          //   , { field: '供应商', title: '供应商', sort: true, width: 120 }
          //   , { field: 'HWhID', title: 'HWhID', hide: true, sort: true, width: 120 }
          //   , { field: '默认仓库', title: '默认仓库', sort: true, width: 120 }
          //   , { field: 'HSPID', title: 'HSPID', hide: true, sort: true, width: 120 }
          //   , { field: '默认仓位', title: '默认仓位', sort: true, width: 120 }
          //   , { field: '版本', title: '版本', sort: true, width: 120 }
          //   , { field: '当前仓库', title: '当前仓库', sort: true, width: 120 }
          //   , { field: '当前仓位', title: '当前仓位', sort: true, width: 120 }
          //   , { field: '虚拟仓类型', title: '虚拟仓类型', sort: true, width: 120 }
          //   , { field: '虚拟仓', title: '虚拟仓', sort: true, width: 120 }
          //   , { field: '当前模具规格', title: '当前容器规格', sort: true, width: 140 }
          //   , { field: '初始模具规格', title: '初始容器规格', sort: true, width: 140 }
          //   , { field: '当前设计寿命', title: '当前设计寿命', sort: true, totalRow: true, width: 140 }
          //   , { field: '初始设计寿命', title: '初始设计寿命', sort: true, totalRow: true, width: 140 }
          //   , { field: '使用寿命', title: '使用寿命', sort: true, totalRow: true, width: 120 }
          //   , { field: '剩余寿命', title: '剩余寿命', sort: true, totalRow: true, width: 120 }
          //   , { field: '已生产数量', title: '已生产数量', sort: true, totalRow: true, width: 120 }
          //   , { field: '已生产重量', title: '已生产重量', sort: true, totalRow: true, width: 120 }
          //   , { field: '备注', title: '备注', sort: true, width: 120 }
          //   , { field: '关联数量', title: '关联数量', sort: true, totalRow: true, width: 120 }
          //   , { field: '制单人', title: '制单人', sort: true, width: 120 }
          //   , { field: '制单日期', title: '制单日期', sort: true, width: 120 }
          //   , { field: '审核人', title: '审核人', sort: true, width: 120 }
          //   , { field: '审核日期', title: '审核日期', sort: true, width: 120 }
          //   , { field: '修改人', title: '修改人', sort: true, width: 120 }
          //   , { field: '修改日期', title: '修改日期', sort: true, width: 120 }
          //   , { field: '关闭人', title: '关闭人', sort: true, width: 120 }
          //   , { field: '关闭日期', title: '关闭日期', sort: true, width: 120 }
          //   , { field: '作废人', title: '作废人', sort: true, width: 120 }
          //   , { field: '作废日期', title: '作废日期', sort: true, width: 120 }
          //   , { field: 'hbilltype', title: 'hbilltype', hide: true, sort: true, width: 120 }
          //   , { field: '单据类型', title: '单据类型', hide: true, sort: true, width: 120 }
          //   , { field: 'HMoudType', title: 'HMoudType', hide: true, sort: true, width: 120 }
          //   , { field: 'hsubid', title: 'hsubid', hide: true, sort: true, width: 120 }
          // ]]
          this.dataList = option
          option.data = data1.data;
          var result = data1.data;
          option.data = result;
          this.DisPlay_HideColumn(this.HModName, sessionStorage["HUserName"], option, this.dataList);
        } else {
          this.$modal.msgError("接口请求失败!");
          this.$modal.msgError(data1.Message);
        }
      }).catch(error => {
        this.$modal.msgError("接口请求失败!");
@@ -851,10 +849,10 @@
        this.sWhere += " and " + this.queryParams.ColName2 + " " + com2;
      }
      if (this.queryParams.HNumber) {
        this.sWhere += " and 器具编号 like '%" + this.queryParams.HNumber + "%'";
        this.sWhere += " and 模具编号 like '%" + this.queryParams.HNumber + "%'";
      }
      if (this.queryParams.HName) {
        this.sWhere += " and 器具名称 like '%" + this.queryParams.HName + "%'";
        this.sWhere += " and 模具名称 like '%" + this.queryParams.HName + "%'";
      }
      if (this.queryParams.HUSEORGID) {
        this.sWhere += " and HUSEORGID = '" + this.queryParams.HUSEORGID + "'"
@@ -903,9 +901,10 @@
    resetQuery() {
      this.sWhere = ''
      this.queryParams = {
        HUSEORGID: null,
        HUSEORGID: sessionStorage["OrganizationID"] - 0,
        HName: null,
        HNumber: null,
        HMouldTypeID: 0,
        Comparator1: '',
        Comparator2: '',
        Comparator: '',