tradeServices_audit_approval.vue 11 KB

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