|
@@ -1,38 +1,38 @@
|
|
<template>
|
|
<template>
|
|
<view class="cmain">
|
|
<view class="cmain">
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
- <view class="lable re">名称</view>
|
|
|
|
- <input type="text" placeholder="请输入" v-model="item.typeCode" />
|
|
|
|
|
|
+ <view class="lable re">企业名称</view>
|
|
|
|
+ <input type="text" placeholder="请输入" v-model="item.name" />
|
|
</view>
|
|
</view>
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
<view class="lable re">税号</view>
|
|
<view class="lable re">税号</view>
|
|
- <input type="text" placeholder="请输入" v-model="item.typeCode" />
|
|
|
|
|
|
+ <input type="text" placeholder="请输入" v-model="item.dutyParagraph" />
|
|
</view>
|
|
</view>
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
<view class="lable re">法人姓名</view>
|
|
<view class="lable re">法人姓名</view>
|
|
- <input type="text" placeholder="请输入" v-model="item.typeCode" />
|
|
|
|
|
|
+ <input type="text" placeholder="请输入" v-model="item.legalPerson" />
|
|
</view>
|
|
</view>
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
<view class="lable re">法人身份证</view>
|
|
<view class="lable re">法人身份证</view>
|
|
- <input type="text" placeholder="请输入" v-model="item.typeCode" />
|
|
|
|
|
|
+ <input type="text" placeholder="请输入" v-model="item.idCard" />
|
|
</view>
|
|
</view>
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
<view class="lable re">联系号码</view>
|
|
<view class="lable re">联系号码</view>
|
|
- <input type="text" placeholder="请输入" v-model="item.typeCode" />
|
|
|
|
|
|
+ <input type="text" placeholder="请输入" v-model="item.contact" />
|
|
</view>
|
|
</view>
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
<view class="lable re">开户行</view>
|
|
<view class="lable re">开户行</view>
|
|
- <input type="text" placeholder="请输入" v-model="item.typeCode" />
|
|
|
|
|
|
+ <input type="text" placeholder="请输入" v-model="item.bankName" />
|
|
</view>
|
|
</view>
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
<view class="lable re">银行账号</view>
|
|
<view class="lable re">银行账号</view>
|
|
- <input type="text" placeholder="请输入" v-model="item.typeCode" />
|
|
|
|
|
|
+ <input type="text" placeholder="请输入" v-model="item.bankAccount" />
|
|
</view>
|
|
</view>
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
<view class="lable re">营业执照</view>
|
|
<view class="lable re">营业执照</view>
|
|
<card v-model="item.pic" pic="../../static/images/yyzz.png"></card>
|
|
<card v-model="item.pic" pic="../../static/images/yyzz.png"></card>
|
|
</view>
|
|
</view>
|
|
- <button class="btn" @click="save()">提交审核</button>
|
|
|
|
|
|
+ <button class="btn" @click="save()" v-if="item.judgeStatus != 1">提交审核</button>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -43,26 +43,38 @@ export default {
|
|
item: {}
|
|
item: {}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- onLoad(e) {},
|
|
|
|
|
|
+ onLoad(e) {
|
|
|
|
+ this.http.request({
|
|
|
|
+ url: '/level-one-server/app/TbEnterprise/getInfo',
|
|
|
|
+ success: res => {
|
|
|
|
+ if (res.data.data) {
|
|
|
|
+ this.item = res.data.data;
|
|
|
|
+ uni.setNavigationBarTitle({ title: '我的认证资料' });
|
|
|
|
+ } else {
|
|
|
|
+ uni.setNavigationBarTitle({ title: '填写认证资料' });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
save() {
|
|
save() {
|
|
let rule = [
|
|
let rule = [
|
|
- { name: 'typeCode', checkType: 'notnull', errorMsg: '请输入编码' },
|
|
|
|
- { name: 'typeName', checkType: 'notnull', errorMsg: '请输入名称' },
|
|
|
|
- { name: 'status', checkType: 'notnull', errorMsg: '请选择状态' }
|
|
|
|
|
|
+ { name: 'name', checkType: 'notnull', errorMsg: '请输入企业名称' },
|
|
|
|
+ { name: 'dutyParagraph', checkType: 'notnull', errorMsg: '请输入税号' },
|
|
|
|
+ { name: 'legalPerson', checkType: 'notnull', errorMsg: '请法人姓名' }
|
|
];
|
|
];
|
|
if (!this.verify.check(this.item, rule)) {
|
|
if (!this.verify.check(this.item, rule)) {
|
|
uni.showModal({ content: this.verify.error, showCancel: false });
|
|
uni.showModal({ content: this.verify.error, showCancel: false });
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
this.http.request({
|
|
this.http.request({
|
|
- url: '/project/projectType',
|
|
|
|
- method:'POST',
|
|
|
|
|
|
+ url: '/level-one-server/app/TbEnterprise/identification',
|
|
|
|
+ method: 'POST',
|
|
data: this.item,
|
|
data: this.item,
|
|
success: res => {
|
|
success: res => {
|
|
- uni.showToast({ title: '操作成功' });
|
|
|
|
|
|
+ uni.showToast({ title: '提交成功' });
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- uni.$emit('ctype');
|
|
|
|
|
|
+ uni.$emit('authentication');
|
|
uni.navigateBack();
|
|
uni.navigateBack();
|
|
}, 1000);
|
|
}, 1000);
|
|
}
|
|
}
|