|
@@ -127,7 +127,7 @@
|
|
<span v-else>已开票</span>
|
|
<span v-else>已开票</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column class="table_td" prop="collectionEdPayable" label="操作" width="300">
|
|
|
|
|
|
+ <el-table-column class="table_td" prop="collectionEdPayable" label="操作" width="500">
|
|
<template scope="scope">
|
|
<template scope="scope">
|
|
<span v-hasPermission="`acquisitionManagement.acquisitionPay.add`">
|
|
<span v-hasPermission="`acquisitionManagement.acquisitionPay.add`">
|
|
<el-button v-if="
|
|
<el-button v-if="
|
|
@@ -190,9 +190,46 @@
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!-- 付款截图 -->
|
|
<!-- 付款截图 -->
|
|
<el-dialog width="50%" :visible.sync="showPayImgs" :append-to-body="true" title="付款截图">
|
|
<el-dialog width="50%" :visible.sync="showPayImgs" :append-to-body="true" title="付款截图">
|
|
- <div v-for="(item, index) in payImg" :key="index" class="pay_img">
|
|
|
|
|
|
+ <!-- <div v-for="(item, index) in payImg" :key="index" class="pay_img">
|
|
<img :src="item" alt class="img" />
|
|
<img :src="item" alt class="img" />
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
|
|
+ <el-upload
|
|
|
|
+ action="https://www.zthymaoyi.com/upload/admin"
|
|
|
|
+ list-type="picture-card"
|
|
|
|
+ :on-success="handleAvatarSuccess1"
|
|
|
|
+ :file-list='payImg'
|
|
|
|
+ :limit='1'>
|
|
|
|
+ <i slot="default" class="el-icon-plus"></i>
|
|
|
|
+ <div slot="file" slot-scope="{file}">
|
|
|
|
+ <img
|
|
|
|
+ class="el-upload-list__item-thumbnail"
|
|
|
|
+ :src="file.url" alt=""
|
|
|
|
+ >
|
|
|
|
+
|
|
|
|
+ <span class="el-upload-list__item-actions">
|
|
|
|
+ <span
|
|
|
|
+ class="el-upload-list__item-preview"
|
|
|
|
+ @click="handlePictureCardPreview(file)"
|
|
|
|
+ >
|
|
|
|
+ <i class="el-icon-zoom-in"></i>
|
|
|
|
+ </span>
|
|
|
|
+ <span
|
|
|
|
+ v-if="!disabled"
|
|
|
|
+ class="el-upload-list__item-delete"
|
|
|
|
+ @click="_handleRemove(file)"
|
|
|
|
+ >
|
|
|
|
+ <i class="el-icon-delete"></i>
|
|
|
|
+ </span>
|
|
|
|
+ </span>
|
|
|
|
+ </div>
|
|
|
|
+</el-upload>
|
|
|
|
+ <!-- <el-upload class="avatar-uploader" action="https://www.zthymaoyi.com/upload/admin" :show-file-list="false"
|
|
|
|
+ :on-success="handleAvatarSuccess1" :on-remove="_handleRemove">
|
|
|
|
+ <img @mouseout='imgshow' @mouseover="deleteshow=true" v-if="payImg" :src="payImg" class="avatar" />
|
|
|
|
+ <i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </el-upload> -->
|
|
<div style="text-align: center; margin: 10px auto">
|
|
<div style="text-align: center; margin: 10px auto">
|
|
<el-button @click="showPayImgs = false" type="primary">关闭</el-button>
|
|
<el-button @click="showPayImgs = false" type="primary">关闭</el-button>
|
|
</div>
|
|
</div>
|
|
@@ -213,6 +250,9 @@
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
|
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
|
|
+ <img width="100%" :src="dialogImageUrl" alt="">
|
|
|
|
+</el-dialog>
|
|
<!--客户信息-->
|
|
<!--客户信息-->
|
|
<el-dialog width="50%" title="客户信息" :visible.sync="customerInfo" :append-to-body="true" :close="customerclose">
|
|
<el-dialog width="50%" title="客户信息" :visible.sync="customerInfo" :append-to-body="true" :close="customerclose">
|
|
<el-form class="customer">
|
|
<el-form class="customer">
|
|
@@ -302,6 +342,7 @@
|
|
getJurisdiction,
|
|
getJurisdiction,
|
|
invoicing,
|
|
invoicing,
|
|
export1,
|
|
export1,
|
|
|
|
+ settlementEdit
|
|
} from '@/model/houseSelfCollect/index'
|
|
} from '@/model/houseSelfCollect/index'
|
|
import {
|
|
import {
|
|
posthandle
|
|
posthandle
|
|
@@ -329,6 +370,7 @@
|
|
form: {},
|
|
form: {},
|
|
formLabelWidth: '300px',
|
|
formLabelWidth: '300px',
|
|
invoicing: '',
|
|
invoicing: '',
|
|
|
|
+ deleteshow:false,
|
|
customerlist: {
|
|
customerlist: {
|
|
payeeAddressUrls: [],
|
|
payeeAddressUrls: [],
|
|
},
|
|
},
|
|
@@ -369,6 +411,9 @@
|
|
isShowPrint: false,
|
|
isShowPrint: false,
|
|
printData: {},
|
|
printData: {},
|
|
warehouse: [],
|
|
warehouse: [],
|
|
|
|
+ disabled: false,
|
|
|
|
+ dialogImageUrl:'',
|
|
|
|
+ dialogVisible:false,
|
|
value1: '', //付款日期
|
|
value1: '', //付款日期
|
|
modification: [],
|
|
modification: [],
|
|
userJurisdiction: true,
|
|
userJurisdiction: true,
|
|
@@ -402,6 +447,14 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ imgshow(){
|
|
|
|
+ this.deleteshow=false
|
|
|
|
+ console.log(11111)
|
|
|
|
+ },
|
|
|
|
+ handlePictureCardPreview(file) {
|
|
|
|
+ this.dialogImageUrl = file.url;
|
|
|
|
+ this.dialogVisible = true;
|
|
|
|
+ },
|
|
previewPayOrder(val){debugger
|
|
previewPayOrder(val){debugger
|
|
this.paymentReceipt = val.paymentScreenshot
|
|
this.paymentReceipt = val.paymentScreenshot
|
|
this.isPreviewPayOrder = true
|
|
this.isPreviewPayOrder = true
|
|
@@ -793,16 +846,24 @@
|
|
},
|
|
},
|
|
//查看付款截图
|
|
//查看付款截图
|
|
showPayImg(row) {
|
|
showPayImg(row) {
|
|
- if (!row.paymentScreenshot) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '暂无付款截图!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- } else {
|
|
|
|
|
|
+ // if (!row.paymentScreenshot) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '暂无付款截图!',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // } else {
|
|
this.showPayImgs = true
|
|
this.showPayImgs = true
|
|
- this.payImg = row.paymentScreenshot.split('$')
|
|
|
|
- }
|
|
|
|
|
|
+ this.id=row.id
|
|
|
|
+ var arr=row.paymentScreenshot.split('$')
|
|
|
|
+ console.log(arr)
|
|
|
|
+ this.payImg=[]
|
|
|
|
+ for (let i = 0; i < arr.length; i++) {
|
|
|
|
+ if(arr[i]!=''){
|
|
|
|
+ this.payImg.push({url:arr[i]})
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
getWarehouse() {
|
|
getWarehouse() {
|
|
let _wareHouse = localStorage.getItem('houseSelfCollect_house1')
|
|
let _wareHouse = localStorage.getItem('houseSelfCollect_house1')
|
|
@@ -838,6 +899,30 @@
|
|
handleAvatarSuccess(e) {
|
|
handleAvatarSuccess(e) {
|
|
this.imageUrl = e.url
|
|
this.imageUrl = e.url
|
|
},
|
|
},
|
|
|
|
+ handleAvatarSuccess1(file) {
|
|
|
|
+ if(this.payImg[0]){
|
|
|
|
+ this.$set(this.payImg[0],'url',file.url)
|
|
|
|
+ }else{
|
|
|
|
+ this.payImg[0]={
|
|
|
|
+ url:file.url
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ settlementEdit({id:this.id,paymentScreenshot:this.payImg[0].url}).toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.showPayImgs=false
|
|
|
|
+ this.$message.success('修改成功')
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ _handleRemove(){
|
|
|
|
+this.payImg[0].url=''
|
|
|
|
+settlementEdit({id:this.id,paymentScreenshot:this.payImg[0].url}).toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.showPayImgs=false
|
|
|
|
+ this.$message.success('修改成功')
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
|
|
+ },
|
|
printSmall() {
|
|
printSmall() {
|
|
window.open(
|
|
window.open(
|
|
'../../../../../static/payprint.html?type=1&dataList=' +
|
|
'../../../../../static/payprint.html?type=1&dataList=' +
|
|
@@ -1334,12 +1419,17 @@
|
|
// width: 150px;
|
|
// width: 150px;
|
|
// height: 150px;
|
|
// height: 150px;
|
|
// }
|
|
// }
|
|
|
|
+ .avatar-uploader{
|
|
|
|
+ position:relative;
|
|
|
|
+ width:178px;
|
|
|
|
+ }
|
|
.avatar-uploader .el-upload {
|
|
.avatar-uploader .el-upload {
|
|
border: 1px dashed #d9d9d9;
|
|
border: 1px dashed #d9d9d9;
|
|
border-radius: 6px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
position: relative;
|
|
position: relative;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
|
+ width:178px;
|
|
}
|
|
}
|
|
|
|
|
|
.avatar-uploader .el-upload:hover {
|
|
.avatar-uploader .el-upload:hover {
|
|
@@ -1448,4 +1538,7 @@
|
|
width: 200px;
|
|
width: 200px;
|
|
height: 200px;
|
|
height: 200px;
|
|
}
|
|
}
|
|
|
|
+ .el-icon-delete{
|
|
|
|
+ font-size:20px;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|