chenhaozhe
2025-12-18 0cad98e406cc94ea0e58d7413040c21b64c27354
Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-VUEUI
1个文件已修改
44 ■■■■■ 已修改文件
src/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue
@@ -114,8 +114,16 @@
      </el-collapse>
    </el-form>
    <el-row :gutter="10" class="mb8" style="margin-top: 10px;">
      <!-- <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDrop">删除
        </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 type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete(0)">作废
        </el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete(1)">反作废
        </el-button>
      </el-col>
      <el-col :span="1.5">
@@ -560,7 +568,39 @@
    //#endregion
    //#region 删除
    handleDelete() {
    handleDrop() {
    },
    //#endregion
    //#region 作废
    handleDelete(num) {
      if (this.checkDataList.length != 1) {
        this.$modal.msgError("请选择一行数据");
      } else {
        // this.rowSel = [];
        // for (var i = 0; i < this.checkDataList.length; i++) {
        //   this.rowSel.push(this.checkDataList[i].HItemID.toString());
        // }
        var HInterID = this.checkDataList[0].HItemID;
        // 列表查询
        axios.get(this.baseURL + '/Gy_BarCodeBillList/DeleteGy_BarCodeBillList', {
          params: {
            "HInterID": HInterID,
            "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