|
|
@@ -5,7 +5,7 @@
|
|
|
@findPage="findPage" @getList="findPage" @handleSearchList="handleSearchList" :pagination="pageData">
|
|
|
<template slot="批量修改">
|
|
|
<el-upload style="display: inline-block;" action="#" :show-file-list="false" class="upload-demo" :limit="1" :auto-upload="false"
|
|
|
- :on-change="drivingupload" ref="upload3" accept=".png, .jpg, .jpeg" >
|
|
|
+ :on-change="drivingupload" ref="upload1" accept=".png, .jpg, .jpeg" >
|
|
|
<el-button size="small" :disabled="selectionList.length==0" type="primary">批量修改</el-button>
|
|
|
</el-upload>
|
|
|
</template>
|
|
|
@@ -166,7 +166,7 @@
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
<templateTable ref="templateTable1" :tableConfig="tableConfigbatch" :data="batchData" @findPage="findPagegbatch"
|
|
|
- :pagination="pageDataPro" @getList="getListgbatch" @selectionChange="selectionChange" @selectAll="selectAll">
|
|
|
+ :pagination="pageDataPro" @getList="getListgbatch" @selectionChange="selectionChangebatch" @selectAll="selectAll">
|
|
|
<template slot="uploadUrl" slot-scope="scope">
|
|
|
<span @click="uploadUrlClick(scope.row.uploadUrl)">{{ scope.row.uploadUrl }}</span>
|
|
|
</template>
|
|
|
@@ -466,6 +466,7 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
fileList:[],
|
|
|
+ selectionListbatch:[],
|
|
|
dialogVisibleprogress:false,
|
|
|
batchData:[],
|
|
|
dialogVisibleBatch:false,
|
|
|
@@ -542,13 +543,13 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
handleSumbit() {
|
|
|
- if(!this.selectionList[0].uploadUrl){
|
|
|
+ if(!this.selectionListbatch[0].uploadUrl){
|
|
|
this.$message.error('请选择有导出路径的数据!')
|
|
|
return false
|
|
|
}
|
|
|
let data = {
|
|
|
isNotCar: '1',
|
|
|
- selectIds: this.selectionList.map(e => e.id),
|
|
|
+ selectIds: this.selectionListbatch.map(e => e.id),
|
|
|
settlementImageId:this.fileListBatchId
|
|
|
}
|
|
|
this.$api.task.batchInvoicing(data)
|
|
|
@@ -718,17 +719,21 @@ drivinguploadBatchs(file, fileList){
|
|
|
});
|
|
|
},
|
|
|
selectionChange(val,ref) {
|
|
|
+ this.selectionList = val;
|
|
|
+ },
|
|
|
+ selectionChangebatch(val,ref) {
|
|
|
if(val.length > 1){
|
|
|
const del_row = val.shift()
|
|
|
ref.toggleRowSelection(del_row,false) //设置这一行取消选中
|
|
|
}
|
|
|
- this.selectionList = val;
|
|
|
+ this.selectionListbatch = val;
|
|
|
},
|
|
|
selectAll (selection,ref){
|
|
|
ref.clearSelection()
|
|
|
return
|
|
|
},
|
|
|
drivingupload(file, fileList){
|
|
|
+ this.$refs.upload1.clearFiles()
|
|
|
const params = new FormData(); // 声明formData数据类型
|
|
|
params.append("multipartFile", file.raw);
|
|
|
params.append("type", "image");
|