tradeServices_audit_approval.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. <template>
  2. <view class="container">
  3. <u-form ref="uForm">
  4. <view class="form_item">
  5. <view class="title">申请信息</view>
  6. <u-form-item label-width='260' label="业务编号" :borderBottom="false">
  7. <u-input v-model="tradeList.billNo" input-align="right" placeholder="暂无" disabled />
  8. </u-form-item>
  9. <u-form-item label-width='260' label="名头" :borderBottom="false">
  10. <u-input v-model="tradeList.renown" input-align="right" placeholder="暂无" disabled />
  11. </u-form-item>
  12. <u-form-item label-width='260' label="仓库名称" :borderBottom="false">
  13. <u-input v-model="tradeList.warehouseName" input-align="right" placeholder="暂无" disabled />
  14. </u-form-item>
  15. <u-form-item label-width='260' label="仓位号" :borderBottom="false">
  16. <u-input v-model="tradeList.warehouseNo" input-align="right" placeholder="暂无" disabled />
  17. </u-form-item>
  18. <u-form-item label-width='260' label="仓库地址" :borderBottom="false">
  19. <u-input v-model="tradeList.warehouseAddress" input-align="right" placeholder="暂无" disabled />
  20. </u-form-item>
  21. <u-form-item label-width='260' label="货名" :borderBottom="false">
  22. <u-input v-model="tradeList.goodsName" input-align="right" placeholder="暂无" disabled />
  23. </u-form-item>
  24. <u-form-item label-width='260' label="品级" :borderBottom="false">
  25. <u-input v-model="tradeList.grade" input-align="right" placeholder="暂无" disabled />
  26. </u-form-item>
  27. <u-form-item label-width='260' label="现有储量(吨)" :borderBottom="false">
  28. <u-input v-model="tradeList.nowWeight" input-align="right" placeholder="暂无" disabled />
  29. </u-form-item>
  30. <u-form-item label-width='260' label="可用储量(吨)" :borderBottom="false">
  31. <u-input v-model="tradeList.useWeight" input-align="right" placeholder="暂无" disabled />
  32. </u-form-item>
  33. <u-form-item label-width='260' label="本单重量(吨)" :borderBottom="false">
  34. <u-input v-model="tradeList.weight" input-align="right" placeholder="暂无" disabled />
  35. </u-form-item>
  36. <u-form-item label-width='260' label="单价(元/吨)" :borderBottom="false">
  37. <u-input v-model="tradeList.unitPrice" input-align="right" placeholder="暂无" disabled />
  38. </u-form-item>
  39. <u-form-item label-width='260' label="总价值(元)" :borderBottom="false">
  40. <u-input v-model="tradeList.totalValue" input-align="right" placeholder="暂无" disabled />
  41. </u-form-item>
  42. <u-form-item label-width='260' label="申请比例(%)" :borderBottom="false">
  43. <u-input v-model="tradeList.applicationProportion" input-align="right" placeholder="暂无" disabled />
  44. </u-form-item>
  45. <u-form-item label-width='260' label="申请金额(元)" :borderBottom="false">
  46. <u-input v-model="tradeList.interest" input-align="right" placeholder="暂无" disabled />
  47. </u-form-item>
  48. </view>
  49. <view class="form_item">
  50. <view class="title">附件</view>
  51. <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="0"
  52. :file-list="imgUrl" :size-type="['compressed']" @on-success="getImgUrl" :deletable="false"
  53. :showProgress="false" @on-uploaded="isAdd = true" :before-upload="filterFileType"
  54. @on-progress="onProgress"></upload>
  55. </view>
  56. <view class="form_item">
  57. <view class="title">外审部门</view>
  58. <u-form-item label-width='260' label="银行" :borderBottom="false">
  59. <u-input v-model="tradeList.bank" input-align="right" placeholder="暂无" disabled />
  60. </u-form-item>
  61. <u-form-item label-width='260' label="第三方" :borderBottom="false">
  62. <u-input v-model="tradeList.three" input-align="right" placeholder="暂无" disabled />
  63. </u-form-item>
  64. </view>
  65. <view class="form_item" v-if="tradeList.status == '待还款'">
  66. <view class="title">发放信息</view>
  67. <u-form-item label-width='260' label="合同编号">
  68. <u-input v-model="tradeList.contractNo" input-align="right" disabled placeholder="请输入合同编号" />
  69. </u-form-item>
  70. <u-form-item label-width='260' label="发放金额(元)">
  71. <u-input v-model="tradeList.paymentAmount" input-align="right" type="digit" disabled placeholder="请输入发放金额" />
  72. </u-form-item>
  73. <view v-for="(item,index) in count">
  74. <view class="row">
  75. <view class="left ">
  76. <u-input v-model="item.modifyExpense" placeholder="输入费用名称,1-8个字" disabled/>
  77. </view>
  78. <view class="right">
  79. <u-input v-model="item.expenses" input-align="right" placeholder="暂无" type="digit" disabled/>
  80. </u-input><span class="yuan">元</span>
  81. </view>
  82. </view>
  83. </view>
  84. <view class="flex count">
  85. <view class=" flex count_item"><span>合计应还:</span><span class="number">¥{{tradeList.amountDue}}</span>
  86. </view>
  87. </view>
  88. </view>
  89. </u-form>
  90. <view class="form_item flex">
  91. <view class="auditInfo flex" @click="auditInfo">
  92. <view class="title1">审核记录</view>
  93. <view class="img">
  94. <image src="../../../static/img/myimg/gengduo1@3x.png"
  95. style="width: 16rpx; height: 30rpx;top: 20rpx;margin-right: 0rpx;"></image>
  96. </view>
  97. </view>
  98. </view>
  99. <view style='padding:10px;' class='flex bottom-btn'>
  100. <u-button @click='reject' type="error" class="btn1" hover-class='none'>返回</u-button>
  101. </view>
  102. </view>
  103. </template>
  104. <script>
  105. import upload from '@/components/upload.vue';
  106. export default {
  107. components: {
  108. upload
  109. },
  110. data() {
  111. return {
  112. id: "",
  113. action: this.$uploadUrl,
  114. maxSize: 50 * 1024 * 1024, //限制文件大小 50M
  115. btnLoading: false, //防止重复点击
  116. imgUrl: [],
  117. tradeList: {},
  118. isShowAlert: false,
  119. count: [],
  120. }
  121. },
  122. onLoad(options) {
  123. this.id = options.id
  124. this.getList()
  125. },
  126. methods: {
  127. getList() {
  128. var that = this
  129. that.$api.doRequest('get', '/tradeWarehouseReceiptAppl/getTrageInfo', {
  130. id: that.id
  131. }).then(res => {
  132. that.tradeList = res.data.data
  133. if(that.tradeList.modifyExpense1){
  134. that.count.push({
  135. modifyExpense:that.tradeList.modifyExpense1,
  136. expenses:that.tradeList.applicationAmount
  137. })
  138. }
  139. if(that.tradeList.modifyExpense2){
  140. that.count.push({
  141. modifyExpense:that.tradeList.modifyExpense2,
  142. expenses:that.tradeList.supervisionFee
  143. })
  144. }
  145. if(that.tradeList.modifyExpense3){
  146. that.count.push({
  147. modifyExpense:that.tradeList.modifyExpense3,
  148. expenses:that.tradeList.insurancePremium
  149. })
  150. }
  151. if(that.tradeList.modifyExpense4){
  152. that.count.push({
  153. modifyExpense:that.tradeList.modifyExpense4,
  154. expenses:that.tradeList.otherFee
  155. })
  156. }
  157. //通过图片id找到地址
  158. that.$api.doRequest('get', '/appendix/query/getFileList', {
  159. appendixIds: that.tradeList.appendix
  160. }).then(res => {
  161. for (let i = 0; i < res.data.data.length; i++) {
  162. that.imgUrl.push({
  163. url: res.data.data[i].appendixPath
  164. })
  165. }
  166. }).catch(res => {
  167. if (res.errmsg) {
  168. uni.showToast({
  169. title: res.errmsg,
  170. icon: 'none',
  171. duration: 2000
  172. })
  173. }
  174. });
  175. })
  176. },
  177. reject(){
  178. uni.navigateBack()
  179. },
  180. auditInfo() {
  181. uni.navigateTo({
  182. url: '/pages/task/audit_info?id=' + this.tradeList.id + "&workflowId=" + this.tradeList
  183. .workflowId
  184. })
  185. },
  186. filterFileType(index, lists) {
  187. if (lists[index].fileType != 'jpg' && lists[index].fileType != 'png' && lists[index].fileType != 'gif' &&
  188. lists[index].fileType != 'jpeg') {
  189. lists.splice(index, 1);
  190. // 当前文件不支持
  191. uni.showModal({
  192. title: '暂不支持当前图片类型',
  193. showCancel: false
  194. });
  195. } else {
  196. this.isAdd = false;
  197. }
  198. },
  199. }
  200. }
  201. </script>
  202. <style scoped lang="scss">
  203. .container {
  204. padding: 6rpx 12rpx 140rpx 12rpx;
  205. }
  206. .title {
  207. font-size: 34rpx;
  208. font-weight: 600;
  209. margin-top: 20rpx;
  210. line-height: 90rpx;
  211. border-bottom: 2rpx solid #EEEEEE;
  212. }
  213. .form_item {
  214. background: #fff;
  215. margin: 10px;
  216. border-radius: 10px;
  217. padding: 10rpx 30rpx;
  218. // width: 100%;
  219. }
  220. .u-form-item {
  221. padding: 12rpx 0 !important;
  222. }
  223. .auditInfo {
  224. width: 100%;
  225. .title1 {
  226. width: 99%;
  227. font-size: 34rpx;
  228. font-weight: 600;
  229. // margin-top: 20rpx;
  230. line-height: 70rpx;
  231. }
  232. }
  233. .bottom-btn {
  234. width: 100%;
  235. position: fixed;
  236. bottom: 0;
  237. display: flex;
  238. z-index: 2;
  239. left: 0;
  240. background-color: #f8f8f8;
  241. flex-direction: column;
  242. .btn1,
  243. .btn2 {
  244. width: 100%;
  245. margin-bottom: 26rpx;
  246. border-radius: 90rpx;
  247. }
  248. .btn1 {
  249. background: white;
  250. color: #00C265;
  251. }
  252. }
  253. .shade {
  254. position: fixed;
  255. top: 0;
  256. left: 0;
  257. height: 100%;
  258. width: 100%;
  259. background: rgba(0, 0, 0, 0.4);
  260. z-index: 3;
  261. .wrap {
  262. position: absolute;
  263. left: 0;
  264. top: 0;
  265. right: 0;
  266. bottom: 0;
  267. margin: auto;
  268. background: #fff;
  269. width: calc(100% - 198rpx);
  270. height: 700rpx;
  271. border-radius: 20rpx;
  272. .alert-top {
  273. padding: 33rpx;
  274. display: flex;
  275. justify-content: center;
  276. align-items: center;
  277. position: relative;
  278. }
  279. .titleAudit {
  280. font-size: 32rpx;
  281. font-weight: 600;
  282. color: #333333;
  283. }
  284. .close {
  285. position: absolute;
  286. right: 33rpx;
  287. }
  288. }
  289. }
  290. .cancel,
  291. .confirm {
  292. position: absolute;
  293. display: inline-block;
  294. width: 50%;
  295. text-align: center;
  296. bottom: 0;
  297. padding: 10px;
  298. border-top: 1px solid #eee;
  299. font-size: 34rpx;
  300. }
  301. .cancel {
  302. left: 0;
  303. border-right: 1px solid #eee;
  304. color: #AFB3BF;
  305. }
  306. .confirm {
  307. right: 0;
  308. color: #22C572;
  309. }
  310. .u-textarea-style {
  311. margin: 20rpx;
  312. background: #F9F9FA;
  313. border-radius: 10px;
  314. border: 1px solid #EEEEEE;
  315. padding: 10rpx 20rpx;
  316. position: relative;
  317. .right-bottom {
  318. position: absolute;
  319. right: 20rpx;
  320. bottom: 20rpx;
  321. color: #AFB3BF;
  322. }
  323. }
  324. .row {
  325. display: flex;
  326. justify-content: space-between;
  327. border-bottom: 1px solid #eee;
  328. .right {
  329. display: flex;
  330. // .uni-input-input{
  331. // width: 30%;
  332. // font-size: 28rpx;
  333. // }
  334. .del {
  335. width: 46rpx;
  336. height: 46rpx;
  337. border-radius: 25rpx;
  338. background-color: #F1F4FB;
  339. text-align: center;
  340. line-height: 46rpx;
  341. font-weight: 600;
  342. margin-top: 8rpx;
  343. }
  344. .yuan {
  345. line-height: 70rpx;
  346. // margin: 0 16rpx;
  347. margin-left: 16rpx;
  348. }
  349. }
  350. }
  351. .count {
  352. width: 100%;
  353. margin: 20rpx 0;
  354. justify-content: flex-end;
  355. .count_item {
  356. // width: 70%;
  357. font-size: 30rpx;
  358. line-height: 70rpx;
  359. .number {
  360. font-size: 32rpx;
  361. font-weight: 600;
  362. margin-left: 20rpx;
  363. }
  364. }
  365. }
  366. /deep/.u-list-item {
  367. margin: 20rpx 4rpx !important;
  368. }
  369. </style>