index.vue 107 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325
  1. <template>
  2. <div class="app-container">
  3. <!-- 主列表页面-->
  4. <div v-show="mainTable == false">
  5. <el-form
  6. :model="tablefilter"
  7. ref="queryParams_s"
  8. :inline="true"
  9. v-show="showSearch"
  10. label-width="68px"
  11. >
  12. <el-form-item label="货权方" prop="fCtrlcorpid">
  13. <el-input
  14. v-model="tablefilter.fCtrlcorpid"
  15. placeholder="请输入客户名称"
  16. filterable
  17. remote
  18. clearable
  19. size="small"
  20. style="width: 200px"
  21. @keyup.enter.native="handleQuery"
  22. :remote-method="corpsRemoteMethod"
  23. />
  24. </el-form-item>
  25. <el-form-item label="结算单位" prop="fCorpid">
  26. <el-select
  27. v-model="tablefilter.fCorpid"
  28. placeholder="请选择结算单位"
  29. filterable
  30. remote
  31. clearable
  32. size="small"
  33. style="width: 200px"
  34. @keyup.enter.native="handleQuery"
  35. :remote-method="corpsRemoteMethod"
  36. >
  37. <el-option
  38. v-for="(dict, index) in fMblnoOptions"
  39. :key="index.fId"
  40. :label="dict.fName"
  41. :value="dict.fId"
  42. ></el-option>
  43. </el-select>
  44. </el-form-item>
  45. <el-form-item label="对账日期" prop="timeInterval">
  46. <el-date-picker
  47. v-model="tablefilter.timeInterval"
  48. size="small"
  49. style="width: 240px"
  50. value-format="yyyy-MM-dd"
  51. type="daterange"
  52. range-separator="-"
  53. start-placeholder="开始日期"
  54. end-placeholder="结束日期"
  55. ></el-date-picker>
  56. </el-form-item>
  57. <el-form-item label="系统编号" prop="fBillno">
  58. <el-input
  59. v-model="tablefilter.fBillno"
  60. placeholder="请输入系统编号"
  61. clearable
  62. size="small"
  63. style="width: 200px"
  64. @keyup.enter.native="handleQuery"
  65. />
  66. </el-form-item>
  67. <el-form-item>
  68. <el-button
  69. type="cyan"
  70. icon="el-icon-search"
  71. size="mini"
  72. @click="handleQuery"
  73. >搜索</el-button
  74. >
  75. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  76. >重置</el-button
  77. >
  78. </el-form-item>
  79. </el-form>
  80. <el-row :gutter="10" class="mb8">
  81. <el-col :span="1.5">
  82. <el-button
  83. type="primary"
  84. icon="el-icon-plus"
  85. size="mini"
  86. @click="handleAdd"
  87. v-hasPermi="['finance:contrast:add']"
  88. >新增</el-button
  89. >
  90. </el-col>
  91. <el-col :span="1.5">
  92. <el-button
  93. type="success"
  94. icon="el-icon-edit"
  95. size="mini"
  96. :disabled="single"
  97. @click="handleUpdate"
  98. v-hasPermi="['warehouse:contrast:edit']"
  99. >修改</el-button
  100. >
  101. </el-col>
  102. <el-col :span="1.5">
  103. <el-button
  104. type="warning"
  105. icon="el-icon-download"
  106. size="mini"
  107. @click="handleExport"
  108. v-hasPermi="['finance:contrast:export']"
  109. >导出</el-button
  110. >
  111. </el-col>
  112. <div class="tabSetting">
  113. <right-toolbar
  114. :showSearch.sync="showSearch"
  115. @queryTable="getList"
  116. ></right-toolbar>
  117. <div style="margin: 0 12px">
  118. <el-button
  119. icon="el-icon-setting"
  120. size="mini"
  121. circle
  122. @click="showSetting = !showSetting"
  123. ></el-button>
  124. </div>
  125. </div>
  126. </el-row>
  127. <el-dialog
  128. title="自定义列显示"
  129. :visible.sync="showSetting"
  130. width="700px"
  131. v-dialogDrag
  132. >
  133. <template slot="title">
  134. <div class="avue-crud__dialog__header">
  135. <span class="el-dialog__title">
  136. <span
  137. style="
  138. display: inline-block;
  139. width: 3px;
  140. height: 20px;
  141. margin-right: 5px;
  142. float: left;
  143. margin-top: 2px;
  144. "
  145. ></span>
  146. </span>
  147. </div>
  148. </template>
  149. <div>配置排序列数据(拖动调整顺序)</div>
  150. <div style="margin-left: 17px">
  151. <el-checkbox
  152. v-model="allCheck"
  153. label="全选"
  154. @change="allChecked"
  155. ></el-checkbox>
  156. </div>
  157. <div style="padding: 4px; display: flex; justify-content: center">
  158. <draggable
  159. v-model="setRowList"
  160. group="site"
  161. animation="300"
  162. @start="onStart"
  163. @end="onEnd"
  164. handle=".indraggable"
  165. >
  166. <transition-group>
  167. <div
  168. v-for="item in setRowList"
  169. :key="item.surface"
  170. class="listStyle"
  171. >
  172. <div style="width: 500px" class="indraggable">
  173. <div class="progress" :style="{ width: item.width + 'px' }">
  174. <el-checkbox
  175. :label="item.name"
  176. v-model="item.checked"
  177. :true-label="0"
  178. :false-label="1"
  179. >{{ item.name }}
  180. </el-checkbox>
  181. </div>
  182. </div>
  183. <el-input-number
  184. v-model.number="item.width"
  185. controls-position="right"
  186. :min="1"
  187. :max="500"
  188. size="mini"
  189. ></el-input-number>
  190. </div>
  191. </transition-group>
  192. </draggable>
  193. </div>
  194. <span slot="footer" class="dialog-footer">
  195. <el-button @click="showSetting = false">取 消</el-button>
  196. <el-button @click="delRow" type="danger">重 置</el-button>
  197. <el-button type="primary" @click="save()">确 定</el-button>
  198. </span>
  199. </el-dialog>
  200. <el-table
  201. v-loading="loading"
  202. :data="contrastList"
  203. @selection-change="handleSelectionChange"
  204. show-summary
  205. :summary-method="listTotal"
  206. >
  207. <el-table-column width="100" align="center" type="selection" />
  208. <!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
  209. <el-table-column label="行号" align="center" type="index" fixed="left" />
  210. <el-table-column
  211. v-for="(item, index) in getRowList"
  212. :key="index"
  213. :label="item.name"
  214. :width="item.width"
  215. :prop="item.label"
  216. align="center"
  217. :fixed="item.fixed"
  218. :show-overflow-tooltip="true"
  219. />
  220. <!-- <el-table-column label="系统编号" align="center" prop="fBillno" show-overflow-tooltip width="120"/>-->
  221. <!-- <el-table-column label="货权方" sortable align="center" show-overflow-tooltip prop="fCtrlcorpid" width="220"/>-->
  222. <!-- <el-table-column label="结算单位" sortable align="center" prop="fCorpidName" show-overflow-tooltip width="220"/>-->
  223. <!-- <el-table-column label="账单日期" sortable align="center" prop="fAccbilldate" width="120">-->
  224. <!-- <template slot-scope="scope">-->
  225. <!-- <span>{{ parseTime(scope.row.fAccbilldate, "{y}-{m}-{d}") }}</span>-->
  226. <!-- </template>-->
  227. <!-- </el-table-column>-->
  228. <!-- <el-table-column label="提单号" sortable align="center" prop="tMblno" width="216"/>-->
  229. <!-- <el-table-column label="金额" align="center" prop="fAmtdr" width="120"/>-->
  230. <!-- <el-table-column label="对账金额" align="center" prop="fAmtcr" width="120"/>-->
  231. <!-- &lt;!&ndash; <el-table-column label="单据类型" align="center" prop="fBilltype" />&ndash;&gt;-->
  232. <!-- <el-table-column label="备注" align="center" show-overflow-tooltip prop="fRemarks" width="120"/>-->
  233. <!-- <el-table-column label="状态" align="center" prop="fBillstatus" width="120">-->
  234. <!-- <template slot-scope="scope">-->
  235. <!-- <span v-if="scope.row.fBillstatus == '1'">保存</span>-->
  236. <!-- <span v-else-if="scope.row.fBillstatus == '2'">暂存</span>-->
  237. <!-- <span v-else-if="scope.row.fBillstatus == '3'">审批驳回</span>-->
  238. <!-- <span v-else-if="scope.row.fBillstatus == '4'">提交审核</span>-->
  239. <!-- <span v-else-if="scope.row.fBillstatus == '5'">审核中</span>-->
  240. <!-- <span v-else-if="scope.row.fBillstatus == '6'">审核完成</span>-->
  241. <!-- </template>-->
  242. <!-- </el-table-column>-->
  243. <!-- <el-table-column label="制单部门" align="center" prop="fDeptid" /> -->
  244. <el-table-column
  245. label="操作"
  246. align="center"
  247. class-name="small-padding fixed-width"
  248. min-width="180"
  249. fixed="right"
  250. >
  251. <template slot-scope="scope">
  252. <el-button
  253. size="mini"
  254. type="text"
  255. icon="el-icon-view"
  256. @click="check(scope.row, 0)"
  257. v-hasPermi="['finance:contrast:edit']"
  258. >查看</el-button
  259. >
  260. <el-button
  261. size="mini"
  262. type="text"
  263. icon="el-icon-view"
  264. @click="check(scope.row, 1)"
  265. v-hasPermi="['finance:contrast:edit']"
  266. v-if="
  267. scope.row.fBillstatus == '提交审核' ||
  268. scope.row.fBillstatus == '审核中'
  269. "
  270. >审批进度</el-button
  271. >
  272. <el-button
  273. size="mini"
  274. type="text"
  275. icon="el-icon-edit"
  276. @click="handleUpdate(scope.row)"
  277. v-hasPermi="['finance:contrast:edit']"
  278. v-if="
  279. scope.row.fBillstatus == '保存' ||
  280. scope.row.fBillstatus == '暂存' ||
  281. scope.row.fBillstatus == '审批驳回'
  282. "
  283. >
  284. 修改</el-button
  285. >
  286. <el-button
  287. size="mini"
  288. type="text"
  289. icon="el-icon-delete"
  290. @click="handleDelete(scope.row)"
  291. v-hasPermi="['finance:contrast:remove']"
  292. v-if="
  293. scope.row.fBillstatus == '保存' ||
  294. scope.row.fBillstatus == '暂存' ||
  295. scope.row.fBillstatus == '审批驳回'
  296. "
  297. >删除</el-button
  298. >
  299. </template>
  300. </el-table-column>
  301. </el-table>
  302. <pagination
  303. v-show="total > 0"
  304. :total="total"
  305. :page.sync="queryParams.pageNum"
  306. :limit.sync="queryParams.pageSize"
  307. @pagination="getList"
  308. />
  309. </div>
  310. <!-- 新增修改页面-->
  311. <div v-if="mainTable == true">
  312. <el-form
  313. ref="ruless"
  314. :model="queryParams"
  315. :rules="ruless"
  316. label-width="68px"
  317. :inline="true"
  318. v-show="showSearch"
  319. >
  320. <el-form-item label="货权方" prop="fCtrlcorpid">
  321. <el-input
  322. v-model="queryParams.fCtrlcorpid"
  323. clearable
  324. size="small"
  325. style="width: 200px"
  326. @keyup.enter.native="handleQuery"
  327. :disabled="notChange"
  328. placeholder="请输入客户名称"
  329. />
  330. </el-form-item>
  331. <el-form-item label="结算单位" label-width="78px" prop="fCorpid">
  332. <el-select
  333. v-model="queryParams.fCorpid"
  334. placeholder="请选择结算单位"
  335. filterable
  336. remote
  337. clearable
  338. :disabled="doNot"
  339. style="width: 200px"
  340. size="small"
  341. @keyup.enter.native="handleQuery"
  342. :remote-method="corpsRemoteMethod"
  343. >
  344. <el-option
  345. v-for="(dict, index) in fMblnoOptions"
  346. :key="index.fId"
  347. :label="dict.fName"
  348. :value="dict.fId"
  349. ></el-option>
  350. </el-select>
  351. </el-form-item>
  352. <!-- <el-form-item label="提单号" prop="tMblno">
  353. <el-input v-model="TWareHouseFees.tMblno" placeholder="" :disabled="true"/>
  354. </el-form-item> -->
  355. <el-form-item label="对账日期" prop="fAccbilldate" label-width="78px">
  356. <el-date-picker
  357. v-model="queryParams.fAccbilldate"
  358. size="small"
  359. style="width: 200px"
  360. value-format="yyyy-MM-dd"
  361. type="date"
  362. :disabled="notChange"
  363. placeholder="选择账单日期"
  364. >
  365. </el-date-picker>
  366. </el-form-item>
  367. <el-form-item label="系统编号" prop="fBillno">
  368. <el-input
  369. v-model="queryParams.fBillno"
  370. placeholder=""
  371. clearable
  372. size="small"
  373. :disabled="true"
  374. style="width: 200px"
  375. @keyup.enter.native="handleQuery"
  376. />
  377. </el-form-item>
  378. <el-form-item label="录入人" prop="createBy">
  379. <el-input v-model="queryParams.createBy" disabled />
  380. </el-form-item>
  381. <el-form-item label="备注" prop="fRemarks">
  382. <el-input
  383. v-model="queryParams.fRemarks"
  384. size="small"
  385. style="width: 200px"
  386. :disabled="notChange"
  387. />
  388. </el-form-item>
  389. <el-form-item label="业务类型" prop="fSystemType">
  390. <el-select
  391. v-model="queryParams.fSystemType"
  392. placeholder="请选择业务类型"
  393. size="small"
  394. disabled
  395. style="width: 200px"
  396. >
  397. <el-option
  398. v-for="item in typeoptions"
  399. :key="item.value"
  400. :label="item.label"
  401. :value="item.value"
  402. >
  403. </el-option>
  404. </el-select>
  405. </el-form-item>
  406. <div style="width: 100%; display: flex; justify-content: space-between">
  407. <div style="display: flex">
  408. <el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === true" size="mini" @click="cancel"
  409. >返回列表</el-button
  410. >
  411. <el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === false" size="mini" @click="homePage"
  412. >返回首页</el-button
  413. >
  414. <el-button
  415. type="warning"
  416. size="mini"
  417. @click="reconciliation"
  418. :disabled="notChange"
  419. v-if="queryParams.fBillstatus < '4'"
  420. >检索</el-button
  421. >
  422. <el-button
  423. type="primary"
  424. size="mini"
  425. @click="confirmReconciliation"
  426. :disabled="notChange"
  427. v-if="queryParams.fBillstatus < '4'"
  428. >确认对账</el-button
  429. >
  430. <el-button type="warning" size="mini" @click="handleExportItems"
  431. >导出</el-button
  432. >
  433. <el-button
  434. type="success"
  435. size="mini"
  436. @click="backrRconciliation"
  437. v-if="queryParams.fBillstatus === '6'"
  438. >撤销对账</el-button
  439. >
  440. <!-- <el-button type="info" size="small" @click="exportData">导出</el-button>-->
  441. <el-button
  442. type="danger"
  443. size="mini"
  444. :disabled="disappear"
  445. v-if="queryParams.fBillstatus === '4'"
  446. @click="backApproval"
  447. >撤销审批</el-button>
  448. <el-button v-if="approve === true" size="mini" @click="goApproval">审批</el-button>
  449. <el-button
  450. type="primary"
  451. size="mini"
  452. v-if="queryParams.fBillstatus >= '3'"
  453. @click="addOrUpdateHandle()"
  454. >查看审批流</el-button
  455. >
  456. <el-button
  457. type="primary"
  458. size="mini"
  459. @click="submitForm(typevalue)"
  460. :disabled="notChange"
  461. >保 存</el-button
  462. >
  463. <el-button @click="addPage" size="mini">新 增</el-button>
  464. </div>
  465. <div style="margin: 0 12px">
  466. <el-button
  467. icon="el-icon-setting"
  468. size="mini"
  469. circle
  470. @click="showSetting2 = !showSetting2"
  471. ></el-button>
  472. </div>
  473. </div>
  474. <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> -->
  475. </el-form>
  476. <el-dialog
  477. title="自定义列显示"
  478. :visible.sync="showSetting2"
  479. width="700px"
  480. v-dialogDrag
  481. append-to-body
  482. >
  483. <template slot="title">
  484. <div class="avue-crud__dialog__header">
  485. <span class="el-dialog__title">
  486. <span
  487. style="
  488. display: inline-block;
  489. width: 3px;
  490. height: 20px;
  491. margin-right: 5px;
  492. float: left;
  493. margin-top: 2px;
  494. "
  495. ></span>
  496. </span>
  497. </div>
  498. </template>
  499. <div>配置排序列数据(拖动调整顺序)</div>
  500. <div style="margin-left: 17px">
  501. <el-checkbox
  502. v-model="allCheck2"
  503. label="全选"
  504. @change="allChecked2"
  505. ></el-checkbox>
  506. </div>
  507. <div style="padding: 4px; display: flex; justify-content: center">
  508. <draggable
  509. v-model="setRowList2"
  510. group="site"
  511. animation="300"
  512. @start="onStart"
  513. @end="onEnd"
  514. handle=".indraggable"
  515. >
  516. <transition-group>
  517. <div
  518. v-for="item in setRowList2"
  519. :key="item.surface"
  520. class="listStyle"
  521. >
  522. <div style="width: 500px" class="indraggable">
  523. <div class="progress" :style="{ width: item.width + 'px' }">
  524. <el-checkbox
  525. :label="item.name"
  526. v-model="item.checked"
  527. :true-label="0"
  528. :false-label="1"
  529. >{{ item.name }}
  530. </el-checkbox>
  531. </div>
  532. </div>
  533. <el-input-number
  534. v-model.number="item.width"
  535. controls-position="right"
  536. :min="1"
  537. :max="500"
  538. size="mini"
  539. ></el-input-number>
  540. </div>
  541. </transition-group>
  542. </draggable>
  543. </div>
  544. <span slot="footer" class="dialog-footer">
  545. <el-button @click="showSetting2 = false">取 消</el-button>
  546. <el-button @click="delRow2" type="danger">重 置</el-button>
  547. <el-button type="primary" @click="save2()">确 定</el-button>
  548. </span>
  549. </el-dialog>
  550. <el-table
  551. v-loading="loading"
  552. :data="DzfeeList"
  553. @selection-change="handleSelectionChange_s"
  554. show-summary
  555. :summary-method="listTotal"
  556. >
  557. <el-table-column label="行号" align="center" type="index" />
  558. <el-table-column
  559. v-for="(item, index) in getRowList2"
  560. :key="index"
  561. :label="item.name"
  562. :width="item.width"
  563. :prop="item.label"
  564. align="center"
  565. :fixed="item.fixed"
  566. :show-overflow-tooltip="true"
  567. />
  568. <!-- <el-table-column label="提单号" align="center" prop="fMblno" />
  569. <el-table-column label="业务日期" align="center" prop="fBsdate">
  570. <template slot-scope="scope">
  571. <span v-if="scope.row.fBsdate === undefined">无</span>
  572. <span v-else>{{ scope.row.fBsdate.slice(0, 10) }}</span>
  573. </template>
  574. </el-table-column>
  575. <el-table-column label="费用名称" align="center" prop="fFeeName" />
  576. <el-table-column label="收/付" align="center" prop="fSrcdc">
  577. <template slot-scope="scope">
  578. <span v-if="scope.row.fSrcdc == 'D'">收</span>
  579. <span v-else-if="scope.row.fSrcdc == 'C'">付</span>
  580. </template>
  581. </el-table-column>
  582. <el-table-column label="金额" align="center" prop="fAmtdr" />
  583. <el-table-column label="计价单位" align="center" prop="fFeeunitid" />
  584. <el-table-column label="数量" align="center" prop="fQty" />
  585. <el-table-column label="单价" align="center" prop="fUnitprice" />
  586. <el-table-column label="本次金额" align="center" prop="fAmt" />
  587. <el-table-column label="作业类型" align="center" prop="fBusinessType" />
  588. <el-table-column label="业务类型" align="center" prop="fBilltype">
  589. <template slot-scope="scope">
  590. <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>
  591. <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>
  592. <span v-else-if="scope.row.fBilltype == 'CKDB'">调拨</span>
  593. <span v-else-if="scope.row.fBilltype == 'HQZY'">货权转移</span>
  594. <span v-else-if="scope.row.fBilltype == 'JSCCF'">仓储费</span>
  595. <span v-else>{{ scope.row.fBilltype }}</span>
  596. </template>
  597. </el-table-column>
  598. <el-table-column label="来源编号" align="center" prop="srcBillNo" />
  599. <el-table-column label="提单号" align="center" prop="fMblno" />
  600. <el-table-column label="货物品名" align="center" prop="fProductName" />
  601. <el-table-column label="品牌" align="center" prop="fMarks" />
  602. <el-table-column label="计费起始日期" align="center" prop="fChargedate">
  603. <template slot-scope="scope">
  604. <span v-if="scope.row.fChargedate === undefined">无</span>
  605. <span v-else>{{ scope.row.fChargedate.slice(0, 10) }}</span>
  606. </template>
  607. </el-table-column>
  608. <el-table-column
  609. label="计费截止日期"
  610. align="center"
  611. prop="fBillingDeadline"
  612. >
  613. <template slot-scope="scope">
  614. <span v-if="scope.row.fBillingDeadline === undefined">无</span>
  615. <span v-else>{{ scope.row.fBillingDeadline.slice(0, 10) }}</span>
  616. </template>
  617. </el-table-column>
  618. <el-table-column label="计费天数" align="center" prop="fBillingDays" />
  619. <el-table-column
  620. label="库存天数"
  621. align="center"
  622. prop="fInventoryDays"
  623. />
  624. <el-table-column label="备注" align="center" prop="fRemarks" /> -->
  625. <el-table-column
  626. label="操作"
  627. align="center"
  628. class-name="small-padding fixed-width"
  629. >
  630. <template slot-scope="scope">
  631. <el-button
  632. size="mini"
  633. type="text"
  634. icon="el-icon-delete"
  635. :disabled="notChange"
  636. @click.native.prevent="deleteRow(scope.$index, DzfeeList)"
  637. >删除
  638. </el-button>
  639. </template>
  640. </el-table-column>
  641. </el-table>
  642. <div slot="footer" class="dialog-footer">
  643. <add-or-update
  644. v-if="addOrUpdateVisible"
  645. ref="addOrUpdate"
  646. @refreshDataList="getDataList"
  647. ></add-or-update>
  648. <approval-comments
  649. v-if="addOrUpdateVisib"
  650. ref="ApprovalComments"
  651. @refreshDataList="returnData"
  652. ></approval-comments>
  653. </div>
  654. <!-- 添加或修改财务数据主对话框 -->
  655. <el-dialog
  656. v-dialogDrag
  657. :fullscreen="dialogFull"
  658. :close-on-click-modal="false"
  659. width="70%"
  660. :title="title"
  661. :visible.sync="innerVisible"
  662. append-to-body
  663. >
  664. <template slot="title">
  665. <div class="avue-crud__dialog__header">
  666. <span class="el-dialog__title">
  667. <span
  668. style="
  669. display: inline-block;
  670. width: 3px;
  671. height: 20px;
  672. margin-right: 5px;
  673. float: left;
  674. margin-top: 2px;
  675. "
  676. ></span>
  677. </span>
  678. <div class="avue-crud__dialog__menu enlarge" @click="full">
  679. <i
  680. style="
  681. cursor: pointer;
  682. display: block;
  683. width: 12px;
  684. height: 12px;
  685. border: 1px solid #909399;
  686. border-top: 3px solid #909399;
  687. margin-top: -3px;
  688. "
  689. ></i>
  690. </div>
  691. </div>
  692. </template>
  693. <el-form
  694. :model="TWareHouseFees"
  695. ref="feeListRules"
  696. :rules="feeListRules"
  697. label-width="80px"
  698. :inline="true"
  699. >
  700. <el-form-item label="货权方" prop="fCorpid">
  701. <el-select
  702. v-model="TWareHouseFees.fCorpid"
  703. filterable
  704. remote
  705. clearable
  706. size="small"
  707. style="width: 200px"
  708. @keyup.enter.native="handleQuery"
  709. :remote-method="corpsRemoteMethod"
  710. placeholder="请输入客户名称"
  711. >
  712. <el-option
  713. v-for="(dict, index) in fMblnoOptions"
  714. :key="index.fId"
  715. :label="dict.fName"
  716. :value="dict.fId"
  717. ></el-option>
  718. </el-select>
  719. </el-form-item>
  720. <el-form-item label="结算单位" prop="fToCorpid">
  721. <el-select
  722. v-model="TWareHouseFees.fToCorpid"
  723. placeholder="请选择结算单位"
  724. :disabled="doNot"
  725. filterable
  726. remote
  727. clearable
  728. style="width: 200px"
  729. size="small"
  730. @keyup.enter.native="handleQuery"
  731. :remote-method="corpsRemoteMethod"
  732. >
  733. <el-option
  734. v-for="(dict, index) in fMblnoOptions"
  735. :key="index.fId"
  736. :label="dict.fName"
  737. :value="dict.fId"
  738. ></el-option>
  739. </el-select>
  740. </el-form-item>
  741. <el-form-item label="提单号" prop="fMblno">
  742. <el-input
  743. clearable
  744. v-model="TWareHouseFees.fMblno"
  745. placeholder="请输入提单号"
  746. style="width: 200px"
  747. size="small"
  748. />
  749. </el-form-item>
  750. <el-form-item label="应收应付" prop="fDc">
  751. <el-col :span="8">
  752. <el-select
  753. v-model="TWareHouseFees.fDc"
  754. size="small"
  755. style="width: 200px"
  756. >
  757. <el-option label="应收" value="D" />
  758. <el-option label="应付" value="C" />
  759. </el-select>
  760. </el-col>
  761. </el-form-item>
  762. <el-form-item label="是否对账" prop="fReconciliation">
  763. <el-col :span="8">
  764. <el-select
  765. v-model="TWareHouseFees.fReconciliation"
  766. size="small"
  767. style="width: 200px"
  768. >
  769. <el-option label="是" value="1" />
  770. <el-option label="否" value="0" />
  771. </el-select>
  772. </el-col>
  773. </el-form-item>
  774. <el-form-item label="费用名称" prop="fFeeid">
  775. <template>
  776. <el-select
  777. v-model="TWareHouseFees.fFeeid"
  778. filterable
  779. :disabled="browseStatus"
  780. remote
  781. size="small"
  782. style="width: 200px"
  783. :remote-method="fWRemoteMethod"
  784. placeholder="费用名称"
  785. multiple
  786. >
  787. <el-option
  788. v-for="item in fWbuOptions"
  789. :key="item.fId"
  790. :label="item.fName"
  791. :value="item.fId"
  792. >
  793. </el-option>
  794. </el-select>
  795. </template>
  796. </el-form-item>
  797. <el-form-item label="仓储业务" prop="fFeeid" v-if="typevalue == 1 || typevalue == 3">
  798. <el-select
  799. v-model="TWareHouseFees.fBilltype"
  800. size="small"
  801. style="width: 200px"
  802. @change="changefBilltype"
  803. placeholder="请选择仓储业务"
  804. >
  805. <el-option label="入库" value="SJRK"></el-option>
  806. <el-option label="出库" value="SJCK"></el-option>
  807. <el-option label="货权转移" value="HQZY"></el-option>
  808. </el-select>
  809. </el-form-item>
  810. <el-form-item label="作业类型" prop="fBusinessType">
  811. <el-select
  812. v-model="TWareHouseFees.fBusinessType"
  813. filterable
  814. :disabled="browseStatus"
  815. remote
  816. size="small"
  817. style="width: 200px"
  818. placeholder="作业类型"
  819. multiple
  820. >
  821. <el-option
  822. v-for="(dict, index) in businessTypeOption"
  823. :key="index.dictValue"
  824. :label="dict.dictLabel"
  825. :value="dict.dictValue"
  826. >
  827. </el-option>
  828. </el-select>
  829. </el-form-item>
  830. <el-form-item
  831. label="审核日期"
  832. prop="timeExamine"
  833. v-if="typevalue == 1 || typevalue == 3"
  834. >
  835. <el-date-picker
  836. style="width: 240px"
  837. size="small"
  838. v-model="TWareHouseFees.timeExamine"
  839. type="daterange"
  840. start-placeholder="开始日期"
  841. end-placeholder="结束日期"
  842. value-format="yyyy-MM-dd"
  843. :default-time="['00:00:00', '23:59:59']"
  844. >
  845. </el-date-picker>
  846. </el-form-item>
  847. <el-form-item
  848. label="对账日期"
  849. label-width="85px"
  850. prop="timeReconci"
  851. v-if="TWareHouseFees.fReconciliation == '1'"
  852. >
  853. <el-date-picker
  854. v-model="TWareHouseFees.timeReconci"
  855. size="small"
  856. style="width: 240px"
  857. value-format="yyyy-MM-dd"
  858. type="daterange"
  859. start-placeholder="开始日期"
  860. end-placeholder="结束日期"
  861. :default-time="['00:00:00', '23:59:59']"
  862. ></el-date-picker>
  863. </el-form-item>
  864. <el-form-item>
  865. <!-- <el-button class="btnColor" type="info" size="mini">导入</el-button> -->
  866. <el-button type="cyan" size="mini" @click="searchFee(typevalue)"
  867. >搜索</el-button
  868. >
  869. <el-button type="info" size="mini" @click="resetQuery_s"
  870. >重置</el-button
  871. >
  872. </el-form-item>
  873. <el-table
  874. v-loading="loading"
  875. :data="feeList"
  876. ref="feeList"
  877. show-summary
  878. :summary-method="getSum"
  879. @selection-change="handleSelectionChange_s"
  880. >
  881. <el-table-column type="selection" width="55" align="center" />
  882. <!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
  883. <el-table-column label="行号" align="center" type="index" />
  884. <el-table-column
  885. label="货权方"
  886. align="center"
  887. prop="fName"
  888. show-overflow-tooltip
  889. />
  890. <el-table-column
  891. label="结算单位"
  892. align="center"
  893. prop="fFeesName"
  894. show-overflow-tooltip
  895. />
  896. <!-- <el-table-column label="账单日期" align="center" prop="fAccbilldate"/> -->
  897. <el-table-column label="提单号" align="center" prop="fMblno" />
  898. <el-table-column label="品名" align="center" prop="fProductName" />
  899. <el-table-column label="业务日期" align="center">
  900. <template slot-scope="scope" v-if="scope.row.fBsdate">
  901. <span>{{ scope.row.fBsdate.slice(0, 10) }}</span>
  902. </template>
  903. </el-table-column>
  904. <el-table-column label="业务类型" align="center" prop="fBilltype">
  905. <template slot-scope="scope">
  906. <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>
  907. <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>
  908. <span v-else-if="scope.row.fBilltype == 'CKDB'">调拨</span>
  909. <span v-else-if="scope.row.fBilltype == 'HQZY'">货权转移</span>
  910. <span v-else-if="scope.row.fBilltype == 'JSCCF'">仓储费</span>
  911. <span v-else-if="scope.row.fBilltype == '1000'">计划下达</span>
  912. <span v-else-if="scope.row.fBilltype == '1010'">业务调度</span>
  913. <span v-else-if="scope.row.fBilltype == '1020'">车队派车</span>
  914. <span v-else-if="scope.row.fBilltype == '1030'">司机接单</span>
  915. <span v-else-if="scope.row.fBilltype == '1080'">司机出车</span>
  916. <span v-else-if="scope.row.fBilltype == '1040'">司机提箱</span>
  917. <span v-else-if="scope.row.fBilltype == '1050'"
  918. >司机装卸柜</span
  919. >
  920. <span v-else-if="scope.row.fBilltype == '1060'"
  921. >司机还卸柜</span
  922. >
  923. <span v-else-if="scope.row.fBilltype == '1070'">司机回单</span>
  924. <span v-else-if="scope.row.fBilltype == '1090'">费用补充</span>
  925. </template>
  926. </el-table-column>
  927. <el-table-column
  928. label="作业类型"
  929. align="center"
  930. prop="fBusinessType"
  931. />
  932. <!-- <el-table-column label="单据类型" align="center" prop="fBilltype" />-->
  933. <el-table-column
  934. label="审核日期"
  935. align="center"
  936. prop="fReviewDate"
  937. />
  938. <el-table-column label="金额" align="center" prop="fAmtdr" />
  939. <el-table-column
  940. label="本次金额"
  941. align="center"
  942. prop="fAmt"
  943. width="100"
  944. >
  945. <template slot-scope="scope">
  946. <el-input
  947. v-model="scope.row.fAmt"
  948. placeholder="请输入本次金额"
  949. clearable
  950. size="small"
  951. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  952. @change="imgChangeI(scope.row)"
  953. />
  954. </template>
  955. </el-table-column>
  956. <el-table-column label="费用名称" align="center" prop="fFeeName" />
  957. <el-table-column label="备注" align="center" prop="fRemarks">
  958. <template slot-scope="scope">
  959. <el-input
  960. v-model="scope.row.fRemarks"
  961. placeholder="请输入备注"
  962. clearable
  963. size="small"
  964. width="100"
  965. />
  966. </template>
  967. </el-table-column>
  968. </el-table>
  969. </el-form>
  970. <div slot="footer" class="dialog-footer">
  971. <el-button type="primary" @click="confirmImport">确 定</el-button>
  972. <el-button @click="signOut">取 消</el-button>
  973. </div>
  974. </el-dialog>
  975. </div>
  976. <!-- 对账表 -->
  977. <!-- <el-dialog-->
  978. <!-- v-dialogDrag-->
  979. <!-- :fullscreen="dialogFull"-->
  980. <!-- :visible.sync="open"-->
  981. <!-- width="70%"-->
  982. <!-- append-to-body-->
  983. <!-- :close-on-click-modal="false"-->
  984. <!-- :show-close="colseButton"-->
  985. <!-- >-->
  986. <!-- <template slot="title">-->
  987. <!-- <div class="avue-crud__dialog__header">-->
  988. <!-- <span class="el-dialog__title">-->
  989. <!-- <span-->
  990. <!-- style="-->
  991. <!-- display: inline-block;-->
  992. <!-- width: 3px;-->
  993. <!-- height: 20px;-->
  994. <!-- margin-right: 5px;-->
  995. <!-- float: left;-->
  996. <!-- margin-top: 2px;-->
  997. <!-- "-->
  998. <!-- ></span>-->
  999. <!-- </span>-->
  1000. <!-- <div class="avue-crud__dialog__menu enlarge" @click="full">-->
  1001. <!-- <i-->
  1002. <!-- style="-->
  1003. <!-- cursor: pointer;-->
  1004. <!-- display: block;-->
  1005. <!-- width: 12px;-->
  1006. <!-- height: 12px;-->
  1007. <!-- border: 1px solid #909399;-->
  1008. <!-- border-top: 3px solid #909399;-->
  1009. <!-- margin-top: -3px;-->
  1010. <!-- "-->
  1011. <!-- ></i>-->
  1012. <!-- </div>-->
  1013. <!-- </div>-->
  1014. <!-- </template>-->
  1015. <!-- </el-dialog>-->
  1016. <!-- 打印页面 -->
  1017. <!-- <el-dialog-->
  1018. <!-- :visible.sync="openPrint"-->
  1019. <!-- width="80%"-->
  1020. <!-- append-to-body-->
  1021. <!-- :close-on-click-modal="false"-->
  1022. <!-- title="对账单"-->
  1023. <!-- >-->
  1024. <!-- <el-table-->
  1025. <!-- ref="table"-->
  1026. <!-- id="print_area2"-->
  1027. <!-- v-loading="loading"-->
  1028. <!-- :data="printObject"-->
  1029. <!-- @selection-change="handleSelectionChange_s">-->
  1030. <!-- <el-table-column label="行号" align="center" type="index" width="70"/>-->
  1031. <!-- <el-table-column label="提单号" align="center" prop="fMblno" />-->
  1032. <!-- <el-table-column label="业务日期" align="center" prop="fBsdate">-->
  1033. <!-- <template slot-scope="scope">-->
  1034. <!-- <span>{{scope.row.fBsdate.slice(0,10)}}</span>-->
  1035. <!-- </template>-->
  1036. <!-- </el-table-column>-->
  1037. <!-- <el-table-column label="费用名称" align="center" prop="fFeeName" />-->
  1038. <!-- <el-table-column label="收/付" align="center" prop="fSrcdc">-->
  1039. <!-- <template slot-scope="scope">-->
  1040. <!-- <span v-if="scope.row.fSrcdc == 'D'">收</span>-->
  1041. <!-- <span v-else-if="scope.row.fSrcdc == 'C'">付</span>-->
  1042. <!-- </template>-->
  1043. <!-- </el-table-column>-->
  1044. <!-- <el-table-column label="金额" align="center" prop="fAmtdr" />-->
  1045. <!-- <el-table-column label="本次金额" align="center" prop="fAmt"/>-->
  1046. <!-- <el-table-column label="业务类型" align="center" prop="fBilltype">-->
  1047. <!-- <template slot-scope="scope">-->
  1048. <!-- <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>-->
  1049. <!-- <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>-->
  1050. <!-- <span v-else-if="scope.row.fBilltype == 'CKDB'">调拨</span>-->
  1051. <!-- <span v-else-if="scope.row.fBilltype == 'HQZY'">货权转移</span>-->
  1052. <!-- <span v-else>{{scope.row.fBilltype}}</span>-->
  1053. <!-- </template>-->
  1054. <!-- </el-table-column>-->
  1055. <!-- </el-table>-->
  1056. <!-- <span slot="footer" class="dialog-footer">-->
  1057. <!-- <el-button type="primary" style="marginTop:10px" @click="printSomething">打印</el-button>-->
  1058. <!-- <el-button @click="openPrint = false">取消</el-button>-->
  1059. <!-- </span>-->
  1060. <!-- </el-dialog>-->
  1061. </div>
  1062. </template>
  1063. <script>
  1064. import {
  1065. RevocationApproval,
  1066. backFee,
  1067. detailFee,
  1068. Cfee,
  1069. listFee,
  1070. getFee,
  1071. delFee,
  1072. addFee,
  1073. updateFee,
  1074. exportFee,
  1075. importFee,
  1076. exportWarehousebillsitems,
  1077. importFleet,
  1078. addFleet,
  1079. listFleet,
  1080. getFleet,
  1081. delFleet,
  1082. detailFleet,
  1083. confirmFleet,
  1084. listCorps,
  1085. } from "@/api/finance/contrast";
  1086. // import { listCorps } from "@/api/basicdata/corps";
  1087. import { listFees } from "@/api/basicdata/fees";
  1088. import AddOrUpdate from "@/views/viewApproval";
  1089. import { queryUserVal } from "@/api/warehouseBusiness/agreement";
  1090. import moment from "moment";
  1091. import print from "print-js";
  1092. import ApprovalComments from "@/views/startApproval";
  1093. import Global from "@/layout/components/global";
  1094. import Cookies from "js-cookie";
  1095. import { addSet, select, resetModule } from "@/api/system/set";
  1096. import draggable from "vuedraggable";
  1097. import Vue from "vue";
  1098. import { MessageBox } from 'element-ui'
  1099. Vue.directive("dialogDrag", {
  1100. bind(el, binding, vnode, oldVnode) {
  1101. const dialogHeaderEl = el.querySelector(".el-dialog__header");
  1102. const dragDom = el.querySelector(".el-dialog");
  1103. const enlarge = el.querySelector(".enlarge");
  1104. dialogHeaderEl.style.cursor = "move";
  1105. // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
  1106. const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null);
  1107. if (enlarge) {
  1108. enlarge.onclick = (e) => {
  1109. dragDom.style.top = "0px";
  1110. dragDom.style.left = "0px";
  1111. };
  1112. }
  1113. dialogHeaderEl.onmousedown = (e) => {
  1114. // 鼠标按下,计算当前元素距离可视区的距离
  1115. const disX = e.clientX - dialogHeaderEl.offsetLeft;
  1116. const disY = e.clientY - dialogHeaderEl.offsetTop;
  1117. // 获取到的值带px 正则匹配替换
  1118. let styL, styT;
  1119. // 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px
  1120. if (sty.left.includes("%")) {
  1121. styL =
  1122. +document.body.clientWidth * (+sty.left.replace(/\%/g, "") / 100);
  1123. styT =
  1124. +document.body.clientHeight * (+sty.top.replace(/\%/g, "") / 100);
  1125. } else {
  1126. styL = +sty.left.replace(/\px/g, "");
  1127. styT = +sty.top.replace(/\px/g, "");
  1128. }
  1129. document.onmousemove = function (e) {
  1130. // 通过事件委托,计算移动的距离
  1131. const l = e.clientX - disX;
  1132. const t = e.clientY - disY;
  1133. // 移动当前元素
  1134. if (t + styT >= 0) {
  1135. dragDom.style.top = `${t + styT}px`;
  1136. }
  1137. dragDom.style.left = `${l + styL}px`;
  1138. // 将此时的位置传出去
  1139. // binding.value({x:e.pageX,y:e.pageY})
  1140. };
  1141. document.onmouseup = function (e) {
  1142. document.onmousemove = null;
  1143. document.onmouseup = null;
  1144. };
  1145. };
  1146. },
  1147. });
  1148. export default {
  1149. name: "Fee",
  1150. data() {
  1151. return {
  1152. mainTable:false,
  1153. //全屏放大
  1154. dialogFull: false,
  1155. drag: false,
  1156. typeoptions: [
  1157. {
  1158. value: "1",
  1159. label: "仓储",
  1160. },
  1161. {
  1162. value: "2",
  1163. label: "车队",
  1164. },
  1165. {
  1166. value: "3",
  1167. label: "船务",
  1168. },
  1169. ],
  1170. typevalue: "",
  1171. tableDate: [
  1172. {
  1173. surface: "1",
  1174. label: "fBillno",
  1175. name: "系统编号",
  1176. checked: 0,
  1177. width: 100,
  1178. },
  1179. {
  1180. surface: "2",
  1181. label: "fCtrlcorpid",
  1182. name: "货权方",
  1183. checked: 0,
  1184. width: 100,
  1185. },
  1186. {
  1187. surface: "3",
  1188. label: "fCorpidName",
  1189. name: "结算单位",
  1190. checked: 0,
  1191. width: 100,
  1192. },
  1193. {
  1194. surface: "4",
  1195. label: "fAccbilldate",
  1196. name: "账单日期",
  1197. checked: 0,
  1198. width: 100,
  1199. },
  1200. {
  1201. surface: "5",
  1202. label: "tMblno",
  1203. name: "提单号",
  1204. checked: 0,
  1205. width: 100,
  1206. },
  1207. {
  1208. surface: "6",
  1209. label: "fAmtdr",
  1210. name: "金额",
  1211. checked: 0,
  1212. width: 100,
  1213. },
  1214. {
  1215. surface: "7",
  1216. label: "fAmtcr",
  1217. name: "对账金额",
  1218. checked: 0,
  1219. width: 100,
  1220. },
  1221. {
  1222. surface: "8",
  1223. label: "fRemarks",
  1224. name: "备注",
  1225. checked: 0,
  1226. width: 100,
  1227. },
  1228. {
  1229. surface: "9",
  1230. label: "fBillstatus",
  1231. name: "状态",
  1232. checked: 0,
  1233. width: 100,
  1234. },
  1235. ],
  1236. tableDate2: [
  1237. {
  1238. surface: "1",
  1239. label: "fMblno",
  1240. name: "提单号",
  1241. checked: 0,
  1242. width: 100,
  1243. },
  1244. {
  1245. surface: "2",
  1246. label: "fBsdate",
  1247. name: "业务日期",
  1248. checked: 0,
  1249. width: 100,
  1250. },
  1251. {
  1252. surface: "3",
  1253. label: "fFeeName",
  1254. name: "费用名称",
  1255. checked: 0,
  1256. width: 100,
  1257. },
  1258. {
  1259. surface: "4",
  1260. label: "fSrcdc",
  1261. name: "收/付",
  1262. checked: 0,
  1263. width: 100,
  1264. },
  1265. {
  1266. surface: "5",
  1267. label: "fAmtdr",
  1268. name: "金额",
  1269. checked: 0,
  1270. width: 100,
  1271. },
  1272. {
  1273. surface: "6",
  1274. label: "fFeeunitid",
  1275. name: "计价单位",
  1276. checked: 0,
  1277. width: 100,
  1278. },
  1279. {
  1280. surface: "7",
  1281. label: "fQty",
  1282. name: "数量",
  1283. checked: 0,
  1284. width: 100,
  1285. },
  1286. {
  1287. surface: "8",
  1288. label: "fUnitprice",
  1289. name: "单价",
  1290. checked: 0,
  1291. width: 100,
  1292. },
  1293. {
  1294. surface: "9",
  1295. label: "fAmt",
  1296. name: "本次金额",
  1297. checked: 0,
  1298. width: 100,
  1299. },
  1300. {
  1301. surface: "10",
  1302. label: "fBusinessType",
  1303. name: "作业类型",
  1304. checked: 0,
  1305. width: 100,
  1306. },
  1307. {
  1308. surface: "11",
  1309. label: "fBilltype",
  1310. name: "业务类型",
  1311. checked: 0,
  1312. width: 100,
  1313. },
  1314. {
  1315. surface: "12",
  1316. label: "srcBillNo",
  1317. name: "来源编号",
  1318. checked: 0,
  1319. width: 100,
  1320. },
  1321. {
  1322. surface: "13",
  1323. label: "fMblno",
  1324. name: "提单号",
  1325. checked: 0,
  1326. width: 100,
  1327. },
  1328. {
  1329. surface: "14",
  1330. label: "fProductName",
  1331. name: "货物品名",
  1332. checked: 0,
  1333. width: 100,
  1334. },
  1335. {
  1336. surface: "15",
  1337. label: "fMarks",
  1338. name: "品牌",
  1339. checked: 0,
  1340. width: 100,
  1341. },
  1342. {
  1343. surface: "16",
  1344. label: "fChargedate",
  1345. name: "计费起始日期",
  1346. checked: 0,
  1347. width: 100,
  1348. },
  1349. {
  1350. surface: "17",
  1351. label: "fBillingDeadline",
  1352. name: "计费截止日期",
  1353. checked: 0,
  1354. width: 100,
  1355. },
  1356. {
  1357. surface: "18",
  1358. label: "fBillingDays",
  1359. name: "计费天数",
  1360. checked: 0,
  1361. width: 100,
  1362. },
  1363. {
  1364. surface: "19",
  1365. label: "fInventoryDays",
  1366. name: "库存天数",
  1367. checked: 0,
  1368. width: 100,
  1369. },
  1370. {
  1371. surface: "20",
  1372. label: "fRemarks",
  1373. name: "备注",
  1374. checked: 0,
  1375. width: 100,
  1376. },
  1377. {
  1378. surface: "21",
  1379. label: "carLoadDate",
  1380. name: "提箱日期",
  1381. checked: 0,
  1382. width: 100,
  1383. },
  1384. ],
  1385. setRowList: [],
  1386. getRowList: [],
  1387. allCheck: false,
  1388. showSetting: false,
  1389. setRowList2: [],
  1390. getRowList2: [],
  1391. allCheck2: false,
  1392. showSetting2: false,
  1393. //控制结算单位是否可操作
  1394. doNot: false,
  1395. jFeetunitOptions: [],
  1396. // 总条数
  1397. total: 0,
  1398. totAL: 0,
  1399. Ttime: 0,
  1400. colseButton: true,
  1401. approval: [],
  1402. disappear: false,
  1403. addIndex: [],
  1404. addOrUpdateVisible: false,
  1405. addOrUpdateVisib: false,
  1406. contrastId: 210,
  1407. // 审批状态
  1408. approve: false,
  1409. // 打印表
  1410. printObject: [],
  1411. //登陆人
  1412. Lander: "",
  1413. openPrint: false,
  1414. statrGo: true,
  1415. state_s: true,
  1416. notChange: false,
  1417. browseStatus: false,
  1418. options: "",
  1419. dateRange: "",
  1420. // 遮罩层
  1421. loading: true,
  1422. fAccbilldate: "",
  1423. // 选中数组
  1424. ids: [],
  1425. // 非单个禁用
  1426. single: true,
  1427. // 非多个禁用
  1428. multiple: true,
  1429. // 显示搜索条件
  1430. showSearch: true,
  1431. // 财务数据主表格数据
  1432. feeList: [],
  1433. // 客户(客户数据)
  1434. fMblnoOptions: [],
  1435. fFeeunitidOptions: [],
  1436. fWbuOptions: [],
  1437. KHblnoOptions: [],
  1438. //打开内部弹窗
  1439. innerVisible: false,
  1440. selection: "",
  1441. // 弹出层标题
  1442. title: "",
  1443. // 操作人
  1444. Operator: "",
  1445. // 是否显示弹出层
  1446. open: false,
  1447. dialogVisible: false,
  1448. // 财务对账表格
  1449. DzfeeList: [],
  1450. // 财务主页面表格
  1451. contrastList: [],
  1452. empty: [],
  1453. nothing: [],
  1454. Fee: [],
  1455. //导入从表传主表
  1456. pass: {
  1457. fAmtdr: "", //应收合计
  1458. fAmtcr: "", //应付合计
  1459. fMblno: "", //提单号
  1460. fName: "", //货权方
  1461. fFeesName: "", //结算单位
  1462. fCorpid: "", //结算单位ID
  1463. },
  1464. hide: false,
  1465. cancelButton: true,
  1466. businessTypeOption: [],
  1467. // 传值对象
  1468. TWareHouseFees: {
  1469. fCorpid: "",
  1470. fToCorpid: "",
  1471. fMblno: "",
  1472. fStatementNo: "",
  1473. fFeeid: "",
  1474. timeExamine: "",
  1475. timeInterval: "",
  1476. fDc: "D",
  1477. fReconciliation: "0",
  1478. timeReconci: "",
  1479. fBusinessType: "",
  1480. fBilltype: "SJRK",
  1481. },
  1482. // 查询参数
  1483. queryParams: {
  1484. pageNum: 1,
  1485. pageSize: 10,
  1486. fBillno: null,
  1487. fCtrlcorpid: null,
  1488. fCorpid: null,
  1489. tMblno: null,
  1490. fAmtdr: null,
  1491. fAmtcr: null,
  1492. fId: null,
  1493. fBilltype: null,
  1494. fBillstatus: null,
  1495. fRemarks: null,
  1496. fAccbilldate: null,
  1497. fDeptid: null,
  1498. createBy: null,
  1499. timeReconci: null,
  1500. },
  1501. // 主表查询参数
  1502. tablefilter: {
  1503. pageNum: 1,
  1504. pageSize: 10,
  1505. fBillno: null,
  1506. fCtrlcorpid: null,
  1507. fId: null,
  1508. fCorpid: null,
  1509. tMblno: null,
  1510. fAmtdr: null,
  1511. fAmtcr: null,
  1512. fBilltype: null,
  1513. fBillstatus: null,
  1514. fRemarks: null,
  1515. fAccbilldate: null,
  1516. fDeptid: null,
  1517. },
  1518. // 表单参数
  1519. form: {},
  1520. // 表单校验
  1521. ruless: {
  1522. fCtrlcorpid: [{ required: true, message: " ", trigger: "blur" }],
  1523. fCorpid: [{ required: true, message: " ", trigger: "blur" }],
  1524. fAccbilldate: [{ required: true, message: " ", trigger: "blur" }],
  1525. },
  1526. feeListRules: {
  1527. fDc: [{ required: true, message: " ", trigger: "blur" }],
  1528. fToCorpid: [{ required: true, message: " ", trigger: "blur" }],
  1529. fReconciliation: [{ required: true, message: " ", trigger: "blur" }],
  1530. timeExamine: [{ required: true, message: " ", trigger: "blur" }],
  1531. },
  1532. };
  1533. },
  1534. components: {
  1535. draggable,
  1536. AddOrUpdate,
  1537. ApprovalComments,
  1538. },
  1539. created() {
  1540. this.setRowList = this.tableDate;
  1541. this.getRowList = this.tableDate;
  1542. this.setRowList2 = this.tableDate2;
  1543. this.getRowList2 = this.tableDate2;
  1544. this.typevalue = Cookies.get("sysType");
  1545. this.getList();
  1546. this.register();
  1547. this.getDicts("data_unitfees").then((response) => {
  1548. this.jFeetunitOptions = response.data;
  1549. });
  1550. this.getDicts("st_in_type").then((response) => {
  1551. this.businessTypeOption = response.data;
  1552. });
  1553. this.getRow();
  1554. this.getRow2();
  1555. },
  1556. activated() {
  1557. if(this.$route.query.data){
  1558. let data = JSON.parse(this.$route.query.data)
  1559. if(data.key === 1){
  1560. this.handleAdd()
  1561. }else{
  1562. this.Jump();
  1563. }
  1564. }
  1565. },
  1566. methods: {
  1567. addPage(){
  1568. MessageBox.confirm("是否已保存?",{
  1569. confirmButtonText: '确定',
  1570. cancelButtonText: '取消',
  1571. type: 'warning'
  1572. }
  1573. ).then(()=> {
  1574. this.handleAdd()
  1575. })
  1576. },
  1577. full() {
  1578. this.dialogFull = !this.dialogFull;
  1579. },
  1580. //列设置全选
  1581. allChecked() {
  1582. if (this.allCheck == true) {
  1583. this.setRowList.map((e) => {
  1584. return (e.checked = 0);
  1585. });
  1586. } else {
  1587. this.setRowList.map((e) => {
  1588. return (e.checked = 1);
  1589. });
  1590. }
  1591. },
  1592. //查询列数据
  1593. getRow() {
  1594. let that = this;
  1595. this.data = {
  1596. tableName: "对账列表页",
  1597. userId: Cookies.get("userName"),
  1598. };
  1599. select(this.data).then((res) => {
  1600. if (res.data.length != 0) {
  1601. this.getRowList = res.data.filter((e) => e.checked == 0);
  1602. this.setRowList = res.data;
  1603. this.setRowList = this.setRowList.reduce((res, item) => {
  1604. res.push({
  1605. surface: item.surface,
  1606. label: item.label,
  1607. name: item.name,
  1608. checked: item.checked,
  1609. width: item.width,
  1610. fixed: item.fixed,
  1611. });
  1612. return res;
  1613. }, []);
  1614. }
  1615. });
  1616. },
  1617. //保存列设置
  1618. save() {
  1619. this.showSetting = false;
  1620. this.data = {
  1621. tableName: "对账列表页",
  1622. userId: Cookies.get("userName"),
  1623. sysTableSetList: this.setRowList,
  1624. };
  1625. addSet(this.data).then((res) => {
  1626. this.getRowList = this.setRowList.filter((e) => e.checked == 0);
  1627. });
  1628. },
  1629. //重置列表
  1630. delRow() {
  1631. this.data = {
  1632. tableName: "对账列表页",
  1633. userId: Cookies.get("userName"),
  1634. };
  1635. resetModule(this.data).then((res) => {
  1636. if (res.code == 200) {
  1637. this.showSetting = false;
  1638. this.setRowList = this.getRowList = this.$options.data().tableDate
  1639. }
  1640. });
  1641. },
  1642. //列设置全选
  1643. allChecked2() {
  1644. if (this.allCheck2 == true) {
  1645. this.setRowList2.map((e) => {
  1646. return (e.checked = 0);
  1647. });
  1648. } else {
  1649. this.setRowList2.map((e) => {
  1650. return (e.checked = 1);
  1651. });
  1652. }
  1653. },
  1654. //查询列数据
  1655. getRow2() {
  1656. let that = this;
  1657. this.data = {
  1658. tableName: "对账明细",
  1659. userId: Cookies.get("userName"),
  1660. };
  1661. select(this.data).then((res) => {
  1662. if (res.data.length != 0) {
  1663. this.getRowList2 = res.data.filter((e) => e.checked == 0);
  1664. this.setRowList2 = res.data;
  1665. this.setRowList2 = this.setRowList2.reduce((res, item) => {
  1666. res.push({
  1667. surface: item.surface,
  1668. label: item.label,
  1669. name: item.name,
  1670. checked: item.checked,
  1671. width: item.width,
  1672. fixed: item.fixed,
  1673. });
  1674. return res;
  1675. }, []);
  1676. }
  1677. });
  1678. },
  1679. //保存列设置
  1680. save2() {
  1681. this.showSetting2 = false;
  1682. this.data = {
  1683. tableName: "对账明细",
  1684. userId: Cookies.get("userName"),
  1685. sysTableSetList: this.setRowList2,
  1686. };
  1687. addSet(this.data).then((res) => {
  1688. this.getRowList2 = this.setRowList2.filter((e) => e.checked == 0);
  1689. });
  1690. },
  1691. //重置列表
  1692. delRow2() {
  1693. this.data = {
  1694. tableName: "对账明细",
  1695. userId: Cookies.get("userName"),
  1696. };
  1697. resetModule(this.data).then((res) => {
  1698. if (res.code == 200) {
  1699. this.showSetting2 = false;
  1700. this.setRowList2 = this.getRowList2 = this.$options.data().tableDate2
  1701. }
  1702. });
  1703. },
  1704. //开始拖拽事件
  1705. onStart() {
  1706. this.drag = true;
  1707. },
  1708. //拖拽结束事件
  1709. onEnd() {
  1710. this.drag = false;
  1711. },
  1712. //对账页面合计
  1713. listTotal(param) {
  1714. const { columns, data } = param;
  1715. const sums = [];
  1716. columns.forEach((column, index) => {
  1717. if (index === 0) {
  1718. sums[index] = "合计";
  1719. } else if (column.label == '金额' || column.label == '对账金额' || column.label == '本次金额') {
  1720. const values = data.map((item) => Number(item[column.property]));
  1721. if (!values.every((value) => isNaN(value))) {
  1722. sums[index] = values.reduce((prev, curr) => {
  1723. const value = Number(curr);
  1724. if (!isNaN(value)) {
  1725. return prev + curr;
  1726. } else {
  1727. return prev;
  1728. }
  1729. }, 0);
  1730. }
  1731. }
  1732. });
  1733. return sums;
  1734. },
  1735. //财务主取消
  1736. signOut() {
  1737. if (this.DzfeeList.length == 0) {
  1738. this.doNot = false;
  1739. } else {
  1740. this.doNot = true;
  1741. }
  1742. this.innerVisible = false;
  1743. this.feeList = [];
  1744. },
  1745. // 审批跳转
  1746. Jump() {
  1747. this.approval = this.$route.query.data;
  1748. if (this.approval) {
  1749. this.colseButton = false;
  1750. this.approval = JSON.parse(this.approval);
  1751. this.hide = false;
  1752. this.doNot = true;
  1753. this.notChange = true;
  1754. this.approve = true;
  1755. this.mainTable = true
  1756. this.disappear = true;
  1757. this.cancelButton = false;
  1758. this.reset();
  1759. this.pass = {
  1760. fAmtdr: "", //应收合计
  1761. fAmtcr: "", //应付合计
  1762. fMblno: "", //提单号
  1763. fName: "", //货权方
  1764. fFeesName: "", //结算单位
  1765. fCorpid: "", //结算单位ID
  1766. };
  1767. console.log(this.approval)
  1768. getFee(this.approval.billId).then((response) => {
  1769. this.Operator = response.data.tFee.createBy;
  1770. if (response.data.feeDoList != 0) {
  1771. response.data.feeDoList.map((e) => {
  1772. if (e.fBillingDeadline) {
  1773. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  1774. }
  1775. if (e.fBsdate) {
  1776. e.fBsdate = e.fBsdate.slice(0, 10);
  1777. }
  1778. if (e.fChargedate) {
  1779. e.fChargedate = e.fChargedate.slice(0, 10);
  1780. }
  1781. if (e.fSrcdc) {
  1782. if (e.fSrcdc == "D") {
  1783. e.fSrcdc = "收";
  1784. } else {
  1785. e.fSrcdc = "付";
  1786. }
  1787. }
  1788. });
  1789. }
  1790. this.DzfeeList = response.data.feeDoList;
  1791. this.fWbuOptions = response.data.feesList;
  1792. this.queryParams = response.data.tFee;
  1793. this.fWbuOptions = response.data.feesList;
  1794. this.fMblnoOptions = response.data.corps;
  1795. this.mainTable = true;
  1796. this.title = "修改财务数据主";
  1797. });
  1798. }
  1799. },
  1800. homepaGe() {
  1801. let view = {
  1802. fullPath: "/finance/contrast",
  1803. hash: "",
  1804. matched: Array(2),
  1805. meta: Object,
  1806. name: "Contrast",
  1807. params: Object,
  1808. path: "/finance/contrast",
  1809. query: Object,
  1810. title: "对账",
  1811. };
  1812. this.$router.push({ path: "/index" });
  1813. this.$store
  1814. .dispatch("tagsView/delView", view)
  1815. .then(({ visitedViews }) => {
  1816. if (this.isActive(view)) {
  1817. this.toLastView(visitedViews, view);
  1818. }
  1819. });
  1820. Global.$emit("removeCache", "closeSelectedTag", view);
  1821. },
  1822. homePage() {
  1823. this.open = false;
  1824. let view = {
  1825. fullPath: "/finance/contrast",
  1826. hash: "",
  1827. matched: Array(2),
  1828. meta: Object,
  1829. name: "Contrast",
  1830. params: Object,
  1831. path: "/finance/contrast",
  1832. query: Object,
  1833. title: "对账",
  1834. };
  1835. this.$router.push({ path: "/index" });
  1836. this.$store
  1837. .dispatch("tagsView/delView", view)
  1838. .then(({ visitedViews }) => {
  1839. if (this.isActive(view)) {
  1840. this.toLastView(visitedViews, view);
  1841. }
  1842. });
  1843. Global.$emit("removeCache", "closeSelectedTag", view);
  1844. },
  1845. // 撤销审批
  1846. backApproval() {
  1847. if(Cookies.get("sysType") == 3){
  1848. let data = {
  1849. id: this.queryParams.fId,
  1850. actId: 430,
  1851. billId: this.queryParams.fId,
  1852. };
  1853. RevocationApproval(data).then((response) => {
  1854. if(response.code === 200){
  1855. this.msgSuccess("撤销审批成功");
  1856. console.log("11")
  1857. this.disappear = true;
  1858. this.mainTable = false
  1859. this.open = false;
  1860. this.getList();
  1861. }
  1862. });
  1863. }else{
  1864. let data = {
  1865. id: this.queryParams.fId,
  1866. actId: this.contrastId,
  1867. billId: this.queryParams.fId,
  1868. };
  1869. RevocationApproval(data).then((response) => {
  1870. this.msgSuccess("撤销审批成功");
  1871. this.disappear = true;
  1872. this.open = false;
  1873. this.getList();
  1874. });
  1875. }
  1876. },
  1877. returnData() {
  1878. this.addOrUpdateVisib = false;
  1879. this.open = false;
  1880. this.homepaGe();
  1881. },
  1882. getDataList() {
  1883. this.addOrUpdateVisible = false;
  1884. },
  1885. // 审批按钮
  1886. goApproval() {
  1887. this.addOrUpdateVisib = true;
  1888. this.$nextTick(() => {
  1889. if(Cookies.get("sysType") == 3){
  1890. this.$refs.ApprovalComments.init(this.queryParams.fId, 430);
  1891. }else{
  1892. this.$refs.ApprovalComments.init(this.queryParams.fId, this.contrastId);
  1893. }
  1894. });
  1895. },
  1896. // 查看审批流
  1897. addOrUpdateHandle() {
  1898. this.addOrUpdateVisible = true;
  1899. this.addOrUpdateVisib = false;
  1900. let id = null;
  1901. if (this.queryParams.fId) {
  1902. id = this.queryParams.fId;
  1903. } else {
  1904. id = this.queryParams.id;
  1905. }
  1906. this.$nextTick(() => {
  1907. if(Cookies.get("sysType") == 3) {
  1908. this.$refs.addOrUpdate.init(id, 430);
  1909. }else{
  1910. this.$refs.addOrUpdate.init(id, this.contrastId);
  1911. }
  1912. });
  1913. },
  1914. // 撤销对账
  1915. backrRconciliation() {
  1916. this.queryParams.fBillstatus = "1";
  1917. let formDate = new window.FormData();
  1918. formDate.append("tFee", JSON.stringify(this.queryParams));
  1919. formDate.append("tFeeDo", JSON.stringify(this.DzfeeList));
  1920. backFee(formDate).then((response) => {
  1921. this.msgSuccess("撤回成功");
  1922. this.open = false;
  1923. this.mainTable = false
  1924. this.reset();
  1925. this.getList();
  1926. });
  1927. },
  1928. // 打印功能
  1929. printing() {
  1930. if (this.DzfeeList.length !== 0) {
  1931. this.openPrint = true;
  1932. this.printObject = this.DzfeeList;
  1933. } else {
  1934. this.$message.error("无数据,请检查是否有数据");
  1935. }
  1936. },
  1937. // 确认打印
  1938. printSomething() {
  1939. // 此处的style即为打印时的样式
  1940. const style =
  1941. "table tr td,th { border-collapse: collapse;padding:15px;border:.5px #000 solid;text-align:center;}";
  1942. // "@media print {} }";
  1943. print({
  1944. printable: "print_area2",
  1945. type: "html",
  1946. header: "对账表",
  1947. headerStyle: "text-align:center;color:#000;width:100%;",
  1948. style: style, // 亦可使用引入的外部css;
  1949. scanStyles: false,
  1950. });
  1951. },
  1952. // 确认对账按钮功能
  1953. confirmReconciliation() {
  1954. this.$refs["ruless"].validate((valid) => {
  1955. if (valid) {
  1956. if (this.DzfeeList.length) {
  1957. // this.queryParams.fBillstatus = '4'
  1958. let formDate = new window.FormData();
  1959. formDate.append("tFee", JSON.stringify(this.queryParams));
  1960. formDate.append("tFeeDo", JSON.stringify(this.DzfeeList));
  1961. if (Cookies.get("sysType") == 1) {
  1962. Cfee(formDate).then((response) => {
  1963. this.open = false;
  1964. this.msgSuccess("操作成功");
  1965. this.getList();
  1966. });
  1967. this.handleAdd()
  1968. } else if (Cookies.get("sysType") == 2) {
  1969. confirmFleet(formDate).then((response) => {
  1970. this.open = false;
  1971. this.msgSuccess("操作成功");
  1972. this.getList();
  1973. });
  1974. }else if(Cookies.get("sysType") == 3){
  1975. formDate.append('billsType','KHDZ')
  1976. Cfee(formDate).then((response) => {
  1977. this.open = false;
  1978. this.msgSuccess("操作成功");
  1979. this.getList();
  1980. this.handleAdd()
  1981. });
  1982. }
  1983. } else {
  1984. this.$message.error("表单为空不允许操作");
  1985. }
  1986. }
  1987. });
  1988. },
  1989. //导出
  1990. handleExportItems() {
  1991. const fIds = this.queryParams.fId;
  1992. if (fIds !== null) {
  1993. this.$confirm("是否确认导出所有计费物资明细数据?", "警告", {
  1994. confirmButtonText: "确定",
  1995. cancelButtonText: "取消",
  1996. type: "warning",
  1997. })
  1998. .then(function () {
  1999. return exportWarehousebillsitems(fIds);
  2000. })
  2001. .then((response) => {
  2002. this.download(response.msg);
  2003. });
  2004. } else {
  2005. this.$message("请先保存");
  2006. }
  2007. },
  2008. // 对账按钮功能
  2009. reconciliation() {
  2010. if (!this.queryParams.fSystemType) {
  2011. return this.$message("请先选择业务类型");
  2012. }
  2013. this.queryParameter = {
  2014. fToCorpid: this.queryParams.fCorpid,
  2015. };
  2016. this.innerVisible = true;
  2017. this.feeList = [];
  2018. this.TWareHouseFees = {
  2019. fCorpid: "",
  2020. fToCorpid: this.queryParams.fCorpid,
  2021. fMblno: "",
  2022. fStatementNo: "",
  2023. fFeeid: "",
  2024. timeExamine: "",
  2025. timeInterval: "",
  2026. fSrcdc: "",
  2027. fReconciliation: "0",
  2028. timeReconci: "",
  2029. fDc: "D",
  2030. fBilltype: "",
  2031. };
  2032. if (this.queryParams.fCorpid) {
  2033. this.doNot = true;
  2034. }
  2035. },
  2036. // 默认录入人
  2037. register() {
  2038. queryUserVal().then((response) => {
  2039. this.Lander = response.user.userName;
  2040. });
  2041. },
  2042. // 合计
  2043. getSum(param) {
  2044. const { columns, data } = param;
  2045. const sums = [];
  2046. columns.forEach((column, index) => {
  2047. sums[0] = "合计";
  2048. sums[10] = this.totAL.toFixed(2);
  2049. sums[9] = this.Ttime.toFixed(2);
  2050. });
  2051. return sums;
  2052. },
  2053. // 导入多选框
  2054. handleSelectionChange_s(selection) {
  2055. this.totAL = 0;
  2056. this.Ttime = 0;
  2057. this.selection = selection;
  2058. if (this.selection.length == 0) {
  2059. for (let item in this.feeList) {
  2060. this.totAL += Number(this.feeList[item].fAmt);
  2061. this.Ttime += Number(this.feeList[item].fAmtdr);
  2062. }
  2063. } else {
  2064. for (let index in selection) {
  2065. this.totAL += Number(selection[index].fAmt);
  2066. this.Ttime += Number(selection[index].fAmtdr);
  2067. }
  2068. }
  2069. },
  2070. // 多选框选中数据
  2071. handleSelectionChange(selection) {
  2072. this.totAL = 0;
  2073. this.ids = selection.map((item) => item.fId);
  2074. this.single =
  2075. selection.length !== 1 ||
  2076. selection.map((item) => item.fBillstatus) == 4 ||
  2077. selection.map((item) => item.fBillstatus) == 6;
  2078. this.multiple = !selection.length;
  2079. },
  2080. // 金额筛选
  2081. imgChangeI(row) {
  2082. if (row.fAmt && Number(row.fAmt) > Number(row.fAmtdr)) {
  2083. this.$set(row, "fAmt", row.fAmtdr);
  2084. this.state_s = true;
  2085. }
  2086. if (this.selection.length !== 0) {
  2087. this.totAL = 0;
  2088. this.Ttime = 0;
  2089. for (let item in this.selection) {
  2090. this.totAL += Number(this.selection[item].fAmt);
  2091. this.Ttime += Number(this.selection[item].fAmtdr);
  2092. }
  2093. } else {
  2094. this.totAL = 0;
  2095. this.Ttime = 0;
  2096. for (let item in this.feeList) {
  2097. this.totAL += Number(this.feeList[item].fAmt);
  2098. this.Ttime += Number(this.feeList[item].fAmtdr);
  2099. }
  2100. }
  2101. },
  2102. /* 添加财务数据主 导入*/
  2103. confirmImport() {
  2104. this.doNot = true;
  2105. this.hide = true;
  2106. this.pass.fAmtdr = 0;
  2107. this.pass.fAmtcr = 0;
  2108. for (let item in this.selection) {
  2109. this.pass.fAmtcr = Number(this.pass.fAmtcr);
  2110. this.pass.fAmtdr = Number(this.pass.fAmtdr);
  2111. this.pass.fAmtcr += Number(this.selection[item].fAmt);
  2112. this.pass.fAmtdr += Number(this.selection[item].fAmtdr);
  2113. }
  2114. // this.pass.fAmtcr.toFixed(2);
  2115. if (this.state_s == true) {
  2116. if (this.selection.length == "0") {
  2117. this.$message.error("未选择导入行");
  2118. } else {
  2119. let Num = []
  2120. for (let item in this.selection) {
  2121. this.empty.push(this.selection[item].fMblno);
  2122. this.nothing.push(this.selection[item].fName);
  2123. if (this.DzfeeList.length === 0) {
  2124. this.DzfeeList = this.DzfeeList.concat(this.selection);
  2125. //去重提单号
  2126. this.empty = new Set(this.empty);
  2127. this.empty = Array.from(this.empty);
  2128. //去重货权方
  2129. this.nothing = new Set(this.nothing);
  2130. this.nothing = Array.from(this.nothing);
  2131. if (this.empty.length <= 1) {
  2132. this.pass.fMblno = this.empty[0];
  2133. } else {
  2134. this.pass.fMblno = this.empty[0] + "...";
  2135. }
  2136. if (this.nothing.length <= 1) {
  2137. this.pass.fName = this.nothing[0];
  2138. } else {
  2139. this.pass.fName = this.nothing[0] + "...";
  2140. }
  2141. // this.DzfeeList = this.DzfeeList.concat(this.Fee)
  2142. this.queryParams.tMblno = this.pass.fMblno; //提单号
  2143. this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid;
  2144. this.queryParams.fCtrlcorpid = this.pass.fName;
  2145. this.queryParams.fAmtcr = this.pass.fAmtcr;
  2146. this.queryParams.fAmtdr = this.pass.fAmtdr;
  2147. this.innerVisible = false;
  2148. this.feeList = [];
  2149. // this.feeList = this.DzfeeList
  2150. this.TWareHouseFees = {
  2151. fCorpid: "",
  2152. fToCorpid: "",
  2153. fMblno: "",
  2154. fStatementNo: "",
  2155. fFeeid: "",
  2156. timeExamine: "",
  2157. timeInterval: "",
  2158. fSrcdc: "",
  2159. fReconciliation: "0",
  2160. timeReconci: "",
  2161. fDc: "D",
  2162. };
  2163. return;
  2164. } else {
  2165. for (let li in this.DzfeeList) {
  2166. if (this.selection[item].fSrcid !== this.DzfeeList[li].fSrcid) {
  2167. this.Fee = this.DzfeeList.concat(this.selection);
  2168. console.log(this.Fee);
  2169. let result = [];
  2170. let obj = {};
  2171. for (let lis in this.Fee) {
  2172. if (!obj[this.Fee[lis].fSrcid]) {
  2173. result.push(this.Fee[lis]);
  2174. obj[this.Fee[lis].fSrcid] = true;
  2175. }
  2176. }
  2177. //去重提单号
  2178. this.empty = new Set(this.empty);
  2179. this.empty = Array.from(this.empty);
  2180. //去重货权方
  2181. this.nothing = new Set(this.nothing);
  2182. this.nothing = Array.from(this.nothing);
  2183. if (this.empty.length <= 1) {
  2184. this.pass.fMblno = this.empty[0];
  2185. } else {
  2186. this.pass.fMblno = this.empty[0] + "...";
  2187. }
  2188. if (this.nothing.length <= 1) {
  2189. this.pass.fName = this.nothing[0];
  2190. } else {
  2191. this.pass.fName = this.nothing[0] + "...";
  2192. }
  2193. // this.DzfeeList = this.DzfeeList.concat(this.Fee)
  2194. this.queryParams.tMblno = this.pass.fMblno; //提单号
  2195. this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid;
  2196. this.queryParams.fCtrlcorpid = this.pass.fName;
  2197. this.queryParams.fAmtcr = this.pass.fAmtcr;
  2198. this.queryParams.fAmtdr = this.pass.fAmtdr;
  2199. this.innerVisible = false;
  2200. this.feeList = [];
  2201. // this.feeList = this.DzfeeList
  2202. this.TWareHouseFees = {
  2203. fCorpid: "",
  2204. fToCorpid: this.queryParams.fCorpid,
  2205. fMblno: "",
  2206. fStatementNo: "",
  2207. fFeeid: "",
  2208. timeExamine: "",
  2209. timeInterval: "",
  2210. fSrcdc: "",
  2211. fReconciliation: "0",
  2212. timeReconci: "",
  2213. fDc: "D",
  2214. };
  2215. this.DzfeeList = result;
  2216. } else {
  2217. let i = Number(item) + 1;
  2218. Num += i + '、'
  2219. }
  2220. }
  2221. }
  2222. }
  2223. MessageBox.confirm("选中的第" + (Num).slice(0,Num.length-1) + "行重复,请重新选择",{
  2224. confirmButtonText: '确定',
  2225. cancelButtonText: '取消',
  2226. type: 'warning'
  2227. }
  2228. )
  2229. }
  2230. } else if (this.state_s == false) {
  2231. this.$message.error("本次金额不能大于原定金额");
  2232. }
  2233. },
  2234. // imgChangeI(fAmtdr,fAmt){
  2235. // if (fAmt <= fAmtdr){
  2236. // this.state_s = true
  2237. // }else if(fAmt > fAmtdr){
  2238. // this.$message.error('本次金额不能大于原定金额');
  2239. // this.state_s = false
  2240. // }
  2241. // },
  2242. // 导入搜索
  2243. searchFee(type) {
  2244. this.feeList = [];
  2245. this.$refs["feeListRules"].validate((valid) => {
  2246. if (valid) {
  2247. if (type == 1) {
  2248. importFee(this.TWareHouseFees).then((response) => {
  2249. this.feeList = response.rows;
  2250. if (this.feeList.length !== 0) {
  2251. this.$message.success("查询成功");
  2252. this.totAL = 0;
  2253. this.Ttime = 0;
  2254. for (let item in this.feeList) {
  2255. this.totAL += Number(this.feeList[item].fAmt);
  2256. this.Ttime += Number(this.feeList[item].fAmtdr);
  2257. this.$set(
  2258. this.feeList[item],
  2259. "fBsdate",
  2260. this.feeList[item].fBsdate.substring(0, 10)
  2261. );
  2262. }
  2263. } else {
  2264. this.$message.error("暂无数据");
  2265. }
  2266. });
  2267. } else if(type == 2){
  2268. importFleet(this.TWareHouseFees).then((response) => {
  2269. this.feeList = response.rows;
  2270. if (this.feeList.length !== 0) {
  2271. this.$message.success("查询成功");
  2272. this.totAL = 0;
  2273. this.Ttime = 0;
  2274. for (let item in this.feeList) {
  2275. this.totAL += Number(this.feeList[item].fAmt);
  2276. this.Ttime += Number(this.feeList[item].fAmtdr);
  2277. this.$set(
  2278. this.feeList[item],
  2279. "fBsdate",
  2280. this.feeList[item].fBsdate.substring(0, 10)
  2281. );
  2282. }
  2283. } else {
  2284. this.$message.error("暂无数据");
  2285. }
  2286. });
  2287. }else if(type == 3){
  2288. this.TWareHouseFees.fSystemType = this.queryParams.fSystemType
  2289. importFee(this.TWareHouseFees).then((response) => {
  2290. this.feeList = response.rows;
  2291. if (this.feeList.length !== 0) {
  2292. this.$message.success("查询成功");
  2293. this.totAL = 0;
  2294. this.Ttime = 0;
  2295. for (let item in this.feeList) {
  2296. this.totAL += Number(this.feeList[item].fAmt);
  2297. this.Ttime += Number(this.feeList[item].fAmtdr);
  2298. if(this.feeList[item].fBsdate){
  2299. this.$set(
  2300. this.feeList[item],
  2301. "fBsdate",
  2302. this.feeList[item].fBsdate.substring(0, 10)
  2303. );
  2304. }
  2305. }
  2306. } else {
  2307. this.$message.error("暂无数据");
  2308. }
  2309. });
  2310. }
  2311. }
  2312. });
  2313. },
  2314. /** 打开导入表弹窗 */
  2315. openImportTable() {
  2316. this.$refs.import.show();
  2317. },
  2318. /** 查询财务数据主列表 */
  2319. getList() {
  2320. this.loading = true;
  2321. this.getDicts("approval_process").then((response) => {
  2322. // this.feeList = response.rows;
  2323. this.options = response.data;
  2324. });
  2325. if (Cookies.get("sysType") == 1) {
  2326. listFee(this.tablefilter).then((response) => {
  2327. this.contrastList = response.rows;
  2328. this.total = response.total;
  2329. this.loading = false;
  2330. });
  2331. } else if (Cookies.get("sysType") == 2) {
  2332. listFleet(this.tablefilter).then((response) => {
  2333. this.contrastList = response.rows;
  2334. this.total = response.total;
  2335. this.loading = false;
  2336. });
  2337. }else if(Cookies.get("sysType") == 3){
  2338. this.tablefilter.fBilltype = 'KHDZ'
  2339. listFee(this.tablefilter).then((response) => {
  2340. this.contrastList = response.rows;
  2341. this.total = response.total;
  2342. this.loading = false;
  2343. });
  2344. }
  2345. },
  2346. // 取消按钮
  2347. cancel() {
  2348. if(this.notChange == true){
  2349. this.mainTable = false
  2350. }else{
  2351. MessageBox.confirm("是否已保存?",{
  2352. confirmButtonText: '确定',
  2353. cancelButtonText: '取消',
  2354. type: 'warning'
  2355. }
  2356. ).then(() => {
  2357. this.mainTable = false
  2358. this.reset();
  2359. this.getList();
  2360. this.queryParams.fSystemType = "";
  2361. })
  2362. }
  2363. },
  2364. // 表单重置
  2365. reset() {
  2366. this.form = {
  2367. fId: null,
  2368. fBillno: null,
  2369. fCtrlcorpid: null,
  2370. fCorpid: null,
  2371. tMblno: null,
  2372. fAmtdr: null,
  2373. fAmtcr: null,
  2374. fBilltype: null,
  2375. fBillstatus: "0",
  2376. fRemarks: null,
  2377. fAccbilldate: null,
  2378. delFlag: null,
  2379. createBy: null,
  2380. fDeptid: null,
  2381. createTime: null,
  2382. updateBy: null,
  2383. updateTime: null,
  2384. };
  2385. this.resetForm("form");
  2386. },
  2387. /** 搜索按钮操作 */
  2388. handleQuery() {
  2389. this.queryParams.pageNum = 1;
  2390. this.getList();
  2391. // this.searchFee()
  2392. },
  2393. changefBilltype() {
  2394. this.businessTypeOption = [];
  2395. if (this.TWareHouseFees.fBilltype == "SJRK") {
  2396. this.getDicts("st_in_type").then((response) => {
  2397. this.businessTypeOption = response.data;
  2398. });
  2399. } else if (this.TWareHouseFees.fBilltype == "SJCK") {
  2400. this.getDicts("st_out_type").then((response) => {
  2401. this.businessTypeOption = response.data;
  2402. });
  2403. } else if (this.TWareHouseFees.fBilltype == "HQZY") {
  2404. this.getDicts("st_trans_type").then((response) => {
  2405. this.businessTypeOption = response.data;
  2406. });
  2407. }
  2408. },
  2409. /** 重置按钮操作 */
  2410. resetQuery() {
  2411. // this.resetForm("queryParams_s");
  2412. this.tablefilter = {
  2413. pageNum: 1,
  2414. pageSize: 10,
  2415. fBillno: null,
  2416. fCtrlcorpid: null,
  2417. fCorpid: null,
  2418. timeInterval: null,
  2419. };
  2420. this.handleQuery();
  2421. this.TWareHouseFees = {
  2422. fCorpid: "",
  2423. fToCorpid: "",
  2424. fMblno: "",
  2425. fStatementNo: "",
  2426. fFeeid: "",
  2427. timeExamine: "",
  2428. timeInterval: "",
  2429. fSrcdc: "",
  2430. fReconciliation: "0",
  2431. };
  2432. },
  2433. //导入重置按钮
  2434. resetQuery_s() {
  2435. this.TWareHouseFees = {
  2436. fCorpid: "",
  2437. fToCorpid: "",
  2438. fMblno: "",
  2439. fStatementNo: "",
  2440. fFeeid: "",
  2441. timeExamine: "",
  2442. timeInterval: "",
  2443. fDc: "D",
  2444. fReconciliation: "0",
  2445. };
  2446. },
  2447. // 多选框选中数据
  2448. // handleSelectionChange(selection) {
  2449. // this.ids = selection.map(item => item.fId)
  2450. // this.single = selection.length!==1
  2451. // this.multiple = !selection.length
  2452. // },
  2453. // handleSelectionChanGe(selection){
  2454. // if(selection.length > 0) {
  2455. // this.statrGo = false
  2456. // }else{
  2457. // this.statrGo = true
  2458. // }
  2459. // },
  2460. /** 新增按钮操作 */
  2461. handleAdd() {
  2462. queryUserVal().then((response) => {
  2463. this.queryParams.createBy = response.user.userName;
  2464. });
  2465. this.queryParams.fSystemType = "";
  2466. this.doNot = false;
  2467. this.notChange = false;
  2468. this.hide = true;
  2469. this.reset();
  2470. this.DzfeeList = [];
  2471. this.pass = {
  2472. fAmtdr: "", //应收合计
  2473. fAmtcr: "", //应付合计
  2474. fMblno: "", //提单号
  2475. fName: "", //货权方
  2476. fFeesName: "", //结算单位
  2477. fCorpid: "", //结算单位ID
  2478. };
  2479. this.mainTable = true
  2480. this.title = "添加财务数据主";
  2481. this.queryParams = {
  2482. pageNum: 1,
  2483. pageSize: 10,
  2484. fBillno: null,
  2485. fCtrlcorpid: null,
  2486. fCorpid: null,
  2487. tMblno: null,
  2488. fAmtdr: null,
  2489. fId: null,
  2490. fAmtcr: null,
  2491. fBilltype: null,
  2492. fBillstatus: null,
  2493. fRemarks: null,
  2494. fAccbilldate: null,
  2495. fDeptid: null,
  2496. createBy: null,
  2497. timeReconci: null,
  2498. fSystemType: Cookies.get("sysType"),
  2499. };
  2500. console.log(Cookies.get("sysType"))
  2501. },
  2502. // 查看按钮
  2503. check(row, res) {
  2504. this.doNot = true;
  2505. this.notChange = true;
  2506. if (Cookies.get("sysType") == 1) {
  2507. getFee(row.fId).then((response) => {
  2508. this.Operator = response.data.tFee.createBy;
  2509. if (response.data.feeDoList != 0) {
  2510. response.data.feeDoList.map((e) => {
  2511. if (e.fBillingDeadline) {
  2512. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  2513. }
  2514. if (e.fBsdate) {
  2515. e.fBsdate = e.fBsdate.slice(0, 10);
  2516. }
  2517. if (e.fChargedate) {
  2518. e.fChargedate = e.fChargedate.slice(0, 10);
  2519. }
  2520. if (e.fSrcdc) {
  2521. if (e.fSrcdc == "D") {
  2522. e.fSrcdc = "收";
  2523. } else {
  2524. e.fSrcdc = "付";
  2525. }
  2526. }
  2527. });
  2528. }
  2529. this.DzfeeList = response.data.feeDoList;
  2530. this.fWbuOptions = response.data.feesList;
  2531. this.queryParams = response.data.tFee;
  2532. this.queryParams.fSystemType = response.data.tFee.fsystemType;
  2533. this.fWbuOptions = response.data.feesList;
  2534. this.fMblnoOptions = response.data.corps;
  2535. this.mainTable = true;
  2536. this.disappear = true;
  2537. this.title = "修改财务数据主";
  2538. if (res == 1) {
  2539. this.notChange = true;
  2540. if (this.Operator == this.Lander) {
  2541. this.disappear = false;
  2542. this.reset();
  2543. this.pass = {
  2544. fAmtdr: "", //应收合计
  2545. fAmtcr: "", //应付合计
  2546. fMblno: "", //提单号
  2547. fName: "", //货权方
  2548. fFeesName: "", //结算单位
  2549. fCorpid: "", //结算单位ID
  2550. };
  2551. const fId = row.fId || this.ids;
  2552. getFee(fId).then((response) => {
  2553. if (response.data.feeDoList != 0) {
  2554. response.data.feeDoList.map((e) => {
  2555. if (e.fBillingDeadline) {
  2556. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  2557. }
  2558. if (e.fBsdate) {
  2559. e.fBsdate = e.fBsdate.slice(0, 10);
  2560. }
  2561. if (e.fChargedate) {
  2562. e.fChargedate = e.fChargedate.slice(0, 10);
  2563. }
  2564. if (e.fSrcdc) {
  2565. if (e.fSrcdc == "D") {
  2566. e.fSrcdc = "收";
  2567. } else {
  2568. e.fSrcdc = "付";
  2569. }
  2570. }
  2571. });
  2572. }
  2573. this.DzfeeList = response.data.feeDoList;
  2574. this.fWbuOptions = response.data.feesList;
  2575. this.queryParams = response.data.tFee;
  2576. this.queryParams.fSystemType = response.data.tFee.fsystemType;
  2577. this.fWbuOptions = response.data.feesList;
  2578. this.fMblnoOptions = response.data.corps;
  2579. this.mainTable = true;
  2580. });
  2581. } else {
  2582. this.notChange = true;
  2583. }
  2584. } else {
  2585. this.notChange = true;
  2586. this.reset();
  2587. this.pass = {
  2588. fAmtdr: "", //应收合计
  2589. fAmtcr: "", //应付合计
  2590. fMblno: "", //提单号
  2591. fName: "", //货权方
  2592. fFeesName: "", //结算单位
  2593. fCorpid: "", //结算单位ID
  2594. };
  2595. const fId = row.fId || this.ids;
  2596. getFee(fId).then((response) => {
  2597. if (response.data.feeDoList != 0) {
  2598. response.data.feeDoList.map((e) => {
  2599. if (e.fBillingDeadline) {
  2600. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  2601. }
  2602. if (e.fBsdate) {
  2603. e.fBsdate = e.fBsdate.slice(0, 10);
  2604. }
  2605. if (e.fChargedate) {
  2606. e.fChargedate = e.fChargedate.slice(0, 10);
  2607. }
  2608. if (e.fSrcdc) {
  2609. if (e.fSrcdc == "D") {
  2610. e.fSrcdc = "收";
  2611. } else {
  2612. e.fSrcdc = "付";
  2613. }
  2614. }
  2615. });
  2616. }
  2617. this.DzfeeList = response.data.feeDoList;
  2618. this.fWbuOptions = response.data.feesList;
  2619. this.queryParams = response.data.tFee;
  2620. this.queryParams.fSystemType = response.data.tFee.fsystemType;
  2621. this.fWbuOptions = response.data.feesList;
  2622. this.fMblnoOptions = response.data.corps;
  2623. this.mainTable = true;
  2624. });
  2625. }
  2626. });
  2627. } else if (Cookies.get("sysType") == 2) {
  2628. getFleet(row.fId).then((response) => {
  2629. this.Operator = response.data.tFee.createBy;
  2630. if (response.data.feeDoList != 0) {
  2631. response.data.feeDoList.map((e) => {
  2632. if (e.fBillingDeadline) {
  2633. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  2634. }
  2635. if (e.fBsdate) {
  2636. e.fBsdate = e.fBsdate.slice(0, 10);
  2637. }
  2638. if (e.fChargedate) {
  2639. e.fChargedate = e.fChargedate.slice(0, 10);
  2640. }
  2641. if (e.fSrcdc) {
  2642. if (e.fSrcdc == "D") {
  2643. e.fSrcdc = "收";
  2644. } else {
  2645. e.fSrcdc = "付";
  2646. }
  2647. }
  2648. });
  2649. }
  2650. this.DzfeeList = response.data.feeDoList;
  2651. this.fWbuOptions = response.data.feesList;
  2652. this.queryParams = response.data.tFee;
  2653. this.fWbuOptions = response.data.feesList;
  2654. this.fMblnoOptions = response.data.corps;
  2655. this.mainTable = true;
  2656. this.disappear = true;
  2657. this.title = "修改财务数据主";
  2658. if (res == 1) {
  2659. this.notChange = true;
  2660. if (this.Operator == this.Lander) {
  2661. this.disappear = false;
  2662. this.reset();
  2663. this.pass = {
  2664. fAmtdr: "", //应收合计
  2665. fAmtcr: "", //应付合计
  2666. fMblno: "", //提单号
  2667. fName: "", //货权方
  2668. fFeesName: "", //结算单位
  2669. fCorpid: "", //结算单位ID
  2670. };
  2671. const fId = row.fId || this.ids;
  2672. getFleet(fId).then((response) => {
  2673. if (response.data.feeDoList != 0) {
  2674. response.data.feeDoList.map((e) => {
  2675. if (e.fBillingDeadline) {
  2676. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  2677. }
  2678. if (e.fBsdate) {
  2679. e.fBsdate = e.fBsdate.slice(0, 10);
  2680. }
  2681. if (e.fChargedate) {
  2682. e.fChargedate = e.fChargedate.slice(0, 10);
  2683. }
  2684. if (e.fSrcdc) {
  2685. if (e.fSrcdc == "D") {
  2686. e.fSrcdc = "收";
  2687. } else {
  2688. e.fSrcdc = "付";
  2689. }
  2690. }
  2691. });
  2692. }
  2693. this.DzfeeList = response.data.feeDoList;
  2694. this.fWbuOptions = response.data.feesList;
  2695. this.queryParams = response.data.tFee;
  2696. this.fWbuOptions = response.data.feesList;
  2697. this.fMblnoOptions = response.data.corps;
  2698. this.mainTable = true;
  2699. });
  2700. } else {
  2701. this.notChange = true;
  2702. }
  2703. } else {
  2704. this.notChange = true;
  2705. this.reset();
  2706. this.pass = {
  2707. fAmtdr: "", //应收合计
  2708. fAmtcr: "", //应付合计
  2709. fMblno: "", //提单号
  2710. fName: "", //货权方
  2711. fFeesName: "", //结算单位
  2712. fCorpid: "", //结算单位ID
  2713. };
  2714. const fId = row.fId || this.ids;
  2715. getFleet(fId).then((response) => {
  2716. if (response.data.feeDoList != 0) {
  2717. response.data.feeDoList.map((e) => {
  2718. if (e.fBillingDeadline) {
  2719. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  2720. }
  2721. if (e.fBsdate) {
  2722. e.fBsdate = e.fBsdate.slice(0, 10);
  2723. }
  2724. if (e.fChargedate) {
  2725. e.fChargedate = e.fChargedate.slice(0, 10);
  2726. }
  2727. if (e.fSrcdc) {
  2728. if (e.fSrcdc == "D") {
  2729. e.fSrcdc = "收";
  2730. } else {
  2731. e.fSrcdc = "付";
  2732. }
  2733. }
  2734. });
  2735. }
  2736. this.DzfeeList = response.data.feeDoList;
  2737. console.log(this.DzfeeList);
  2738. this.fWbuOptions = response.data.feesList;
  2739. this.queryParams = response.data.tFee;
  2740. this.fWbuOptions = response.data.feesList;
  2741. this.fMblnoOptions = response.data.corps;
  2742. this.mainTable = true;
  2743. });
  2744. }
  2745. });
  2746. }else if(Cookies.get("sysType") == 3){
  2747. getFee(row.fId).then((response) => {
  2748. this.Operator = response.data.tFee.createBy;
  2749. if (response.data.feeDoList != 0) {
  2750. response.data.feeDoList.map((e) => {
  2751. if (e.fBillingDeadline) {
  2752. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  2753. }
  2754. if (e.fBsdate) {
  2755. e.fBsdate = e.fBsdate.slice(0, 10);
  2756. }
  2757. if (e.fChargedate) {
  2758. e.fChargedate = e.fChargedate.slice(0, 10);
  2759. }
  2760. if (e.fSrcdc) {
  2761. if (e.fSrcdc == "D") {
  2762. e.fSrcdc = "收";
  2763. } else {
  2764. e.fSrcdc = "付";
  2765. }
  2766. }
  2767. });
  2768. }
  2769. this.DzfeeList = response.data.feeDoList;
  2770. this.fWbuOptions = response.data.feesList;
  2771. this.queryParams = response.data.tFee;
  2772. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  2773. // this.fWbuOptions = response.data.feesList;
  2774. this.fMblnoOptions = response.data.corps;
  2775. this.mainTable = true;
  2776. this.disappear = true;
  2777. this.title = "修改财务数据主";
  2778. if (res == 1) {
  2779. this.notChange = true;
  2780. if (this.Operator == this.Lander) {
  2781. console.log("111")
  2782. this.disappear = false;
  2783. this.reset();
  2784. this.pass = {
  2785. fAmtdr: "", //应收合计
  2786. fAmtcr: "", //应付合计
  2787. fMblno: "", //提单号
  2788. fName: "", //货权方
  2789. fFeesName: "", //结算单位
  2790. fCorpid: "", //结算单位ID
  2791. };
  2792. const fId = row.fId || this.ids;
  2793. getFee(fId).then((response) => {
  2794. if (response.data.feeDoList != 0) {
  2795. response.data.feeDoList.map((e) => {
  2796. if (e.fBillingDeadline) {
  2797. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  2798. }
  2799. if (e.fBsdate) {
  2800. e.fBsdate = e.fBsdate.slice(0, 10);
  2801. }
  2802. if (e.fChargedate) {
  2803. e.fChargedate = e.fChargedate.slice(0, 10);
  2804. }
  2805. if (e.fSrcdc) {
  2806. if (e.fSrcdc == "D") {
  2807. e.fSrcdc = "收";
  2808. } else {
  2809. e.fSrcdc = "付";
  2810. }
  2811. }
  2812. });
  2813. }
  2814. this.DzfeeList = response.data.feeDoList;
  2815. this.fWbuOptions = response.data.feesList;
  2816. this.queryParams = response.data.tFee;
  2817. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  2818. this.fMblnoOptions = response.data.corps;
  2819. this.mainTable = true;
  2820. });
  2821. } else {
  2822. this.notChange = true;
  2823. }
  2824. }
  2825. else {
  2826. this.notChange = true;
  2827. this.reset();
  2828. this.pass = {
  2829. fAmtdr: "", //应收合计
  2830. fAmtcr: "", //应付合计
  2831. fMblno: "", //提单号
  2832. fName: "", //货权方
  2833. fFeesName: "", //结算单位
  2834. fCorpid: "", //结算单位ID
  2835. };
  2836. const fId = row.fId || this.ids;
  2837. getFee(fId).then((response) => {
  2838. if (response.data.feeDoList != 0) {
  2839. response.data.feeDoList.map((e) => {
  2840. if (e.fBillingDeadline) {
  2841. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  2842. }
  2843. if (e.fBsdate) {
  2844. e.fBsdate = e.fBsdate.slice(0, 10);
  2845. }
  2846. if (e.fChargedate) {
  2847. e.fChargedate = e.fChargedate.slice(0, 10);
  2848. }
  2849. if (e.fSrcdc) {
  2850. if (e.fSrcdc == "D") {
  2851. e.fSrcdc = "收";
  2852. } else {
  2853. e.fSrcdc = "付";
  2854. }
  2855. }
  2856. });
  2857. }
  2858. this.DzfeeList = response.data.feeDoList;
  2859. this.fWbuOptions = response.data.feesList;
  2860. this.queryParams = response.data.tFee;
  2861. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  2862. // this.fWbuOptions = response.data.feesList;
  2863. this.fMblnoOptions = response.data.corps;
  2864. this.mainTable = true;
  2865. this.disappear = true
  2866. });
  2867. }
  2868. });
  2869. }
  2870. },
  2871. /** 修改按钮操作 */
  2872. handleUpdate(row) {
  2873. this.mainTable = true
  2874. this.notChange = false;
  2875. this.hide = false;
  2876. this.reset();
  2877. this.pass = {
  2878. fAmtdr: "", //应收合计
  2879. fAmtcr: "", //应付合计
  2880. fMblno: "", //提单号
  2881. fName: "", //货权方
  2882. fFeesName: "", //结算单位
  2883. fCorpid: "", //结算单位ID
  2884. };
  2885. const fId = row.fId || this.ids;
  2886. if (Cookies.get("sysType") == 1) {
  2887. getFee(fId).then((response) => {
  2888. this.Operator = response.data.tFee.createBy;
  2889. if (response.data.feeDoList != 0) {
  2890. response.data.feeDoList.map((e) => {
  2891. if (e.fBillingDeadline) {
  2892. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  2893. }
  2894. if (e.fBsdate) {
  2895. e.fBsdate = e.fBsdate.slice(0, 10);
  2896. }
  2897. if (e.fChargedate) {
  2898. e.fChargedate = e.fChargedate.slice(0, 10);
  2899. }
  2900. if (e.fSrcdc) {
  2901. if (e.fSrcdc == "D") {
  2902. e.fSrcdc = "收";
  2903. } else {
  2904. e.fSrcdc = "付";
  2905. }
  2906. }
  2907. });
  2908. }
  2909. this.DzfeeList = response.data.feeDoList;
  2910. this.fWbuOptions = response.data.feesList;
  2911. this.queryParams = response.data.tFee;
  2912. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  2913. this.fMblnoOptions = response.data.corps;
  2914. this.mainTable = true;
  2915. this.title = "修改财务数据主";
  2916. if (this.DzfeeList) {
  2917. this.doNot = true;
  2918. } else {
  2919. this.doNot = false;
  2920. }
  2921. });
  2922. } else if (Cookies.get("sysType") == 2) {
  2923. getFleet(fId).then((response) => {
  2924. this.Operator = response.data.tFee.createBy;
  2925. if (response.data.feeDoList != 0) {
  2926. response.data.feeDoList.map((e) => {
  2927. if (e.fBillingDeadline) {
  2928. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  2929. }
  2930. if (e.fBsdate) {
  2931. e.fBsdate = e.fBsdate.slice(0, 10);
  2932. }
  2933. if (e.fChargedate) {
  2934. e.fChargedate = e.fChargedate.slice(0, 10);
  2935. }
  2936. if (e.fSrcdc) {
  2937. if (e.fSrcdc == "D") {
  2938. e.fSrcdc = "收";
  2939. } else {
  2940. e.fSrcdc = "付";
  2941. }
  2942. }
  2943. });
  2944. }
  2945. this.DzfeeList = response.data.feeDoList;
  2946. this.fWbuOptions = response.data.feesList;
  2947. this.queryParams = response.data.tFee;
  2948. this.fMblnoOptions = response.data.corps;
  2949. this.mainTable = true
  2950. this.title = "修改财务数据主";
  2951. if (this.DzfeeList) {
  2952. this.doNot = true;
  2953. } else {
  2954. this.doNot = false;
  2955. }
  2956. });
  2957. }else if(Cookies.get("sysType") == 3){
  2958. getFee(fId).then((response) => {
  2959. this.Operator = response.data.tFee.createBy;
  2960. if (response.data.feeDoList != 0) {
  2961. response.data.feeDoList.map((e) => {
  2962. if (e.fBillingDeadline) {
  2963. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  2964. }
  2965. if (e.fBsdate) {
  2966. e.fBsdate = e.fBsdate.slice(0, 10);
  2967. }
  2968. if (e.fChargedate) {
  2969. e.fChargedate = e.fChargedate.slice(0, 10);
  2970. }
  2971. if (e.fSrcdc) {
  2972. if (e.fSrcdc == "D") {
  2973. e.fSrcdc = "收";
  2974. } else {
  2975. e.fSrcdc = "付";
  2976. }
  2977. }
  2978. });
  2979. }
  2980. this.DzfeeList = response.data.feeDoList;
  2981. this.fWbuOptions = response.data.feesList;
  2982. this.queryParams = response.data.tFee;
  2983. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  2984. this.fMblnoOptions = response.data.corps;
  2985. this.mainTable = true;
  2986. this.title = "修改财务数据主";
  2987. if (this.DzfeeList) {
  2988. this.doNot = true;
  2989. } else {
  2990. this.doNot = false;
  2991. }
  2992. });
  2993. }
  2994. },
  2995. /** 远程模糊查询用户 */
  2996. corpsRemoteMethod(name) {
  2997. if (name == null || name === "") {
  2998. return false;
  2999. }
  3000. let queryParams = { fName: name };
  3001. listCorps(queryParams).then((response) => {
  3002. this.fMblnoOptions = response;
  3003. this.KHblnoOptions = response;
  3004. });
  3005. },
  3006. /** 提交按钮 */
  3007. submitForm(type) {
  3008. this.$refs["ruless"].validate((valid) => {
  3009. if (valid) {
  3010. if (!this.queryParams.fId) {
  3011. this.queryParams.fBillstatus = "1";
  3012. let formData = new window.FormData();
  3013. formData.append("tFee", JSON.stringify(this.queryParams));
  3014. formData.append("tFeeDo", JSON.stringify(this.DzfeeList));
  3015. if (type == 1) {
  3016. updateFee(formData).then((response) => {
  3017. console.log(response);
  3018. this.queryParams = response.data.tFee;
  3019. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  3020. this.msgSuccess("新增成功");
  3021. // this.DzfeeList = []
  3022. // this.open = false;
  3023. this.getList();
  3024. });
  3025. } else if(type == 2){
  3026. addFleet(formData).then((response) => {
  3027. console.log(response);
  3028. this.queryParams = response.data.tFee;
  3029. this.msgSuccess("新增成功");
  3030. // this.DzfeeList = []
  3031. // this.open = false;
  3032. this.getList();
  3033. });
  3034. }else if(type == 3){
  3035. formData.append("billsType", 'KHDZ');
  3036. updateFee(formData).then((response) => {
  3037. console.log(response);
  3038. this.queryParams = response.data.tFee;
  3039. this.msgSuccess("新增成功");
  3040. this.getList();
  3041. });
  3042. }
  3043. } else {
  3044. this.pass.fAmtcr = 0;
  3045. this.pass.fAmtdr = 0;
  3046. for (let item in this.DzfeeList) {
  3047. this.pass.fAmtcr += Number(this.DzfeeList[item].fAmt);
  3048. this.pass.fAmtdr += Number(this.DzfeeList[item].fAmtdr);
  3049. }
  3050. this.queryParams.fAmtcr = Number(this.pass.fAmtcr).toFixed(2);
  3051. this.queryParams.fAmtdr = Number(this.pass.fAmtdr).toFixed(2);
  3052. // this.pass.fAmtcr.toFixed(2);
  3053. this.queryParams.fBillstatus = "1";
  3054. let formData = new window.FormData();
  3055. formData.append("tFee", JSON.stringify(this.queryParams));
  3056. formData.append("tFeeDo", JSON.stringify(this.DzfeeList));
  3057. if (type == 1) {
  3058. addFee(formData).then((response) => {
  3059. this.msgSuccess("修改成功");
  3060. this.getList();
  3061. });
  3062. } else if (type == 2){
  3063. addFleet(formData).then((response) => {
  3064. this.msgSuccess("修改成功");
  3065. this.getList();
  3066. });
  3067. }else if(type == 3){
  3068. formData.append("billsType", 'KHDZ');
  3069. addFee(formData).then((response) => {
  3070. this.msgSuccess("修改成功");
  3071. this.getList();
  3072. });
  3073. }
  3074. }
  3075. }
  3076. });
  3077. },
  3078. /** 删除按钮操作 */
  3079. handleDelete(row) {
  3080. const fIds = row.fId || this.ids;
  3081. let tips = "";
  3082. if (Cookies.get("sysType") == 1) {
  3083. detailFee(fIds).then((res) => {
  3084. switch (res.msg) {
  3085. case "0": {
  3086. this.$message.error("当前数据已被其他操作员操作,请刷新页面");
  3087. break;
  3088. }
  3089. case "1": {
  3090. tips = "当前主表有数据,从表无数据,确认是否删除?";
  3091. this.delete_s(fIds, tips);
  3092. break;
  3093. }
  3094. case "2": {
  3095. tips = "当前主表有数据,从表有数据,确认是否删除?";
  3096. this.delete_s(fIds, tips);
  3097. break;
  3098. }
  3099. default: {
  3100. return this.$message.error("未知错误,无状态");
  3101. }
  3102. }
  3103. });
  3104. } else if (Cookies.get("sysType") == 2) {
  3105. detailFleet(fIds).then((res) => {
  3106. switch (res.msg) {
  3107. case "0": {
  3108. this.$message.error("当前数据已被其他操作员操作,请刷新页面");
  3109. break;
  3110. }
  3111. case "1": {
  3112. tips = "当前主表有数据,从表无数据,确认是否删除?";
  3113. this.delete_s(fIds, tips);
  3114. break;
  3115. }
  3116. case "2": {
  3117. tips = "当前主表有数据,从表有数据,确认是否删除?";
  3118. this.delete_s(fIds, tips);
  3119. break;
  3120. }
  3121. default: {
  3122. return this.$message.error("未知错误,无状态");
  3123. }
  3124. }
  3125. });
  3126. }else if(Cookies.get("sysType") == 3){
  3127. detailFee(fIds).then((res) => {
  3128. switch (res.msg) {
  3129. case "0": {
  3130. this.$message.error("当前数据已被其他操作员操作,请刷新页面");
  3131. break;
  3132. }
  3133. case "1": {
  3134. tips = "当前主表有数据,从表无数据,确认是否删除?";
  3135. this.delete_s(fIds, tips);
  3136. break;
  3137. }
  3138. case "2": {
  3139. tips = "当前主表有数据,从表有数据,确认是否删除?";
  3140. this.delete_s(fIds, tips);
  3141. break;
  3142. }
  3143. default: {
  3144. return this.$message.error("未知错误,无状态");
  3145. }
  3146. }
  3147. });
  3148. }
  3149. },
  3150. delete_s(fIds, tips) {
  3151. this.$confirm(tips, "警告", {
  3152. confirmButtonText: "确定",
  3153. cancelButtonText: "取消",
  3154. type: "warning",
  3155. })
  3156. .then(function () {
  3157. if (Cookies.get("sysType") == 1) {
  3158. return delFee(fIds);
  3159. } else if (Cookies.get("sysType") == 2) {
  3160. return delFleet(fIds);
  3161. }else if(Cookies.get("sysType") == 3){
  3162. return delFee(fIds);
  3163. }
  3164. })
  3165. .then(() => {
  3166. this.getList();
  3167. this.msgSuccess("删除成功");
  3168. });
  3169. },
  3170. // 远程模糊查询费用名称
  3171. fWRemoteMethod(name) {
  3172. this.fWbuOptions = [];
  3173. if (name == null || name === "") {
  3174. return false;
  3175. }
  3176. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  3177. listFees(queryParams).then((response) => {
  3178. this.fWbuOptions = response.rows;
  3179. });
  3180. },
  3181. /** 导出按钮操作 */
  3182. handleExport() {
  3183. const queryParams = this.queryParams;
  3184. this.$confirm("是否确认导出所有财务数据主数据项?", "警告", {
  3185. confirmButtonText: "确定",
  3186. cancelButtonText: "取消",
  3187. type: "warning",
  3188. })
  3189. .then(function () {
  3190. return exportFee(queryParams);
  3191. })
  3192. .then((response) => {
  3193. this.download(response.msg);
  3194. });
  3195. },
  3196. exportData() {
  3197. // 在这里判断筛选DzfeeList={}
  3198. const DzfeeList = this.DzfeeList;
  3199. this.$confirm("是否确认导出所有财务数据主数据项?", "警告", {
  3200. confirmButtonText: "确定",
  3201. cancelButtonText: "取消",
  3202. type: "warning",
  3203. })
  3204. .then(function () {
  3205. return;
  3206. })
  3207. .then(function () {
  3208. this.download(response.msg);
  3209. });
  3210. },
  3211. //清空一行
  3212. deleteRow(index, rows) {
  3213. this.queryParams.fAmtdr = 0;
  3214. this.queryParams.fAmtcr = 0;
  3215. rows.splice(index, 1);
  3216. for (let item in this.DzfeeList) {
  3217. this.queryParams.fAmtcr = this.DzfeeList[item].fAmt;
  3218. this.queryParams.fAmtdr = this.DzfeeList[item].fAmtdr;
  3219. }
  3220. if (this.DzfeeList == 0) {
  3221. console.log("111");
  3222. this.doNot = false;
  3223. } else {
  3224. this.doNot = true;
  3225. }
  3226. },
  3227. },
  3228. };
  3229. </script>
  3230. <style lang="scss" scoped>
  3231. .tabSetting {
  3232. display: flex;
  3233. justify-content: flex-end;
  3234. }
  3235. .listStyle {
  3236. display: flex;
  3237. border-top: 1px solid #dcdfe6;
  3238. border-left: 1px solid #dcdfe6;
  3239. border-right: 1px solid #dcdfe6;
  3240. }
  3241. .listStyle:last-child {
  3242. border-bottom: 1px solid #dcdfe6;
  3243. }
  3244. .progress {
  3245. display: flex;
  3246. align-items: center;
  3247. padding: 2px;
  3248. background-color: rgba(0, 0, 0, 0.05);
  3249. height: 100%;
  3250. }
  3251. .avue-crud__dialog__header {
  3252. display: -webkit-box;
  3253. display: -ms-flexbox;
  3254. display: flex;
  3255. -webkit-box-align: center;
  3256. -ms-flex-align: center;
  3257. align-items: center;
  3258. -webkit-box-pack: justify;
  3259. -ms-flex-pack: justify;
  3260. justify-content: space-between;
  3261. }
  3262. .el-dialog__title {
  3263. color: rgba(0, 0, 0, 0.85);
  3264. font-weight: 500;
  3265. word-wrap: break-word;
  3266. }
  3267. .avue-crud__dialog__menu {
  3268. padding-right: 20px;
  3269. float: left;
  3270. }
  3271. .avue-crud__dialog__menu i {
  3272. color: #909399;
  3273. font-size: 15px;
  3274. }
  3275. .el-icon-full-screen {
  3276. cursor: pointer;
  3277. }
  3278. .el-icon-full-screen:before {
  3279. content: "\e719";
  3280. }
  3281. </style>