index.vue 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355
  1. <template>
  2. <div class="app-container">
  3. <el-form
  4. :model="queryParams_s"
  5. ref="queryParams_s"
  6. :inline="true"
  7. v-show="showSearch"
  8. label-width="68px"
  9. >
  10. <el-form-item label="货权方" prop="fCtrlcorpid">
  11. <el-input
  12. v-model="queryParams_s.fCtrlcorpid"
  13. placeholder="请输入客户名称"
  14. filterable
  15. remote
  16. clearable
  17. style="width:200px"
  18. @keyup.enter.native="handleQuery"
  19. :remote-method="corpsRemoteMethod"
  20. />
  21. <!-- <el-option
  22. v-for="(dict, index) in fMblnoOptions"
  23. :key="index.fId"
  24. :label="dict.fName"
  25. :value="dict.fId"
  26. ></el-option>
  27. </el-select> -->
  28. </el-form-item>
  29. <el-form-item label="结算单位" prop="fCorpid">
  30. <el-select
  31. v-model="queryParams_s.fCorpid"
  32. placeholder="请选择结算单位"
  33. filterable
  34. remote
  35. clearable
  36. style="width: 200px"
  37. @keyup.enter.native="handleQuery"
  38. :remote-method="corpsRemoteMethod"
  39. >
  40. <el-option
  41. v-for="(dict, index) in fMblnoOptions"
  42. :key="index.fId"
  43. :label="dict.fName"
  44. :value="dict.fId"
  45. ></el-option>
  46. </el-select>
  47. </el-form-item>
  48. <el-form-item label="录入人" prop="createBy">
  49. <el-input
  50. v-model="queryParams_s.createBy"
  51. size="small"
  52. disabled
  53. />
  54. </el-form-item>
  55. <!-- <el-form-item label="提单号" prop="tMblno">
  56. <el-input
  57. v-model="queryParams.tMblno"
  58. placeholder="请输入提单号"
  59. clearable
  60. size="small"
  61. @keyup.enter.native="handleQuery"
  62. />
  63. </el-form-item>-->
  64. <!-- <el-form-item label="应收合计" prop="fAmtdr">
  65. <el-input
  66. v-model="queryParams.fAmtdr"
  67. placeholder="请输入应收合计"
  68. clearable
  69. size="small"
  70. @keyup.enter.native="handleQuery"
  71. />
  72. </el-form-item> -->
  73. <!-- <el-form-item label="应付合计" prop="fAmtcr">
  74. <el-input
  75. v-model="queryParams.fAmtcr"
  76. placeholder="请输入应付合计"
  77. clearable
  78. size="small"
  79. @keyup.enter.native="handleQuery"
  80. />
  81. </el-form-item> -->
  82. <!-- <el-form-item label="单据类型" prop="fBilltype">
  83. <el-select v-model="queryParams.fBilltype" placeholder="请选择单据类型" clearable size="small">
  84. <el-option label="请选择字典生成" value="" />
  85. </el-select>
  86. </el-form-item> -->
  87. <el-form-item label="对账日期" prop="fAccbilldate">
  88. <el-date-picker
  89. v-model="dateRange"
  90. size="small"
  91. style="width: 240px"
  92. value-format="yyyy-MM-dd"
  93. type="daterange"
  94. range-separator="-"
  95. start-placeholder="开始日期"
  96. end-placeholder="结束日期"
  97. ></el-date-picker>
  98. </el-form-item>
  99. <el-form-item label="状态" prop="fBillstatus">
  100. <el-select v-model="queryParams_s.fBillstatus" placeholder="请选择">
  101. <el-option
  102. v-for="item in options"
  103. :key="item.value"
  104. :label="item.dictLabel"
  105. :value="item.dictValue"
  106. >
  107. </el-option>
  108. </el-select>
  109. </el-form-item>
  110. <!-- <el-form-item label="备注" prop="fRemarks">
  111. <el-input
  112. v-model="queryParams.fRemarks"
  113. placeholder="请输入备注"
  114. clearable
  115. size="small"
  116. @keyup.enter.native="handleQuery"
  117. />
  118. </el-form-item>-->
  119. <el-form-item label="系统编号" prop="fBillno">
  120. <el-input
  121. v-model="queryParams_s.fBillno"
  122. placeholder="请输入系统编号"
  123. clearable
  124. size="small"
  125. @keyup.enter.native="handleQuery"
  126. />
  127. </el-form-item>
  128. <!-- <el-form-item label="制单部门" prop="fDeptid">
  129. <el-input label="请选择字典生成" value="" v-model="queryParams.fDeptid" placeholder="请选择制单部门" clearable size="small"/>
  130. </el-form-item> -->
  131. <el-form-item>
  132. <el-button
  133. type="cyan"
  134. icon="el-icon-search"
  135. size="mini"
  136. @click="handleQuery"
  137. >搜索</el-button
  138. >
  139. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  140. >重置</el-button
  141. >
  142. </el-form-item>
  143. </el-form>
  144. <el-row :gutter="10" class="mb8">
  145. <el-col :span="1.5">
  146. <el-button
  147. type="primary"
  148. icon="el-icon-plus"
  149. size="mini"
  150. @click="handleAdd"
  151. v-hasPermi="['finance:contrast:add']"
  152. >新增</el-button
  153. >
  154. </el-col>
  155. <el-col :span="1.5">
  156. <el-button
  157. type="success"
  158. icon="el-icon-edit"
  159. size="mini"
  160. :disabled="single"
  161. @click="handleUpdate"
  162. v-hasPermi="['warehouse:fee:edit']"
  163. >修改</el-button
  164. >
  165. </el-col>
  166. <el-col :span="1.5">
  167. <el-button
  168. type="danger"
  169. icon="el-icon-delete"
  170. size="mini"
  171. :disabled="multiple"
  172. @click="handleDelete"
  173. v-hasPermi="['finance:contrast:remove']"
  174. >删除</el-button
  175. >
  176. </el-col>
  177. <el-col :span="1.5">
  178. <el-button
  179. type="warning"
  180. icon="el-icon-download"
  181. size="mini"
  182. @click="handleExport"
  183. v-hasPermi="['finance:contrast:export']"
  184. >导出</el-button
  185. >
  186. </el-col>
  187. <right-toolbar
  188. :showSearch.sync="showSearch"
  189. @queryTable="getList"
  190. ></right-toolbar>
  191. </el-row>
  192. <el-table
  193. v-loading="loading"
  194. :data="contrastList"
  195. @selection-change="handleSelectionChange"
  196. >
  197. <el-table-column width="50" align="center" type="selection" />
  198. <!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
  199. <el-table-column label="行号" align="center" type="index"/>
  200. <el-table-column label="系统编号" align="center" prop="fBillno" show-overflow-tooltip width="120"/>
  201. <el-table-column label="货权方" align="center" show-overflow-tooltip prop="fCtrlcorpid" width="120"/>
  202. <el-table-column label="结算单位" align="center" prop="fCorpidName" show-overflow-tooltip width="120"/>
  203. <el-table-column label="账单日期" align="center" prop="fAccbilldate" width="120">
  204. <template slot-scope="scope">
  205. <span>{{ parseTime(scope.row.fAccbilldate, "{y}-{m}-{d}") }}</span>
  206. </template>
  207. </el-table-column>
  208. <el-table-column label="提单号" align="center" prop="tMblno" width="120"/>
  209. <el-table-column label="应收金额" align="center" prop="fAmtdr" width="120"/>
  210. <el-table-column label="应付金额" align="center" prop="fAmtcr" width="120"/>
  211. <!-- <el-table-column label="单据类型" align="center" prop="fBilltype" />-->
  212. <el-table-column label="备注" align="center" show-overflow-tooltip prop="fRemarks" width="120"/>
  213. <el-table-column label="状态" align="center" prop="fBillstatus" width="120">
  214. <template slot-scope="scope">
  215. <span v-if="scope.row.fBillstatus == '1'">新建</span>
  216. <span v-else-if="scope.row.fBillstatus == '2'">暂存</span>
  217. <span v-else-if="scope.row.fBillstatus == '3'">审批驳回</span>
  218. <span v-else-if="scope.row.fBillstatus == '4'">提交审核</span>
  219. <span v-else-if="scope.row.fBillstatus == '5'">审核中</span>
  220. <span v-else-if="scope.row.fBillstatus == '6'">审核完成</span>
  221. </template>
  222. </el-table-column>
  223. <!-- <el-table-column label="制单部门" align="center" prop="fDeptid" /> -->
  224. <el-table-column
  225. label="操作"
  226. align="center"
  227. class-name="small-padding fixed-width"
  228. width="140"
  229. >
  230. <template slot-scope="scope">
  231. <el-button
  232. size="mini"
  233. type="text"
  234. icon="el-icon-edit"
  235. @click="handleUpdate(scope.row)"
  236. v-hasPermi="['finance:contrast:edit']"
  237. >修改</el-button
  238. >
  239. <el-button
  240. size="mini"
  241. type="text"
  242. icon="el-icon-delete"
  243. @click="handleDelete(scope.row)"
  244. v-hasPermi="['finance:contrast:remove']"
  245. >删除</el-button
  246. >
  247. </template>
  248. </el-table-column>
  249. </el-table>
  250. <pagination
  251. v-show="total > 0"
  252. :total="total"
  253. :page.sync="queryParams.pageNum"
  254. :limit.sync="queryParams.pageSize"
  255. @pagination="getList"
  256. />
  257. <!-- 对账表 -->
  258. <el-dialog
  259. :visible.sync="open"
  260. width="70%"
  261. append-to-body
  262. :close-on-click-modal="false"
  263. >
  264. <el-form
  265. ref="ruless"
  266. :model="queryParams"
  267. :rules="ruless"
  268. label-width="68px"
  269. :inline="true"
  270. v-show="showSearch"
  271. >
  272. <el-form-item label="货权方" prop="fCtrlcorpid">
  273. <el-input
  274. v-model="queryParams.fCtrlcorpid"
  275. clearable
  276. size="small"
  277. @keyup.enter.native="handleQuery"
  278. placeholder="请输入客户名称"
  279. />
  280. </el-form-item>
  281. <el-form-item label="结算单位" label-width="78px" prop="fCorpid">
  282. <el-select
  283. v-model="queryParams.fCorpid"
  284. placeholder="请选择结算单位"
  285. filterable
  286. remote
  287. clearable
  288. style="width: 200px"
  289. @keyup.enter.native="handleQuery"
  290. :remote-method="corpsRemoteMethod"
  291. >
  292. <el-option
  293. v-for="(dict, index) in fMblnoOptions"
  294. :key="index.fId"
  295. :label="dict.fName"
  296. :value="dict.fId"
  297. ></el-option>
  298. </el-select>
  299. </el-form-item>
  300. <!-- <el-form-item label="提单号" prop="tMblno">
  301. <el-input v-model="TWareHouseFees.tMblno" placeholder="" :disabled="true"/>
  302. </el-form-item> -->
  303. <el-form-item label="对账日期" prop="fAccbilldate" label-width="78px">
  304. <el-date-picker
  305. v-model="queryParams.fAccbilldate"
  306. size="small"
  307. style="width: 200px"
  308. value-format="yyyy-MM-dd"
  309. type="date"
  310. placeholder="选择账单日期"
  311. >
  312. </el-date-picker>
  313. </el-form-item>
  314. <!-- <el-form-item label="单据日期">
  315. <el-date-picker
  316. v-model="value4"
  317. size="small"
  318. style="width: 240px"
  319. value-format="yyyy-MM-dd"
  320. type="date">
  321. </el-date-picker>
  322. </el-form-item> -->
  323. <el-form-item label="系统编号" prop="fBillno">
  324. <el-input
  325. v-model="queryParams.fBillno"
  326. placeholder=""
  327. clearable
  328. size="small"
  329. :disabled="true"
  330. @keyup.enter.native="handleQuery"
  331. />
  332. </el-form-item>
  333. <el-form-item label="录入人" prop="createBy">
  334. <el-input v-model="queryParams.createBy" disabled/>
  335. </el-form-item>
  336. <el-form-item label="备注" prop="fRemarks">
  337. <el-input v-model="queryParams.fRemarks"/>
  338. </el-form-item>
  339. <div style="width: 100%">
  340. <el-button type="warning" size="small" @click="reconciliation"
  341. >对账</el-button
  342. >
  343. <el-button type="primary" size="small" @click="confirmReconciliation">确认对账</el-button>
  344. <el-button type="success" size="small">导出</el-button>
  345. <el-button type="info" size="small" @click="openPrint=true">打印</el-button>
  346. <el-button type="danger" size="small">删除</el-button>
  347. </div>
  348. <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> -->
  349. </el-form>
  350. <el-table
  351. v-loading="loading"
  352. :data="DzfeeList"
  353. @selection-change="handleSelectionChanGe"
  354. >
  355. <!-- <el-table-column type="selection" width="55" align="center" /> -->
  356. <!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
  357. <el-table-column label="行号" align="center" type="index" />
  358. <el-table-column label="提单号" align="center" prop="fMblno" />
  359. <el-table-column label="业务日期" align="center" prop="fBsdate">
  360. <template slot-scope="scope">
  361. <span>{{scope.row.fBsdate.slice(0,10)}}</span>
  362. </template>
  363. </el-table-column>
  364. <el-table-column label="费用名称" align="center" prop="fFeeName" />
  365. <el-table-column label="收/付" align="center" prop="fSrcdc">
  366. <template slot-scope="scope">
  367. <span v-if="scope.row.fSrcdc == 'D'">收</span>
  368. <span v-else-if="scope.row.fSrcdc == 'C'">付</span>
  369. </template>
  370. </el-table-column>
  371. <el-table-column label="金额" align="center" prop="fAmtdr" />
  372. <el-table-column label="本次金额" align="center" prop="fAmt" />
  373. <el-table-column label="业务类型" align="center" prop="fBilltype">
  374. <template slot-scope="scope">
  375. <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>
  376. <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>
  377. <span v-else-if="scope.row.fBilltype == 'CKDB'">调拨</span>
  378. <span v-else-if="scope.row.fBilltype == 'HQZY'">货权转移</span>
  379. <span v-else>{{scope.row.fBilltype}}</span>
  380. </template>
  381. </el-table-column>
  382. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  383. <template slot-scope="scope">
  384. <el-button
  385. size="mini"
  386. type="text"
  387. icon="el-icon-delete"
  388. @click.native.prevent="deleteRow(scope.$index,DzfeeList)"
  389. >删除
  390. </el-button>
  391. </template>
  392. </el-table-column>
  393. </el-table>
  394. <div slot="footer" class="dialog-footer">
  395. <el-button type="primary" @click="submitForm">保 存</el-button>
  396. <el-button @click="cancel">取 消</el-button>
  397. </div>
  398. <!-- 添加或修改财务数据主对话框 -->
  399. <el-dialog
  400. :close-on-click-modal="false"
  401. width="70%"
  402. :title="title"
  403. :visible.sync="innerVisible"
  404. append-to-body
  405. >
  406. <el-form
  407. :model="TWareHouseFees"
  408. ref="feeListRules"
  409. :rules="feeListRules"
  410. label-width="80px"
  411. :inline="true"
  412. >
  413. <!-- <el-form-item label="业务编号" prop="fBillno">
  414. <el-input v-model="form.fBillno" placeholder="请输入业务编号" />
  415. </el-form-item> -->
  416. <el-form-item
  417. label="货权方"
  418. prop="fCorpid"
  419. >
  420. <el-select
  421. v-model="TWareHouseFees.fCorpid"
  422. filterable
  423. remote
  424. clearable
  425. style="width: 200px"
  426. @keyup.enter.native="handleQuery"
  427. :remote-method="corpsRemoteMethod"
  428. placeholder="请输入客户名称"
  429. >
  430. <el-option
  431. v-for="(dict, index) in fMblnoOptions"
  432. :key="index.fId"
  433. :label="dict.fName"
  434. :value="dict.fId"
  435. ></el-option>
  436. </el-select>
  437. </el-form-item>
  438. <el-form-item label="结算单位" prop="fToCorpid">
  439. <el-select
  440. v-model="TWareHouseFees.fToCorpid"
  441. placeholder="请选择结算单位"
  442. filterable
  443. remote
  444. clearable
  445. style="width: 200px"
  446. @keyup.enter.native="handleQuery"
  447. :remote-method="corpsRemoteMethod"
  448. >
  449. <el-option
  450. v-for="(dict, index) in fMblnoOptions"
  451. :key="index.fId"
  452. :label="dict.fName"
  453. :value="dict.fId"
  454. ></el-option>
  455. </el-select>
  456. </el-form-item>
  457. <el-form-item label="提单号" prop="fMblno">
  458. <el-input
  459. v-model="TWareHouseFees.fMblno"
  460. placeholder="请输入提单号"
  461. style="width: 200px"
  462. />
  463. </el-form-item>
  464. <el-form-item label="收付" prop="fDc">
  465. <el-col :span="8">
  466. <el-select v-model="TWareHouseFees.fDc" style="width: 200px">
  467. <el-option label="收" value="D" />
  468. <el-option label="付" value="C" />
  469. </el-select>
  470. </el-col>
  471. </el-form-item>
  472. <el-form-item label="是否对账" prop="fReconciliation">
  473. <el-col :span="8">
  474. <el-select
  475. v-model="TWareHouseFees.fReconciliation"
  476. style="width: 200px"
  477. >
  478. <el-option label="是" value="1" />
  479. <el-option label="否" value="0" />
  480. </el-select>
  481. </el-col>
  482. </el-form-item>
  483. <el-form-item label="费用名称" prop="fFeeid">
  484. <template>
  485. <el-select
  486. v-model="TWareHouseFees.fFeeid"
  487. filterable
  488. :disabled="browseStatus"
  489. remote
  490. :remote-method="fWRemoteMethod"
  491. placeholder="费用名称"
  492. multiple
  493. >
  494. <el-option
  495. v-for="item in fWbuOptions"
  496. :key="item.fId"
  497. :label="item.fName"
  498. :value="item.fId"
  499. >
  500. </el-option>
  501. </el-select>
  502. </template>
  503. </el-form-item>
  504. <el-form-item label="审核日期" prop="timeExamine">
  505. <el-date-picker
  506. style="width: 250px"
  507. size="small"
  508. v-model="TWareHouseFees.timeExamine"
  509. type="daterange"
  510. start-placeholder="开始日期"
  511. end-placeholder="结束日期"
  512. value-format="yyyy-MM-dd"
  513. :default-time="['00:00:00', '23:59:59']"
  514. >
  515. </el-date-picker>
  516. </el-form-item>
  517. <el-form-item label="对账日期" label-width="85px" prop="timeReconci" v-if="TWareHouseFees.fReconciliation == '1'">
  518. <el-date-picker
  519. v-model="TWareHouseFees.timeReconci"
  520. size="small"
  521. style="width: 200px"
  522. value-format="yyyy-MM-dd"
  523. type="daterange"
  524. start-placeholder="开始日期"
  525. end-placeholder="结束日期"
  526. :default-time="['00:00:00', '23:59:59']"
  527. ></el-date-picker>
  528. </el-form-item>
  529. <el-form-item>
  530. <!-- <el-button class="btnColor" type="info" size="mini">导入</el-button> -->
  531. <el-button
  532. type="cyan"
  533. size="mini"
  534. @click="searchFee"
  535. >搜索</el-button
  536. >
  537. <el-button
  538. type="info"
  539. size="mini"
  540. @click="resetQuery_s"
  541. >重置</el-button
  542. >
  543. </el-form-item>
  544. <el-table
  545. v-loading="loading"
  546. :data="feeList"
  547. show-summary
  548. :summary-method="getSummaries"
  549. @selection-change="handleSelectionChange_s"
  550. >
  551. <el-table-column type="selection" width="55" align="center" />
  552. <!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
  553. <el-table-column label="行号" align="center" type="index" />
  554. <el-table-column label="货权方" align="center" prop="fName" />
  555. <el-table-column label="结算单位" align="center" prop="fFeesName" />
  556. <!-- <el-table-column label="账单日期" align="center" prop="fAccbilldate"/> -->
  557. <el-table-column label="提单号" align="center" prop="fMblno" />
  558. <el-table-column label="品名" align="center" prop="fProductName" />
  559. <el-table-column label="业务日期" align="center" prop="fBsdate" />
  560. <el-table-column label="业务类型" align="center" prop="fBilltype">
  561. <template slot-scope="scope">
  562. <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>
  563. <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>
  564. <span v-else-if="scope.row.fBilltype == 'CKDB'">调拨</span>
  565. <span v-else-if="scope.row.fBilltype == 'HQZY'">货权转移</span>
  566. </template>
  567. </el-table-column>
  568. <!-- <el-table-column label="单据类型" align="center" prop="fBilltype" />-->
  569. <el-table-column
  570. label="审核日期"
  571. align="center"
  572. prop="fReviewDate"
  573. />
  574. <el-table-column label="金额" align="center" prop="fAmtdr" />
  575. <el-table-column label="本次金额" align="center" prop="fAmt">
  576. <template slot-scope="scope">
  577. <el-input
  578. v-model="scope.row.fAmt"
  579. placeholder="请输入本次金额"
  580. clearable
  581. size="small"
  582. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  583. @change="imgChangeI(scope.row)"
  584. />
  585. </template>
  586. </el-table-column>
  587. <el-table-column label="费用名称" align="center" prop="fFeeName" />
  588. <el-table-column label="备1注" align="center" prop="fRemarks">
  589. <template slot-scope="scope">
  590. <el-input
  591. v-model="scope.row.fRemarks"
  592. placeholder="请输入备注"
  593. clearable
  594. size="small"
  595. />
  596. </template>
  597. </el-table-column>
  598. </el-table>
  599. <!-- <el-form-item label="应收合计" prop="fAmtdr">
  600. <el-input v-model="form.fAmtdr" placeholder="请输入应收合计" />
  601. </el-form-item>
  602. <el-form-item label="应付合计" prop="fAmtcr">
  603. <el-input v-model="form.fAmtcr" placeholder="请输入应付合计" />
  604. </el-form-item>
  605. <el-form-item label="单据类型" prop="fBilltype">
  606. <el-select v-model="form.fBilltype" placeholder="请选择单据类型">
  607. <el-option label="请选择字典生成" value="" />
  608. </el-select>
  609. </el-form-item>
  610. <el-form-item label="状态">
  611. <el-radio-group v-model="form.fBillstatus">
  612. <el-radio label="1">请选择字典生成</el-radio>
  613. </el-radio-group>
  614. </el-form-item>
  615. <el-form-item label="备注" prop="fRemarks">
  616. <el-input v-model="form.fRemarks" placeholder="请输入备注" />
  617. </el-form-item>
  618. <el-form-item label="账单日期" prop="fAccbilldate">
  619. <el-date-picker clearable size="small" style="width: 200px"
  620. v-model="form.fAccbilldate"
  621. type="date"
  622. value-format="yyyy-MM-dd"
  623. placeholder="选择账单日期">
  624. </el-date-picker>
  625. </el-form-item>
  626. <el-form-item label="删除状态" prop="delFlag">
  627. <el-input v-model="form.delFlag" placeholder="请输入删除状态" />
  628. </el-form-item>
  629. <el-form-item label="制单部门" prop="fDeptid">
  630. <el-select v-model="form.fDeptid" placeholder="请选择制单部门">
  631. <el-option label="请选择字典生成" value="" />
  632. </el-select>
  633. </el-form-item> -->
  634. </el-form>
  635. <div slot="footer" class="dialog-footer">
  636. <el-button type="primary" @click="confirmImport">确 定</el-button>
  637. <el-button @click="innerVisible = false">取 消</el-button>
  638. </div>
  639. </el-dialog>
  640. </el-dialog>
  641. <!-- 打印页面 -->
  642. <el-dialog
  643. :visible.sync="openPrint"
  644. width="70%"
  645. append-to-body
  646. :close-on-click-modal="false"
  647. title="对账单"
  648. >
  649. <el-table
  650. border="true"
  651. v-loading="loading"
  652. :data="DzfeeList"
  653. @selection-change="handleSelectionChanGe">
  654. <el-table-column label="行号" align="center" type="index" />
  655. <el-table-column label="提单号" align="center" prop="fMblno" />
  656. <el-table-column label="业务日期" align="center" prop="fBsdate">
  657. <template slot-scope="scope">
  658. <span>{{scope.row.fBsdate.slice(0,10)}}</span>
  659. </template>
  660. </el-table-column>
  661. <el-table-column label="费用名称" align="center" prop="fFeeName" />
  662. <el-table-column label="收/付" align="center" prop="fSrcdc">
  663. <template slot-scope="scope">
  664. <span v-if="scope.row.fSrcdc == 'D'">收</span>
  665. <span v-else-if="scope.row.fSrcdc == 'C'">付</span>
  666. </template>
  667. </el-table-column>
  668. <el-table-column label="金额" align="center" prop="fAmtdr" />
  669. <el-table-column label="本次金额" align="center" prop="fAmt" />
  670. <el-table-column label="业务类型" align="center" prop="fBilltype">
  671. <template slot-scope="scope">
  672. <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>
  673. <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>
  674. <span v-else-if="scope.row.fBilltype == 'CKDB'">调拨</span>
  675. <span v-else-if="scope.row.fBilltype == 'HQZY'">货权转移</span>
  676. <span v-else>{{scope.row.fBilltype}}</span>
  677. </template>
  678. </el-table-column>
  679. </el-table>
  680. <el-button style="marginTop:10px">打印</el-button>
  681. </el-dialog>
  682. </div>
  683. </template>
  684. <script>
  685. import { Cfee, listFee, getFee, delFee, addFee, updateFee, exportFee, importFee} from "@/api/finance/contrast";
  686. import { listCorps } from '@/api/basicdata/corps'
  687. import { listFees } from '@/api/basicdata/fees'
  688. import { queryUserVal } from '@/api/warehouseBusiness/agreement'
  689. import moment from 'moment'
  690. export default {
  691. name: "Fee",
  692. components: {
  693. },
  694. data() {
  695. return {
  696. openPrint:false,
  697. statrGo:true,
  698. state_s: true,
  699. browseStatus:false,
  700. options:'',
  701. value1:"",
  702. value2:"",
  703. value3:"",
  704. value4:"",
  705. dateRange:"",
  706. // 遮罩层
  707. loading: true,
  708. fAccbilldate: '',
  709. // 选中数组
  710. ids: [],
  711. // 非单个禁用
  712. single: true,
  713. // 非多个禁用
  714. multiple: true,
  715. // 显示搜索条件
  716. showSearch: true,
  717. // 总条数
  718. total: 0,
  719. // 财务数据主表格数据
  720. feeList: [],
  721. // 客户(客户数据)
  722. fMblnoOptions: [],
  723. fFeeunitidOptions: [],
  724. fWbuOptions: [],
  725. KHblnoOptions: [],
  726. //打开内部弹窗
  727. innerVisible: false,
  728. selection: '',
  729. // 弹出层标题
  730. title: "",
  731. // // 录入人
  732. // createBy:response.user.userName,
  733. // 是否显示弹出层
  734. open: false,
  735. dialogVisible: false,
  736. // 财务对账表格
  737. DzfeeList: [],
  738. // 财务主页面表格
  739. contrastList: [],
  740. empty:[],
  741. nothing:[],
  742. //导入从表传主表
  743. pass:{
  744. fAmtdr:'', //应收合计
  745. fAmtcr:'', //应付合计
  746. fMblno:'', //提单号
  747. fName:'', //货权方
  748. fFeesName:'', //结算单位
  749. fCorpid:'' //结算单位ID
  750. },
  751. // 传值对象
  752. TWareHouseFees:{
  753. fCorpid:'',
  754. fToCorpid:'',
  755. fMblno:'',
  756. fStatementNo:'',
  757. fFeeid :'',
  758. timeExamine:'',
  759. timeInterval:'',
  760. fDc:'D',
  761. fReconciliation:'1',
  762. timeReconci:'',
  763. },
  764. // 查询参数
  765. queryParams: {
  766. pageNum: 1,
  767. pageSize: 10,
  768. fBillno: null,
  769. fCtrlcorpid: null,
  770. fCorpid: null,
  771. tMblno: null,
  772. fAmtdr: null,
  773. fAmtcr: null,
  774. fId:null,
  775. fBilltype: null,
  776. fBillstatus: null,
  777. fRemarks: null,
  778. fAccbilldate: null,
  779. fDeptid: null,
  780. createBy: null,
  781. timeReconci: null
  782. },
  783. // 主表查询参数
  784. queryParams_s: {
  785. pageNum: 1,
  786. pageSize: 10,
  787. fBillno: null,
  788. fCtrlcorpid: null,
  789. fId:null,
  790. fCorpid: null,
  791. tMblno: null,
  792. fAmtdr: null,
  793. fAmtcr: null,
  794. fBilltype: null,
  795. fBillstatus: null,
  796. fRemarks: null,
  797. fAccbilldate: null,
  798. fDeptid: null
  799. },
  800. // 表单参数
  801. form: {},
  802. // 表单校验
  803. ruless:{
  804. fCtrlcorpid: [
  805. { required: true, message: '货权方不能为空', trigger: 'blur' }
  806. ],
  807. fCorpid: [
  808. { required: true, message: '结算单位不能为空', trigger: 'blur' }
  809. ],
  810. fAccbilldate: [
  811. { required: true, message: '对账日期不能为空', trigger: 'blur' }
  812. ]
  813. },
  814. feeListRules: {
  815. // fCtrlcorpid: [
  816. // { required:true, message: '不能为空', trigger: 'blur'}
  817. // ],
  818. fDc: [
  819. { required:true,message: '不能为空', trigger:'blur' }
  820. ],
  821. fToCorpid: [
  822. { required:true,message:'不能为空', trigger:'blur'}
  823. ],
  824. fReconciliation: [
  825. { required:true,message:'不能为空', trigger:'blur'}
  826. ],
  827. timeExamine: [
  828. { required: true, message: '审核日期不能为空', trigger: 'blur' }
  829. ]
  830. // fBilltype: [
  831. // { required: true, message: "单据类型(对账单 收费 付费 付费申请 收费申请,发票申请 销项发票 进项发票)不能为空", trigger: "change" }
  832. // ],
  833. // fBillstatus: [
  834. // { required: true, message: "状态不能为空", trigger: "blur" }
  835. // ]
  836. // fDeptid: [
  837. // { required: true, message: "制单部门不能为空", trigger: "change" }
  838. // ],
  839. }
  840. };
  841. },
  842. created() {
  843. this.getList()
  844. this.register()
  845. },
  846. methods: {
  847. // 确认对账按钮功能
  848. confirmReconciliation(){
  849. this.queryParams.fBillstatus = '4'
  850. let formDate = new window.FormData()
  851. formDate.append('tFee',JSON.stringify(this.queryParams))
  852. formDate.append("tFeeDo", JSON.stringify(this.DzfeeList))
  853. Cfee(formDate).then(response=>{
  854. console.log(response)
  855. this.msgSuccess("操作成功")
  856. })
  857. this.open = false
  858. },
  859. // 对账按钮功能
  860. reconciliation(){
  861. this.TWareHouseFees.fToCorpid = this.queryParams.fCorpid
  862. console.log(this.queryParams.fCorpid)
  863. this.innerVisible = true
  864. },
  865. // 默认录入人
  866. register() {
  867. queryUserVal().then((response)=>{
  868. this.queryParams_s.createBy = response.user.userName
  869. this.queryParams.createBy = response.user.userName
  870. console.log(this.DzfeeList.createBy)
  871. console.log(response.user.userName)
  872. })
  873. },
  874. getSummaries(param) {
  875. const { columns, data } = param;
  876. const sums = [];
  877. columns.forEach((column, index) => {
  878. const values = data.map(item => Number(item[column.property]));
  879. if (!values.every(value => isNaN(value))) {
  880. sums[index] = values.reduce((prev, curr) => {
  881. const value = Number(curr);
  882. if (!isNaN(value)) {
  883. return prev + curr;
  884. } else {
  885. return prev;
  886. }
  887. }, 0);
  888. sums[0] = '合计';
  889. } else {
  890. sums[4] = '';
  891. // this.pass.fAmtdr = sums[9]
  892. // this.pass.fAmtcr = sums[10]
  893. }
  894. })
  895. return sums;
  896. },
  897. // 金额筛选
  898. imgChangeI(row){
  899. if (row.fAmt && Number(row.fAmt) > Number(row.fAmtdr)){
  900. this.$set(row, 'fAmt', row.fAmtdr)
  901. this.state_s = true
  902. }
  903. },
  904. // imgChangeI(fAmtdr,fAmt){
  905. // if (fAmt <= fAmtdr){
  906. // console.log("小了!")
  907. // this.state_s = true
  908. // }else if(fAmt > fAmtdr){
  909. // console.log("大了!")
  910. // this.$message.error('本次金额不能大于原定金额');
  911. // this.state_s = false
  912. // }
  913. // },
  914. // 导入搜索
  915. searchFee() {
  916. console.log(this.TWareHouseFees)
  917. // this.feeList = []
  918. this.$refs['feeListRules'].validate(valid => {
  919. console.log(valid)
  920. if (valid){
  921. importFee(this.TWareHouseFees).then(response =>{
  922. console.log(response)
  923. this.feeList = response.rows
  924. })
  925. }
  926. })
  927. },
  928. /** 打开导入表弹窗 */
  929. openImportTable() {
  930. this.$refs.import.show();
  931. },
  932. /** 查询财务数据主列表 */
  933. getList() {
  934. console.log(this)
  935. this.loading = true;
  936. this.getDicts("approval_process").then(response => {
  937. // this.feeList = response.rows;
  938. this.options = response.data
  939. });
  940. listFee(this.queryParams_s).then(response => {
  941. console.log(response)
  942. this.contrastList = response.rows
  943. this.total = response.total
  944. this.loading = false
  945. })
  946. },
  947. // 取消按钮
  948. cancel() {
  949. this.open = false;
  950. // this.feeList = []
  951. this.reset();
  952. },
  953. // 表单重置
  954. reset() {
  955. this.form = {
  956. fId: null,
  957. fBillno: null,
  958. fCtrlcorpid: null,
  959. fCorpid: null,
  960. tMblno: null,
  961. fAmtdr: null,
  962. fAmtcr: null,
  963. fBilltype: null,
  964. fBillstatus: "0",
  965. fRemarks: null,
  966. fAccbilldate: null,
  967. delFlag: null,
  968. createBy: null,
  969. fDeptid: null,
  970. createTime: null,
  971. updateBy: null,
  972. updateTime: null
  973. };
  974. this.resetForm("form");
  975. },
  976. /** 搜索按钮操作 */
  977. handleQuery() {
  978. console.log(this.queryParams_s)
  979. this.queryParams.pageNum = 1;
  980. this.getList();
  981. console.log(this.contrastList)
  982. // this.searchFee()
  983. },
  984. /** 重置按钮操作 */
  985. resetQuery() {
  986. this.resetForm("queryParams_s");
  987. this.handleQuery();
  988. this.TWareHouseFees={
  989. fCorpid:'',
  990. fToCorpid:'',
  991. fMblno:'',
  992. fStatementNo:'',
  993. fFeeid :'',
  994. timeExamine:'',
  995. timeInterval:'',
  996. fSrcdc:'',
  997. fReconciliation:''
  998. }
  999. },
  1000. //导入重置按钮
  1001. resetQuery_s() {
  1002. this.TWareHouseFees = {
  1003. fCorpid: '',
  1004. fToCorpid: '',
  1005. fMblno: '',
  1006. fStatementNo: '',
  1007. fFeeid: '',
  1008. timeExamine: '',
  1009. timeInterval: ''
  1010. }
  1011. },
  1012. // 多选框选中数据
  1013. handleSelectionChange(selection) {
  1014. this.ids = selection.map(item => item.fId)
  1015. this.single = selection.length!==1
  1016. this.multiple = !selection.length
  1017. },
  1018. handleSelectionChanGe(selection){
  1019. if(selection.length > 0) {
  1020. this.statrGo = false
  1021. }else{
  1022. this.statrGo = true
  1023. }
  1024. },
  1025. /** 新增按钮操作 */
  1026. handleAdd() {
  1027. this.reset();
  1028. this.DzfeeList = []
  1029. this.pass={
  1030. fAmtdr:'', //应收合计
  1031. fAmtcr:'', //应付合计
  1032. fMblno:'', //提单号
  1033. fName:'', //货权方
  1034. fFeesName:'', //结算单位
  1035. fCorpid:'' //结算单位ID
  1036. },
  1037. this.open = true;
  1038. this.title = "添加财务数据主";
  1039. this.queryParams = {
  1040. pageNum: 1,
  1041. pageSize: 10,
  1042. fBillno: null,
  1043. fCtrlcorpid: null,
  1044. fCorpid: null,
  1045. tMblno: null,
  1046. fAmtdr: null,
  1047. fId:null,
  1048. fAmtcr: null,
  1049. fBilltype: null,
  1050. fBillstatus: null,
  1051. fRemarks: null,
  1052. fAccbilldate: null,
  1053. fDeptid: null,
  1054. createBy: null,
  1055. timeReconci: null
  1056. }
  1057. queryUserVal().then((response)=>{
  1058. this.contrastList.createBy = response.user.userName
  1059. console.log(response.user.userName)
  1060. this.queryParams = {
  1061. pageNum: 1,
  1062. pageSize: 10,
  1063. fBillno: null,
  1064. fCtrlcorpid: null,
  1065. fCorpid: null,
  1066. tMblno: null,
  1067. fAmtdr: null,
  1068. fId:null,
  1069. fAmtcr: null,
  1070. fBilltype: null,
  1071. fBillstatus: null,
  1072. fRemarks: null,
  1073. fAccbilldate: null,
  1074. fDeptid: null,
  1075. createBy: response.user.userName,
  1076. timeReconci: null
  1077. }
  1078. })
  1079. },
  1080. /** 修改按钮操作 */
  1081. handleUpdate(row) {
  1082. this.reset();
  1083. this.pass={
  1084. fAmtdr:'', //应收合计
  1085. fAmtcr:'', //应付合计
  1086. fMblno:'', //提单号
  1087. fName:'', //货权方
  1088. fFeesName:'', //结算单位
  1089. fCorpid:'' //结算单位ID
  1090. }
  1091. const fId = row.fId || this.ids
  1092. console.log(fId)
  1093. getFee(fId).then(response => {
  1094. console.log(this.DzfeeList)
  1095. console.log(response)
  1096. this.DzfeeList = response.data.feeDoList
  1097. this.fWbuOptions = response.data.feesList
  1098. this.queryParams = response.data.tFee
  1099. console.log(this.queryParams)
  1100. this.fMblnoOptions = response.data.corps
  1101. this.open = true;
  1102. this.title = "修改财务数据主";
  1103. });
  1104. console.log(this.queryParams)
  1105. },
  1106. /** 远程模糊查询用户 */
  1107. corpsRemoteMethod(name) {
  1108. if (name == null || name === "") {
  1109. return false;
  1110. }
  1111. let queryParams = { pageNum: 1, pageSize: 10, fName: name, type: 1 };
  1112. listCorps(queryParams).then((response) => {
  1113. this.fMblnoOptions = response.rows;
  1114. this.KHblnoOptions = response.rows;
  1115. });
  1116. },
  1117. /** 提交按钮 */
  1118. submitForm() {
  1119. console.log(this.queryParams)
  1120. console.log(this.DzfeeList)
  1121. // console.log(this.feeList)
  1122. this.$refs["ruless"].validate(valid => {
  1123. if (valid) {
  1124. if (!this.queryParams.fId) {
  1125. console.log(this.queryParams)
  1126. this.queryParams.fBillstatus = '1'
  1127. let formDate = new window.FormData()
  1128. formDate.append('tFee',JSON.stringify(this.queryParams))
  1129. formDate.append("tFeeDo", JSON.stringify(this.DzfeeList))
  1130. updateFee(formDate).then(response => {
  1131. this.msgSuccess("新增成功");
  1132. this.DzfeeList = []
  1133. this.open = false;
  1134. this.getList();
  1135. });
  1136. } else {
  1137. this.queryParams.fBillstatus = '1'
  1138. let formDate = new window.FormData()
  1139. formDate.append('tFee',JSON.stringify(this.queryParams))
  1140. formDate.append("tFeeDo", JSON.stringify(this.DzfeeList))
  1141. console.log(this.queryParams)
  1142. addFee(formDate).then(response => {
  1143. this.msgSuccess("修改成功");
  1144. this.DzfeeList = []
  1145. this.open = false;
  1146. this.getList();
  1147. });
  1148. }
  1149. }
  1150. });
  1151. },
  1152. // 导入多选框
  1153. handleSelectionChange_s(selection) {
  1154. this.selection = selection
  1155. },
  1156. // 多选框选中数据
  1157. handleSelectionChange(selection) {
  1158. this.ids = selection.map(item => item.fId)
  1159. this.single = selection.length !== 1
  1160. this.multiple = !selection.length
  1161. },
  1162. /* 添加财务数据主 导入*/
  1163. confirmImport(){
  1164. for (let item in this.selection) {
  1165. this.pass.fAmtcr = Number(this.pass.fAmtcr)
  1166. this.pass.fAmtdr = Number(this.pass.fAmtdr)
  1167. this.pass.fAmtcr += Number(this.selection[item].fAmt)
  1168. this.pass.fAmtdr += Number(this.selection[item].fAmtdr)
  1169. // console.log(Number(this.pass.fAmtcr))
  1170. // console.log(this.pass)
  1171. // console.log(this.pass.fAmtcr)
  1172. // console.log(this.pass.fAmtdr)
  1173. }
  1174. console.log(this.pass)
  1175. if(this.state_s == true) {
  1176. if (this.selection.length == '0') {
  1177. console.log('未选择')//写入提示
  1178. this.$message.error('未选择导入行');
  1179. } else {
  1180. console.log(this.selection[0].fMblno)
  1181. for (let item in this.selection){
  1182. console.log(this.selection[item])
  1183. console.log(this.selection[item].fMblno)
  1184. this.empty.push(this.selection[item].fMblno)
  1185. this.nothing.push(this.selection[item].fName)
  1186. }
  1187. //去重提单号
  1188. this.empty = new Set(this.empty)
  1189. this.empty = Array.from(this.empty)
  1190. //去重货权方
  1191. this.nothing = new Set(this.nothing)
  1192. this.nothing = Array.from(this.nothing)
  1193. console.log(this.nothing)
  1194. if(this.empty.length <= 1){
  1195. this.pass.fMblno = this.empty[0]
  1196. console.log(this.pass.fMblno)
  1197. }else {
  1198. this.pass.fMblno = this.empty[0] + "..."
  1199. console.log(this.pass.fMblno)
  1200. }
  1201. if (this.nothing.length <= 1){
  1202. this.pass.fName = this.nothing[0]
  1203. console.log(this.nothing)
  1204. }else {
  1205. this.pass.fName = this.nothing[0] + "..."
  1206. console.log(this.nothing)
  1207. }
  1208. // if (this.nothing.length <= 1){
  1209. // this.pass.fCorpid = this.nothing[0]
  1210. // console.log(this.nothing)
  1211. // }else {
  1212. // this.pass.fCorpid = this.nothing[0] + "..."
  1213. // console.log(this.nothing)
  1214. // }
  1215. this.DzfeeList = this.selection
  1216. this.queryParams.tMblno = this.pass.fMblno //提单号
  1217. // this.queryParams.fCorpid = this.pass.fFeesName
  1218. this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid
  1219. this.queryParams.fCtrlcorpid = this.pass.fName
  1220. console.log(this.queryParams.fCorpid)
  1221. console.log(this.pass)
  1222. this.queryParams.fAmtcr = this.pass.fAmtcr
  1223. this.queryParams.fAmtdr = this.pass.fAmtdr
  1224. console.log(this.pass)
  1225. console.log(this.queryParams)
  1226. console.log(this.DzfeeList)
  1227. this.innerVisible = false
  1228. this.feeList = []
  1229. // this.feeList = this.DzfeeList
  1230. this.TWareHouseFees = {
  1231. fCorpid:'',
  1232. fToCorpid:'',
  1233. fMblno:'',
  1234. fStatementNo:'',
  1235. fFeeid :'',
  1236. timeExamine:'',
  1237. timeInterval:'',
  1238. fSrcdc:'',
  1239. fReconciliation:'',
  1240. timeReconci: ''
  1241. }
  1242. }
  1243. }else if(this.state_s == false){
  1244. this.$message.error('本次金额不能大于原定金额');
  1245. }
  1246. },
  1247. /** 删除按钮操作 */
  1248. handleDelete(row) {
  1249. const fIds = row.fId || this.ids;
  1250. this.$confirm('是否确认删除财务数据主编号为"' + fIds + '"的数据项?', "警告", {
  1251. confirmButtonText: "确定",
  1252. cancelButtonText: "取消",
  1253. type: "warning"
  1254. }).then(function() {
  1255. return delFee(fIds);
  1256. }).then(() => {
  1257. this.getList();
  1258. this.msgSuccess("删除成功");
  1259. })
  1260. },
  1261. // 远程模糊查询费用名称
  1262. fWRemoteMethod(name) {
  1263. this.fWbuOptions = []
  1264. if (name == null || name === "") {
  1265. return false;
  1266. }
  1267. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  1268. listFees(queryParams).then((response) => {
  1269. console.log(response)
  1270. console.log("1111")
  1271. this.fWbuOptions = response.rows
  1272. console.log(this.fWbuOptions)
  1273. });
  1274. },
  1275. /** 导出按钮操作 */
  1276. handleExport() {
  1277. const queryParams = this.queryParams;
  1278. this.$confirm('是否确认导出所有财务数据主数据项?', "警告", {
  1279. confirmButtonText: "确定",
  1280. cancelButtonText: "取消",
  1281. type: "warning"
  1282. }).then(function() {
  1283. return exportFee(queryParams);
  1284. }).then(response => {
  1285. this.download(response.msg);
  1286. })
  1287. },
  1288. //清空一行
  1289. deleteRow(index, rows) {
  1290. this.queryParams.fAmtdr = 0
  1291. this.queryParams.fAmtcr = 0
  1292. rows.splice(index, 1)
  1293. for(let item in this.DzfeeList) {
  1294. console.log(this.DzfeeList[item])
  1295. this.queryParams.fAmtcr = this.DzfeeList[item].fAmt
  1296. this.queryParams.fAmtdr = this.DzfeeList[item].fAmtdr
  1297. }
  1298. },
  1299. },
  1300. };
  1301. </script>
  1302. <style lang="scss" scoped>
  1303. </style>