index.vue 174 KB

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