index.vue 160 KB

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