duhe
昨天 45eb31fc847c8662da817547a451d394673967eb
锦隆:条码主档 增加批量作废、反作废
1个文件已修改
46 ■■■■■ 已修改文件
src/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue
@@ -127,6 +127,14 @@
        </el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-delete" size="mini" @click="handleBatchDelete(0)">批量作废
        </el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-delete" size="mini" @click="handleBatchDelete(1)">批量反作废
        </el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport">导出</el-button>
      </el-col>
      <el-col :span="1.5">
@@ -610,6 +618,44 @@
    },
    //#endregion
    //#region 批量作废
    handleBatchDelete(num) {
      if (this.checkDataList.length == 0) {
        this.$modal.msgError("请选择数据");
      }
      else if(this.checkDataList.length >100){
        this.$modal.msgError("选择数据不可大于100条!");
      }
      else {
        var HInterIDListStr = "";
        for(var i=0;i<this.checkDataList.length;i++){
          if(i==this.checkDataList.length-1){
            HInterIDListStr += this.checkDataList[i].hmainid.toString();
          }else{
            HInterIDListStr += this.checkDataList[i].hmainid.toString() + ",";
          }
        }
        // 列表查询
        axios.get(this.$baseUrl + '/Gy_BarCodeBillList/DeleteBatchGy_BarCodeBillList', {
          params: {
            "HInterID": HInterIDListStr,
            "IsAudit": num,
            "CurUserName": sessionStorage["HUserName"],
          },
        }).then(response => {
          let data1 = response.data
          if (data1.count == 1) {
            this.handleQuery();
          }else{
            this.$modal.msgError(data1.Message);
          }
        }).catch(error => {
          this.$modal.msgError("接口请求失败!");
        });
      }
    },
    //#endregion
    //#region 列设置
    handleRowHide() {
      this.rowHideShow = true