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

approvalModify12.vue 108 KiB

3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392
  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. </van-nav-bar>
  13. <van-form @submit="getChange" @failed="getError" :show-error-message="false" scroll-to-error validate-first>
  14. <p class="main_title">基础信息</p>
  15. <div class="main_box">
  16. <van-field
  17. readonly
  18. clickable
  19. required
  20. :rules="[{ required: true , message:'请选择申请时间' }]"
  21. v-model="form.applyDate"
  22. label="申请时间"
  23. placeholder="请选择申请时间"
  24. @click="showlasj = true"
  25. input-align="right"
  26. right-icon="arrow-down"
  27. />
  28. <van-popup v-model="showlasj" position="bottom">
  29. <van-datetime-picker
  30. v-model="currentDate"
  31. type="date"
  32. title="选择年月日"
  33. :min-date="minDate"
  34. :max-date="maxDate"
  35. @confirm="onConfirmLasj"
  36. @cancel="showlasj = false"
  37. />
  38. </van-popup>
  39. <van-field
  40. readonly
  41. clickable
  42. required
  43. :rules="[{ required: true , message:'请选择资金支出类别' }]"
  44. label="资金支出类别"
  45. placeholder="请选择"
  46. v-model="capitalExpenditureType"
  47. @click="showcapital = true"
  48. input-align="right"
  49. right-icon="arrow-down"
  50. label-width="auto"
  51. />
  52. <van-popup v-model="showcapital" position="bottom">
  53. <van-picker
  54. show-toolbar
  55. :columns="capitalExpenditureTypeOptions"
  56. @confirm="onConfirmCapital"
  57. @cancel="showcapital = false"
  58. />
  59. </van-popup>
  60. <van-field
  61. readonly
  62. required
  63. label="支出总金额"
  64. v-model="form.expenditureAmount"
  65. placeholder="根据下方收款金额自动核算"
  66. input-align="right"
  67. label-width="auto"
  68. />
  69. <van-field name="radio" label="审批模式" input-align="right" autocomplete="off" required
  70. :rules="[{ required: true , message:'请选择审批模式' }]">
  71. <template #input>
  72. <van-radio-group v-model="form.approvalMode" direction="horizontal">
  73. <van-radio name="1">线上支付</van-radio>
  74. <van-radio name="2">线下支付</van-radio>
  75. </van-radio-group>
  76. </template>
  77. </van-field>
  78. <van-field
  79. v-if="form.approvalMode==1"
  80. readonly
  81. clickable
  82. label="审批流程"
  83. placeholder="请选择"
  84. v-model="form.approvalTemplateName"
  85. @click="showtemplate = true"
  86. input-align="right"
  87. right-icon="arrow-down"
  88. required
  89. :rules="[{ required: true , message:'请选择项目流程' }]"
  90. />
  91. <van-popup v-model="showtemplate" position="bottom">
  92. <van-picker
  93. show-toolbar
  94. value-key="name"
  95. :columns="templateList"
  96. @confirm="onConfirmTemplate"
  97. @cancel="showtemplate = false"
  98. />
  99. </van-popup>
  100. </div>
  101. <div class="main_box" style="margin-top: 10px;">
  102. <van-field
  103. label="付款事由"
  104. v-model="form.remark"
  105. type="textarea"
  106. placeholder="请输入付款事由"
  107. input-align="right"
  108. rows="3"
  109. label-width="auto"
  110. required
  111. :rules="[{ required: true , message:'请输入付款事由' }]"
  112. />
  113. </div>
  114. <div class="main_box" style="margin-top: 10px;">
  115. <van-field label="说明情况" v-model="form.explainSituation" type="textarea" placeholder="请输入说明情况" input-align="right" rows="3" label-width="auto"/>
  116. </div>
  117. <p class="main_title" v-if="capitalExpenditureOpen">关联项目</p>
  118. <div class="main_box" v-if="capitalExpenditureOpen" style="margin-bottom: 10px;margin-top: 10px;position:relative;">
  119. <van-field
  120. readonly
  121. clickable
  122. label="项目名称"
  123. placeholder="请选择"
  124. v-model="projectForm.projectName"
  125. @click="showproject = true"
  126. input-align="right"
  127. right-icon="arrow-down"
  128. required
  129. :rules="[{ required: true , message:'请选择项目名称' }]"
  130. />
  131. <van-popup v-model="showproject" position="bottom">
  132. <van-picker
  133. show-toolbar
  134. :columns="projectList"
  135. @confirm="onConfirmProject"
  136. @cancel="showproject = false"
  137. />
  138. </van-popup>
  139. <van-field required :rules="[{ required: true , message:'请输入承建单位' }]" v-model="projectForm.projectContractor" label="承建单位" placeholder="请输入承建单位" input-align="right" label-width="auto"/>
  140. <van-field required :rules="[{ required: true , message:'请输入合同价款(元)' }]" v-model="projectForm.projectAmount" label="合同价款(元)" placeholder="请输入合同价款(元)" input-align="right" label-width="auto"/>
  141. <van-field
  142. readonly
  143. clickable
  144. label="工程款类型"
  145. placeholder="请选择"
  146. v-model="projectFundType"
  147. @click="showFundType = true"
  148. input-align="right"
  149. right-icon="arrow-down"
  150. required
  151. :rules="[{ required: true , message:'请选择工程款类型' }]"
  152. />
  153. <van-popup v-model="showFundType" position="bottom">
  154. <van-picker
  155. show-toolbar
  156. :columns="projectFundTypeOptions"
  157. @confirm="onConfirmFundType"
  158. @cancel="showFundType = false"
  159. />
  160. </van-popup>
  161. <van-field required :rules="[{ required: true , message:'请输入工程发票号' }]" v-model="projectForm.projectBillNum" label="工程发票号" placeholder="请输入工程发票号" input-align="right" label-width="auto"/>
  162. </div>
  163. <p class="main_title" v-if="contractOpen">关联合同</p>
  164. <div class="main_box" v-if="contractOpen" style="margin-bottom: 10px;margin-top: 10px;position:relative;">
  165. <van-field
  166. readonly
  167. clickable
  168. label="合同"
  169. placeholder="请选择"
  170. v-model="infoForm.name"
  171. @click="showcontract = true"
  172. input-align="right"
  173. right-icon="arrow-down"
  174. required
  175. :rules="[{ required: true , message:'请选择项目名称' }]"
  176. />
  177. <van-popup v-model="showcontract" position="bottom">
  178. <van-picker
  179. show-toolbar
  180. :columns="infoList"
  181. @confirm="onConfirmContract"
  182. @cancel="showcontract = false"
  183. />
  184. </van-popup>
  185. <van-field required :rules="[{ required: true , message:'请输入合同编码' }]" v-model="infoForm.code" label="合同编码" placeholder="请输入合同编码" input-align="right" label-width="auto"/>
  186. <van-field required :rules="[{ required: true , message:'请输入合同价款' }]" v-model="infoForm.totalAmount" label="合同价款(元)" placeholder="请输入合同价款(元)" input-align="right" label-width="auto"/>
  187. </div>
  188. <p class="main_title">出票方信息</p>
  189. <div class="main_box">
  190. <!-- <van-field label="付款方" v-model="form.payer" placeholder="请输入付款方" input-align="right" label-width="auto"/>-->
  191. <van-field
  192. readonly
  193. clickable
  194. label="出票方"
  195. placeholder="请选择出票方"
  196. v-model="form.payer"
  197. @click="showpayer = true"
  198. input-align="right"
  199. right-icon="arrow-down"
  200. label-width="auto"
  201. required
  202. :rules="[{ required: true , message:'请选择出票方' }]"
  203. />
  204. <van-popup v-model="showpayer" position="bottom">
  205. <van-picker
  206. show-toolbar
  207. :columns="payerOptions"
  208. @confirm="onConfirmPayer($event)"
  209. @cancel="showpayer = false"
  210. />
  211. </van-popup>
  212. <van-field readonly :rules="[{ required: true , message:'请输入汇票号码' }]" required label="汇票号码" v-model="form.payerAccount" input-align="right" label-width="auto"/>
  213. <van-field
  214. readonly
  215. label="出票金额(元)"
  216. v-model="form.expenditureAmount"
  217. placeholder=""
  218. input-align="right"
  219. label-width="auto"
  220. required
  221. :rules="[{ required: true , message:'出票金额不能为空!' }]"
  222. />
  223. <van-field
  224. readonly
  225. label="汇票类型"
  226. v-model="orderTypeName"
  227. placeholder=""
  228. input-align="right"
  229. label-width="auto"
  230. required
  231. :rules="[{ required: true , message:'汇票类型不能为空!' }]"
  232. />
  233. <van-field
  234. readonly
  235. label="汇票类型"
  236. v-model="form.orderType"
  237. placeholder=""
  238. input-align="right"
  239. label-width="auto"
  240. style="display: none"
  241. required
  242. :rules="[{ required: true , message:'汇票类型不能为空!' }]"
  243. />
  244. <van-field
  245. readonly
  246. label="开票日"
  247. v-model="form.startTime"
  248. placeholder=""
  249. input-align="right"
  250. label-width="auto"
  251. required
  252. :rules="[{ required: true , message:'开票日不能为空!' }]"
  253. />
  254. <van-field
  255. readonly
  256. label="到期日"
  257. v-model="form.endTime"
  258. placeholder=""
  259. input-align="right"
  260. label-width="auto"
  261. required
  262. :rules="[{ required: true , message:'到期日不能为空!' }]"
  263. />
  264. </div>
  265. <p class="main_title">收款方信息<van-button icon="plus" @click="addChargeItme(chargeItme.length)" size="mini" type="info" native-type="button" class="addFamily"/></p>
  266. <div :style="{position:'relative',padding: index == 0 ? '':'10px 0 0 0'}" v-for="(item, index) in chargeItme" :key="index">
  267. <van-button icon="minus" size="mini" type="danger" class="deleteFamily" native-type="button" v-if="index!=0" @click="deleteChargeItme(index)" />
  268. <div class="main_box" style="margin-bottom: 10px;position:relative;">
  269. <van-field required :rules="[{ required: true , message:'收票方不能为空' }]" v-model="item.payee" label="收票方" placeholder="请输入收票方全称" input-align="right" label-width="auto"/>
  270. <van-field required :rules="[{ required: true , message:'联系方式不能为空' }]" v-model="item.phone" label="联系方式" placeholder="请输入联系方式" input-align="right" label-width="auto"/>
  271. <van-field required :rules="[{ required: true , message:'所属单位补鞥你为空' }]" v-model="item.unit" label="所属单位" placeholder="请输入所属单位" input-align="right" label-width="auto"/>
  272. <van-field required :rules="[{ required: true , message:'负责人全称不能为空' }]" v-model="item.leader" label="负责人全称" placeholder="请输入负责人全称" input-align="right" label-width="auto"/>
  273. <van-field required :rules="[{ required: true , message:'资金用途不能为空' }]" v-model="item.remark" label="资金用途" placeholder="请输入资金用途" input-align="right" label-width="auto"/>
  274. </div>
  275. </div>
  276. <p class="main_title">上传附件</p>
  277. <div class="main_box" style="padding: 5px 0 0 0;">
  278. <van-cell value="收据" />
  279. <van-uploader v-model="fileList1" :after-read="beforeRead1" @delete="deleteFile1" style="margin-left:8px;"></van-uploader>
  280. <van-cell title="发票" />
  281. <van-uploader v-model="fileList2" :after-read="beforeRead2" @delete="deleteFile2" style="margin-left:8px;"></van-uploader>
  282. <van-cell title="其他" />
  283. <van-uploader v-model="fileList3" :after-read="beforeRead3" @delete="deleteFile3" style="margin-left:8px;"></van-uploader>
  284. </div>
  285. <div style="padding: 16px 0;">
  286. <van-row>
  287. <van-col span="12" align="center">
  288. <van-button type="info" native-type="submit" @click="buttonType='update'" class="submitButton">保<i style="margin-right: 1em;"></i>存</van-button>
  289. </van-col>
  290. <van-col span="12" align="center">
  291. <van-button type="info" native-type="submit" @click="buttonType='add'" class="submitButton">保存并提交</van-button>
  292. </van-col>
  293. </van-row>
  294. <div class="clear"></div>
  295. </div>
  296. </van-form>
  297. </div>
  298. </template>
  299. <script>
  300. import { getAccount , getTransfer , queryTransferDetail , listPayee , updateTransfer , getProjectto ,
  301. listProject , addProjectto , customSubmit , offlineCashSubmit, getQmyeFlow,listInfo ,getInfoto ,addInfoto,listTemplate,selectApprovalByTemplateId} from "@/api/onlineHome/bankAgriculture/paymentApproval";
  302. import request from '@/utils/request';
  303. import {
  304. addCash, addCashdetail,
  305. attachmentList, cashSubmit,
  306. commonAttach, getCash,
  307. listCashdetailByCashId, listMoneyorder, systemAttachment, updateCash
  308. } from "../../../../api/onlineHome/bankAgriculture/paymentApproval";
  309. import Dialog from "vant/lib/dialog";
  310. export default {
  311. name: "approvalModify12",
  312. data() {
  313. return {
  314. showtemplate:false,
  315. showcontract:false,
  316. showcapital:false,
  317. showpayee:false,
  318. showlasj:false,
  319. showbankType:false,
  320. showproject:false,
  321. showFundType:false,
  322. showpayer:false,
  323. minDate: new Date(2000, 1, 1),
  324. maxDate: new Date(2050, 12, 31),
  325. currentDate: new Date(),
  326. form:{},
  327. capitalExpenditureType:'',
  328. payee:'',
  329. bankType:'',
  330. buttonType:'a',
  331. wfydlxDictionaries:[],
  332. jglxDictionaries:[],
  333. sysDictionaries:[],
  334. capitalExpenditureTypeOptions:[],
  335. bankTypeDictionaries:[],
  336. projectList:[],
  337. projectFundTypeOptions:[],
  338. projectFundTypeDictionaries:[],
  339. infoList:[],
  340. payerOptions:[],
  341. chargeItme:[],
  342. chargeItmeShow:[],
  343. payeeList:[],
  344. // 查询参数
  345. queryParams: {
  346. transferType:12,
  347. orderByColumn: "id",
  348. isAsc: "desc",
  349. },
  350. capitalExpenditureOpen:false,
  351. contractOpen:false,
  352. projectForm:{
  353. projectId:null,
  354. projectName:null,
  355. projectContractor:null,
  356. projectAmount:null,
  357. projectBillNum:null,
  358. projectFundType:'1',
  359. outId:null,
  360. ynType:'1'
  361. },
  362. infoForm:{
  363. infoId:null,
  364. name:null,
  365. code:null,
  366. totalAmount:null,
  367. contractionId:null,
  368. transferId:null
  369. },
  370. // 合同信息查询参数
  371. queryContractionParams: {
  372. pageNum: 1,
  373. pageSize: 100,
  374. contractionStatus: '1',
  375. orderByColumn: "endTime",
  376. isAsc: "desc",
  377. },
  378. projectFundType:'',
  379. fileList1:[],
  380. fileList2:[],
  381. fileList3:[],
  382. uploadFiles1:[],
  383. uploadFiles2:[],
  384. uploadFiles3:[],
  385. orderTypeName:'',
  386. orderTypeOptions:[],
  387. templateList:[],
  388. };
  389. },
  390. created() {
  391. this.initProjectInfo();
  392. this.getDicts("project_fund_type").then((response) => {
  393. for (var i = 0; i < response.data.length; i++) {
  394. this.projectFundTypeOptions.push({text: response.data[i].dictLabel, value: response.data[i].dictValue});
  395. }
  396. this.projectFundTypeDictionaries = response.data;
  397. });
  398. this.getDicts("order_type").then(response => {
  399. this.orderTypeOptions = response.data;
  400. });
  401. let params1={
  402. pageNum: 1,
  403. pageSize: 1000,
  404. }
  405. listMoneyorder(params1).then((response) => {
  406. console.log(response)
  407. this.payerOptions = response.rows;
  408. response.rows.map((res,index) => {
  409. res['payerFrom'] = '12'
  410. console.log(res)
  411. this.payerOptions[index].text = res.billReceiveUnit;
  412. this.payerOptions[index].value = res.id;
  413. })
  414. });
  415. this.getDictionaries();
  416. this.getFileList();
  417. },
  418. methods: {
  419. onConfirmTemplate(data){
  420. selectApprovalByTemplateId(data.id).then(res => {
  421. this.showtemplate = false;
  422. if(res.approvalDetails.length>0){
  423. this.form.approvalTemplateName = data.name
  424. this.form.approvalTemplateId = data.id
  425. }else{
  426. this.form.approvalTemplateName = null
  427. this.form.approvalTemplateId = null
  428. this.$notify({ type: 'danger', message: '此流程无节点,无法选择!' });
  429. }
  430. })
  431. },
  432. initProjectInfo(){
  433. let _this = this
  434. let queryParams={
  435. pageNum: 1,
  436. pageSize: 100,
  437. }
  438. listProject(queryParams).then(response => {
  439. _this.projectList = response.rows;
  440. console.log(response)
  441. for (let i = 0; i < response.rows.length; i++) {
  442. //_this.projectList[i].set({text: response.rows[i].projectName, value: response.rows[i].id});
  443. _this.$set(_this.projectList[i],"text",response.rows[i].projectName)
  444. _this.$set(_this.projectList[i],"value",response.rows[i].id)
  445. }
  446. });
  447. listInfo(this.queryContractionParams).then(response => {
  448. console.log(response)
  449. _this.infoList = response.rows;
  450. for (let i = 0; i < response.rows.length; i++) {
  451. //_this.infoList[i].push({text: response.rows[i].name, value: response.rows[i].code});
  452. _this.$set(_this.infoList[i],"text",response.rows[i].name)
  453. _this.$set(_this.infoList[i],"value",response.rows[i].code)
  454. }
  455. });
  456. },
  457. getDictionaries(){
  458. getCash(this.$route.query.id).then((response) => {
  459. this.getDicts("capital_expenditure_type").then((res) => {
  460. for (var i = 0; i < res.data.length; i++) {
  461. this.capitalExpenditureTypeOptions.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  462. }
  463. this.capitalExpenditureType = this.selectDictLabel(res.data, response.data.capitalExpenditureType);
  464. });
  465. if(response.data.capitalExpenditureType==2){
  466. this.capitalExpenditureOpen = true
  467. let param={
  468. 'outId' : response.data.id,
  469. 'ynType' : '2'
  470. }
  471. getProjectto(param).then(res => {
  472. console.log(this.selectDictLabel(this.projectFundTypeDictionaries, res.data.projectFundType))
  473. this.projectFundType = this.selectDictLabel(this.projectFundTypeDictionaries, res.data.projectFundType);
  474. this.projectForm = res.data
  475. console.log(res.data)
  476. })
  477. }else if(response.data.capitalExpenditureType==4){
  478. this.contractOpen = true
  479. let param={
  480. 'transferId' : response.data.id
  481. }
  482. getInfoto(param).then(res => {
  483. this.infoForm = res.data
  484. })
  485. }else{
  486. this.showproject = false
  487. }
  488. this.form = response.data;
  489. let _this = this
  490. let templateQueryParams = {
  491. // 分页
  492. pageNum: 1,
  493. pageSize: 999,
  494. type:'4',
  495. orderStatus:'1'
  496. };
  497. listTemplate(templateQueryParams).then(rrr => {
  498. this.templateList = rrr.rows;
  499. this.templateList.map(ra => {
  500. if(ra.id == response.data.approvalTemplateId){
  501. _this.form.approvalTemplateName = ra.name
  502. }
  503. })
  504. });
  505. this.orderTypeOptions.map(res => {
  506. if(res.dictValue==this.form.orderType){
  507. this.orderTypeName = res.dictLabel
  508. }
  509. })
  510. });
  511. listCashdetailByCashId(this.$route.query.id).then((response) => {
  512. this.chargeItme = response.data;
  513. this.getPayeeList();
  514. });
  515. },
  516. getChange(){
  517. if(this.buttonType == 'update'){
  518. this.goUpdate();
  519. }else if(this.buttonType == 'add'){
  520. this.goAdd();
  521. }
  522. },
  523. getError(e){
  524. this.$notify({ type: 'danger', message: e.errors[0].message });
  525. },
  526. addChargeItme(index){
  527. if(this.chargeItme.length>0&&this.chargeItme[this.chargeItme.length-1].payee == ''){
  528. this.$notify({ type: 'danger', message: '请勿添加多个空列表信息' });
  529. return;
  530. }
  531. this.chargeItme.splice(index + 1, 0, {
  532. payeeId: "", //收款方ID
  533. payee: "", //收款方
  534. payeeAccount: "", //收款账户
  535. bankDeposit: "", //开户银行
  536. incomeAmount: "", //收入金额
  537. bankType: "", //所属银行
  538. bankTypeText:"", //所属银行
  539. showPayee:false,
  540. showbankType:false
  541. });
  542. },
  543. getPayeeList() {
  544. //普通转账
  545. this.queryParams.accountType = this.form.accountType
  546. this.queryParams.status = "0"
  547. listPayee(this.queryParams).then((response) => {
  548. this.payeeList = response.rows;
  549. response.rows.map((res,index) => {
  550. this.payeeList[index].text = res.payee;
  551. this.payeeList[index].value = res.id;
  552. })
  553. });
  554. },
  555. payeeDictLabel(datas, value) {
  556. var actions = [];
  557. Object.keys(datas).some((key) => {
  558. if (datas[key].payeeId == ('' + value)) {
  559. actions.push(datas[key].payee);
  560. return true;
  561. }
  562. })
  563. return actions.join('');
  564. },
  565. onConfirmCapital(data){
  566. if (data.value == 2){
  567. this.capitalExpenditureOpen = true;
  568. this.contractOpen = false
  569. this.infoForm = {};
  570. }else if(data.value == 4){
  571. this.capitalExpenditureOpen = false;
  572. this.contractOpen = true
  573. this.projectForm = {};
  574. }else{
  575. this.capitalExpenditureOpen = false;
  576. this.contractOpen = false
  577. this.projectForm = {};
  578. this.infoForm = {};
  579. }
  580. this.capitalExpenditureType = data.text;
  581. this.form.capitalExpenditureType = data.value;
  582. this.showcapital = false;
  583. },
  584. onConfirmFundType(data){
  585. console.log(data)
  586. this.projectForm.projectFundType = data.value;
  587. this.projectFundType = data.text;
  588. this.showFundType = false;
  589. },
  590. onConfirmContract(data){
  591. this.infoList.map(res => {
  592. if(res.name==data.text){
  593. this.infoForm.contractionId = res.id;
  594. this.infoForm.name = res.name;
  595. this.infoForm.code = res.code;
  596. this.infoForm.totalAmount = res.totalAmount;
  597. }
  598. })
  599. this.showcontract = false;
  600. },
  601. onConfirmProject(data){
  602. this.projectList.map(res => {
  603. if(res.projectName==data.text){
  604. this.projectForm.projectId = res.id
  605. this.projectForm.projectName = res.projectName
  606. this.projectForm.projectContractor = res.projectContractor
  607. this.projectForm.projectAmount = res.projectAmount
  608. }
  609. })
  610. this.showproject = false;
  611. },
  612. onConfirmPayee(data,index){
  613. console.log(data)
  614. for (var i = 0 ; i < this.chargeItme.length ; i++){
  615. this.chargeItme[i].showPayee = false;
  616. }
  617. this.chargeItme[index].payee = data.text;
  618. this.chargeItme[index].payeeId = data.value;
  619. this.payeeSelectChange(data.value , index)
  620. },
  621. onConfirmBankType(data,index){
  622. for (var i = 0 ; i < this.chargeItme.length ; i++){
  623. this.chargeItme[i].showbankType = false;
  624. }
  625. this.chargeItme[index].bankTypeText = data.text;
  626. this.chargeItme[index].bankType = data.value;
  627. this.chargeItme[index].showbankType = false;
  628. },
  629. onConfirmPayer(select){
  630. this.showpayer = false;
  631. if(this.form.applyDate==""||this.form.applyDate==null){
  632. this.$set(this.form, "payer", "")
  633. this.$notify({ type: 'danger', message: "请先选择申请时间!"});
  634. this.orderTypeName = ''
  635. }else{
  636. if(this.form.applyDate>new Date(select.endTime)){
  637. this.$notify({ type: 'danger', message: "当前申请时间大于汇票的到期日为"+select.endTime+",无法使用!"});
  638. this.$set(this.form, "payer", "")
  639. this.form.payerAccount = ""
  640. this.form.startTime = ""
  641. this.form.endTime = ""
  642. this.form.orderType = ""
  643. this.form.expenditureAmount = ""
  644. this.$set(this.form, "cashierId", "")
  645. this.orderTypeName = ''
  646. }else if(this.form.applyDate<new Date(select.startTime)){
  647. this.$notify({ type: 'danger', message: "当前申请时间小于汇票的开票日为"+select.startTime+",无法使用!" });
  648. this.$set(this.form, "payer", "")
  649. this.form.payerAccount = ""
  650. this.form.startTime = ""
  651. this.form.endTime = ""
  652. this.form.orderType = ""
  653. this.form.expenditureAmount = ""
  654. this.$set(this.form, "cashierId", "")
  655. this.orderTypeName = ''
  656. }else{
  657. this.form.payerAccount = select.orderNum
  658. this.form.startTime = select.startTime
  659. this.form.endTime = select.endTime
  660. this.form.orderType = select.orderType
  661. this.form.expenditureAmount = select.orderAmount
  662. this.$set(this.form, "cashierId", select.id)
  663. this.$set(this.form, "payer", select.billReceiveUnit)
  664. this.orderTypeOptions.map(res => {
  665. if(res.dictValue==this.form.orderType){
  666. this.orderTypeName = res.dictLabel
  667. }
  668. })
  669. }
  670. }
  671. },
  672. onConfirmLasj(data){
  673. this.form.applyDate = this.getNowFormatDate(data).substr(0,10);
  674. this.showlasj = false;
  675. },
  676. accountTypeChange(e){
  677. this.payeeList = [];
  678. this.queryParams.accountType = this.form.accountType
  679. this.queryParams.status = "0"
  680. listPayee(this.queryParams).then((response) => {
  681. this.payeeList = response.rows;
  682. response.rows.map((res,index) => {
  683. this.payeeList[index].text = res.payee;
  684. this.payeeList[index].value = res.id;
  685. })
  686. });
  687. },
  688. // 钱计算
  689. moneyChange(input) {
  690. let obj = {};
  691. obj = this.chargeItme.find((account) => {
  692. //model就是上面的数据源
  693. return parseFloat(account.incomeAmount).toFixed(2) === input; //筛选出匹配数据
  694. });
  695. let total = 0;
  696. this.chargeItme.forEach((money) => {
  697. total = (parseFloat(total) + parseFloat(money.incomeAmount)).toFixed(2)
  698. });
  699. this.$set(this.form, "expenditureAmount", total);
  700. },
  701. goAdd(){
  702. let _this = this
  703. if(this.chargeItme.length<1){
  704. this.$notify({ type: 'danger', message: '请添加收款方信息' });
  705. return;
  706. }
  707. if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
  708. this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
  709. return;
  710. }
  711. if(this.form.capitalExpenditureType==2){
  712. if(this.projectForm.projectName==""||this.projectForm.projectName==null){
  713. this.$notify({ type: 'danger', message: '请选择项目名称!' });
  714. return;
  715. }
  716. if(this.projectForm.projectBillNum==""||this.projectForm.projectBillNum==null){
  717. this.$notify({ type: 'danger', message: '请输入工程发票号!' });
  718. return;
  719. }
  720. }
  721. if(this.form.capitalExpenditureType==4){
  722. if(this.infoForm.name==""||this.infoForm.name==null){
  723. this.$notify({ type: 'danger', message: '请选择合同名称!' });
  724. return;
  725. }
  726. if(this.infoForm.code==""||this.infoForm.code==null){
  727. this.$notify({ type: 'danger', message: '请输入合同编码!' });
  728. return;
  729. }
  730. if(this.infoForm.totalAmount==""||this.infoForm.totalAmount==null){
  731. this.$notify({ type: 'danger', message: '请输入合同价款!' });
  732. return;
  733. }
  734. }
  735. this.$set(this.form, "payeeList", this.chargeItme);
  736. this.$set(this.form, "bankTypeList", this.chargeItme);
  737. this.$set(this.form, "accountTypeList", this.chargeItme);
  738. this.$set(this.form, "transferStatusList", this.chargeItme);
  739. if((this.uploadFiles1==null||this.uploadFiles1.length==0)&&
  740. (this.uploadFiles2==null||this.uploadFiles2.length==0)&&
  741. (this.uploadFiles3==null||this.uploadFiles3.length==0&&
  742. this.fileList1.length==0&&
  743. this.fileList2.length==0&&
  744. this.fileList3.length==0)){
  745. Dialog.confirm({
  746. title: '提示',
  747. message: '此申请单中未上传任何附件,是否确认提交?',
  748. })
  749. .then(() => {
  750. updateCash(this.form).then((response) => {
  751. this.chargeItme.map((res,idx) => {
  752. res.cashId = _this.form.id
  753. addCashdetail(res).then(r => {
  754. if(idx == (_this.chargeItme.length - 1)){
  755. if(_this.form.capitalExpenditureType==2){
  756. _this.projectForm.outId = _this.form.id
  757. _this.$set(_this.projectForm, "ynType", '2');
  758. addProjectto(_this.projectForm).then(res => {
  759. if(_this.form.approvalMode === '1'){
  760. cashSubmit(_this.form.id).then(res => {
  761. _this.$toast.success('提交成功');
  762. setTimeout(function(){
  763. history.go(-1)
  764. },2000)
  765. })
  766. }else{
  767. offlineCashSubmit(_this.form.id).then(res => {
  768. _this.$toast.success('提交成功');
  769. setTimeout(function(){
  770. history.go(-1)
  771. },2000)
  772. })
  773. }
  774. })
  775. }else if(_this.form.capitalExpenditureType==4){
  776. _this.infoForm.transferId = _this.form.id
  777. addInfoto(_this.infoForm).then(res => {
  778. if(_this.form.approvalMode === '1'){
  779. cashSubmit(_this.form.id).then(res => {
  780. _this.$toast.success('提交成功');
  781. setTimeout(function(){
  782. history.go(-1)
  783. },2000)
  784. })
  785. }else{
  786. offlineCashSubmit(_this.form.id).then(res => {
  787. _this.$toast.success('提交成功');
  788. setTimeout(function(){
  789. history.go(-1)
  790. },2000)
  791. })
  792. }
  793. })
  794. }else{
  795. if(_this.form.approvalMode === '1'){
  796. cashSubmit(_this.form.id).then(res => {
  797. _this.$toast.success('提交成功');
  798. setTimeout(function(){
  799. history.go(-1)
  800. },2000)
  801. })
  802. }else{
  803. offlineCashSubmit(_this.form.id).then(res => {
  804. _this.$toast.success('提交成功');
  805. setTimeout(function(){
  806. history.go(-1)
  807. },2000)
  808. })
  809. }
  810. }
  811. }
  812. })
  813. })
  814. });
  815. })
  816. }else {
  817. updateCash(this.form).then((response) => {
  818. this.projectForm.outId = _this.form.id
  819. this.infoForm.transferId = _this.form.id
  820. this.$set(this.projectForm, "ynType", '2');
  821. if(this.uploadFiles1!=null&&this.uploadFiles1.length>0){
  822. this.uploadFiles1.map((rr1,idx1) => {
  823. let params1 = new FormData();
  824. params1.append("tableId", _this.form.id);
  825. params1.append("tableName", "t_yinnong_cash");
  826. params1.append("bizPath", "yinnong");
  827. params1.append("fileType", "1");
  828. params1.append("file", rr1);
  829. commonAttach(params1).then((r1) => {
  830. if(idx1 == (_this.uploadFiles1.length-1)){
  831. if(_this.uploadFiles2!=null&&_this.uploadFiles2.length>0){
  832. _this.uploadFiles2.map((rr2,idx2) => {
  833. let params2 = new FormData();
  834. params2.append("tableId", _this.form.id);
  835. params2.append("tableName", "t_yinnong_cash");
  836. params2.append("bizPath", "yinnong");
  837. params2.append("fileType", "2");
  838. params2.append("file", rr2);
  839. commonAttach(params2).then((r2) => {
  840. if(idx2 == (_this.uploadFiles2.length-1)){
  841. if(_this.uploadFiles3!=null&&_this.uploadFiles3.length>0){
  842. _this.uploadFiles3.map((rr3,idx3) => {
  843. let params3 = new FormData();
  844. params3.append("tableId", _this.form.id);
  845. params3.append("tableName", "t_yinnong_cash");
  846. params3.append("bizPath", "yinnong");
  847. params3.append("fileType", "3");
  848. params3.append("file", rr3);
  849. commonAttach(params3).then((r3) => {
  850. if(idx3 == (_this.uploadFiles3.length-1)){
  851. if(_this.form.capitalExpenditureType==2){
  852. addProjectto(_this.projectForm).then(res => {
  853. if(_this.form.approvalMode === '1'){
  854. cashSubmit(_this.form.id).then(res => {
  855. _this.chargeItme.map((resD,b) => {
  856. resD.cashId = _this.form.id
  857. addCashdetail(resD).then((a,rD) => {
  858. if(b == (_this.chargeItme.length-1)){
  859. _this.$toast.success('提交成功');
  860. setTimeout(function(){
  861. history.go(-1)
  862. },2000)
  863. }
  864. })
  865. })
  866. })
  867. }else{
  868. offlineCashSubmit(_this.form.id).then(res => {
  869. _this.chargeItme.map((resD,b) => {
  870. resD.cashId = _this.form.id
  871. addCashdetail(resD).then((a,rD) => {
  872. if(b == (_this.chargeItme.length-1)){
  873. _this.$toast.success('提交成功');
  874. setTimeout(function(){
  875. history.go(-1)
  876. },2000)
  877. }
  878. })
  879. })
  880. })
  881. }
  882. })
  883. } else if(_this.form.capitalExpenditureType==4){
  884. addInfoto(_this.infoForm).then(res => {
  885. if(_this.form.approvalMode === '1'){
  886. cashSubmit(_this.form.id).then(res => {
  887. _this.chargeItme.map((resD,b) => {
  888. resD.cashId = _this.form.id
  889. addCashdetail(resD).then((a,rD) => {
  890. if(b == (_this.chargeItme.length-1)){
  891. _this.$toast.success('提交成功');
  892. setTimeout(function(){
  893. history.go(-1)
  894. },2000)
  895. }
  896. })
  897. })
  898. })
  899. }else{
  900. offlineCashSubmit(_this.form.id).then(res => {
  901. _this.chargeItme.map((resD,b) => {
  902. resD.cashId = _this.form.id
  903. addCashdetail(resD).then((a,rD) => {
  904. if(b == (_this.chargeItme.length-1)){
  905. _this.$toast.success('提交成功');
  906. setTimeout(function(){
  907. history.go(-1)
  908. },2000)
  909. }
  910. })
  911. })
  912. })
  913. }
  914. })
  915. }else{
  916. if(_this.form.approvalMode === '1'){
  917. cashSubmit(_this.form.id).then(res => {
  918. _this.chargeItme.map((resD,b) => {
  919. resD.cashId = _this.form.id
  920. addCashdetail(resD).then((a,rD) => {
  921. if(b == (_this.chargeItme.length-1)){
  922. _this.$toast.success('提交成功');
  923. setTimeout(function(){
  924. history.go(-1)
  925. },2000)
  926. }
  927. })
  928. })
  929. })
  930. }else{
  931. offlineCashSubmit(_this.form.id).then(res => {
  932. _this.chargeItme.map((resD,b) => {
  933. resD.cashId = _this.form.id
  934. addCashdetail(resD).then((a,rD) => {
  935. if(b == (_this.chargeItme.length-1)){
  936. _this.$toast.success('提交成功');
  937. setTimeout(function(){
  938. history.go(-1)
  939. },2000)
  940. }
  941. })
  942. })
  943. })
  944. }
  945. }
  946. }
  947. })
  948. })
  949. }else{
  950. if(_this.form.capitalExpenditureType==2){
  951. addProjectto(_this.projectForm).then(res => {
  952. if(_this.form.approvalMode === '1'){
  953. cashSubmit(_this.form.id).then(res => {
  954. _this.chargeItme.map((resD,b) => {
  955. resD.cashId = _this.form.id
  956. addCashdetail(resD).then((a,rD) => {
  957. if(b == (_this.chargeItme.length-1)){
  958. _this.$toast.success('提交成功');
  959. setTimeout(function(){
  960. history.go(-1)
  961. },2000)
  962. }
  963. })
  964. })
  965. })
  966. }else{
  967. offlineCashSubmit(_this.form.id).then(res => {
  968. _this.chargeItme.map((resD,b) => {
  969. resD.cashId = _this.form.id
  970. addCashdetail(resD).then((a,rD) => {
  971. if(b == (_this.chargeItme.length-1)){
  972. _this.$toast.success('提交成功');
  973. setTimeout(function(){
  974. history.go(-1)
  975. },2000)
  976. }
  977. })
  978. })
  979. })
  980. }
  981. })
  982. } else if(_this.form.capitalExpenditureType==4){
  983. addInfoto(_this.infoForm).then(res => {
  984. if(_this.form.approvalMode === '1'){
  985. cashSubmit(_this.form.id).then(res => {
  986. _this.chargeItme.map((resD,b) => {
  987. resD.cashId = _this.form.id
  988. addCashdetail(resD).then((a,rD) => {
  989. if(b == (_this.chargeItme.length-1)){
  990. _this.$toast.success('提交成功');
  991. setTimeout(function(){
  992. history.go(-1)
  993. },2000)
  994. }
  995. })
  996. })
  997. })
  998. }else{
  999. offlineCashSubmit(_this.form.id).then(res => {
  1000. _this.chargeItme.map((resD,b) => {
  1001. resD.cashId = _this.form.id
  1002. addCashdetail(resD).then((a,rD) => {
  1003. if(b == (_this.chargeItme.length-1)){
  1004. _this.$toast.success('提交成功');
  1005. setTimeout(function(){
  1006. history.go(-1)
  1007. },2000)
  1008. }
  1009. })
  1010. })
  1011. })
  1012. }
  1013. })
  1014. }else{
  1015. if(_this.form.approvalMode === '1'){
  1016. cashSubmit(_this.form.id).then(res => {
  1017. _this.chargeItme.map((resD,b) => {
  1018. resD.cashId = _this.form.id
  1019. addCashdetail(resD).then((a,rD) => {
  1020. if(b == (_this.chargeItme.length-1)){
  1021. _this.$toast.success('提交成功');
  1022. setTimeout(function(){
  1023. history.go(-1)
  1024. },2000)
  1025. }
  1026. })
  1027. })
  1028. })
  1029. }else{
  1030. offlineCashSubmit(_this.form.id).then(res => {
  1031. _this.chargeItme.map((resD,b) => {
  1032. resD.cashId = _this.form.id
  1033. addCashdetail(resD).then((a,rD) => {
  1034. if(b == (_this.chargeItme.length-1)){
  1035. _this.$toast.success('提交成功');
  1036. setTimeout(function(){
  1037. history.go(-1)
  1038. },2000)
  1039. }
  1040. })
  1041. })
  1042. })
  1043. }
  1044. }
  1045. }
  1046. }
  1047. })
  1048. })
  1049. }else if(_this.uploadFiles3!=null&&_this.uploadFiles3.length>0){
  1050. _this.uploadFiles3.map((rr3,idx3) => {
  1051. let params3 = new FormData();
  1052. params3.append("tableId", _this.form.id);
  1053. params3.append("tableName", "t_yinnong_cash");
  1054. params3.append("bizPath", "yinnong");
  1055. params3.append("fileType", "3");
  1056. params3.append("file", rr3);
  1057. commonAttach(params3).then((r3) => {
  1058. if(idx3 ==(_this.uploadFiles3.length-1)){
  1059. if(_this.form.capitalExpenditureType==2){
  1060. addProjectto(_this.projectForm).then(res => {
  1061. if(_this.form.approvalMode === '1'){
  1062. cashSubmit(_this.form.id).then(res => {
  1063. _this.chargeItme.map((resD,b) => {
  1064. resD.cashId = _this.form.id
  1065. addCashdetail(resD).then((a,rD) => {
  1066. if(b == (_this.chargeItme.length-1)){
  1067. _this.$toast.success('提交成功');
  1068. setTimeout(function(){
  1069. history.go(-1)
  1070. },2000)
  1071. }
  1072. })
  1073. })
  1074. })
  1075. }else{
  1076. offlineCashSubmit(_this.form.id).then(res => {
  1077. _this.chargeItme.map((resD,b) => {
  1078. resD.cashId = _this.form.id
  1079. addCashdetail(resD).then((a,rD) => {
  1080. if(b == (_this.chargeItme.length-1)){
  1081. _this.$toast.success('提交成功');
  1082. setTimeout(function(){
  1083. history.go(-1)
  1084. },2000)
  1085. }
  1086. })
  1087. })
  1088. })
  1089. }
  1090. })
  1091. } else if(_this.form.capitalExpenditureType==4){
  1092. addInfoto(_this.infoForm).then(res => {
  1093. if(_this.form.approvalMode === '1'){
  1094. cashSubmit(_this.form.id).then(res => {
  1095. _this.chargeItme.map((resD,b) => {
  1096. resD.cashId = _this.form.id
  1097. addCashdetail(resD).then((a,rD) => {
  1098. if(b == (_this.chargeItme.length-1)){
  1099. _this.$toast.success('提交成功');
  1100. setTimeout(function(){
  1101. history.go(-1)
  1102. },2000)
  1103. }
  1104. })
  1105. })
  1106. })
  1107. }else{
  1108. offlineCashSubmit(_this.form.id).then(res => {
  1109. _this.chargeItme.map((resD,b) => {
  1110. resD.cashId = _this.form.id
  1111. addCashdetail(resD).then((a,rD) => {
  1112. if(b == (_this.chargeItme.length-1)){
  1113. _this.$toast.success('提交成功');
  1114. setTimeout(function(){
  1115. history.go(-1)
  1116. },2000)
  1117. }
  1118. })
  1119. })
  1120. })
  1121. }
  1122. })
  1123. }else{
  1124. if(_this.form.approvalMode === '1'){
  1125. cashSubmit(_this.form.id).then(res => {
  1126. _this.chargeItme.map((resD,b) => {
  1127. resD.cashId = _this.form.id
  1128. addCashdetail(resD).then((a,rD) => {
  1129. if(b == (_this.chargeItme.length-1)){
  1130. _this.$toast.success('提交成功');
  1131. setTimeout(function(){
  1132. history.go(-1)
  1133. },2000)
  1134. }
  1135. })
  1136. })
  1137. })
  1138. }else{
  1139. offlineCashSubmit(_this.form.id).then(res => {
  1140. _this.chargeItme.map((resD,b) => {
  1141. resD.cashId = _this.form.id
  1142. addCashdetail(resD).then((a,rD) => {
  1143. if(b == (_this.chargeItme.length-1)){
  1144. _this.$toast.success('提交成功');
  1145. setTimeout(function(){
  1146. history.go(-1)
  1147. },2000)
  1148. }
  1149. })
  1150. })
  1151. })
  1152. }
  1153. }
  1154. }
  1155. })
  1156. })
  1157. }else{
  1158. if(_this.form.capitalExpenditureType==2){
  1159. addProjectto(_this.projectForm).then(res => {
  1160. if(_this.form.approvalMode === '1'){
  1161. cashSubmit(_this.form.id).then(res => {
  1162. _this.chargeItme.map((resD,b) => {
  1163. resD.cashId = _this.form.id
  1164. addCashdetail(resD).then((a,rD) => {
  1165. if(b == (_this.chargeItme.length-1)){
  1166. _this.$toast.success('提交成功');
  1167. setTimeout(function(){
  1168. history.go(-1)
  1169. },2000)
  1170. }
  1171. })
  1172. })
  1173. })
  1174. }else{
  1175. offlineCashSubmit(_this.form.id).then(res => {
  1176. _this.chargeItme.map((resD,b) => {
  1177. resD.cashId = _this.form.id
  1178. addCashdetail(resD).then((a,rD) => {
  1179. if(b == (_this.chargeItme.length-1)){
  1180. _this.$toast.success('提交成功');
  1181. setTimeout(function(){
  1182. history.go(-1)
  1183. },2000)
  1184. }
  1185. })
  1186. })
  1187. })
  1188. }
  1189. })
  1190. } else if(_this.form.capitalExpenditureType==4){
  1191. addInfoto(_this.infoForm).then(res => {
  1192. if(_this.form.approvalMode === '1'){
  1193. cashSubmit(_this.form.id).then(res => {
  1194. _this.chargeItme.map((resD,b) => {
  1195. resD.cashId = _this.form.id
  1196. addCashdetail(resD).then((a,rD) => {
  1197. if(b == (_this.chargeItme.length-1)){
  1198. _this.$toast.success('提交成功');
  1199. setTimeout(function(){
  1200. history.go(-1)
  1201. },2000)
  1202. }
  1203. })
  1204. })
  1205. })
  1206. }else{
  1207. offlineCashSubmit(_this.form.id).then(res => {
  1208. _this.chargeItme.map((resD,b) => {
  1209. resD.cashId = _this.form.id
  1210. addCashdetail(resD).then((a,rD) => {
  1211. if(b == (_this.chargeItme.length-1)){
  1212. _this.$toast.success('提交成功');
  1213. setTimeout(function(){
  1214. history.go(-1)
  1215. },2000)
  1216. }
  1217. })
  1218. })
  1219. })
  1220. }
  1221. })
  1222. }else{
  1223. if(_this.form.approvalMode === '1'){
  1224. cashSubmit(_this.form.id).then(res => {
  1225. _this.chargeItme.map((resD,b) => {
  1226. resD.cashId = _this.form.id
  1227. addCashdetail(resD).then((a,rD) => {
  1228. if(b == (_this.chargeItme.length-1)){
  1229. _this.$toast.success('提交成功');
  1230. setTimeout(function(){
  1231. history.go(-1)
  1232. },2000)
  1233. }
  1234. })
  1235. })
  1236. })
  1237. }else{
  1238. offlineCashSubmit(_this.form.id).then(res => {
  1239. _this.chargeItme.map((resD,b) => {
  1240. resD.cashId = _this.form.id
  1241. addCashdetail(resD).then((a,rD) => {
  1242. if(b == (_this.chargeItme.length-1)){
  1243. _this.$toast.success('提交成功');
  1244. setTimeout(function(){
  1245. history.go(-1)
  1246. },2000)
  1247. }
  1248. })
  1249. })
  1250. })
  1251. }
  1252. }
  1253. }
  1254. }
  1255. })
  1256. })
  1257. }else if(this.uploadFiles2!=null&&this.uploadFiles2.length>0){
  1258. this.uploadFiles2.map((rr2,idx2) => {
  1259. let params = new FormData();
  1260. params.append("tableId", _this.form.id);
  1261. params.append("tableName", "t_yinnong_cash");
  1262. params.append("bizPath", "yinnong");
  1263. params.append("fileType", "2");
  1264. params.append("file", rr2);
  1265. commonAttach(params).then((r2) => {
  1266. if(idx2 == (_this.uploadFiles2.length-1)){
  1267. if(_this.uploadFiles3!=null&&_this.uploadFiles3.length>0){
  1268. _this.uploadFiles3.map((rr3,idx3) => {
  1269. let params3 = new FormData();
  1270. params3.append("tableId", _this.form.id);
  1271. params3.append("tableName", "t_yinnong_cash");
  1272. params3.append("bizPath", "yinnong");
  1273. params3.append("fileType", "3");
  1274. params3.append("file", rr3);
  1275. commonAttach(params).then((r3) => {
  1276. if(idx3 == (_this.uploadFiles3.length-1)){
  1277. if(_this.form.capitalExpenditureType==2){
  1278. addProjectto(_this.projectForm).then(res => {
  1279. if(_this.form.approvalMode === '1'){
  1280. cashSubmit(_this.form.id).then(res => {
  1281. _this.chargeItme.map((resD,b) => {
  1282. resD.cashId = _this.form.id
  1283. addCashdetail(resD).then((a,rD) => {
  1284. if(b == (_this.chargeItme.length-1)){
  1285. _this.$toast.success('提交成功');
  1286. setTimeout(function(){
  1287. history.go(-1)
  1288. },2000)
  1289. }
  1290. })
  1291. })
  1292. })
  1293. }else{
  1294. offlineCashSubmit(_this.form.id).then(res => {
  1295. _this.chargeItme.map((resD,b) => {
  1296. resD.cashId = _this.form.id
  1297. addCashdetail(resD).then((a,rD) => {
  1298. if(b == (_this.chargeItme.length-1)){
  1299. _this.$toast.success('提交成功');
  1300. setTimeout(function(){
  1301. history.go(-1)
  1302. },2000)
  1303. }
  1304. })
  1305. })
  1306. })
  1307. }
  1308. })
  1309. } else if(_this.form.capitalExpenditureType==4){
  1310. addInfoto(_this.infoForm).then(res => {
  1311. if(_this.form.approvalMode === '1'){
  1312. cashSubmit(_this.form.id).then(res => {
  1313. _this.chargeItme.map((resD,b) => {
  1314. resD.cashId = _this.form.id
  1315. addCashdetail(resD).then((a,rD) => {
  1316. if(b == (_this.chargeItme.length-1)){
  1317. _this.$toast.success('提交成功');
  1318. setTimeout(function(){
  1319. history.go(-1)
  1320. },2000)
  1321. }
  1322. })
  1323. })
  1324. })
  1325. }else{
  1326. offlineCashSubmit(_this.form.id).then(res => {
  1327. _this.chargeItme.map((resD,b) => {
  1328. resD.cashId = _this.form.id
  1329. addCashdetail(resD).then((a,rD) => {
  1330. if(b == (_this.chargeItme.length-1)){
  1331. _this.$toast.success('提交成功');
  1332. setTimeout(function(){
  1333. history.go(-1)
  1334. },2000)
  1335. }
  1336. })
  1337. })
  1338. })
  1339. }
  1340. })
  1341. }else{
  1342. if(_this.form.approvalMode === '1'){
  1343. cashSubmit(_this.form.id).then(res => {
  1344. _this.chargeItme.map((resD,b) => {
  1345. resD.cashId = _this.form.id
  1346. addCashdetail(resD).then((a,rD) => {
  1347. if(b == (_this.chargeItme.length-1)){
  1348. _this.$toast.success('提交成功');
  1349. setTimeout(function(){
  1350. history.go(-1)
  1351. },2000)
  1352. }
  1353. })
  1354. })
  1355. })
  1356. }else{
  1357. offlineCashSubmit(_this.form.id).then(res => {
  1358. _this.chargeItme.map((resD,b) => {
  1359. resD.cashId = _this.form.id
  1360. addCashdetail(resD).then((a,rD) => {
  1361. if(b == (_this.chargeItme.length-1)){
  1362. _this.$toast.success('提交成功');
  1363. setTimeout(function(){
  1364. history.go(-1)
  1365. },2000)
  1366. }
  1367. })
  1368. })
  1369. })
  1370. }
  1371. }
  1372. }
  1373. })
  1374. })
  1375. }else{
  1376. if(_this.form.capitalExpenditureType==2){
  1377. addProjectto(_this.projectForm).then(res => {
  1378. if(_this.form.approvalMode === '1'){
  1379. cashSubmit(_this.form.id).then(res => {
  1380. _this.chargeItme.map((resD,b) => {
  1381. resD.cashId = _this.form.id
  1382. addCashdetail(resD).then((a,rD) => {
  1383. if(b == (_this.chargeItme.length-1)){
  1384. _this.$toast.success('提交成功');
  1385. setTimeout(function(){
  1386. history.go(-1)
  1387. },2000)
  1388. }
  1389. })
  1390. })
  1391. })
  1392. }else{
  1393. offlineCashSubmit(_this.form.id).then(res => {
  1394. _this.chargeItme.map((resD,b) => {
  1395. resD.cashId = _this.form.id
  1396. addCashdetail(resD).then((a,rD) => {
  1397. if(b == (_this.chargeItme.length-1)){
  1398. _this.$toast.success('提交成功');
  1399. setTimeout(function(){
  1400. history.go(-1)
  1401. },2000)
  1402. }
  1403. })
  1404. })
  1405. })
  1406. }
  1407. })
  1408. } else if(_this.form.capitalExpenditureType==4){
  1409. addInfoto(_this.infoForm).then(res => {
  1410. if(_this.form.approvalMode === '1'){
  1411. cashSubmit(_this.form.id).then(res => {
  1412. _this.chargeItme.map((resD,b) => {
  1413. resD.cashId = _this.form.id
  1414. addCashdetail(resD).then((a,rD) => {
  1415. if(b == (_this.chargeItme.length-1)){
  1416. _this.$toast.success('提交成功');
  1417. setTimeout(function(){
  1418. history.go(-1)
  1419. },2000)
  1420. }
  1421. })
  1422. })
  1423. })
  1424. }else{
  1425. offlineCashSubmit(_this.form.id).then(res => {
  1426. _this.chargeItme.map((resD,b) => {
  1427. resD.cashId = _this.form.id
  1428. addCashdetail(resD).then((a,rD) => {
  1429. if(b == (_this.chargeItme.length-1)){
  1430. _this.$toast.success('提交成功');
  1431. setTimeout(function(){
  1432. history.go(-1)
  1433. },2000)
  1434. }
  1435. })
  1436. })
  1437. })
  1438. }
  1439. })
  1440. }else{
  1441. if(_this.form.approvalMode === '1'){
  1442. cashSubmit(_this.form.id).then(res => {
  1443. _this.chargeItme.map((resD,b) => {
  1444. resD.cashId = _this.form.id
  1445. addCashdetail(resD).then((a,rD) => {
  1446. if(b == (_this.chargeItme.length-1)){
  1447. _this.$toast.success('提交成功');
  1448. setTimeout(function(){
  1449. history.go(-1)
  1450. },2000)
  1451. }
  1452. })
  1453. })
  1454. })
  1455. }else{
  1456. offlineCashSubmit(_this.form.id).then(res => {
  1457. _this.chargeItme.map((resD,b) => {
  1458. resD.cashId = _this.form.id
  1459. addCashdetail(resD).then((a,rD) => {
  1460. if(b == (_this.chargeItme.length-1)){
  1461. _this.$toast.success('提交成功');
  1462. setTimeout(function(){
  1463. history.go(-1)
  1464. },2000)
  1465. }
  1466. })
  1467. })
  1468. })
  1469. }
  1470. }
  1471. }
  1472. }
  1473. })
  1474. })
  1475. }else if(this.uploadFiles3!=null&&this.uploadFiles3.length>0){
  1476. this.uploadFiles3.map((rr3,idx3) => {
  1477. let params = new FormData();
  1478. params.append("tableId", _this.form.id);
  1479. params.append("tableName", "t_yinnong_cash");
  1480. params.append("bizPath", "yinnong");
  1481. params.append("fileType", "3");
  1482. params.append("file", rr3);
  1483. commonAttach(params).then((r) => {
  1484. if(idx3 == (_this.uploadFiles3.length-1)){
  1485. if(_this.form.capitalExpenditureType==2){
  1486. addProjectto(_this.projectForm).then(res => {
  1487. if(_this.form.approvalMode === '1'){
  1488. cashSubmit(_this.form.id).then(res => {
  1489. _this.chargeItme.map((resD,b) => {
  1490. resD.cashId = _this.form.id
  1491. addCashdetail(resD).then((a,rD) => {
  1492. if(b == (_this.chargeItme.length-1)){
  1493. _this.$toast.success('提交成功');
  1494. setTimeout(function(){
  1495. history.go(-1)
  1496. },2000)
  1497. }
  1498. })
  1499. })
  1500. })
  1501. }else{
  1502. offlineCashSubmit(_this.form.id).then(res => {
  1503. _this.chargeItme.map((resD,b) => {
  1504. resD.cashId = _this.form.id
  1505. addCashdetail(resD).then((a,rD) => {
  1506. if(b == (_this.chargeItme.length-1)){
  1507. _this.$toast.success('提交成功');
  1508. setTimeout(function(){
  1509. history.go(-1)
  1510. },2000)
  1511. }
  1512. })
  1513. })
  1514. })
  1515. }
  1516. })
  1517. } else if(_this.form.capitalExpenditureType==4){
  1518. addInfoto(_this.infoForm).then(res => {
  1519. if(_this.form.approvalMode === '1'){
  1520. cashSubmit(_this.form.id).then(res => {
  1521. _this.chargeItme.map((resD,b) => {
  1522. resD.cashId = _this.form.id
  1523. addCashdetail(resD).then((a,rD) => {
  1524. if(b == (_this.chargeItme.length-1)){
  1525. _this.$toast.success('提交成功');
  1526. setTimeout(function(){
  1527. history.go(-1)
  1528. },2000)
  1529. }
  1530. })
  1531. })
  1532. })
  1533. }else{
  1534. offlineCashSubmit(_this.form.id).then(res => {
  1535. _this.chargeItme.map((resD,b) => {
  1536. resD.cashId = _this.form.id
  1537. addCashdetail(resD).then((a,rD) => {
  1538. if(b == (_this.chargeItme.length-1)){
  1539. _this.$toast.success('提交成功');
  1540. setTimeout(function(){
  1541. history.go(-1)
  1542. },2000)
  1543. }
  1544. })
  1545. })
  1546. })
  1547. }
  1548. })
  1549. }else{
  1550. if(_this.form.approvalMode === '1'){
  1551. cashSubmit(_this.form.id).then(res => {
  1552. _this.chargeItme.map((resD,b) => {
  1553. resD.cashId = _this.form.id
  1554. addCashdetail(resD).then((a,rD) => {
  1555. if(b == (_this.chargeItme.length-1)){
  1556. _this.$toast.success('提交成功');
  1557. setTimeout(function(){
  1558. history.go(-1)
  1559. },2000)
  1560. }
  1561. })
  1562. })
  1563. })
  1564. }else{
  1565. offlineCashSubmit(_this.form.id).then(res => {
  1566. _this.chargeItme.map((resD,b) => {
  1567. resD.cashId = _this.form.id
  1568. addCashdetail(resD).then((a,rD) => {
  1569. if(b == (_this.chargeItme.length-1)){
  1570. _this.$toast.success('提交成功');
  1571. setTimeout(function(){
  1572. history.go(-1)
  1573. },2000)
  1574. }
  1575. })
  1576. })
  1577. })
  1578. }
  1579. }
  1580. }
  1581. })
  1582. })
  1583. }else{
  1584. if(this.form.capitalExpenditureType==2){
  1585. addProjectto(this.projectForm).then(res => {
  1586. if(_this.form.approvalMode === '1'){
  1587. cashSubmit(_this.form.id).then(res => {
  1588. _this.chargeItme.map((resD,b) => {
  1589. resD.cashId = _this.form.id
  1590. addCashdetail(resD).then((a,rD) => {
  1591. if(b == (_this.chargeItme.length-1)){
  1592. _this.$toast.success('提交成功');
  1593. setTimeout(function(){
  1594. history.go(-1)
  1595. },2000)
  1596. }
  1597. })
  1598. })
  1599. })
  1600. }else{
  1601. offlineCashSubmit(_this.form.id).then(res => {
  1602. _this.chargeItme.map((resD,b) => {
  1603. resD.cashId = _this.form.id
  1604. addCashdetail(resD).then((a,rD) => {
  1605. if(b == (_this.chargeItme.length-1)){
  1606. _this.$toast.success('提交成功');
  1607. setTimeout(function(){
  1608. history.go(-1)
  1609. },2000)
  1610. }
  1611. })
  1612. })
  1613. })
  1614. }
  1615. })
  1616. } else if(this.form.capitalExpenditureType==4){
  1617. addInfoto(this.infoForm).then(res => {
  1618. if(_this.form.approvalMode === '1'){
  1619. cashSubmit(_this.form.id).then(res => {
  1620. _this.chargeItme.map((resD,b) => {
  1621. resD.cashId = _this.form.id
  1622. addCashdetail(resD).then((a,rD) => {
  1623. if(b == (_this.chargeItme.length-1)){
  1624. _this.$toast.success('提交成功');
  1625. setTimeout(function(){
  1626. history.go(-1)
  1627. },2000)
  1628. }
  1629. })
  1630. })
  1631. })
  1632. }else{
  1633. offlineCashSubmit(_this.form.id).then(res => {
  1634. _this.chargeItme.map((resD,b) => {
  1635. resD.cashId = _this.form.id
  1636. addCashdetail(resD).then((a,rD) => {
  1637. if(b == (_this.chargeItme.length-1)){
  1638. _this.$toast.success('提交成功');
  1639. setTimeout(function(){
  1640. history.go(-1)
  1641. },2000)
  1642. }
  1643. })
  1644. })
  1645. })
  1646. }
  1647. })
  1648. }else{
  1649. if(_this.form.approvalMode === '1'){
  1650. cashSubmit(_this.form.id).then(res => {
  1651. _this.chargeItme.map((resD,b) => {
  1652. resD.cashId = _this.form.id
  1653. addCashdetail(resD).then((a,rD) => {
  1654. if(b == (_this.chargeItme.length-1)){
  1655. _this.$toast.success('提交成功');
  1656. setTimeout(function(){
  1657. history.go(-1)
  1658. },2000)
  1659. }
  1660. })
  1661. })
  1662. })
  1663. }else{
  1664. offlineCashSubmit(_this.form.id).then(res => {
  1665. _this.chargeItme.map((resD,b) => {
  1666. resD.cashId = _this.form.id
  1667. addCashdetail(resD).then((a,rD) => {
  1668. if(b == (_this.chargeItme.length-1)){
  1669. _this.$toast.success('提交成功');
  1670. setTimeout(function(){
  1671. history.go(-1)
  1672. },2000)
  1673. }
  1674. })
  1675. })
  1676. })
  1677. }
  1678. }
  1679. }
  1680. });
  1681. }
  1682. },
  1683. goUpdate(){
  1684. let _this = this
  1685. if(this.chargeItme.length<1){
  1686. this.$notify({ type: 'danger', message: '请添加收款方信息' });
  1687. return;
  1688. }
  1689. if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
  1690. this.$notify({ type: 'danger', message: '付款事由禁止包含!' });
  1691. return;
  1692. }
  1693. if(this.form.capitalExpenditureType==2){
  1694. if(this.projectForm.projectName==""||this.projectForm.projectName==null){
  1695. this.$notify({ type: 'danger', message: '请选择项目名称!' });
  1696. return;
  1697. }
  1698. if(this.projectForm.projectBillNum==""||this.projectForm.projectBillNum==null){
  1699. this.$notify({ type: 'danger', message: '请输入工程发票号!' });
  1700. return;
  1701. }
  1702. }
  1703. if(this.form.capitalExpenditureType==4){
  1704. if(this.infoForm.name==""||this.infoForm.name==null){
  1705. this.$notify({ type: 'danger', message: '请选择合同名称!' });
  1706. return;
  1707. }
  1708. if(this.infoForm.code==""||this.infoForm.code==null){
  1709. this.$notify({ type: 'danger', message: '请输入合同编码!' });
  1710. return;
  1711. }
  1712. if(this.infoForm.totalAmount==""||this.infoForm.totalAmount==null){
  1713. this.$notify({ type: 'danger', message: '请输入合同价款!' });
  1714. return;
  1715. }
  1716. }
  1717. this.projectForm.outId = this.form.id
  1718. updateCash(this.form).then(response => {
  1719. this.projectForm.outId = _this.form.id
  1720. this.infoForm.transferId = _this.form.id
  1721. this.$set(this.projectForm, "ynType", '2');
  1722. if(this.uploadFiles1!=null&&this.uploadFiles1.length>0){
  1723. this.uploadFiles1.map((rr1,idx1) => {
  1724. let params1 = new FormData();
  1725. params1.append("tableId", _this.form.id);
  1726. params1.append("tableName", "t_yinnong_cash");
  1727. params1.append("bizPath", "yinnong");
  1728. params1.append("fileType", "1");
  1729. params1.append("file", rr1);
  1730. commonAttach(params1).then((r1) => {
  1731. if(idx1 == (_this.uploadFiles1.length-1)){
  1732. if(_this.uploadFiles2!=null&&_this.uploadFiles2.length>0){
  1733. _this.uploadFiles2.map((rr2,idx2) => {
  1734. let params2 = new FormData();
  1735. params2.append("tableId", _this.form.id);
  1736. params2.append("tableName", "t_yinnong_cash");
  1737. params2.append("bizPath", "yinnong");
  1738. params2.append("fileType", "2");
  1739. params2.append("file", rr2);
  1740. commonAttach(params2).then((r2) => {
  1741. if(idx2 == (_this.uploadFiles2.length-1)){
  1742. if(_this.uploadFiles3!=null&&_this.uploadFiles3.length>0){
  1743. _this.uploadFiles3.map((rr3,idx3) => {
  1744. let params3 = new FormData();
  1745. params3.append("tableId", _this.form.id);
  1746. params3.append("tableName", "t_yinnong_cash");
  1747. params3.append("bizPath", "yinnong");
  1748. params3.append("fileType", "3");
  1749. params3.append("file", rr3);
  1750. commonAttach(params3).then((r3) => {
  1751. if(idx3 == (_this.uploadFiles3.length-1)){
  1752. if(_this.form.capitalExpenditureType==2){
  1753. addProjectto(_this.projectForm).then(res => {
  1754. _this.chargeItme.map((resD,b) => {
  1755. resD.cashId = _this.form.id
  1756. addCashdetail(resD).then((a,rD) => {
  1757. if(b == (_this.chargeItme.length-1)){
  1758. _this.$toast.success('保存成功');
  1759. setTimeout(function(){
  1760. history.go(-1)
  1761. },2000)
  1762. }
  1763. })
  1764. })
  1765. })
  1766. } else if(_this.form.capitalExpenditureType==4){
  1767. addInfoto(_this.infoForm).then(res => {
  1768. _this.chargeItme.map((resD,b) => {
  1769. resD.cashId = _this.form.id
  1770. addCashdetail(resD).then((a,rD) => {
  1771. if(b == (_this.chargeItme.length-1)){
  1772. _this.$toast.success('保存成功');
  1773. setTimeout(function(){
  1774. history.go(-1)
  1775. },2000)
  1776. }
  1777. })
  1778. })
  1779. })
  1780. }else{
  1781. _this.chargeItme.map((resD,b) => {
  1782. resD.cashId = _this.form.id
  1783. addCashdetail(resD).then((a,rD) => {
  1784. if(b == (_this.chargeItme.length-1)){
  1785. _this.$toast.success('保存成功');
  1786. setTimeout(function(){
  1787. history.go(-1)
  1788. },2000)
  1789. }
  1790. })
  1791. })
  1792. }
  1793. }
  1794. })
  1795. })
  1796. }else{
  1797. if(_this.form.capitalExpenditureType==2){
  1798. addProjectto(_this.projectForm).then(res => {
  1799. _this.chargeItme.map((resD,b) => {
  1800. resD.cashId = _this.form.id
  1801. addCashdetail(resD).then((a,rD) => {
  1802. if(b == (_this.chargeItme.length-1)){
  1803. _this.$toast.success('保存成功');
  1804. setTimeout(function(){
  1805. history.go(-1)
  1806. },2000)
  1807. }
  1808. })
  1809. })
  1810. })
  1811. } else if(_this.form.capitalExpenditureType==4){
  1812. addInfoto(_this.infoForm).then(res => {
  1813. _this.chargeItme.map((resD,b) => {
  1814. resD.cashId = _this.form.id
  1815. addCashdetail(resD).then((a,rD) => {
  1816. if(b == (_this.chargeItme.length-1)){
  1817. _this.$toast.success('保存成功');
  1818. setTimeout(function(){
  1819. history.go(-1)
  1820. },2000)
  1821. }
  1822. })
  1823. })
  1824. })
  1825. }else{
  1826. _this.chargeItme.map((resD,b) => {
  1827. resD.cashId = _this.form.id
  1828. addCashdetail(resD).then((a,rD) => {
  1829. if(b == (_this.chargeItme.length-1)){
  1830. _this.$toast.success('保存成功');
  1831. setTimeout(function(){
  1832. history.go(-1)
  1833. },2000)
  1834. }
  1835. })
  1836. })
  1837. }
  1838. }
  1839. }
  1840. })
  1841. })
  1842. }else if(_this.uploadFiles3!=null&&_this.uploadFiles3.length>0){
  1843. _this.uploadFiles3.map((rr3,idx3) => {
  1844. let params3 = new FormData();
  1845. params3.append("tableId", _this.form.id);
  1846. params3.append("tableName", "t_yinnong_cash");
  1847. params3.append("bizPath", "yinnong");
  1848. params3.append("fileType", "3");
  1849. params3.append("file", rr3);
  1850. commonAttach(params3).then((r3) => {
  1851. if(idx3 ==(_this.uploadFiles3.length-1)){
  1852. if(_this.form.capitalExpenditureType==2){
  1853. addProjectto(_this.projectForm).then(res => {
  1854. _this.chargeItme.map((resD,b) => {
  1855. resD.cashId = _this.form.id
  1856. addCashdetail(resD).then((a,rD) => {
  1857. if(b == (_this.chargeItme.length-1)){
  1858. _this.$toast.success('保存成功');
  1859. setTimeout(function(){
  1860. history.go(-1)
  1861. },2000)
  1862. }
  1863. })
  1864. })
  1865. })
  1866. } else if(_this.form.capitalExpenditureType==4){
  1867. addInfoto(_this.infoForm).then(res => {
  1868. _this.chargeItme.map((resD,b) => {
  1869. resD.cashId = _this.form.id
  1870. addCashdetail(resD).then((a,rD) => {
  1871. if(b == (_this.chargeItme.length-1)){
  1872. _this.$toast.success('保存成功');
  1873. setTimeout(function(){
  1874. history.go(-1)
  1875. },2000)
  1876. }
  1877. })
  1878. })
  1879. })
  1880. }else{
  1881. _this.chargeItme.map((resD,b) => {
  1882. resD.cashId = _this.form.id
  1883. addCashdetail(resD).then((a,rD) => {
  1884. if(b == (_this.chargeItme.length-1)){
  1885. _this.$toast.success('保存成功');
  1886. setTimeout(function(){
  1887. history.go(-1)
  1888. },2000)
  1889. }
  1890. })
  1891. })
  1892. }
  1893. }
  1894. })
  1895. })
  1896. }else{
  1897. if(_this.form.capitalExpenditureType==2){
  1898. addProjectto(_this.projectForm).then(res => {
  1899. _this.chargeItme.map((resD,b) => {
  1900. resD.cashId = _this.form.id
  1901. addCashdetail(resD).then((a,rD) => {
  1902. if(b == (_this.chargeItme.length-1)){
  1903. _this.$toast.success('保存成功');
  1904. setTimeout(function(){
  1905. history.go(-1)
  1906. },2000)
  1907. }
  1908. })
  1909. })
  1910. })
  1911. } else if(_this.form.capitalExpenditureType==4){
  1912. addInfoto(_this.infoForm).then(res => {
  1913. _this.chargeItme.map((resD,b) => {
  1914. resD.cashId = _this.form.id
  1915. addCashdetail(resD).then((a,rD) => {
  1916. if(b == (_this.chargeItme.length-1)){
  1917. _this.$toast.success('保存成功');
  1918. setTimeout(function(){
  1919. history.go(-1)
  1920. },2000)
  1921. }
  1922. })
  1923. })
  1924. })
  1925. }else{
  1926. _this.chargeItme.map((resD,b) => {
  1927. resD.cashId = _this.form.id
  1928. addCashdetail(resD).then((a,rD) => {
  1929. if(b == (_this.chargeItme.length-1)){
  1930. _this.$toast.success('保存成功');
  1931. setTimeout(function(){
  1932. history.go(-1)
  1933. },2000)
  1934. }
  1935. })
  1936. })
  1937. }
  1938. }
  1939. }
  1940. })
  1941. })
  1942. }else if(this.uploadFiles2!=null&&this.uploadFiles2.length>0){
  1943. this.uploadFiles2.map((rr2,idx2) => {
  1944. let params = new FormData();
  1945. params.append("tableId", _this.form.id);
  1946. params.append("tableName", "t_yinnong_cash");
  1947. params.append("bizPath", "yinnong");
  1948. params.append("fileType", "2");
  1949. params.append("file", rr2);
  1950. commonAttach(params).then((r2) => {
  1951. if(idx2 == (_this.uploadFiles2.length-1)){
  1952. if(_this.uploadFiles3!=null&&_this.uploadFiles3.length>0){
  1953. _this.uploadFiles3.map((rr3,idx3) => {
  1954. let params3 = new FormData();
  1955. params3.append("tableId", _this.form.id);
  1956. params3.append("tableName", "t_yinnong_cash");
  1957. params3.append("bizPath", "yinnong");
  1958. params3.append("fileType", "3");
  1959. params3.append("file", rr3);
  1960. commonAttach(params).then((r3) => {
  1961. if(idx3 == (_this.uploadFiles3.length-1)){
  1962. if(_this.form.capitalExpenditureType==2){
  1963. addProjectto(_this.projectForm).then(res => {
  1964. _this.chargeItme.map((resD,b) => {
  1965. resD.cashId = _this.form.id
  1966. addCashdetail(resD).then((a,rD) => {
  1967. if(b == (_this.chargeItme.length-1)){
  1968. _this.$toast.success('保存成功');
  1969. setTimeout(function(){
  1970. history.go(-1)
  1971. },2000)
  1972. }
  1973. })
  1974. })
  1975. })
  1976. } else if(_this.form.capitalExpenditureType==4){
  1977. addInfoto(_this.infoForm).then(res => {
  1978. _this.chargeItme.map((resD,b) => {
  1979. resD.cashId = _this.form.id
  1980. addCashdetail(resD).then((a,rD) => {
  1981. if(b == (_this.chargeItme.length-1)){
  1982. _this.$toast.success('保存成功');
  1983. setTimeout(function(){
  1984. history.go(-1)
  1985. },2000)
  1986. }
  1987. })
  1988. })
  1989. })
  1990. }else{
  1991. _this.chargeItme.map((resD,b) => {
  1992. resD.cashId = _this.form.id
  1993. addCashdetail(resD).then((a,rD) => {
  1994. if(b == (_this.chargeItme.length-1)){
  1995. _this.$toast.success('保存成功');
  1996. setTimeout(function(){
  1997. history.go(-1)
  1998. },2000)
  1999. }
  2000. })
  2001. })
  2002. }
  2003. }
  2004. })
  2005. })
  2006. }else{
  2007. if(_this.form.capitalExpenditureType==2){
  2008. addProjectto(_this.projectForm).then(res => {
  2009. _this.chargeItme.map((resD,b) => {
  2010. resD.cashId = _this.form.id
  2011. addCashdetail(resD).then((a,rD) => {
  2012. if(b == (_this.chargeItme.length-1)){
  2013. _this.$toast.success('保存成功');
  2014. setTimeout(function(){
  2015. history.go(-1)
  2016. },2000)
  2017. }
  2018. })
  2019. })
  2020. })
  2021. } else if(_this.form.capitalExpenditureType==4){
  2022. addInfoto(_this.infoForm).then(res => {
  2023. _this.chargeItme.map((resD,b) => {
  2024. resD.cashId = _this.form.id
  2025. addCashdetail(resD).then((a,rD) => {
  2026. if(b == (_this.chargeItme.length-1)){
  2027. _this.$toast.success('保存成功');
  2028. setTimeout(function(){
  2029. history.go(-1)
  2030. },2000)
  2031. }
  2032. })
  2033. })
  2034. })
  2035. }else{
  2036. _this.chargeItme.map((resD,b) => {
  2037. resD.cashId = _this.form.id
  2038. addCashdetail(resD).then((a,rD) => {
  2039. if(b == (_this.chargeItme.length-1)){
  2040. _this.$toast.success('保存成功');
  2041. setTimeout(function(){
  2042. history.go(-1)
  2043. },2000)
  2044. }
  2045. })
  2046. })
  2047. }
  2048. }
  2049. }
  2050. })
  2051. })
  2052. }else if(this.uploadFiles3!=null&&this.uploadFiles3.length>0){
  2053. this.uploadFiles3.map((rr3,idx3) => {
  2054. let params = new FormData();
  2055. params.append("tableId", _this.form.id);
  2056. params.append("tableName", "t_yinnong_cash");
  2057. params.append("bizPath", "yinnong");
  2058. params.append("fileType", "3");
  2059. params.append("file", rr3);
  2060. commonAttach(params).then((r) => {
  2061. if(idx3 == (_this.uploadFiles3.length-1)){
  2062. if(_this.form.capitalExpenditureType==2){
  2063. addProjectto(_this.projectForm).then(res => {
  2064. _this.chargeItme.map((resD,b) => {
  2065. resD.cashId = _this.form.id
  2066. addCashdetail(resD).then((a,rD) => {
  2067. if(b == (_this.chargeItme.length-1)){
  2068. _this.$toast.success('保存成功');
  2069. setTimeout(function(){
  2070. history.go(-1)
  2071. },2000)
  2072. }
  2073. })
  2074. })
  2075. })
  2076. } else if(_this.form.capitalExpenditureType==4){
  2077. addInfoto(_this.infoForm).then(res => {
  2078. _this.chargeItme.map((resD,b) => {
  2079. resD.cashId = _this.form.id
  2080. addCashdetail(resD).then((a,rD) => {
  2081. if(b == (_this.chargeItme.length-1)){
  2082. _this.$toast.success('保存成功');
  2083. setTimeout(function(){
  2084. history.go(-1)
  2085. },2000)
  2086. }
  2087. })
  2088. })
  2089. })
  2090. }else{
  2091. _this.chargeItme.map((resD,b) => {
  2092. resD.cashId = _this.form.id
  2093. addCashdetail(resD).then((a,rD) => {
  2094. if(b == (_this.chargeItme.length-1)){
  2095. _this.$toast.success('保存成功');
  2096. setTimeout(function(){
  2097. history.go(-1)
  2098. },2000)
  2099. }
  2100. })
  2101. })
  2102. }
  2103. }
  2104. })
  2105. })
  2106. }else{
  2107. if(this.form.capitalExpenditureType==2){
  2108. addProjectto(this.projectForm).then(res => {
  2109. _this.chargeItme.map((resD,b) => {
  2110. resD.cashId = _this.form.id
  2111. addCashdetail(resD).then((a,rD) => {
  2112. if(b == (_this.chargeItme.length-1)){
  2113. _this.$toast.success('保存成功');
  2114. setTimeout(function(){
  2115. history.go(-1)
  2116. },2000)
  2117. }
  2118. })
  2119. })
  2120. })
  2121. } else if(this.form.capitalExpenditureType==4){
  2122. addInfoto(this.infoForm).then(res => {
  2123. _this.chargeItme.map((resD,b) => {
  2124. resD.cashId = _this.form.id
  2125. addCashdetail(resD).then((a,rD) => {
  2126. if(b == (_this.chargeItme.length-1)){
  2127. _this.$toast.success('保存成功');
  2128. setTimeout(function(){
  2129. history.go(-1)
  2130. },2000)
  2131. }
  2132. })
  2133. })
  2134. })
  2135. }else{
  2136. _this.chargeItme.map((resD,b) => {
  2137. resD.cashId = _this.form.id
  2138. addCashdetail(resD).then((a,rD) => {
  2139. if(b == (_this.chargeItme.length-1)){
  2140. _this.$toast.success('保存成功');
  2141. setTimeout(function(){
  2142. history.go(-1)
  2143. },2000)
  2144. }
  2145. })
  2146. })
  2147. }
  2148. }
  2149. });
  2150. },
  2151. payeeSelectChange(select, i) {
  2152. let obj = {};
  2153. let fuzhitype = 0;
  2154. obj = this.payeeList.find((account) => {
  2155. //model就是上面的数据源
  2156. return account.id === select ; //筛选出匹配数据
  2157. });
  2158. if(this.chargeItme != [] && this.chargeItme.length>1){
  2159. this.chargeItme.some((value, index) => {
  2160. if(value.payeeAccount != undefined &&value.payeeAccount != '' && obj.payeeAccount == value.payeeAccount&&index!=i){
  2161. fuzhitype = 2;
  2162. return true;
  2163. }
  2164. if(value.accountType != undefined &&value.accountType != '' && obj.accountType != value.accountType&&index!=i){
  2165. fuzhitype = 1;
  2166. return true;
  2167. }
  2168. });
  2169. }
  2170. if(fuzhitype == 0){
  2171. this.$set(this.chargeItme[i], "payee",obj.payee)
  2172. this.$set(this.chargeItme[i], "bankType", obj.bankType)
  2173. this.$set(this.chargeItme[i], "payeeId", obj.id);
  2174. this.$set(this.chargeItme[i], "payeeAccount", obj.payeeAccount);
  2175. this.$set(this.chargeItme[i], "bankDeposit", obj.bankDeposit);
  2176. this.$set(this.chargeItme[i], "accountType", obj.accountType);
  2177. }else if(fuzhitype == 1){
  2178. this.$set(this.chargeItme[i], "payee",'')
  2179. this.$set(this.chargeItme[i], "bankType",'')
  2180. this.$set(this.chargeItme[i], "payeeId", '');
  2181. this.$set(this.chargeItme[i], "payeeAccount", '');
  2182. this.$set(this.chargeItme[i], "bankDeposit", '');
  2183. this.$set(this.chargeItme[i], "accountType", '');
  2184. this.$notify({ type: 'danger', message: '请选择账户类型相同的收款方!' });
  2185. }else if(fuzhitype == 2){
  2186. this.$set(this.chargeItme[i], "payee",'')
  2187. this.$set(this.chargeItme[i], "bankType",'')
  2188. this.$set(this.chargeItme[i], "payeeId", '');
  2189. this.$set(this.chargeItme[i], "payeeAccount", '');
  2190. this.$set(this.chargeItme[i], "bankDeposit", '');
  2191. this.$set(this.chargeItme[i], "accountType", '');
  2192. this.$notify({ type: 'danger', message: '收款方已存在!' });
  2193. }
  2194. },
  2195. selectChange(select) {
  2196. let obj = {};
  2197. obj = this.payerOptions.find((account) => {
  2198. //model就是上面的数据源
  2199. return account.id === select; //筛选出匹配数据
  2200. });
  2201. if(obj.payerFrom==1&&obj.operatorCode != null && obj.operatorCode != "" &&
  2202. obj.enterpriseCode != null && obj.enterpriseCode != "" &&
  2203. obj.accountPassword != null && obj.accountPassword != ""){
  2204. this.$set(this.form, "bookId", obj.bookId);
  2205. this.$set(this.form, "deptId", obj.deptId);
  2206. this.$set(this.form, "cashierId", obj.id);
  2207. this.$set(this.form, "payer", obj.accountName);
  2208. this.$set(this.form, "payerAccount", obj.bankAccountNumber);
  2209. this.$set(this.form, "operatorCode", obj.operatorCode);
  2210. this.$set(this.form, "enterpriseCode", obj.enterpriseCode);
  2211. this.$set(this.form, "payerFrom", '1');
  2212. }else{
  2213. if(obj.payerFrom==1){
  2214. this.diglogStatus = false;
  2215. this.$notify({ type: 'danger', message: "请完善付款方“操作员代码”、“企业编码”、“支付口令”等信息!" });
  2216. this.$set(this.form,"payer","")
  2217. this.$set(this.form,"payerAccount","")
  2218. }else{
  2219. this.$set(this.form, "payerFrom", obj.parerFrom);
  2220. if(obj.operatorCode!=null&&obj.operatorCode!=''){
  2221. this.$set(this.form, "operatorCode", obj.operatorCode);
  2222. }else{
  2223. this.$set(this.form, "operatorCode", '');
  2224. }
  2225. if(obj.enterpriseCode!=null&&obj.enterpriseCode!=''){
  2226. this.$set(this.form, "enterpriseCode", obj.enterpriseCode);
  2227. }else{
  2228. this.$set(this.form, "enterpriseCode", '');
  2229. }
  2230. if(obj.accountPassword!=null&&obj.accountPassword!=''){
  2231. this.$set(this.form, "accountPassword", obj.accountPassword);
  2232. }else{
  2233. this.$set(this.form, "accountPassword", '');
  2234. }
  2235. this.$set(this.form, "bookId",'');
  2236. this.$set(this.form, "deptId", '');
  2237. this.$set(this.form, "cashierId", obj.id);
  2238. this.$set(this.form, "payer", obj.accountName);
  2239. if(obj.payerFrom==6){
  2240. getQmyeFlow(obj.bankAccountNumber).then((response) => {
  2241. this.$set(this.form, "payerAccount", response.data);
  2242. });
  2243. }else {
  2244. this.$set(this.form, "payerAccount", obj.bankAccountNumber);
  2245. }
  2246. }
  2247. }
  2248. },
  2249. beforeRead1(file) {
  2250. this.uploadFiles1.push(file.file);
  2251. },
  2252. deleteFile1(file){
  2253. this.uploadFiles1.map((response,index) => {
  2254. if(file.file == response){
  2255. this.uploadFiles1.splice(index,1)
  2256. }
  2257. })
  2258. if(file.id){
  2259. systemAttachment(file.id).then((res) => {
  2260. });
  2261. }
  2262. },
  2263. beforeRead2(file) {
  2264. this.uploadFiles2.push(file.file);
  2265. },
  2266. deleteFile2(file){
  2267. this.uploadFiles2.map((response,index) => {
  2268. if(file.file == response){
  2269. this.uploadFiles2.splice(index,1)
  2270. }
  2271. })
  2272. if(file.id){
  2273. systemAttachment(file.id).then((res) => {
  2274. });
  2275. }
  2276. },
  2277. beforeRead3(file) {
  2278. this.uploadFiles3.push(file.file);
  2279. },
  2280. deleteFile3(file){
  2281. this.uploadFiles3.map((response,index) => {
  2282. if(file.file == response){
  2283. this.uploadFiles3.splice(index,1)
  2284. }
  2285. })
  2286. if(file.id){
  2287. systemAttachment(file.id).then((res) => {
  2288. });
  2289. }
  2290. },
  2291. getFileList(){
  2292. let oData1= {
  2293. tableId: this.$route.query.id,
  2294. tableName: "t_yinnong_cash",
  2295. bizPath: "yinnong",
  2296. fileType: "1",
  2297. }
  2298. attachmentList(oData1).then(res => {
  2299. res.rows.map(r => {
  2300. let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
  2301. this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id})
  2302. })
  2303. })
  2304. let oData2= {
  2305. tableId: this.$route.query.id,
  2306. tableName: "t_yinnong_cash",
  2307. bizPath: "yinnong",
  2308. fileType: "2",
  2309. }
  2310. attachmentList(oData2).then(res => {
  2311. res.rows.map(r => {
  2312. let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
  2313. this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id})
  2314. })
  2315. })
  2316. let oData3= {
  2317. tableId: this.$route.query.id,
  2318. tableName: "t_yinnong_cash",
  2319. bizPath: "yinnong",
  2320. fileType: "3",
  2321. }
  2322. attachmentList(oData3).then(res => {
  2323. res.rows.map(r => {
  2324. let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
  2325. this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id})
  2326. })
  2327. })
  2328. },
  2329. goBack(){
  2330. window.history.go(-1)
  2331. },
  2332. //删除家庭成员
  2333. deleteChargeItme(index){
  2334. this.chargeItme.splice(index,1)
  2335. },
  2336. },
  2337. }
  2338. </script>
  2339. <style scoped lang="scss">
  2340. .app-container {
  2341. padding: 2% 0;
  2342. }
  2343. .main_title{
  2344. font-size: 0.4rem;
  2345. color: #1D6FE9;
  2346. margin: 0.2rem 6%;
  2347. position: relative;
  2348. }
  2349. .main_box{
  2350. width: 96%;
  2351. margin: 0 auto;
  2352. border-radius: 6px;
  2353. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  2354. overflow: hidden;
  2355. background-color: #FFF;
  2356. }
  2357. .submitButton{
  2358. width: 80%;
  2359. margin: 0 auto;
  2360. background-color: #1D6FE9;
  2361. }
  2362. .addFamily{
  2363. position: absolute;
  2364. top: -2px;
  2365. right: 0;
  2366. border-radius: 50%;
  2367. }
  2368. .deleteFamily{
  2369. position: absolute;
  2370. top: 0rem;
  2371. right: 6%;
  2372. z-index: 9;
  2373. border-radius: 50%;
  2374. }
  2375. </style>