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