info.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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.typeCode" />
  6. </view>
  7. <view class="form_group">
  8. <view class="lable re">税号</view>
  9. <input type="text" placeholder="请输入" v-model="item.typeCode" />
  10. </view>
  11. <view class="form_group">
  12. <view class="lable re">法人姓名</view>
  13. <input type="text" placeholder="请输入" v-model="item.typeCode" />
  14. </view>
  15. <view class="form_group">
  16. <view class="lable re">法人身份证</view>
  17. <input type="text" placeholder="请输入" v-model="item.typeCode" />
  18. </view>
  19. <view class="form_group">
  20. <view class="lable re">联系号码</view>
  21. <input type="text" placeholder="请输入" v-model="item.typeCode" />
  22. </view>
  23. <view class="form_group">
  24. <view class="lable re">开户行</view>
  25. <input type="text" placeholder="请输入" v-model="item.typeCode" />
  26. </view>
  27. <view class="form_group">
  28. <view class="lable re">银行账号</view>
  29. <input type="text" placeholder="请输入" v-model="item.typeCode" />
  30. </view>
  31. <view class="form_group">
  32. <view class="lable re">营业执照</view>
  33. <card v-model="item.pic" pic="../../static/images/yyzz.png"></card>
  34. </view>
  35. <button class="btn" @click="save()">提交审核</button>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return {
  42. item: {}
  43. };
  44. },
  45. onLoad(e) {},
  46. methods: {
  47. save() {
  48. let rule = [
  49. { name: 'typeCode', checkType: 'notnull', errorMsg: '请输入编码' },
  50. { name: 'typeName', checkType: 'notnull', errorMsg: '请输入名称' },
  51. { name: 'status', checkType: 'notnull', errorMsg: '请选择状态' }
  52. ];
  53. if (!this.verify.check(this.item, rule)) {
  54. uni.showModal({ content: this.verify.error, showCancel: false });
  55. return false;
  56. }
  57. this.http.request({
  58. url: '/project/projectType',
  59. method:'POST',
  60. data: this.item,
  61. success: res => {
  62. uni.showToast({ title: '操作成功' });
  63. setTimeout(() => {
  64. uni.$emit('ctype');
  65. uni.navigateBack();
  66. }, 1000);
  67. }
  68. });
  69. }
  70. }
  71. };
  72. </script>
  73. <style lang="scss">
  74. .btn {
  75. margin-top: 25px;
  76. }
  77. </style>