Ver código fonte

产交问题修改

rongxin_prod
庞东旭 1 ano atrás
pai
commit
024d1f06cd
2 arquivos alterados com 65 adições e 31 exclusões
  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 Ver arquivo

@@ -9,9 +9,9 @@
/>
<van-form @submit="submitForm">
<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 value="15314031621" 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: {
searchBankAddress(){
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 => {
if (response.rows.length<1){
if (this.form.sheng==''||this.form.shi==''){
if (this.userForm.sheng==''||this.userForm.shi==''){
this.$toast({
icon: 'fail', // 找到自己需要的图标
message: '请选择省市',
@@ -277,7 +277,7 @@ export default {
})
return;
}
if (this.form.bankDeposit==''){
if (this.userForm.bankDeposit==''){
this.$toast({
icon: 'fail', // 找到自己需要的图标
message: '请输入关键词',
@@ -423,14 +423,14 @@ export default {
file:file.content
}
base64Upload(params1).then((r1) => {
this.form.companyLicense = r1.fileName;
this.userForm.companyLicense = r1.fileName;
})
},
deleteFileYYZZ(elIndex){
return (file, name) => {
let fileIndex = name.index
this.fileListYYZZ[elIndex].splice(fileIndex, 1)
this.form.companyLicense = '';
this.userForm.companyLicense = '';
}
},
submitForm(){
@@ -469,27 +469,27 @@ export default {
},
onConfirmBankType(value){
this.showBankType = false;
this.form.bankAddress = '';
this.form.payeePaymentLines = '';
this.userForm.bankAddress = '';
this.userForm.payeePaymentLines = '';
this.bankType = value.dictLabel;
this.form.bankType = value.dictValue;
this.userForm.bankType = value.dictValue;
},
onConfirmSheng(value){
console.log(value)
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('/');
},
onConfirmBankAddress(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;
},
onConfirmAccountType(value){
console.log(value)
this.form.accountType = value.dictValue;
this.userForm.accountType = value.dictValue;
this.accountType = value.dictLabel;
this.showAccountType = false;
},


+ 46
- 12
src/views/user/accountSetting/userInformation/userInformation.vue Ver arquivo

@@ -9,9 +9,9 @@
/>
<van-form @submit="submitForm">
<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 v-model="userForm.realname" 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 {getMember, base64Attach, userUpdate, showUserImg, deleteUserImg, options} from "@/api/user/index";
import {Dialog} from "vant";
import {base64Upload} from "@/api/register";
import {base64Upload, depositList, realtimeBackList} from "@/api/register";
export default {
name: "userInformation",
data() {
@@ -183,6 +183,40 @@ export default {
this.getInfo();
},
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().then(response => {
getMember(response.user.userId).then(response => {
@@ -296,27 +330,27 @@ export default {
},
onConfirmBankType(value){
this.showBankType = false;
this.form.bankAddress = '';
this.form.payeePaymentLines = '';
this.userForm.bankAddress = '';
this.userForm.payeePaymentLines = '';
this.bankType = value.dictLabel;
this.form.bankType = value.dictValue;
this.userForm.bankType = value.dictValue;
},
onConfirmSheng(value){
console.log(value)
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('/');
},
onConfirmBankAddress(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;
},
onConfirmAccountType(value){
console.log(value)
this.form.accountType = value.dictValue;
this.userForm.accountType = value.dictValue;
this.accountType = value.dictLabel;
this.showAccountType = false;
},


Carregando…
Cancelar
Salvar