This commit is contained in:
KangKang0928 2024-12-23 18:19:06 +08:00
commit 6447aa4766
6 changed files with 31 additions and 15 deletions

View File

@ -119,7 +119,7 @@ export default {
JSON.parse(sessionStorage.getItem("password")) == "123456" && JSON.parse(sessionStorage.getItem("password")) == "123456" &&
JSON.parse(sessionStorage.getItem("role")) === "ROLE_BRAND_MANAGER" JSON.parse(sessionStorage.getItem("role")) === "ROLE_BRAND_MANAGER"
) { ) {
this.dialogVisible = true; this.dialogVisible = false;
} }
}, },
methods: { methods: {

View File

@ -653,7 +653,7 @@ export default {
} else if (!Number.isInteger(+value)) { } else if (!Number.isInteger(+value)) {
callback(new Error("银行卡号必须全为数字")); callback(new Error("银行卡号必须全为数字"));
} else if (value.trim().length < 12 || value.trim().length > 19) { } else if (value.trim().length < 12 || value.trim().length > 19) {
callback(new Error("银行卡号长度必须在12到19之间")); callback(new Error("银行卡号长度必须在12到20之间"));
} else if (strBin.indexOf(value.substring(0, 2)) === -1) { } else if (strBin.indexOf(value.substring(0, 2)) === -1) {
callback(new Error("银行卡号开头6位不符合规范")); callback(new Error("银行卡号开头6位不符合规范"));
} else { } else {

View File

@ -2,7 +2,7 @@
<div> <div>
<obj-modal <obj-modal
ref="modal" ref="modal"
labelWidth="150px" labelWidth="190px"
:modalCols="modalCols" :modalCols="modalCols"
:modalConfig="modalConfig" :modalConfig="modalConfig"
:modalData="modalData" :modalData="modalData"
@ -50,7 +50,7 @@ export default {
this.isAdd = true; this.isAdd = true;
}, },
update: (row) => { update: (row) => {
this.fileList = [] this.fileList = [];
this.modalData = JSON.parse(JSON.stringify(row)); this.modalData = JSON.parse(JSON.stringify(row));
console.log(row); console.log(row);
@ -83,6 +83,7 @@ export default {
prop: "logo", prop: "logo",
type: "Input", type: "Input",
width: "300px", width: "300px",
rules: { required: true, message: "请输入品牌宣传语" },
type: "jsx", type: "jsx",
render: () => { render: () => {
const handleChange = (file, fileList) => { const handleChange = (file, fileList) => {
@ -155,12 +156,14 @@ export default {
prop: "tagline", prop: "tagline",
type: "Input", type: "Input",
width: "300px", width: "300px",
rules: { required: true, message: "请输入品牌宣传语" },
}, },
{ {
label: "首页背景", label: "首页背景",
prop: "background", prop: "background",
type: "Input", type: "Input",
width: "300px", width: "300px",
rules: { required: true, message: "请添加背景首页" },
type: "jsx", type: "jsx",
render: () => { render: () => {
const handleChange = (file, fileList) => { const handleChange = (file, fileList) => {
@ -215,6 +218,7 @@ export default {
type: "Input", type: "Input",
width: "300px", width: "300px",
type: "jsx", type: "jsx",
rules: { required: true, message: "请添加视频" },
render: () => { render: () => {
const handleChange = (file, fileList) => { const handleChange = (file, fileList) => {
// console.log(fileList); // console.log(fileList);

View File

@ -962,14 +962,14 @@ export default {
// let res = await this.$api.mer_admin.getProductCategory(); // let res = await this.$api.mer_admin.getProductCategory();
// return res.data.data; // return res.data.data;
// }, // },
async getSaleUnit() { // async getSaleUnit() {
let res = await this.$api.mer_admin.getSaleUnit({ // let res = await this.$api.mer_admin.getSaleUnit({
shopId: JSON.parse(sessionStorage.getItem("userInfo")).shopId, // shopId: JSON.parse(sessionStorage.getItem("userInfo")).shopId,
}); // });
console.log(res); // console.log(res);
return res.data.data; // return res.data.data;
}, // },
}, },
}; };
</script> </script>

View File

@ -227,8 +227,15 @@
<div style="font-size: 16px; margin: 0 0 20px 0; font-weight: 600"> <div style="font-size: 16px; margin: 0 0 20px 0; font-weight: 600">
钱包账单 钱包账单
</div> </div>
<div style="background: #fff; padding: 10px; height: 51vh;min-width: 400px; <div
overflow-y:scroll;"> style="
background: #fff;
padding: 10px;
height: 51vh;
min-width: 400px;
overflow-y: scroll;
"
>
<div <div
v-for="item in billList" v-for="item in billList"
:key="item.id" :key="item.id"
@ -268,7 +275,11 @@
</el-col> </el-col>
</el-row> </el-row>
<!-- 提现 --> <!-- 提现 -->
<withdrawal @init="init" ref="withdrawal"></withdrawal> <withdrawal
@init="init"
@getWithdrawalRecord="getWithdrawalRecord"
ref="withdrawal"
></withdrawal>
</div> </div>
</template> </template>

View File

@ -127,6 +127,7 @@ export default {
console.log(valid); console.log(valid);
this.$api.wallet.Withdrawal(this.ruleForm).then((res) => { this.$api.wallet.Withdrawal(this.ruleForm).then((res) => {
this.$emit("init"); this.$emit("init");
this.$emit("getWithdrawalRecord");
this.toggle(); this.toggle();
}); });
} }