| | |
| | | </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"> |
| | |
| | | //#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 |
| | | |