Преглед на файлове

产交问题修改

rongxin_prod
庞东旭 преди 1 година
родител
ревизия
024d1f06cd
променени са 2 файла, в които са добавени 65 реда и са изтрити 31 реда
  1. +19
    -19
      src/views/user/accountSetting/userInformation/companyInformation.vue
  2. +46
    -12
      src/views/user/accountSetting/userInformation/userInformation.vue

+ 19
- 19
src/views/user/accountSetting/userInformation/companyInformation.vue Целия файл

@@ -9,9 +9,9 @@
/> />
<van-form @submit="submitForm"> <van-form @submit="submitForm">
<van-field v-model="tel" readonly type="tel" label="手机号" placeholder="请输入手机号" required :rules="[{ required:true }]" > <van-field v-model="tel" readonly type="tel" label="手机号" placeholder="请输入手机号" required :rules="[{ required:true }]" >
<template #extra >
<p style="color: #007e72" onclick="window.location='phoneInformation'">修改手机号</p>
</template>
<!-- <template #extra >-->
<!-- <p style="color: #007e72" onclick="window.location='phoneInformation'">修改手机号</p>-->
<!-- </template>-->
</van-field> </van-field>
<!-- <van-field value="15314031621" label="密码" placeholder="请输入密码" required :rules="[{ required:true }]"/>--> <!-- <van-field value="15314031621" label="密码" placeholder="请输入密码" required :rules="[{ required:true }]"/>-->
<van-field v-model="userForm.companyName" label="公司名称" placeholder="请输入公司名称" required :rules="[{ required:true }]"/> <van-field v-model="userForm.companyName" label="公司名称" placeholder="请输入公司名称" required :rules="[{ required:true }]"/>
@@ -262,14 +262,14 @@ export default {
methods: { methods: {
searchBankAddress(){ searchBankAddress(){
let data = { let data = {
sheng:this.form.sheng,
shi:this.form.shi,
bankType:this.form.bankType,
bankDeposit:this.form.bankDeposit,
sheng:this.userForm.sheng,
shi:this.userForm.shi,
bankType:this.userForm.bankType,
bankDeposit:this.userForm.bankDeposit,
} }
depositList(data).then(response => { depositList(data).then(response => {
if (response.rows.length<1){ if (response.rows.length<1){
if (this.form.sheng==''||this.form.shi==''){
if (this.userForm.sheng==''||this.userForm.shi==''){
this.$toast({ this.$toast({
icon: 'fail', // 找到自己需要的图标 icon: 'fail', // 找到自己需要的图标
message: '请选择省市', message: '请选择省市',
@@ -277,7 +277,7 @@ export default {
}) })
return; return;
} }
if (this.form.bankDeposit==''){
if (this.userForm.bankDeposit==''){
this.$toast({ this.$toast({
icon: 'fail', // 找到自己需要的图标 icon: 'fail', // 找到自己需要的图标
message: '请输入关键词', message: '请输入关键词',
@@ -423,14 +423,14 @@ export default {
file:file.content file:file.content
} }
base64Upload(params1).then((r1) => { base64Upload(params1).then((r1) => {
this.form.companyLicense = r1.fileName;
this.userForm.companyLicense = r1.fileName;
}) })
}, },
deleteFileYYZZ(elIndex){ deleteFileYYZZ(elIndex){
return (file, name) => { return (file, name) => {
let fileIndex = name.index let fileIndex = name.index
this.fileListYYZZ[elIndex].splice(fileIndex, 1) this.fileListYYZZ[elIndex].splice(fileIndex, 1)
this.form.companyLicense = '';
this.userForm.companyLicense = '';
} }
}, },
submitForm(){ submitForm(){
@@ -469,27 +469,27 @@ export default {
}, },
onConfirmBankType(value){ onConfirmBankType(value){
this.showBankType = false; this.showBankType = false;
this.form.bankAddress = '';
this.form.payeePaymentLines = '';
this.userForm.bankAddress = '';
this.userForm.payeePaymentLines = '';
this.bankType = value.dictLabel; this.bankType = value.dictLabel;
this.form.bankType = value.dictValue;
this.userForm.bankType = value.dictValue;
}, },
onConfirmSheng(value){ onConfirmSheng(value){
console.log(value) console.log(value)
this.showSheng = false; this.showSheng = false;
this.form.sheng = value[0];
this.form.shi = value[1];
this.userForm.sheng = value[0];
this.userForm.shi = value[1];
this.sheng = value.join('/'); this.sheng = value.join('/');
}, },
onConfirmBankAddress(value){ onConfirmBankAddress(value){
console.log(value) console.log(value)
this.form.bankAddress = value.bankDeposit;
this.form.payeePaymentLines = value.payeePaymentLines;
this.userForm.bankAddress = value.bankDeposit;
this.userForm.payeePaymentLines = value.payeePaymentLines;
this.showBankAddress = false; this.showBankAddress = false;
}, },
onConfirmAccountType(value){ onConfirmAccountType(value){
console.log(value) console.log(value)
this.form.accountType = value.dictValue;
this.userForm.accountType = value.dictValue;
this.accountType = value.dictLabel; this.accountType = value.dictLabel;
this.showAccountType = false; this.showAccountType = false;
}, },


+ 46
- 12
src/views/user/accountSetting/userInformation/userInformation.vue Целия файл

@@ -9,9 +9,9 @@
/> />
<van-form @submit="submitForm"> <van-form @submit="submitForm">
<van-field v-model="tel" readonly type="tel" label="手机号" placeholder="请输入手机号" readonly required :rules="[{ required:true }]" > <van-field v-model="tel" readonly type="tel" label="手机号" placeholder="请输入手机号" readonly required :rules="[{ required:true }]" >
<template #extra >
<p style="color: #007e72" onclick="window.location='phoneInformation'">修改手机号</p>
</template>
<!-- <template #extra >-->
<!-- <p style="color: #007e72" onclick="window.location='phoneInformation'">修改手机号</p>-->
<!-- </template>-->
</van-field> </van-field>
<van-field v-model="userForm.realname" label="姓名" placeholder="请输入姓名" required :rules="[{ required:true }]"/> <van-field v-model="userForm.realname" label="姓名" placeholder="请输入姓名" required :rules="[{ required:true }]"/>
<van-field v-model="userForm.idCardNum" label="身份证号" placeholder="请输入身份证号" required :rules="[{ required:true }]"/> <van-field v-model="userForm.idCardNum" label="身份证号" placeholder="请输入身份证号" required :rules="[{ required:true }]"/>
@@ -128,7 +128,7 @@
import { getInfo } from "@/api/login/index"; import { getInfo } from "@/api/login/index";
import {getMember, base64Attach, userUpdate, showUserImg, deleteUserImg, options} from "@/api/user/index"; import {getMember, base64Attach, userUpdate, showUserImg, deleteUserImg, options} from "@/api/user/index";
import {Dialog} from "vant"; import {Dialog} from "vant";
import {base64Upload} from "@/api/register";
import {base64Upload, depositList, realtimeBackList} from "@/api/register";
export default { export default {
name: "userInformation", name: "userInformation",
data() { data() {
@@ -183,6 +183,40 @@ export default {
this.getInfo(); this.getInfo();
}, },
methods: { methods: {
searchBankAddress(){
let data = {
sheng:this.userForm.sheng,
shi:this.userForm.shi,
bankType:this.userForm.bankType,
bankDeposit:this.userForm.bankDeposit,
}
depositList(data).then(response => {
if (response.rows.length<1){
if (this.userForm.sheng==''||this.userForm.shi==''){
this.$toast({
icon: 'fail', // 找到自己需要的图标
message: '请选择省市',
duration:"1000",
})
return;
}
if (this.userForm.bankDeposit==''){
this.$toast({
icon: 'fail', // 找到自己需要的图标
message: '请输入关键词',
duration:"1000",
})
return;
}
realtimeBackList(data).then(response2 => {
console.log(response2)
this.bankAddressOption = response2.data;
});
}else{
this.bankAddressOption = response.rows;
}
});
},
getInfo(){ getInfo(){
getInfo().then(response => { getInfo().then(response => {
getMember(response.user.userId).then(response => { getMember(response.user.userId).then(response => {
@@ -296,27 +330,27 @@ export default {
}, },
onConfirmBankType(value){ onConfirmBankType(value){
this.showBankType = false; this.showBankType = false;
this.form.bankAddress = '';
this.form.payeePaymentLines = '';
this.userForm.bankAddress = '';
this.userForm.payeePaymentLines = '';
this.bankType = value.dictLabel; this.bankType = value.dictLabel;
this.form.bankType = value.dictValue;
this.userForm.bankType = value.dictValue;
}, },
onConfirmSheng(value){ onConfirmSheng(value){
console.log(value) console.log(value)
this.showSheng = false; this.showSheng = false;
this.form.sheng = value[0];
this.form.shi = value[1];
this.userForm.sheng = value[0];
this.userForm.shi = value[1];
this.sheng = value.join('/'); this.sheng = value.join('/');
}, },
onConfirmBankAddress(value){ onConfirmBankAddress(value){
console.log(value) console.log(value)
this.form.bankAddress = value.bankDeposit;
this.form.payeePaymentLines = value.payeePaymentLines;
this.userForm.bankAddress = value.bankDeposit;
this.userForm.payeePaymentLines = value.payeePaymentLines;
this.showBankAddress = false; this.showBankAddress = false;
}, },
onConfirmAccountType(value){ onConfirmAccountType(value){
console.log(value) console.log(value)
this.form.accountType = value.dictValue;
this.userForm.accountType = value.dictValue;
this.accountType = value.dictLabel; this.accountType = value.dictLabel;
this.showAccountType = false; this.showAccountType = false;
}, },


Зареждане…
Отказ
Запис