index.vue 125 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833
  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 == 'createTime'">{{scope.row.createTime?scope.row.createTime.slice(0,10):''}}</span>
  315. <span v-else>{{ scope.row[item.label] }}</span>
  316. </template>
  317. </el-table-column>
  318. <el-table-column
  319. label="操作"
  320. align="center"
  321. class-name="small-padding fixed-width"
  322. min-width="180"
  323. fixed="right"
  324. >
  325. <template slot-scope="scope">
  326. <el-button
  327. size="mini"
  328. type="text"
  329. icon="el-icon-view"
  330. @click="check(scope.row, 0)"
  331. v-hasPermi="['finance:contrast:edit']"
  332. >查看</el-button
  333. >
  334. <el-button
  335. size="mini"
  336. type="text"
  337. icon="el-icon-view"
  338. @click="check(scope.row, 1)"
  339. v-hasPermi="['finance:contrast:edit']"
  340. v-if="
  341. scope.row.fBillstatus == '提交审核' ||
  342. scope.row.fBillstatus == '审核中'
  343. "
  344. >审批进度</el-button
  345. >
  346. <el-button
  347. size="mini"
  348. type="text"
  349. icon="el-icon-edit"
  350. @click="handleUpdate(scope.row)"
  351. v-hasPermi="['finance:charge:edit']"
  352. v-if="
  353. scope.row.fBillstatus == '保存' ||
  354. scope.row.fBillstatus == '暂存' ||
  355. scope.row.fBillstatus == '审批驳回' ||
  356. scope.row.fBillstatus == '新建'
  357. "
  358. >修改
  359. </el-button>
  360. <el-button
  361. size="mini"
  362. type="text"
  363. icon="el-icon-delete"
  364. @click="handleDelete(scope.row)"
  365. v-hasPermi="['finance:charge:remove']"
  366. v-if="
  367. scope.row.fBillstatus == '保存' ||
  368. scope.row.fBillstatus == '暂存' ||
  369. scope.row.fBillstatus == '审批驳回' ||
  370. scope.row.fBillstatus == '新建'
  371. "
  372. >删除
  373. </el-button>
  374. <!-- <el-button-->
  375. <!-- size="mini"-->
  376. <!-- type="text"-->
  377. <!-- icon="el-icon-delete"-->
  378. <!-- v-if="scope.row.fBillstatus === 6"-->
  379. <!-- >查看-->
  380. <!-- </el-button>-->
  381. <!-- <el-button-->
  382. <!-- size="mini"-->
  383. <!-- type="text"-->
  384. <!-- icon="el-icon-delete"-->
  385. <!-- v-if="scope.row.fBillstatus > 3 && scope.row.fBillstatus < 6"-->
  386. <!-- >查看审批流-->
  387. <!-- </el-button>-->
  388. </template>
  389. </el-table-column>
  390. <!-- <el-table-column label="单据类型" align="center" prop="fBilltype"/>-->
  391. <!-- <el-table-column label="制单部门" align="center" prop="fDeptid"/>-->
  392. </el-table>
  393. <pagination
  394. v-show="total > 0"
  395. :total="total"
  396. :page.sync="tableFilter.pageNum"
  397. :limit.sync="tableFilter.pageSize"
  398. @pagination="getList"
  399. />
  400. </div>
  401. <div v-if="mainTable == true">
  402. <el-form
  403. :model="queryParams"
  404. :rules="ruless"
  405. ref="ruless"
  406. :inline="true"
  407. v-show="showSearch"
  408. label-width="78px"
  409. >
  410. <!-- <el-form-item label="货权方" prop="fCtrlcorpid">-->
  411. <!-- <el-input-->
  412. <!-- v-model="queryParams.fCtrlcorpid"-->
  413. <!-- placeholder="请输入货权方"-->
  414. <!-- clearable-->
  415. <!-- size="small"-->
  416. <!-- :disabled="notChange"-->
  417. <!-- style="width: 200px"-->
  418. <!-- @keyup.enter.native="handleQuery"-->
  419. <!-- />-->
  420. <!-- </el-form-item>-->
  421. <el-form-item label="结算单位" prop="fCorpid">
  422. <el-select
  423. v-model="queryParams.fCorpid"
  424. filterable
  425. remote
  426. clearable
  427. size="small"
  428. style="width: 200px"
  429. @keyup.enter.native="handleQuery"
  430. :remote-method="corpsRemoteMethod"
  431. :disabled="doNot"
  432. placeholder="请输入结算单位"
  433. >
  434. <el-option
  435. v-for="(dict, index) in fMblnoOptions"
  436. :key="index.fId"
  437. :label="dict.fName"
  438. :value="dict.fId"
  439. ></el-option>
  440. </el-select>
  441. </el-form-item>
  442. <el-form-item label="收费日期">
  443. <el-date-picker
  444. clearable
  445. size="small"
  446. style="width: 200px"
  447. v-model="queryParams.fAccbilldate"
  448. type="date"
  449. value-format="yyyy-MM-dd"
  450. placeholder="选择账单日期"
  451. :disabled="notChange"
  452. >
  453. </el-date-picker>
  454. </el-form-item>
  455. <el-form-item label="系统编号" prop="fBillno">
  456. <el-input
  457. v-model="queryParams.fBillno"
  458. placeholder="请输入系统编号"
  459. clearable
  460. disabled
  461. style="width: 200px"
  462. size="small"
  463. @keyup.enter.native="handleQuery"
  464. />
  465. </el-form-item>
  466. <el-form-item label="收费方式" prop="chargingMethod">
  467. <el-select
  468. v-model="queryParams.chargingMethod"
  469. placeholder="请选择收费方式"
  470. clearable
  471. :disabled="notChange"
  472. style="width: 200px"
  473. size="small"
  474. >
  475. <el-option
  476. v-for="(dict, index) in methodOptions"
  477. :key="index.dictValue"
  478. :label="dict.dictLabel"
  479. :value="dict.dictValue"
  480. ></el-option>
  481. </el-select>
  482. </el-form-item>
  483. <el-form-item label="收款银行" prop="bank">
  484. <el-input
  485. v-model="queryParams.bank"
  486. placeholder="请输入收款银行"
  487. clearable
  488. size="small"
  489. style="width: 200px"
  490. :disabled="notChange"
  491. />
  492. </el-form-item>
  493. <el-form-item label="发票号" prop="invoiceNo">
  494. <el-input
  495. v-model="queryParams.invoiceNo"
  496. placeholder="请输入发票号"
  497. clearable
  498. size="small"
  499. style="width: 200px"
  500. :disabled="notChange"
  501. />
  502. </el-form-item>
  503. <el-form-item label="水单号" prop="waterBillNo">
  504. <el-input
  505. v-model="queryParams.waterBillNo"
  506. placeholder="请输入收款银行"
  507. clearable
  508. size="small"
  509. style="width: 200px"
  510. :disabled="notChange"/>
  511. </el-form-item>
  512. <el-form-item label="账务金额">
  513. <el-input
  514. v-model="queryParams.fTotalamount"
  515. clearable
  516. size="small"
  517. style="width: 200px"
  518. :disabled="notChange"
  519. placeholder="请输入账务金额"
  520. v-input-limit="2"
  521. />
  522. </el-form-item>
  523. <el-form-item label="备注" prop="fRemarks">
  524. <el-input
  525. v-model="queryParams.fRemarks"
  526. placeholder="请输入备注"
  527. clearable
  528. size="small"
  529. style="width: 200px"
  530. :disabled="notChange"
  531. @keyup.enter.native="handleQuery"
  532. />
  533. </el-form-item>
  534. <!-- <el-form-item label="业务类型" prop="fSystemType">-->
  535. <!-- <el-select-->
  536. <!-- v-model="queryParams.fSystemType"-->
  537. <!-- placeholder="请选择业务类型"-->
  538. <!-- size="small"-->
  539. <!-- disabled-->
  540. <!-- style="width: 200px"-->
  541. <!-- >-->
  542. <!-- <el-option-->
  543. <!-- v-for="item in typeoptions"-->
  544. <!-- :key="item.value"-->
  545. <!-- :label="item.label"-->
  546. <!-- :value="item.value"-->
  547. <!-- >-->
  548. <!-- </el-option>-->
  549. <!-- </el-select>-->
  550. <!-- </el-form-item>-->
  551. </el-form>
  552. <div style="width: 100%; display: flex; justify-content: space-between">
  553. <div style="display: flex">
  554. <el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === true" size="mini" @click="cancel"
  555. >返回列表</el-button
  556. >
  557. <el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === false" size="mini" @click="homePage"
  558. >返回首页</el-button
  559. >
  560. <el-button
  561. type="warning"
  562. size="mini"
  563. @click="charGe"
  564. :disabled="notChange"
  565. v-if="queryParams.fBillstatus < '4'"
  566. >检索</el-button
  567. >
  568. <el-button
  569. type="primary"
  570. size="mini"
  571. @click="confirmCharge"
  572. :disabled="notChange"
  573. v-if="queryParams.fBillstatus < '4'"
  574. >确认收费</el-button
  575. >
  576. <el-button type="warning" size="mini" @click="handleExportItems"
  577. >导出</el-button
  578. >
  579. <el-button
  580. type="success"
  581. size="mini"
  582. @click="revokeCharge"
  583. v-if="queryParams.fBillstatus === '6'"
  584. v-hasPermi="['finance:charge:revoke']"
  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: "tMblno",
  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: "fTotalamount",
  1572. name: "账务金额",
  1573. checked: 0,
  1574. width: 100,
  1575. },
  1576. {
  1577. surface: "14",
  1578. label: "fRemarks",
  1579. name: "备注",
  1580. checked: 0,
  1581. width: 100,
  1582. },
  1583. {
  1584. surface: "15",
  1585. label: "fBillstatus",
  1586. name: "状态",
  1587. checked: 0,
  1588. width: 100,
  1589. },
  1590. ],
  1591. tableDate2: [
  1592. {
  1593. surface: "1",
  1594. label: "fMblno",
  1595. name: "提单号",
  1596. checked: 0,
  1597. width: 100,
  1598. },
  1599. {
  1600. surface: "2",
  1601. label: "fBscorpno",
  1602. name: "存货单号",
  1603. checked: 0,
  1604. width: 100,
  1605. },
  1606. {
  1607. surface: "3",
  1608. label: "fProductName",
  1609. name: "品名",
  1610. checked: 0,
  1611. width: 100,
  1612. },
  1613. {
  1614. surface: "4",
  1615. label: "fBsdate",
  1616. name: "业务日期",
  1617. checked: 0,
  1618. width: 100,
  1619. },
  1620. {
  1621. surface: "5",
  1622. label: "fFeeName",
  1623. name: "费用名称",
  1624. checked: 0,
  1625. width: 100,
  1626. },
  1627. {
  1628. surface: "6",
  1629. label: "fSrcdcName",
  1630. name: "收/付",
  1631. checked: 0,
  1632. width: 100,
  1633. },
  1634. {
  1635. surface: "7",
  1636. label: "fBilltype",
  1637. name: "业务类型",
  1638. checked: 0,
  1639. width: 100,
  1640. },
  1641. {
  1642. surface: "8",
  1643. label: "fBusinessType",
  1644. name: "作业类型",
  1645. checked: 0,
  1646. width: 100,
  1647. },
  1648. {
  1649. surface: "9",
  1650. label: "fAmtdr",
  1651. name: "金额",
  1652. checked: 0,
  1653. width: 100,
  1654. },
  1655. {
  1656. surface: "10",
  1657. label: "fAmt",
  1658. name: "本次金额",
  1659. checked: 0,
  1660. width: 100,
  1661. },
  1662. {
  1663. surface: "11",
  1664. label: "fRemarks",
  1665. name: "备注",
  1666. checked: 0,
  1667. width: 100,
  1668. },
  1669. ],
  1670. tableDate3: [
  1671. // {
  1672. // surface: "1",
  1673. // label: "fName",
  1674. // name: "货权方",
  1675. // checked: 0,
  1676. // width: 100,
  1677. // },
  1678. {
  1679. surface: "2",
  1680. label: "fMblno",
  1681. name: "提单号",
  1682. checked: 0,
  1683. width: 100,
  1684. },
  1685. {
  1686. surface: "3",
  1687. label: "fProductName",
  1688. name: "品名",
  1689. checked: 0,
  1690. width: 100,
  1691. },
  1692. {
  1693. surface: "4",
  1694. label: "fBsdate",
  1695. name: "业务日期",
  1696. checked: 0,
  1697. width: 100,
  1698. },
  1699. {
  1700. surface: "5",
  1701. label: "fBilltype",
  1702. name: "业务类型",
  1703. checked: 0,
  1704. width: 100,
  1705. },
  1706. {
  1707. surface: "6",
  1708. label: "fBusinessType",
  1709. name: "作业类型",
  1710. checked: 0,
  1711. width: 100,
  1712. },
  1713. {
  1714. surface: "7",
  1715. label: "fReviewDate",
  1716. name: "审核日期",
  1717. checked: 0,
  1718. width: 100,
  1719. },
  1720. {
  1721. surface: "8",
  1722. label: "fFeeName",
  1723. name: "费用名称",
  1724. checked: 0,
  1725. width: 100,
  1726. },
  1727. {
  1728. surface: "9",
  1729. label: "fAmtdr",
  1730. name: "金额",
  1731. checked: 0,
  1732. width: 100,
  1733. },
  1734. {
  1735. surface: "10",
  1736. label: "fAmt",
  1737. name: "本次金额",
  1738. checked: 0,
  1739. width: 100,
  1740. },
  1741. {
  1742. surface: "11",
  1743. label: "fRemarks",
  1744. name: "备注",
  1745. checked: 0,
  1746. width: 100,
  1747. },
  1748. ],
  1749. setRowList: [],
  1750. getRowList: [],
  1751. setRowList2: [],
  1752. getRowList2: [],
  1753. allCheck2: false,
  1754. showSetting2: false,
  1755. setRowList3: [],
  1756. getRowList3: [],
  1757. allCheck3: false,
  1758. showSetting3: false,
  1759. typevalue: "",
  1760. typeoptions: [
  1761. {
  1762. value: "1",
  1763. label: "仓储",
  1764. },
  1765. {
  1766. value: "2",
  1767. label: "车队",
  1768. },
  1769. {
  1770. value: "3",
  1771. label: "船务",
  1772. }
  1773. ],
  1774. allCheck: false,
  1775. showSetting: false,
  1776. //收费方式
  1777. methodOptions: [],
  1778. doNot: false,
  1779. Lander: "",
  1780. Operator: "",
  1781. approve: false,
  1782. addOrUpdateVisible: false,
  1783. businessTypeOption: [],
  1784. contrastId: 220,
  1785. tablefilter: false,
  1786. hide: false,
  1787. notChange: false,
  1788. browseStatus: true,
  1789. nothing: [],
  1790. //打印表
  1791. printObject: [],
  1792. printStatus: false,
  1793. //导入状态
  1794. state_s: true,
  1795. fWbuOptions: [],
  1796. options: "",
  1797. // 遮罩层
  1798. loading: true,
  1799. //打开内部弹窗
  1800. innerVisible: false,
  1801. chargeList_s: [],
  1802. selection: "",
  1803. increase_s: [],
  1804. cancelButton: true,
  1805. // 选中数组
  1806. ids: [],
  1807. // 非单个禁用
  1808. single: true,
  1809. // 非多个禁用
  1810. multiple: true,
  1811. // 显示搜索条件
  1812. showSearch: true,
  1813. // 总条数
  1814. total: 0,
  1815. totAL: 0,
  1816. Ttime: 0,
  1817. //提单号暂存
  1818. fMblno: "",
  1819. // 财务数据主表格数据
  1820. chargeList: [],
  1821. // 弹出层标题
  1822. title: "",
  1823. // 是否显示弹出层
  1824. open: false,
  1825. fMblnoOptions: "",
  1826. //导入查询参数
  1827. queryParameter: {
  1828. fCorpid: null,
  1829. fToCorpid: null,
  1830. fMblno: null,
  1831. fStatementNo: null,
  1832. fFeeid: null,
  1833. timeExamine: null,
  1834. timeInterval: null,
  1835. fBilltype: null,
  1836. fBusinessType: null,
  1837. },
  1838. empty: [],
  1839. //导入从表传主表
  1840. pass: {
  1841. fAmtdr: 0, //应收合计
  1842. fAmtcr: 0, //应付合计
  1843. fMblno: "", //提单号
  1844. fName: "", //货权方
  1845. },
  1846. Xbutton: true,
  1847. // 查询参数
  1848. queryParams: {
  1849. fId: null,
  1850. pageNum: 1,
  1851. pageSize: 10,
  1852. fBillno: null,
  1853. fCtrlcorpid: null,
  1854. fCorpid: null,
  1855. fMblno: null,
  1856. fAmtdr: null,
  1857. fAmtcr: null,
  1858. fBilltype: null,
  1859. fBillstatus: null,
  1860. fRemarks: null,
  1861. fAccbilldate: null,
  1862. fDeptid: null,
  1863. chargingMethod: null,
  1864. invoiceNo: null,
  1865. bank: null,
  1866. waterBillNo: null,
  1867. },
  1868. addOrUpdateVisib: false,
  1869. // 主表查询参数
  1870. tableFilter: {
  1871. pageNum: 1,
  1872. pageSize: 10,
  1873. fBillno: null,
  1874. fCtrlcorpid: null,
  1875. fCorpid: null,
  1876. fBillstatus: null,
  1877. amount: [],
  1878. firstMoney: null,
  1879. lastMoney: null,
  1880. fRemarks: null,
  1881. timeInterval:null
  1882. },
  1883. approval: [],
  1884. // 表单参数
  1885. form: {},
  1886. // 表单校验
  1887. ruless: {
  1888. fCtrlcorpid: [{ required: true, message: " ", trigger: "blur" }],
  1889. fCorpid: [{ required: true, message: " ", trigger: "blur" }],
  1890. fAccbilldate: [{ required: true, message: " ", trigger: "blur" }],
  1891. },
  1892. // 表单校验
  1893. rules: {
  1894. fBilltype: [{ required: true, message: " ", trigger: "change" }],
  1895. fBillstatus: [{ required: true, message: " ", trigger: "blur" }],
  1896. fDeptid: [{ required: true, message: " ", trigger: "blur" }],
  1897. fToCorpid: [{ required: true, message: " ", trigger: "blur" }],
  1898. timeExamine: [{ required: true, message: " ", trigger: "blur" }],
  1899. },
  1900. printList: [],
  1901. print_charge: false,
  1902. fStltypeOptions:[],
  1903. // 打印合计金额
  1904. allAmount: 0,
  1905. };
  1906. },
  1907. components: {
  1908. AddOrUpdate,
  1909. ApprovalComments,
  1910. draggable,
  1911. kaiheIndex
  1912. },
  1913. created() {
  1914. this.setRowList = this.tableDate;
  1915. this.getRowList = this.tableDate;
  1916. this.setRowList2 = this.tableDate2;
  1917. this.getRowList2 = this.tableDate2;
  1918. this.setRowList3 = this.tableDate3;
  1919. this.getRowList3 = this.tableDate3;
  1920. this.typevalue = Cookies.get("sysType");
  1921. this.getList();
  1922. this.register();
  1923. this.getDicts("st_in_type").then((response) => {
  1924. this.businessTypeOption = response.data;
  1925. });
  1926. this.getDicts("data_settlement_type").then((response) => {
  1927. this.methodOptions = response.data;
  1928. });
  1929. this.getDicts("data_stltype_type").then((response) => {
  1930. this.fStltypeOptions = response.data;
  1931. });
  1932. this.getRow();
  1933. // this.getRow2();
  1934. this.getRow3();
  1935. this.corpsRemoteMethod()
  1936. },
  1937. activated() {
  1938. if(this.$route.query.data){
  1939. let data = JSON.parse(this.$route.query.data)
  1940. if(data.key === 1){
  1941. this.handleAdd()
  1942. }else{
  1943. this.adoPt();
  1944. }
  1945. }
  1946. },
  1947. methods: {
  1948. changeMoney(){
  1949. if(parseInt(this.tableFilter.lastMoney) < parseInt(this.tableFilter.firstMoney)){
  1950. this.$message.error("第二个金额不能小于第一个金额,请重新输入")
  1951. this.tableFilter.lastMoney = ''
  1952. }
  1953. },
  1954. noNull(){
  1955. if(this.queryParameter.fStatementNo == ''){
  1956. this.rules = {
  1957. fToCorpid: [{ required: true, message: " ", trigger: "blur" }],
  1958. timeExamine: [{ required: true, message: " ", trigger: "blur" }],
  1959. };
  1960. }
  1961. },
  1962. addPage(){
  1963. MessageBox.confirm("是否已保存?",{
  1964. confirmButtonText: '确定',
  1965. cancelButtonText: '取消',
  1966. type: 'warning'
  1967. }
  1968. ).then(()=> {
  1969. this.handleAdd()
  1970. })
  1971. },
  1972. //导出明细
  1973. handleExportItems() {
  1974. const fIds = this.queryParams.fId;
  1975. if (fIds !== null) {
  1976. this.$confirm("是否确认导出所有计费物资明细数据?", "警告", {
  1977. confirmButtonText: "确定",
  1978. cancelButtonText: "取消",
  1979. type: "warning",
  1980. })
  1981. .then(function () {
  1982. return exportWarehousebillsitems(fIds);
  1983. })
  1984. .then((response) => {
  1985. this.download(response.msg);
  1986. });
  1987. } else {
  1988. this.$message("请先保存");
  1989. }
  1990. },
  1991. full() {
  1992. this.dialogFull = !this.dialogFull;
  1993. },
  1994. //列设置全选
  1995. allChecked() {
  1996. if (this.allCheck == true) {
  1997. this.setRowList.map((e) => {
  1998. return (e.checked = 0);
  1999. });
  2000. } else {
  2001. this.setRowList.map((e) => {
  2002. return (e.checked = 1);
  2003. });
  2004. }
  2005. },
  2006. //查询列数据
  2007. getRow() {
  2008. let that = this;
  2009. this.data = {
  2010. tableName: "-收费",
  2011. userId: Cookies.get("userName"),
  2012. };
  2013. select(this.data).then((res) => {
  2014. if (res.data.length != 0) {
  2015. this.getRowList = res.data.filter((e) => e.checked == 0);
  2016. this.setRowList = res.data;
  2017. this.setRowList = this.setRowList.reduce((res, item) => {
  2018. res.push({
  2019. surface: item.surface,
  2020. label: item.label,
  2021. name: item.name,
  2022. checked: item.checked,
  2023. width: item.width,
  2024. fixed: item.fixed,
  2025. });
  2026. return res;
  2027. }, []);
  2028. }
  2029. });
  2030. },
  2031. //保存列设置
  2032. save() {
  2033. this.showSetting = false;
  2034. this.data = {
  2035. tableName: "-收费",
  2036. userId: Cookies.get("userName"),
  2037. sysTableSetList: this.setRowList,
  2038. };
  2039. addSet(this.data).then((res) => {
  2040. this.getRowList = this.setRowList.filter((e) => e.checked == 0);
  2041. });
  2042. },
  2043. //重置列表
  2044. delRow() {
  2045. this.data = {
  2046. tableName: "-收费",
  2047. userId: Cookies.get("userName"),
  2048. };
  2049. resetModule(this.data).then((res) => {
  2050. if (res.code == 200) {
  2051. this.showSetting = false;
  2052. this.setRowList = this.getRowList = this.$options.data().tableDate
  2053. }
  2054. });
  2055. },
  2056. //列设置全选
  2057. allChecked2() {
  2058. if (this.allCheck2 == true) {
  2059. this.setRowList2.map((e) => {
  2060. return (e.checked = 0);
  2061. });
  2062. } else {
  2063. this.setRowList2.map((e) => {
  2064. return (e.checked = 1);
  2065. });
  2066. }
  2067. },
  2068. //查询列数据
  2069. getRow2() {
  2070. let that = this;
  2071. this.data = {
  2072. tableName: "收费明细",
  2073. userId: Cookies.get("userName"),
  2074. };
  2075. select(this.data).then((res) => {
  2076. if (res.data.length != 0) {
  2077. this.getRowList2 = res.data.filter((e) => e.checked == 0);
  2078. this.setRowList2 = res.data;
  2079. this.setRowList2 = this.setRowList2.reduce((res, item) => {
  2080. res.push({
  2081. surface: item.surface,
  2082. label: item.label,
  2083. name: item.name,
  2084. checked: item.checked,
  2085. width: item.width,
  2086. fixed: item.fixed,
  2087. });
  2088. return res;
  2089. }, []);
  2090. }
  2091. });
  2092. },
  2093. //保存列设置
  2094. save2() {
  2095. this.showSetting2 = false;
  2096. this.data = {
  2097. tableName: "收费明细",
  2098. userId: Cookies.get("userName"),
  2099. sysTableSetList: this.setRowList2,
  2100. };
  2101. addSet(this.data).then((res) => {
  2102. this.getRowList2 = this.setRowList2.filter((e) => e.checked == 0);
  2103. });
  2104. },
  2105. //重置列表
  2106. delRow2() {
  2107. this.data = {
  2108. tableName: "收费明细",
  2109. userId: Cookies.get("userName"),
  2110. };
  2111. resetModule(this.data).then((res) => {
  2112. if (res.code == 200) {
  2113. this.showSetting2 = false;
  2114. this.setRowList2 = this.getRowList2 = this.$options.data().tableDate2
  2115. }
  2116. });
  2117. },
  2118. //列设置全选
  2119. allChecked3() {
  2120. if (this.allCheck3 == true) {
  2121. this.setRowList3.map((e) => {
  2122. return (e.checked = 0);
  2123. });
  2124. } else {
  2125. this.setRowList3.map((e) => {
  2126. return (e.checked = 1);
  2127. });
  2128. }
  2129. },
  2130. //查询列数据
  2131. getRow3() {
  2132. let that = this;
  2133. this.data = {
  2134. tableName: "收费明细",
  2135. userId: Cookies.get("userName"),
  2136. };
  2137. select(this.data).then((res) => {
  2138. if (res.data.length != 0) {
  2139. this.getRowList3 = res.data.filter((e) => e.checked == 0);
  2140. this.setRowList3 = res.data;
  2141. this.setRowList3 = this.setRowList3.reduce((res, item) => {
  2142. res.push({
  2143. surface: item.surface,
  2144. label: item.label,
  2145. name: item.name,
  2146. checked: item.checked,
  2147. width: item.width,
  2148. fixed: item.fixed,
  2149. });
  2150. return res;
  2151. }, []);
  2152. }
  2153. });
  2154. },
  2155. //保存列设置
  2156. save3() {
  2157. this.showSetting3 = false;
  2158. this.data = {
  2159. tableName: "收费明细",
  2160. userId: Cookies.get("userName"),
  2161. sysTableSetList: this.setRowList3,
  2162. };
  2163. addSet(this.data).then((res) => {
  2164. this.getRowList3 = this.setRowList3.filter((e) => e.checked == 0);
  2165. });
  2166. },
  2167. //重置列表
  2168. delRow3() {
  2169. this.data = {
  2170. tableName: "收费明细",
  2171. userId: Cookies.get("userName"),
  2172. };
  2173. resetModule(this.data).then((res) => {
  2174. if (res.code == 200) {
  2175. this.showSetting3 = false;
  2176. this.setRowList3 = this.getRowList3 = this.$options.data().tableDate3
  2177. }
  2178. });
  2179. },
  2180. //开始拖拽事件
  2181. onStart() {
  2182. this.drag = true;
  2183. },
  2184. //拖拽结束事件
  2185. onEnd() {
  2186. this.drag = false;
  2187. },
  2188. //财务主取消
  2189. signOut() {
  2190. if (this.increase_s.length == 0) {
  2191. this.doNot = false;
  2192. } else {
  2193. this.doNot = true;
  2194. }
  2195. this.innerVisible = false;
  2196. this.feeList = [];
  2197. },
  2198. //收费页面合计
  2199. listTotal(param) {
  2200. const { columns, data } = param;
  2201. const sums = [];
  2202. columns.forEach((column, index) => {
  2203. if (index === 0) {
  2204. sums[index] = "合计";
  2205. } else if (column.label == '应收合计' || column.label == '实收合计' || column.label == '金额' || column.label == '本次金额' || column.label == '账务金额') {
  2206. const values = data.map((item) => Number(item[column.property]));
  2207. if (!values.every((value) => isNaN(value))) {
  2208. sums[index] = values.reduce((prev, curr) => {
  2209. const value = Number(curr);
  2210. if (!isNaN(value)) {
  2211. return (Number(prev) + Number(curr)).toSuperFixed(2);
  2212. } else {
  2213. return Number(prev).toSuperFixed(2);
  2214. }
  2215. }, 0);
  2216. }
  2217. }
  2218. });
  2219. return sums;
  2220. },
  2221. approvalRevocation(status) {
  2222. if(Cookies.get("sysType") == 3){
  2223. let data = {
  2224. id: this.queryParams.fId,
  2225. actId: 440,
  2226. billId: this.queryParams.fId,
  2227. fidStatus: status,
  2228. };
  2229. revocation(data).then((data) => {
  2230. if (data.code === 200) {
  2231. this.$message.success("撤销成功");
  2232. this.mainTable = false
  2233. this.open = false;
  2234. this.getList();
  2235. }
  2236. });
  2237. }else{
  2238. let data = {
  2239. id: this.queryParams.fId,
  2240. actId: this.contrastId,
  2241. billId: this.queryParams.fId,
  2242. fidStatus: status,
  2243. };
  2244. revocation(data).then((data) => {
  2245. if (data.code === 200) {
  2246. this.$message.success("撤销成功");
  2247. this.open = false;
  2248. this.mainTable = false
  2249. this.getList();
  2250. }
  2251. });
  2252. }
  2253. },
  2254. returnData() {
  2255. this.addOrUpdateVisib = false;
  2256. this.open = false;
  2257. this.homepaGe();
  2258. },
  2259. getDataList() {
  2260. this.addOrUpdateVisible = false;
  2261. },
  2262. changefBilltype() {
  2263. this.businessTypeOption = [];
  2264. if (this.queryParameter.fBilltype == "SJRK") {
  2265. this.getDicts("st_in_type").then((response) => {
  2266. this.businessTypeOption = response.data;
  2267. });
  2268. } else if (this.queryParameter.fBilltype == "SJCK") {
  2269. this.getDicts("st_out_type").then((response) => {
  2270. this.businessTypeOption = response.data;
  2271. });
  2272. } else if (this.queryParameter.fBilltype == "HQZY") {
  2273. this.getDicts("st_trans_type").then((response) => {
  2274. this.businessTypeOption = response.data;
  2275. });
  2276. }
  2277. },
  2278. homepaGe() {
  2279. let view = {
  2280. fullPath: "/finance/charge",
  2281. hash: "",
  2282. matched: Array(2),
  2283. meta: Object,
  2284. name: "Charge",
  2285. params: Object,
  2286. path: "/finance/charge",
  2287. query: Object,
  2288. title: "收费",
  2289. };
  2290. this.$router.push({ path: "/index" });
  2291. this.$store
  2292. .dispatch("tagsView/delView", view)
  2293. .then(({ visitedViews }) => {
  2294. if (this.isActive(view)) {
  2295. this.toLastView(visitedViews, view);
  2296. }
  2297. });
  2298. Global.$emit("removeCache", "closeSelectedTag", view);
  2299. },
  2300. adoPt() {
  2301. this.approval = this.$route.query.data;
  2302. if (this.approval) {
  2303. this.doNot = true
  2304. this.Xbutton = false;
  2305. this.approval = JSON.parse(this.approval);
  2306. this.hide = false;
  2307. this.tablefilter = true;
  2308. this.notChange = true;
  2309. this.approve = true;
  2310. this.cancelButton = false;
  2311. this.reset();
  2312. this.pass = {
  2313. fAmtdr: 0, //应收合计
  2314. fAmtcr: 0, //应付合计
  2315. fMblno: "", //提单号
  2316. fName: "", //货权方
  2317. fFeesName: "", //结算单位
  2318. fCorpid: "", //结算单位ID
  2319. };
  2320. if(Cookies.get("sysType") == 1 || Cookies.get("sysType") == 2){
  2321. getCharge(this.approval.billId).then((response) => {
  2322. this.Operator = response.data.tFee.createBy;
  2323. if (response.data.feeDoList != 0) {
  2324. response.data.feeDoList.map((e) => {
  2325. if (e.fBsdate) {
  2326. e.fBsdate = e.fBsdate.slice(0, 10);
  2327. }
  2328. // if (e.fSrcdc) {
  2329. // if (e.fSrcdc == "D") {
  2330. // e.fSrcdc = "收";
  2331. // } else {
  2332. // e.fSrcdc = "付";
  2333. // }
  2334. // }
  2335. });
  2336. }
  2337. this.increase_s = response.data.feeDoList;
  2338. this.fWbuOptions = response.data.feesList;
  2339. this.queryParams = response.data.tFee;
  2340. this.fWbuOptions = response.data.feesList;
  2341. this.fMblnoOptions = response.data.corps;
  2342. this.mainTable = true
  2343. this.title = "修改收费列表";
  2344. });
  2345. }else if(Cookies.get("sysType") == 3){
  2346. getCharge(this.approval.billId).then((response) => {
  2347. this.Operator = response.data.tFee.createBy;
  2348. if (response.data.feeDoList != 0) {
  2349. response.data.feeDoList.map((e) => {
  2350. if (e.fBsdate) {
  2351. e.fBsdate = e.fBsdate.slice(0, 10);
  2352. }
  2353. });
  2354. }
  2355. this.increase_s = response.data.feeDoList;
  2356. this.fWbuOptions = response.data.feesList;
  2357. this.queryParams = response.data.tFee;
  2358. this.fWbuOptions = response.data.feesList;
  2359. this.fMblnoOptions = response.data.corps;
  2360. this.mainTable = true
  2361. this.title = "修改收费列表";
  2362. });
  2363. }
  2364. }
  2365. },
  2366. homePage() {
  2367. this.selection = [];
  2368. this.open = false;
  2369. let view = {
  2370. fullPath: "/finance/charge",
  2371. hash: "",
  2372. matched: Array(2),
  2373. meta: Object,
  2374. name: "Charge",
  2375. params: Object,
  2376. path: "/finance/charge",
  2377. query: Object,
  2378. title: "收费",
  2379. };
  2380. this.$router.push({ path: "/index" });
  2381. this.$store
  2382. .dispatch("tagsView/delView", view)
  2383. .then(({ visitedViews }) => {
  2384. if (this.isActive(view)) {
  2385. this.toLastView(visitedViews, view);
  2386. }
  2387. });
  2388. Global.$emit("removeCache", "closeSelectedTag", view);
  2389. },
  2390. register() {
  2391. queryUserVal().then((response) => {
  2392. this.Lander = response.user.userName;
  2393. });
  2394. },
  2395. immediateApproval(status) {
  2396. this.addOrUpdateVisib = true;
  2397. console.log(this.approval.actId)
  2398. this.$nextTick(() => {
  2399. if(Cookies.get("sysType") == 3){
  2400. this.$refs.ApprovalComments.init(
  2401. this.approval.billId,status,
  2402. 440
  2403. );
  2404. }else{
  2405. this.$refs.ApprovalComments.init(
  2406. this.approval.billId,status,
  2407. this.contrastId
  2408. );
  2409. }
  2410. });
  2411. },
  2412. // 查看审批流
  2413. addOrUpdateHandle(status) {
  2414. this.addOrUpdateVisible = true;
  2415. this.addOrUpdateVisib = false;
  2416. let id = "448";
  2417. let actId = "110";
  2418. this.$nextTick(() => {
  2419. if(Cookies.get("sysType") == 3){
  2420. this.$refs.addOrUpdate.init(this.queryParams.fId, 440,status);
  2421. }else{
  2422. this.$refs.addOrUpdate.init(this.queryParams.fId, 220,status);
  2423. }
  2424. });
  2425. },
  2426. // 撤销收费
  2427. revokeCharge() {
  2428. this.queryParams.fBillstatus = "1";
  2429. let formDate = new window.FormData();
  2430. formDate.append("tFee", JSON.stringify(this.queryParams));
  2431. formDate.append("tFeeDo", JSON.stringify(this.increase_s));
  2432. backCharge(formDate).then((response) => {
  2433. this.open = false;
  2434. this.mainTable = false
  2435. this.msgSuccess("操作成功");
  2436. this.getList();
  2437. });
  2438. },
  2439. // 查看按钮
  2440. check(row, res) {
  2441. this.notChange = true;
  2442. this.doNot = true
  2443. if (Cookies.get("sysType") == 1) {
  2444. //大木
  2445. getCharge(row.fId).then((response) => {
  2446. this.Operator = response.data.tFee.createBy? response.data.tFee.createBy: '';
  2447. if (response.data.feeDoList != 0) {
  2448. response.data.feeDoList.map((e) => {
  2449. if (e.fBsdate) {
  2450. e.fBsdate = e.fBsdate.slice(0, 10);
  2451. }
  2452. // if (e.fSrcdc) {
  2453. // if (e.fSrcdc == "D") {
  2454. // e.fSrcdc = "收";
  2455. // } else {
  2456. // e.fSrcdc = "付";
  2457. // }
  2458. // }
  2459. });
  2460. }
  2461. this.increase_s = response.data.feeDoList;
  2462. this.fWbuOptions = response.data.feesList;
  2463. this.queryParams = response.data.tFee;
  2464. this.fWbuOptions = response.data.feesList;
  2465. this.fMblnoOptions = response.data.corps;
  2466. this.mainTable = true
  2467. this.title = "收费列表";
  2468. this.tablefilter = true;
  2469. if (res == 1) {
  2470. this.notChange = true;
  2471. if (this.Operator == this.Lander) {
  2472. this.tablefilter = false;
  2473. this.reset();
  2474. this.pass = {
  2475. fAmtdr: 0, //应收合计
  2476. fAmtcr: 0, //应付合计
  2477. fMblno: "", //提单号
  2478. fName: "", //货权方
  2479. fFeesName: "", //结算单位
  2480. fCorpid: "", //结算单位ID
  2481. };
  2482. const fId = row.fId || this.ids;
  2483. getCharge(fId).then((response) => {
  2484. if (response.data.feeDoList != 0) {
  2485. response.data.feeDoList.map((e) => {
  2486. if (e.fBsdate) {
  2487. e.fBsdate = e.fBsdate.slice(0, 10);
  2488. }
  2489. // if (e.fSrcdc) {
  2490. // if (e.fSrcdc == "D") {
  2491. // e.fSrcdc = "收";
  2492. // } else {
  2493. // e.fSrcdc = "付";
  2494. // }
  2495. // }
  2496. });
  2497. }
  2498. this.increase_s = response.data.feeDoList;
  2499. this.fWbuOptions = response.data.feesList;
  2500. this.queryParams = response.data.tFee;
  2501. this.fWbuOptions = response.data.feesList;
  2502. this.fMblnoOptions = response.data.corps;
  2503. this.mainTable = true
  2504. });
  2505. } else {
  2506. this.notChange = true;
  2507. // this.$message.error('未知异常,请联系管理员')
  2508. }
  2509. } else {
  2510. this.notChange = true;
  2511. this.reset();
  2512. this.pass = {
  2513. fAmtdr: 0, //应收合计
  2514. fAmtcr: 0, //应付合计
  2515. fMblno: "", //提单号
  2516. fName: "", //货权方
  2517. fFeesName: "", //结算单位
  2518. fCorpid: "", //结算单位ID
  2519. };
  2520. const fId = row.fId || this.ids;
  2521. getCharge(fId).then((response) => {
  2522. if (response.data.feeDoList != 0) {
  2523. response.data.feeDoList.map((e) => {
  2524. if (e.fBsdate) {
  2525. e.fBsdate = e.fBsdate.slice(0, 10);
  2526. }
  2527. // if (e.fSrcdc) {
  2528. // if (e.fSrcdc == "D") {
  2529. // e.fSrcdc = "收";
  2530. // } else {
  2531. // e.fSrcdc = "付";
  2532. // }
  2533. // }
  2534. });
  2535. }
  2536. this.increase_s = response.data.feeDoList;
  2537. this.fWbuOptions = response.data.feesList;
  2538. this.queryParams = response.data.tFee;
  2539. this.fWbuOptions = response.data.feesList;
  2540. this.fMblnoOptions = response.data.corps;
  2541. this.mainTable = true
  2542. });
  2543. }
  2544. });
  2545. } else if (Cookies.get("sysType") == 2) {
  2546. //车队
  2547. getCharges(row.fId).then((response) => {
  2548. this.Operator = response.data.tFee.createBy;
  2549. if (response.data.feeDoList != 0) {
  2550. response.data.feeDoList.map((e) => {
  2551. if (e.fBsdate) {
  2552. e.fBsdate = e.fBsdate.slice(0, 10);
  2553. }
  2554. // if (e.fSrcdc) {
  2555. // if (e.fSrcdc == "D") {
  2556. // e.fSrcdc = "收";
  2557. // } else {
  2558. // e.fSrcdc = "付";
  2559. // }
  2560. // }
  2561. });
  2562. }
  2563. this.increase_s = response.data.feeDoList;
  2564. this.fWbuOptions = response.data.feesList;
  2565. this.queryParams = response.data.tFee;
  2566. this.fWbuOptions = response.data.feesList;
  2567. this.fMblnoOptions = response.data.corps;
  2568. this.mainTable = true
  2569. this.title = "收费列表";
  2570. this.tablefilter = true;
  2571. if (res == 1) {
  2572. this.notChange = true;
  2573. if (this.Operator == this.Lander) {
  2574. this.tablefilter = false;
  2575. this.reset();
  2576. this.pass = {
  2577. fAmtdr: 0, //应收合计
  2578. fAmtcr: 0, //应付合计
  2579. fMblno: "", //提单号
  2580. fName: "", //货权方
  2581. fFeesName: "", //结算单位
  2582. fCorpid: "", //结算单位ID
  2583. };
  2584. const fId = row.fId || this.ids;
  2585. getCharges(fId).then((response) => {
  2586. if (response.data.feeDoList != 0) {
  2587. response.data.feeDoList.map((e) => {
  2588. if (e.fBsdate) {
  2589. e.fBsdate = e.fBsdate.slice(0, 10);
  2590. }
  2591. // if (e.fSrcdc) {
  2592. // if (e.fSrcdc == "D") {
  2593. // e.fSrcdc = "收";
  2594. // } else {
  2595. // e.fSrcdc = "付";
  2596. // }
  2597. // }
  2598. });
  2599. }
  2600. this.increase_s = response.data.feeDoList;
  2601. this.fWbuOptions = response.data.feesList;
  2602. this.queryParams = response.data.tFee;
  2603. this.fWbuOptions = response.data.feesList;
  2604. this.fMblnoOptions = response.data.corps;
  2605. this.mainTable = true
  2606. });
  2607. } else {
  2608. this.notChange = true;
  2609. // this.$message.error('未知异常,请联系管理员')
  2610. }
  2611. } else {
  2612. this.notChange = true;
  2613. this.reset();
  2614. this.pass = {
  2615. fAmtdr: 0, //应收合计
  2616. fAmtcr: 0, //应付合计
  2617. fMblno: "", //提单号
  2618. fName: "", //货权方
  2619. fFeesName: "", //结算单位
  2620. fCorpid: "", //结算单位ID
  2621. };
  2622. const fId = row.fId || this.ids;
  2623. getCharges(fId).then((response) => {
  2624. if (response.data.feeDoList != 0) {
  2625. response.data.feeDoList.map((e) => {
  2626. if (e.fBsdate) {
  2627. e.fBsdate = e.fBsdate.slice(0, 10);
  2628. }
  2629. // if (e.fSrcdc) {
  2630. // if (e.fSrcdc == "D") {
  2631. // e.fSrcdc = "收";
  2632. // } else {
  2633. // e.fSrcdc = "付";
  2634. // }
  2635. // }
  2636. });
  2637. }
  2638. this.increase_s = response.data.feeDoList;
  2639. this.fWbuOptions = response.data.feesList;
  2640. this.queryParams = response.data.tFee;
  2641. this.fWbuOptions = response.data.feesList;
  2642. this.fMblnoOptions = response.data.corps;
  2643. this.mainTable = true
  2644. });
  2645. }
  2646. });
  2647. }else if(Cookies.get("sysType") == 3){
  2648. getCharge(row.fId).then((response) => {
  2649. this.Operator = response.data.tFee.createBy;
  2650. if (response.data.feeDoList != 0) {
  2651. response.data.feeDoList.map((e) => {
  2652. if (e.fBsdate) {
  2653. e.fBsdate = e.fBsdate.slice(0, 10);
  2654. }
  2655. });
  2656. }
  2657. this.increase_s = response.data.feeDoList;
  2658. this.fWbuOptions = response.data.feesList;
  2659. this.queryParams = response.data.tFee;
  2660. this.fWbuOptions = response.data.feesList;
  2661. this.fMblnoOptions = response.data.corps;
  2662. this.mainTable = true
  2663. this.title = "收费列表";
  2664. this.tablefilter = true;
  2665. if (res == 1) {
  2666. this.notChange = true;
  2667. if (this.Operator == this.Lander) {
  2668. this.tablefilter = false;
  2669. this.reset();
  2670. this.pass = {
  2671. fAmtdr: 0, //应收合计
  2672. fAmtcr: 0, //应付合计
  2673. fMblno: "", //提单号
  2674. fName: "", //货权方
  2675. fFeesName: "", //结算单位
  2676. fCorpid: "", //结算单位ID
  2677. };
  2678. const fId = row.fId || this.ids;
  2679. getCharge(fId).then((response) => {
  2680. if (response.data.feeDoList != 0) {
  2681. response.data.feeDoList.map((e) => {
  2682. if (e.fBsdate) {
  2683. e.fBsdate = e.fBsdate.slice(0, 10);
  2684. }
  2685. });
  2686. }
  2687. this.increase_s = response.data.feeDoList;
  2688. this.fWbuOptions = response.data.feesList;
  2689. this.queryParams = response.data.tFee;
  2690. this.fWbuOptions = response.data.feesList;
  2691. this.fMblnoOptions = response.data.corps;
  2692. this.mainTable = true
  2693. this.title = "收费列表";
  2694. });
  2695. } else {
  2696. this.notChange = true;
  2697. // this.$message.error('未知异常,请联系管理员')
  2698. }
  2699. } else {
  2700. this.notChange = true;
  2701. this.reset();
  2702. this.pass = {
  2703. fAmtdr: 0, //应收合计
  2704. fAmtcr: 0, //应付合计
  2705. fMblno: "", //提单号
  2706. fName: "", //货权方
  2707. fFeesName: "", //结算单位
  2708. fCorpid: "", //结算单位ID
  2709. };
  2710. const fId = row.fId || this.ids;
  2711. getCharge(fId).then((response) => {
  2712. if (response.data.feeDoList != 0) {
  2713. response.data.feeDoList.map((e) => {
  2714. if (e.fBsdate) {
  2715. e.fBsdate = e.fBsdate.slice(0, 10);
  2716. }
  2717. });
  2718. }
  2719. this.increase_s = response.data.feeDoList;
  2720. this.fWbuOptions = response.data.feesList;
  2721. this.queryParams = response.data.tFee;
  2722. this.fWbuOptions = response.data.feesList;
  2723. this.fMblnoOptions = response.data.corps;
  2724. this.mainTable = true
  2725. this.title = "收费列表";
  2726. this.tablefilter = true;
  2727. });
  2728. }
  2729. });
  2730. }
  2731. },
  2732. //打印功能
  2733. printing() {
  2734. if (this.increase_s.length !== 0) {
  2735. this.printStatus = true;
  2736. this.printObject = this.increase_s;
  2737. } else {
  2738. this.$message.error("无数据,请检查是否有数据");
  2739. }
  2740. },
  2741. //确认打印
  2742. printSomething() {
  2743. // 此处的style即为打印时的样式
  2744. const style =
  2745. "table tr td,th { border-collapse: collapse;padding:0px;border:.5px #000 solid;text-align:center;}";
  2746. print({
  2747. printable: "print_area2",
  2748. type: "html",
  2749. header: "收费表",
  2750. style: style, // 亦可使用引入的外部css;
  2751. scanStyles: false,
  2752. });
  2753. },
  2754. //关闭打印弹窗
  2755. closePrinting() {
  2756. this.$confirm("确认关闭?")
  2757. .then((_) => {
  2758. this.printStatus = false;
  2759. })
  2760. .catch((_) => {});
  2761. },
  2762. // 确认收费
  2763. confirmCharge() {
  2764. this.$refs["ruless"].validate((valid) => {
  2765. if (valid) {
  2766. if (this.increase_s.length) {
  2767. let fMblnoList = []; // 定义存储列表的提单号
  2768. this.increase_s.map(e => {
  2769. const repeat = fMblnoList.some(item => item == e.fMblno)
  2770. if (!repeat) fMblnoList.push(e.fMblno)
  2771. })
  2772. this.queryParams.tMblno = fMblnoList.join(',');
  2773. if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno.slice(0, 199)
  2774. // this.queryParams.fBillstatus = '4'
  2775. let formDate = new window.FormData();
  2776. formDate.append("tFee", JSON.stringify(this.queryParams));
  2777. formDate.append("tFeeDo", JSON.stringify(this.increase_s));
  2778. if (Cookies.get("sysType") == 1) {
  2779. collectFee(formDate).then((response) => {
  2780. this.open = false;
  2781. this.msgSuccess("操作成功");
  2782. this.getList();
  2783. this.handleAdd();
  2784. });
  2785. } else if(Cookies.get("sysType") == 2){
  2786. collectFees(formDate).then((response) => {
  2787. this.open = false;
  2788. this.msgSuccess("操作成功");
  2789. this.getList();
  2790. });
  2791. }else if(Cookies.get("sysType") == 3){
  2792. formDate.append('billsType','KHSF')
  2793. collectFee(formDate).then((response) => {
  2794. this.queryParams.fId = response.data.tFee.fId
  2795. this.queryParams.fBillno = response.data.tFee.fBillno
  2796. this.open = false;
  2797. this.msgSuccess("操作成功");
  2798. this.getList();
  2799. this.notChange = true;
  2800. this.doNot = true
  2801. this.$set(this.queryParams,'fBillstatus','4')
  2802. // this.queryParams.fBillstatus = '4'
  2803. if (this.Operator == this.Lander) {
  2804. this.tablefilter = false;
  2805. }
  2806. });
  2807. }
  2808. } else {
  2809. this.$message.error("表单为空不允许操作");
  2810. }
  2811. }
  2812. });
  2813. },
  2814. charGe() {
  2815. if (!Cookies.get("sysType")) {
  2816. return this.$message("请先选择业务类型");
  2817. }
  2818. if (!this.queryParams.fCorpid) {
  2819. return this.$message.error("请先选择结算单位");
  2820. }
  2821. this.queryParameter.fToCorpid = this.queryParams.fCorpid
  2822. this.chargeList_s = [];
  2823. search(this.queryParameter).then((response) => {
  2824. this.chargeList_s = response.rows;
  2825. if (this.chargeList_s.length !== 0) {
  2826. this.$message.success("查询成功");
  2827. for (let item in this.chargeList_s) {
  2828. this.totAL += Number(this.chargeList_s[item].fAmt);
  2829. this.Ttime += Number(this.chargeList_s[item].fAmtdr);
  2830. }
  2831. } else {
  2832. this.$message.error("暂无数据");
  2833. }
  2834. });
  2835. this.innerVisible = true;
  2836. // if (this.queryParams.fCorpid) {
  2837. // this.doNot = true;
  2838. // }
  2839. },
  2840. getSum(param) {
  2841. const { columns, data } = param;
  2842. const sums = [];
  2843. columns.forEach((column, index) => {
  2844. if(this.selection.length == 0){
  2845. if (index === 0) {
  2846. sums[index] = "合计";
  2847. } else if ( column.label == '金额' || column.label == '本次金额') {
  2848. const values = data.map((item) => Number(item[column.property]));
  2849. if (!values.every((value) => isNaN(value))) {
  2850. sums[index] = values.reduce((prev, curr) => {
  2851. const value = Number(curr);
  2852. if (!isNaN(value)) {
  2853. return (Number(prev) + Number(curr)).toSuperFixed(2);
  2854. } else {
  2855. return Number(prev).toSuperFixed(2);
  2856. }
  2857. }, 0);
  2858. }
  2859. }
  2860. }else{
  2861. if (index === 0) {
  2862. sums[index] = "合计";
  2863. } else if (column.label == '金额' || column.label == '本次金额') {
  2864. const values = this.selection.map((selection) => Number(selection[column.property]));
  2865. if (!values.every((value) => isNaN(value))) {
  2866. sums[index] = values.reduce((prev, curr) => {
  2867. const value = Number(curr);
  2868. if (!isNaN(value)) {
  2869. return (Number(prev) + Number(curr)).toSuperFixed(2);
  2870. } else {
  2871. return Number(prev).toSuperFixed(2);
  2872. }
  2873. }, 0);
  2874. }
  2875. }
  2876. }
  2877. // sums[0] = "合计";
  2878. // sums[10] = this.totAL.toFixed(2);
  2879. // sums[9] = this.Ttime.toFixed(2);
  2880. });
  2881. return sums;
  2882. },
  2883. // 导入多选框
  2884. handleSelectionChange_s(selection) {
  2885. // this.totAL = 0;
  2886. // this.Ttime = 0;
  2887. this.selection = selection;
  2888. // if (this.selection.length == 0) {
  2889. // for (let item in this.chargeList_s) {
  2890. // this.totAL += Number(this.chargeList_s[item].fAmt);
  2891. // this.Ttime += Number(this.chargeList_s[item].fAmtdr);
  2892. // }
  2893. // } else {
  2894. // for (let index in selection) {
  2895. // this.totAL += Number(selection[index].fAmt);
  2896. // this.Ttime += Number(selection[index].fAmtdr);
  2897. // }
  2898. // }
  2899. // this.getSummaries()
  2900. },
  2901. // 多选框选中数据
  2902. handleSelectionChange(selection) {
  2903. this.totAL = 0;
  2904. this.ids = selection.map((item) => item.fId);
  2905. this.single =
  2906. selection.length !== 1 ||
  2907. selection.map((item) => item.fBillstatus) == 6 ||
  2908. selection.map((item) => item.fBillstatus) == 4;
  2909. this.multiple = !selection.length;
  2910. },
  2911. imgChangeI(row) {
  2912. if (row.fAmt && Number(row.fAmt) > Number(row.fAmtdr)) {
  2913. this.$set(row, "fAmt", row.fAmtdr);
  2914. this.state_s = true;
  2915. }
  2916. if (this.selection.length !== 0) {
  2917. this.totAL = 0;
  2918. this.Ttime = 0;
  2919. for (let item in this.selection) {
  2920. this.totAL += Number(this.selection[item].fAmt);
  2921. this.Ttime += Number(this.selection[item].fAmtdr);
  2922. }
  2923. } else {
  2924. this.totAL = 0;
  2925. this.Ttime = 0;
  2926. for (let item in this.chargeList_s) {
  2927. this.totAL += Number(this.chargeList_s[item].fAmt);
  2928. this.Ttime += Number(this.chargeList_s[item].fAmtdr);
  2929. }
  2930. }
  2931. },
  2932. //确认导入
  2933. confirmImport() {
  2934. this.hide = true;
  2935. this.pass.fAmtdr = 0;
  2936. this.pass.fAmtcr = 0;
  2937. for (let item in this.selection) {
  2938. this.pass.fAmtcr = Number(this.pass.fAmtcr);
  2939. this.pass.fAmtdr = Number(this.pass.fAmtdr);
  2940. this.pass.fAmtcr += Number(this.selection[item].fAmt);
  2941. this.pass.fAmtdr += Number(this.selection[item].fAmtdr);
  2942. }
  2943. // this.pass.fAmtcr.toFixed(2);
  2944. if (this.state_s == true) {
  2945. if (this.selection.length == "0") {
  2946. this.$message.error("未选择导入行");
  2947. } else {
  2948. let Num = []
  2949. for (let item in this.selection) {
  2950. this.empty.push(this.selection[item].fMblno);
  2951. this.nothing.push(this.selection[item].fName);
  2952. if (this.increase_s.length === 0) {
  2953. this.increase_s = this.increase_s.concat(this.selection)
  2954. this.increase_s.forEach(data => {
  2955. data.fId = null
  2956. })
  2957. //去重提单号
  2958. this.empty = new Set(this.empty);
  2959. this.empty = Array.from(this.empty);
  2960. //去重货权方
  2961. this.nothing = new Set(this.nothing);
  2962. this.nothing = Array.from(this.nothing);
  2963. if (this.empty.length <= 1) {
  2964. this.pass.fMblno = this.empty[0];
  2965. } else {
  2966. this.pass.fMblno = this.empty[0] + "...";
  2967. }
  2968. if (this.nothing.length <= 1) {
  2969. this.pass.fName = this.nothing[0];
  2970. } else {
  2971. this.pass.fName = this.nothing[0] + "...";
  2972. }
  2973. // this.increase_s = this.increase_s.concat(this.selection);
  2974. this.queryParams.fMblno = this.pass.fMblno; //提单号
  2975. this.queryParams.fCtrlcorpid = this.pass.fName;
  2976. this.queryParams.fCorpid = this.queryParameter.fToCorpid;
  2977. this.queryParams.fAmtcr = this.pass.fAmtcr
  2978. this.queryParams.fAmtdr = this.pass.fAmtdr
  2979. this.innerVisible = false;
  2980. this.chargeList_s = [];
  2981. this.queryParameter = {
  2982. fCorpid: null,
  2983. fToCorpid: this.queryParams.fCorpid,
  2984. fMblno: null,
  2985. fStatementNo: null,
  2986. fFeeid: null,
  2987. timeExamine: null,
  2988. timeInterval: null,
  2989. fSystemType: Cookies.get("sysType")
  2990. };
  2991. return
  2992. }
  2993. }
  2994. for (let li in this.increase_s) {
  2995. for(let item in this.selection) {
  2996. if (this.selection[item].fSrcid !== this.increase_s[li].fSrcid) {
  2997. this.Fee = this.increase_s.concat(this.selection);
  2998. let result = [];
  2999. let obj = {};
  3000. for (let lis in this.Fee) {
  3001. if (!obj[this.Fee[lis].fSrcid]) {
  3002. result.push(this.Fee[lis]);
  3003. obj[this.Fee[lis].fSrcid] = true;
  3004. }
  3005. }
  3006. //去重提单号
  3007. this.empty = new Set(this.empty);
  3008. this.empty = Array.from(this.empty);
  3009. //去重货权方
  3010. this.nothing = new Set(this.nothing);
  3011. this.nothing = Array.from(this.nothing);
  3012. if (this.empty.length <= 1) {
  3013. this.pass.fMblno = this.empty[0];
  3014. } else {
  3015. this.pass.fMblno = this.empty[0] + "...";
  3016. }
  3017. if (this.nothing.length <= 1) {
  3018. this.pass.fName = this.nothing[0];
  3019. } else {
  3020. this.pass.fName = this.nothing[0] + "...";
  3021. }
  3022. // this.increase_s = this.increase_s.concat(this.selection);
  3023. this.queryParams.fMblno = this.pass.fMblno; //提单号
  3024. this.queryParams.fCtrlcorpid = this.pass.fName;
  3025. this.queryParams.fCorpid = this.queryParameter.fToCorpid;
  3026. this.queryParams.fAmtcr = Number(this.pass.fAmtcr).toFixed(2);
  3027. this.queryParams.fAmtdr = Number(this.pass.fAmtdr).toFixed(2);
  3028. this.innerVisible = false;
  3029. this.chargeList_s = [];
  3030. this.queryParameter = {
  3031. fCorpid: null,
  3032. fToCorpid: this.queryParams.fCorpid,
  3033. fMblno: null,
  3034. fStatementNo: null,
  3035. fFeeid: null,
  3036. fBilltype: null,
  3037. fBusinessType: null,
  3038. fVslid: null,
  3039. fVoyid: null,
  3040. timeExamine: null,
  3041. timeInterval: null,
  3042. fSystemType: Cookies.get("sysType")
  3043. };
  3044. this.increase_s = result;
  3045. this.increase_s.forEach(data => {
  3046. data.fId = null
  3047. })
  3048. } else {
  3049. let i = Number(li) + 1;
  3050. Num += i + '、'
  3051. }
  3052. }
  3053. }
  3054. if(Num.length != 0){
  3055. MessageBox.confirm("从表的第" + (Num).slice(0,Num.length-1) + "行重复,如本次金额变更,请删除后重新选择","提示",{
  3056. confirmButtonText: '确定',
  3057. cancelButtonText: '取消',
  3058. type: 'warning'
  3059. }
  3060. )
  3061. }
  3062. }
  3063. } else if (this.state_s == false) {
  3064. this.$message.error("本次金额不能大于原定金额");
  3065. }
  3066. },
  3067. /** 查询财务数据主列表 */
  3068. getList() {
  3069. this.loading = true;
  3070. this.getDicts("approval_process").then((response) => {
  3071. this.options = response.data;
  3072. });
  3073. if (Cookies.get("sysType") == 1) {
  3074. //大木
  3075. listCharge(this.tableFilter).then((response) => {
  3076. this.chargeList = response.rows;
  3077. this.total = response.total;
  3078. this.loading = false;
  3079. });
  3080. } else if (Cookies.get("sysType") == 2) {
  3081. //车队
  3082. listCharges(this.tableFilter).then((response) => {
  3083. response.rows.map((e) => {
  3084. if (e.createTime) {
  3085. e.createTime = e.createTime.substring(0, 10);
  3086. }
  3087. });
  3088. this.chargeList = response.rows;
  3089. this.total = response.total;
  3090. this.loading = false;
  3091. });
  3092. }else if(Cookies.get("sysType") == 3){
  3093. this.tableFilter.fBilltype = 'KHSF'
  3094. if(this.tableFilter.firstMoney || this.tableFilter.lastMoney){
  3095. if(this.tableFilter.firstMoney == '' || this.tableFilter.lastMoney == ''){
  3096. this.$message.error("实收合计为金额区间,请填写完整")
  3097. this.tableFilter.amount = []
  3098. }else if(!this.tableFilter.firstMoney || !this.tableFilter.lastMoney){
  3099. this.$message.error("实收合计为金额区间,请填写完整")
  3100. }else{
  3101. this.tableFilter.amount[0] = this.tableFilter.firstMoney
  3102. this.tableFilter.amount[1] = this.tableFilter.lastMoney
  3103. }
  3104. }else{
  3105. this.tableFilter.amount = []
  3106. }
  3107. listCharge(this.tableFilter).then((response) => {
  3108. this.chargeList = response.rows;
  3109. this.total = response.total;
  3110. this.loading = false;
  3111. });
  3112. }
  3113. },
  3114. // 取消按钮
  3115. cancel() {
  3116. if(this.notChange == true){
  3117. this.selection = [];
  3118. this.mainTable = false
  3119. }else{
  3120. this.$confirm("返回列表,是否保存?", "提示", {
  3121. confirmButtonText: "保存",
  3122. cancelButtonText: "取消",
  3123. type: "warning",
  3124. })
  3125. .then(() => {
  3126. this.submitForm(Cookies.get("sysType"))
  3127. })
  3128. .catch(() => {
  3129. this.mainTable = false;
  3130. this.selection = [];
  3131. this.getList();
  3132. });
  3133. }
  3134. },
  3135. // 表单重置
  3136. reset() {
  3137. this.form = {
  3138. fId: null,
  3139. fBillno: null,
  3140. fCtrlcorpid: null,
  3141. fCorpid: null,
  3142. fMblno: null,
  3143. fAmtdr: null,
  3144. fAmtcr: null,
  3145. fBilltype: null,
  3146. fBillstatus: "0",
  3147. fRemarks: null,
  3148. fAccbilldate: null,
  3149. delFlag: null,
  3150. createBy: null,
  3151. fDeptid: null,
  3152. createTime: null,
  3153. updateBy: null,
  3154. updateTime: null,
  3155. };
  3156. this.resetForm("form");
  3157. },
  3158. /** 搜索按钮操作 */
  3159. handleQuery() {
  3160. this.queryParams.pageNum = 1;
  3161. this.getList();
  3162. },
  3163. /** 导入搜索 */
  3164. importSearch() {
  3165. this.chargeList_s = [];
  3166. if (this.queryParameter.fStatementNo) {
  3167. this.rules = {};
  3168. if (Cookies.get("sysType") == 1) {
  3169. search(this.queryParameter).then((response) => {
  3170. this.chargeList_s = response.rows;
  3171. this.$message.success("查询成功");
  3172. for (let item in this.chargeList_s) {
  3173. this.totAL += Number(this.chargeList_s[item].fAmt);
  3174. this.Ttime += Number(this.chargeList_s[item].fAmtdr);
  3175. }
  3176. });
  3177. } else if(Cookies.get("sysType") == 2){
  3178. searchs(this.queryParameter).then((response) => {
  3179. this.chargeList_s = response.rows;
  3180. this.$message.success("查询成功");
  3181. for (let item in this.chargeList_s) {
  3182. this.totAL += Number(this.chargeList_s[item].fAmt);
  3183. this.Ttime += Number(this.chargeList_s[item].fAmtdr);
  3184. }
  3185. });
  3186. }else if(Cookies.get("sysType") == 3){
  3187. this.queryParameter.fSystemType = this.queryParams.fSystemType
  3188. search(this.queryParameter).then((response) => {
  3189. this.chargeList_s = response.rows;
  3190. this.$message.success("查询成功");
  3191. for (let item in this.chargeList_s) {
  3192. this.totAL += Number(this.chargeList_s[item].fAmt);
  3193. this.Ttime += Number(this.chargeList_s[item].fAmtdr);
  3194. }
  3195. });
  3196. }
  3197. } else{
  3198. // this.rules = {
  3199. // fToCorpid: [{ required: true, message: " ", trigger: "blur" }],
  3200. // timeExamine: [{ required: true, message: " ", trigger: "blur" }],
  3201. // };
  3202. if (this.rules) {
  3203. this.$refs["form"].validate((valid) => {
  3204. if (valid) {
  3205. if (Cookies.get("sysType") == 1) {
  3206. search(this.queryParameter).then((response) => {
  3207. this.chargeList_s = response.rows;
  3208. if (this.chargeList_s.length !== 0) {
  3209. this.$message.success("查询成功");
  3210. this.totAL = 0;
  3211. this.Ttime = 0;
  3212. for (let item in this.chargeList_s) {
  3213. this.totAL += Number(this.chargeList_s[item].fAmt);
  3214. this.Ttime += Number(this.chargeList_s[item].fAmtdr);
  3215. }
  3216. } else {
  3217. this.$message.error("暂无数据");
  3218. }
  3219. });
  3220. } else if(Cookies.get("sysType") == 2){
  3221. searchs(this.queryParameter).then((response) => {
  3222. this.chargeList_s = response.rows;
  3223. if (this.chargeList_s.length !== 0) {
  3224. this.$message.success("查询成功");
  3225. this.totAL = 0;
  3226. this.Ttime = 0;
  3227. for (let item in this.chargeList_s) {
  3228. this.totAL += Number(this.chargeList_s[item].fAmt);
  3229. this.Ttime += Number(this.chargeList_s[item].fAmtdr);
  3230. }
  3231. } else {
  3232. this.$message.error("暂无数据");
  3233. }
  3234. });
  3235. }else if(Cookies.get("sysType") == 3){
  3236. this.queryParameter.fSystemType = this.queryParams.fSystemType
  3237. search(this.queryParameter).then((response) => {
  3238. this.chargeList_s = response.rows;
  3239. if (this.chargeList_s.length !== 0) {
  3240. this.$message.success("查询成功");
  3241. this.totAL = 0;
  3242. this.Ttime = 0;
  3243. for (let item in this.chargeList_s) {
  3244. this.totAL += Number(this.chargeList_s[item].fAmt);
  3245. this.Ttime += Number(this.chargeList_s[item].fAmtdr);
  3246. }
  3247. } else {
  3248. this.$message.error("暂无数据");
  3249. }
  3250. });
  3251. }
  3252. }
  3253. });
  3254. } else {
  3255. this.$message.error("操作频繁");
  3256. }
  3257. }
  3258. },
  3259. /** 远程模糊查询用户 */
  3260. corpsRemoteMethod(name) {
  3261. // if (name == null || name === "") {
  3262. // return false;
  3263. // }
  3264. let queryParams = { fName: name };
  3265. listCorps(queryParams).then((response) => {
  3266. this.fMblnoOptions = response;
  3267. this.KHblnoOptions = response;
  3268. });
  3269. },
  3270. /** 重置按钮操作 */
  3271. resetQuery() {
  3272. this.tableFilter = {
  3273. pageNum: 1,
  3274. pageSize: 10,
  3275. fBillno: null,
  3276. fCtrlcorpid: null,
  3277. fCorpid: null,
  3278. timeInterval: null,
  3279. };
  3280. this.handleQuery();
  3281. },
  3282. //导入重置按钮
  3283. resetQuery_s() {
  3284. this.queryParameter = {
  3285. fCorpid: null,
  3286. fToCorpid: null,
  3287. fMblno: null,
  3288. fStatementNo: null,
  3289. fFeeid: null,
  3290. timeExamine: null,
  3291. timeInterval: null,
  3292. };
  3293. },
  3294. // 远程模糊查询费用名称
  3295. fWRemoteMethod(name) {
  3296. this.fWbuOptions = [];
  3297. if (name == null || name === "") {
  3298. return false;
  3299. }
  3300. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  3301. listFees(queryParams).then((response) => {
  3302. this.fWbuOptions = response.rows;
  3303. });
  3304. },
  3305. /** 新增按钮操作 */
  3306. handleAdd() {
  3307. this.notChange = false;
  3308. this.doNot = false
  3309. this.hide = true;
  3310. this.reset();
  3311. this.pass = {
  3312. fAmtdr: 0, //应收合计
  3313. fAmtcr: 0, //应付合计
  3314. fMblno: "", //提单号
  3315. fName: "", //货权方
  3316. fFeesName: "", //结算单位
  3317. fCorpid: "", //结算单位ID
  3318. },
  3319. // this.queryParams = []
  3320. this.increase_s = [];
  3321. this.queryParams = {
  3322. pageNum: 1,
  3323. pageSize: 10,
  3324. fBillno: null,
  3325. fCtrlcorpid: null,
  3326. fCorpid: null,
  3327. fMblno: null,
  3328. fAmtdr: null,
  3329. fAmtcr: null,
  3330. fBilltype: null,
  3331. fBillstatus: null,
  3332. fRemarks: null,
  3333. fAccbilldate: null,
  3334. fDeptid: null,
  3335. chargingMethod: null,
  3336. invoiceNo: null,
  3337. bank: null,
  3338. waterBillNo: null,
  3339. fSystemType: Cookies.get("sysType"),
  3340. };
  3341. this.resetForm("queryParams");
  3342. this.mainTable = true;
  3343. this.title = "添加财务数据主";
  3344. },
  3345. /** 修改按钮操作 */
  3346. handleUpdate(row) {
  3347. this.approve = false;
  3348. this.hide = false;
  3349. this.notChange = false;
  3350. this.reset();
  3351. this.pass = {
  3352. fAmtdr: 0, //应收合计
  3353. fAmtcr: 0, //应付合计
  3354. fMblno: "", //提单号
  3355. fName: "", //货权方
  3356. fFeesName: "", //结算单位
  3357. fCorpid: "", //结算单位ID
  3358. };
  3359. const fId = row.fId || this.ids;
  3360. if (Cookies.get("sysType") == 1) {
  3361. //大木
  3362. getCharge(fId).then((response) => {
  3363. this.Operator = response.data.tFee.createBy;
  3364. if (response.data.feeDoList != 0) {
  3365. response.data.feeDoList.map((e) => {
  3366. if (e.fBsdate) {
  3367. e.fBsdate = e.fBsdate.slice(0, 10);
  3368. }
  3369. // if (e.fSrcdc) {
  3370. // if (e.fSrcdc == "D") {
  3371. // e.fSrcdc = "收";
  3372. // } else {
  3373. // e.fSrcdc = "付";
  3374. // }
  3375. // }
  3376. });
  3377. }
  3378. this.increase_s = response.data.feeDoList;
  3379. this.fWbuOptions = response.data.feesList;
  3380. this.queryParams = response.data.tFee;
  3381. this.fWbuOptions = response.data.feesList;
  3382. this.fMblnoOptions = response.data.corps;
  3383. this.mainTable = true
  3384. this.title = "修改收费列表";
  3385. if (this.increase_s.length != 0) {
  3386. this.doNot = true;
  3387. } else {
  3388. this.doNot = false;
  3389. }
  3390. });
  3391. } else if (Cookies.get("sysType") == 2) {
  3392. //车队
  3393. getCharges(fId).then((response) => {
  3394. this.Operator = response.data.tFee.createBy;
  3395. if (response.data.feeDoList != 0) {
  3396. response.data.feeDoList.map((e) => {
  3397. if (e.fBsdate) {
  3398. e.fBsdate = e.fBsdate.slice(0, 10);
  3399. }
  3400. // if (e.fSrcdc) {
  3401. // if (e.fSrcdc == "D") {
  3402. // e.fSrcdc = "收";
  3403. // } else {
  3404. // e.fSrcdc = "付";
  3405. // }
  3406. // }
  3407. });
  3408. }
  3409. this.increase_s = response.data.feeDoList;
  3410. this.fWbuOptions = response.data.feesList;
  3411. this.queryParams = response.data.tFee;
  3412. this.fWbuOptions = response.data.feesList;
  3413. this.fMblnoOptions = response.data.corps;
  3414. this.mainTable = true
  3415. this.title = "修改收费列表";
  3416. if (this.increase_s.length != 0) {
  3417. this.doNot = true;
  3418. } else {
  3419. this.doNot = false;
  3420. }
  3421. });
  3422. }else if(Cookies.get("sysType") == 3){
  3423. getCharge(fId).then((response) => {
  3424. this.Operator = response.data.tFee.createBy;
  3425. if (response.data.feeDoList != 0) {
  3426. response.data.feeDoList.map((e) => {
  3427. if (e.fBsdate) {
  3428. e.fBsdate = e.fBsdate.slice(0, 10);
  3429. }
  3430. });
  3431. }
  3432. this.increase_s = response.data.feeDoList;
  3433. this.fWbuOptions = response.data.feesList;
  3434. this.queryParams = response.data.tFee;
  3435. this.fWbuOptions = response.data.feesList;
  3436. this.fMblnoOptions = response.data.corps;
  3437. this.mainTable = true
  3438. this.title = "修改收费列表";
  3439. if (this.increase_s.length != 0) {
  3440. this.doNot = true;
  3441. } else {
  3442. this.doNot = false;
  3443. }
  3444. });
  3445. }
  3446. },
  3447. /** 提交按钮 */
  3448. submitForm(res) {
  3449. this.$refs["ruless"].validate((valid) => {
  3450. if (valid) {
  3451. let fMblnoList = []; // 定义存储列表的提单号
  3452. this.increase_s.map(e => {
  3453. const repeat = fMblnoList.some(item => item == e.fMblno)
  3454. if (!repeat) fMblnoList.push(e.fMblno)
  3455. })
  3456. this.queryParams.tMblno = fMblnoList.join(',');
  3457. if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno.slice(0, 199)
  3458. if (!this.queryParams.fId) {
  3459. // this.chargeList.fBillstatus = '1'
  3460. this.queryParams.fBillstatus = "1";
  3461. let formData = new window.FormData();
  3462. formData.append("tFee", JSON.stringify(this.queryParams));
  3463. formData.append("tFeeDo", JSON.stringify(this.increase_s));
  3464. if (Cookies.get("sysType") == 1) {
  3465. addCharge(formData).then((response) => {
  3466. let feeBills = response.data.tFee;
  3467. this.$set(this.queryParams, "fId", response.data.tFee.fId);
  3468. this.$set(
  3469. this.queryParams,
  3470. "fBillno",
  3471. response.data.tFee.fBillno
  3472. );
  3473. getCharge(this.queryParams.fId).then((response) => {
  3474. this.Operator = response.data.tFee.createBy;
  3475. if (response.data.feeDoList != 0) {
  3476. response.data.feeDoList.map((e) => {
  3477. if (e.fBsdate) {
  3478. e.fBsdate = e.fBsdate.slice(0, 10);
  3479. }
  3480. });
  3481. }
  3482. this.increase_s = response.data.feeDoList;
  3483. this.fWbuOptions = response.data.feesList;
  3484. this.queryParams = response.data.tFee;
  3485. this.fWbuOptions = response.data.feesList;
  3486. this.fMblnoOptions = response.data.corps;
  3487. this.mainTable = true
  3488. this.title = "修改收费列表";
  3489. if (this.increase_s.length != 0) {
  3490. this.doNot = true;
  3491. } else {
  3492. this.doNot = false;
  3493. }
  3494. });
  3495. this.msgSuccess("新增成功");
  3496. });
  3497. } else if(Cookies.get("sysType") == 2){
  3498. addCharges(formData).then((response) => {
  3499. let feeBills = response.data.tFee;
  3500. this.$set(this.queryParams, "fId", response.data.tFee.fId);
  3501. this.$set(
  3502. this.queryParams,
  3503. "fBillno",
  3504. response.data.tFee.fBillno
  3505. );
  3506. this.msgSuccess("新增成功");
  3507. });
  3508. }else if(Cookies.get("sysType") == 3){
  3509. formData.append("billsType", 'KHSF');
  3510. addCharge(formData).then((response) => {
  3511. this.queryParams = response.data.tFee;
  3512. this.$set(this.queryParams, "fId", response.data.tFee.fId);
  3513. this.$set(this.queryParams, "fBillno", response.data.tFee.fBillno);
  3514. this.msgSuccess("新增成功");
  3515. if(res === 0){
  3516. this.mainTable = true
  3517. }else{
  3518. this.mainTable = false
  3519. }
  3520. this.getList()
  3521. });
  3522. }
  3523. } else if(Cookies.get("sysType") == 1 || Cookies.get("sysType") == 2){
  3524. this.queryParams.fBillstatus = "1";
  3525. let formData = new window.FormData();
  3526. formData.append("tFee", JSON.stringify(this.queryParams));
  3527. formData.append("tFeeDo", JSON.stringify(this.increase_s));
  3528. addCharge(formData).then((response) => {
  3529. getCharge(this.queryParams.fId).then((response) => {
  3530. this.Operator = response.data.tFee.createBy;
  3531. if (response.data.feeDoList != 0) {
  3532. response.data.feeDoList.map((e) => {
  3533. if (e.fBsdate) {
  3534. e.fBsdate = e.fBsdate.slice(0, 10);
  3535. }
  3536. });
  3537. }
  3538. this.increase_s = response.data.feeDoList;
  3539. this.fWbuOptions = response.data.feesList;
  3540. this.queryParams = response.data.tFee;
  3541. this.fWbuOptions = response.data.feesList;
  3542. this.fMblnoOptions = response.data.corps;
  3543. this.mainTable = true
  3544. this.title = "修改收费列表";
  3545. if (this.increase_s.length != 0) {
  3546. this.doNot = true;
  3547. } else {
  3548. this.doNot = false;
  3549. }
  3550. });
  3551. this.msgSuccess("修改成功");
  3552. this.getList();
  3553. });
  3554. }else if(Cookies.get("sysType") == 3){
  3555. this.queryParams.fBillstatus = "1";
  3556. let formData = new window.FormData();
  3557. formData.append("tFee", JSON.stringify(this.queryParams));
  3558. formData.append("tFeeDo", JSON.stringify(this.increase_s));
  3559. formData.append("billsType", 'KHSF');
  3560. addCharge(formData).then((response) => {
  3561. this.msgSuccess("修改成功");
  3562. if(res === 0){
  3563. this.mainTable = true
  3564. }else{
  3565. this.mainTable = false
  3566. }
  3567. this.getList();
  3568. });
  3569. }
  3570. }
  3571. });
  3572. },
  3573. /** 删除按钮操作 */
  3574. handleDelete(row) {
  3575. const fIds = row.fId || this.ids;
  3576. let tips = "";
  3577. if (Cookies.get("sysType") == 1) {
  3578. //大木
  3579. delCharge_s(fIds).then((data) => {
  3580. switch (data.msg) {
  3581. case "0": {
  3582. this.$message.error("当前数据已被其他操作员操作请刷新页面");
  3583. break;
  3584. }
  3585. case "1": {
  3586. tips = "当前主表有数据从表无数据是否删除";
  3587. this.delete_S(fIds, tips);
  3588. break;
  3589. }
  3590. case "2": {
  3591. tips = "当前主表有数据从表有数据是否删除";
  3592. this.delete_S(fIds, tips);
  3593. break;
  3594. }
  3595. default: {
  3596. return this.$message.error("未知错误,无状态");
  3597. }
  3598. }
  3599. });
  3600. } else if (Cookies.get("sysType") == 2) {
  3601. // 车队;
  3602. delCharge_ss(fIds).then((data) => {
  3603. switch (data.msg) {
  3604. case "0": {
  3605. this.$message.error("当前数据已被其他操作员操作请刷新页面");
  3606. break;
  3607. }
  3608. case "1": {
  3609. tips = "当前主表有数据从表无数据是否删除";
  3610. this.delete_S(fIds, tips);
  3611. break;
  3612. }
  3613. case "2": {
  3614. tips = "当前主表有数据从表有数据是否删除";
  3615. this.delete_S(fIds, tips);
  3616. break;
  3617. }
  3618. default: {
  3619. return this.$message.error("未知错误,无状态");
  3620. }
  3621. }
  3622. });
  3623. }else if(Cookies.get("sysType") == 3){
  3624. delCharge_s(fIds).then((data) => {
  3625. switch (data.msg) {
  3626. case "0": {
  3627. this.$message.error("当前数据已被其他操作员操作请刷新页面");
  3628. break;
  3629. }
  3630. case "1": {
  3631. tips = "当前主表有数据从表无数据是否删除";
  3632. this.delete_S(fIds, tips);
  3633. break;
  3634. }
  3635. case "2": {
  3636. tips = "当前主表有数据从表有数据是否删除";
  3637. this.delete_S(fIds, tips);
  3638. break;
  3639. }
  3640. default: {
  3641. return this.$message.error("未知错误,无状态");
  3642. }
  3643. }
  3644. });
  3645. }
  3646. },
  3647. delete_S(fIds, tips) {
  3648. this.$confirm(tips, "警告", {
  3649. confirmButtonText: "确定",
  3650. cancelButtonText: "取消",
  3651. type: "warning",
  3652. })
  3653. .then(function () {
  3654. if (Cookies.get("sysType") == 1) {
  3655. return delCharge(fIds);
  3656. } else if (Cookies.get("sysType") == 2) {
  3657. return delCharges(fIds);
  3658. }else if(Cookies.get("sysType") == 3){
  3659. return delCharge(fIds);
  3660. }
  3661. })
  3662. .then(() => {
  3663. this.getList();
  3664. this.msgSuccess("删除成功");
  3665. });
  3666. },
  3667. /** 导出按钮操作 */
  3668. handleExport() {
  3669. const queryParams = this.queryParams;
  3670. this.$confirm("是否确认导出所有财务数据主数据项?", "警告", {
  3671. confirmButtonText: "确定",
  3672. cancelButtonText: "取消",
  3673. type: "warning",
  3674. })
  3675. .then(function () {
  3676. return exportCharge(queryParams);
  3677. })
  3678. .then((response) => {
  3679. this.download(response.msg);
  3680. });
  3681. },
  3682. //清空一行
  3683. deleteRow(index, rows) {
  3684. this.queryParams.fAmtcr = 0;
  3685. this.queryParams.fAmtdr = 0;
  3686. rows.splice(index, 1);
  3687. for (let item in this.increase_s) {
  3688. this.queryParams.fAmtcr += this.increase_s[item].fAmt;
  3689. this.queryParams.fAmtdr += this.increase_s[item].fAmtdr;
  3690. }
  3691. if (this.increase_s.length == 0) {
  3692. this.doNot = false;
  3693. } else {
  3694. this.doNot = true;
  3695. }
  3696. },
  3697. // 财务结算方式(数据字典),对应data_settlement_type 字典翻译
  3698. methodTypeFormat(row, column) {
  3699. return this.selectDictLabel(this.methodOptions, row.chargingMethod);
  3700. },
  3701. openPrint() {
  3702. if (this.selection.length > 0) {
  3703. for (let item in this.selection) {
  3704. if (!this.selection[item].fId) {
  3705. return this.$message.error("请先保存!");
  3706. }
  3707. }
  3708. this.allAmount = 0;
  3709. this.selection.forEach(item => {
  3710. this.allAmount += Number(item.fAmtdr)
  3711. })
  3712. this.print_charge = true;
  3713. } else {
  3714. this.$message.error("请选择需要打印的明细!");
  3715. }
  3716. },
  3717. addprint(status) {
  3718. const style =
  3719. "@page { } " +
  3720. "@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;}";
  3721. if (status == 'mxd') {
  3722. print({
  3723. printable: "print_charge",
  3724. type: "html",
  3725. style: style, // 亦可使用引入的外部css;
  3726. scanStyles: false,
  3727. });
  3728. }
  3729. },
  3730. },
  3731. };
  3732. </script>
  3733. <style lang="scss" scoped>
  3734. .tabSetting {
  3735. display: flex;
  3736. justify-content: flex-end;
  3737. }
  3738. .listStyle {
  3739. display: flex;
  3740. border-top: 1px solid #dcdfe6;
  3741. border-left: 1px solid #dcdfe6;
  3742. border-right: 1px solid #dcdfe6;
  3743. }
  3744. .listStyle:last-child {
  3745. border-bottom: 1px solid #dcdfe6;
  3746. }
  3747. .progress {
  3748. display: flex;
  3749. align-items: center;
  3750. padding: 2px;
  3751. background-color: rgba(0, 0, 0, 0.05);
  3752. height: 100%;
  3753. }
  3754. .avue-crud__dialog__header {
  3755. display: -webkit-box;
  3756. display: -ms-flexbox;
  3757. display: flex;
  3758. -webkit-box-align: center;
  3759. -ms-flex-align: center;
  3760. align-items: center;
  3761. -webkit-box-pack: justify;
  3762. -ms-flex-pack: justify;
  3763. justify-content: space-between;
  3764. }
  3765. .el-dialog__title {
  3766. color: rgba(0, 0, 0, 0.85);
  3767. font-weight: 500;
  3768. word-wrap: break-word;
  3769. }
  3770. .avue-crud__dialog__menu {
  3771. padding-right: 20px;
  3772. float: left;
  3773. }
  3774. .avue-crud__dialog__menu i {
  3775. color: #909399;
  3776. font-size: 15px;
  3777. }
  3778. .el-icon-full-screen {
  3779. cursor: pointer;
  3780. }
  3781. .el-icon-full-screen:before {
  3782. content: "\e719";
  3783. }
  3784. .print_table {
  3785. table {
  3786. border-right: 1px solid #000;
  3787. border-bottom: 1px solid #000;
  3788. font-size: 12px;
  3789. margin-bottom: 5px;
  3790. }
  3791. table td {
  3792. border-left: 1px solid #000;
  3793. border-top: 1px solid #000;
  3794. vertical-align: middle;
  3795. padding: 2px;
  3796. text-align: center;
  3797. }
  3798. }
  3799. .print_form {
  3800. font-size: 12px;
  3801. }
  3802. </style>
  3803. <style lang="scss">
  3804. .el-dialog__body{
  3805. padding: 0 20px 30px 20px;
  3806. }
  3807. </style>