index.vue 124 KB

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