|
|
@@ -30,7 +30,7 @@
|
|
|
</template>
|
|
|
<div v-if="!Object.keys(totalList).length == 0">
|
|
|
<el-row class="customStyle">
|
|
|
- <el-col :span="4">总手续费:{{ totalList.commissionFeevalue }}</el-col>
|
|
|
+ <el-col :span="4">总应收金额:{{ totalList.commissionFeevalue }}</el-col>
|
|
|
<el-col :span="4">已结算金额:{{ totalList.readyCommissionFeevalue }}</el-col>
|
|
|
<el-col :span="4">未结算金额:{{ totalList.noInvoicCommissionFeevalue }}</el-col>
|
|
|
</el-row>
|
|
|
@@ -166,10 +166,21 @@
|
|
|
<el-col :span="8">总跟单费 :{{ importData.totalHandingAmount }}</el-col>
|
|
|
<el-col :span="8">总金额 :{{ importData.totalOtherAmount }}</el-col>
|
|
|
</el-row>
|
|
|
- <el-upload style="margin-top:20px" action="#" class="upload-demo" :limit="1" :auto-upload="false"
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-upload style="margin-top:20px" action="#" class="upload-demo" :limit="1" :auto-upload="false"
|
|
|
:on-change="handImport" ref="upload3" :file-list="fileList">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
- </el-upload>
|
|
|
+ </el-upload>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-upload style="margin-top:20px" action="#" class="upload-demo" :limit="1" :auto-upload="false"
|
|
|
+ :on-change="handleUpload" ref="upload3" accept=".png, .jpg, .jpeg" :file-list="fileList1">
|
|
|
+ <el-button size="small" type="primary">点击上传</el-button>
|
|
|
+ </el-upload>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
<el-table
|
|
|
v-if="importData.resultList"
|
|
|
border
|
|
|
@@ -345,6 +356,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ fileList1: [],
|
|
|
+ batchData: {},
|
|
|
totalList:{},
|
|
|
importData:{},
|
|
|
fileList:[],
|
|
|
@@ -840,6 +853,24 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ // 上传凭证
|
|
|
+ handleUpload(file, fileList) {
|
|
|
+ this.fileList1=[]
|
|
|
+ const params = new FormData(); // 声明formData数据类型
|
|
|
+ params.append("multipartFile", file.raw);
|
|
|
+ params.append("type", "image");
|
|
|
+ // params.append("isNotCar", "0");
|
|
|
+ this.$api.letter.uploadFile(params).then(res => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ this.batchData =res.data
|
|
|
+ this.fileList1 = fileList
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.fileList1=[]
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
deleteBtn(row) {
|
|
|
this.$confirm('是否确认删除?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
@@ -1097,10 +1128,12 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
submitImport(){
|
|
|
- this.$api.task
|
|
|
- .batchPinBalance({selectIds:this.importData.ids.split(',')})
|
|
|
- .then(res => {
|
|
|
- if (res.code==200) {
|
|
|
+ let data = {
|
|
|
+ settlementImageId: this.batchData.id,
|
|
|
+ settIdList: this.importData.settIdList
|
|
|
+ }
|
|
|
+ this.$api.task.batchPinBalanceNew(data).then(res => {
|
|
|
+ if (res.code==200) {
|
|
|
this.$message({
|
|
|
message: '导入成功',
|
|
|
type: 'success'
|
|
|
@@ -1111,7 +1144,22 @@ export default {
|
|
|
else{
|
|
|
this.$message.error(res.msg)
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
+ // this.$api.task
|
|
|
+ // .batchPinBalance({selectIds:this.importData.ids.split(',')})
|
|
|
+ // .then(res => {
|
|
|
+ // if (res.code==200) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '导入成功',
|
|
|
+ // type: 'success'
|
|
|
+ // })
|
|
|
+ // this.findPage()
|
|
|
+ // this.dialogVisibleImport=false
|
|
|
+ // }
|
|
|
+ // else{
|
|
|
+ // this.$message.error(res.msg)
|
|
|
+ // }
|
|
|
+ // });
|
|
|
},
|
|
|
// 结算
|
|
|
balanceFun(row){
|