|
@@ -61,7 +61,7 @@
|
|
<view class="flex border-bottom mt20 align-center">
|
|
<view class="flex border-bottom mt20 align-center">
|
|
<view class="left">法定代表人姓名</view>
|
|
<view class="left">法定代表人姓名</view>
|
|
<view class="flex right">
|
|
<view class="flex right">
|
|
- <u--input placeholder="输入法定代表人姓名" inputAlign='left' border="none"
|
|
|
|
|
|
+ <u--input disabled placeholder="输入法定代表人姓名" inputAlign='left' border="none"
|
|
v-model="dataDetails.legalPersonName">
|
|
v-model="dataDetails.legalPersonName">
|
|
</u--input>
|
|
</u--input>
|
|
</view>
|
|
</view>
|
|
@@ -429,11 +429,31 @@
|
|
// this.isShowimgType = true
|
|
// this.isShowimgType = true
|
|
},
|
|
},
|
|
confirmValidityPeriod(e) {
|
|
confirmValidityPeriod(e) {
|
|
|
|
+ if(e.value[0]==''&&e.value[0] != '长期'){
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: "年份不能为空!",
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }else if(e.value[1]==''&&e.value[0] != '长期'){
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: "月份不能为空!",
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }else if(e.value[2]==''&&e.value[0] != '长期'){
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: "日期不能为空!",
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
switch (this.dataType) {
|
|
switch (this.dataType) {
|
|
case 0:
|
|
case 0:
|
|
if (e.value[0] == '长期') {
|
|
if (e.value[0] == '长期') {
|
|
this.dataDetails.businessTermDate = e.value[0]
|
|
this.dataDetails.businessTermDate = e.value[0]
|
|
} else {
|
|
} else {
|
|
|
|
+
|
|
this.dataDetails.businessTermDate = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
|
|
this.dataDetails.businessTermDate = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
|
|
}
|
|
}
|
|
break
|
|
break
|
|
@@ -495,6 +515,7 @@
|
|
commonId: this.userInfo.id,
|
|
commonId: this.userInfo.id,
|
|
companyName: this.dataDetails.companyName
|
|
companyName: this.dataDetails.companyName
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
|
+ console.log(res)
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
// that.dataDetails.legalPersonName = res.data.name
|
|
// that.dataDetails.legalPersonName = res.data.name
|
|
} else {
|
|
} else {
|
|
@@ -506,6 +527,7 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch(res => {
|
|
.catch(res => {
|
|
|
|
+ console.log(res)
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: res.message,
|
|
title: res.message,
|
|
@@ -615,7 +637,7 @@
|
|
})
|
|
})
|
|
return true
|
|
return true
|
|
}
|
|
}
|
|
- if (uni.$u.test.rangeLength(this.dataDetails.unifiedSocialCreditCode, [17, 17])) {
|
|
|
|
|
|
+ if (uni.$u.test.rangeLength(this.dataDetails.unifiedSocialCreditCode, [0, 18])) {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
message: "统一社会信用代码输出错误!",
|
|
message: "统一社会信用代码输出错误!",
|