acptsipplierdetail.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. <template>
  2. <view class="content">
  3. <view class="acountbox">
  4. <view class="inacount">
  5. <text class="acoutitle">供应商名称</text>
  6. <input type="text" v-model="form.supplierName" class="checkword" placeholder="请输入供应商名称"
  7. placeholder-style="font-size:30rpx;color:#68625B" />
  8. </view>
  9. <view class="inacount">
  10. <text class="acoutitle">承兑人名称</text>
  11. <input type="text" v-model="form.acceptorName" class="checkword" placeholder="请输入承兑人名称"
  12. placeholder-style="font-size:30rpx;color:#68625B" />
  13. </view>
  14. <view class="inacount">
  15. <text class="acoutitle">账号</text>
  16. <input type="text" v-model="form.bankAccount" class="checkword" placeholder="请输入账号"
  17. placeholder-style="font-size:30rpx;color:#68625B" />
  18. </view>
  19. <view class="inacount">
  20. <text class="acoutitle">服务费率 </text>
  21. <input type="text" v-model="form.serviceRate" class="checkword" placeholder="请输入服务费率"
  22. placeholder-style="font-size:30rpx;color:#68625B" />
  23. </view>
  24. <view class="inacount">
  25. <text class="acoutitle">利率</text>
  26. <input type="text" v-model="form.interest" class="checkword" placeholder="请输入利率"
  27. placeholder-style="font-size:30rpx;color:#68625B" />
  28. </view>
  29. <view class="inacount">
  30. <text class="acoutitle">开户行名称</text>
  31. <input type="text" v-model="form.bankName" class="checkword" placeholder="请输入开户行名称"
  32. placeholder-style="font-size:30rpx;color:#68625B" />
  33. </view>
  34. <view class="inacount">
  35. <text class="acoutitle">审核状态</text>
  36. <input type="text" v-model="form.statusText" class="checkword" placeholder="请输入审核状态"
  37. placeholder-style="font-size:30rpx;color:#68625B" />
  38. </view>
  39. </view>
  40. <view class="choosebtn">
  41. <view class="delbtn flex1" @click="examineBillFail()">审核失败</view>
  42. <view class="restorebtn flex1" @click="examineBillSuccess()">审核成功</view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. let that
  48. export default {
  49. data() {
  50. return {
  51. id:'',
  52. form: {
  53. supplierName:'',//供应商名称
  54. acceptorName: '',//承兑人名称
  55. bankAccount:'',
  56. serviceRate:'',
  57. interest:'',
  58. bankName:'',
  59. statusText:''
  60. },
  61. }
  62. },
  63. onLoad(o) {
  64. that=this
  65. if(o.id){
  66. this.id=o.id
  67. }
  68. this.init()
  69. },
  70. methods: {
  71. init(){
  72. uni.showLoading()
  73. uni.$u.http.get(`/api/SupplierAcceptor/${this.id}`,{
  74. custom: {
  75. auth: true
  76. }
  77. }).then((res) => {
  78. uni.hideLoading()
  79. this.form=res
  80. }).catch((err) => {
  81. uni.hideLoading()
  82. console.log(err)
  83. })
  84. },
  85. examineBillFail() {
  86. let ids = [this.id]
  87. let that = this
  88. uni.showModal({
  89. title: '提示',
  90. content: '是否审核失败?',
  91. success: function(res) {
  92. if (res.confirm) {
  93. uni.showLoading()
  94. uni.$u.http.post('/api/SupplierAcceptor/update', {
  95. ids,
  96. status: 2
  97. }, {
  98. custom: {
  99. auth: true
  100. }
  101. }).then((res) => {
  102. uni.hideLoading()
  103. that.$toast("操作成功")
  104. that.init()
  105. }).catch((err) => {
  106. uni.hideLoading()
  107. that.$toast(err.msg)
  108. })
  109. } else if (res.cancel) {
  110. console.log('用户点击取消');
  111. }
  112. }
  113. });
  114. },
  115. examineBillSuccess(){
  116. let ids = [this.id]
  117. let that = this
  118. uni.showModal({
  119. title: '提示',
  120. content: '是否审核成功?',
  121. success: function(res) {
  122. if (res.confirm) {
  123. uni.showLoading()
  124. uni.$u.http.post('/api/SupplierAcceptor/update', {
  125. ids,
  126. status: 1
  127. }, {
  128. custom: {
  129. auth: true
  130. }
  131. }).then((res) => {
  132. uni.hideLoading()
  133. that.$toast("操作成功")
  134. that.init()
  135. }).catch((err) => {
  136. uni.hideLoading()
  137. that.$toast(err.msg)
  138. })
  139. } else if (res.cancel) {
  140. console.log('用户点击取消');
  141. }
  142. }
  143. });
  144. }
  145. }
  146. }
  147. </script>
  148. <style lang="scss" scoped>
  149. /* uni.scss */
  150. @import 'uview-ui/theme.scss';
  151. .content {
  152. display: flex;
  153. flex-direction: column;
  154. align-items: center;
  155. justify-content: center;
  156. }
  157. .loginbg {
  158. background-image: url("https://t39.9026.com/web/uploads/thumbs/mall10000/20220629/e01b927c95ee1f05364f5e456f281388.png");
  159. height: 559rpx;
  160. width: 750rpx;
  161. background-size: 100% 100%;
  162. // display: flex;
  163. // align-items: center;
  164. // justify-content: center;
  165. }
  166. .logo {
  167. margin: 0 auto;
  168. height: 200rpx;
  169. width: 200rpx;
  170. margin-left: auto;
  171. margin-right: auto;
  172. margin-bottom: 50rpx;
  173. }
  174. .text-area {
  175. display: flex;
  176. justify-content: center;
  177. }
  178. .title {
  179. font-size: 36rpx;
  180. color: #8f8f94;
  181. }
  182. .logobox {
  183. margin: 0 auto;
  184. margin-top: 212rpx;
  185. width: 269rpx;
  186. height: 191rpx;
  187. // background-color: #F1F1F1;
  188. image {
  189. width: 100%;
  190. height: 100%;
  191. }
  192. }
  193. .checkbox {}
  194. .business {
  195. width: 305rpx;
  196. height: 90rpx;
  197. display: flex;
  198. align-items: center;
  199. justify-content: center;
  200. text-align: center;
  201. // background-color: #D8AB5A;
  202. border-raotherdius: 20rpx;
  203. color: #FFFFFF;
  204. margin-top: 57rpx;
  205. }
  206. .bnesper {
  207. background-size: 100%;
  208. background-image: url("@/static/img/loginbtn4.png");
  209. padding-top: 10rpx;
  210. color: #FFF1D8;
  211. line-height: 90rpx;
  212. }
  213. .applyper {
  214. background-image: url("@/static/img/loginbt1.png");
  215. background-size: 100%;
  216. padding-top: 10rpx;
  217. color: #FFF1D8;
  218. }
  219. .actapp {
  220. background-image: url("@/static/img/loginbtn3.png");
  221. background-size: 100%;
  222. color: #D05C39;
  223. }
  224. .actbnes {
  225. background-image: url("@/static/img/loginbt2.png");
  226. background-size: 100%;
  227. color: #D05C39;
  228. }
  229. .acountbox {
  230. .inacount {
  231. display: flex;
  232. padding: 35rpx 20rpx;
  233. box-sizing: border-box;
  234. width: 690rpx;
  235. margin-top: 40rpx;
  236. background-color: #F6F6F6;
  237. border-radius: 20rpx;
  238. font-size: 30rpx;
  239. color: #1F242A;
  240. input {
  241. width: 360rpx;
  242. }
  243. }
  244. .acoutitle {
  245. font-weight: 600;
  246. }
  247. .checkword {
  248. padding-left: 20rpx;
  249. color: #1F242A;
  250. font-size: 30rpx;
  251. }
  252. }
  253. .otherbt {
  254. width: 606rpx;
  255. display: flex;
  256. justify-content: space-between;
  257. font-size: 24rpx;
  258. padding-top: 30rpx;
  259. }
  260. .regbt {
  261. color: $uni-all-theme;
  262. }
  263. .logininbtn {
  264. margin-top: 80rpx;
  265. width:690rpx;
  266. border-radius: 20rpx;
  267. box-shadow: 0 10rpx 20rpx 1rpx rgba(179, 116, 5, 0.2);
  268. background: linear-gradient(to right, #FFE1AD,#D8AB5A);
  269. height: 100rpx;
  270. text-align: center;
  271. color: #fff;
  272. line-height: 100rpx;
  273. }
  274. .choosebtn{
  275. margin-top: 20px;
  276. .restorebtn{
  277. width: 335rpx;
  278. height: 88rpx;
  279. line-height: 88rpx;
  280. border-radius: 45rpx;
  281. color: #fff;
  282. box-shadow: 0 10rpx 20rpx 1rpx rgba(179, 116, 5, 0.2);
  283. background: linear-gradient(to right, #FFE1AD, #D8AB5A);
  284. margin-left: 20rpx;
  285. }
  286. }
  287. </style>