铝交易,微信公众号
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.

392 lines
9.5 KiB

6 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
6 months ago
5 months ago
5 months ago
5 months ago
6 months ago
5 months ago
5 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" :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="$refs.customerServicePopup.open()" class="lxwm">
  114. {{ $t('components.contactUs') }}
  115. </span>
  116. </view>
  117. <view class="others">
  118. <span @click="$refs.popup.open('zcxz')" class="zcxz">
  119. {{ $t('components.registrationNotice') }}
  120. </span>
  121. <span @click="$refs.popup.open('kjht')" class="kjhtyl">
  122. {{ $t('other.frameworkContractPreview') }}
  123. </span>
  124. </view>
  125. </view>
  126. <!-- 联系客服弹框 -->
  127. <customerServicePopup ref="customerServicePopup" />
  128. <configPopup ref="popup"></configPopup>
  129. </view>
  130. </template>
  131. <script>
  132. export default {
  133. // onLoad(option) {
  134. // this.titleIndex = option.identity
  135. // },
  136. data() {
  137. return {
  138. // titleIndex: 0,
  139. // titleList: [
  140. // // 采购商注册 供应商注册 国内清关申请
  141. // this.$t('other.buyerRegistration'),
  142. // this.$t('other.supplierRegistration'),
  143. // this.$t('other.domesticCustomsClearanceApplication')
  144. // ],
  145. form: {
  146. "address": "",
  147. "bankAccount": "",
  148. "bankInfo": "",
  149. "bankNama": "",
  150. "basicAccount": "",
  151. "businessLicense": "",
  152. "companyName": "",
  153. "id": "",
  154. "password": "",
  155. "phone": "",
  156. "role": 0,
  157. "taxCode": "",
  158. "userName": ""
  159. },
  160. yyzzfileList: [],
  161. jbhxxfileList: [],
  162. skyhfileList: [],
  163. }
  164. },
  165. methods: {
  166. // 申请审核
  167. applyReview() {
  168. this.form.basicAccount = this.jbhxxfileList.map((item) => item.url).join(",") //基本户信息照片上传
  169. this.form.bankInfo = this.skyhfileList.map((item) => item.url).join(",") //收款银行照片上传
  170. this.form.businessLicense = this.yyzzfileList.map((item) => item.url).join(",") //营业执照上传
  171. if(this.$utils.verificationAll(this.form, {
  172. "userName": this.$t('components.enterUserName'),
  173. "password": this.$t('components.enterYourPassword'),
  174. "companyName": this.$t('other.enterCompanyName'),
  175. "taxCode": this.$t('other.enterTaxCode'),
  176. "address": this.$t('other.enterCompanyAddress'),
  177. "phone": this.$t('components.plePhoneNumber'),
  178. "bankAccount": this.$t('other.enterCompanyAccount'),
  179. "bankNama": this.$t('components.enterBankName'),
  180. "businessLicense": '请上传营业执照',
  181. "basicAccount": '请上传基本户信息照片',
  182. "bankInfo": '请上传收款银行照片',
  183. })){
  184. return
  185. }
  186. this.$api('addCustoms', this.form, res => {
  187. if (res.code == 200) {
  188. uni.redirectTo({
  189. url: '/pages/index/clearanceService'
  190. })
  191. }
  192. })
  193. },
  194. // 上传图片
  195. afterRead(type, e) {
  196. let self = this
  197. e.file.forEach(file => {
  198. self.$Oss.ossUpload(file.url).then(url => {
  199. if (type == 0) {
  200. self.yyzzfileList.push({
  201. url
  202. })
  203. } else if (type == 1) {
  204. self.jbhxxfileList.push({
  205. url
  206. })
  207. } else if (type == 2) {
  208. self.skyhfileList.push({
  209. url
  210. })
  211. }
  212. })
  213. })
  214. },
  215. // 删除图片
  216. deleteImage(type, e) {
  217. console.log(e, type, "===========")
  218. if (type == 0) {
  219. this.yyzzfileList.splice(e.index, 1)
  220. } else if (type == 1) {
  221. this.jbhxxfileList.splice(e.index, 1)
  222. } else if (type == 2) {
  223. this.skyhfileList.splice(e.index, 1)
  224. }
  225. },
  226. }
  227. }
  228. </script>
  229. <style scoped lang="scss">
  230. .registerShop {
  231. .frame {
  232. height: 79vh;
  233. overflow: auto;
  234. .basicInfo {
  235. display: flex;
  236. flex-direction: column;
  237. gap: 5rpx;
  238. background-color: #FFF;
  239. margin-top: 20rpx;
  240. padding: 20rpx;
  241. .item {
  242. display: flex;
  243. align-items: center;
  244. background-color: #FFF;
  245. height: 80rpx;
  246. // margin: 10rpx 0 0 0;
  247. padding: 10rpx 0 0 20rpx;
  248. >view:nth-of-type(1) {
  249. width: 30%;
  250. // font-weight: 700;
  251. }
  252. >view:nth-of-type(2) {
  253. width: 70%;
  254. border-radius: 10rpx;
  255. overflow: hidden;
  256. input {
  257. background-color: #f5f5f5;
  258. font-size: 28rpx;
  259. padding: 16rpx 8rpx 16rpx 15rpx;
  260. }
  261. }
  262. }
  263. }
  264. .certificateInfo {
  265. display: flex;
  266. flex-direction: column;
  267. gap: 20rpx;
  268. background-color: #FFF;
  269. margin-top: 20rpx;
  270. padding: 20rpx;
  271. .certificateInfoItem {
  272. .title {
  273. display: flex;
  274. // padding-top: 40rpx;
  275. font-size: 30rpx;
  276. font-weight: 700;
  277. padding: 0 0 0 20rpx;
  278. >span:nth-of-type(1) {
  279. margin: 4rpx 0 0 8rpx;
  280. background-color: #FFF;
  281. }
  282. >span:nth-of-type(2) {
  283. margin: 0 0 0 8rpx;
  284. background-color: #FFF;
  285. }
  286. }
  287. .upload {
  288. margin: 5rpx 0 0 40rpx;
  289. }
  290. }
  291. }
  292. }
  293. .bottom {
  294. position: fixed;
  295. bottom: 10rpx;
  296. left: 0;
  297. right: 0;
  298. background-color: #FFF;
  299. .btns {
  300. display: flex;
  301. justify-content: center;
  302. align-items: center;
  303. gap: 40rpx;
  304. .sqsh {
  305. display: flex;
  306. align-items: center;
  307. justify-content: center;
  308. width: 40%;
  309. height: 70rpx;
  310. border-radius: 40rpx;
  311. color: white;
  312. font-size: 28rpx;
  313. margin: 20rpx 10rpx 0 0;
  314. background: #293143;
  315. //margin-top: 20rpx;
  316. border-radius: 40rpx;
  317. }
  318. .lxwm {
  319. display: flex;
  320. align-items: center;
  321. justify-content: center;
  322. width: 40%;
  323. height: 70rpx;
  324. border-radius: 40rpx;
  325. color: #000000;
  326. font-size: 28rpx;
  327. margin: 20rpx 10rpx 0 0;
  328. background: #f2f2f2;
  329. //margin-top: 20rpx;
  330. border-radius: 40rpx;
  331. }
  332. }
  333. .others {
  334. margin: 20rpx 0;
  335. display: flex;
  336. justify-content: center;
  337. align-items: center;
  338. gap: 200rpx;
  339. color: #707070;
  340. font-size: 24rpx;
  341. .zcxz {
  342. text-decoration: underline;
  343. }
  344. .kjhtyl {
  345. text-decoration: underline;
  346. }
  347. }
  348. }
  349. }
  350. </style>