info.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <view class="cmain">
  3. <view class="form_group">
  4. <view class="lable re">企业名称</view>
  5. <input type="text" placeholder="请输入" v-model="item.name" :disabled="item.judgeStatus==1?true:false" />
  6. </view>
  7. <view class="form_group">
  8. <view class="lable re">税号</view>
  9. <input type="text" placeholder="请输入" v-model="item.dutyParagraph" :disabled="item.judgeStatus==1?true:false"/>
  10. </view>
  11. <view class="form_group">
  12. <view class="lable re">法人姓名</view>
  13. <input type="text" placeholder="请输入" v-model="item.corporateName" :disabled="item.judgeStatus==1?true:false" />
  14. </view>
  15. <view class="form_group">
  16. <view class="lable re">法人身份证号</view>
  17. <input type="text" maxlength="18" placeholder="请输入" v-model="item.corporateIdCard" :disabled="item.judgeStatus==1?true:false" />
  18. </view>
  19. <view class="form_group">
  20. <view class="lable re">联系号码</view>
  21. <input type="text" maxlength="11" placeholder="请输入" v-model="item.linkPhone" :disabled="item.judgeStatus==1?true:false" />
  22. </view>
  23. <view class="form_group">
  24. <view class="lable re">银行编号</view>
  25. <input type="text" placeholder="请输入" v-model="item.bankNo" :disabled="item.judgeStatus==1?true:false" />
  26. </view>
  27. <view class="form_group">
  28. <view class="lable re">开户行</view>
  29. <input type="text" placeholder="请输入" v-model="item.bankName" :disabled="item.judgeStatus==1?true:false" />
  30. </view>
  31. <view class="form_group">
  32. <view class="lable re">银行账号</view>
  33. <input type="text" maxlength="16" placeholder="请输入" v-model="item.bankAccount" :disabled="item.judgeStatus==1?true:false" />
  34. </view>
  35. <view class="form_group">
  36. <view class="lable re">企业地址</view>
  37. <input type="text" placeholder="请输入" v-model="item.address" :disabled="item.judgeStatus==1?true:false" />
  38. </view>
  39. <view class="form_group">
  40. <view class="lable re">法人身份证</view>
  41. <card v-model="item.pic" pic="../../../static/images/yyzz.png"></card>
  42. </view>
  43. <view class="form_group">
  44. <view class="lable re">营业执照</view>
  45. <card v-model="item.pic" pic="../../../static/images/yyzz.png"></card>
  46. </view>
  47. <button class="btn" @click="save()" v-if="item.judgeStatus != 1">提交审核</button>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. data() {
  53. return {
  54. item: {},
  55. param: {},
  56. };
  57. },
  58. onLoad(e) {
  59. this.param.appUserId = this.getUser().id
  60. this.http.request({
  61. url: '/level-two-server/app/TbPurchaser/auditStatus',
  62. data: this.param,
  63. success: res => {
  64. if (res.data.data) {
  65. this.item = res.data.data;
  66. uni.setNavigationBarTitle({ title: '我的认证资料' });
  67. } else {
  68. uni.setNavigationBarTitle({ title: '填写认证资料' });
  69. }
  70. }
  71. });
  72. },
  73. methods: {
  74. save() {
  75. let rule = [
  76. { name: 'name', checkType: 'notnull', errorMsg: '请输入企业名称' },
  77. { name: 'dutyParagraph', checkType: 'notnull', errorMsg: '请输入税号' },
  78. { name: 'corporateName', checkType: 'notnull', errorMsg: '请法人姓名' }
  79. ];
  80. if (!this.verify.check(this.item, rule)) {
  81. uni.showModal({ content: this.verify.error, showCancel: false });
  82. return false;
  83. }
  84. this.item.loginUserId = this.getUser().id
  85. this.item.businessLicense = "1111"
  86. this.http.request({
  87. url: '/level-two-server/app/TbPurchaser/identification',
  88. method: 'POST',
  89. data: this.item,
  90. contentType: 'application/json;charset=UTF-8',
  91. success: res => {
  92. uni.showToast({ title: '提交成功' });
  93. uni.$emit('purchaserAuth');
  94. uni.navigateBack();
  95. }
  96. });
  97. }
  98. }
  99. };
  100. </script>
  101. <style lang="scss">
  102. .btn {
  103. margin-top: 25px;
  104. }
  105. </style>