md
This commit is contained in:
parent
53949b2cf2
commit
0dab6c3bfa
@ -25,7 +25,13 @@ export function getEmisSettleBill(id) {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function checkCanOnlinePay(query) {
|
||||
return request({
|
||||
url: '/oms2c/emisSettleBill/checkCanOnlinePay',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询结算总账单详细
|
||||
export function getInfoBySettleBillNo(settleBillNo) {
|
||||
|
||||
@ -181,7 +181,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listSimple } from "@/api/oms/emisSettleBill";
|
||||
import { listSimple ,checkCanOnlinePay} from "@/api/oms/emisSettleBill";
|
||||
import elDateAdvPicker from '@/components/DatePickerAdv/elDateAdvPicker';
|
||||
import PayQrCode from '@/views/oms/BillMgnt/PayQrCode.vue';
|
||||
|
||||
@ -350,11 +350,22 @@ export default {
|
||||
handleGenPayCode(row) {
|
||||
let selItem=this.selectList[0];
|
||||
|
||||
let selItem=this.selectList[0];
|
||||
if(selItem.paymentStatus == 1){
|
||||
this.$modal.msgError("已支付,无需再支付");
|
||||
return
|
||||
}
|
||||
|
||||
try{
|
||||
let res= await checkCanOnlinePay({settleBillNo:selItem.settleBillNo});
|
||||
if(res.data=='0'){
|
||||
this.$modal.msgError("不支持在线支付");
|
||||
}
|
||||
}catch(e){
|
||||
// this.$modal.msgError(e.message);
|
||||
return
|
||||
}
|
||||
|
||||
this.resetRefreshId="pay-"+Math.random().toString(36).substring(3,10);
|
||||
this.titleForm="二维码支付";
|
||||
this.openForm=true;
|
||||
|
||||
@ -181,7 +181,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listSimple } from "@/api/oms/emisSettleBill";
|
||||
import { listSimple ,checkCanOnlinePay} from "@/api/oms/emisSettleBill";
|
||||
import elDateAdvPicker from '@/components/DatePickerAdv/elDateAdvPicker';
|
||||
import PayQrCode from '@/views/oms/BillMgnt/PayQrCode.vue';
|
||||
|
||||
@ -347,14 +347,25 @@ export default {
|
||||
}).catch(() => {});
|
||||
},
|
||||
|
||||
handleGenPayCode(row) {
|
||||
async handleGenPayCode(row) {
|
||||
let selItem=this.selectList[0];
|
||||
|
||||
if(selItem.paymentStatus ==1){
|
||||
|
||||
let selItem=this.selectList[0];
|
||||
if(selItem.paymentStatus == 1){
|
||||
this.$modal.msgError("已支付,无需再支付");
|
||||
return
|
||||
}
|
||||
|
||||
try{
|
||||
let res= await checkCanOnlinePay({settleBillNo:selItem.settleBillNo});
|
||||
if(res.data=='0'){
|
||||
this.$modal.msgError("不支持在线支付");
|
||||
}
|
||||
}catch(e){
|
||||
// this.$modal.msgError(e.message);
|
||||
return
|
||||
}
|
||||
|
||||
this.resetRefreshId="pay-"+Math.random().toString(36).substring(3,10);
|
||||
this.titleForm="二维码支付";
|
||||
this.openForm=true;
|
||||
|
||||
@ -4,20 +4,25 @@
|
||||
<el-form id="payPage" ref="form" v-if="settleBillItem!=null" :model="form" size="mini" label-width="80px">
|
||||
<el-row :gutter="0" style="display: flex;flex-wrap: wrap;">
|
||||
<el-col :span="24">
|
||||
<div style="text-align:center">
|
||||
<div v-if="settleBillItem.blLockOnlinePay!='T'" style="text-align:center">
|
||||
<div style="display: inline-flex;" >
|
||||
<span><img :src="shortLogo" style="width: 30px;height: 30px;margin-top: 0px;" /></span>
|
||||
<span style="font-size: 20px;font-weight: bold;color: black;">探路供应链(江苏)有限公司</span>
|
||||
</div>
|
||||
<div style="width:150px;margin: 0 auto;">
|
||||
<img :src="wxPayQrImageUrl" width="100%" draggable="false"/>
|
||||
</div>
|
||||
<!-- -settleBillItem.recedMoney -->
|
||||
<div class="pay-title"><span style="color: red;font-size: 20px;">¥{{ settleBillItem.thisPayMoney }} </span></div>
|
||||
<div style="text-align: center;" >
|
||||
<div>请使用微信[<span style="color:blue;font-weight: bold;">24小时</span>]内完成支付</div>
|
||||
<div style="width:150px;margin: 0 auto;">
|
||||
<img :src="wxPayQrImageUrl" width="100%" draggable="false"/>
|
||||
</div>
|
||||
<!-- -settleBillItem.recedMoney -->
|
||||
<div class="pay-title">
|
||||
<span style="color: red;font-size: 20px;">¥{{ settleBillItem.thisPayMoney }} </span>
|
||||
</div>
|
||||
<div style="text-align: center;" >
|
||||
<div>请使用微信[<span style="color:blue;font-weight: bold;">24小时</span>]内完成支付</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="settleBillItem.blLockOnlinePay=='T'">
|
||||
<span style="color: red;font-size: 20px;">{{ settleBillItem.lockOnlinePayReason }} </span>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-row :gutter="0" style="display: flex;flex-wrap: wrap;margin-top:10px">
|
||||
|
||||
@ -35,18 +35,14 @@
|
||||
<el-form id="payPage" v-if="settleBillItem!=null" ref="form" :model="form" size="mini" label-width="80px">
|
||||
<el-row :gutter="0" style="display: flex;flex-wrap: wrap;">
|
||||
<el-col :span="24">
|
||||
<div style="text-align:left">
|
||||
<div v-if="settleBillItem.blLockOnlinePay!='T'" style="text-align:left">
|
||||
<div style="display: inline-flex;" >
|
||||
<span><img :src="shortLogo" style="width: 28px;height: 28px;margin-top: 0px;" /></span>
|
||||
<span style="font-size: 20px;font-weight: bold;color: black;">探路供应链(江苏)有限公司</span>
|
||||
</div>
|
||||
<!-- <div v-if="!isWx" style="width:150px;margin: 0 auto;">
|
||||
<img :src="wxPayQrImageUrl" width="100%" draggable="false"/>
|
||||
</div>
|
||||
<div v-if="!isWx" class="pay-title"><span style="color: black;font-size: 20px;">¥{{ settleBillItem.thisPayMoney }} </span></div>
|
||||
<div v-if="!isWx" style="text-align: center;" >
|
||||
<div>请使用微信[<span style="color:black;font-weight: bold;">24小时</span>]内完成支付</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<div v-if="settleBillItem.blLockOnlinePay=='T'">
|
||||
<span style="color: red;font-size: 20px;">{{ settleBillItem.lockOnlinePayReason }} </span>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
@ -101,7 +97,7 @@
|
||||
<!-- <el-col :span="12">
|
||||
</el-col> -->
|
||||
|
||||
<el-col :span="24">
|
||||
<el-col v-if="settleBillItem.blLockOnlinePay!='T'" :span="24">
|
||||
<span class="item-label" >支付金额:</span><span class="item-value" style="color:red;font-size:25px">¥{{ settleBillItem.thisPayMoney }}</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user