|
@@ -22,6 +22,9 @@
|
|
|
<el-button type="primary" class="btn" @click="onclick">
|
|
|
<i class="el-icon-search"></i>查询
|
|
|
</el-button>
|
|
|
+ <el-button type="primary" class="btn" @click="batchSendMeasureCommission" v-if="activeName == 'first'">
|
|
|
+ 重发计量委托
|
|
|
+ </el-button>
|
|
|
<el-button type="primary" @click="exportData()"
|
|
|
v-if="activeName == 'second'"
|
|
|
><i class="el-icon-download"></i>导出(Excel)</el-button
|
|
@@ -94,6 +97,31 @@ export default {
|
|
|
handleClick(tag, event) {
|
|
|
console.log(tag, event);
|
|
|
},
|
|
|
+ batchSendMeasureCommission(){
|
|
|
+ if(!this.selectionListMap || this.selectionListMap.length<=0){
|
|
|
+ this.$message.warning("请先勾选!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.$confirm('确定重新发送计量委托?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ let map={
|
|
|
+ resultIdList:this.selectionListMap
|
|
|
+ }
|
|
|
+ this.axios
|
|
|
+ .post('/api/v1/tms/batchSendMeasureCommission',map)
|
|
|
+ .then(res => {
|
|
|
+ this.$message.success(res.data.data);
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消删除'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
onclick() {
|
|
|
let startTime = null;
|
|
|
let endTime = null;
|