index.vue 143 KB

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