铝交易,微信公众号
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

375 lines
8.7 KiB

6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
  1. <template>
  2. <view class="registerShop">
  3. <navbar :title="$t('other.domesticCustomsClearanceApplication')" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="frame">
  5. <!--基本信息-->
  6. <view class="basicInfo">
  7. <!--用户名-->
  8. <view class="item">
  9. <view>{{ $t('components.username') }}</view>
  10. <view>
  11. <input v-model="form.userName" :placeholder="$t('components.enterUserName')" clearable></input>
  12. </view>
  13. </view>
  14. <!--密码-->
  15. <view class="item">
  16. <view>{{ $t('components.password') }}</view>
  17. <view>
  18. <input v-model="form.password" password clearable
  19. :placeholder="$t('components.enterYourPassword')" clearable></input>
  20. </view>
  21. </view>
  22. <!--公司名称-->
  23. <view class="item">
  24. <view>{{ $t('other.companyName') }}</view>
  25. <view>
  26. <input v-model="form.companyName" type="number" :placeholder="$t('other.enterCompanyName')"
  27. clearable></input>
  28. </view>
  29. </view>
  30. <!--税收编码-->
  31. <view class="item">
  32. <view>{{ $t('other.taxCode') }}</view>
  33. <view>
  34. <input v-model="form.taxCode" :placeholder="$t('other.enterTaxCode')" clearable></input>
  35. </view>
  36. </view>
  37. <!--公司地址-->
  38. <view class="item">
  39. <view>{{ $t('other.companyAddress') }}</view>
  40. <view>
  41. <input v-model="form.address" :placeholder="$t('other.enterCompanyAddress')" clearable></input>
  42. </view>
  43. </view>
  44. <!--dian-->
  45. <view class="item">
  46. <view>{{ $t('components.lxPhone') }}</view>
  47. <view>
  48. <input v-model="form.phone" :placeholder="$t('components.plePhoneNumber')" clearable></input>
  49. </view>
  50. </view>
  51. <view class="item">
  52. <view>{{ $t('other.companyAccount') }}</view>
  53. <view>
  54. <input v-model="form.bankAccount" :placeholder="$t('other.enterCompanyAccount')"
  55. clearable></input>
  56. </view>
  57. </view>
  58. <view class="item">
  59. <view>{{ $t('components.bankName') }}</view>
  60. <view>
  61. <input v-model="form.bankNama" :placeholder="$t('components.enterBankName')" clearable></input>
  62. </view>
  63. </view>
  64. </view>
  65. <!--证件信息-->
  66. <view class="certificateInfo">
  67. <!--营业执照-->
  68. <view class="certificateInfoItem">
  69. <view class="title">
  70. <span
  71. style="width: 10rpx;height: 40rpx;background-color: #f78142;border-radius: 10rpx;overflow: hidden;"></span>
  72. <span>{{ $t('components.businessLicense') }}</span>
  73. </view>
  74. <view class="upload">
  75. <uv-upload :fileList="yyzzfileList" :maxCount="4" multiple width="150rpx" height="150rpx"
  76. @delete="(file) => deleteImage(0, file)" @afterRead="(file) => afterRead(0, file)"
  77. :previewFullImage="true"></uv-upload>
  78. </view>
  79. </view>
  80. <!--基本户信息-->
  81. <view class="certificateInfoItem">
  82. <view class="title">
  83. <span
  84. style="width: 10rpx;height: 40rpx;background-color: #f78142;border-radius: 10rpx;overflow: hidden;"></span>
  85. <span>{{ $t('components.basicAccountInfo') }}</span>
  86. </view>
  87. <view class="upload">
  88. <uv-upload :fileList="jbhxxfileList" :maxCount="4" multiple width="150rpx" height="150rpx"
  89. @delete="(file) => deleteImage(1, file)" @afterRead="(file) => afterRead(1, file)"
  90. :previewFullImage="true"></uv-upload>
  91. </view>
  92. </view>
  93. <!--收款银行-->
  94. <view class="certificateInfoItem">
  95. <view class="title">
  96. <span
  97. style="width: 10rpx;height: 40rpx;background-color: #f78142;border-radius: 10rpx;overflow: hidden;"></span>
  98. <span>{{ $t('components.receivingBank') }}</span>
  99. </view>
  100. <view class="upload">
  101. <uv-upload :fileList="skyhfileList" :maxCount="4" multiple width="150rpx" height="150rpx"
  102. @delete="(file) => deleteImage(2, file)" @afterRead="(file) => afterRead(2, file)"
  103. :previewFullImage="true"></uv-upload>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. <view class="bottom">
  109. <view class="btns">
  110. <span @click="applyReview" class="sqsh">
  111. {{ $t('components.submitReview') }}
  112. </span>
  113. <span @click="contactUs" class="lxwm">
  114. {{ $t('components.contactUs') }}
  115. </span>
  116. </view>
  117. <view class="others">
  118. <span @click="applyReview" class="zcxz">
  119. {{ $t('components.registrationNotice') }}
  120. </span>
  121. <span @click="contactUs" class="kjhtyl">
  122. {{ $t('other.frameworkContractPreview') }}
  123. </span>
  124. </view>
  125. </view>
  126. </view>
  127. </template>
  128. <script>
  129. export default {
  130. // onLoad(option) {
  131. // this.titleIndex = option.identity
  132. // },
  133. data() {
  134. return {
  135. // titleIndex: 0,
  136. // titleList: [
  137. // // 采购商注册 供应商注册 国内清关申请
  138. // this.$t('other.buyerRegistration'),
  139. // this.$t('other.supplierRegistration'),
  140. // this.$t('other.domesticCustomsClearanceApplication')
  141. // ],
  142. form: {
  143. "address": "",
  144. "bankAccount": "",
  145. "bankInfo": "",
  146. "bankNama": "",
  147. "basicAccount": "",
  148. "businessLicense": "",
  149. "companyName": "",
  150. "id": "",
  151. "password": "",
  152. "phone": "",
  153. "role": 0,
  154. "taxCode": "",
  155. "userName": ""
  156. },
  157. yyzzfileList: [],
  158. jbhxxfileList: [],
  159. skyhfileList: [],
  160. }
  161. },
  162. methods: {
  163. // 申请审核
  164. applyReview() {
  165. this.form.basicAccount = this.jbhxxfileList.join(",") //基本户信息照片上传
  166. this.form.bankInfo = this.skyhfileList.join(",") //收款银行照片上传
  167. this.form.businessLicense = this.yyzzfileList.join(",") //营业执照上传
  168. this.$api('addCustoms', this.form, res => {
  169. if (res.code == 200) {
  170. uni.redirectTo({
  171. url: '/pages/index/clearanceService'
  172. })
  173. }
  174. })
  175. },
  176. // 联系我们
  177. contactUs() {
  178. },
  179. // 上传图片
  180. afterRead(type, e) {
  181. let self = this
  182. e.file.forEach(file => {
  183. self.$Oss.ossUpload(file.url).then(url => {
  184. if (type == 0) {
  185. self.yyzzfileList.push({
  186. url
  187. })
  188. } else if (type == 1) {
  189. self.jbhxxfileList.push({
  190. url
  191. })
  192. } else if (type == 2) {
  193. self.skyhfileList.push({
  194. url
  195. })
  196. }
  197. })
  198. })
  199. },
  200. // 删除图片
  201. deleteImage(type, e) {
  202. console.log(e, type, "===========")
  203. if (type == 0) {
  204. this.yyzzfileList.splice(e.index, 1)
  205. } else if (type == 1) {
  206. this.jbhxxfileList.splice(e.index, 1)
  207. } else if (type == 2) {
  208. this.skyhfileList.splice(e.index, 1)
  209. }
  210. },
  211. }
  212. }
  213. </script>
  214. <style scoped lang="scss">
  215. .registerShop {
  216. .frame {
  217. height: 79vh;
  218. overflow: auto;
  219. .basicInfo {
  220. display: flex;
  221. flex-direction: column;
  222. gap: 5rpx;
  223. background-color: #FFF;
  224. margin-top: 20rpx;
  225. padding: 20rpx;
  226. .item {
  227. display: flex;
  228. align-items: center;
  229. background-color: #FFF;
  230. height: 80rpx;
  231. // margin: 10rpx 0 0 0;
  232. padding: 10rpx 0 0 20rpx;
  233. >view:nth-of-type(1) {
  234. width: 30%;
  235. // font-weight: 700;
  236. }
  237. >view:nth-of-type(2) {
  238. width: 70%;
  239. border-radius: 10rpx;
  240. overflow: hidden;
  241. input {
  242. background-color: #f5f5f5;
  243. font-size: 28rpx;
  244. padding: 16rpx 8rpx 16rpx 15rpx;
  245. }
  246. }
  247. }
  248. }
  249. .certificateInfo {
  250. display: flex;
  251. flex-direction: column;
  252. gap: 20rpx;
  253. background-color: #FFF;
  254. margin-top: 20rpx;
  255. padding: 20rpx;
  256. .certificateInfoItem {
  257. .title {
  258. display: flex;
  259. // padding-top: 40rpx;
  260. font-size: 30rpx;
  261. font-weight: 700;
  262. padding: 0 0 0 20rpx;
  263. >span:nth-of-type(1) {
  264. margin: 4rpx 0 0 8rpx;
  265. background-color: #FFF;
  266. }
  267. >span:nth-of-type(2) {
  268. margin: 0 0 0 8rpx;
  269. background-color: #FFF;
  270. }
  271. }
  272. .upload {
  273. margin: 5rpx 0 0 40rpx;
  274. }
  275. }
  276. }
  277. }
  278. .bottom {
  279. position: fixed;
  280. bottom: 10rpx;
  281. left: 0;
  282. right: 0;
  283. background-color: #FFF;
  284. .btns {
  285. display: flex;
  286. justify-content: center;
  287. align-items: center;
  288. gap: 40rpx;
  289. .sqsh {
  290. display: flex;
  291. align-items: center;
  292. justify-content: center;
  293. width: 40%;
  294. height: 70rpx;
  295. border-radius: 40rpx;
  296. color: white;
  297. font-size: 28rpx;
  298. margin: 20rpx 10rpx 0 0;
  299. background: #293143;
  300. //margin-top: 20rpx;
  301. border-radius: 40rpx;
  302. }
  303. .lxwm {
  304. display: flex;
  305. align-items: center;
  306. justify-content: center;
  307. width: 40%;
  308. height: 70rpx;
  309. border-radius: 40rpx;
  310. color: #000000;
  311. font-size: 28rpx;
  312. margin: 20rpx 10rpx 0 0;
  313. background: #f2f2f2;
  314. //margin-top: 20rpx;
  315. border-radius: 40rpx;
  316. }
  317. }
  318. .others {
  319. display: flex;
  320. justify-content: center;
  321. align-items: center;
  322. gap: 200rpx;
  323. color: #707070;
  324. font-size: 24rpx;
  325. .zcxz {
  326. text-decoration: underline;
  327. }
  328. .kjhtyl {
  329. text-decoration: underline;
  330. }
  331. }
  332. }
  333. }
  334. </style>