supplierdetail.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. <template>
  2. <view class="boxcon">
  3. <view class="container">
  4. <view class="titleall">
  5. <text class="pl">供应商</text>
  6. <text class="pr">{{form.name}}</text>
  7. </view>
  8. <view class="titleall">
  9. <text class="pl">统一社会信用代码</text>
  10. <text class="pr">{{form.socialCode}}</text>
  11. </view>
  12. <view class="titleall">
  13. <text class="pl">法人姓名</text>
  14. <text class="pr">{{form.socialCode}}</text>
  15. </view>
  16. <view class="titleall">
  17. <text class="pl">联系人</text>
  18. <text class="pr">{{form.contacts}}</text>
  19. </view>
  20. <view class="titleall">
  21. <text class="pl">联系电话</text>
  22. <text class="pr">{{form.contactsMobile}}</text>
  23. </view>
  24. <view class="titleall">
  25. <text class="pl">账号</text>
  26. <text class="pr">{{form.account}}</text>
  27. </view>
  28. <view class="titleall">
  29. <text class="pl">密码</text>
  30. <view style="display: flex;justify-content: center;align-items: center;" @click="show=true">
  31. <text class="pr">重置</text>
  32. <u-icon name="arrow-right" color="" size="15" bold="true"></u-icon>
  33. </view>
  34. </view>
  35. <view class="titleall ">
  36. <text class="pl psa ">认证照片</text>
  37. <text class="pr" v-if="!form.identifyPicList">暂无</text>
  38. <view class="fanuppic" v-if="form.identifyPicList.length>0">
  39. <view class="picbox" v-for="item in form.identifyPicList">
  40. <image :src="item" mode="aspectFill"></image>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="titleall ">
  45. <text class="pl psa ">授权委托书</text>
  46. <text class="pr" v-if="!form.proxyFileList">暂无</text>
  47. <view class="fanuppic" v-if="form.proxyFileList.length>0">
  48. <view class="picbox" v-for="item in form.proxyFileList">
  49. <image src="/static/img/upuer.png" mode="aspectFill"></image>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="titleall">
  54. <text class="pl">认证状态</text>
  55. <text class="pr">{{form.statusText}}</text>
  56. </view>
  57. </view>
  58. <view style="width: 100%;height: 80rpx;"></view>
  59. <view class="newbill flex1" @click="tryAgain">
  60. <view class="newbillbtn">
  61. <text>复原</text>
  62. </view>
  63. </view>
  64. <!-- 弹出层 -->
  65. <u-popup :show="show" @close="close" @open="open" mode="center">
  66. <view class="forgetbox">
  67. <!-- <view class="ciclebg">
  68. <image src="../../static/img/forpwdbg.png" mode="aspectFill"></image>
  69. </view> -->
  70. <!-- <view class="keybox">
  71. <image src="../../static/img/foricon.png" mode="aspectFill"></image>
  72. </view> -->
  73. <text class="keytitle">重置密码</text>
  74. <u--form labelPosition="left" :model="model1" :rules="rules" ref="form1" labelWidth="50">
  75. <u-form-item label="旧密码" prop="pwd.oldPassword" borderBottom ref="item1">
  76. <u--input v-model="pwd.oldPassword" border="none" password></u--input>
  77. </u-form-item>
  78. <u-form-item label="新密码" prop="pwd.newPassword" borderBottom ref="item1">
  79. <u--input v-model="pwd.newPassword" border="none" password></u--input>
  80. </u-form-item>
  81. </u--form>
  82. <!-- <text class="remindtitle">请电联系管理员,进行密码确定</text> -->
  83. <view class="surebtn" @click="makeSurePwd()">确认</view>
  84. </view>
  85. </u-popup>
  86. </view>
  87. </template>
  88. <script>
  89. export default {
  90. data() {
  91. return {
  92. form: {
  93. },
  94. pwd: {
  95. oldPassword: '',
  96. newPassword: ''
  97. },
  98. show: false,
  99. rules: {
  100. 'pwd.oldPassword': {
  101. type: 'string',
  102. required: true,
  103. message: '请填写旧密码',
  104. trigger: ['blur', 'change']
  105. },
  106. 'pwd.newPassword': {
  107. type: 'string',
  108. required: true,
  109. message: '请填写新密码',
  110. trigger: ['blur', 'change']
  111. },
  112. },
  113. }
  114. },
  115. onLoad(o) {
  116. if (o.id) {
  117. this.id = o.id
  118. }
  119. this.init()
  120. },
  121. methods: {
  122. close() {
  123. this.show = false
  124. },
  125. open() {
  126. this.show = true
  127. },
  128. tryAgain() {
  129. },
  130. init() {
  131. uni.showLoading()
  132. uni.$u.http.get(`/api/Supplier/${this.id}`, {
  133. custom: {
  134. auth: true
  135. }
  136. }).then((res) => {
  137. uni.hideLoading()
  138. this.form = res
  139. }).catch((err) => {
  140. uni.hideLoading()
  141. console.log(err)
  142. })
  143. },
  144. makeSurePwd(){
  145. uni.showLoading()
  146. uni.$u.http.post('/api/Supplier/password', {
  147. custom: {
  148. auth: true
  149. }
  150. }).then((res) => {
  151. uni.hideLoading()
  152. this.$toast("申请成功")
  153. this.show = false
  154. }).catch((err) => {
  155. console.log(err)
  156. uni.hideLoading()
  157. this.$toast(err.msg)
  158. this.show = false
  159. })
  160. }
  161. }
  162. }
  163. </script>
  164. <style lang="scss">
  165. page {
  166. background-color: #F6F6F6 !important;
  167. }
  168. .boxcon {
  169. margin: 20rpx 20rpx;
  170. padding: 50rpx 20rpx;
  171. border-radius: 20rpx;
  172. background: #fff;
  173. .titlename {
  174. font-size: 36rpx;
  175. font-weight: 600;
  176. padding-bottom: 30rpx;
  177. display: block;
  178. margin-bottom: 30rpx;
  179. border-bottom: 1rpx solid #E8E8E8;
  180. }
  181. .container {
  182. .bod {
  183. border-bottom: 1rpx solid #E8E8E8;
  184. box-sizing: border-box;
  185. }
  186. .ptin {
  187. padding-top: 50rpx;
  188. }
  189. .plas {
  190. padding-left: 65rpx;
  191. word-wrap: wrap;
  192. box-sizing: border-box;
  193. }
  194. .ds {
  195. padding-top: 30rpx;
  196. }
  197. .psa {
  198. padding-right: 30rpx;
  199. }
  200. .cls {
  201. color: #68625B;
  202. }
  203. .titleall {
  204. display: flex;
  205. justify-content: space-between;
  206. font-size: 28rpx;
  207. padding-bottom: 30rpx;
  208. .pl {
  209. // width: 180rpx;
  210. color: #BEBDBB;
  211. flex-shrink: 0;
  212. // margin-right: 30rpx;
  213. }
  214. .pr {
  215. word-wrap: wrap;
  216. display: block;
  217. display: -webkit-box;
  218. }
  219. .uppic {
  220. display: flex;
  221. flex-wrap: wrap;
  222. justify-content: flex-end;
  223. }
  224. .picbox {
  225. width: 150rpx;
  226. height: 150rpx;
  227. margin-left: 20rpx;
  228. border-radius: 20rpx;
  229. image {
  230. width: 100%;
  231. height: 100%;
  232. }
  233. }
  234. .fanuppic {
  235. display: flex;
  236. flex-wrap: wrap;
  237. }
  238. }
  239. }
  240. }
  241. .forgetbox {
  242. width: 600rpx;
  243. height: 600rpx;
  244. background-color: #fff;
  245. display: flex;
  246. flex-direction: column;
  247. align-items: center;
  248. position: relative;
  249. background-image: url("@/static/img/forpwdbg.png");
  250. background-repeat: no-repeat;
  251. background-position: right 0 top 0;
  252. background-size: 367rpx 225rpx;
  253. .ciclebg {
  254. position: relative;
  255. right: 0;
  256. top: 0;
  257. width: 367rpx;
  258. height: 225rpx;
  259. }
  260. .keybox {
  261. margin-top: 84rpx;
  262. width: 196rpx;
  263. height: 161rpx;
  264. image {
  265. width: 100%;
  266. height: 100%;
  267. }
  268. }
  269. .keytitle {
  270. color: #1F242A;
  271. padding-top: 70rpx;
  272. padding-bottom: 70rpx;
  273. font-size: 36rpx;
  274. font-weight: 600;
  275. }
  276. .remindtitle {
  277. color: #68625B;
  278. font-size: 28rpx;
  279. padding-top: 30rpx;
  280. }
  281. .surebtn {
  282. width: 314rpx;
  283. height: 84rpx;
  284. line-height: 84rpx;
  285. border-radius: 43rpx;
  286. background: linear-gradient(to right, #FFE1AD, #D8AB5A);
  287. color: #412900;
  288. margin-top: 86rpx;
  289. text-align: center;
  290. }
  291. }
  292. </style>