index.vue 144 KB

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