移动端
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.

approvalDetail2.vue 12 KiB

3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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-model="form.accountType == 1 ? '公户':'私户'" input-align="right" label-width="auto" />
  56. </div>
  57. <div :style="{position:'relative',padding: index == 0 ? '':'10px 0 0 0'}" v-for="(item, index) in chargeItme" :key="index">
  58. <div class="main_box" style="margin-bottom: 10px;position:relative;">
  59. <van-field readonly label="收款方" v-model="item.payee" input-align="right" />
  60. <van-field readonly label="收款账户" v-model="item.payeeAccount" input-align="right" label-width="auto"/>
  61. <van-field readonly label="开户银行" v-model="item.bankDeposit" input-align="right" label-width="auto"/>
  62. <van-field readonly label="收入金额" v-model="item.incomeAmount" input-align="right" label-width="auto"/>
  63. <van-field readonly label="所属银行" v-model="item.bankTypeText" input-align="right" />
  64. </div>
  65. </div>
  66. <p class="main_title">上传附件(收据)</p>
  67. <div class="main_box" style="padding: 5px 0 0 8px;">
  68. <van-uploader v-model="fileList1" v-if="fileList1==null||fileList1.length==0" :deletable="false" disabled :upload-text="'未上传附件'"></van-uploader>
  69. <van-uploader v-model="fileList1" v-if="fileList1!=null&&fileList1.length>0" :deletable="false" :max-count="fileList1.length" ></van-uploader>
  70. </div>
  71. <p class="main_title">上传附件(发票)</p>
  72. <div class="main_box" style="padding: 5px 0 0 8px;">
  73. <van-uploader v-model="fileList2" v-if="fileList2==null||fileList2.length==0" :deletable="false" disabled :upload-text="'未上传附件'"></van-uploader>
  74. <van-uploader v-model="fileList2" v-if="fileList2!=null&&fileList2.length>0" :deletable="false" :max-count="fileList2.length" ></van-uploader>
  75. </div>
  76. <p class="main_title">上传附件(其他)</p>
  77. <div class="main_box" style="padding: 5px 0 0 8px;">
  78. <van-uploader v-model="fileList3" v-if="fileList3==null||fileList3.length==0" :deletable="false" disabled :upload-text="'未上传附件'"></van-uploader>
  79. <van-uploader v-model="fileList3" v-if="fileList3!=null&&fileList3.length>0" :deletable="false" :max-count="fileList3.length" ></van-uploader>
  80. </div>
  81. </div>
  82. </template>
  83. <script>
  84. import { getTransfer , queryTransferDetail , listPayee , updateTransfer , getProjectto , listProject , addProjectto , customSubmit,getInfoto } from "@/api/onlineHome/bankAgriculture/paymentApproval";
  85. import request from '@/utils/request'
  86. import {
  87. attachmentList,
  88. commonAttach,
  89. systemAttachment
  90. } from "../../../../api/onlineHome/bankAgriculture/paymentApproval";
  91. export default {
  92. name: "approvalDetail",
  93. data() {
  94. return {
  95. showcapital:false,
  96. showpayee:false,
  97. showlasj:false,
  98. showbankType:false,
  99. showproject:false,
  100. showFundType:false,
  101. minDate: new Date(),
  102. maxDate: new Date(2025, 10, 1),
  103. currentDate: new Date(),
  104. form:{},
  105. fileList1:[],
  106. fileList2:[],
  107. fileList3:[],
  108. capitalExpenditureType:'',
  109. payee:'',
  110. bankType:'',
  111. wfydlxDictionaries:[],
  112. jglxDictionaries:[],
  113. sysDictionaries:[],
  114. capitalExpenditureTypeOptions:[],
  115. bankTypeDictionaries:[],
  116. projectList:[],
  117. projectFundTypeOptions:[],
  118. projectFundTypeDictionaries:[],
  119. projectListShow:[],
  120. chargeItme:[],
  121. chargeItmeShow:[],
  122. payeeList:[],
  123. // 查询参数
  124. queryParams: {
  125. transferType:"",
  126. orderByColumn: "id",
  127. isAsc: "desc",
  128. },
  129. capitalExpenditureOpen:false,
  130. projectForm:{
  131. projectId:null,
  132. projectName:null,
  133. projectContractor:null,
  134. projectAmount:null,
  135. projectBillNum:null,
  136. projectFundType:'1',
  137. outId:null,
  138. ynType:'1'
  139. },
  140. contractOpen:false,
  141. infoForm:{
  142. infoId:null,
  143. name:null,
  144. code:null,
  145. totalAmount:null,
  146. contractionId:null,
  147. transferId:null
  148. },
  149. projectFundType:''
  150. };
  151. },
  152. created() {
  153. this.getDicts("project_fund_type").then((response) => {
  154. for (let i = 0; i < response.data.length; i++) {
  155. this.projectFundTypeOptions.push({text: response.data[i].dictLabel, value: response.data[i].dictValue});
  156. }
  157. this.projectFundTypeDictionaries = response.data;
  158. });
  159. this.getDictionaries();
  160. this.getFileList();
  161. },
  162. methods: {
  163. goFlow(){
  164. window.location='approvalProcess?id='+this.$route.query.id;
  165. },
  166. getDictionaries(){
  167. getTransfer(this.$route.query.id).then((response) => {
  168. this.getDicts("capital_expenditure_type").then((res) => {
  169. for (var i = 0; i < res.data.length; i++) {
  170. this.capitalExpenditureTypeOptions.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  171. }
  172. this.capitalExpenditureType = this.selectDictLabel(res.data, response.data.capitalExpenditureType);
  173. });
  174. if(response.data.capitalExpenditureType==2){
  175. this.capitalExpenditureOpen = true
  176. let param={
  177. 'outId' : response.data.id,
  178. 'ynType' : '1'
  179. }
  180. getProjectto(param).then(res => {
  181. this.projectFundType = this.selectDictLabel(this.projectFundTypeDictionaries, res.data.projectFundType);
  182. this.projectForm = res.data
  183. })
  184. }else if(response.data.capitalExpenditureType==4) {
  185. this.contractOpen = true
  186. let param = {
  187. 'transferId': response.data.id
  188. }
  189. getInfoto(param).then(res => {
  190. this.infoForm = res.data
  191. })
  192. }else{
  193. this.showproject = false
  194. }
  195. this.form = response.data;
  196. });
  197. queryTransferDetail(this.$route.query.id).then((response) => {
  198. this.getDicts("bank_type").then(res => {
  199. for (var i = 0; i < res.data.length; i++) {
  200. this.bankTypeDictionaries.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  201. }
  202. for (var j = 0 ; j < response.rows.length ; j++){
  203. response.rows[j].bankTypeText = this.selectDictLabel(res.data, response.rows[j].bankType);
  204. }
  205. this.chargeItme = response.rows;
  206. });
  207. this.getPayeeList();
  208. });
  209. },
  210. getPayeeList() {
  211. //普通转账
  212. this.queryParams.accountType = this.form.accountType
  213. this.queryParams.status = "0"
  214. listPayee(this.queryParams).then((response) => {
  215. for (var i = 0; i < response.rows.length; i++) {
  216. this.payeeList.push({text: response.rows[i].payee, value: response.rows[i].id});
  217. }
  218. });
  219. },
  220. getFileList(){
  221. let oData1= {
  222. tableId: this.$route.query.id,
  223. tableName: "t_yinnong_transfer",
  224. bizPath: "transfer",
  225. fileType: "1",
  226. }
  227. attachmentList(oData1).then(res => {
  228. res.rows.map(r => {
  229. let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
  230. this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id})
  231. })
  232. })
  233. let oData2= {
  234. tableId: this.$route.query.id,
  235. tableName: "t_yinnong_transfer",
  236. bizPath: "transfer",
  237. fileType: "2",
  238. }
  239. attachmentList(oData2).then(res => {
  240. res.rows.map(r => {
  241. let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
  242. this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id})
  243. })
  244. })
  245. let oData3= {
  246. tableId: this.$route.query.id,
  247. tableName: "t_yinnong_transfer",
  248. bizPath: "transfer",
  249. fileType: "3",
  250. }
  251. attachmentList(oData3).then(res => {
  252. res.rows.map(r => {
  253. let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
  254. this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id})
  255. })
  256. })
  257. },
  258. goBack(){
  259. window.history.go(-1)
  260. },
  261. //删除家庭成员
  262. deleteChargeItme(index){
  263. this.chargeItme.splice(index,1)
  264. },
  265. },
  266. }
  267. </script>
  268. <style scoped lang="scss">
  269. .app-container {
  270. padding: 2% 0;
  271. }
  272. .main_title{
  273. font-size: 0.4rem;
  274. color: #1D6FE9;
  275. margin: 0.2rem 6%;
  276. position: relative;
  277. }
  278. .main_box{
  279. width: 96%;
  280. margin: 0 auto;
  281. border-radius: 6px;
  282. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  283. overflow: hidden;
  284. background-color: #FFF;
  285. }
  286. .submitButton{
  287. width: 80%;
  288. margin: 0 auto;
  289. background-color: #1D6FE9;
  290. }
  291. .addFamily{
  292. position: absolute;
  293. top: -2px;
  294. right: 0;
  295. border-radius: 50%;
  296. }
  297. .deleteFamily{
  298. position: absolute;
  299. top: 0rem;
  300. right: 6%;
  301. z-index: 9;
  302. border-radius: 50%;
  303. }
  304. </style>