@@ -179,6 +190,10 @@
+ 手动结算
+
+
详情
{{ detailInfoList.orderNo }}
+
+
+ {{ detailInfoList.notifyRemark }}
+
+
{
+ this.getList();
+ this.$modal.msgSuccess("结算成功");
+ }).catch(() => { });
+ },
+ // 获取今天
+ addDate() {
+ let nowDate = new Date();
+ let date = {
+ year: nowDate.getFullYear(),
+ month: nowDate.getMonth() + 1,
+ date: nowDate.getDate(),
+ }
+ if (date.date <= 9) {
+ this.systemDate = date.year + '-' + 0 + date.month + '-' + 0 + date.date;
+ } else {
+ this.systemDate = date.year + '-' + 0 + date.month + '-' + date.date;
+ }
+ this.dateRange[0] = this.systemDate + ' ' + '00' + ':' + '00' + ':' + '00'
+ this.dateRange[1] = this.systemDate + ' ' + '23' + ':' + '59' + ':' + '59'
+ this.$forceUpdate()
+ },
+
// 通知
handleSayReissueNotice(row) {
this.loading = true;
diff --git a/src/views/pay/payTest/payCode.vue b/src/views/pay/payTest/payCode.vue
index f5ed9b7..727993b 100644
--- a/src/views/pay/payTest/payCode.vue
+++ b/src/views/pay/payTest/payCode.vue
@@ -16,14 +16,26 @@
-
+
+
+
+
+
+
+
+
-
+
+
+
@@ -146,6 +158,8 @@ export default {
],
},
sortLevType: [],
+ // 所有商户
+ allstore: [],
form: {
resp: null,
@@ -185,6 +199,8 @@ export default {
infoList: {},
// 二维码对象
qrcode: null,
+
+ keys: {},
};
},
@@ -229,28 +245,34 @@ export default {
reqData: this.form.req_data,
mediaType: this.form.mediaType,
}
-
- payTest
+
+ payTest
.payCode(form)
.then((response) => {
this.resMsg = response.msg
let s = JSON.parse(response.msg)
this.form.resp = s.codeImgUrl
});
-
-
+
+
},
//代扣支付签名
handleSay() {
-
- payTest
+ this.form.payKey=this.keys[this.form.spid]
+ payTest
.paySign(this.form)
.then((response) => {
this.form.req_data = response.msg
});
-
+
},
init() {
+ common_api.getAllPayTestStore().then((response) => {
+ this.allstore = response.data
+ for (var i = 0; i < this.allstore.length; i++) {
+ this.keys[this.allstore[i].storeNo] = this.allstore[i].storeKey
+ }
+ });
common_api.payTypeAll().then((response) => {
this.sortLevType = response.data
this.form.payType = this.sortLevType[0].payType
diff --git a/src/views/pay/payTest/payDai.vue b/src/views/pay/payTest/payDai.vue
index 16f068d..80d17de 100644
--- a/src/views/pay/payTest/payDai.vue
+++ b/src/views/pay/payTest/payDai.vue
@@ -16,12 +16,19 @@
-
+
+
+
+
+
+
+
+
+
@@ -104,6 +111,8 @@ export default {
}
}
return {
+ // 所有商户
+ allstore:[],
sortLevType: [],
form: {
resp: null,
@@ -167,6 +176,8 @@ export default {
},
val: {},
infoList: {},
+ keys: {},
+
};
},
@@ -193,6 +204,7 @@ export default {
},
//代付支付签名
handleSay() {
+ this.form.payKey=this.keys[this.form.spid]
payTest
.paymentSign(this.form)
.then((response) => {
@@ -200,6 +212,12 @@ export default {
});
},
init() {
+ common_api.getAllPayTestStore().then((response) => {
+ this.allstore = response.data
+ for (var i = 0; i < this.allstore.length; i++) {
+ this.keys[this.allstore[i].storeNo] = this.allstore[i].storeKey
+ }
+ });
this.form.mediaType = 'json'
},
back() {
diff --git a/src/views/pay/payTest/payucode.vue b/src/views/pay/payTest/payucode.vue
index 304e585..499b98e 100644
--- a/src/views/pay/payTest/payucode.vue
+++ b/src/views/pay/payTest/payucode.vue
@@ -16,14 +16,23 @@
-
+
+
+
+
+
+
-
+
+
@@ -35,11 +44,11 @@
-
+
-
+
{
@@ -233,6 +246,12 @@ export default {
});
},
init() {
+ common_api.getAllPayTestStore().then((response) => {
+ this.allstore = response.data
+ for (var i = 0; i < this.allstore.length; i++) {
+ this.keys[this.allstore[i].storeNo] = this.allstore[i].storeKey
+ }
+ });
common_api.payTypeAll().then((response) => {
this.sortLevType = response.data
this.form.payType = this.sortLevType[0].payType
diff --git a/src/views/pay/payTest/payupay.vue b/src/views/pay/payTest/payupay.vue
index aca8e8f..6e50fd6 100644
--- a/src/views/pay/payTest/payupay.vue
+++ b/src/views/pay/payTest/payupay.vue
@@ -16,12 +16,21 @@
-
+
+
+
+
+
-
-
-
+
+
@@ -109,6 +118,8 @@ export default {
}
}
return {
+ // 所有商户
+ allstore: [],
sortLevType: [],
form: {
resp: null,
@@ -125,6 +136,7 @@ export default {
productDesc: '商品描述',
req_data: null,
mediaType: null,
+
},
list: [
{
@@ -136,6 +148,7 @@ export default {
value: 'xml',
}
],
+ keys:{},
radio: '',
// 遮罩层
loading: false,
@@ -161,11 +174,11 @@ export default {
acctId: [
{ required: true, message: "请输入收款人账号", trigger: "blur" },
],
-
+
accountNo: [
{ required: true, message: "请输入出款账户编号", trigger: "blur" },
],
-
+
notifyUrl: [
{ required: true, message: "请输入回调地址", trigger: "blur" },
],
@@ -201,10 +214,11 @@ export default {
},
//代付支付签名
handleSay() {
- if(!this.form.address){
- this.$message.error('请输入address')
- return;
+ if (!this.form.address) {
+ this.$message.error('请输入address')
+ return;
}
+ this.form.payKey=this.keys[this.form.spid]
payTest
.coinPaymentSign(this.form)
.then((response) => {
@@ -212,6 +226,12 @@ export default {
});
},
init() {
+ common_api.getAllPayTestStore().then((response) => {
+ this.allstore = response.data
+ for(var i=0;i