customerManagementAdd.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <!--客户管理-->
  2. <template>
  3. <div class="content">
  4. <!-- <el-row>
  5. <el-col :span="12">
  6. <h2 class="bg-left titleup">{{ information }}质检信息</h2>
  7. </el-col>
  8. <el-col :span="12" class="bg-right">
  9. <el-button class="bg-bottom" type="primary" size="small" @click="cancel"
  10. ><img
  11. width="6"
  12. height="10"
  13. style="vertical-align: bottom; margin-right: 3px"
  14. src="../../../public/img/lujing.png"
  15. alt=""
  16. />返回</el-button
  17. >
  18. </el-col>
  19. </el-row> -->
  20. <div class="title">新增粮商</div>
  21. <div class="unload">
  22. <el-upload action="https://jsonplaceholder.typicode.com/posts/" :limit="2" list-type="picture-card"
  23. :on-preview="handlePictureCardPreview" :on-remove="handleRemove">
  24. <i class="el-icon-plus"></i>
  25. </el-upload>
  26. <el-form ref="form" :model="form" label-width="120px">
  27. <el-form-item label="姓名">
  28. <el-input v-model="form.name"></el-input>
  29. </el-form-item>
  30. <el-form-item label="身份证号">
  31. <el-input v-model="form.name"></el-input>
  32. </el-form-item>
  33. <el-form-item label="银行卡号">
  34. <el-input v-model="form.name"></el-input>
  35. </el-form-item>
  36. <el-form-item label="开户行">
  37. <el-input v-model="form.name"></el-input>
  38. </el-form-item>
  39. <el-form-item label="开户支行">
  40. <el-input v-model="form.name"></el-input>
  41. </el-form-item>
  42. <el-form-item label="收款人姓名">
  43. <el-input v-model="form.name"></el-input>
  44. </el-form-item>
  45. <el-form-item label="收款人身份证号">
  46. <el-input v-model="form.name"></el-input>
  47. </el-form-item>
  48. <el-form-item label="手机号">
  49. <el-input v-model="form.name"></el-input>
  50. </el-form-item>
  51. <!-- 验证码 -->
  52. <el-form-item prop="veriCode" :label="$t('login.register08')">
  53. <el-input v-model="form.name"></el-input>
  54. <!-- <div style="display: flex; justify-content: space-between">
  55. <el-input
  56. v-model="form.name"
  57. :disabled="disabledFlag"
  58. class="code_style"
  59. :placeholder="$t('login.registerVerif08')"
  60. />
  61. <div>
  62. <ws-button
  63. v-show="verification"
  64. type="primary"
  65. @click="toSend"
  66. >{{ $t('login.sendVerification') }}</ws-button
  67. >
  68. <ws-button v-show="!verification" class="retry" disabled
  69. >{{ $t('login.retry') }}({{ count }})s</ws-button
  70. >
  71. </div>
  72. </div> -->
  73. </el-form-item>
  74. <el-form-item label="联系地址">
  75. <el-input v-model="form.name"></el-input>
  76. </el-form-item>
  77. </el-form>
  78. </div>
  79. </div>
  80. </template>
  81. <script>
  82. // import xx
  83. // '@/model/houseSelfCollect/index'
  84. export default {
  85. components: {},
  86. watch: {},
  87. data() {
  88. return {
  89. dialogImageUrl: '',
  90. dialogVisible: false,
  91. form:{
  92. name:'姓名'
  93. },
  94. disabledFlag: true,
  95. }
  96. },
  97. methods: {
  98. handleRemove(file, fileList) {
  99. console.log(file, fileList);
  100. },
  101. handlePictureCardPreview(file) {
  102. this.dialogImageUrl = file.url;
  103. this.dialogVisible = true;
  104. },
  105. // 发送验证码
  106. toSend() {
  107. if (this.registerForm.linkmanPhone) {
  108. if (validUserCellPhone(this.registerForm.linkmanPhone)) {
  109. this.disabledFlag = false
  110. clearInterval(this.timer)
  111. this.timer = null
  112. const TIME_COUNT = 60
  113. if (!this.timer) {
  114. this.count = TIME_COUNT
  115. this.verification = false
  116. let data = {
  117. mobilePhone: this.registerForm.linkmanPhone,
  118. }
  119. sendRegisterCode(data)
  120. .toPromise()
  121. .then((res) => {
  122. this.timer = setInterval(() => {
  123. if (this.count > 0 && this.count <= TIME_COUNT) {
  124. this.count--
  125. } else {
  126. this.verification = true
  127. clearInterval(this.timer)
  128. this.timer = null
  129. }
  130. }, 1000)
  131. })
  132. .catch((err) => {
  133. this.verification = true
  134. })
  135. }
  136. } else {
  137. EventBus.$emit('error', this.$t('login.registerVerif09'))
  138. }
  139. } else {
  140. EventBus.$emit('error', this.$t('login.registerVerif05'))
  141. }
  142. },
  143. }
  144. }
  145. </script>
  146. <style lang="scss" scoped>
  147. /deep/.el-form-item{
  148. margin-bottom: 0;
  149. }
  150. .content {
  151. padding: 20px;
  152. }
  153. .seach {
  154. display: flex;
  155. align-items: center;
  156. .find {
  157. width: 32px;
  158. }
  159. .search-left {
  160. display: flex;
  161. }
  162. }
  163. .titleup {
  164. position: relative;
  165. }
  166. </style>