index.vue 152 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811
  1. <template>
  2. <div class="app-container">
  3. <!-- 主列表页面-->
  4. <div v-show="mainTable == false">
  5. <el-form
  6. :model="tablefilter"
  7. ref="queryParams_s"
  8. v-show="showSearch"
  9. label-width="90px"
  10. >
  11. <el-row>
  12. <el-col :span="6">
  13. <el-form-item label="结算单位" prop="fCorpid">
  14. <el-select
  15. v-model="tablefilter.fCorpid"
  16. placeholder="请选择结算单位"
  17. filterable
  18. remote
  19. clearable
  20. size="small"
  21. style="width: 100%"
  22. @keyup.enter.native="handleQuery"
  23. :remote-method="corpsRemoteMethod"
  24. >
  25. <el-option
  26. v-for="(dict, index) in fMblnoOptions"
  27. :key="index.fId"
  28. :label="dict.fName"
  29. :value="dict.fId"
  30. ></el-option>
  31. </el-select>
  32. </el-form-item>
  33. </el-col>
  34. <el-col :span="6">
  35. <el-form-item label="状态" prop="fBillstatus">
  36. <el-select
  37. v-model="tablefilter.fBillstatus"
  38. placeholder="请选择状态"
  39. clearable
  40. style="width: 100%"
  41. >
  42. <el-option label="保存" value="1" />
  43. <el-option label="暂存" value="2" />
  44. <el-option label="审批驳回" value="3" />
  45. <el-option label="提交审核" value="4" />
  46. <el-option label="审批中" value="5" />
  47. <el-option label="审核完成" value="6" />
  48. </el-select>
  49. </el-form-item>
  50. </el-col>
  51. <el-col :span="6">
  52. <el-form-item label="系统编号" prop="fBillno">
  53. <el-input
  54. v-model="tablefilter.fBillno"
  55. placeholder="请输入系统编号"
  56. clearable
  57. size="small"
  58. style="width: 100%"
  59. @keyup.enter.native="handleQuery"
  60. />
  61. </el-form-item>
  62. </el-col>
  63. <el-col :span="6">
  64. <el-form-item label="对账金额" prop="amount">
  65. <el-input
  66. v-model="tablefilter.firstMoney"
  67. placeholder="金额区间"
  68. style="width: 48%; margin-right: 4%"
  69. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  70. @keyup.enter.native="handleQuery"
  71. />
  72. <el-input
  73. v-model="tablefilter.lastMoney"
  74. placeholder="金额区间"
  75. @change="changeMoney"
  76. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  77. style="width: 48%"
  78. @keyup.enter.native="handleQuery"
  79. />
  80. </el-form-item>
  81. </el-col>
  82. </el-row>
  83. <el-row>
  84. <div v-show="show">
  85. <el-col :span="6">
  86. <el-form-item label="备注" prop="fRemarks">
  87. <el-input
  88. v-model="tablefilter.fRemarks"
  89. placeholder="请输入备注"
  90. clearable
  91. style="width: 100%"
  92. @keyup.enter.native="handleQuery"
  93. />
  94. </el-form-item>
  95. </el-col>
  96. <el-col :span="6">
  97. <el-form-item label="对账日期" prop="timeInterval">
  98. <el-date-picker
  99. v-model="tablefilter.timeInterval"
  100. size="small"
  101. style="width: 100%"
  102. value-format="yyyy-MM-dd"
  103. :default-time="['00:00:00', '23:59:59']"
  104. type="daterange"
  105. range-separator="-"
  106. start-placeholder="开始日期"
  107. end-placeholder="结束日期"
  108. ></el-date-picker>
  109. </el-form-item>
  110. </el-col>
  111. </div>
  112. </el-row>
  113. </el-form>
  114. <el-row :gutter="10" class="mb8">
  115. <el-col :span="1.5">
  116. <el-button
  117. type="primary"
  118. icon="el-icon-plus"
  119. size="mini"
  120. @click="handleAdd"
  121. v-hasPermi="['finance:contrast:add']"
  122. >新增</el-button
  123. >
  124. </el-col>
  125. <el-col :span="1.5">
  126. <el-button
  127. type="success"
  128. icon="el-icon-edit"
  129. size="mini"
  130. :disabled="single"
  131. @click="handleUpdate"
  132. v-hasPermi="['warehouse:contrast:edit']"
  133. >修改</el-button
  134. >
  135. </el-col>
  136. <el-col :span="1.5">
  137. <el-button
  138. type="warning"
  139. icon="el-icon-download"
  140. size="mini"
  141. @click="handleExport"
  142. v-hasPermi="['finance:contrast:export']"
  143. >导出</el-button
  144. >
  145. </el-col>
  146. <div class="tabSetting">
  147. <div style="margin-right: 20px">
  148. <el-button
  149. type="cyan"
  150. icon="el-icon-search"
  151. size="mini"
  152. @click="handleQuery"
  153. >搜索</el-button
  154. >
  155. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  156. >重置</el-button
  157. >
  158. <el-button
  159. v-show="show"
  160. @click="show = !show"
  161. icon="el-icon-arrow-up"
  162. size="mini"
  163. >展开</el-button
  164. >
  165. <el-button
  166. v-show="!show"
  167. @click="show = !show"
  168. icon="el-icon-arrow-down"
  169. size="mini"
  170. >展开</el-button
  171. >
  172. </div>
  173. <right-toolbar
  174. :showSearch.sync="showSearch"
  175. @queryTable="getList"
  176. ></right-toolbar>
  177. <div style="margin: 0 12px">
  178. <el-button
  179. icon="el-icon-setting"
  180. size="mini"
  181. circle
  182. @click="showSetting = !showSetting"
  183. v-if="typevalue != 2"
  184. ></el-button>
  185. <el-button
  186. icon="el-icon-setting"
  187. size="mini"
  188. circle
  189. @click="showSetting6 = !showSetting6"
  190. v-else
  191. ></el-button>
  192. </div>
  193. </div>
  194. </el-row>
  195. <el-dialog
  196. title="自定义列显示"
  197. :visible.sync="showSetting"
  198. width="700px"
  199. v-dialogDrag
  200. >
  201. <template slot="title">
  202. <div class="avue-crud__dialog__header">
  203. <span class="el-dialog__title">
  204. <span
  205. style="
  206. display: inline-block;
  207. width: 3px;
  208. height: 20px;
  209. margin-right: 5px;
  210. float: left;
  211. margin-top: 2px;
  212. "
  213. ></span>
  214. </span>
  215. </div>
  216. </template>
  217. <div>配置排序列数据(拖动调整顺序)</div>
  218. <div style="margin-left: 17px">
  219. <el-checkbox
  220. v-model="allCheck"
  221. label="全选"
  222. @change="allChecked"
  223. ></el-checkbox>
  224. </div>
  225. <div style="padding: 4px; display: flex; justify-content: center">
  226. <draggable
  227. v-model="setRowList"
  228. group="site"
  229. animation="300"
  230. @start="onStart"
  231. @end="onEnd"
  232. handle=".indraggable"
  233. >
  234. <transition-group>
  235. <div
  236. v-for="item in setRowList"
  237. :key="item.surface"
  238. class="listStyle"
  239. >
  240. <div style="width: 500px" class="indraggable">
  241. <div class="progress" :style="{ width: item.width + 'px' }">
  242. <el-checkbox
  243. :label="item.name"
  244. v-model="item.checked"
  245. :true-label="0"
  246. :false-label="1"
  247. >{{ item.name }}
  248. </el-checkbox>
  249. </div>
  250. </div>
  251. <el-input-number
  252. v-model.number="item.width"
  253. controls-position="right"
  254. :min="1"
  255. :max="500"
  256. size="mini"
  257. ></el-input-number>
  258. </div>
  259. </transition-group>
  260. </draggable>
  261. </div>
  262. <span slot="footer" class="dialog-footer">
  263. <el-button @click="showSetting = false">取 消</el-button>
  264. <el-button @click="delRow" type="danger">重 置</el-button>
  265. <el-button type="primary" @click="save()">确 定</el-button>
  266. </span>
  267. </el-dialog>
  268. <el-table
  269. v-loading="loading"
  270. :data="contrastList"
  271. @selection-change="handleSelectionChange"
  272. show-summary
  273. :summary-method="listTotal"
  274. v-if="typevalue != 2"
  275. >
  276. <el-table-column width="100" align="center" type="selection" />
  277. <!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
  278. <el-table-column
  279. label="行号"
  280. align="center"
  281. type="index"
  282. fixed="left"
  283. />
  284. <el-table-column
  285. v-for="(item, index) in getRowList"
  286. :key="index"
  287. :label="item.name"
  288. :width="item.width"
  289. :prop="item.label"
  290. align="center"
  291. :fixed="item.fixed"
  292. :show-overflow-tooltip="true"
  293. />
  294. <el-table-column
  295. label="操作"
  296. align="center"
  297. class-name="small-padding fixed-width"
  298. min-width="180"
  299. fixed="right"
  300. >
  301. <template slot-scope="scope">
  302. <el-button
  303. size="mini"
  304. type="text"
  305. icon="el-icon-view"
  306. @click="check(scope.row, 0)"
  307. v-hasPermi="['finance:contrast:edit']"
  308. >查看</el-button
  309. >
  310. <el-button
  311. size="mini"
  312. type="text"
  313. icon="el-icon-view"
  314. @click="check(scope.row, 1)"
  315. v-hasPermi="['finance:contrast:edit']"
  316. v-if="
  317. scope.row.fBillstatus == '提交审核' ||
  318. scope.row.fBillstatus == '审核中'
  319. "
  320. >审批进度</el-button
  321. >
  322. <el-button
  323. size="mini"
  324. type="text"
  325. icon="el-icon-edit"
  326. @click="handleUpdate(scope.row)"
  327. v-hasPermi="['finance:contrast:edit']"
  328. v-if="
  329. scope.row.fBillstatus == '保存' ||
  330. scope.row.fBillstatus == '暂存' ||
  331. scope.row.fBillstatus == '审批驳回' ||
  332. scope.row.fBillstatus == '新建'
  333. "
  334. >
  335. 修改</el-button
  336. >
  337. <el-button
  338. size="mini"
  339. type="text"
  340. icon="el-icon-delete"
  341. @click="handleDelete(scope.row)"
  342. v-hasPermi="['finance:contrast:remove']"
  343. v-if="
  344. scope.row.fBillstatus == '保存' ||
  345. scope.row.fBillstatus == '暂存' ||
  346. scope.row.fBillstatus == '审批驳回' ||
  347. scope.row.fBillstatus == '新建'
  348. "
  349. >删除</el-button
  350. >
  351. </template>
  352. </el-table-column>
  353. </el-table>
  354. <el-dialog
  355. title="自定义列显示"
  356. :visible.sync="showSetting6"
  357. width="700px"
  358. v-dialogDrag
  359. >
  360. <template slot="title">
  361. <div class="avue-crud__dialog__header">
  362. <span class="el-dialog__title">
  363. <span
  364. style="
  365. display: inline-block;
  366. width: 3px;
  367. height: 20px;
  368. margin-right: 5px;
  369. float: left;
  370. margin-top: 2px;
  371. "
  372. ></span>
  373. </span>
  374. </div>
  375. </template>
  376. <div>配置排序列数据(拖动调整顺序)</div>
  377. <div style="margin-left: 17px">
  378. <el-checkbox
  379. v-model="allCheck6"
  380. label="全选"
  381. @change="allChecked6"
  382. ></el-checkbox>
  383. </div>
  384. <div style="padding: 4px; display: flex; justify-content: center">
  385. <draggable
  386. v-model="setRowList6"
  387. group="site"
  388. animation="300"
  389. @start="onStart"
  390. @end="onEnd"
  391. handle=".indraggable"
  392. >
  393. <transition-group>
  394. <div
  395. v-for="item in setRowList6"
  396. :key="item.surface"
  397. class="listStyle"
  398. >
  399. <div style="width: 500px" class="indraggable">
  400. <div class="progress" :style="{ width: item.width + 'px' }">
  401. <el-checkbox
  402. :label="item.name"
  403. v-model="item.checked"
  404. :true-label="0"
  405. :false-label="1"
  406. >{{ item.name }}
  407. </el-checkbox>
  408. </div>
  409. </div>
  410. <el-input-number
  411. v-model.number="item.width"
  412. controls-position="right"
  413. :min="1"
  414. :max="500"
  415. size="mini"
  416. ></el-input-number>
  417. </div>
  418. </transition-group>
  419. </draggable>
  420. </div>
  421. <span slot="footer" class="dialog-footer">
  422. <el-button @click="showSetting6 = false">取 消</el-button>
  423. <el-button @click="delRow6" type="danger">重 置</el-button>
  424. <el-button type="primary" @click="save6()">确 定</el-button>
  425. </span>
  426. </el-dialog>
  427. <el-table
  428. v-loading="loading"
  429. :data="contrastList"
  430. @selection-change="handleSelectionChange"
  431. show-summary
  432. :summary-method="listTotal"
  433. v-if="typevalue == 2"
  434. >
  435. <el-table-column width="100" align="center" type="selection" />
  436. <!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
  437. <el-table-column
  438. label="行号"
  439. align="center"
  440. type="index"
  441. fixed="left"
  442. />
  443. <el-table-column
  444. v-for="(item, index) in getRowList6"
  445. :key="index"
  446. :label="item.name"
  447. :width="item.width"
  448. :prop="item.label"
  449. align="center"
  450. :fixed="item.fixed"
  451. :show-overflow-tooltip="true"
  452. />
  453. <el-table-column
  454. label="操作"
  455. align="center"
  456. class-name="small-padding fixed-width"
  457. min-width="180"
  458. fixed="right"
  459. >
  460. <template slot-scope="scope">
  461. <el-button
  462. size="mini"
  463. type="text"
  464. icon="el-icon-view"
  465. @click="check(scope.row, 0)"
  466. v-hasPermi="['finance:contrast:edit']"
  467. >查看</el-button
  468. >
  469. <el-button
  470. size="mini"
  471. type="text"
  472. icon="el-icon-view"
  473. @click="check(scope.row, 1)"
  474. v-hasPermi="['finance:contrast:edit']"
  475. v-if="
  476. scope.row.fBillstatus == '提交审核' ||
  477. scope.row.fBillstatus == '审核中'
  478. "
  479. >审批进度</el-button
  480. >
  481. <el-button
  482. size="mini"
  483. type="text"
  484. icon="el-icon-edit"
  485. @click="handleUpdate(scope.row)"
  486. v-hasPermi="['finance:contrast:edit']"
  487. v-if="
  488. scope.row.fBillstatus == '保存' ||
  489. scope.row.fBillstatus == '暂存' ||
  490. scope.row.fBillstatus == '审批驳回' ||
  491. scope.row.fBillstatus == '新建'
  492. "
  493. >
  494. 修改</el-button
  495. >
  496. <el-button
  497. size="mini"
  498. type="text"
  499. icon="el-icon-delete"
  500. @click="handleDelete(scope.row)"
  501. v-hasPermi="['finance:contrast:remove']"
  502. v-if="
  503. scope.row.fBillstatus == '保存' ||
  504. scope.row.fBillstatus == '暂存' ||
  505. scope.row.fBillstatus == '审批驳回' ||
  506. scope.row.fBillstatus == '新建'
  507. "
  508. >删除</el-button
  509. >
  510. </template>
  511. </el-table-column>
  512. </el-table>
  513. <pagination
  514. v-show="total > 0"
  515. :total="total"
  516. :page.sync="tablefilter.pageNum"
  517. :limit.sync="tablefilter.pageSize"
  518. @pagination="getList"
  519. />
  520. </div>
  521. <!-- 新增修改页面-->
  522. <div v-if="mainTable == true">
  523. <el-form
  524. ref="ruless"
  525. :model="queryParams"
  526. :rules="ruless"
  527. label-width="78px"
  528. :inline="true"
  529. v-show="showSearch"
  530. >
  531. <el-form-item label="结算单位" prop="fCorpid">
  532. <el-select
  533. v-model="queryParams.fCorpid"
  534. placeholder="请选择结算单位"
  535. filterable
  536. remote
  537. clearable
  538. :disabled="doNot"
  539. style="width: 200px"
  540. size="small"
  541. @keyup.enter.native="handleQuery"
  542. :remote-method="corpsRemoteMethod"
  543. >
  544. <el-option
  545. v-for="(dict, index) in fMblnoOptions"
  546. :key="index.fId"
  547. :label="dict.fName"
  548. :value="dict.fId"
  549. ></el-option>
  550. </el-select>
  551. </el-form-item>
  552. <!-- <el-form-item label="提单号" prop="tMblno">
  553. <el-input v-model="TWareHouseFees.tMblno" placeholder="" :disabled="true"/>
  554. </el-form-item> -->
  555. <el-form-item label="对账日期" prop="fAccbilldate">
  556. <el-date-picker
  557. v-model="queryParams.fAccbilldate"
  558. size="small"
  559. style="width: 200px"
  560. value-format="yyyy-MM-dd"
  561. type="date"
  562. :disabled="notChange"
  563. placeholder="选择账单日期"
  564. >
  565. </el-date-picker>
  566. </el-form-item>
  567. <el-form-item label="制单日期" prop="createTime" v-if="typevalue == 2">
  568. <el-date-picker
  569. v-model="queryParams.createTime"
  570. size="small"
  571. style="width: 200px"
  572. value-format="timestamp"
  573. type="date"
  574. disabled
  575. placeholder="选择制单日期"
  576. >
  577. </el-date-picker>
  578. </el-form-item>
  579. <el-form-item label="系统编号" prop="fBillno">
  580. <el-input
  581. v-model="queryParams.fBillno"
  582. placeholder=""
  583. clearable
  584. size="small"
  585. :disabled="true"
  586. style="width: 200px"
  587. @keyup.enter.native="handleQuery"
  588. />
  589. </el-form-item>
  590. <el-form-item label="录入人" prop="createBy">
  591. <el-input
  592. v-model="queryParams.createBy"
  593. disabled
  594. size="small"
  595. style="width: 200px"
  596. />
  597. </el-form-item>
  598. <el-form-item label="备注" prop="fRemarks">
  599. <el-input
  600. v-model="queryParams.fRemarks"
  601. size="small"
  602. style="width: 200px"
  603. :disabled="notChange"
  604. />
  605. </el-form-item>
  606. <div style="width: 100%; display: flex; justify-content: space-between">
  607. <div style="display: flex">
  608. <el-button
  609. icon="el-icon-arrow-left"
  610. type="danger"
  611. v-if="cancelButton === true"
  612. size="mini"
  613. @click="cancel"
  614. >返回列表</el-button
  615. >
  616. <el-button
  617. icon="el-icon-arrow-left"
  618. type="danger"
  619. v-if="cancelButton === false"
  620. size="mini"
  621. @click="homePage"
  622. >返回首页</el-button
  623. >
  624. <el-button
  625. type="warning"
  626. size="mini"
  627. @click="reconciliation"
  628. :disabled="notChange"
  629. v-if="queryParams.fBillstatus < '4'"
  630. >检索</el-button
  631. >
  632. <el-button
  633. type="primary"
  634. size="mini"
  635. @click="confirmReconciliation"
  636. :disabled="notChange"
  637. v-if="queryParams.fBillstatus < '4'"
  638. >确认对账</el-button
  639. >
  640. <el-button type="warning" size="mini" @click="handleExportItems"
  641. >导出</el-button
  642. >
  643. <el-button
  644. type="success"
  645. size="mini"
  646. @click="backrRconciliation"
  647. v-if="queryParams.fBillstatus === '6'"
  648. >撤销对账</el-button
  649. >
  650. <!-- <el-button type="info" size="small" @click="exportData">导出</el-button>-->
  651. <el-button
  652. type="danger"
  653. size="mini"
  654. :disabled="disappear"
  655. v-if="queryParams.fBillstatus === '4'"
  656. @click="backApproval('f_billstatus')"
  657. >撤销审批</el-button
  658. >
  659. <el-button
  660. v-if="approve === true"
  661. size="mini"
  662. @click="goApproval('f_billstatus')"
  663. >审批</el-button
  664. >
  665. <el-button
  666. type="primary"
  667. size="mini"
  668. v-if="queryParams.fBillstatus >= '3'"
  669. @click="addOrUpdateHandle('f_billstatus')"
  670. >查看审批流</el-button
  671. >
  672. <el-button
  673. type="success"
  674. size="mini"
  675. @click="submitForm(typevalue, 0)"
  676. :disabled="notChange"
  677. >保 存</el-button
  678. >
  679. <el-button
  680. @click="addPage"
  681. type="primary"
  682. :disabled="notChange"
  683. size="mini"
  684. >新 增</el-button
  685. >
  686. </div>
  687. <div style="margin: 0 12px">
  688. <el-button
  689. v-if="typevalue != 2"
  690. icon="el-icon-setting"
  691. size="mini"
  692. circle
  693. @click="showSetting2 = !showSetting2"
  694. ></el-button>
  695. <el-button
  696. v-if="typevalue == 2"
  697. icon="el-icon-setting"
  698. size="mini"
  699. circle
  700. @click="showSetting4 = !showSetting4"
  701. ></el-button>
  702. </div>
  703. </div>
  704. <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> -->
  705. </el-form>
  706. <el-dialog
  707. title="自定义列显示"
  708. :visible.sync="showSetting2"
  709. width="700px"
  710. v-dialogDrag
  711. append-to-body
  712. >
  713. <template slot="title">
  714. <div class="avue-crud__dialog__header">
  715. <span class="el-dialog__title">
  716. <span
  717. style="
  718. display: inline-block;
  719. width: 3px;
  720. height: 20px;
  721. margin-right: 5px;
  722. float: left;
  723. margin-top: 2px;
  724. "
  725. ></span>
  726. </span>
  727. </div>
  728. </template>
  729. <div>配置排序列数据(拖动调整顺序)</div>
  730. <div style="margin-left: 17px">
  731. <el-checkbox
  732. v-model="allCheck2"
  733. label="全选"
  734. @change="allChecked2"
  735. ></el-checkbox>
  736. </div>
  737. <div style="padding: 4px; display: flex; justify-content: center">
  738. <draggable
  739. v-model="setRowList2"
  740. group="site"
  741. animation="300"
  742. @start="onStart"
  743. @end="onEnd"
  744. handle=".indraggable"
  745. >
  746. <transition-group>
  747. <div
  748. v-for="item in setRowList2"
  749. :key="item.surface"
  750. class="listStyle"
  751. >
  752. <div style="width: 500px" class="indraggable">
  753. <div class="progress" :style="{ width: item.width + 'px' }">
  754. <el-checkbox
  755. :label="item.name"
  756. v-model="item.checked"
  757. :true-label="0"
  758. :false-label="1"
  759. >{{ item.name }}
  760. </el-checkbox>
  761. </div>
  762. </div>
  763. <el-input-number
  764. v-model.number="item.width"
  765. controls-position="right"
  766. :min="1"
  767. :max="500"
  768. size="mini"
  769. ></el-input-number>
  770. </div>
  771. </transition-group>
  772. </draggable>
  773. </div>
  774. <span slot="footer" class="dialog-footer">
  775. <el-button @click="showSetting2 = false">取 消</el-button>
  776. <el-button @click="delRow2" type="danger">重 置</el-button>
  777. <el-button type="primary" @click="save2()">确 定</el-button>
  778. </span>
  779. </el-dialog>
  780. <el-table
  781. v-loading="loading"
  782. :data="DzfeeList"
  783. @selection-change="handleSelectionChange_s"
  784. show-summary
  785. :summary-method="listTotal"
  786. v-if="typevalue != 2"
  787. >
  788. <el-table-column label="行号" align="center" type="index" />
  789. <el-table-column
  790. v-for="(item, index) in getRowList2"
  791. :key="index"
  792. :label="item.name"
  793. :width="item.width"
  794. :prop="item.label"
  795. align="center"
  796. :fixed="item.fixed"
  797. :show-overflow-tooltip="true"
  798. sortable
  799. >
  800. <template slot-scope="scope">
  801. <span v-if="item.label == 'fBsdate'">{{
  802. scope.row.fBsdate
  803. ? scope.row.fBsdate.slice(0, 10)
  804. : scope.row.fReviewDate
  805. }}</span>
  806. <span v-if="item.label == 'fSrcdc' && login == 3">{{
  807. scope.row.fSrcdc == "D" ? "收" : "付"
  808. }}</span>
  809. <span v-else>{{ scope.row[item.label] }}</span>
  810. </template>
  811. </el-table-column>
  812. <!-- <el-table-column label="提单号" align="center" prop="fMblno" />
  813. <el-table-column label="业务日期" align="center" prop="fBsdate">
  814. <template slot-scope="scope">
  815. <span v-if="scope.row.fBsdate === undefined">无</span>
  816. <span v-else>{{ scope.row.fBsdate.slice(0, 10) }}</span>
  817. </template>
  818. </el-table-column>
  819. <el-table-column label="费用名称" align="center" prop="fFeeName" />
  820. <el-table-column label="收/付" align="center" prop="fSrcdc">
  821. <template slot-scope="scope">
  822. <span v-if="scope.row.fSrcdc == 'D'">收</span>
  823. <span v-else-if="scope.row.fSrcdc == 'C'">付</span>
  824. </template>
  825. </el-table-column>
  826. <el-table-column label="金额" align="center" prop="fAmtdr" />
  827. <el-table-column label="计价单位" align="center" prop="fFeeunitid" />
  828. <el-table-column label="数量" align="center" prop="fQty" />
  829. <el-table-column label="单价" align="center" prop="fUnitprice" />
  830. <el-table-column label="本次金额" align="center" prop="fAmt" />
  831. <el-table-column label="作业类型" align="center" prop="fBusinessType" />
  832. <el-table-column label="业务类型" align="center" prop="fBilltype">
  833. <template slot-scope="scope">
  834. <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>
  835. <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>
  836. <span v-else-if="scope.row.fBilltype == 'CKDB'">调拨</span>
  837. <span v-else-if="scope.row.fBilltype == 'HQZY'">货权转移</span>
  838. <span v-else-if="scope.row.fBilltype == 'JSCCF'">仓储费</span>
  839. <span v-else>{{ scope.row.fBilltype }}</span>
  840. </template>
  841. </el-table-column>
  842. <el-table-column label="来源编号" align="center" prop="srcBillNo" />
  843. <el-table-column label="提单号" align="center" prop="fMblno" />
  844. <el-table-column label="货物品名" align="center" prop="fProductName" />
  845. <el-table-column label="品牌" align="center" prop="fMarks" />
  846. <el-table-column label="计费起始日期" align="center" prop="fChargedate">
  847. <template slot-scope="scope">
  848. <span v-if="scope.row.fChargedate === undefined">无</span>
  849. <span v-else>{{ scope.row.fChargedate.slice(0, 10) }}</span>
  850. </template>
  851. </el-table-column>
  852. <el-table-column
  853. label="计费截止日期"
  854. align="center"
  855. prop="fBillingDeadline"
  856. >
  857. <template slot-scope="scope">
  858. <span v-if="scope.row.fBillingDeadline === undefined">无</span>
  859. <span v-else>{{ scope.row.fBillingDeadline.slice(0, 10) }}</span>
  860. </template>
  861. </el-table-column>
  862. <el-table-column label="计费天数" align="center" prop="fBillingDays" />
  863. <el-table-column
  864. label="库存天数"
  865. align="center"
  866. prop="fInventoryDays"
  867. />
  868. <el-table-column label="备注" align="center" prop="fRemarks" /> -->
  869. <el-table-column
  870. label="操作"
  871. align="center"
  872. class-name="small-padding fixed-width"
  873. >
  874. <template slot-scope="scope">
  875. <el-button
  876. size="mini"
  877. type="text"
  878. icon="el-icon-delete"
  879. :disabled="notChange"
  880. @click.native.prevent="deleteRow(scope.$index, DzfeeList)"
  881. >删除
  882. </el-button>
  883. </template>
  884. </el-table-column>
  885. </el-table>
  886. <el-dialog
  887. title="自定义列显示"
  888. :visible.sync="showSetting4"
  889. width="700px"
  890. v-dialogDrag
  891. append-to-body
  892. >
  893. <template slot="title">
  894. <div class="avue-crud__dialog__header">
  895. <span class="el-dialog__title">
  896. <span
  897. style="
  898. display: inline-block;
  899. width: 3px;
  900. height: 20px;
  901. margin-right: 5px;
  902. float: left;
  903. margin-top: 2px;
  904. "
  905. ></span>
  906. </span>
  907. </div>
  908. </template>
  909. <div>配置排序列数据(拖动调整顺序)</div>
  910. <div style="margin-left: 17px">
  911. <el-checkbox
  912. v-model="allCheck4"
  913. label="全选"
  914. @change="allChecked4"
  915. ></el-checkbox>
  916. </div>
  917. <div style="padding: 4px; display: flex; justify-content: center">
  918. <draggable
  919. v-model="setRowList4"
  920. group="site"
  921. animation="300"
  922. @start="onStart"
  923. @end="onEnd"
  924. handle=".indraggable"
  925. >
  926. <transition-group>
  927. <div
  928. v-for="item in setRowList4"
  929. :key="item.surface"
  930. class="listStyle"
  931. >
  932. <div style="width: 500px" class="indraggable">
  933. <div class="progress" :style="{ width: item.width + 'px' }">
  934. <el-checkbox
  935. :label="item.name"
  936. v-model="item.checked"
  937. :true-label="0"
  938. :false-label="1"
  939. >{{ item.name }}
  940. </el-checkbox>
  941. </div>
  942. </div>
  943. <el-input-number
  944. v-model.number="item.width"
  945. controls-position="right"
  946. :min="1"
  947. :max="500"
  948. size="mini"
  949. ></el-input-number>
  950. </div>
  951. </transition-group>
  952. </draggable>
  953. </div>
  954. <span slot="footer" class="dialog-footer">
  955. <el-button @click="showSetting4 = false">取 消</el-button>
  956. <el-button @click="delRow4" type="danger">重 置</el-button>
  957. <el-button type="primary" @click="save4()">确 定</el-button>
  958. </span>
  959. </el-dialog>
  960. <el-table
  961. v-loading="loading"
  962. :data="DzfeeList"
  963. @selection-change="handleSelectionChange_s"
  964. show-summary
  965. :summary-method="listTotal"
  966. v-if="typevalue == 2"
  967. >
  968. <el-table-column label="行号" align="center" type="index" />
  969. <el-table-column
  970. v-for="(item, index) in getRowList4"
  971. :key="index"
  972. :label="item.name"
  973. :width="item.width"
  974. :prop="item.label"
  975. align="center"
  976. :fixed="item.fixed"
  977. :show-overflow-tooltip="true"
  978. sortable
  979. >
  980. <!-- <template slot-scope="scope">
  981. <span v-if="item.label == 'fBsdate'">{{
  982. scope.row.fBsdate
  983. ? scope.row.fBsdate.slice(0, 10)
  984. : scope.row.fReviewDate
  985. }}</span>
  986. <span v-if="item.label == 'fSrcdc' && login == 3">{{
  987. scope.row.fSrcdc == "D" ? "收" : "付"
  988. }}</span>
  989. <span v-else>{{ scope.row[item.label] }}</span>
  990. </template> -->
  991. </el-table-column>
  992. <el-table-column
  993. label="操作"
  994. fixed="right"
  995. align="center"
  996. class-name="small-padding fixed-width"
  997. >
  998. <template slot-scope="scope">
  999. <el-button
  1000. size="mini"
  1001. type="text"
  1002. icon="el-icon-delete"
  1003. :disabled="notChange"
  1004. @click.native.prevent="deleteRow(scope.$index, DzfeeList)"
  1005. >删除
  1006. </el-button>
  1007. </template>
  1008. </el-table-column>
  1009. </el-table>
  1010. <div slot="footer" class="dialog-footer">
  1011. <add-or-update
  1012. v-if="addOrUpdateVisible"
  1013. ref="addOrUpdate"
  1014. @refreshDataList="getDataList"
  1015. ></add-or-update>
  1016. <approval-comments
  1017. v-if="addOrUpdateVisib"
  1018. ref="ApprovalComments"
  1019. @refreshDataList="returnData"
  1020. ></approval-comments>
  1021. </div>
  1022. <!-- 添加或修改财务数据主对话框 -->
  1023. <el-dialog
  1024. v-dialogDrag
  1025. :fullscreen="dialogFull"
  1026. :close-on-click-modal="false"
  1027. width="78%"
  1028. :title="title"
  1029. :visible.sync="innerVisible"
  1030. append-to-body
  1031. >
  1032. <template slot="title">
  1033. <div class="avue-crud__dialog__header">
  1034. <span
  1035. class="el-dialog__title"
  1036. style="font-size: 18px; font-weight: bold; color: #606266"
  1037. >
  1038. <span
  1039. style="
  1040. display: inline-block;
  1041. width: 3px;
  1042. height: 20px;
  1043. margin-right: 5px;
  1044. float: left;
  1045. margin-top: 2px;
  1046. "
  1047. ></span
  1048. >检索
  1049. </span>
  1050. <div class="avue-crud__dialog__menu enlarge" @click="full">
  1051. <i
  1052. style="
  1053. cursor: pointer;
  1054. display: block;
  1055. width: 12px;
  1056. height: 12px;
  1057. border: 1px solid #909399;
  1058. border-top: 3px solid #909399;
  1059. margin-top: -3px;
  1060. "
  1061. ></i>
  1062. </div>
  1063. </div>
  1064. </template>
  1065. <el-form
  1066. :model="TWareHouseFees"
  1067. ref="feeListRules"
  1068. :rules="feeListRules"
  1069. label-width="78px"
  1070. >
  1071. <el-row>
  1072. <el-col :span="6">
  1073. <el-form-item label="结算单位" prop="fToCorpid">
  1074. <el-select
  1075. v-model="TWareHouseFees.fToCorpid"
  1076. placeholder="请选择结算单位"
  1077. :disabled="doNot"
  1078. filterable
  1079. remote
  1080. clearable
  1081. style="width: 100%"
  1082. size="small"
  1083. @keyup.enter.native="handleQuery"
  1084. :remote-method="corpsRemoteMethod"
  1085. >
  1086. <el-option
  1087. v-for="(dict, index) in fMblnoOptions"
  1088. :key="index.fId"
  1089. :label="dict.fName"
  1090. :value="dict.fId"
  1091. ></el-option>
  1092. </el-select>
  1093. </el-form-item>
  1094. </el-col>
  1095. <el-col :span="6">
  1096. <el-form-item label="接单日期" prop="acceptDateList">
  1097. <el-date-picker
  1098. v-model="TWareHouseFees.acceptDateList"
  1099. size="small"
  1100. unlink-panels
  1101. style="width: 100%"
  1102. value-format="yyyy-MM-dd"
  1103. :default-time="['00:00:00', '23:59:59']"
  1104. type="daterange"
  1105. range-separator="-"
  1106. start-placeholder="开始日期"
  1107. end-placeholder="结束日期"
  1108. ></el-date-picker>
  1109. </el-form-item>
  1110. </el-col>
  1111. <el-col :span="6">
  1112. <el-form-item label="提单号" prop="fMblno">
  1113. <el-input
  1114. clearable
  1115. v-model="TWareHouseFees.fMblno"
  1116. placeholder="请输入提单号"
  1117. style="width: 100%"
  1118. size="small"
  1119. />
  1120. </el-form-item>
  1121. </el-col>
  1122. <el-col :span="6">
  1123. <el-form-item label="应收应付" prop="fDc">
  1124. <el-select
  1125. v-model="TWareHouseFees.fDc"
  1126. size="small"
  1127. style="width: 100%"
  1128. >
  1129. <el-option label="应收" value="D" />
  1130. <el-option label="应付" value="C" />
  1131. </el-select>
  1132. </el-form-item>
  1133. </el-col>
  1134. <el-col :span="6">
  1135. <el-form-item label="是否对账" prop="fReconciliation">
  1136. <el-select
  1137. v-model="TWareHouseFees.fReconciliation"
  1138. size="small"
  1139. style="width: 100%"
  1140. >
  1141. <el-option label="是" value="1" />
  1142. <el-option label="否" value="0" />
  1143. </el-select>
  1144. </el-form-item>
  1145. </el-col>
  1146. <el-col :span="6">
  1147. <el-form-item label="费用名称" prop="fFeeid">
  1148. <template>
  1149. <el-select
  1150. v-model="TWareHouseFees.fFeeid"
  1151. filterable
  1152. :disabled="browseStatus"
  1153. remote
  1154. size="small"
  1155. style="width: 100%"
  1156. :remote-method="fWRemoteMethod"
  1157. placeholder="费用名称"
  1158. multiple
  1159. >
  1160. <el-option
  1161. v-for="item in fWbuOptions"
  1162. :key="item.fId"
  1163. :label="item.fName"
  1164. :value="item.fId"
  1165. >
  1166. </el-option>
  1167. </el-select>
  1168. </template>
  1169. </el-form-item>
  1170. </el-col>
  1171. <el-col :span="6">
  1172. <el-form-item
  1173. label="仓储业务"
  1174. prop="fFeeid"
  1175. v-if="typevalue == 1 || typevalue == 3"
  1176. >
  1177. <el-select
  1178. v-model="TWareHouseFees.fBilltype"
  1179. size="small"
  1180. style="width: 100%"
  1181. @change="changefBilltype"
  1182. placeholder="请选择仓储业务"
  1183. >
  1184. <el-option label="入库" value="SJRK"></el-option>
  1185. <el-option label="出库" value="SJCK"></el-option>
  1186. <el-option label="货权转移" value="HQZY"></el-option>
  1187. </el-select>
  1188. </el-form-item>
  1189. </el-col>
  1190. <el-col :span="6">
  1191. <el-form-item label="作业类型" prop="fBusinessType">
  1192. <el-select
  1193. v-model="TWareHouseFees.fBusinessType"
  1194. filterable
  1195. :disabled="browseStatus"
  1196. remote
  1197. size="small"
  1198. style="width: 100%"
  1199. placeholder="作业类型"
  1200. multiple
  1201. >
  1202. <el-option
  1203. v-for="(dict, index) in businessTypeOption"
  1204. :key="index.dictValue"
  1205. :label="dict.dictLabel"
  1206. :value="dict.dictValue"
  1207. >
  1208. </el-option>
  1209. </el-select>
  1210. </el-form-item>
  1211. </el-col>
  1212. </el-row>
  1213. <el-row>
  1214. <el-col :span="8">
  1215. <el-form-item
  1216. label="审核日期"
  1217. v-if="typevalue == 1 || typevalue == 3"
  1218. >
  1219. <el-date-picker
  1220. style="width: 100%"
  1221. size="small"
  1222. v-model="TWareHouseFees.timeExamine"
  1223. type="daterange"
  1224. start-placeholder="开始日期"
  1225. end-placeholder="结束日期"
  1226. value-format="yyyy-MM-dd"
  1227. :default-time="['00:00:00', '23:59:59']"
  1228. unlink-panels
  1229. >
  1230. </el-date-picker>
  1231. </el-form-item>
  1232. </el-col>
  1233. <el-col :span="8">
  1234. <el-form-item
  1235. label="对账日期"
  1236. label-width="85px"
  1237. prop="timeReconci"
  1238. v-if="TWareHouseFees.fReconciliation == '1'"
  1239. >
  1240. <el-date-picker
  1241. v-model="TWareHouseFees.timeReconci"
  1242. size="small"
  1243. style="width: 240px"
  1244. value-format="yyyy-MM-dd"
  1245. type="daterange"
  1246. start-placeholder="开始日期"
  1247. end-placeholder="结束日期"
  1248. :default-time="['00:00:00', '23:59:59']"
  1249. ></el-date-picker>
  1250. </el-form-item>
  1251. </el-col>
  1252. <el-col :span="8"> </el-col>
  1253. </el-row>
  1254. <div style="margin-right: 20px; float: right">
  1255. <el-button type="cyan" size="mini" @click="searchFee(typevalue)"
  1256. >搜索</el-button
  1257. >
  1258. <el-button type="info" size="mini" @click="resetQuery_s"
  1259. >重置</el-button
  1260. >
  1261. <el-button
  1262. icon="el-icon-setting"
  1263. size="mini"
  1264. circle
  1265. @click="showSetting3 = !showSetting3"
  1266. v-if="typevalue != 2"
  1267. ></el-button>
  1268. <el-button
  1269. icon="el-icon-setting"
  1270. size="mini"
  1271. circle
  1272. @click="showSetting5 = !showSetting5"
  1273. v-if="typevalue == 2"
  1274. ></el-button>
  1275. </div>
  1276. <el-dialog
  1277. title="自定义列显示"
  1278. :visible.sync="showSetting3"
  1279. width="700px"
  1280. v-dialogDrag
  1281. append-to-body
  1282. >
  1283. <template slot="title">
  1284. <div class="avue-crud__dialog__header">
  1285. <span class="el-dialog__title">
  1286. <span
  1287. style="
  1288. display: inline-block;
  1289. width: 3px;
  1290. height: 20px;
  1291. margin-right: 5px;
  1292. float: left;
  1293. margin-top: 2px;
  1294. "
  1295. ></span>
  1296. </span>
  1297. </div>
  1298. </template>
  1299. <div>配置排序列数据(拖动调整顺序)</div>
  1300. <div style="margin-left: 17px">
  1301. <el-checkbox
  1302. v-model="allCheck3"
  1303. label="全选"
  1304. @change="allChecked3"
  1305. ></el-checkbox>
  1306. </div>
  1307. <div style="padding: 4px; display: flex; justify-content: center">
  1308. <draggable
  1309. v-model="setRowList3"
  1310. group="site"
  1311. animation="300"
  1312. @start="onStart"
  1313. @end="onEnd"
  1314. handle=".indraggable"
  1315. >
  1316. <transition-group>
  1317. <div
  1318. v-for="item in setRowList3"
  1319. :key="item.surface"
  1320. class="listStyle"
  1321. >
  1322. <div style="width: 500px" class="indraggable">
  1323. <div
  1324. class="progress"
  1325. :style="{ width: item.width + 'px' }"
  1326. >
  1327. <el-checkbox
  1328. :label="item.name"
  1329. v-model="item.checked"
  1330. :true-label="0"
  1331. :false-label="1"
  1332. >{{ item.name }}
  1333. </el-checkbox>
  1334. </div>
  1335. </div>
  1336. <el-input-number
  1337. v-model.number="item.width"
  1338. controls-position="right"
  1339. :min="1"
  1340. :max="500"
  1341. size="mini"
  1342. ></el-input-number>
  1343. </div>
  1344. </transition-group>
  1345. </draggable>
  1346. </div>
  1347. <span slot="footer" class="dialog-footer">
  1348. <el-button @click="showSetting3 = false">取 消</el-button>
  1349. <el-button @click="delRow3" type="danger">重 置</el-button>
  1350. <el-button type="primary" @click="save3()">确 定</el-button>
  1351. </span>
  1352. </el-dialog>
  1353. <el-table
  1354. v-loading="loading"
  1355. :data="feeList"
  1356. ref="feeList"
  1357. show-summary
  1358. :summary-method="getSum"
  1359. @selection-change="handleSelectionChange_s"
  1360. v-if="typevalue != 2"
  1361. >
  1362. <el-table-column type="selection" width="55" align="center" />
  1363. <!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
  1364. <el-table-column label="行号" align="center" type="index" />
  1365. <el-table-column
  1366. v-for="(item, index) in getRowList3"
  1367. :key="index"
  1368. :label="item.name"
  1369. :width="item.width"
  1370. :prop="item.label"
  1371. align="center"
  1372. :fixed="item.fixed"
  1373. :show-overflow-tooltip="true"
  1374. sortable
  1375. >
  1376. <template slot-scope="scope">
  1377. <span v-if="item.label == 'fName'">{{ scope.row.fName }}</span>
  1378. <span v-if="item.label == 'fFeesName'">{{
  1379. scope.row.fFeesName
  1380. }}</span>
  1381. <span v-if="item.label == 'fMblno'">{{
  1382. scope.row.fMblno
  1383. }}</span>
  1384. <span v-if="item.label == 'fProductName'">{{
  1385. scope.row.fProductName
  1386. }}</span>
  1387. <span v-if="item.label == 'fBsdate'">{{
  1388. scope.row.fBsdate
  1389. ? scope.row.fBsdate.slice(0, 10)
  1390. : scope.row.fReviewDate
  1391. }}</span>
  1392. <span v-if="item.label == 'fBilltype'">
  1393. <template>
  1394. <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>
  1395. <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>
  1396. <span v-else-if="scope.row.fBilltype == 'CKDB'">调拨</span>
  1397. <span v-else-if="scope.row.fBilltype == 'HQZY'"
  1398. >货权转移</span
  1399. >
  1400. <span v-else-if="scope.row.fBilltype == 'JSCCF'"
  1401. >仓储费</span
  1402. >
  1403. <span v-else-if="scope.row.fBilltype == '1000'"
  1404. >计划下达</span
  1405. >
  1406. <span v-else-if="scope.row.fBilltype == '1010'"
  1407. >业务调度</span
  1408. >
  1409. <span v-else-if="scope.row.fBilltype == '1020'"
  1410. >车队派车</span
  1411. >
  1412. <span v-else-if="scope.row.fBilltype == '1030'"
  1413. >司机接单</span
  1414. >
  1415. <span v-else-if="scope.row.fBilltype == '1080'"
  1416. >司机出车</span
  1417. >
  1418. <span v-else-if="scope.row.fBilltype == '1040'"
  1419. >司机提箱</span
  1420. >
  1421. <span v-else-if="scope.row.fBilltype == '1050'"
  1422. >司机装卸柜</span
  1423. >
  1424. <span v-else-if="scope.row.fBilltype == '1060'"
  1425. >司机还卸柜</span
  1426. >
  1427. <span v-else-if="scope.row.fBilltype == '1070'"
  1428. >司机回单</span
  1429. >
  1430. <span v-else-if="scope.row.fBilltype == '1090'"
  1431. >费用补充</span
  1432. >
  1433. <span v-else-if="scope.row.fBilltype == 'KHDD'"
  1434. >凯和订单</span
  1435. >
  1436. </template>
  1437. </span>
  1438. <span v-if="item.label == 'fBusinessType'">{{
  1439. scope.row.fBusinessType
  1440. }}</span>
  1441. <span v-if="item.label == 'fReviewDate'">{{
  1442. scope.row.fReviewDate
  1443. }}</span>
  1444. <span v-if="item.label == 'fAmtdr'">{{
  1445. scope.row.fAmtdr
  1446. }}</span>
  1447. <el-input
  1448. v-model="scope.row.fAmt"
  1449. v-if="item.label == 'fAmt'"
  1450. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1451. @change="imgChangeI(scope.row)"
  1452. />
  1453. <span v-if="item.label == 'fFeeName'">{{
  1454. scope.row.fFeeName
  1455. }}</span>
  1456. <el-input
  1457. v-model="scope.row.fRemarks"
  1458. v-if="item.label == 'fRemarks'"
  1459. />
  1460. </template>
  1461. </el-table-column>
  1462. <!-- <el-table-column-->
  1463. <!-- label="货权方"-->
  1464. <!-- align="center"-->
  1465. <!-- prop="fName"-->
  1466. <!-- width="200px"-->
  1467. <!-- />-->
  1468. <!-- <el-table-column-->
  1469. <!-- label="结算单位"-->
  1470. <!-- align="center"-->
  1471. <!-- prop="fFeesName"-->
  1472. <!-- width="200px"-->
  1473. <!-- />-->
  1474. <!-- &lt;!&ndash; <el-table-column label="账单日期" align="center" prop="fAccbilldate"/> &ndash;&gt;-->
  1475. <!-- <el-table-column label="提单号" align="center" prop="fMblno" />-->
  1476. <!-- <el-table-column v-if="typevalue == 1 || typevalue == 2" label="品名" align="center" prop="fProductName" />-->
  1477. <!-- <el-table-column v-if="typevalue == 1 || typevalue == 2" label="业务日期" align="center">-->
  1478. <!-- <template slot-scope="scope" v-if="scope.row.fBsdate">-->
  1479. <!-- <span>{{ scope.row.fBsdate.slice(0, 10) }}</span>-->
  1480. <!-- </template>-->
  1481. <!-- </el-table-column>-->
  1482. <!-- <el-table-column v-if="typevalue == 1 || typevalue == 2" label="业务类型" align="center" prop="fBilltype">-->
  1483. <!-- <template slot-scope="scope">-->
  1484. <!-- <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>-->
  1485. <!-- <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>-->
  1486. <!-- <span v-else-if="scope.row.fBilltype == 'CKDB'">调拨</span>-->
  1487. <!-- <span v-else-if="scope.row.fBilltype == 'HQZY'">货权转移</span>-->
  1488. <!-- <span v-else-if="scope.row.fBilltype == 'JSCCF'">仓储费</span>-->
  1489. <!-- <span v-else-if="scope.row.fBilltype == '1000'">计划下达</span>-->
  1490. <!-- <span v-else-if="scope.row.fBilltype == '1010'">业务调度</span>-->
  1491. <!-- <span v-else-if="scope.row.fBilltype == '1020'">车队派车</span>-->
  1492. <!-- <span v-else-if="scope.row.fBilltype == '1030'">司机接单</span>-->
  1493. <!-- <span v-else-if="scope.row.fBilltype == '1080'">司机出车</span>-->
  1494. <!-- <span v-else-if="scope.row.fBilltype == '1040'">司机提箱</span>-->
  1495. <!-- <span v-else-if="scope.row.fBilltype == '1050'"-->
  1496. <!-- >司机装卸柜</span-->
  1497. <!-- >-->
  1498. <!-- <span v-else-if="scope.row.fBilltype == '1060'"-->
  1499. <!-- >司机还卸柜</span-->
  1500. <!-- >-->
  1501. <!-- <span v-else-if="scope.row.fBilltype == '1070'">司机回单</span>-->
  1502. <!-- <span v-else-if="scope.row.fBilltype == '1090'">费用补充</span>-->
  1503. <!-- </template>-->
  1504. <!-- </el-table-column>-->
  1505. <!-- <el-table-column-->
  1506. <!-- label="作业类型"-->
  1507. <!-- align="center"-->
  1508. <!-- prop="fBusinessType"-->
  1509. <!-- />-->
  1510. <!-- &lt;!&ndash; <el-table-column label="单据类型" align="center" prop="fBilltype" />&ndash;&gt;-->
  1511. <!-- <el-table-column-->
  1512. <!-- label="审核日期"-->
  1513. <!-- align="center"-->
  1514. <!-- prop="fReviewDate"-->
  1515. <!-- />-->
  1516. <!-- <el-table-column label="金额" align="center" prop="fAmtdr" />-->
  1517. <!-- <el-table-column-->
  1518. <!-- label="本次金额"-->
  1519. <!-- align="center"-->
  1520. <!-- prop="fAmt"-->
  1521. <!-- width="100"-->
  1522. <!-- >-->
  1523. <!-- <template slot-scope="scope">-->
  1524. <!-- <el-input-->
  1525. <!-- v-model="scope.row.fAmt"-->
  1526. <!-- placeholder="请输入本次金额"-->
  1527. <!-- clearable-->
  1528. <!-- size="small"-->
  1529. <!-- oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'-->
  1530. <!-- @change="imgChangeI(scope.row)"-->
  1531. <!-- />-->
  1532. <!-- </template>-->
  1533. <!-- </el-table-column>-->
  1534. <!-- <el-table-column label="费用名称" align="center" prop="fFeeName" />-->
  1535. <!-- <el-table-column label="备注" align="center" prop="fRemarks">-->
  1536. <!-- <template slot-scope="scope">-->
  1537. <!-- <el-input-->
  1538. <!-- v-model="scope.row.fRemarks"-->
  1539. <!-- placeholder="请输入备注"-->
  1540. <!-- clearable-->
  1541. <!-- size="small"-->
  1542. <!-- width="100"-->
  1543. <!-- />-->
  1544. <!-- </template>-->
  1545. <!-- </el-table-column>-->
  1546. </el-table>
  1547. <el-dialog
  1548. title="自定义列显示"
  1549. :visible.sync="showSetting5"
  1550. width="700px"
  1551. v-dialogDrag
  1552. append-to-body
  1553. >
  1554. <template slot="title">
  1555. <div class="avue-crud__dialog__header">
  1556. <span class="el-dialog__title">
  1557. <span
  1558. style="
  1559. display: inline-block;
  1560. width: 3px;
  1561. height: 20px;
  1562. margin-right: 5px;
  1563. float: left;
  1564. margin-top: 2px;
  1565. "
  1566. ></span>
  1567. </span>
  1568. </div>
  1569. </template>
  1570. <div>配置排序列数据(拖动调整顺序)</div>
  1571. <div style="margin-left: 17px">
  1572. <el-checkbox
  1573. v-model="allCheck5"
  1574. label="全选"
  1575. @change="allChecked5"
  1576. ></el-checkbox>
  1577. </div>
  1578. <div style="padding: 4px; display: flex; justify-content: center">
  1579. <draggable
  1580. v-model="setRowList5"
  1581. group="site"
  1582. animation="300"
  1583. @start="onStart"
  1584. @end="onEnd"
  1585. handle=".indraggable"
  1586. >
  1587. <transition-group>
  1588. <div
  1589. v-for="item in setRowList5"
  1590. :key="item.surface"
  1591. class="listStyle"
  1592. >
  1593. <div style="width: 500px" class="indraggable">
  1594. <div
  1595. class="progress"
  1596. :style="{ width: item.width + 'px' }"
  1597. >
  1598. <el-checkbox
  1599. :label="item.name"
  1600. v-model="item.checked"
  1601. :true-label="0"
  1602. :false-label="1"
  1603. >{{ item.name }}
  1604. </el-checkbox>
  1605. </div>
  1606. </div>
  1607. <el-input-number
  1608. v-model.number="item.width"
  1609. controls-position="right"
  1610. :min="1"
  1611. :max="500"
  1612. size="mini"
  1613. ></el-input-number>
  1614. </div>
  1615. </transition-group>
  1616. </draggable>
  1617. </div>
  1618. <span slot="footer" class="dialog-footer">
  1619. <el-button @click="showSetting5 = false">取 消</el-button>
  1620. <el-button @click="delRow5" type="danger">重 置</el-button>
  1621. <el-button type="primary" @click="save5()">确 定</el-button>
  1622. </span>
  1623. </el-dialog>
  1624. <el-table
  1625. v-loading="loading"
  1626. :data="feeList"
  1627. ref="feeList"
  1628. show-summary
  1629. :summary-method="getSum"
  1630. @selection-change="handleSelectionChange_s"
  1631. v-if="typevalue == 2"
  1632. >
  1633. <el-table-column type="selection" width="55" align="center" />
  1634. <!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
  1635. <el-table-column label="行号" align="center" type="index" />
  1636. <el-table-column
  1637. v-for="(item, index) in getRowList5"
  1638. :key="index"
  1639. :label="item.name"
  1640. :width="item.width"
  1641. :prop="item.label"
  1642. align="center"
  1643. :fixed="item.fixed"
  1644. :show-overflow-tooltip="true"
  1645. sortable
  1646. >
  1647. <template slot-scope="scope">
  1648. <span v-if="item.label == 'fAmt'">
  1649. <el-input
  1650. v-model="scope.row.fAmt"
  1651. v-input-limit="2"
  1652. @change="changeAmt(scope.row.fAmt, scope.$index)"
  1653. />
  1654. </span>
  1655. <span v-else>{{ scope.row[item.label] }}</span>
  1656. </template>
  1657. </el-table-column>
  1658. </el-table>
  1659. </el-form>
  1660. <div slot="footer" class="dialog-footer">
  1661. <el-button type="primary" @click="confirmImport" v-if="typevalue != 2"
  1662. >确 定</el-button
  1663. >
  1664. <el-button
  1665. type="primary"
  1666. @click="confirmImport2"
  1667. v-if="typevalue == 2"
  1668. >确 定</el-button
  1669. >
  1670. <el-button @click="signOut">取 消</el-button>
  1671. </div>
  1672. </el-dialog>
  1673. </div>
  1674. </div>
  1675. </template>
  1676. <script>
  1677. import {
  1678. RevocationApproval,
  1679. backFee,
  1680. detailFee,
  1681. Cfee,
  1682. listFee,
  1683. getFee,
  1684. delFee,
  1685. addFee,
  1686. updateFee,
  1687. exportFee,
  1688. importFee,
  1689. importFleet,
  1690. addFleet,
  1691. listFleet,
  1692. getFleet,
  1693. delFleet,
  1694. detailFleet,
  1695. confirmFleet,
  1696. listCorps,
  1697. exporItems,
  1698. contrastExport,
  1699. exportWarehousebillsitems
  1700. } from "@/api/finance/contrast";
  1701. // import { listCorps } from "@/api/basicdata/corps";
  1702. import { listFees } from "@/api/basicdata/fees";
  1703. import AddOrUpdate from "@/views/viewApproval";
  1704. import { queryUserVal } from "@/api/warehouseBusiness/agreement";
  1705. import moment from "moment";
  1706. import print from "print-js";
  1707. import ApprovalComments from "@/views/startApproval";
  1708. import Global from "@/layout/components/global";
  1709. import Cookies from "js-cookie";
  1710. import { addSet, select, resetModule } from "@/api/system/set";
  1711. import draggable from "vuedraggable";
  1712. import Vue from "vue";
  1713. import { MessageBox } from "element-ui";
  1714. Vue.directive("dialogDrag", {
  1715. bind(el, binding, vnode, oldVnode) {
  1716. const dialogHeaderEl = el.querySelector(".el-dialog__header");
  1717. const dragDom = el.querySelector(".el-dialog");
  1718. const enlarge = el.querySelector(".enlarge");
  1719. dialogHeaderEl.style.cursor = "move";
  1720. // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
  1721. const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null);
  1722. if (enlarge) {
  1723. enlarge.onclick = (e) => {
  1724. dragDom.style.top = "0px";
  1725. dragDom.style.left = "0px";
  1726. };
  1727. }
  1728. dialogHeaderEl.onmousedown = (e) => {
  1729. // 鼠标按下,计算当前元素距离可视区的距离
  1730. const disX = e.clientX - dialogHeaderEl.offsetLeft;
  1731. const disY = e.clientY - dialogHeaderEl.offsetTop;
  1732. // 获取到的值带px 正则匹配替换
  1733. let styL, styT;
  1734. // 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px
  1735. if (sty.left.includes("%")) {
  1736. styL =
  1737. +document.body.clientWidth * (+sty.left.replace(/\%/g, "") / 100);
  1738. styT =
  1739. +document.body.clientHeight * (+sty.top.replace(/\%/g, "") / 100);
  1740. } else {
  1741. styL = +sty.left.replace(/\px/g, "");
  1742. styT = +sty.top.replace(/\px/g, "");
  1743. }
  1744. document.onmousemove = function (e) {
  1745. // 通过事件委托,计算移动的距离
  1746. const l = e.clientX - disX;
  1747. const t = e.clientY - disY;
  1748. // 移动当前元素
  1749. if (t + styT >= 0) {
  1750. dragDom.style.top = `${t + styT}px`;
  1751. }
  1752. dragDom.style.left = `${l + styL}px`;
  1753. // 将此时的位置传出去
  1754. // binding.value({x:e.pageX,y:e.pageY})
  1755. };
  1756. document.onmouseup = function (e) {
  1757. document.onmousemove = null;
  1758. document.onmouseup = null;
  1759. };
  1760. };
  1761. },
  1762. });
  1763. export default {
  1764. name: "Fee",
  1765. data() {
  1766. return {
  1767. login: Cookies.get("sysType"),
  1768. show: false,
  1769. mainTable: false,
  1770. //全屏放大
  1771. dialogFull: false,
  1772. drag: false,
  1773. typeoptions: [
  1774. {
  1775. value: "1",
  1776. label: "仓储",
  1777. },
  1778. {
  1779. value: "2",
  1780. label: "车队",
  1781. },
  1782. {
  1783. value: "3",
  1784. label: "船务",
  1785. },
  1786. ],
  1787. typevalue: "",
  1788. tableDate: [
  1789. {
  1790. surface: "1",
  1791. label: "fBillno",
  1792. name: "系统编号",
  1793. checked: 0,
  1794. width: 100,
  1795. },
  1796. {
  1797. surface: "2",
  1798. label: "fCtrlcorpid",
  1799. name: "货权方",
  1800. checked: 0,
  1801. width: 100,
  1802. },
  1803. {
  1804. surface: "3",
  1805. label: "fCorpidName",
  1806. name: "结算单位",
  1807. checked: 0,
  1808. width: 100,
  1809. },
  1810. {
  1811. surface: "4",
  1812. label: "fAccbilldate",
  1813. name: "对账日期",
  1814. checked: 0,
  1815. width: 100,
  1816. },
  1817. {
  1818. surface: "5",
  1819. label: "tMblno",
  1820. name: "提单号",
  1821. checked: 0,
  1822. width: 100,
  1823. },
  1824. {
  1825. surface: "6",
  1826. label: "fAmtdr",
  1827. name: "金额",
  1828. checked: 0,
  1829. width: 100,
  1830. },
  1831. {
  1832. surface: "7",
  1833. label: "fAmtcr",
  1834. name: "对账金额",
  1835. checked: 0,
  1836. width: 100,
  1837. },
  1838. {
  1839. surface: "8",
  1840. label: "fRemarks",
  1841. name: "备注",
  1842. checked: 0,
  1843. width: 100,
  1844. },
  1845. {
  1846. surface: "9",
  1847. label: "fBillstatus",
  1848. name: "状态",
  1849. checked: 0,
  1850. width: 100,
  1851. },
  1852. ],
  1853. tableDate2: [
  1854. {
  1855. surface: "1",
  1856. label: "fMblno",
  1857. name: "提单号",
  1858. checked: 0,
  1859. width: 100,
  1860. },
  1861. {
  1862. surface: "2",
  1863. label: "fBsdate",
  1864. name: "业务日期",
  1865. checked: 0,
  1866. width: 100,
  1867. },
  1868. {
  1869. surface: "3",
  1870. label: "fFeeName",
  1871. name: "费用名称",
  1872. checked: 0,
  1873. width: 100,
  1874. },
  1875. {
  1876. surface: "4",
  1877. label: "fSrcdcName",
  1878. name: "收/付",
  1879. checked: 0,
  1880. width: 100,
  1881. },
  1882. {
  1883. surface: "5",
  1884. label: "fAmtdr",
  1885. name: "金额",
  1886. checked: 0,
  1887. width: 100,
  1888. },
  1889. {
  1890. surface: "6",
  1891. label: "fFeeunitid",
  1892. name: "计价单位",
  1893. checked: 0,
  1894. width: 100,
  1895. },
  1896. {
  1897. surface: "7",
  1898. label: "fQty",
  1899. name: "数量",
  1900. checked: 0,
  1901. width: 100,
  1902. },
  1903. {
  1904. surface: "8",
  1905. label: "fUnitprice",
  1906. name: "单价",
  1907. checked: 0,
  1908. width: 100,
  1909. },
  1910. {
  1911. surface: "9",
  1912. label: "fAmt",
  1913. name: "本次金额",
  1914. checked: 0,
  1915. width: 100,
  1916. },
  1917. {
  1918. surface: "10",
  1919. label: "fBusinessType",
  1920. name: "作业类型",
  1921. checked: 0,
  1922. width: 100,
  1923. },
  1924. {
  1925. surface: "11",
  1926. label: "fBilltype",
  1927. name: "业务类型",
  1928. checked: 0,
  1929. width: 100,
  1930. },
  1931. {
  1932. surface: "12",
  1933. label: "srcBillNo",
  1934. name: "来源编号",
  1935. checked: 0,
  1936. width: 100,
  1937. },
  1938. {
  1939. surface: "13",
  1940. label: "fProductName",
  1941. name: "货物品名",
  1942. checked: 0,
  1943. width: 100,
  1944. },
  1945. {
  1946. surface: "14",
  1947. label: "fMarks",
  1948. name: "品牌",
  1949. checked: 0,
  1950. width: 100,
  1951. },
  1952. {
  1953. surface: "15",
  1954. label: "fChargedate",
  1955. name: "计费起始日期",
  1956. checked: 0,
  1957. width: 100,
  1958. },
  1959. {
  1960. surface: "16",
  1961. label: "fBillingDeadline",
  1962. name: "计费截止日期",
  1963. checked: 0,
  1964. width: 100,
  1965. },
  1966. {
  1967. surface: "17",
  1968. label: "fBillingDays",
  1969. name: "计费天数",
  1970. checked: 0,
  1971. width: 100,
  1972. },
  1973. {
  1974. surface: "18",
  1975. label: "fInventoryDays",
  1976. name: "库存天数",
  1977. checked: 0,
  1978. width: 100,
  1979. },
  1980. {
  1981. surface: "19",
  1982. label: "fRemarks",
  1983. name: "备注",
  1984. checked: 0,
  1985. width: 100,
  1986. },
  1987. {
  1988. surface: "20",
  1989. label: "carLoadDate",
  1990. name: "提箱日期",
  1991. checked: 0,
  1992. width: 100,
  1993. },
  1994. ],
  1995. tableDate3: [
  1996. {
  1997. surface: "1",
  1998. label: "fName",
  1999. name: "货权方",
  2000. checked: 0,
  2001. width: 100,
  2002. },
  2003. {
  2004. surface: "2",
  2005. label: "fFeesName",
  2006. name: "结算单位",
  2007. checked: 0,
  2008. width: 100,
  2009. },
  2010. {
  2011. surface: "3",
  2012. label: "fMblno",
  2013. name: "提单号",
  2014. checked: 0,
  2015. width: 100,
  2016. },
  2017. {
  2018. surface: "4",
  2019. label: "fProductName",
  2020. name: "品名",
  2021. checked: 0,
  2022. width: 100,
  2023. },
  2024. {
  2025. surface: "5",
  2026. label: "fBsdate",
  2027. name: "业务日期",
  2028. checked: 0,
  2029. width: 100,
  2030. },
  2031. {
  2032. surface: "6",
  2033. label: "fBilltype",
  2034. name: "业务类型",
  2035. checked: 0,
  2036. width: 100,
  2037. },
  2038. {
  2039. surface: "7",
  2040. label: "fBusinessType",
  2041. name: "作业类型",
  2042. checked: 0,
  2043. width: 100,
  2044. },
  2045. {
  2046. surface: "8",
  2047. label: "fReviewDate",
  2048. name: "审核日期",
  2049. checked: 0,
  2050. width: 100,
  2051. },
  2052. {
  2053. surface: "9",
  2054. label: "fAmtdr",
  2055. name: "金额",
  2056. checked: 0,
  2057. width: 100,
  2058. },
  2059. {
  2060. surface: "10",
  2061. label: "fAmt",
  2062. name: "本次金额",
  2063. checked: 0,
  2064. width: 100,
  2065. },
  2066. {
  2067. surface: "11",
  2068. label: "fFeeName",
  2069. name: "费用名称",
  2070. checked: 0,
  2071. width: 100,
  2072. },
  2073. {
  2074. surface: "12",
  2075. label: "fRemarks",
  2076. name: "备注",
  2077. checked: 0,
  2078. width: 100,
  2079. },
  2080. ],
  2081. tableDate4: [
  2082. {
  2083. surface: "1",
  2084. label: "fFeesName",
  2085. name: "客户名称",
  2086. checked: 0,
  2087. width: 100,
  2088. },
  2089. {
  2090. surface: "2",
  2091. label: "fMblno",
  2092. name: "提单号",
  2093. checked: 0,
  2094. width: 100,
  2095. },
  2096. {
  2097. surface: "3",
  2098. label: "orderNo",
  2099. name: "运单号",
  2100. checked: 0,
  2101. width: 100,
  2102. },
  2103. {
  2104. surface: "4",
  2105. label: "carregNo",
  2106. name: "车牌号",
  2107. checked: 0,
  2108. width: 100,
  2109. },
  2110. {
  2111. surface: "5",
  2112. label: "billType",
  2113. name: "业务类型",
  2114. checked: 0,
  2115. width: 100,
  2116. },
  2117. {
  2118. surface: "6",
  2119. label: "acceptDate",
  2120. name: "接单日期",
  2121. checked: 0,
  2122. width: 100,
  2123. },
  2124. {
  2125. surface: "7",
  2126. label: "loadAddr",
  2127. name: "提箱地点",
  2128. checked: 0,
  2129. width: 100,
  2130. },
  2131. {
  2132. surface: "8",
  2133. label: "mdLoadAddr",
  2134. name: "卸货地点",
  2135. checked: 0,
  2136. width: 100,
  2137. },
  2138. {
  2139. surface: "9",
  2140. label: "fQty",
  2141. name: "箱量",
  2142. checked: 0,
  2143. width: 100,
  2144. },
  2145. {
  2146. surface: "10",
  2147. label: "cntrId",
  2148. name: "箱型",
  2149. checked: 0,
  2150. width: 100,
  2151. },
  2152. {
  2153. surface: "11",
  2154. label: "driverName",
  2155. name: "司机",
  2156. checked: 0,
  2157. width: 100,
  2158. },
  2159. {
  2160. surface: "12",
  2161. label: "fFeeName",
  2162. name: "费用名称",
  2163. checked: 0,
  2164. width: 100,
  2165. },
  2166. {
  2167. surface: "13",
  2168. label: "fAmtdr",
  2169. name: "费用金额",
  2170. checked: 0,
  2171. width: 100,
  2172. },
  2173. {
  2174. surface: "14",
  2175. label: "fAmt",
  2176. name: "本次金额",
  2177. checked: 0,
  2178. width: 100,
  2179. },
  2180. ],
  2181. tableDate5: [
  2182. {
  2183. surface: "1",
  2184. label: "fFeesName",
  2185. name: "客户名称",
  2186. checked: 0,
  2187. width: 100,
  2188. },
  2189. {
  2190. surface: "2",
  2191. label: "fMblno",
  2192. name: "提单号",
  2193. checked: 0,
  2194. width: 100,
  2195. },
  2196. {
  2197. surface: "3",
  2198. label: "orderNo",
  2199. name: "运单号",
  2200. checked: 0,
  2201. width: 100,
  2202. },
  2203. {
  2204. surface: "4",
  2205. label: "carregNo",
  2206. name: "车牌号",
  2207. checked: 0,
  2208. width: 100,
  2209. },
  2210. {
  2211. surface: "5",
  2212. label: "billType",
  2213. name: "业务类型",
  2214. checked: 0,
  2215. width: 100,
  2216. },
  2217. {
  2218. surface: "6",
  2219. label: "acceptDate",
  2220. name: "接单日期",
  2221. checked: 0,
  2222. width: 100,
  2223. },
  2224. {
  2225. surface: "7",
  2226. label: "loadAddr",
  2227. name: "提箱地点",
  2228. checked: 0,
  2229. width: 100,
  2230. },
  2231. {
  2232. surface: "8",
  2233. label: "mdLoadAddr",
  2234. name: "卸货地点",
  2235. checked: 0,
  2236. width: 100,
  2237. },
  2238. {
  2239. surface: "9",
  2240. label: "fQty",
  2241. name: "箱量",
  2242. checked: 0,
  2243. width: 100,
  2244. },
  2245. {
  2246. surface: "10",
  2247. label: "cntrId",
  2248. name: "箱型",
  2249. checked: 0,
  2250. width: 100,
  2251. },
  2252. {
  2253. surface: "11",
  2254. label: "driverName",
  2255. name: "司机",
  2256. checked: 0,
  2257. width: 100,
  2258. },
  2259. {
  2260. surface: "12",
  2261. label: "fFeeName",
  2262. name: "费用名称",
  2263. checked: 0,
  2264. width: 100,
  2265. },
  2266. {
  2267. surface: "13",
  2268. label: "fAmount",
  2269. name: "费用金额",
  2270. checked: 0,
  2271. width: 100,
  2272. },
  2273. {
  2274. surface: "14",
  2275. label: "fAmt",
  2276. name: "本次金额",
  2277. checked: 0,
  2278. width: 100,
  2279. },
  2280. ],
  2281. tableDate6: [
  2282. {
  2283. surface: "1",
  2284. label: "fBillno",
  2285. name: "系统编号",
  2286. checked: 0,
  2287. width: 100,
  2288. },
  2289. {
  2290. surface: "2",
  2291. label: "fCorpidName",
  2292. name: "对账单位",
  2293. checked: 0,
  2294. width: 100,
  2295. },
  2296. {
  2297. surface: "3",
  2298. label: "amt",
  2299. name: "金额",
  2300. checked: 0,
  2301. width: 100,
  2302. },
  2303. {
  2304. surface: "4",
  2305. label: "createBy",
  2306. name: "制单人",
  2307. checked: 0,
  2308. width: 100,
  2309. },
  2310. {
  2311. surface: "5",
  2312. label: "fAccbilldate",
  2313. name: "对账日期",
  2314. checked: 0,
  2315. width: 100,
  2316. },
  2317. {
  2318. surface: "6",
  2319. label: "createTime",
  2320. name: "制单日期",
  2321. checked: 0,
  2322. width: 100,
  2323. },
  2324. {
  2325. surface: "7",
  2326. label: "fBillstatus",
  2327. name: "状态",
  2328. checked: 0,
  2329. width: 100,
  2330. },
  2331. {
  2332. surface: "8",
  2333. label: "fRemarks",
  2334. name: "备注",
  2335. checked: 0,
  2336. width: 100,
  2337. },
  2338. ],
  2339. setRowList: [],
  2340. getRowList: [],
  2341. allCheck: false,
  2342. showSetting: false,
  2343. setRowList2: [],
  2344. getRowList2: [],
  2345. allCheck2: false,
  2346. showSetting2: false,
  2347. setRowList3: [],
  2348. getRowList3: [],
  2349. allCheck3: false,
  2350. showSetting3: false,
  2351. setRowList4: [],
  2352. getRowList4: [],
  2353. allCheck4: false,
  2354. showSetting4: false,
  2355. setRowList5: [],
  2356. getRowList5: [],
  2357. allCheck5: false,
  2358. showSetting5: false,
  2359. setRowList6: [],
  2360. getRowList6: [],
  2361. allCheck6: false,
  2362. showSetting6: false,
  2363. //控制结算单位是否可操作
  2364. doNot: false,
  2365. jFeetunitOptions: [],
  2366. // 总条数
  2367. total: 0,
  2368. totAL: 0,
  2369. Ttime: 0,
  2370. colseButton: true,
  2371. approval: [],
  2372. disappear: false,
  2373. addIndex: [],
  2374. addOrUpdateVisible: false,
  2375. addOrUpdateVisib: false,
  2376. contrastId: 210,
  2377. // 审批状态
  2378. approve: false,
  2379. // 打印表
  2380. printObject: [],
  2381. //登陆人
  2382. Lander: "",
  2383. openPrint: false,
  2384. statrGo: true,
  2385. state_s: true,
  2386. notChange: false,
  2387. browseStatus: false,
  2388. options: "",
  2389. dateRange: "",
  2390. // 遮罩层
  2391. loading: true,
  2392. fAccbilldate: "",
  2393. // 选中数组
  2394. ids: [],
  2395. // 非单个禁用
  2396. single: true,
  2397. // 非多个禁用
  2398. multiple: true,
  2399. // 显示搜索条件
  2400. showSearch: true,
  2401. // 财务数据主表格数据
  2402. feeList: [],
  2403. // 客户(客户数据)
  2404. fMblnoOptions: [],
  2405. fFeeunitidOptions: [],
  2406. fWbuOptions: [],
  2407. KHblnoOptions: [],
  2408. //打开内部弹窗
  2409. innerVisible: false,
  2410. selection: "",
  2411. // 弹出层标题
  2412. title: "",
  2413. // 操作人
  2414. Operator: "",
  2415. // 是否显示弹出层
  2416. open: false,
  2417. dialogVisible: false,
  2418. // 财务对账表格
  2419. DzfeeList: [],
  2420. // 财务主页面表格
  2421. contrastList: [],
  2422. empty: [],
  2423. nothing: [],
  2424. Fee: [],
  2425. //导入从表传主表
  2426. pass: {
  2427. fAmtdr: "", //应收合计
  2428. fAmtcr: "", //应付合计
  2429. fMblno: "", //提单号
  2430. fName: "", //货权方
  2431. fFeesName: "", //结算单位
  2432. fCorpid: "", //结算单位ID
  2433. },
  2434. hide: false,
  2435. cancelButton: true,
  2436. businessTypeOption: [],
  2437. // 传值对象
  2438. TWareHouseFees: {
  2439. fCorpid: "",
  2440. fToCorpid: "",
  2441. fMblno: "",
  2442. fStatementNo: "",
  2443. fFeeid: "",
  2444. timeExamine: "",
  2445. timeInterval: "",
  2446. fDc: "D",
  2447. fReconciliation: "0",
  2448. timeReconci: "",
  2449. fBusinessType: "",
  2450. fBilltype: "SJRK",
  2451. },
  2452. // 查询参数
  2453. queryParams: {
  2454. pageNum: 1,
  2455. pageSize: 10,
  2456. fBillno: null,
  2457. fCtrlcorpid: null,
  2458. fCorpid: null,
  2459. tMblno: null,
  2460. fAmtdr: null,
  2461. fAmtcr: null,
  2462. fId: null,
  2463. fBilltype: null,
  2464. fBillstatus: null,
  2465. fRemarks: null,
  2466. fAccbilldate: null,
  2467. fDeptid: null,
  2468. createBy: null,
  2469. timeReconci: null,
  2470. fSystemType: Cookies.get("sysType"),
  2471. },
  2472. // 主表查询参数
  2473. tablefilter: {
  2474. pageNum: 1,
  2475. pageSize: 10,
  2476. fCtrlcorpid: null,
  2477. fCorpid: null,
  2478. fBillstatus: null,
  2479. fBillno: null,
  2480. amount: [],
  2481. firstMoney: null,
  2482. lastMoney: null,
  2483. fRemarks: null,
  2484. timeInterval: null,
  2485. },
  2486. // 表单参数
  2487. form: {},
  2488. // 表单校验
  2489. ruless: {
  2490. fCtrlcorpid: [{ required: true, message: " ", trigger: "blur" }],
  2491. fCorpid: [{ required: true, message: " ", trigger: "blur" }],
  2492. fAccbilldate: [{ required: true, message: " ", trigger: "blur" }],
  2493. },
  2494. feeListRules: {
  2495. fDc: [{ required: true, message: " ", trigger: "blur" }],
  2496. fToCorpid: [{ required: true, message: " ", trigger: "blur" }],
  2497. fReconciliation: [{ required: true, message: " ", trigger: "blur" }],
  2498. timeExamine: [{ required: true, message: " ", trigger: "blur" }],
  2499. },
  2500. };
  2501. },
  2502. components: {
  2503. draggable,
  2504. AddOrUpdate,
  2505. ApprovalComments,
  2506. },
  2507. created() {
  2508. this.setRowList = this.tableDate;
  2509. this.getRowList = this.tableDate;
  2510. this.setRowList2 = this.tableDate2;
  2511. this.getRowList2 = this.tableDate2;
  2512. this.setRowList3 = this.tableDate3;
  2513. this.getRowList3 = this.tableDate3;
  2514. this.setRowList4 = this.tableDate4;
  2515. this.getRowList4 = this.tableDate4;
  2516. this.setRowList5 = this.tableDate5;
  2517. this.getRowList5 = this.tableDate5;
  2518. this.setRowList6 = this.tableDate6;
  2519. this.getRowList6 = this.tableDate6;
  2520. this.typevalue = Cookies.get("sysType");
  2521. this.getList();
  2522. this.register();
  2523. this.getDicts("data_unitfees").then((response) => {
  2524. this.jFeetunitOptions = response.data;
  2525. });
  2526. this.getDicts("st_in_type").then((response) => {
  2527. this.businessTypeOption = response.data;
  2528. });
  2529. this.getRow();
  2530. this.getRow2();
  2531. this.getRow3();
  2532. this.getRow4();
  2533. this.getRow5();
  2534. this.getRow6();
  2535. this.corpsRemoteMethod();
  2536. },
  2537. activated() {
  2538. if (this.$route.query.data) {
  2539. let data = JSON.parse(this.$route.query.data);
  2540. if (data.key === 1) {
  2541. this.handleAdd();
  2542. } else {
  2543. this.Jump();
  2544. }
  2545. }
  2546. },
  2547. methods: {
  2548. changeMoney() {
  2549. if (
  2550. parseInt(this.tablefilter.lastMoney) <
  2551. parseInt(this.tablefilter.firstMoney)
  2552. ) {
  2553. this.$message.error("第二个金额不能小于第一个金额,请重新输入");
  2554. this.tablefilter.lastMoney = "";
  2555. }
  2556. },
  2557. addPage() {
  2558. MessageBox.confirm("是否已保存?", {
  2559. confirmButtonText: "确定",
  2560. cancelButtonText: "取消",
  2561. type: "warning",
  2562. }).then(() => {
  2563. this.handleAdd();
  2564. });
  2565. },
  2566. full() {
  2567. this.dialogFull = !this.dialogFull;
  2568. },
  2569. //列设置全选
  2570. allChecked() {
  2571. if (this.allCheck == true) {
  2572. this.setRowList.map((e) => {
  2573. return (e.checked = 0);
  2574. });
  2575. } else {
  2576. this.setRowList.map((e) => {
  2577. return (e.checked = 1);
  2578. });
  2579. }
  2580. },
  2581. //查询列数据
  2582. getRow() {
  2583. let that = this;
  2584. this.data = {
  2585. tableName: "对账列表页",
  2586. userId: Cookies.get("userName"),
  2587. };
  2588. select(this.data).then((res) => {
  2589. if (res.data.length != 0) {
  2590. this.getRowList = res.data.filter((e) => e.checked == 0);
  2591. this.setRowList = res.data;
  2592. this.setRowList = this.setRowList.reduce((res, item) => {
  2593. res.push({
  2594. surface: item.surface,
  2595. label: item.label,
  2596. name: item.name,
  2597. checked: item.checked,
  2598. width: item.width,
  2599. fixed: item.fixed,
  2600. });
  2601. return res;
  2602. }, []);
  2603. }
  2604. });
  2605. },
  2606. //保存列设置
  2607. save() {
  2608. this.showSetting = false;
  2609. this.data = {
  2610. tableName: "对账列表页",
  2611. userId: Cookies.get("userName"),
  2612. sysTableSetList: this.setRowList,
  2613. };
  2614. addSet(this.data).then((res) => {
  2615. this.getRowList = this.setRowList.filter((e) => e.checked == 0);
  2616. });
  2617. },
  2618. //重置列表
  2619. delRow() {
  2620. this.data = {
  2621. tableName: "对账列表页",
  2622. userId: Cookies.get("userName"),
  2623. };
  2624. resetModule(this.data).then((res) => {
  2625. if (res.code == 200) {
  2626. this.showSetting = false;
  2627. this.setRowList = this.getRowList = this.$options.data().tableDate;
  2628. }
  2629. });
  2630. },
  2631. //列设置全选
  2632. allChecked2() {
  2633. if (this.allCheck2 == true) {
  2634. this.setRowList2.map((e) => {
  2635. return (e.checked = 0);
  2636. });
  2637. } else {
  2638. this.setRowList2.map((e) => {
  2639. return (e.checked = 1);
  2640. });
  2641. }
  2642. },
  2643. //查询列数据
  2644. getRow2() {
  2645. let that = this;
  2646. this.data = {
  2647. tableName: "-列表对账明细",
  2648. userId: Cookies.get("userName"),
  2649. };
  2650. select(this.data).then((res) => {
  2651. if (res.data.length != 0) {
  2652. this.getRowList2 = res.data.filter((e) => e.checked == 0);
  2653. this.setRowList2 = res.data;
  2654. this.setRowList2 = this.setRowList2.reduce((res, item) => {
  2655. res.push({
  2656. surface: item.surface,
  2657. label: item.label,
  2658. name: item.name,
  2659. checked: item.checked,
  2660. width: item.width,
  2661. fixed: item.fixed,
  2662. });
  2663. return res;
  2664. }, []);
  2665. }
  2666. });
  2667. },
  2668. //保存列设置
  2669. save2() {
  2670. this.showSetting2 = false;
  2671. this.data = {
  2672. tableName: "-列表对账明细",
  2673. userId: Cookies.get("userName"),
  2674. sysTableSetList: this.setRowList2,
  2675. };
  2676. addSet(this.data).then((res) => {
  2677. this.getRowList2 = this.setRowList2.filter((e) => e.checked == 0);
  2678. });
  2679. },
  2680. //重置列表
  2681. delRow2() {
  2682. this.data = {
  2683. tableName: "-列表对账明细",
  2684. userId: Cookies.get("userName"),
  2685. };
  2686. resetModule(this.data).then((res) => {
  2687. if (res.code == 200) {
  2688. this.showSetting2 = false;
  2689. this.setRowList2 = this.getRowList2 = this.$options.data().tableDate2;
  2690. }
  2691. });
  2692. },
  2693. //列设置全选
  2694. allChecked3() {
  2695. if (this.allCheck3 == true) {
  2696. this.setRowList3.map((e) => {
  2697. return (e.checked = 0);
  2698. });
  2699. } else {
  2700. this.setRowList3.map((e) => {
  2701. return (e.checked = 1);
  2702. });
  2703. }
  2704. },
  2705. //查询列数据
  2706. getRow3() {
  2707. let that = this;
  2708. this.data = {
  2709. tableName: "_弹窗对账明细",
  2710. userId: Cookies.get("userName"),
  2711. };
  2712. select(this.data).then((res) => {
  2713. if (res.data.length != 0) {
  2714. this.getRowList3 = res.data.filter((e) => e.checked == 0);
  2715. this.setRowList3 = res.data;
  2716. this.setRowList3 = this.setRowList3.reduce((res, item) => {
  2717. res.push({
  2718. surface: item.surface,
  2719. label: item.label,
  2720. name: item.name,
  2721. checked: item.checked,
  2722. width: item.width,
  2723. fixed: item.fixed,
  2724. });
  2725. return res;
  2726. }, []);
  2727. }
  2728. });
  2729. },
  2730. //保存列设置
  2731. save3() {
  2732. this.showSetting3 = false;
  2733. this.data = {
  2734. tableName: "_弹窗对账明细",
  2735. userId: Cookies.get("userName"),
  2736. sysTableSetList: this.setRowList3,
  2737. };
  2738. addSet(this.data).then((res) => {
  2739. this.getRowList3 = this.setRowList3.filter((e) => e.checked == 0);
  2740. });
  2741. },
  2742. //重置列表
  2743. delRow3() {
  2744. this.data = {
  2745. tableName: "_弹窗对账明细",
  2746. userId: Cookies.get("userName"),
  2747. };
  2748. resetModule(this.data).then((res) => {
  2749. if (res.code == 200) {
  2750. this.showSetting3 = false;
  2751. this.setRowList3 = this.getRowList3 = this.$options.data().tableDate3;
  2752. }
  2753. });
  2754. },
  2755. //列设置全选
  2756. allChecked4() {
  2757. if (this.allCheck4 == true) {
  2758. this.setRowList4.map((e) => {
  2759. return (e.checked = 0);
  2760. });
  2761. } else {
  2762. this.setRowList4.map((e) => {
  2763. return (e.checked = 1);
  2764. });
  2765. }
  2766. },
  2767. //查询列数据
  2768. getRow4() {
  2769. let that = this;
  2770. this.data = {
  2771. tableName: "车队_列表对账明细",
  2772. userId: Cookies.get("userName"),
  2773. };
  2774. select(this.data).then((res) => {
  2775. if (res.data.length != 0) {
  2776. this.getRowList4 = res.data.filter((e) => e.checked == 0);
  2777. this.setRowList4 = res.data;
  2778. this.setRowList4 = this.setRowList4.reduce((res, item) => {
  2779. res.push({
  2780. surface: item.surface,
  2781. label: item.label,
  2782. name: item.name,
  2783. checked: item.checked,
  2784. width: item.width,
  2785. fixed: item.fixed,
  2786. });
  2787. return res;
  2788. }, []);
  2789. }
  2790. });
  2791. },
  2792. //保存列设置
  2793. save4() {
  2794. this.showSetting4 = false;
  2795. this.data = {
  2796. tableName: "车队_列表对账明细",
  2797. userId: Cookies.get("userName"),
  2798. sysTableSetList: this.setRowList4,
  2799. };
  2800. addSet(this.data).then((res) => {
  2801. this.getRowList4 = this.setRowList4.filter((e) => e.checked == 0);
  2802. });
  2803. },
  2804. //重置列表
  2805. delRow4() {
  2806. this.data = {
  2807. tableName: "车队_列表对账明细",
  2808. userId: Cookies.get("userName"),
  2809. };
  2810. resetModule(this.data).then((res) => {
  2811. if (res.code == 200) {
  2812. this.showSetting4 = false;
  2813. this.setRowList4 = this.getRowList4 = this.$options.data().tableDate4;
  2814. }
  2815. });
  2816. },
  2817. //列设置全选
  2818. allChecked5() {
  2819. if (this.allCheck5 == true) {
  2820. this.setRowList5.map((e) => {
  2821. return (e.checked = 0);
  2822. });
  2823. } else {
  2824. this.setRowList5.map((e) => {
  2825. return (e.checked = 1);
  2826. });
  2827. }
  2828. },
  2829. //查询列数据
  2830. getRow5() {
  2831. let that = this;
  2832. this.data = {
  2833. tableName: "车队_弹窗对账明细",
  2834. userId: Cookies.get("userName"),
  2835. };
  2836. select(this.data).then((res) => {
  2837. if (res.data.length != 0) {
  2838. this.getRowList5 = res.data.filter((e) => e.checked == 0);
  2839. this.setRowList5 = res.data;
  2840. this.setRowList5 = this.setRowList5.reduce((res, item) => {
  2841. res.push({
  2842. surface: item.surface,
  2843. label: item.label,
  2844. name: item.name,
  2845. checked: item.checked,
  2846. width: item.width,
  2847. fixed: item.fixed,
  2848. });
  2849. return res;
  2850. }, []);
  2851. }
  2852. });
  2853. },
  2854. //保存列设置
  2855. save5() {
  2856. this.showSetting5 = false;
  2857. this.data = {
  2858. tableName: "车队_弹窗对账明细",
  2859. userId: Cookies.get("userName"),
  2860. sysTableSetList: this.setRowList5,
  2861. };
  2862. addSet(this.data).then((res) => {
  2863. this.getRowList5 = this.setRowList5.filter((e) => e.checked == 0);
  2864. });
  2865. },
  2866. //重置列表
  2867. delRow5() {
  2868. this.data = {
  2869. tableName: "车队_弹窗对账明细",
  2870. userId: Cookies.get("userName"),
  2871. };
  2872. resetModule(this.data).then((res) => {
  2873. if (res.code == 200) {
  2874. this.showSetting5 = false;
  2875. this.setRowList5 = this.getRowList5 = this.$options.data().tableDate5;
  2876. }
  2877. });
  2878. },
  2879. //列设置全选
  2880. allChecked6() {
  2881. if (this.allCheck6 == true) {
  2882. this.setRowList6.map((e) => {
  2883. return (e.checked = 0);
  2884. });
  2885. } else {
  2886. this.setRowList6.map((e) => {
  2887. return (e.checked = 1);
  2888. });
  2889. }
  2890. },
  2891. //查询列数据
  2892. getRow6() {
  2893. let that = this;
  2894. this.data = {
  2895. tableName: "车队_对账列表页",
  2896. userId: Cookies.get("userName"),
  2897. };
  2898. select(this.data).then((res) => {
  2899. if (res.data.length != 0) {
  2900. this.getRowList6 = res.data.filter((e) => e.checked == 0);
  2901. this.setRowList6 = res.data;
  2902. this.setRowList6 = this.setRowList6.reduce((res, item) => {
  2903. res.push({
  2904. surface: item.surface,
  2905. label: item.label,
  2906. name: item.name,
  2907. checked: item.checked,
  2908. width: item.width,
  2909. fixed: item.fixed,
  2910. });
  2911. return res;
  2912. }, []);
  2913. }
  2914. });
  2915. },
  2916. //保存列设置
  2917. save6() {
  2918. this.showSetting6 = false;
  2919. this.data = {
  2920. tableName: "车队_对账列表页",
  2921. userId: Cookies.get("userName"),
  2922. sysTableSetList: this.setRowList6,
  2923. };
  2924. addSet(this.data).then((res) => {
  2925. this.getRowList6 = this.setRowList6.filter((e) => e.checked == 0);
  2926. });
  2927. },
  2928. //重置列表
  2929. delRow6() {
  2930. this.data = {
  2931. tableName: "车队_对账列表页",
  2932. userId: Cookies.get("userName"),
  2933. };
  2934. resetModule(this.data).then((res) => {
  2935. if (res.code == 200) {
  2936. this.showSetting6 = false;
  2937. this.setRowList6 = this.getRowList6 = this.$options.data().tableDate5;
  2938. }
  2939. });
  2940. },
  2941. //开始拖拽事件
  2942. onStart() {
  2943. this.drag = true;
  2944. },
  2945. //拖拽结束事件
  2946. onEnd() {
  2947. this.drag = false;
  2948. },
  2949. //对账页面合计
  2950. listTotal(param) {
  2951. const { columns, data } = param;
  2952. const sums = [];
  2953. if (data.length>0){
  2954. if (!data[0].fSrcdc) {
  2955. columns.forEach((column, index) => {
  2956. if (index === 0) {
  2957. sums[index] = "合计";
  2958. }
  2959. if (
  2960. column.label == "金额" ||
  2961. column.label == "对账金额" ||
  2962. column.label == "本次金额" ||
  2963. column.label == "费用金额"
  2964. ) {
  2965. const values = data.map((item) => Number(item[column.property]));
  2966. if (!values.every((value) => isNaN(value))) {
  2967. sums[index] = values.reduce((prev, curr) => {
  2968. const value = Number(curr);
  2969. if (!isNaN(value)) {
  2970. return prev + curr;
  2971. } else {
  2972. return prev;
  2973. }
  2974. }, 0);
  2975. }
  2976. }
  2977. });
  2978. } else {
  2979. columns.forEach((column, index) => {
  2980. if (index === 0) {
  2981. sums[index] = "合计";
  2982. }
  2983. if (
  2984. column.label == "金额" ||
  2985. column.label == "对账金额" ||
  2986. column.label == "本次金额" ||
  2987. column.label == "费用金额"
  2988. ) {
  2989. let number = 0
  2990. data.forEach(item => {
  2991. if (item.fSrcdc == 'D') {
  2992. number = number + Number(item[column.property])
  2993. } else {
  2994. number = number - Number(item[column.property])
  2995. }
  2996. })
  2997. sums[index] = number
  2998. }
  2999. })
  3000. }
  3001. }
  3002. return sums;
  3003. },
  3004. //财务主取消
  3005. signOut() {
  3006. if (this.DzfeeList.length == 0) {
  3007. this.doNot = false;
  3008. } else {
  3009. this.doNot = true;
  3010. }
  3011. this.innerVisible = false;
  3012. this.feeList = [];
  3013. },
  3014. // 审批跳转
  3015. Jump() {
  3016. this.approval = this.$route.query.data;
  3017. if (this.approval) {
  3018. this.colseButton = false;
  3019. this.approval = JSON.parse(this.approval);
  3020. this.hide = false;
  3021. this.doNot = true;
  3022. this.notChange = true;
  3023. this.approve = true;
  3024. this.mainTable = true;
  3025. this.disappear = true;
  3026. this.cancelButton = false;
  3027. this.reset();
  3028. this.pass = {
  3029. fAmtdr: "", //应收合计
  3030. fAmtcr: "", //应付合计
  3031. fMblno: "", //提单号
  3032. fName: "", //货权方
  3033. fFeesName: "", //结算单位
  3034. fCorpid: "", //结算单位ID
  3035. };
  3036. getFee(this.approval.billId).then((response) => {
  3037. this.Operator = response.data.tFee.createBy;
  3038. if (response.data.feeDoList != 0) {
  3039. response.data.feeDoList.map((e) => {
  3040. if (e.fBillingDeadline) {
  3041. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  3042. }
  3043. if (e.fBsdate) {
  3044. e.fBsdate = e.fBsdate.slice(0, 10);
  3045. }
  3046. if (e.fChargedate) {
  3047. e.fChargedate = e.fChargedate.slice(0, 10);
  3048. }
  3049. // if (e.fSrcdc) {
  3050. // if (e.fSrcdc == "D") {
  3051. // e.fSrcdc = "收";
  3052. // } else {
  3053. // e.fSrcdc = "付";
  3054. // }
  3055. // }
  3056. });
  3057. }
  3058. this.DzfeeList = response.data.feeDoList;
  3059. this.fWbuOptions = response.data.feesList;
  3060. this.queryParams = response.data.tFee;
  3061. this.fWbuOptions = response.data.feesList;
  3062. this.fMblnoOptions = response.data.corps;
  3063. this.mainTable = true;
  3064. this.title = "修改财务数据主";
  3065. });
  3066. }
  3067. },
  3068. homepaGe() {
  3069. let view = {
  3070. fullPath: "/finance/contrast",
  3071. hash: "",
  3072. matched: Array(2),
  3073. meta: Object,
  3074. name: "Contrast",
  3075. params: Object,
  3076. path: "/finance/contrast",
  3077. query: Object,
  3078. title: "对账",
  3079. };
  3080. this.$router.push({ path: "/index" });
  3081. this.$store
  3082. .dispatch("tagsView/delView", view)
  3083. .then(({ visitedViews }) => {
  3084. if (this.isActive(view)) {
  3085. this.toLastView(visitedViews, view);
  3086. }
  3087. });
  3088. Global.$emit("removeCache", "closeSelectedTag", view);
  3089. },
  3090. homePage() {
  3091. this.open = false;
  3092. let view = {
  3093. fullPath: "/finance/contrast",
  3094. hash: "",
  3095. matched: Array(2),
  3096. meta: Object,
  3097. name: "Contrast",
  3098. params: Object,
  3099. path: "/finance/contrast",
  3100. query: Object,
  3101. title: "对账",
  3102. };
  3103. this.$router.push({ path: "/index" });
  3104. this.$store
  3105. .dispatch("tagsView/delView", view)
  3106. .then(({ visitedViews }) => {
  3107. if (this.isActive(view)) {
  3108. this.toLastView(visitedViews, view);
  3109. }
  3110. });
  3111. Global.$emit("removeCache", "closeSelectedTag", view);
  3112. },
  3113. // 撤销审批
  3114. backApproval(status) {
  3115. if (Cookies.get("sysType") == 3) {
  3116. let data = {
  3117. id: this.queryParams.fId,
  3118. actId: 430,
  3119. billId: this.queryParams.fId,
  3120. fidStatus: status,
  3121. };
  3122. RevocationApproval(data).then((response) => {
  3123. if (response.code === 200) {
  3124. this.msgSuccess("撤销审批成功");
  3125. this.disappear = true;
  3126. this.mainTable = false;
  3127. this.open = false;
  3128. this.getList();
  3129. }
  3130. });
  3131. } else {
  3132. let data = {
  3133. id: this.queryParams.fId,
  3134. actId: this.contrastId,
  3135. billId: this.queryParams.fId,
  3136. fidStatus: status,
  3137. };
  3138. RevocationApproval(data).then((response) => {
  3139. this.msgSuccess("撤销审批成功");
  3140. this.disappear = true;
  3141. this.open = false;
  3142. this.getList();
  3143. });
  3144. }
  3145. },
  3146. returnData() {
  3147. this.addOrUpdateVisib = false;
  3148. this.open = false;
  3149. this.homepaGe();
  3150. },
  3151. getDataList() {
  3152. this.addOrUpdateVisible = false;
  3153. },
  3154. // 审批按钮
  3155. goApproval(status) {
  3156. this.addOrUpdateVisib = true;
  3157. this.$nextTick(() => {
  3158. if (Cookies.get("sysType") == 3) {
  3159. this.$refs.ApprovalComments.init(this.queryParams.fId, status, 430);
  3160. } else {
  3161. this.$refs.ApprovalComments.init(
  3162. this.queryParams.fId,
  3163. status,
  3164. this.contrastId
  3165. );
  3166. }
  3167. });
  3168. },
  3169. // 查看审批流
  3170. addOrUpdateHandle(status) {
  3171. this.addOrUpdateVisible = true;
  3172. this.addOrUpdateVisib = false;
  3173. let id = null;
  3174. if (this.queryParams.fId) {
  3175. id = this.queryParams.fId;
  3176. } else {
  3177. id = this.queryParams.id;
  3178. }
  3179. this.$nextTick(() => {
  3180. if (Cookies.get("sysType") == 3) {
  3181. this.$refs.addOrUpdate.init(id, 430, status);
  3182. } else {
  3183. this.$refs.addOrUpdate.init(id, this.contrastId, status);
  3184. }
  3185. });
  3186. },
  3187. // 撤销对账
  3188. backrRconciliation() {
  3189. this.queryParams.fBillstatus = "1";
  3190. let formDate = new window.FormData();
  3191. formDate.append("tFee", JSON.stringify(this.queryParams));
  3192. formDate.append("tFeeDo", JSON.stringify(this.DzfeeList));
  3193. backFee(formDate).then((response) => {
  3194. this.msgSuccess("撤回成功");
  3195. this.open = false;
  3196. this.mainTable = false;
  3197. this.reset();
  3198. this.getList();
  3199. });
  3200. },
  3201. // 打印功能
  3202. printing() {
  3203. if (this.DzfeeList.length !== 0) {
  3204. this.openPrint = true;
  3205. this.printObject = this.DzfeeList;
  3206. } else {
  3207. this.$message.error("无数据,请检查是否有数据");
  3208. }
  3209. },
  3210. // 确认打印
  3211. printSomething() {
  3212. // 此处的style即为打印时的样式
  3213. const style =
  3214. "table tr td,th { border-collapse: collapse;padding:15px;border:.5px #000 solid;text-align:center;}";
  3215. // "@media print {} }";
  3216. print({
  3217. printable: "print_area2",
  3218. type: "html",
  3219. header: "对账表",
  3220. headerStyle: "text-align:center;color:#000;width:100%;",
  3221. style: style, // 亦可使用引入的外部css;
  3222. scanStyles: false,
  3223. });
  3224. },
  3225. // 确认对账按钮功能
  3226. confirmReconciliation() {
  3227. this.$refs["ruless"].validate((valid) => {
  3228. if (valid) {
  3229. if (this.DzfeeList.length) {
  3230. // this.queryParams.fBillstatus = '4'
  3231. let formDate = new window.FormData();
  3232. formDate.append("tFee", JSON.stringify(this.queryParams));
  3233. formDate.append("tFeeDo", JSON.stringify(this.DzfeeList));
  3234. if (Cookies.get("sysType") == 1) {
  3235. Cfee(formDate).then((response) => {
  3236. this.open = false;
  3237. this.msgSuccess("操作成功");
  3238. this.getList();
  3239. });
  3240. this.handleAdd();
  3241. } else if (Cookies.get("sysType") == 2) {
  3242. confirmFleet(formDate).then((response) => {
  3243. if (response.code == 200) {
  3244. this.open = false;
  3245. this.notChange = true;
  3246. this.$set(this.queryParams, "fBillstatus", 6);
  3247. this.msgSuccess("操作成功");
  3248. this.getList();
  3249. }
  3250. });
  3251. } else if (Cookies.get("sysType") == 3) {
  3252. formDate.append("billsType", "KHDZ");
  3253. Cfee(formDate).then((response) => {
  3254. this.queryParams.fId = response.data.tFee.fId;
  3255. this.queryParams.fBillno = response.data.tFee.fBillno;
  3256. this.$message.success("操作成功");
  3257. this.doNot = true;
  3258. this.notChange = true;
  3259. this.$set(this.queryParams, "fBillstatus", "4");
  3260. // this.queryParams.fBillstatus = '4'
  3261. if (this.Operator == this.Lander) {
  3262. this.disappear = false;
  3263. }
  3264. this.getList();
  3265. });
  3266. }
  3267. } else {
  3268. this.$message.error("表单为空不允许操作");
  3269. }
  3270. }
  3271. });
  3272. },
  3273. //导出
  3274. handleExportItems() {
  3275. let fIds = 0;
  3276. if (Cookies.get("sysType") == 2) {
  3277. fIds = this.queryParams.id;
  3278. } else {
  3279. fIds = this.queryParams.fId;
  3280. }
  3281. if (fIds !== null) {
  3282. this.$confirm("是否确认导出所有计费物资明细数据?", "警告", {
  3283. confirmButtonText: "确定",
  3284. cancelButtonText: "取消",
  3285. type: "warning",
  3286. })
  3287. .then(function () {
  3288. if (Cookies.get("sysType") == 2) {
  3289. return exporItems(fIds);
  3290. } else {
  3291. return exportWarehousebillsitems(fIds);
  3292. }
  3293. })
  3294. .then((response) => {
  3295. this.download(response.msg);
  3296. });
  3297. } else {
  3298. this.$message("请先保存");
  3299. }
  3300. },
  3301. // 对账按钮功能
  3302. reconciliation() {
  3303. if (!this.queryParams.fSystemType) {
  3304. return this.$message("请先选择业务类型");
  3305. }
  3306. this.queryParameter = {
  3307. fToCorpid: this.queryParams.fCorpid,
  3308. };
  3309. this.innerVisible = true;
  3310. this.feeList = [];
  3311. // this.TWareHouseFees = {
  3312. // fCorpid: "",
  3313. // fToCorpid: this.queryParams.fCorpid,
  3314. // fMblno: "",
  3315. // fStatementNo: "",
  3316. // fFeeid: "",
  3317. // timeExamine: "",
  3318. // timeInterval: "",
  3319. // fSrcdc: "",
  3320. // fReconciliation: "0",
  3321. // timeReconci: "",
  3322. // fDc: "D",
  3323. // fBilltype: "",
  3324. // };
  3325. this.TWareHouseFees = {
  3326. fToCorpid: this.queryParams.fCorpid,
  3327. fReconciliation: "0",
  3328. fDc: "D",
  3329. };
  3330. if (this.queryParams.fCorpid) {
  3331. this.doNot = true;
  3332. }
  3333. },
  3334. changeAmt(row, index) {
  3335. if (row > this.feeList[index].fAmount) {
  3336. this.$message.error("本次金额不能大于原定金额");
  3337. this.feeList[index].fAmt = this.feeList[index].fAmount;
  3338. }
  3339. },
  3340. // 默认录入人
  3341. register() {
  3342. queryUserVal().then((response) => {
  3343. this.Lander = response.user.userName;
  3344. });
  3345. },
  3346. // 合计
  3347. getSum(param) {
  3348. const { columns, data } = param;
  3349. const sums = [];
  3350. columns.forEach((column, index) => {
  3351. if (this.selection.length == 0) {
  3352. if (index === 0) {
  3353. sums[index] = "合计";
  3354. } else if (
  3355. column.label == "金额" ||
  3356. column.label == "本次金额" ||
  3357. column.label == "费用金额"
  3358. ) {
  3359. const values = data.map((item) => Number(item[column.property]));
  3360. if (!values.every((value) => isNaN(value))) {
  3361. sums[index] = values.reduce((prev, curr) => {
  3362. const value = Number(curr);
  3363. if (!isNaN(value)) {
  3364. return prev + curr;
  3365. } else {
  3366. return prev;
  3367. }
  3368. }, 0);
  3369. }
  3370. }
  3371. } else {
  3372. if (index === 0) {
  3373. sums[index] = "合计";
  3374. } else if (column.label == "金额" || column.label == "本次金额") {
  3375. const values = this.selection.map((selection) =>
  3376. Number(selection[column.property])
  3377. );
  3378. if (!values.every((value) => isNaN(value))) {
  3379. sums[index] = values.reduce((prev, curr) => {
  3380. const value = Number(curr);
  3381. if (!isNaN(value)) {
  3382. return prev + curr;
  3383. } else {
  3384. return prev;
  3385. }
  3386. }, 0);
  3387. }
  3388. }
  3389. }
  3390. });
  3391. return sums;
  3392. },
  3393. // 导入多选框
  3394. handleSelectionChange_s(selection) {
  3395. // this.totAL = 0;
  3396. // this.Ttime = 0;
  3397. this.selection = selection;
  3398. // if (this.selection.length == 0) {
  3399. // for (let item in this.feeList) {
  3400. // this.totAL += Number(this.feeList[item].fAmt);
  3401. // this.Ttime += Number(this.feeList[item].fAmtdr);
  3402. // }
  3403. // } else {
  3404. // for (let index in selection) {
  3405. // this.totAL += Number(selection[index].fAmt);
  3406. // this.Ttime += Number(selection[index].fAmtdr);
  3407. // }
  3408. // }
  3409. },
  3410. // 多选框选中数据
  3411. handleSelectionChange(selection) {
  3412. this.totAL = 0;
  3413. this.ids = selection.map((item) => item.fId);
  3414. this.single =
  3415. selection.filter((e) => e.fBillstatus == "暂存").length != 1 ||
  3416. selection.length != 1;
  3417. this.multiple = !selection.length;
  3418. },
  3419. // 金额筛选
  3420. imgChangeI(row) {
  3421. if (row.fAmt && Number(row.fAmt) > Number(row.fAmtdr)) {
  3422. this.$set(row, "fAmt", row.fAmtdr);
  3423. this.state_s = true;
  3424. }
  3425. if (this.selection.length !== 0) {
  3426. this.totAL = 0;
  3427. this.Ttime = 0;
  3428. for (let item in this.selection) {
  3429. this.totAL += Number(this.selection[item].fAmt);
  3430. this.Ttime += Number(this.selection[item].fAmtdr);
  3431. }
  3432. } else {
  3433. this.totAL = 0;
  3434. this.Ttime = 0;
  3435. for (let item in this.feeList) {
  3436. this.totAL += Number(this.feeList[item].fAmt);
  3437. this.Ttime += Number(this.feeList[item].fAmtdr);
  3438. }
  3439. }
  3440. },
  3441. /* 添加财务数据主 导入*/
  3442. confirmImport() {
  3443. this.doNot = true;
  3444. this.hide = true;
  3445. this.pass.fAmtdr = 0;
  3446. this.pass.fAmtcr = 0;
  3447. for (let item in this.selection) {
  3448. this.pass.fAmtcr = Number(this.pass.fAmtcr);
  3449. this.pass.fAmtdr = Number(this.pass.fAmtdr);
  3450. this.pass.fAmtcr += Number(this.selection[item].fAmt);
  3451. this.pass.fAmtdr += Number(this.selection[item].fAmtdr);
  3452. }
  3453. // this.pass.fAmtcr.toFixed(2);
  3454. if (this.state_s == true) {
  3455. if (this.selection.length == "0") {
  3456. this.$message.error("未选择导入行");
  3457. } else {
  3458. let Num = [];
  3459. for (let item in this.selection) {
  3460. this.empty.push(this.selection[item].fMblno);
  3461. this.nothing.push(this.selection[item].fName);
  3462. if (this.DzfeeList.length === 0) {
  3463. this.DzfeeList = this.DzfeeList.concat(this.selection);
  3464. //去重提单号
  3465. this.empty = new Set(this.empty);
  3466. this.empty = Array.from(this.empty);
  3467. //去重货权方
  3468. this.nothing = new Set(this.nothing);
  3469. this.nothing = Array.from(this.nothing);
  3470. if (this.empty.length <= 1) {
  3471. this.pass.fMblno = this.empty[0];
  3472. } else {
  3473. this.pass.fMblno = this.empty[0] + "...";
  3474. }
  3475. if (this.nothing.length <= 1) {
  3476. this.pass.fName = this.nothing[0];
  3477. } else {
  3478. this.pass.fName = this.nothing[0] + "...";
  3479. }
  3480. // this.DzfeeList = this.DzfeeList.concat(this.Fee)
  3481. this.queryParams.tMblno = this.pass.fMblno; //提单号
  3482. this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid;
  3483. this.queryParams.fCtrlcorpid = this.pass.fName;
  3484. this.queryParams.fAmtcr = this.pass.fAmtcr;
  3485. this.queryParams.fAmtdr = this.pass.fAmtdr;
  3486. this.innerVisible = false;
  3487. this.feeList = [];
  3488. // this.feeList = this.DzfeeList
  3489. this.TWareHouseFees = {
  3490. fCorpid: "",
  3491. fToCorpid: "",
  3492. fMblno: "",
  3493. fStatementNo: "",
  3494. fFeeid: "",
  3495. timeExamine: "",
  3496. timeInterval: "",
  3497. fSrcdc: "",
  3498. fReconciliation: "0",
  3499. timeReconci: "",
  3500. fDc: "D",
  3501. };
  3502. return;
  3503. }
  3504. }
  3505. for (let li in this.DzfeeList) {
  3506. for (let item in this.selection) {
  3507. if (this.selection[item].fSrcid !== this.DzfeeList[li].fSrcid) {
  3508. this.Fee = this.DzfeeList.concat(this.selection);
  3509. let result = [];
  3510. let obj = {};
  3511. for (let lis in this.Fee) {
  3512. if (!obj[this.Fee[lis].fSrcid]) {
  3513. result.push(this.Fee[lis]);
  3514. obj[this.Fee[lis].fSrcid] = true;
  3515. }
  3516. }
  3517. //去重提单号
  3518. this.empty = new Set(this.empty);
  3519. this.empty = Array.from(this.empty);
  3520. //去重货权方
  3521. this.nothing = new Set(this.nothing);
  3522. this.nothing = Array.from(this.nothing);
  3523. if (this.empty.length <= 1) {
  3524. this.pass.fMblno = this.empty[0];
  3525. } else {
  3526. this.pass.fMblno = this.empty[0] + "...";
  3527. }
  3528. if (this.nothing.length <= 1) {
  3529. this.pass.fName = this.nothing[0];
  3530. } else {
  3531. this.pass.fName = this.nothing[0] + "...";
  3532. }
  3533. // this.DzfeeList = this.DzfeeList.concat(this.Fee)
  3534. this.queryParams.tMblno = this.pass.fMblno; //提单号
  3535. this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid;
  3536. this.queryParams.fCtrlcorpid = this.pass.fName;
  3537. this.queryParams.fAmtcr = this.pass.fAmtcr;
  3538. this.queryParams.fAmtdr = this.pass.fAmtdr;
  3539. this.innerVisible = false;
  3540. this.feeList = [];
  3541. // this.feeList = this.DzfeeList
  3542. this.TWareHouseFees = {
  3543. fCorpid: "",
  3544. fToCorpid: this.queryParams.fCorpid,
  3545. fMblno: "",
  3546. fStatementNo: "",
  3547. fFeeid: "",
  3548. timeExamine: "",
  3549. timeInterval: "",
  3550. fSrcdc: "",
  3551. fReconciliation: "0",
  3552. timeReconci: "",
  3553. fDc: "D",
  3554. };
  3555. this.DzfeeList = result;
  3556. } else {
  3557. let i = Number(li) + 1;
  3558. Num += i + "、";
  3559. }
  3560. }
  3561. }
  3562. if (Num.length != 0) {
  3563. MessageBox.confirm(
  3564. "从表的第" +
  3565. Num.slice(0, Num.length - 1) +
  3566. "行重复,如本次金额变更,请删除后重新选择",
  3567. "提示",
  3568. {
  3569. confirmButtonText: "确定",
  3570. cancelButtonText: "取消",
  3571. type: "warning",
  3572. }
  3573. );
  3574. }
  3575. }
  3576. } else if (this.state_s == false) {
  3577. this.$message.error("本次金额不能大于原定金额");
  3578. }
  3579. },
  3580. /* 添加财务数据主 导入*/
  3581. confirmImport2() {
  3582. this.doNot = true;
  3583. this.hide = true;
  3584. this.pass.fAmtdr = 0;
  3585. this.pass.fAmtcr = 0;
  3586. this.selection.map((e) => {
  3587. e.fAmtdr=e.fAmount
  3588. e.fAmtcr=e.fAmt
  3589. });
  3590. for (let item in this.selection) {
  3591. this.pass.fAmtcr = Number(this.pass.fAmtcr);
  3592. this.pass.fAmtdr = Number(this.pass.fAmtdr);
  3593. this.pass.fAmtcr += Number(this.selection[item].fAmtcr);
  3594. this.pass.fAmtdr += Number(this.selection[item].fAmtdr);
  3595. }
  3596. // this.pass.fAmtcr.toFixed(2);
  3597. if (this.state_s == true) {
  3598. if (this.selection.length == "0") {
  3599. this.$message.error("未选择导入行");
  3600. } else {
  3601. let Num = [];
  3602. for (let item in this.selection) {
  3603. this.empty.push(this.selection[item].fMblno);
  3604. this.nothing.push(this.selection[item].fName);
  3605. if (this.DzfeeList.length === 0) {
  3606. this.DzfeeList = this.DzfeeList.concat(this.selection);
  3607. //去重提单号
  3608. this.empty = new Set(this.empty);
  3609. this.empty = Array.from(this.empty);
  3610. //去重货权方
  3611. this.nothing = new Set(this.nothing);
  3612. this.nothing = Array.from(this.nothing);
  3613. if (this.empty.length <= 1) {
  3614. this.pass.fMblno = this.empty[0];
  3615. } else {
  3616. this.pass.fMblno = this.empty[0] + "...";
  3617. }
  3618. if (this.nothing.length <= 1) {
  3619. this.pass.fName = this.nothing[0];
  3620. } else {
  3621. this.pass.fName = this.nothing[0] + "...";
  3622. }
  3623. // this.DzfeeList = this.DzfeeList.concat(this.Fee)
  3624. this.queryParams.tMblno = this.pass.fMblno; //提单号
  3625. this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid;
  3626. this.queryParams.fCtrlcorpid = this.pass.fName;
  3627. this.queryParams.fAmtcr = this.pass.fAmtcr;
  3628. this.queryParams.fAmtdr = this.pass.fAmtdr;
  3629. this.innerVisible = false;
  3630. this.feeList = [];
  3631. // this.feeList = this.DzfeeList
  3632. this.TWareHouseFees = {
  3633. fCorpid: "",
  3634. fToCorpid: "",
  3635. fMblno: "",
  3636. fStatementNo: "",
  3637. fFeeid: "",
  3638. timeExamine: "",
  3639. timeInterval: "",
  3640. fSrcdc: "",
  3641. fReconciliation: "0",
  3642. timeReconci: "",
  3643. fDc: "D",
  3644. };
  3645. return;
  3646. }
  3647. }
  3648. for (let li in this.DzfeeList) {
  3649. for (let item in this.selection) {
  3650. if (this.selection[item].fSrcid !== this.DzfeeList[li].fSrcid) {
  3651. this.Fee = this.DzfeeList.concat(this.selection);
  3652. let result = [];
  3653. let obj = {};
  3654. for (let lis in this.Fee) {
  3655. if (!obj[this.Fee[lis].fSrcid]) {
  3656. result.push(this.Fee[lis]);
  3657. obj[this.Fee[lis].fSrcid] = true;
  3658. }
  3659. }
  3660. //去重提单号
  3661. this.empty = new Set(this.empty);
  3662. this.empty = Array.from(this.empty);
  3663. //去重货权方
  3664. this.nothing = new Set(this.nothing);
  3665. this.nothing = Array.from(this.nothing);
  3666. if (this.empty.length <= 1) {
  3667. this.pass.fMblno = this.empty[0];
  3668. } else {
  3669. this.pass.fMblno = this.empty[0] + "...";
  3670. }
  3671. if (this.nothing.length <= 1) {
  3672. this.pass.fName = this.nothing[0];
  3673. } else {
  3674. this.pass.fName = this.nothing[0] + "...";
  3675. }
  3676. // this.DzfeeList = this.DzfeeList.concat(this.Fee)
  3677. this.queryParams.tMblno = this.pass.fMblno; //提单号
  3678. this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid;
  3679. this.queryParams.fCtrlcorpid = this.pass.fName;
  3680. this.queryParams.fAmtcr = this.pass.fAmtcr;
  3681. this.queryParams.fAmtdr = this.pass.fAmtdr;
  3682. this.innerVisible = false;
  3683. this.feeList = [];
  3684. // this.feeList = this.DzfeeList
  3685. this.TWareHouseFees = {
  3686. fCorpid: "",
  3687. fToCorpid: this.queryParams.fCorpid,
  3688. fMblno: "",
  3689. fStatementNo: "",
  3690. fFeeid: "",
  3691. timeExamine: "",
  3692. timeInterval: "",
  3693. fSrcdc: "",
  3694. fReconciliation: "0",
  3695. timeReconci: "",
  3696. fDc: "D",
  3697. };
  3698. this.DzfeeList = result;
  3699. } else {
  3700. let i = Number(li) + 1;
  3701. Num += i + "、";
  3702. }
  3703. }
  3704. }
  3705. if (Num.length != 0) {
  3706. MessageBox.confirm(
  3707. "从表的第" +
  3708. Num.slice(0, Num.length - 1) +
  3709. "行重复,如本次金额变更,请删除后重新选择",
  3710. "提示",
  3711. {
  3712. confirmButtonText: "确定",
  3713. cancelButtonText: "取消",
  3714. type: "warning",
  3715. }
  3716. );
  3717. }
  3718. }
  3719. } else if (this.state_s == false) {
  3720. this.$message.error("本次金额不能大于原定金额");
  3721. }
  3722. },
  3723. // imgChangeI(fAmtdr,fAmt){
  3724. // if (fAmt <= fAmtdr){
  3725. // this.state_s = true
  3726. // }else if(fAmt > fAmtdr){
  3727. // this.$message.error('本次金额不能大于原定金额');
  3728. // this.state_s = false
  3729. // }
  3730. // },
  3731. // 导入搜索
  3732. searchFee(type) {
  3733. this.feeList = [];
  3734. this.$refs["feeListRules"].validate((valid) => {
  3735. if (valid) {
  3736. if (type == 1) {
  3737. importFee(this.TWareHouseFees).then((response) => {
  3738. this.feeList = response.rows;
  3739. if (this.feeList.length !== 0) {
  3740. this.$message.success("查询成功");
  3741. this.totAL = 0;
  3742. this.Ttime = 0;
  3743. for (let item in this.feeList) {
  3744. this.totAL += Number(this.feeList[item].fAmt);
  3745. this.Ttime += Number(this.feeList[item].fAmtdr);
  3746. this.$set(
  3747. this.feeList[item],
  3748. "fBsdate",
  3749. this.feeList[item].fBsdate.substring(0, 10)
  3750. );
  3751. }
  3752. } else {
  3753. this.$message.error("暂无数据");
  3754. }
  3755. });
  3756. } else if (type == 2) {
  3757. importFleet(this.TWareHouseFees).then((response) => {
  3758. this.feeList = response.rows;
  3759. if (this.feeList.length !== 0) {
  3760. this.$message.success("查询成功");
  3761. this.totAL = 0;
  3762. this.Ttime = 0;
  3763. for (let item in this.feeList) {
  3764. this.totAL += Number(this.feeList[item].fAmt);
  3765. this.Ttime += Number(this.feeList[item].fAmtdr);
  3766. this.$set(
  3767. this.feeList[item],
  3768. "fBsdate",
  3769. this.feeList[item].fBsdate.substring(0, 10)
  3770. );
  3771. }
  3772. } else {
  3773. this.$message.error("暂无数据");
  3774. }
  3775. });
  3776. } else if (type == 3) {
  3777. this.TWareHouseFees.fSystemType = this.queryParams.fSystemType;
  3778. importFee(this.TWareHouseFees).then((response) => {
  3779. this.feeList = response.rows;
  3780. if (this.feeList.length !== 0) {
  3781. this.$message.success("查询成功");
  3782. this.totAL = 0;
  3783. this.Ttime = 0;
  3784. for (let item in this.feeList) {
  3785. this.totAL += Number(this.feeList[item].fAmt);
  3786. this.Ttime += Number(this.feeList[item].fAmtdr);
  3787. if (this.feeList[item].fBsdate) {
  3788. this.$set(
  3789. this.feeList[item],
  3790. "fBsdate",
  3791. this.feeList[item].fBsdate.substring(0, 10)
  3792. );
  3793. }
  3794. }
  3795. } else {
  3796. this.$message.error("暂无数据");
  3797. }
  3798. });
  3799. }
  3800. }
  3801. });
  3802. },
  3803. /** 打开导入表弹窗 */
  3804. openImportTable() {
  3805. this.$refs.import.show();
  3806. },
  3807. /** 查询财务数据主列表 */
  3808. getList() {
  3809. this.loading = true;
  3810. this.getDicts("approval_process").then((response) => {
  3811. // this.feeList = response.rows;
  3812. this.options = response.data;
  3813. });
  3814. if (Cookies.get("sysType") == 1) {
  3815. listFee(this.tablefilter).then((response) => {
  3816. this.contrastList = response.rows;
  3817. this.total = response.total;
  3818. this.loading = false;
  3819. });
  3820. } else if (Cookies.get("sysType") == 2) {
  3821. listFleet(this.tablefilter).then((response) => {
  3822. this.contrastList = response.rows;
  3823. this.total = response.total;
  3824. this.loading = false;
  3825. });
  3826. } else if (Cookies.get("sysType") == 3) {
  3827. this.tablefilter.fBilltype = "KHDZ";
  3828. if (this.tablefilter.firstMoney || this.tablefilter.lastMoney) {
  3829. if (
  3830. this.tablefilter.firstMoney == "" ||
  3831. this.tablefilter.lastMoney == ""
  3832. ) {
  3833. this.$message.error("实付合计为金额区间,请填写完整");
  3834. this.tablefilter.amount = [];
  3835. } else if (
  3836. !this.tablefilter.firstMoney ||
  3837. !this.tablefilter.lastMoney
  3838. ) {
  3839. this.$message.error("实付合计为金额区间,请填写完整");
  3840. } else {
  3841. this.tablefilter.amount[0] = this.tablefilter.firstMoney;
  3842. this.tablefilter.amount[1] = this.tablefilter.lastMoney;
  3843. }
  3844. } else {
  3845. this.tablefilter.amount = [];
  3846. }
  3847. listFee(this.tablefilter).then((response) => {
  3848. this.contrastList = response.rows;
  3849. this.total = response.total;
  3850. this.loading = false;
  3851. });
  3852. }
  3853. },
  3854. // 取消按钮
  3855. cancel() {
  3856. if (this.notChange == true) {
  3857. this.mainTable = false;
  3858. } else {
  3859. this.$confirm("返回列表,是否保存?", "提示", {
  3860. confirmButtonText: "保存",
  3861. cancelButtonText: "取消",
  3862. type: "warning",
  3863. })
  3864. .then(() => {
  3865. this.submitForm(Cookies.get("sysType"), 1);
  3866. })
  3867. .catch(() => {
  3868. this.mainTable = false;
  3869. this.getList();
  3870. });
  3871. }
  3872. },
  3873. // 表单重置
  3874. reset() {
  3875. this.form = {
  3876. fId: null,
  3877. fBillno: null,
  3878. fCtrlcorpid: null,
  3879. fCorpid: null,
  3880. tMblno: null,
  3881. fAmtdr: null,
  3882. fAmtcr: null,
  3883. fBilltype: null,
  3884. fBillstatus: "0",
  3885. fRemarks: null,
  3886. fAccbilldate: null,
  3887. delFlag: null,
  3888. createBy: null,
  3889. fDeptid: null,
  3890. createTime: null,
  3891. updateBy: null,
  3892. updateTime: null,
  3893. };
  3894. this.resetForm("form");
  3895. },
  3896. /** 搜索按钮操作 */
  3897. handleQuery() {
  3898. this.queryParams.pageNum = 1;
  3899. this.getList();
  3900. // this.searchFee()
  3901. },
  3902. changefBilltype() {
  3903. this.businessTypeOption = [];
  3904. if (this.TWareHouseFees.fBilltype == "SJRK") {
  3905. this.getDicts("st_in_type").then((response) => {
  3906. this.businessTypeOption = response.data;
  3907. });
  3908. } else if (this.TWareHouseFees.fBilltype == "SJCK") {
  3909. this.getDicts("st_out_type").then((response) => {
  3910. this.businessTypeOption = response.data;
  3911. });
  3912. } else if (this.TWareHouseFees.fBilltype == "HQZY") {
  3913. this.getDicts("st_trans_type").then((response) => {
  3914. this.businessTypeOption = response.data;
  3915. });
  3916. }
  3917. },
  3918. /** 重置按钮操作 */
  3919. resetQuery() {
  3920. // this.resetForm("queryParams_s");
  3921. this.tablefilter = {
  3922. pageNum: 1,
  3923. pageSize: 10,
  3924. fBillno: null,
  3925. fCtrlcorpid: null,
  3926. fCorpid: null,
  3927. timeInterval: null,
  3928. };
  3929. this.handleQuery();
  3930. this.TWareHouseFees = {
  3931. fCorpid: "",
  3932. fToCorpid: "",
  3933. fMblno: "",
  3934. fStatementNo: "",
  3935. fFeeid: "",
  3936. timeExamine: "",
  3937. timeInterval: "",
  3938. fSrcdc: "",
  3939. fReconciliation: "0",
  3940. };
  3941. },
  3942. //导入重置按钮
  3943. resetQuery_s() {
  3944. this.TWareHouseFees = {
  3945. fCorpid: null,
  3946. fToCorpid: null,
  3947. fMblno: null,
  3948. fStatementNo: null,
  3949. fFeeid: null,
  3950. timeExamine: null,
  3951. timeInterval: null,
  3952. fDc: "D",
  3953. fReconciliation: "0",
  3954. };
  3955. },
  3956. // 多选框选中数据
  3957. // handleSelectionChange(selection) {
  3958. // this.ids = selection.map(item => item.fId)
  3959. // this.single = selection.length!==1
  3960. // this.multiple = !selection.length
  3961. // },
  3962. // handleSelectionChanGe(selection){
  3963. // if(selection.length > 0) {
  3964. // this.statrGo = false
  3965. // }else{
  3966. // this.statrGo = true
  3967. // }
  3968. // },
  3969. /** 新增按钮操作 */
  3970. handleAdd() {
  3971. queryUserVal().then((response) => {
  3972. this.queryParams.createBy = response.user.userName;
  3973. this.queryParams.createTime = Date.parse(new Date());
  3974. });
  3975. this.queryParams.fSystemType = "";
  3976. this.doNot = false;
  3977. this.notChange = false;
  3978. this.hide = true;
  3979. this.reset();
  3980. this.DzfeeList = [];
  3981. this.pass = {
  3982. fAmtdr: "", //应收合计
  3983. fAmtcr: "", //应付合计
  3984. fMblno: "", //提单号
  3985. fName: "", //货权方
  3986. fFeesName: "", //结算单位
  3987. fCorpid: "", //结算单位ID
  3988. };
  3989. this.mainTable = true;
  3990. this.title = "添加财务数据主";
  3991. this.queryParams = {
  3992. pageNum: 1,
  3993. pageSize: 10,
  3994. fBillno: null,
  3995. fCtrlcorpid: null,
  3996. fCorpid: null,
  3997. tMblno: null,
  3998. fAmtdr: null,
  3999. fId: null,
  4000. fAmtcr: null,
  4001. fBilltype: null,
  4002. fBillstatus: null,
  4003. fRemarks: null,
  4004. fAccbilldate: null,
  4005. fDeptid: null,
  4006. createBy: null,
  4007. timeReconci: null,
  4008. fSystemType: Cookies.get("sysType"),
  4009. };
  4010. },
  4011. // 查看按钮
  4012. check(row, res) {
  4013. this.doNot = true;
  4014. this.notChange = true;
  4015. if (Cookies.get("sysType") == 1) {
  4016. getFee(row.fId).then((response) => {
  4017. this.Operator = response.data.tFee.createBy;
  4018. if (response.data.feeDoList != 0) {
  4019. response.data.feeDoList.map((e) => {
  4020. if (e.fBillingDeadline) {
  4021. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4022. }
  4023. if (e.fBsdate) {
  4024. e.fBsdate = e.fBsdate.slice(0, 10);
  4025. }
  4026. if (e.fChargedate) {
  4027. e.fChargedate = e.fChargedate.slice(0, 10);
  4028. }
  4029. // if (e.fSrcdc) {
  4030. // if (e.fSrcdc == "D") {
  4031. // e.fSrcdc = "收";
  4032. // } else {
  4033. // e.fSrcdc = "付";
  4034. // }
  4035. // }
  4036. });
  4037. }
  4038. this.DzfeeList = response.data.feeDoList;
  4039. this.fWbuOptions = response.data.feesList;
  4040. this.queryParams = response.data.tFee;
  4041. this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4042. this.fWbuOptions = response.data.feesList;
  4043. this.fMblnoOptions = response.data.corps;
  4044. this.mainTable = true;
  4045. this.disappear = true;
  4046. this.title = "修改财务数据主";
  4047. if (res == 1) {
  4048. this.notChange = true;
  4049. if (this.Operator == this.Lander) {
  4050. this.disappear = false;
  4051. this.reset();
  4052. this.pass = {
  4053. fAmtdr: "", //应收合计
  4054. fAmtcr: "", //应付合计
  4055. fMblno: "", //提单号
  4056. fName: "", //货权方
  4057. fFeesName: "", //结算单位
  4058. fCorpid: "", //结算单位ID
  4059. };
  4060. const fId = row.fId || this.ids;
  4061. getFee(fId).then((response) => {
  4062. if (response.data.feeDoList != 0) {
  4063. response.data.feeDoList.map((e) => {
  4064. if (e.fBillingDeadline) {
  4065. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4066. }
  4067. if (e.fBsdate) {
  4068. e.fBsdate = e.fBsdate.slice(0, 10);
  4069. }
  4070. if (e.fChargedate) {
  4071. e.fChargedate = e.fChargedate.slice(0, 10);
  4072. }
  4073. if (e.fSrcdc) {
  4074. if (e.fSrcdc == "D") {
  4075. e.fSrcdc = "收";
  4076. } else {
  4077. e.fSrcdc = "付";
  4078. }
  4079. }
  4080. });
  4081. }
  4082. this.DzfeeList = response.data.feeDoList;
  4083. this.fWbuOptions = response.data.feesList;
  4084. this.queryParams = response.data.tFee;
  4085. this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4086. this.fWbuOptions = response.data.feesList;
  4087. this.fMblnoOptions = response.data.corps;
  4088. this.mainTable = true;
  4089. });
  4090. } else {
  4091. this.notChange = true;
  4092. }
  4093. } else {
  4094. this.notChange = true;
  4095. this.reset();
  4096. this.pass = {
  4097. fAmtdr: "", //应收合计
  4098. fAmtcr: "", //应付合计
  4099. fMblno: "", //提单号
  4100. fName: "", //货权方
  4101. fFeesName: "", //结算单位
  4102. fCorpid: "", //结算单位ID
  4103. };
  4104. const fId = row.fId || this.ids;
  4105. getFee(fId).then((response) => {
  4106. if (response.data.feeDoList != 0) {
  4107. response.data.feeDoList.map((e) => {
  4108. if (e.fBillingDeadline) {
  4109. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4110. }
  4111. if (e.fBsdate) {
  4112. e.fBsdate = e.fBsdate.slice(0, 10);
  4113. }
  4114. if (e.fChargedate) {
  4115. e.fChargedate = e.fChargedate.slice(0, 10);
  4116. }
  4117. if (e.fSrcdc) {
  4118. if (e.fSrcdc == "D") {
  4119. e.fSrcdc = "收";
  4120. } else {
  4121. e.fSrcdc = "付";
  4122. }
  4123. }
  4124. });
  4125. }
  4126. this.DzfeeList = response.data.feeDoList;
  4127. this.fWbuOptions = response.data.feesList;
  4128. this.queryParams = response.data.tFee;
  4129. this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4130. this.fWbuOptions = response.data.feesList;
  4131. this.fMblnoOptions = response.data.corps;
  4132. this.mainTable = true;
  4133. });
  4134. }
  4135. });
  4136. } else if (Cookies.get("sysType") == 2) {
  4137. getFleet(row.fId).then((response) => {
  4138. this.Operator = response.data.tFee.createBy;
  4139. if (response.data.feeDoList != 0) {
  4140. response.data.feeDoList.map((e) => {
  4141. if (e.fBillingDeadline) {
  4142. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4143. }
  4144. if (e.fBsdate) {
  4145. e.fBsdate = e.fBsdate.slice(0, 10);
  4146. }
  4147. if (e.fChargedate) {
  4148. e.fChargedate = e.fChargedate.slice(0, 10);
  4149. }
  4150. // if (e.fSrcdc) {
  4151. // if (e.fSrcdc == "D") {
  4152. // e.fSrcdc = "收";
  4153. // } else {
  4154. // e.fSrcdc = "付";
  4155. // }
  4156. // }
  4157. });
  4158. }
  4159. this.DzfeeList = response.data.feeDoList;
  4160. this.fWbuOptions = response.data.feesList;
  4161. this.queryParams = response.data.tFee;
  4162. this.fWbuOptions = response.data.feesList;
  4163. this.fMblnoOptions = response.data.corps;
  4164. this.mainTable = true;
  4165. this.disappear = true;
  4166. this.title = "修改财务数据主";
  4167. if (res == 1) {
  4168. this.notChange = true;
  4169. if (this.Operator == this.Lander) {
  4170. this.disappear = false;
  4171. this.reset();
  4172. this.pass = {
  4173. fAmtdr: "", //应收合计
  4174. fAmtcr: "", //应付合计
  4175. fMblno: "", //提单号
  4176. fName: "", //货权方
  4177. fFeesName: "", //结算单位
  4178. fCorpid: "", //结算单位ID
  4179. };
  4180. const fId = row.fId || this.ids;
  4181. getFleet(fId).then((response) => {
  4182. if (response.data.feeDoList != 0) {
  4183. response.data.feeDoList.map((e) => {
  4184. if (e.fBillingDeadline) {
  4185. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4186. }
  4187. if (e.fBsdate) {
  4188. e.fBsdate = e.fBsdate.slice(0, 10);
  4189. }
  4190. if (e.fChargedate) {
  4191. e.fChargedate = e.fChargedate.slice(0, 10);
  4192. }
  4193. if (e.fSrcdc) {
  4194. if (e.fSrcdc == "D") {
  4195. e.fSrcdc = "收";
  4196. } else {
  4197. e.fSrcdc = "付";
  4198. }
  4199. }
  4200. });
  4201. }
  4202. this.DzfeeList = response.data.feeDoList;
  4203. this.fWbuOptions = response.data.feesList;
  4204. this.queryParams = response.data.tFee;
  4205. this.fWbuOptions = response.data.feesList;
  4206. this.fMblnoOptions = response.data.corps;
  4207. this.mainTable = true;
  4208. });
  4209. } else {
  4210. this.notChange = true;
  4211. }
  4212. } else {
  4213. this.notChange = true;
  4214. this.reset();
  4215. this.pass = {
  4216. fAmtdr: "", //应收合计
  4217. fAmtcr: "", //应付合计
  4218. fMblno: "", //提单号
  4219. fName: "", //货权方
  4220. fFeesName: "", //结算单位
  4221. fCorpid: "", //结算单位ID
  4222. };
  4223. const fId = row.fId || this.ids;
  4224. getFleet(fId).then((response) => {
  4225. if (response.data.feeDoList != 0) {
  4226. response.data.feeDoList.map((e) => {
  4227. if (e.fBillingDeadline) {
  4228. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4229. }
  4230. if (e.fBsdate) {
  4231. e.fBsdate = e.fBsdate.slice(0, 10);
  4232. }
  4233. if (e.fChargedate) {
  4234. e.fChargedate = e.fChargedate.slice(0, 10);
  4235. }
  4236. if (e.fSrcdc) {
  4237. if (e.fSrcdc == "D") {
  4238. e.fSrcdc = "收";
  4239. } else {
  4240. e.fSrcdc = "付";
  4241. }
  4242. }
  4243. });
  4244. }
  4245. this.DzfeeList = response.data.feeDoList;
  4246. this.fWbuOptions = response.data.feesList;
  4247. this.queryParams = response.data.tFee;
  4248. this.fWbuOptions = response.data.feesList;
  4249. this.fMblnoOptions = response.data.corps;
  4250. this.mainTable = true;
  4251. });
  4252. }
  4253. });
  4254. } else if (Cookies.get("sysType") == 3) {
  4255. getFee(row.fId).then((response) => {
  4256. this.Operator = response.data.tFee.createBy;
  4257. if (response.data.feeDoList != 0) {
  4258. response.data.feeDoList.map((e) => {
  4259. if (e.fBillingDeadline) {
  4260. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4261. }
  4262. if (e.fBsdate) {
  4263. e.fBsdate = e.fBsdate.slice(0, 10);
  4264. }
  4265. if (e.fChargedate) {
  4266. e.fChargedate = e.fChargedate.slice(0, 10);
  4267. }
  4268. });
  4269. }
  4270. this.DzfeeList = response.data.feeDoList;
  4271. this.fWbuOptions = response.data.feesList;
  4272. this.queryParams = response.data.tFee;
  4273. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4274. // this.fWbuOptions = response.data.feesList;
  4275. this.fMblnoOptions = response.data.corps;
  4276. this.mainTable = true;
  4277. this.disappear = true;
  4278. this.title = "修改财务数据主";
  4279. if (res == 1) {
  4280. this.notChange = true;
  4281. if (this.Operator == this.Lander) {
  4282. this.disappear = false;
  4283. this.reset();
  4284. this.pass = {
  4285. fAmtdr: "", //应收合计
  4286. fAmtcr: "", //应付合计
  4287. fMblno: "", //提单号
  4288. fName: "", //货权方
  4289. fFeesName: "", //结算单位
  4290. fCorpid: "", //结算单位ID
  4291. };
  4292. const fId = row.fId || this.ids;
  4293. getFee(fId).then((response) => {
  4294. if (response.data.feeDoList != 0) {
  4295. response.data.feeDoList.map((e) => {
  4296. if (e.fBillingDeadline) {
  4297. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4298. }
  4299. if (e.fBsdate) {
  4300. e.fBsdate = e.fBsdate.slice(0, 10);
  4301. }
  4302. if (e.fChargedate) {
  4303. e.fChargedate = e.fChargedate.slice(0, 10);
  4304. }
  4305. });
  4306. }
  4307. this.DzfeeList = response.data.feeDoList;
  4308. this.fWbuOptions = response.data.feesList;
  4309. this.queryParams = response.data.tFee;
  4310. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4311. this.fMblnoOptions = response.data.corps;
  4312. this.mainTable = true;
  4313. });
  4314. } else {
  4315. this.notChange = true;
  4316. }
  4317. } else {
  4318. this.notChange = true;
  4319. this.reset();
  4320. this.pass = {
  4321. fAmtdr: "", //应收合计
  4322. fAmtcr: "", //应付合计
  4323. fMblno: "", //提单号
  4324. fName: "", //货权方
  4325. fFeesName: "", //结算单位
  4326. fCorpid: "", //结算单位ID
  4327. };
  4328. const fId = row.fId || this.ids;
  4329. getFee(fId).then((response) => {
  4330. if (response.data.feeDoList != 0) {
  4331. response.data.feeDoList.map((e) => {
  4332. if (e.fBillingDeadline) {
  4333. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4334. }
  4335. if (e.fBsdate) {
  4336. e.fBsdate = e.fBsdate.slice(0, 10);
  4337. }
  4338. if (e.fChargedate) {
  4339. e.fChargedate = e.fChargedate.slice(0, 10);
  4340. }
  4341. });
  4342. }
  4343. this.DzfeeList = response.data.feeDoList;
  4344. this.fWbuOptions = response.data.feesList;
  4345. this.queryParams = response.data.tFee;
  4346. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4347. // this.fWbuOptions = response.data.feesList;
  4348. this.fMblnoOptions = response.data.corps;
  4349. this.mainTable = true;
  4350. this.disappear = true;
  4351. });
  4352. }
  4353. });
  4354. }
  4355. },
  4356. /** 修改按钮操作 */
  4357. handleUpdate(row) {
  4358. this.mainTable = true;
  4359. this.notChange = false;
  4360. this.hide = false;
  4361. this.reset();
  4362. this.pass = {
  4363. fAmtdr: "", //应收合计
  4364. fAmtcr: "", //应付合计
  4365. fMblno: "", //提单号
  4366. fName: "", //货权方
  4367. fFeesName: "", //结算单位
  4368. fCorpid: "", //结算单位ID
  4369. };
  4370. const fId = row.fId || this.ids;
  4371. if (Cookies.get("sysType") == 1) {
  4372. getFee(fId).then((response) => {
  4373. this.Operator = response.data.tFee.createBy;
  4374. if (response.data.feeDoList != 0) {
  4375. response.data.feeDoList.map((e) => {
  4376. if (e.fBillingDeadline) {
  4377. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4378. }
  4379. if (e.fBsdate) {
  4380. e.fBsdate = e.fBsdate.slice(0, 10);
  4381. }
  4382. if (e.fChargedate) {
  4383. e.fChargedate = e.fChargedate.slice(0, 10);
  4384. }
  4385. // if (e.fSrcdc) {
  4386. // if (e.fSrcdc == "D") {
  4387. // e.fSrcdc = "收";
  4388. // } else {
  4389. // e.fSrcdc = "付";
  4390. // }
  4391. // }
  4392. });
  4393. }
  4394. this.DzfeeList = response.data.feeDoList;
  4395. this.fWbuOptions = response.data.feesList;
  4396. listCorps().then((response) => {
  4397. this.fMblnoOptions = response;
  4398. });
  4399. // this.fMblnoOptions = response.data.corps;
  4400. this.queryParams = response.data.tFee;
  4401. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4402. this.mainTable = true;
  4403. this.title = "修改财务数据主";
  4404. if (this.DzfeeList) {
  4405. this.doNot = true;
  4406. } else {
  4407. this.doNot = false;
  4408. }
  4409. });
  4410. } else if (Cookies.get("sysType") == 2) {
  4411. getFleet(fId).then((response) => {
  4412. this.Operator = response.data.tFee.createBy;
  4413. if (response.data.feeDoList != 0) {
  4414. response.data.feeDoList.map((e) => {
  4415. if (e.fBillingDeadline) {
  4416. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4417. }
  4418. if (e.fBsdate) {
  4419. e.fBsdate = e.fBsdate.slice(0, 10);
  4420. }
  4421. if (e.fChargedate) {
  4422. e.fChargedate = e.fChargedate.slice(0, 10);
  4423. }
  4424. // if (e.fSrcdc) {
  4425. // if (e.fSrcdc == "D") {
  4426. // e.fSrcdc = "收";
  4427. // } else {
  4428. // e.fSrcdc = "付";
  4429. // }
  4430. // }
  4431. });
  4432. }
  4433. this.DzfeeList = response.data.feeDoList;
  4434. this.fWbuOptions = response.data.feesList;
  4435. this.queryParams = response.data.tFee;
  4436. this.fMblnoOptions = response.data.corps;
  4437. this.mainTable = true;
  4438. this.title = "修改财务数据主";
  4439. if (this.DzfeeList) {
  4440. this.doNot = true;
  4441. } else {
  4442. this.doNot = false;
  4443. }
  4444. });
  4445. } else if (Cookies.get("sysType") == 3) {
  4446. getFee(fId).then((response) => {
  4447. this.Operator = response.data.tFee.createBy;
  4448. if (response.data.feeDoList != 0) {
  4449. response.data.feeDoList.map((e) => {
  4450. if (e.fBillingDeadline) {
  4451. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4452. }
  4453. if (e.fBsdate) {
  4454. e.fBsdate = e.fBsdate.slice(0, 10);
  4455. }
  4456. if (e.fChargedate) {
  4457. e.fChargedate = e.fChargedate.slice(0, 10);
  4458. }
  4459. });
  4460. }
  4461. this.DzfeeList = response.data.feeDoList;
  4462. this.fWbuOptions = response.data.feesList;
  4463. this.queryParams = response.data.tFee;
  4464. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4465. this.fMblnoOptions = response.data.corps;
  4466. this.mainTable = true;
  4467. this.title = "修改财务数据主";
  4468. if (this.DzfeeList) {
  4469. this.doNot = true;
  4470. } else {
  4471. this.doNot = false;
  4472. }
  4473. });
  4474. }
  4475. },
  4476. /** 远程模糊查询用户 */
  4477. corpsRemoteMethod(name) {
  4478. // if (name == null || name === "") {
  4479. // return false;
  4480. // }
  4481. let queryParams = { fName: name };
  4482. listCorps(queryParams).then((response) => {
  4483. this.fMblnoOptions = response;
  4484. this.KHblnoOptions = response;
  4485. });
  4486. },
  4487. /** 提交按钮 */
  4488. submitForm(type, res) {
  4489. this.$refs["ruless"].validate((valid) => {
  4490. if (valid) {
  4491. if (!this.queryParams.fId || this.queryParams.fId == null) {
  4492. this.queryParams.fBillstatus = "1";
  4493. let formData = new window.FormData();
  4494. formData.append("tFee", JSON.stringify(this.queryParams));
  4495. formData.append("tFeeDo", JSON.stringify(this.DzfeeList));
  4496. if (type == 1) {
  4497. updateFee(formData).then((response) => {
  4498. this.queryParams = response.data.tFee;
  4499. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4500. this.msgSuccess("新增成功");
  4501. // this.DzfeeList = []
  4502. // this.open = false;
  4503. this.getList();
  4504. });
  4505. } else if (type == 2) {
  4506. addFleet(formData).then((response) => {
  4507. this.queryParams = response.data.tFee;
  4508. this.msgSuccess("新增成功");
  4509. // this.DzfeeList = []
  4510. // this.open = false;
  4511. this.getList();
  4512. });
  4513. } else if (type == 3 || this.typevalue == 3) {
  4514. formData.append("billsType", "KHDZ");
  4515. updateFee(formData).then((response) => {
  4516. this.queryParams = response.data.tFee;
  4517. this.msgSuccess("操作成功");
  4518. if (res === 0) {
  4519. this.mainTable = true;
  4520. } else if (res == undefined) {
  4521. this.mainTable = true;
  4522. } else {
  4523. this.mainTable = false;
  4524. }
  4525. this.getList();
  4526. });
  4527. }
  4528. } else {
  4529. this.pass.fAmtcr = 0;
  4530. this.pass.fAmtdr = 0;
  4531. for (let item in this.DzfeeList) {
  4532. this.pass.fAmtcr += Number(this.DzfeeList[item].fAmt);
  4533. this.pass.fAmtdr += Number(this.DzfeeList[item].fAmtdr);
  4534. }
  4535. this.queryParams.fAmtcr = Number(this.pass.fAmtcr).toFixed(2);
  4536. this.queryParams.fAmtdr = Number(this.pass.fAmtdr).toFixed(2);
  4537. // this.pass.fAmtcr.toFixed(2);
  4538. this.queryParams.fBillstatus = "1";
  4539. let formData = new window.FormData();
  4540. formData.append("tFee", JSON.stringify(this.queryParams));
  4541. formData.append("tFeeDo", JSON.stringify(this.DzfeeList));
  4542. if (type == 1) {
  4543. addFee(formData).then((response) => {
  4544. this.msgSuccess("修改成功");
  4545. this.getList();
  4546. });
  4547. } else if (type == 2) {
  4548. addFleet(formData).then((response) => {
  4549. this.msgSuccess("修改成功");
  4550. this.getList();
  4551. });
  4552. } else if (type == 3 || this.typevalue == 3) {
  4553. formData.append("billsType", "KHDZ");
  4554. addFee(formData).then((response) => {
  4555. this.msgSuccess("操作成功");
  4556. if (res === 0) {
  4557. this.mainTable = true;
  4558. } else if (res == undefined) {
  4559. this.mainTable = true;
  4560. } else {
  4561. this.mainTable = false;
  4562. }
  4563. this.getList();
  4564. });
  4565. }
  4566. }
  4567. }
  4568. });
  4569. },
  4570. /** 删除按钮操作 */
  4571. handleDelete(row) {
  4572. const fIds = row.fId || this.ids;
  4573. let tips = "";
  4574. if (Cookies.get("sysType") == 1) {
  4575. detailFee(fIds).then((res) => {
  4576. switch (res.msg) {
  4577. case "0": {
  4578. this.$message.error("当前数据已被其他操作员操作,请刷新页面");
  4579. break;
  4580. }
  4581. case "1": {
  4582. tips = "当前主表有数据,从表无数据,确认是否删除?";
  4583. this.delete_s(fIds, tips);
  4584. break;
  4585. }
  4586. case "2": {
  4587. tips = "当前主表有数据,从表有数据,确认是否删除?";
  4588. this.delete_s(fIds, tips);
  4589. break;
  4590. }
  4591. default: {
  4592. return this.$message.error("未知错误,无状态");
  4593. }
  4594. }
  4595. });
  4596. } else if (Cookies.get("sysType") == 2) {
  4597. detailFleet(fIds).then((res) => {
  4598. switch (res.msg) {
  4599. case "0": {
  4600. this.$message.error("当前数据已被其他操作员操作,请刷新页面");
  4601. break;
  4602. }
  4603. case "1": {
  4604. tips = "当前主表有数据,从表无数据,确认是否删除?";
  4605. this.delete_s(fIds, tips);
  4606. break;
  4607. }
  4608. case "2": {
  4609. tips = "当前主表有数据,从表有数据,确认是否删除?";
  4610. this.delete_s(fIds, tips);
  4611. break;
  4612. }
  4613. default: {
  4614. return this.$message.error("未知错误,无状态");
  4615. }
  4616. }
  4617. });
  4618. } else if (Cookies.get("sysType") == 3) {
  4619. detailFee(fIds).then((res) => {
  4620. switch (res.msg) {
  4621. case "0": {
  4622. this.$message.error("当前数据已被其他操作员操作,请刷新页面");
  4623. break;
  4624. }
  4625. case "1": {
  4626. tips = "当前主表有数据,从表无数据,确认是否删除?";
  4627. this.delete_s(fIds, tips);
  4628. break;
  4629. }
  4630. case "2": {
  4631. tips = "当前主表有数据,从表有数据,确认是否删除?";
  4632. this.delete_s(fIds, tips);
  4633. break;
  4634. }
  4635. default: {
  4636. return this.$message.error("未知错误,无状态");
  4637. }
  4638. }
  4639. });
  4640. }
  4641. },
  4642. delete_s(fIds, tips) {
  4643. this.$confirm(tips, "警告", {
  4644. confirmButtonText: "确定",
  4645. cancelButtonText: "取消",
  4646. type: "warning",
  4647. })
  4648. .then(function () {
  4649. if (Cookies.get("sysType") == 1) {
  4650. return delFee(fIds);
  4651. } else if (Cookies.get("sysType") == 2) {
  4652. return delFleet(fIds);
  4653. } else if (Cookies.get("sysType") == 3) {
  4654. return delFee(fIds);
  4655. }
  4656. })
  4657. .then(() => {
  4658. this.getList();
  4659. this.msgSuccess("删除成功");
  4660. });
  4661. },
  4662. // 远程模糊查询费用名称
  4663. fWRemoteMethod(name) {
  4664. this.fWbuOptions = [];
  4665. if (name == null || name === "") {
  4666. return false;
  4667. }
  4668. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  4669. listFees(queryParams).then((response) => {
  4670. this.fWbuOptions = response.rows;
  4671. });
  4672. },
  4673. /** 导出按钮操作 */
  4674. handleExport() {
  4675. const queryParams = this.queryParams;
  4676. this.$confirm("是否确认导出所有财务数据主数据项?", "警告", {
  4677. confirmButtonText: "确定",
  4678. cancelButtonText: "取消",
  4679. type: "warning",
  4680. })
  4681. .then(function () {
  4682. if (Cookies.get("sysType") == 2) {
  4683. return contrastExport(queryParams);
  4684. } else {
  4685. return exportFee(queryParams);
  4686. }
  4687. })
  4688. .then((response) => {
  4689. this.download(response.msg);
  4690. });
  4691. },
  4692. exportData() {
  4693. // 在这里判断筛选DzfeeList={}
  4694. const DzfeeList = this.DzfeeList;
  4695. this.$confirm("是否确认导出所有财务数据主数据项?", "警告", {
  4696. confirmButtonText: "确定",
  4697. cancelButtonText: "取消",
  4698. type: "warning",
  4699. })
  4700. .then(function () {
  4701. return;
  4702. })
  4703. .then(function () {
  4704. this.download(response.msg);
  4705. });
  4706. },
  4707. //清空一行
  4708. deleteRow(index, rows) {
  4709. this.queryParams.fAmtdr = 0;
  4710. this.queryParams.fAmtcr = 0;
  4711. rows.splice(index, 1);
  4712. for (let item in this.DzfeeList) {
  4713. this.queryParams.fAmtcr = this.DzfeeList[item].fAmt;
  4714. this.queryParams.fAmtdr = this.DzfeeList[item].fAmtdr;
  4715. }
  4716. if (this.DzfeeList == 0) {
  4717. this.doNot = false;
  4718. } else {
  4719. this.doNot = true;
  4720. }
  4721. },
  4722. },
  4723. };
  4724. </script>
  4725. <style lang="scss" scoped>
  4726. .tabSetting {
  4727. display: flex;
  4728. justify-content: flex-end;
  4729. }
  4730. .listStyle {
  4731. display: flex;
  4732. border-top: 1px solid #dcdfe6;
  4733. border-left: 1px solid #dcdfe6;
  4734. border-right: 1px solid #dcdfe6;
  4735. }
  4736. .listStyle:last-child {
  4737. border-bottom: 1px solid #dcdfe6;
  4738. }
  4739. .progress {
  4740. display: flex;
  4741. align-items: center;
  4742. padding: 2px;
  4743. background-color: rgba(0, 0, 0, 0.05);
  4744. height: 100%;
  4745. }
  4746. .avue-crud__dialog__header {
  4747. display: -webkit-box;
  4748. display: -ms-flexbox;
  4749. display: flex;
  4750. -webkit-box-align: center;
  4751. -ms-flex-align: center;
  4752. align-items: center;
  4753. -webkit-box-pack: justify;
  4754. -ms-flex-pack: justify;
  4755. justify-content: space-between;
  4756. }
  4757. .el-dialog__title {
  4758. color: rgba(0, 0, 0, 0.85);
  4759. font-weight: 500;
  4760. word-wrap: break-word;
  4761. }
  4762. .avue-crud__dialog__menu {
  4763. padding-right: 20px;
  4764. float: left;
  4765. }
  4766. .avue-crud__dialog__menu i {
  4767. color: #909399;
  4768. font-size: 15px;
  4769. }
  4770. .el-icon-full-screen {
  4771. cursor: pointer;
  4772. }
  4773. .el-icon-full-screen:before {
  4774. content: "\e719";
  4775. }
  4776. </style>
  4777. <style lang="scss">
  4778. .el-dialog__body {
  4779. padding: 0 20px 30px 20px;
  4780. }
  4781. </style>