This commit is contained in:
wtq
2026-01-23 13:55:45 +08:00
parent 8405949822
commit a2f14865c3
2 changed files with 19 additions and 14 deletions

View File

@@ -1170,7 +1170,7 @@ export default {
// );
}
})
console.log(storeID,'item,999999999999,99999999**********',arr)
// console.log(storeID,'item,999999999999,99999999**********',arr)
if(arr.length === 0) return this.$toast('没有修改任何商品价格')
updateStoreSkus(
storeID,
@@ -1402,7 +1402,7 @@ export default {
if(obj.Skus.length > 0) arr.push(obj)
})
updateStoreSkus(this.searchForm.storeID, arr, (res) => {
updateStoreSkus(this.searchForm.storeID ? this.searchForm.storeID : this.searchForm.storeIDs[0], arr, (res) => {
if (res.code === "0") {
// 成功
this.$message({

View File

@@ -1,6 +1,6 @@
<template>
<el-dialog class="editor-courier" :title="'专送门店' + (type ? '添加' : '编辑')" :visible.sync="dialogeditorCourierShow"
width="400px" :before-close="handleClose">
width="450px" :before-close="handleClose">
<el-form :model="formData" :rules="rules" ref="formData" label-position="right" :inline="true" size="small" style=""
label-width="100px">
<!-- 专送信息 -->
@@ -12,17 +12,17 @@
</el-form-item>
<!-- 专送信息 -->
<!-- 平台余额 -->
<!-- <br>
<br>
<el-form-item label="平台余额:" style="" class="platformBalance" v-if="currentDialog.vendorID === 101 || currentDialog.vendorID === 103">
<div style="display: flex;">
{{ '¥' + platformBalance }}
<el-input placeholder="请输入充值金额" v-model.number="amount" style="width: 180px;margin-left: 10px;">
<el-input placeholder="请输入充值金额" v-model.number="amount" style="width: 200px;margin-left: 10px;">
<template slot="append" >
<div @click="sureRecharge">充值</div>
</template>
</el-input>
</div>
</el-form-item> -->
</el-form-item>
<!-- 平台余额 -->
<!-- 专送门店 -->
<el-form-item label="专送门店ID:" prop="vendorStoreID">
@@ -73,8 +73,9 @@
import {
addStoreCourierMap,
updateStoreCourierMap,
getStoreCourierMaps,
// getStoreCourierMaps,
queryPlatformBalance,
balanceRecharge
} from "@/apis/store.js";
import { getVendorStore } from "@/apis/controls/shop.js";
export default {
@@ -160,12 +161,13 @@ export default {
}
// // 查询平台余额 达达和蜂鸟
// if(this.currentDialog.vendorID === 101 || this.currentDialog.vendorID === 103){
// console.log(this.currentDialog,'查询平台余额,,,currentDialog')
// let res1 = await queryPlatformBalance({vendorID:this.currentDialog.vendorID})
// console.log(this.currentDialog,'查询平台余额',res1)
// }
// 查询平台余额 达达和蜂鸟
if(this.currentDialog.vendorID === 101 || this.currentDialog.vendorID === 103){
// console.log(this.currentDialog,'查询平台余额,,,currentDialog')
let res1 = await queryPlatformBalance({vendorID:this.currentDialog.vendorID})
this.platformBalance = +res1/100
// console.log(this.currentDialog,'查询平台余额',res1)
}
},
mounted() { },
methods: {
@@ -239,11 +241,14 @@ export default {
if(!this.amount) return this.$toast('请输入充值金额')
let form = new FormData()
form.append('vendorID',this.currentDialog.vendorID)
form.append('amount',this.currentDialog.amount)
form.append('amount',this.amount * 100)
form.append('category','PC') // 链接场景 [PC,H5]
// form.append('notifyUrl','https://www.jxc4.com/#/jxstoremanager') //支付宝有,微信没有
let res = await balanceRecharge(form)
// window.location.href = res
window.open(res, '_blank');
this.handleClose();
console.log(this.amount,'充值情况','res',res)
}
}