采购管理去质检操作的报错问题修改+批量合格入库批量不合格操作的时候增加一项都没有选择的时候提示的逻辑
2个文件已修改
31 ■■■■ 已修改文件
src/components/makepager/CommonFormTableView.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/purchaseManage/purchase/components/TestingAll.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/CommonFormTableView.vue
@@ -10,7 +10,7 @@
        :span-method="arraySpanMethod"
        style="width: 100%"
        @selection-change="handleSelectionChange"
        :row-key="(row) => row.productId"
        :row-key="getRowKeys"
      >
        <el-table-column v-if="selectBox"  type="selection" :selectable="isDisabled" :reserve-selection="true" width="40" align="center">
          
@@ -336,6 +336,12 @@
  },
  computed: {},
  methods: {
    // 获取row的key值
    getRowKeys(row) {
      let string;
      string = row[this.productTableList.key?this.productTableList.key:this.productTableList.productId];
      return string;
    },
    isDisabled(row){ 
      if (this.name == "rework") {
        if (row.status == 1) {
src/views/purchaseManage/purchase/components/TestingAll.vue
@@ -2,19 +2,16 @@
  <div class="add-quotation">
    <el-dialog :visible.sync="editConfig.visible" width="70%" append-to-body custom-class="iframe-dialog">
      <el-header>
        <el-button type="primary" :disabled="isDisabled"  size="small"
          @click="saveClick()">批量合格入库</el-button>
        <el-button type="primary" :disabled="isDisabled"  size="small"
          @click="saveNoClick()">批量不合格</el-button>
        <el-button type="primary" :disabled="isDisabled" size="small" @click="saveClick()">批量合格入库</el-button>
        <el-button type="primary" :disabled="isDisabled" size="small" @click="saveNoClick()">批量不合格</el-button>
      </el-header>
      <el-form ref="form" :model="editConfig.infomation" label-position="right" label-width="130px" size="mini"
        style="height: 60vh; overflow-x: hidden">
        <div class="basic-info">
          <div class="product-view">
            <CommonFormTableView :isBoder="true"
              name="rework" :selectBox="true" :detailEnter="true" :recalculateShow="false"
              :addTypeIdMultiple="true" :product-table-list="productTableList" sign="purchase" @rowClick="rowClick"
              @getSelectArray="getSelectArray" @toFiltering="toFiltering">
            <CommonFormTableView :isBoder="true" name="rework" :selectBox="true" :detailEnter="true"
              :recalculateShow="false" :addTypeIdMultiple="true" :product-table-list="productTableList" sign="purchase"
              @rowClick="rowClick" @getSelectArray="getSelectArray" @toFiltering="toFiltering">
              <template slot="tableButton">
                <el-table-column label="操作" width="120" align="center">
@@ -157,7 +154,9 @@
      }
    },
    async savePurchaseQualityInspectionInfo(params) {
      if (params.ids.length > 0) {
      await savePurchaseQualityInspectionInfo(params).then((res) => {
          if (res) {
        if (res.code === 200) {
          this.editConfig.visible = false
          if(params.status===2){
@@ -168,7 +167,14 @@
          }
          this.$parent.getData()
        }
          }
      })
      }else{
        this.$message({
          message: "至少选择一条!",
          type: "warning",
        });
      }
    },
    handleClose() {
      this.editConfig.visible = false
@@ -178,6 +184,7 @@
        tableProductList: [],
        tableData: this.tableData,
        disabled: this.editConfig.isDisabled,
        key: 'id',
        isReturn: true,
        tableColumn: [
          {