index.vue 150 KB

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