update bug

This commit is contained in:
qijq 2025-08-30 16:01:24 +08:00
parent 414625088b
commit 2246ccaede
6 changed files with 91 additions and 45 deletions

View File

@ -214,7 +214,7 @@ const formConfig = [
type: "upload", type: "upload",
key: "individual_id_images2", key: "individual_id_images2",
label: "身份证反面图片", label: "身份证反面图片",
class: "upload-5", class: "upload-6",
placeholder: "请上传身份证身份证反面图片", placeholder: "请上传身份证身份证反面图片",
ruleMessage: "请上传身份证身份证反面图片", ruleMessage: "请上传身份证身份证反面图片",
imgUrlArr: [], imgUrlArr: [],

View File

@ -187,7 +187,7 @@
></u-upload> ></u-upload>
</view> </view>
<u-form <u-form
v-show="fileList3.length && form.legal_person_id_number" v-show="fileList3.length"
:model="form" :model="form"
class="form" class="form"
ref="uForm3" ref="uForm3"
@ -214,7 +214,7 @@
/> />
</u-form-item> </u-form-item>
<u-form-item <u-form-item
v-show="fileList4.length && form.legal_person_id_period_begin" v-show="fileList4.length"
label="生效日期" label="生效日期"
prop="legal_person_id_number" prop="legal_person_id_number"
@click="showStartTime = true" @click="showStartTime = true"
@ -234,7 +234,7 @@
></u-icon> ></u-icon>
</u-form-item> </u-form-item>
<u-form-item <u-form-item
v-show="fileList4.length && form.legal_person_id_period_end" v-show="fileList4.length"
label="截止日期" label="截止日期"
prop="legal_person_id_period_end" prop="legal_person_id_period_end"
required required
@ -308,7 +308,7 @@
class="form" class="form"
ref="uForm2" ref="uForm2"
label-width="100" label-width="100"
v-show="fileList5.length && form2.individual_id_number" v-show="fileList5.length"
> >
<u-form-item label="身份证号码" prop="individual_id_number" required> <u-form-item label="身份证号码" prop="individual_id_number" required>
<u-input <u-input
@ -327,7 +327,7 @@
/> />
</u-form-item> </u-form-item>
<u-form-item <u-form-item
v-show="fileList6.length && form2.individual_id_period_begin" v-show="fileList6.length"
label="生效日期" label="生效日期"
prop="individual_id_period_begin" prop="individual_id_period_begin"
@click="showStartTime = true" @click="showStartTime = true"
@ -347,7 +347,7 @@
></u-icon> ></u-icon>
</u-form-item> </u-form-item>
<u-form-item <u-form-item
v-show="fileList6.length && form2.individual_id_period_end" v-show="fileList6.length"
label="截止日期" label="截止日期"
prop="individual_id_period_end" prop="individual_id_period_end"
required required
@ -932,6 +932,18 @@ export default {
} }
} }
const formatDateString = (dateStr) => {
if (dateStr.length === 8) {
// YYYYMMDD
const year = dateStr.substring(0, 4);
const month = dateStr.substring(4, 6);
const day = dateStr.substring(6, 8);
return `${year}-${month}-${day}`;
}
// 8
return dateStr;
};
switch (type) { switch (type) {
case "businessLicense": case "businessLicense":
var ocr = await this.getOcrText( var ocr = await this.getOcrText(
@ -974,13 +986,12 @@ export default {
let validity = ocr.validity.split("-"); let validity = ocr.validity.split("-");
this.startTime = validity[0]; this.startTime = validity[0];
this.endTime = validity[1]; this.endTime = validity[1];
this.form.legal_person_id_period_begin = this.startTime.replace(
/\./g, this.form.legal_person_id_period_begin = formatDateString(
"-" this.startTime
); );
this.form.legal_person_id_period_end = this.endTime.replace( this.form.legal_person_id_period_end = formatDateString(
/\./g, this.endTime
"-"
); );
} }
@ -1008,8 +1019,13 @@ export default {
let validity = ocr.validity.split("-"); let validity = ocr.validity.split("-");
this.startTime = validity[0]; this.startTime = validity[0];
this.endTime = validity[1]; this.endTime = validity[1];
this.form2.individual_id_period_begin = this.startTime;
this.form2.individual_id_period_end = this.endTime; this.form2.individual_id_period_begin = formatDateString(
this.startTime
);
this.form2.individual_id_period_end = formatDateString(
this.endTime
);
} }
console.log("personIdFront", ocr); console.log("personIdFront", ocr);
break; break;

View File

@ -124,8 +124,8 @@
<template v-if="bankList.length"> <template v-if="bankList.length">
<view <view
class="branch_list_item" class="branch_list_item"
v-for="(item, index) in bankList" v-for="(item, index) of bankList"
:key="item.id + index" :key="index"
@click="onBankSelect(item, $event)" @click="onBankSelect(item, $event)"
> >
{{ item.branch_bank_name }} {{ item.branch_bank_name }}
@ -445,6 +445,16 @@ export default {
this.$refs.uForm.validate().then(async (valid) => { this.$refs.uForm.validate().then(async (valid) => {
if (valid) { if (valid) {
let auditItem = uni.getStorageSync("auditItem"); let auditItem = uni.getStorageSync("auditItem");
if (auditItem.login_mobile) {
auditItem.login_mobile = auditItem.login_mobile.replace(
/^\+86/,
""
);
console.log(auditItem);
}
let params = { let params = {
...this.form, ...this.form,
...auditItem, ...auditItem,

View File

@ -15,16 +15,28 @@
<script> <script>
import { mapState } from "vuex"; import { mapState } from "vuex";
import { GetAccountDashboard } from "@/api/user";
export default { export default {
data() { data() {
return {}; return {
dashboardInfo: {
store_info: {
wx_qrcode: "",
}, },
onShow() {},
computed: {
...mapState("user", ["dashboardInfo"]),
}, },
};
},
onShow() {
this.getAccountDashboard();
},
methods: { methods: {
async getAccountDashboard() {
let res = await GetAccountDashboard();
if (res && res.status == 200) {
this.dashboardInfo = res.data;
}
},
save() { save() {
uni.showLoading({ uni.showLoading({
title: "保存中", title: "保存中",

View File

@ -691,6 +691,12 @@ export default {
duration: 1000, duration: 1000,
}); });
await this.getCommodityClassify(true); await this.getCommodityClassify(true);
this.form = {
type_category_id: 0,
category_name: "",
category_virtual_enable: 0,
type_name: "",
};
} }
this.showAddStairClassifyPopup = false; this.showAddStairClassifyPopup = false;
this.radioValue = ""; this.radioValue = "";

View File

@ -24,7 +24,8 @@
:closable="true" :closable="true"
fontSize="12" fontSize="12"
title="注意,确认商品类型后不可修改名称,商品类型,虚拟商品!" title="注意,确认商品类型后不可修改名称,商品类型,虚拟商品!"
type="warning" :show-icon="true" type="warning"
:show-icon="true"
></u-alert> ></u-alert>
<view class="edit-item"> <view class="edit-item">
<view class="item-name">一级分类</view> <view class="item-name">一级分类</view>
@ -198,7 +199,8 @@
:closable="true" :closable="true"
fontSize="12" fontSize="12"
title="注意,确认商品类型后不可修改名称,商品类型,虚拟商品!" title="注意,确认商品类型后不可修改名称,商品类型,虚拟商品!"
type="warning" :show-icon="true" type="warning"
:show-icon="true"
></u-alert> ></u-alert>
<u--form <u--form
labelPosition="left" labelPosition="left"
@ -595,7 +597,7 @@ export default {
this.$refs.uForm.validate().then(async (valid) => { this.$refs.uForm.validate().then(async (valid) => {
let params = { let params = {
category_parent_id: this.form.category_parent_id, category_parent_id: this.form.category_parent_id,
type_id: this.form.type_id, type_id: this.radioValue,
type_id_disable: false, type_id_disable: false,
category_name: this.form.category_name, category_name: this.form.category_name,
category_image: this.form.category_image, category_image: this.form.category_image,
@ -828,7 +830,7 @@ export default {
} }
.second-level-item-input { .second-level-item-input {
::v-deep .u-input{ ::v-deep .u-input {
padding: 30rpx 0 !important; padding: 30rpx 0 !important;
} }
.statistics { .statistics {
@ -899,7 +901,7 @@ export default {
.add-popup-content { .add-popup-content {
width: 700rpx; width: 700rpx;
.my_alert{ .my_alert {
margin: 0 24rpx; margin: 0 24rpx;
} }