|
|
@@ -27,6 +27,13 @@
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div align="center" style="margin: 20px;">
|
|
|
+ <el-span style="font-weight: bold">银行卡:</el-span>
|
|
|
+ <el-select v-model="billrecord.bankCode" placeholder="请选择银行" clearable="true" filterable="true">
|
|
|
+ <el-option v-for="item in bankCodeList" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
<div align="center" style="margin: 20px;">
|
|
|
<el-button type="success" size="mini" @click="purchaseConfirm">确认采购</el-button>
|
|
|
</div>
|
|
|
@@ -37,6 +44,7 @@
|
|
|
|
|
|
<script>
|
|
|
import {getList} from "@/api/bussiness/bussinessgoods";
|
|
|
+ import {getDictionary} from "@/api/system/dictbiz";
|
|
|
import {mapGetters} from "vuex";
|
|
|
import {
|
|
|
detail as getParamDetail
|
|
|
@@ -53,6 +61,7 @@
|
|
|
return {
|
|
|
form: {},
|
|
|
query: {},
|
|
|
+ bankCodeList: [],
|
|
|
loading: true,
|
|
|
chongzhiVisible:true,
|
|
|
money: 0.00,
|
|
|
@@ -60,7 +69,8 @@
|
|
|
moneyChina: "",
|
|
|
billrecord: {
|
|
|
payStatus: 0,
|
|
|
- type: 5
|
|
|
+ type: 5,
|
|
|
+ bankCode: null
|
|
|
},
|
|
|
yibaoOrder: {
|
|
|
|
|
|
@@ -138,6 +148,9 @@
|
|
|
data: []
|
|
|
};
|
|
|
},
|
|
|
+ created(){
|
|
|
+ this.loadBizDict("b2b_bank_code");
|
|
|
+ },
|
|
|
computed: {
|
|
|
...mapGetters(["permission"]),
|
|
|
permissionList() {
|
|
|
@@ -157,6 +170,12 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ loadBizDict(code){
|
|
|
+ let that = this;
|
|
|
+ getDictionary({"code":code}).then(res =>{
|
|
|
+ that.bankCodeList = res.data.data;
|
|
|
+ })
|
|
|
+ },
|
|
|
channelInputLimit (e) {
|
|
|
let key = e.key
|
|
|
// 不允许输入'e'和'.'
|
|
|
@@ -189,9 +208,15 @@
|
|
|
purchaseConfirm() {
|
|
|
this.billrecord.price = this.money;
|
|
|
this.billrecord.bussinessFee = this.statDatas[1].value;
|
|
|
- this.yibaoOrder.orderAmount = this.money;
|
|
|
- this.yibaoOrder.goodsName = "采购"
|
|
|
this.billrecord.purchaseList = Array.from(this.purchaseMap.values());
|
|
|
+ this.billrecord.returnUrl = "https://music.nanyue6688.com/cyzhtest/#/";
|
|
|
+ if(this.billrecord.bankCode == null){
|
|
|
+ this.$message({
|
|
|
+ type: "error",
|
|
|
+ message: "请选择银行卡"
|
|
|
+ })
|
|
|
+ return;
|
|
|
+ }
|
|
|
getParamDetail({"paramKey":"maintain"}).then(res => {
|
|
|
let systemParam = res.data.data;
|
|
|
let paramValue = systemParam.paramValue;
|
|
|
@@ -202,13 +227,10 @@
|
|
|
});
|
|
|
this.$emit('finishSubmit', null);
|
|
|
}else{
|
|
|
- addBillrecord(this.billrecord).then(() => {
|
|
|
+ addBillrecord(this.billrecord).then((res) => {
|
|
|
this.chongzhiVisible = false;
|
|
|
this.$emit('finishSubmit', null);
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功"
|
|
|
- });
|
|
|
+ window.open(res.data.data);
|
|
|
})
|
|
|
}
|
|
|
})
|