移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

317 line
12 KiB

  1. <template>
  2. <div class="app-container">
  3. <van-nav-bar
  4. left-arrow
  5. fixed
  6. placeholder
  7. @click-left="$router.back(-1)"
  8. >
  9. <template #title>
  10. <p style="font-weight: bold;">查看代管转账申请</p>
  11. </template>
  12. <template #right>
  13. <van-icon name="../../../static/images/icon/icon_flow.png" size="20" @click="goFlow"/>
  14. </template>
  15. </van-nav-bar>
  16. <p class="main_title">基础信息</p>
  17. <div class="main_box">
  18. <van-field readonly label="申请时间" v-model="form.applyDate" input-align="right" />
  19. <van-field readonly label="资金支出类别" v-model="capitalExpenditureType" input-align="right" label-width="auto" />
  20. <van-field readonly label="支出总金额" v-model="form.expenditureAmount" input-align="right" label-width="auto"/>
  21. <van-field name="radio" label="审批模式" input-align="right" autocomplete="off" readonly>
  22. <template #input>
  23. <van-radio-group v-model="form.approvalMode" direction="horizontal">
  24. <van-radio name="1">线上审批</van-radio>
  25. <van-radio name="2">线下审批</van-radio>
  26. </van-radio-group>
  27. </template>
  28. </van-field>
  29. </div>
  30. <div class="main_box" style="margin-top: 10px;">
  31. <van-field readonly label="转账附言" v-model="form.remark" type="textarea" input-align="right" rows="3" label-width="auto"/>
  32. </div>
  33. <div class="main_box" style="margin-top: 10px;">
  34. <van-field readonly label="说明情况" v-model="form.explainSituation" type="textarea" input-align="right" rows="3" label-width="auto"/>
  35. </div>
  36. <p class="main_title">付款方信息</p>
  37. <div class="main_box">
  38. <van-field readonly label="付款方" v-model="form.payer" input-align="right" label-width="auto"/>
  39. <van-field readonly label="付款方账户" v-model="form.payerAccount" input-align="right" label-width="auto"/>
  40. </div>
  41. <div class="main_box" v-if="capitalExpenditureOpen" style="margin-bottom: 10px;margin-top: 10px;position:relative;">
  42. <van-field readonly label="项目名称" v-model="projectForm.projectName" input-align="right" />
  43. <van-field readonly label="承建单位" v-model="projectForm.projectContractor" input-align="right" label-width="auto"/>
  44. <van-field readonly label="合同价款(元)" v-model="projectForm.projectAmount" input-align="right" label-width="auto"/>
  45. <van-field readonly label="工程款类型" v-model="projectFundType" input-align="right" />
  46. <van-field readonly label="工程发票号" v-model="projectForm.projectBillNum" input-align="right" label-width="auto"/>
  47. </div>
  48. <div class="main_box" v-if="contractOpen" style="margin-bottom: 10px;margin-top: 10px;position:relative;">
  49. <van-field readonly label="合同名称" v-model="infoForm.name" input-align="right" />
  50. <van-field readonly label="合同编码" v-model="infoForm.code" input-align="right" label-width="auto"/>
  51. <van-field readonly label="合同价款(元)" v-model="infoForm.totalAmount" input-align="right" label-width="auto"/>
  52. </div>
  53. <p class="main_title">列表信息</p>
  54. <div class="main_box" style="margin-bottom: 15px;">
  55. <van-field readonly label="收款账户类型" v-if="form.bankType==1" v-model="form.accountType == 1 ? '公户':'私户'" input-align="right" label-width="auto" />
  56. <van-field readonly label="是否与付款方同行" v-if="form.bankType==2||form.bankType==4" v-model="form.isPeers == 'Y' ? '是':'否'" input-align="right" label-width="auto" />
  57. </div>
  58. <div :style="{position:'relative',padding: index == 0 ? '':'10px 0 0 0'}" v-for="(item, index) in chargeItme" :key="index">
  59. <div class="main_box" style="margin-bottom: 10px;position:relative;">
  60. <van-field readonly label="收款方" v-model="item.payee" input-align="right" />
  61. <van-field readonly label="收款账户" v-model="item.payeeAccount" input-align="right" label-width="auto"/>
  62. <van-field readonly label="开户银行" v-model="item.bankDeposit" input-align="right" label-width="auto"/>
  63. <van-field readonly label="收入金额" v-model="item.incomeAmount" input-align="right" label-width="auto"/>
  64. <van-field readonly label="所属银行" v-model="item.bankTypeText" input-align="right" />
  65. </div>
  66. </div>
  67. <p class="main_title">上传附件</p>
  68. <div class="main_box" style="padding: 5px 0 0 0;">
  69. <van-cell value="收据" />
  70. <van-uploader v-model="fileList1" v-if="fileList1==null||fileList1.length==0" :deletable="false" disabled :upload-text="'未上传附件'" style="margin-left:8px;"></van-uploader>
  71. <van-uploader v-model="fileList1" v-if="fileList1!=null&&fileList1.length>0" :deletable="false" :max-count="fileList1.length" style="margin-left:8px;"></van-uploader>
  72. <van-cell value="发票" />
  73. <van-uploader v-model="fileList2" v-if="fileList2==null||fileList2.length==0" :deletable="false" disabled :upload-text="'未上传附件'" style="margin-left:8px;"></van-uploader>
  74. <van-uploader v-model="fileList2" v-if="fileList2!=null&&fileList2.length>0" :deletable="false" :max-count="fileList2.length" style="margin-left:8px;"></van-uploader>
  75. <van-cell value="其他" />
  76. <van-uploader v-model="fileList3" v-if="fileList3==null||fileList3.length==0" :deletable="false" disabled :upload-text="'未上传附件'" style="margin-left:8px;"></van-uploader>
  77. <van-uploader v-model="fileList3" v-if="fileList3!=null&&fileList3.length>0" :deletable="false" :max-count="fileList3.length" style="margin-left:8px;" ></van-uploader>
  78. </div>
  79. </div>
  80. </template>
  81. <script>
  82. import { getTransfer , queryTransferDetail , listPayee , updateTransfer , getProjectto , listProject , addProjectto , customSubmit,getInfoto } from "@/api/onlineHome/bankAgriculture/paymentApproval";
  83. import request from '@/utils/request'
  84. import {
  85. attachmentList,
  86. commonAttach,
  87. systemAttachment
  88. } from "../../../../api/onlineHome/bankAgriculture/paymentApproval";
  89. export default {
  90. name: "approvalDetail",
  91. data() {
  92. return {
  93. showcapital:false,
  94. showpayee:false,
  95. showlasj:false,
  96. showbankType:false,
  97. showproject:false,
  98. showFundType:false,
  99. minDate: new Date(),
  100. maxDate: new Date(2025, 10, 1),
  101. currentDate: new Date(),
  102. form:{},
  103. fileList1:[],
  104. fileList2:[],
  105. fileList3:[],
  106. capitalExpenditureType:'',
  107. payee:'',
  108. bankType:'',
  109. wfydlxDictionaries:[],
  110. jglxDictionaries:[],
  111. sysDictionaries:[],
  112. capitalExpenditureTypeOptions:[],
  113. bankTypeDictionaries:[],
  114. projectList:[],
  115. projectFundTypeOptions:[],
  116. projectFundTypeDictionaries:[],
  117. projectListShow:[],
  118. chargeItme:[],
  119. chargeItmeShow:[],
  120. payeeList:[],
  121. // 查询参数
  122. queryParams: {
  123. transferType:"",
  124. orderByColumn: "id",
  125. isAsc: "desc",
  126. },
  127. capitalExpenditureOpen:false,
  128. contractOpen:false,
  129. projectForm:{
  130. projectId:null,
  131. projectName:null,
  132. projectContractor:null,
  133. projectAmount:null,
  134. projectBillNum:null,
  135. projectFundType:'1',
  136. outId:null,
  137. ynType:'1'
  138. },
  139. infoForm:{
  140. infoId:null,
  141. name:null,
  142. code:null,
  143. totalAmount:null,
  144. contractionId:null,
  145. transferId:null
  146. },
  147. projectFundType:''
  148. };
  149. },
  150. created() {
  151. this.getDicts("project_fund_type").then((response) => {
  152. for (var i = 0; i < response.data.length; i++) {
  153. this.projectFundTypeOptions.push({text: response.data[i].dictLabel, value: response.data[i].dictValue});
  154. }
  155. this.projectFundTypeDictionaries = response.data;
  156. });
  157. this.getDictionaries();
  158. this.getFileList();
  159. },
  160. methods: {
  161. goFlow(){
  162. window.location='approvalProcess?id='+this.$route.query.id;
  163. },
  164. getDictionaries(){
  165. getTransfer(this.$route.query.id).then((response) => {
  166. this.getDicts("capital_expenditure_type").then((res) => {
  167. for (var i = 0; i < res.data.length; i++) {
  168. this.capitalExpenditureTypeOptions.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  169. }
  170. this.capitalExpenditureType = this.selectDictLabel(res.data, response.data.capitalExpenditureType);
  171. });
  172. if(response.data.capitalExpenditureType==2){
  173. this.capitalExpenditureOpen = true
  174. let param={
  175. 'outId' : response.data.id,
  176. 'ynType' : '1'
  177. }
  178. getProjectto(param).then(res => {
  179. this.projectFundType = this.selectDictLabel(this.projectFundTypeDictionaries, res.data.projectFundType);
  180. this.projectForm = res.data
  181. })
  182. }else if(response.data.capitalExpenditureType==4) {
  183. this.contractOpen = true
  184. let param = {
  185. 'transferId': response.data.id
  186. }
  187. getInfoto(param).then(res => {
  188. this.infoForm = res.data
  189. })
  190. }else{
  191. this.showproject = false
  192. }
  193. this.form = response.data;
  194. });
  195. queryTransferDetail(this.$route.query.id).then((response) => {
  196. this.getDicts("bank_type").then(res => {
  197. for (var i = 0; i < res.data.length; i++) {
  198. this.bankTypeDictionaries.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  199. }
  200. for (var j = 0 ; j < response.rows.length ; j++){
  201. response.rows[j].bankTypeText = this.selectDictLabel(res.data, response.rows[j].bankType);
  202. }
  203. this.chargeItme = response.rows;
  204. });
  205. this.getPayeeList();
  206. });
  207. },
  208. getPayeeList() {
  209. //普通转账
  210. this.queryParams.accountType = this.form.accountType
  211. this.queryParams.status = "0"
  212. listPayee(this.queryParams).then((response) => {
  213. for (var i = 0; i < response.rows.length; i++) {
  214. this.payeeList.push({text: response.rows[i].payee, value: response.rows[i].id});
  215. }
  216. });
  217. },
  218. getFileList(){
  219. let oData1= {
  220. tableId: this.$route.query.id,
  221. tableName: "t_yinnong_transfer",
  222. bizPath: "transfer",
  223. fileType: "1",
  224. }
  225. attachmentList(oData1).then(res => {
  226. res.rows.map(r => {
  227. let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
  228. this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id})
  229. })
  230. })
  231. let oData2= {
  232. tableId: this.$route.query.id,
  233. tableName: "t_yinnong_transfer",
  234. bizPath: "transfer",
  235. fileType: "2",
  236. }
  237. attachmentList(oData2).then(res => {
  238. res.rows.map(r => {
  239. let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
  240. this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id})
  241. })
  242. })
  243. let oData3= {
  244. tableId: this.$route.query.id,
  245. tableName: "t_yinnong_transfer",
  246. bizPath: "transfer",
  247. fileType: "3",
  248. }
  249. attachmentList(oData3).then(res => {
  250. res.rows.map(r => {
  251. let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
  252. this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id})
  253. })
  254. })
  255. },
  256. goBack(){
  257. window.history.go(-1)
  258. },
  259. //删除家庭成员
  260. deleteChargeItme(index){
  261. this.chargeItme.splice(index,1)
  262. },
  263. },
  264. }
  265. </script>
  266. <style scoped lang="scss">
  267. .app-container {
  268. padding: 2% 0;
  269. }
  270. .main_title{
  271. font-size: 0.4rem;
  272. color: #1D6FE9;
  273. margin: 0.2rem 6%;
  274. position: relative;
  275. }
  276. .main_box{
  277. width: 96%;
  278. margin: 0 auto;
  279. border-radius: 6px;
  280. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  281. overflow: hidden;
  282. background-color: #FFF;
  283. }
  284. .submitButton{
  285. width: 80%;
  286. margin: 0 auto;
  287. background-color: #1D6FE9;
  288. }
  289. .addFamily{
  290. position: absolute;
  291. top: -2px;
  292. right: 0;
  293. border-radius: 50%;
  294. }
  295. .deleteFamily{
  296. position: absolute;
  297. top: 0rem;
  298. right: 6%;
  299. z-index: 9;
  300. border-radius: 50%;
  301. }
  302. </style>