AddOrUpdate.vue 206 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474
  1. <template>
  2. <div>
  3. <div style="display: flex; justify-content: space-between">
  4. <div style="display: flex; align-items: center">
  5. <el-breadcrumb separator="/">
  6. <el-breadcrumb-item
  7. ><span style="font-weight: 700">调拨</span></el-breadcrumb-item
  8. >
  9. <el-breadcrumb-item
  10. ><span style="font-weight: 700"
  11. >调拨详情页</span
  12. ></el-breadcrumb-item
  13. >
  14. </el-breadcrumb>
  15. <el-button
  16. style="margin-left: 10px"
  17. size="mini"
  18. icon="el-icon-arrow-left"
  19. @click="goBack"
  20. >返回列表</el-button
  21. >
  22. </div>
  23. <div v-if="showApproval == 0">
  24. <el-button
  25. type="info"
  26. size="small"
  27. @click="addOrUpdateHandle(form, 'warehouse_status')"
  28. v-if="form.warehouseStatus > 3"
  29. >查看接单审批
  30. </el-button>
  31. <el-button
  32. type="info"
  33. size="small"
  34. @click="addOrUpdateHand(form, 'warehouse_status')"
  35. v-if="form.warehouseStatus > 3 && approVal == true"
  36. >接单审批
  37. </el-button>
  38. <el-button
  39. type="info"
  40. :disabled="form.warehouseStatus >= 4"
  41. size="small"
  42. @click="verifyForm"
  43. v-if="form.fBillstatus"
  44. >接单请核
  45. </el-button>
  46. <el-button
  47. type="info"
  48. :disabled="browseStatus"
  49. size="small"
  50. @click="ordersRevoke"
  51. v-if="form.warehouseStatus == 6"
  52. >撤销接单请核
  53. </el-button>
  54. <el-button
  55. type="info"
  56. :disabled="browseStatus"
  57. size="small"
  58. @click="revokeTwo('warehouse_status')"
  59. v-if="form.warehouseStatus == 4"
  60. >撤销接单审批
  61. </el-button>
  62. </div>
  63. </div>
  64. <br />
  65. <el-form ref="form" :model="form" :rules="rules" label-width="130px">
  66. <el-row>
  67. <el-col :span="8">
  68. <el-form-item label="客户" prop="fCorpid">
  69. <el-select
  70. v-model="form.fCorpid"
  71. clearable
  72. filterable
  73. placeholder="请输入关键词"
  74. style="width: 80%"
  75. @change="changefStltype"
  76. :disabled="detailList.length > 0"
  77. >
  78. <el-option
  79. v-for="(item, index) in fMblnoOptions"
  80. :key="index.fId"
  81. :label="item.fName"
  82. :value="item.fId"
  83. ></el-option>
  84. </el-select>
  85. </el-form-item>
  86. </el-col>
  87. <el-col :span="8">
  88. <el-form-item
  89. label="结算方式"
  90. prop="fStltypeid"
  91. v-if="dataShowcar == '1'"
  92. >
  93. <el-select
  94. v-model="form.fStltypeid"
  95. placeholder="请选择结算方式"
  96. clearable
  97. :disabled="browseStatus"
  98. style="width: 80%"
  99. >
  100. <el-option
  101. v-for="(item, index) in fStltypeOptions"
  102. :key="index.dictValue"
  103. :label="item.dictLabel"
  104. :value="item.dictValue"
  105. />
  106. </el-select>
  107. </el-form-item>
  108. <el-form-item label="作业类型" prop="fBusinessType" v-else>
  109. <el-select
  110. style="width: 80%"
  111. v-model="form.fBusinessType"
  112. filterable
  113. @change="educationChange"
  114. :disabled="
  115. contrOl ||
  116. browseStatus ||
  117. warehouseDrList.length > 0 ||
  118. warehouseCrList.length > 0
  119. "
  120. >
  121. <el-option
  122. v-for="(item, index) in businessTypeOption"
  123. :key="index.dictValue"
  124. :label="item.dictLabel"
  125. :value="item.dictValue"
  126. ></el-option>
  127. </el-select>
  128. </el-form-item>
  129. </el-col>
  130. <el-col :span="8">
  131. <el-form-item label="提单号" prop="fMblno">
  132. <el-input
  133. v-model="form.fMblno"
  134. style="width: 80%"
  135. placeholder="请输入提单号"
  136. :disabled="detailList.length != 0"
  137. />
  138. </el-form-item>
  139. </el-col>
  140. </el-row>
  141. <el-row>
  142. <el-col :span="8">
  143. <el-form-item label="业务日期" prop="fBsdate">
  144. <el-date-picker
  145. v-model="form.fBsdate"
  146. style="width: 80%"
  147. type="date"
  148. :disabled="browseStatus"
  149. value-format="timestamp"
  150. placeholder="业务日期"
  151. @change="changeDate"
  152. format="yyyy-MM-dd"
  153. >
  154. </el-date-picker>
  155. </el-form-item>
  156. </el-col>
  157. <el-col :span="8">
  158. <el-form-item label="业务时间" prop="fBstime">
  159. <el-time-picker
  160. style="width: 80%"
  161. :disabled="browseStatus"
  162. v-model="form.fBstime"
  163. :picker-options="{
  164. selectableRange: '00:00:00 - 23:59:59',
  165. }"
  166. value-format="timestamp"
  167. placeholder="任意时间点"
  168. >
  169. </el-time-picker>
  170. </el-form-item>
  171. </el-col>
  172. <el-col :span="8">
  173. <el-form-item label="仓管员" prop="fStorekeeper">
  174. <el-select
  175. v-model="form.fStorekeeper"
  176. filterable
  177. clearable
  178. :disabled="browseStatus"
  179. style="width: 80%"
  180. placeholder="请输入模糊查找"
  181. >
  182. <el-option
  183. v-for="(item, index) in userOptions"
  184. :key="index.userName"
  185. :label="item.nickName"
  186. :value="item.userName"
  187. ></el-option>
  188. </el-select>
  189. </el-form-item>
  190. </el-col>
  191. </el-row>
  192. <el-row>
  193. <el-col :span="8">
  194. <el-form-item label="调入仓库" prop="fWarehouseid">
  195. <el-select
  196. v-model="form.fWarehouseid"
  197. filterable
  198. :disabled="browseStatus || detailList.length > 0"
  199. style="width: 80%"
  200. placeholder="请选择"
  201. @change="warehouseChange"
  202. >
  203. <el-option
  204. v-for="(item, index) in warehouseOptions"
  205. :key="index.fId"
  206. :label="item.fName"
  207. :value="item.fId"
  208. ></el-option>
  209. </el-select>
  210. </el-form-item>
  211. </el-col>
  212. <el-col :span="8">
  213. <el-form-item label="调出仓库" prop="fInwarehouseid">
  214. <el-select
  215. v-model="form.fInwarehouseid"
  216. filterable
  217. :disabled="browseStatus || detailList.length > 0"
  218. style="width: 80%"
  219. placeholder="请选择"
  220. >
  221. <el-option
  222. v-for="(item, index) in warehouseOptions"
  223. :key="index.fId"
  224. :label="item.fName"
  225. :value="item.fId"
  226. ></el-option>
  227. </el-select>
  228. </el-form-item>
  229. </el-col>
  230. <el-col :span="8">
  231. <el-form-item label="单据编号" prop="fBillno">
  232. <el-input
  233. v-model="form.fBillno"
  234. style="width: 80%"
  235. disabled
  236. placeholder="单据编号"
  237. />
  238. </el-form-item>
  239. </el-col>
  240. </el-row>
  241. <el-row>
  242. <el-col :span="8">
  243. <el-form-item label="计划调拨件数" prop="fPlanqty">
  244. <el-input
  245. v-model.number="form.fPlanqty"
  246. style="width: 80%"
  247. maxlength="9"
  248. laceholder="计划件数"
  249. :disabled="browseStatus || current !== before"
  250. />
  251. </el-form-item>
  252. </el-col>
  253. <el-col :span="8">
  254. <el-form-item label="计划调拨净重(kg)" prop="fPlannetweight">
  255. <el-input
  256. v-model="form.fPlannetweight"
  257. style="width: 80%"
  258. maxlength="16"
  259. v-input-limit="2"
  260. laceholder="计划净重"
  261. :disabled="browseStatus || current !== before"
  262. @change="tfNetweight"
  263. >
  264. <template slot="append">{{ tfNetweightnum }}吨</template>
  265. </el-input>
  266. </el-form-item>
  267. </el-col>
  268. <el-col :span="8">
  269. <el-form-item label="计划调拨毛重(kg)" prop="fPlangrossweight">
  270. <el-input
  271. v-model="form.fPlangrossweight"
  272. v-input-limit="2"
  273. style="width: 80%"
  274. laceholder="计划毛重"
  275. maxlength="16"
  276. :disabled="browseStatus || current !== before"
  277. @change="tfGrossweight"
  278. >
  279. <template slot="append">{{ tfGrossweightnum }}吨</template>
  280. </el-input>
  281. </el-form-item>
  282. </el-col>
  283. </el-row>
  284. <el-row v-if="detailsHidden2">
  285. <el-col :span="8">
  286. <el-form-item
  287. label="作业类型"
  288. prop="fBusinessType"
  289. v-if="dataShowcar == '1'"
  290. >
  291. <el-select
  292. style="width: 80%"
  293. v-model="form.fBusinessType"
  294. filterable
  295. @change="educationChange"
  296. :disabled="
  297. contrOl ||
  298. browseStatus ||
  299. warehouseDrList.length > 0 ||
  300. warehouseCrList.length > 0
  301. "
  302. >
  303. <el-option
  304. v-for="(item, index) in businessTypeOption"
  305. :key="index.dictValue"
  306. :label="item.dictLabel"
  307. :value="item.dictValue"
  308. ></el-option>
  309. </el-select>
  310. </el-form-item>
  311. <el-form-item label="结算方式" prop="fStltypeid" v-else>
  312. <el-select
  313. v-model="form.fStltypeid"
  314. placeholder="请选择结算方式"
  315. clearable
  316. :disabled="browseStatus"
  317. style="width: 80%"
  318. >
  319. <el-option
  320. v-for="(item, index) in fStltypeOptions"
  321. :key="index.dictValue"
  322. :label="item.dictLabel"
  323. :value="item.dictValue"
  324. />
  325. </el-select>
  326. </el-form-item>
  327. </el-col>
  328. <el-col :span="8">
  329. <el-form-item label="劳务公司" prop="fLabour">
  330. <el-select
  331. style="width: 80%"
  332. v-model="form.fLabour"
  333. clearable
  334. filterable
  335. placeholder="请输入关键词"
  336. :disabled="contrOl || browseStatus"
  337. >
  338. <el-option
  339. v-for="(item, index) in fCompanyOptIons"
  340. :key="index.fId"
  341. :label="item.fName"
  342. :value="item.fId"
  343. ></el-option>
  344. </el-select>
  345. </el-form-item>
  346. </el-col>
  347. <el-col :span="8">
  348. <el-form-item
  349. label="车队"
  350. prop="fFleet"
  351. :rules="{
  352. required: isrequired === 1 ? true : false,
  353. message: '请选择',
  354. trigger: ['blur', 'change'],
  355. }"
  356. >
  357. <el-select
  358. style="width: 80%"
  359. v-model="form.fFleet"
  360. clearable
  361. filterable
  362. placeholder="请输入关键词"
  363. :disabled="contrOl || browseStatus"
  364. >
  365. <el-option
  366. v-for="(item, index) in fleetOptions"
  367. :key="index.fId"
  368. :label="item.fName"
  369. :value="item.fId"
  370. ></el-option>
  371. </el-select>
  372. </el-form-item>
  373. </el-col>
  374. </el-row>
  375. <el-row v-if="detailsHidden2">
  376. <el-col :span="8">
  377. <el-form-item
  378. label="车号"
  379. prop="fTruckno"
  380. :rules="{
  381. required: isrequired2 === 1 ? true : false,
  382. message: '请选择',
  383. trigger: ['blur', 'change'],
  384. }"
  385. >
  386. <el-input
  387. v-model="form.fTruckno"
  388. style="width: 80%"
  389. :disabled="browseStatus"
  390. placeholder="车号"
  391. />
  392. </el-form-item>
  393. </el-col>
  394. <el-col :span="8">
  395. <el-form-item
  396. label="司机姓名"
  397. prop="fDriverName"
  398. :rules="{
  399. required: isrequired2 === 1 ? true : false,
  400. message: '请选择',
  401. trigger: ['blur', 'change'],
  402. }"
  403. >
  404. <el-input
  405. v-model="form.fDriverName"
  406. style="width: 80%"
  407. :disabled="browseStatus"
  408. placeholder="司机姓名"
  409. />
  410. </el-form-item>
  411. </el-col>
  412. <el-col :span="8">
  413. <el-form-item
  414. label="司机电话"
  415. prop="fDriverTel"
  416. :rules="{
  417. required: isrequired2 === 1 ? true : false,
  418. message: '请选择',
  419. trigger: ['blur', 'change'],
  420. }"
  421. >
  422. <el-input
  423. v-model="form.fDriverTel"
  424. style="width: 80%"
  425. :disabled="browseStatus"
  426. placeholder="司机电话"
  427. />
  428. </el-form-item>
  429. </el-col>
  430. </el-row>
  431. <el-row>
  432. <el-col :span="16">
  433. <el-row v-if="detailsHidden2">
  434. <el-col :span="12">
  435. <el-form-item
  436. label="司机身份证"
  437. prop="fDriverIdCar"
  438. :rules="{
  439. required: isrequired2 === 1 ? true : false,
  440. message: '请选择',
  441. trigger: ['blur', 'change'],
  442. }"
  443. >
  444. <el-input
  445. v-model="form.fDriverIdCar"
  446. style="width: 80%"
  447. :disabled="browseStatus"
  448. placeholder="司机身份证"
  449. />
  450. </el-form-item>
  451. </el-col>
  452. <el-col :span="12">
  453. <el-form-item
  454. label="贸易方式"
  455. prop="fTrademodeid"
  456. :rules="{
  457. required: isrequired2 === 1 ? true : false,
  458. message: '请选择',
  459. trigger: ['blur', 'change'],
  460. }"
  461. >
  462. <el-select
  463. v-model="form.fTrademodeid"
  464. placeholder=""
  465. :disabled="browseStatus"
  466. clearable
  467. style="width: 80%"
  468. >
  469. <el-option
  470. v-for="dict in fTrademodeidOptions"
  471. :key="dict.dictValue"
  472. :label="dict.dictLabel"
  473. :value="dict.dictValue"
  474. />
  475. </el-select>
  476. </el-form-item>
  477. </el-col>
  478. </el-row>
  479. <el-row>
  480. <el-col :span="24">
  481. <el-form-item label="备注" prop="remark">
  482. <el-input
  483. style="width: 91.5%"
  484. v-model="form.remark"
  485. type="textarea"
  486. :disabled="browseStatus"
  487. placeholder="请输入内容"
  488. />
  489. </el-form-item>
  490. </el-col>
  491. </el-row>
  492. <el-row>
  493. <el-col :offset="17" :span="6">
  494. <el-button
  495. v-if="dataShowcar == '0'"
  496. @click="
  497. detailsHidden2
  498. ? (detailsHidden2 = false)
  499. : (detailsHidden2 = true)
  500. "
  501. >{{ detailsHidden2 ? "隐藏" : "更多" }}
  502. </el-button>
  503. <el-button
  504. @click="
  505. detailsHidden
  506. ? (detailsHidden = false)
  507. : (detailsHidden = true)
  508. "
  509. >{{ detailsHidden ? "隐藏" : "展开" }}
  510. </el-button>
  511. </el-col>
  512. </el-row>
  513. </el-col>
  514. <el-col :span="8">
  515. <el-form-item>
  516. <div style="display: flex; align-items: center">
  517. <el-table
  518. :data="CntrTable"
  519. style="width: 80%"
  520. :header-cell-style="{ lineHeight: '16px' }"
  521. >
  522. <el-table-column
  523. prop="fCntrid "
  524. label="箱型"
  525. header-align="center"
  526. align="center"
  527. >
  528. <template slot-scope="scope">
  529. <el-select
  530. placeholder="请选择箱型"
  531. v-model="scope.row.fCntrid"
  532. size="mini"
  533. >
  534. <el-option
  535. v-for="(item, index) in cntrList"
  536. :key="index.fId"
  537. :label="item.fName"
  538. :value="item.fId"
  539. >
  540. </el-option>
  541. </el-select>
  542. </template>
  543. </el-table-column>
  544. <el-table-column
  545. prop="fCntrcount"
  546. label="箱量"
  547. header-align="center"
  548. align="center"
  549. >
  550. <template slot-scope="scope">
  551. <el-input
  552. placeholder="请输入箱量"
  553. v-model="scope.row.fCntrcount"
  554. size="mini"
  555. >
  556. </el-input>
  557. </template>
  558. </el-table-column>
  559. <el-table-column
  560. prop="fCntrcount"
  561. label="操作"
  562. header-align="center"
  563. align="center"
  564. width="50"
  565. >
  566. <template slot-scope="scope">
  567. <el-button
  568. size="mini"
  569. type="text"
  570. @click.native.prevent="deleteRow(scope.$index, CntrTable)"
  571. icon="el-icon-delete"
  572. ></el-button>
  573. </template>
  574. </el-table-column>
  575. </el-table>
  576. <el-tag class="tag-hover" @click="addRow"
  577. ><i class="el-icon-plus"></i
  578. ></el-tag>
  579. </div>
  580. </el-form-item>
  581. </el-col>
  582. </el-row>
  583. <div v-if="detailsHidden">
  584. <el-row style="margin-top: 30px">
  585. <el-col :span="8">
  586. <el-form-item label="仓库联系人" prop="fContacts">
  587. <el-input
  588. v-model="form.fContacts"
  589. style="width: 80%"
  590. :disabled="browseStatus"
  591. placeholder="仓库联系人"
  592. />
  593. </el-form-item>
  594. </el-col>
  595. <el-col :span="8">
  596. <el-form-item label="仓库电话" prop="fTel">
  597. <el-input
  598. v-model="form.fTel"
  599. :disabled="browseStatus"
  600. style="width: 80%"
  601. placeholder="请输仓库入电话"
  602. />
  603. </el-form-item>
  604. </el-col>
  605. </el-row>
  606. <el-row>
  607. <el-col :span="8">
  608. <el-form-item label="制单人" prop="createBy">
  609. <el-input
  610. disabled
  611. v-model="form.createBy"
  612. style="width: 80%"
  613. placeholder="制单人"
  614. />
  615. </el-form-item>
  616. </el-col>
  617. <el-col :span="8">
  618. <el-form-item label="制单部门" prop="fDeptid">
  619. <el-select
  620. v-model="form.fDeptid"
  621. filterable
  622. disabled
  623. style="width: 80%"
  624. remote
  625. >
  626. <el-option
  627. v-for="(item, index) in deptOptions"
  628. :key="index.deptId"
  629. :label="item.deptName"
  630. :value="item.deptId"
  631. ></el-option>
  632. </el-select>
  633. </el-form-item>
  634. </el-col>
  635. <el-col :span="8">
  636. <el-form-item disabled label="制单日期" prop="createTime">
  637. <el-date-picker
  638. v-model="form.createTime"
  639. size="large"
  640. type="date"
  641. disabled
  642. style="width: 80%"
  643. value-format="timestamp"
  644. placeholder="制单日期"
  645. >
  646. </el-date-picker>
  647. </el-form-item>
  648. </el-col>
  649. </el-row>
  650. <el-row>
  651. <el-col :span="8">
  652. <el-form-item label="品名" prop="fProductName">
  653. <el-input
  654. v-model="form.fProductName"
  655. style="width: 80%"
  656. disabled
  657. placeholder="品名"
  658. />
  659. </el-form-item>
  660. </el-col>
  661. <el-col :span="8">
  662. <el-form-item label="品牌">
  663. <el-input
  664. v-model="form.fMarks"
  665. style="width: 80%"
  666. disabled
  667. placeholder="品牌"
  668. />
  669. </el-form-item>
  670. </el-col>
  671. </el-row>
  672. </div>
  673. </el-form>
  674. <el-dialog
  675. title="自定义列显示"
  676. :visible.sync="showSetting"
  677. width="700px"
  678. v-dialogDrag
  679. :close-on-click-modal="false"
  680. >
  681. <template slot="title">
  682. <div class="avue-crud__dialog__header">
  683. <span class="el-dialog__title">
  684. <span
  685. style="
  686. display: inline-block;
  687. width: 3px;
  688. height: 20px;
  689. margin-right: 5px;
  690. float: left;
  691. margin-top: 2px;
  692. "
  693. ></span>
  694. </span>
  695. </div>
  696. </template>
  697. <div>配置排序列数据(拖动调整顺序)</div>
  698. <div style="margin-left: 17px">
  699. <el-checkbox
  700. v-model="allCheck"
  701. label="全选"
  702. @change="allChecked"
  703. ></el-checkbox>
  704. </div>
  705. <div style="padding: 4px; display: flex; justify-content: center">
  706. <draggable
  707. v-model="setRowList"
  708. group="site"
  709. animation="300"
  710. @start="onStart"
  711. @end="onEnd"
  712. handle=".indraggable"
  713. >
  714. <transition-group>
  715. <div
  716. v-for="item in setRowList"
  717. :key="item.surface"
  718. class="listStyle"
  719. >
  720. <div style="width: 500px" class="indraggable">
  721. <div class="progress" :style="{ width: item.width + 'px' }">
  722. <el-checkbox
  723. :label="item.name"
  724. v-model="item.checked"
  725. :true-label="0"
  726. :false-label="1"
  727. >{{ item.name }}
  728. </el-checkbox>
  729. </div>
  730. </div>
  731. <el-input-number
  732. v-model.number="item.width"
  733. controls-position="right"
  734. :min="1"
  735. :max="500"
  736. size="mini"
  737. ></el-input-number>
  738. </div>
  739. </transition-group>
  740. </draggable>
  741. </div>
  742. <span slot="footer" class="dialog-footer">
  743. <el-button @click="showSetting = false">取 消</el-button>
  744. <el-button @click="delRow" type="danger">重 置</el-button>
  745. <el-button type="primary" @click="save()">确 定</el-button>
  746. </span>
  747. </el-dialog>
  748. <el-collapse v-model="collapselist">
  749. <el-collapse-item name="1">
  750. <template slot="title">
  751. <i class="el-icon-s-home" style="font-size: 16px"></i>
  752. <span style="font-size: 16px; font-weight: bolder; margin-left: 5px"
  753. >调拨明细</span
  754. >
  755. </template>
  756. <div>
  757. <el-row
  758. type="flex"
  759. justify="space-between"
  760. style="margin-bottom: 10px"
  761. >
  762. <el-col>
  763. <el-button
  764. type="primary"
  765. :disabled="browseStatus"
  766. size="small"
  767. @click="addRelevant"
  768. >导入库存
  769. </el-button>
  770. <el-button
  771. :disabled="browseStatus"
  772. type="primary"
  773. size="small"
  774. @click="saveForm"
  775. >保 存</el-button
  776. >
  777. </el-col>
  778. <el-col style="display: flex; justify-content: flex-end">
  779. <el-button
  780. size="small"
  781. type="info"
  782. prop="打印"
  783. @click="printZyd"
  784. >作业单
  785. </el-button>
  786. <el-button
  787. size="small"
  788. :disabled="browseStatus"
  789. @click="discharge"
  790. >叫车进场</el-button
  791. >
  792. <el-button
  793. size="small"
  794. :disabled="dataListSelection.length <= 0 || browseStatus"
  795. @click="creditClick"
  796. >调拨确认
  797. </el-button>
  798. <el-button
  799. size="small"
  800. :disabled="dataWithdrawList.length <= 0 || browseStatus || form.fBillstatus > 3"
  801. @click.prevent="withdrawClick"
  802. >撤回调拨
  803. </el-button>
  804. <el-dropdown @command="handleCommand" style="margin-left: 10px">
  805. <el-button size="small" type="success">
  806. 打印单据<i class="el-icon-arrow-down el-icon--right"></i>
  807. </el-button>
  808. <el-dropdown-menu slot="dropdown">
  809. <el-dropdown-item command="a">收货单</el-dropdown-item>
  810. <el-dropdown-item command="b">入库单</el-dropdown-item>
  811. <el-dropdown-item command="c">移库单</el-dropdown-item>
  812. <el-dropdown-item command="d">调拨单</el-dropdown-item>
  813. </el-dropdown-menu>
  814. </el-dropdown>
  815. <div style="margin: 0 10px">
  816. <el-button
  817. icon="el-icon-setting"
  818. size="mini"
  819. circle
  820. @click="showSetting = !showSetting"
  821. ></el-button>
  822. </div>
  823. </el-col>
  824. </el-row>
  825. <el-table
  826. :data="detailList"
  827. tooltip-effect="dark"
  828. stripe
  829. :summary-method="getSummaries"
  830. @selection-change="Selectinventory"
  831. show-summary
  832. >
  833. <el-table-column type="selection" width="55" align="center" fixed />
  834. <el-table-column label="序号" type="index" width="80" fixed />
  835. <el-table-column
  836. v-for="(item, index) in getRowList"
  837. :key="index"
  838. :label="item.name"
  839. :width="item.width"
  840. :prop="item.label"
  841. align="center"
  842. :fixed="item.fixed"
  843. sortable
  844. >
  845. <template slot-scope="scope">
  846. <span v-if="item.label == 'fBillstatus'">
  847. <span v-if="scope.row.fBillstatus === 10">计划</span>
  848. <span v-if="scope.row.fBillstatus === 20">待调拨</span>
  849. <span v-if="scope.row.fBillstatus === 30">调拨中</span>
  850. <span v-if="scope.row.fBillstatus === 40">已调拨</span>
  851. </span>
  852. <span v-else-if="item.label == 'fBsdate'">
  853. <el-date-picker
  854. v-model="scope.row.fBsdate"
  855. style="width: 138px"
  856. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  857. type="date"
  858. value-format="timestamp"
  859. placeholder="业务日期"
  860. format="yyyy-MM-dd"
  861. >
  862. </el-date-picker>
  863. </span>
  864. <span v-else-if="item.label == 'fGoodsid'">
  865. {{ scope.row.fGoodsid | goodsFormat(goodsOptions) }}
  866. </span>
  867. <span v-else-if="item.label == 'fTransferWarehouselocid'">
  868. <el-input
  869. placeholder="请选择"
  870. :disabled="
  871. !form.fWarehouseid ||
  872. browseStatus ||
  873. scope.row.fBillstatus >= 40
  874. "
  875. v-model="scope.row.fWarehouseInformation"
  876. @focus="getTreeselect(scope)"
  877. >
  878. </el-input>
  879. </span>
  880. <span v-else-if="item.label == 'fBusinessType'">
  881. <el-select
  882. v-model="scope.row.fBusinessType"
  883. filterable
  884. disabled
  885. placeholder="请选择商品属性"
  886. >
  887. <el-option
  888. v-for="(item, index) in fStorageTypeOptions"
  889. :key="index.dictValue"
  890. :label="item.dictLabel"
  891. :value="item.dictValue"
  892. />
  893. </el-select>
  894. </span>
  895. <span v-else-if="item.label == 'fQty'">
  896. <el-input
  897. @change="qtyChange(scope.row)"
  898. v-model="scope.row.fQty"
  899. :disabled="browseStatus || scope.row.fBillstatus == 40"
  900. placeholder="出库件数"
  901. />
  902. </span>
  903. <span v-else-if="item.label == 'fGrossweight'">
  904. <el-input
  905. :disabled="browseStatus || scope.row.fBillstatus == 40"
  906. v-model="scope.row.fGrossweight"
  907. @change="changeOutStock(scope.row)"
  908. placeholder="出库毛重"
  909. />
  910. </span>
  911. <span v-else-if="item.label == 'fNetweight'">
  912. <el-input
  913. v-model="scope.row.fNetweight"
  914. :disabled="browseStatus || scope.row.fBillstatus == 40"
  915. @change="changeOutStock(scope.row)"
  916. placeholder="出库净重"
  917. />
  918. </span>
  919. <span v-else-if="item.label == 'fPackagespecs'">
  920. <el-input
  921. v-model="scope.row.fPackagespecs"
  922. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  923. placeholder="包装规格"
  924. />
  925. </span>
  926. <span v-else-if="item.label == 'fCntrtype'">
  927. <el-input
  928. v-model="scope.row.fCntrtype"
  929. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  930. placeholder="箱型"
  931. />
  932. </span>
  933. <span v-else-if="item.label == 'fCntqty'">
  934. <el-input
  935. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  936. v-model="scope.row.fCntqty"
  937. placeholder="箱量"
  938. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  939. />
  940. </span>
  941. <span v-else-if="item.label == 'fGoodsval'">
  942. <el-input
  943. v-model="scope.row.fGoodsval"
  944. placeholder="货值"
  945. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  946. />
  947. </span>
  948. <span v-else-if="item.label == 'fTruckno'">
  949. <el-input
  950. v-model="scope.row.fTruckno"
  951. placeholder="车号"
  952. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  953. />
  954. </span>
  955. <span v-else-if="item.label == 'fDriverName'">
  956. <el-input
  957. v-model="scope.row.fDriverName"
  958. placeholder="司机名"
  959. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  960. />
  961. </span>
  962. <span v-else-if="item.label == 'fDriverTel'">
  963. <el-input
  964. v-model="scope.row.fDriverTel"
  965. placeholder="司机电话"
  966. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  967. />
  968. </span>
  969. <span v-else-if="item.label == 'fDriverIdCar'">
  970. <el-input
  971. v-model="scope.row.fDriverIdCar"
  972. placeholder="司机身份证"
  973. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  974. />
  975. </span>
  976. <span v-else-if="item.label == 'fIsPass'">
  977. <el-select
  978. v-model="scope.row.fIsPass"
  979. placeholder="是否放行"
  980. :disabled="browseStatus || scope.row.fBillstatus == 40"
  981. style="width: 80%"
  982. >
  983. <el-option
  984. v-for="(item, index) in releaseList"
  985. :key="index.dictValue"
  986. :label="item.dictLabel"
  987. :value="item.dictValue"
  988. />
  989. </el-select>
  990. </span>
  991. <span v-else-if="item.label == 'fFleet'">
  992. <el-select
  993. v-model="scope.row.fFleet"
  994. placeholder="车队"
  995. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  996. style="width: 80%"
  997. >
  998. <el-option
  999. v-for="(item, index) in fleetOptions"
  1000. :key="index.fId"
  1001. :label="item.fName"
  1002. :value="item.fId"
  1003. ></el-option>
  1004. </el-select>
  1005. </span>
  1006. <span v-else-if="item.label == 'fLntype'">
  1007. <el-select
  1008. v-model="scope.row.fLntype"
  1009. placeholder="装卸方式"
  1010. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  1011. style="width: 80%"
  1012. >
  1013. <el-option
  1014. v-for="(item, index) in unloadModes"
  1015. :key="index.dictValue"
  1016. :label="item.dictLabel"
  1017. :value="item.dictValue"
  1018. />
  1019. </el-select>
  1020. </span>
  1021. <span v-else-if="item.label == 'fForkliftman'">
  1022. <el-input
  1023. v-model="scope.row.fForkliftman"
  1024. placeholder="叉车工"
  1025. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  1026. />
  1027. </span>
  1028. <span v-else-if="item.label == 'fStevedore'">
  1029. <el-input
  1030. v-model="scope.row.fStevedore"
  1031. placeholder="装卸工"
  1032. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  1033. />
  1034. </span>
  1035. <span v-else-if="item.label == 'fLocalcntrno'">
  1036. <el-input
  1037. v-model="scope.row.fLocalcntrno"
  1038. placeholder="库内箱号"
  1039. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  1040. v-Alphabet
  1041. />
  1042. </span>
  1043. <span v-else-if="item.label == 'fSealno'">
  1044. <el-input
  1045. v-model="scope.row.fSealno"
  1046. placeholder="封号"
  1047. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  1048. />
  1049. </span>
  1050. <span v-else-if="item.label == 'fSerialNumber'">
  1051. <el-input
  1052. v-model="scope.row.fSerialNumber"
  1053. placeholder="流水号"
  1054. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  1055. />
  1056. </span>
  1057. <span v-else-if="item.label == 'remark'">
  1058. <el-input
  1059. v-model="scope.row.remark"
  1060. placeholder="备注"
  1061. :disabled="browseStatus"
  1062. show-word-limit
  1063. />
  1064. </span>
  1065. <span v-else>{{ scope.row[item.label] }}</span>
  1066. </template>
  1067. </el-table-column>
  1068. <!-- <el-table-column
  1069. prop="fBillstatus"
  1070. header-align="center"
  1071. width="150px"
  1072. align="center"
  1073. fixed
  1074. label="状态"
  1075. >
  1076. <template slot-scope="scope">
  1077. <span v-if="scope.row.fBillstatus === 10">计划</span>
  1078. <span v-if="scope.row.fBillstatus === 20">待调拨</span>
  1079. <span v-if="scope.row.fBillstatus === 30">调拨中</span>
  1080. <span v-if="scope.row.fBillstatus === 40">已调拨</span>
  1081. </template>
  1082. </el-table-column>
  1083. <el-table-column
  1084. prop="fBsdate"
  1085. header-align="center"
  1086. align="center"
  1087. fixed
  1088. width="150px"
  1089. label="调拨日期"
  1090. >
  1091. <template slot-scope="scope">
  1092. <el-date-picker
  1093. v-model="scope.row.fBsdate"
  1094. style="width: 138px"
  1095. :disabled="browseStatus || scope.row.fBillstatus >= 20"
  1096. type="date"
  1097. value-format="timestamp"
  1098. placeholder="业务日期"
  1099. >
  1100. </el-date-picker>
  1101. </template>
  1102. </el-table-column>
  1103. <el-table-column
  1104. prop="fMblno"
  1105. header-align="center"
  1106. align="center"
  1107. width="140px"
  1108. label="提单号"
  1109. />
  1110. <el-table-column
  1111. prop="fGoodsid"
  1112. header-align="center"
  1113. align="center"
  1114. width="140px"
  1115. label="*品名"
  1116. :formatter="goodsFormat"
  1117. />
  1118. <el-table-column
  1119. prop="fBusinessType"
  1120. header-align="center"
  1121. width="140px"
  1122. align="center"
  1123. label="*货物属性"
  1124. >
  1125. <template slot-scope="scope">
  1126. <el-select
  1127. v-model="scope.row.fBusinessType"
  1128. filterable
  1129. disabled
  1130. placeholder="请选择商品属性"
  1131. >
  1132. <el-option
  1133. v-for="(item, index) in fStorageTypeOptions"
  1134. :key="index.dictValue"
  1135. :label="item.dictLabel"
  1136. :value="item.dictValue"
  1137. />
  1138. </el-select>
  1139. </template>
  1140. </el-table-column>
  1141. <el-table-column
  1142. prop="fMarks"
  1143. header-align="center"
  1144. align="center"
  1145. width="140px"
  1146. label="*属性详情"
  1147. />
  1148. <el-table-column
  1149. prop="fOrgwarehouseInformation"
  1150. header-align="center"
  1151. align="center"
  1152. label="库位"
  1153. />
  1154. <el-table-column
  1155. prop="fTransferWarehouselocid"
  1156. header-align="center"
  1157. width="240px"
  1158. align="center"
  1159. label="*调入库位"
  1160. >
  1161. <template slot-scope="scope">
  1162. <el-input
  1163. placeholder="请选择"
  1164. :disabled="
  1165. !form.fWarehouseid ||
  1166. browseStatus ||
  1167. scope.row.fBillstatus >= 20
  1168. "
  1169. v-model="scope.row.fWarehouseInformation"
  1170. @focus="getTreeselect(scope)"
  1171. >
  1172. </el-input>
  1173. </template>
  1174. </el-table-column>
  1175. <el-table-column
  1176. prop="fPlanqty"
  1177. header-align="center"
  1178. align="center"
  1179. width="180px"
  1180. label="*结余库存"
  1181. />
  1182. <el-table-column
  1183. prop="fPlangrossweight"
  1184. header-align="center"
  1185. align="center"
  1186. width="180px"
  1187. label="*结余毛重(kg)"
  1188. />
  1189. <el-table-column
  1190. prop="fPlannetweight"
  1191. header-align="center"
  1192. align="center"
  1193. width="180px"
  1194. label="*结余净重(kg)"
  1195. />
  1196. <el-table-column
  1197. prop="fQty"
  1198. header-align="center"
  1199. width="180px"
  1200. align="center"
  1201. label="*调拨件数"
  1202. >
  1203. <template slot-scope="scope">
  1204. <el-input
  1205. @change="qtyChange(scope.row)"
  1206. v-model="scope.row.fQty"
  1207. :disabled="browseStatus || scope.row.fBillstatus == 40"
  1208. placeholder="调拨件数"
  1209. />
  1210. </template>
  1211. </el-table-column>
  1212. <el-table-column
  1213. prop="fGrossweight"
  1214. header-align="center"
  1215. width="180px"
  1216. align="center"
  1217. label="*调拨毛重(kg)"
  1218. >
  1219. <template slot-scope="scope">
  1220. <el-input
  1221. :disabled="browseStatus || scope.row.fBillstatus == 40"
  1222. v-model="scope.row.fGrossweight"
  1223. @change="changeStock(scope.row)"
  1224. placeholder="调拨毛重"
  1225. />
  1226. </template>
  1227. </el-table-column>
  1228. <el-table-column
  1229. prop="fNetweight"
  1230. header-align="center"
  1231. width="180px"
  1232. align="center"
  1233. label="*调拨净重(kg)"
  1234. >
  1235. <template slot-scope="scope">
  1236. <el-input
  1237. v-model="scope.row.fNetweight"
  1238. :disabled="browseStatus || scope.row.fBillstatus == 40"
  1239. @change="changeStock(scope.row)"
  1240. placeholder="调拨净重"
  1241. />
  1242. </template>
  1243. </el-table-column>
  1244. <el-table-column
  1245. prop="fPackagespecs"
  1246. header-align="center"
  1247. width="180px"
  1248. align="center"
  1249. label="*包装规格"
  1250. >
  1251. <template slot-scope="scope">
  1252. <el-input
  1253. v-model="scope.row.fPackagespecs"
  1254. :disabled="browseStatus || scope.row.fBillstatus >= 20"
  1255. placeholder="包装规格"
  1256. />
  1257. </template>
  1258. </el-table-column>
  1259. <el-table-column
  1260. prop="fTruckno"
  1261. header-align="center"
  1262. width="150px"
  1263. align="center"
  1264. label="*车号"
  1265. >
  1266. <template slot-scope="scope">
  1267. <el-input
  1268. v-model="scope.row.fTruckno"
  1269. placeholder="车号"
  1270. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  1271. />
  1272. </template>
  1273. </el-table-column>
  1274. <el-table-column
  1275. prop="fDriverName"
  1276. header-align="center"
  1277. width="130px"
  1278. align="center"
  1279. label="司机名"
  1280. >
  1281. <template slot-scope="scope">
  1282. <el-input
  1283. v-model="scope.row.fDriverName"
  1284. placeholder="司机名"
  1285. :disabled="browseStatus || scope.row.fBillstatus >= 20"
  1286. />
  1287. </template>
  1288. </el-table-column>
  1289. <el-table-column
  1290. prop="fDriverTel"
  1291. header-align="center"
  1292. width="130px"
  1293. align="center"
  1294. label="司机电话"
  1295. >
  1296. <template slot-scope="scope">
  1297. <el-input
  1298. v-model="scope.row.fDriverName"
  1299. placeholder="司机电话"
  1300. :disabled="browseStatus || scope.row.fBillstatus >= 20"
  1301. />
  1302. </template>
  1303. </el-table-column>
  1304. <el-table-column
  1305. prop="fDriverIdCar"
  1306. header-align="center"
  1307. width="200px"
  1308. align="center"
  1309. label="司机身份证"
  1310. >
  1311. <template slot-scope="scope">
  1312. <el-input
  1313. v-model="scope.row.fDriverIdCar"
  1314. placeholder="司机身份证"
  1315. :disabled="browseStatus || scope.row.fBillstatus >= 20"
  1316. />
  1317. </template>
  1318. </el-table-column>
  1319. <el-table-column
  1320. prop="fCntrtype"
  1321. header-align="center"
  1322. align="center"
  1323. width="140px"
  1324. label="箱型"
  1325. >
  1326. <template slot-scope="scope">
  1327. <el-input
  1328. v-model="scope.row.fCntrtype"
  1329. :disabled="browseStatus || scope.row.fBillstatus >= 20"
  1330. placeholder="箱型"
  1331. />
  1332. </template>
  1333. </el-table-column>
  1334. <el-table-column
  1335. prop="fCntqty"
  1336. header-align="center"
  1337. align="center"
  1338. width="140px"
  1339. label="箱量"
  1340. >
  1341. <template slot-scope="scope">
  1342. <el-input
  1343. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1344. v-model="scope.row.fCntqty"
  1345. placeholder="箱量"
  1346. :disabled="browseStatus || scope.row.fBillstatus >= 20"
  1347. />
  1348. </template>
  1349. </el-table-column>
  1350. <el-table-column
  1351. prop="fCntrno"
  1352. header-align="center"
  1353. width="150px"
  1354. align="center"
  1355. label="箱号"
  1356. >
  1357. <template slot-scope="scope">
  1358. <el-input
  1359. v-model="scope.row.fCntrno"
  1360. placeholder="箱号"
  1361. :disabled="browseStatus || scope.row.fBillstatus >= 20"
  1362. />
  1363. </template>
  1364. </el-table-column>
  1365. <el-table-column
  1366. prop="fGoodsval"
  1367. header-align="center"
  1368. width="150px"
  1369. align="center"
  1370. label="货值"
  1371. >
  1372. <template slot-scope="scope">
  1373. <el-input
  1374. v-model="scope.row.fGoodsval"
  1375. placeholder="货值"
  1376. :disabled="browseStatus || scope.row.fBillstatus >= 20"
  1377. />
  1378. </template>
  1379. </el-table-column>
  1380. <el-table-column
  1381. prop="fSerialNumber"
  1382. header-align="center"
  1383. width="160px"
  1384. align="center"
  1385. label="流水号"
  1386. >
  1387. </el-table-column>
  1388. <el-table-column
  1389. prop="remark"
  1390. header-align="center"
  1391. width="150px"
  1392. align="center"
  1393. label="备注"
  1394. >
  1395. <template slot-scope="scope">
  1396. <el-input
  1397. v-model="scope.row.remark"
  1398. placeholder="备注"
  1399. :disabled="browseStatus"
  1400. show-word-limit
  1401. />
  1402. </template>
  1403. </el-table-column> -->
  1404. <el-table-column
  1405. header-align="center"
  1406. align="center"
  1407. label="操作"
  1408. width="130px"
  1409. fixed="right"
  1410. >
  1411. <template slot-scope="scope">
  1412. <el-button
  1413. :disabled="
  1414. browseStatus ||
  1415. scope.row.fBillstatus === 20 ||
  1416. scope.row.fBillstatus === 30 ||
  1417. scope.row.fBillstatus === 40
  1418. "
  1419. type="text"
  1420. @click.native.prevent="wDeleteRow(scope.$index, detailList)"
  1421. size="small"
  1422. >移除</el-button
  1423. >
  1424. </template>
  1425. </el-table-column>
  1426. </el-table>
  1427. </div>
  1428. </el-collapse-item>
  1429. <el-collapse-item>
  1430. <template slot="title">
  1431. <i class="el-icon-s-order" style="font-size: 16px"></i>
  1432. <span style="font-size: 16px; font-weight: bolder; margin-left: 5px"
  1433. >附件明细</span
  1434. >
  1435. </template>
  1436. <up-load
  1437. :relevantAttachments="relevantAttachments"
  1438. :createBy="form.createBy"
  1439. :browseStatus="browseStatus"
  1440. ></up-load>
  1441. </el-collapse-item>
  1442. <el-collapse-item>
  1443. <template slot="title">
  1444. <i class="el-icon-circle-plus" style="font-size: 16px"></i>
  1445. <span style="font-size: 16px; font-weight: bolder; margin-left: 5px"
  1446. >收款信息</span
  1447. >
  1448. </template>
  1449. <div
  1450. class="dialogTableTitle flex a-center jlr"
  1451. style="
  1452. display: flex;
  1453. justify-content: space-between;
  1454. align-items: center;
  1455. margin: 10px 0;
  1456. "
  1457. >
  1458. <div>
  1459. <el-button
  1460. size="small"
  1461. type="primary"
  1462. :disabled="browseStatus"
  1463. @click.prevent="addCollection()"
  1464. >新行
  1465. </el-button>
  1466. <!-- <el-button :disabled="browseStatus" @click.prevent="deleteRow(warehouseDrList)"
  1467. >删除
  1468. </el-button> -->
  1469. <el-button
  1470. type="primary"
  1471. size="small"
  1472. :disabled="browseStatus"
  1473. @click="saveForm"
  1474. >保 存</el-button
  1475. >
  1476. <!-- <el-button @click.prevent="addAgreement()" type="warning">仓储费协议</el-button> -->
  1477. <el-button
  1478. size="small"
  1479. @click.prevent="handleSelect(3)"
  1480. type="danger"
  1481. >作业费协议</el-button
  1482. >
  1483. <el-button
  1484. size="small"
  1485. type="primary"
  1486. @click="feesConfirm"
  1487. v-if="isShowFeesConfirm == 0"
  1488. >费用确认单</el-button>
  1489. <el-button
  1490. type="primary"
  1491. size="small"
  1492. v-if="browseStatus"
  1493. @click="feeChange('D')"
  1494. >
  1495. 费用变更
  1496. </el-button>
  1497. </div>
  1498. </div>
  1499. <el-table
  1500. :data="warehouseDrList"
  1501. ref="table"
  1502. tooltip-effect="dark"
  1503. border
  1504. stripe
  1505. show-summary
  1506. @selection-change="Collectionoptions"
  1507. :summary-method="warehouseDrSummaries"
  1508. >
  1509. <el-table-column type="selection" width="55" align="center" />
  1510. <el-table-column label="序号" type="index" width="80">
  1511. </el-table-column>
  1512. <el-table-column
  1513. prop="fCorpid"
  1514. header-align="center"
  1515. align="center"
  1516. width="300px"
  1517. label="客户名称"
  1518. >
  1519. <template slot-scope="scope">
  1520. <el-select
  1521. v-model="scope.row.fCorpid"
  1522. filterable
  1523. clearable
  1524. placeholder="客户名称"
  1525. :disabled="browseStatus || scope.row.fBillstatus == 6"
  1526. >
  1527. <el-option
  1528. v-for="(item, index) in fMblnoOptions"
  1529. :key="index.fId"
  1530. :label="item.fName"
  1531. :value="item.fId"
  1532. ></el-option>
  1533. </el-select>
  1534. </template>
  1535. </el-table-column>
  1536. <el-table-column
  1537. prop="fFeeid"
  1538. header-align="center"
  1539. align="center"
  1540. width="240px"
  1541. label="费用名称"
  1542. >
  1543. <template slot-scope="scope">
  1544. <el-select
  1545. v-model="scope.row.fFeeid"
  1546. clearable
  1547. filterable
  1548. placeholder="费用名称"
  1549. :disabled="browseStatus || scope.row.fBillstatus == 6"
  1550. >
  1551. <el-option
  1552. v-for="(item, index) in fDNameOptions"
  1553. :key="index.fId"
  1554. :label="item.fName"
  1555. :value="item.fId"
  1556. ></el-option>
  1557. </el-select>
  1558. </template>
  1559. </el-table-column>
  1560. <el-table-column
  1561. prop="fBusinessType"
  1562. header-align="center"
  1563. align="center"
  1564. width="180px"
  1565. label="作业类型"
  1566. >
  1567. <template slot-scope="scope">
  1568. <el-select
  1569. style="width: 80%"
  1570. v-model="scope.row.fBusinessType"
  1571. filterable
  1572. disabled
  1573. >
  1574. <el-option
  1575. v-for="(item, index) in businessTypeOption"
  1576. :key="index.dictValue"
  1577. :label="item.dictLabel"
  1578. :value="item.dictValue"
  1579. ></el-option>
  1580. </el-select>
  1581. </template>
  1582. </el-table-column>
  1583. <el-table-column
  1584. prop="fFeeUnitid"
  1585. header-align="center"
  1586. align="center"
  1587. width="180px"
  1588. label="计价单位"
  1589. >
  1590. <template slot-scope="scope">
  1591. <el-select
  1592. v-model="scope.row.fFeeUnitid"
  1593. placeholder="请选择计价单位"
  1594. clearable
  1595. :disabled="browseStatus || scope.row.fBillstatus == 6"
  1596. @change="changeFeeUnit(scope.row)"
  1597. >
  1598. <el-option
  1599. v-for="(item, index) in fFeetUnitOptions"
  1600. :key="index.dictValue"
  1601. :label="item.dictLabel"
  1602. :value="item.dictValue"
  1603. />
  1604. </el-select>
  1605. </template>
  1606. </el-table-column>
  1607. <el-table-column
  1608. prop="fQty"
  1609. header-align="center"
  1610. align="center"
  1611. width="130px"
  1612. label="数量"
  1613. >
  1614. <template slot-scope="scope">
  1615. <el-input
  1616. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1617. v-model="scope.row.fQty"
  1618. placeholder="数量"
  1619. :disabled="browseStatus || scope.row.fBillstatus == 6"
  1620. @change="changeContractAmt(scope.row)"
  1621. show-word-limit
  1622. />
  1623. </template>
  1624. </el-table-column>
  1625. <el-table-column
  1626. prop="fUnitprice"
  1627. header-align="center"
  1628. align="center"
  1629. width="130px"
  1630. label="单价"
  1631. >
  1632. <template slot-scope="scope">
  1633. <el-input
  1634. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1635. v-model="scope.row.fUnitprice"
  1636. placeholder="单价"
  1637. :disabled="browseStatus || scope.row.fSrcTypeId !== 0 || scope.row.fBillstatus == 6"
  1638. @change="changeContractAmt(scope.row)"
  1639. show-word-limit
  1640. />
  1641. </template>
  1642. </el-table-column>
  1643. <el-table-column
  1644. prop="fAmount"
  1645. header-align="center"
  1646. align="center"
  1647. width="130px"
  1648. label="金额"
  1649. >
  1650. <template slot-scope="scope">
  1651. <el-input
  1652. disabled
  1653. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1654. v-model="scope.row.fAmount"
  1655. placeholder="金额"
  1656. show-word-limit
  1657. />
  1658. </template>
  1659. </el-table-column>
  1660. <el-table-column
  1661. prop="fStltypeid"
  1662. header-align="center"
  1663. align="center"
  1664. width="130px"
  1665. label="结算方式"
  1666. >
  1667. <template slot-scope="scope">
  1668. <el-select
  1669. v-model="scope.row.fStltypeid"
  1670. placeholder="请选择结算表票结、月结"
  1671. :disabled="browseStatus || scope.row.fBillstatus == 6"
  1672. >
  1673. <el-option
  1674. v-for="(item, index) in fStltypeOptions"
  1675. :key="index.dictValue"
  1676. :label="item.dictLabel"
  1677. :value="item.dictValue"
  1678. ></el-option>
  1679. </el-select>
  1680. </template>
  1681. </el-table-column>
  1682. <el-table-column
  1683. prop="fCurrency"
  1684. header-align="center"
  1685. align="center"
  1686. width="130px"
  1687. label="币别"
  1688. >
  1689. <template slot-scope="scope">
  1690. <el-input
  1691. v-model="scope.row.fCurrency"
  1692. :disabled="browseStatus || scope.row.fBillstatus == 6"
  1693. placeholder="币别"
  1694. show-word-limit
  1695. />
  1696. </template>
  1697. </el-table-column>
  1698. <el-table-column
  1699. prop="fExrate"
  1700. header-align="center"
  1701. align="center"
  1702. width="130px"
  1703. label="汇率"
  1704. >
  1705. <template slot-scope="scope">
  1706. <el-input
  1707. v-model="scope.row.fExrate"
  1708. :disabled="browseStatus || scope.row.fBillstatus == 6"
  1709. placeholder="汇率"
  1710. show-word-limit
  1711. />
  1712. </template>
  1713. </el-table-column>
  1714. <el-table-column
  1715. prop="fTaxrate"
  1716. header-align="center"
  1717. align="center"
  1718. width="130px"
  1719. label="税率"
  1720. >
  1721. <template slot-scope="scope">
  1722. <el-input
  1723. v-model="scope.row.fTaxrate"
  1724. :disabled="browseStatus || scope.row.fBillstatus == 6"
  1725. placeholder="税率"
  1726. show-word-limit
  1727. />
  1728. </template>
  1729. </el-table-column>
  1730. <el-table-column
  1731. prop="fMblno"
  1732. header-align="center"
  1733. align="center"
  1734. width="130px"
  1735. label="提单号"
  1736. >
  1737. <template slot-scope="scope">
  1738. <el-input
  1739. v-model="scope.row.fMblno"
  1740. :disabled="browseStatus || scope.row.fBillstatus == 6"
  1741. placeholder="提单号"
  1742. show-word-limit
  1743. />
  1744. </template>
  1745. </el-table-column>
  1746. <el-table-column
  1747. prop="fProductName"
  1748. header-align="center"
  1749. align="center"
  1750. width="140px"
  1751. label="品名"
  1752. >
  1753. <template slot-scope="scope">
  1754. <el-input
  1755. v-model="scope.row.fProductName"
  1756. :disabled="browseStatus || scope.row.fBillstatus == 6"
  1757. placeholder="品名"
  1758. show-word-limit
  1759. />
  1760. </template>
  1761. </el-table-column>
  1762. <el-table-column
  1763. prop="fMarks"
  1764. header-align="center"
  1765. align="center"
  1766. width="130px"
  1767. label="品牌"
  1768. >
  1769. <template slot-scope="scope">
  1770. <el-input
  1771. v-model="scope.row.fMarks"
  1772. :disabled="browseStatus || scope.row.fBillstatus == 6"
  1773. placeholder="品牌"
  1774. show-word-limit
  1775. />
  1776. </template>
  1777. </el-table-column>
  1778. <el-table-column
  1779. prop="fSrcTypeId"
  1780. header-align="center"
  1781. align="center"
  1782. width="130px"
  1783. label="来源"
  1784. >
  1785. <template slot-scope="scope">
  1786. <span v-if="scope.row.fSrcTypeId === 0">录入</span>
  1787. <span v-if="scope.row.fSrcTypeId == 1">协议</span>
  1788. <span v-if="scope.row.fSrcTypeId == 10">变更</span>
  1789. </template>
  1790. </el-table-column>
  1791. <el-table-column
  1792. prop="remark"
  1793. header-align="center"
  1794. align="center"
  1795. width="150px"
  1796. label="备注"
  1797. >
  1798. <template slot-scope="scope">
  1799. <el-input
  1800. v-model="scope.row.remark"
  1801. :disabled="browseStatus || scope.row.fBillstatus == 6"
  1802. placeholder="备注"
  1803. show-word-limit
  1804. />
  1805. </template>
  1806. </el-table-column>
  1807. <el-table-column
  1808. header-align="center"
  1809. align="center"
  1810. label="操作"
  1811. width="200px"
  1812. fixed="right"
  1813. >
  1814. <template slot-scope="scope">
  1815. <el-button
  1816. @click.native.prevent="deleteRow(scope.$index, warehouseDrList)"
  1817. size="small"
  1818. :disabled="browseStatus || scope.row.fBillstatus == 6"
  1819. >移除</el-button
  1820. >
  1821. <el-button
  1822. size="small"
  1823. @click="listCheck(scope.row)"
  1824. v-if="scope.row.fBillstatus < 6"
  1825. :disabled="browseStatus"
  1826. >请核</el-button>
  1827. <el-button
  1828. size="small"
  1829. @click="revokeListCheck(scope.row)"
  1830. v-if="scope.row.fBillstatus == 6"
  1831. :disabled="browseStatus"
  1832. >撤销请核</el-button>
  1833. </template>
  1834. </el-table-column>
  1835. </el-table>
  1836. </el-collapse-item>
  1837. <el-collapse-item>
  1838. <template slot="title">
  1839. <i class="el-icon-remove" style="font-size: 16px"></i>
  1840. <span style="font-size: 16px; font-weight: bolder; margin-left: 5px"
  1841. >付款信息</span
  1842. >
  1843. </template>
  1844. <div
  1845. class="dialogTableTitle flex a-center jlr"
  1846. style="
  1847. display: flex;
  1848. justify-content: space-between;
  1849. align-items: center;
  1850. margin: 10px 0;
  1851. "
  1852. >
  1853. <div>
  1854. <el-button
  1855. type="primary"
  1856. :disabled="browseStatus"
  1857. @click.prevent="addpayment()"
  1858. size="small"
  1859. >新行
  1860. </el-button>
  1861. <el-button
  1862. type="primary"
  1863. size="small"
  1864. @click="saveForm"
  1865. :disabled="browseStatus"
  1866. >保 存</el-button
  1867. >
  1868. <el-button
  1869. type="danger"
  1870. size="small"
  1871. @click.prevent="handleSelect(1)"
  1872. >作业费协议</el-button
  1873. >
  1874. <el-button
  1875. type="info"
  1876. size="small"
  1877. @click.prevent="printCr"
  1878. v-if="isShowInvoice == 0"
  1879. >请款单
  1880. </el-button
  1881. >
  1882. <el-button
  1883. size="small"
  1884. type="primary"
  1885. @click="feesCrConfirm"
  1886. v-if="isShowFeesConfirm == 0"
  1887. >费用确认单</el-button>
  1888. <el-button
  1889. type="primary"
  1890. size="small"
  1891. v-if="browseStatus"
  1892. @click="feeChange('C')"
  1893. >
  1894. 费用变更
  1895. </el-button>
  1896. </div>
  1897. </div>
  1898. <el-table
  1899. :data="warehouseCrList"
  1900. ref="table"
  1901. tooltip-effect="dark"
  1902. border
  1903. stripe
  1904. show-summary
  1905. :summary-method="warehouseDrSummaries"
  1906. @selection-change="SelectCr"
  1907. >
  1908. <el-table-column type="selection" width="50" align="center" fixed />
  1909. <el-table-column
  1910. label="序号"
  1911. type="index"
  1912. width="50"
  1913. fixed
  1914. align="center"
  1915. />
  1916. <el-table-column
  1917. prop="fCorpid"
  1918. header-align="center"
  1919. align="center"
  1920. width="180px"
  1921. label="客户名称"
  1922. >
  1923. <template slot-scope="scope">
  1924. <el-select
  1925. v-model="scope.row.fCorpid"
  1926. filterable
  1927. clearable
  1928. placeholder="客户名称"
  1929. :disabled="browseStatus || scope.row.fBillstatus == 6"
  1930. >
  1931. <el-option
  1932. v-for="(item, index) in fMblnoOptions"
  1933. :key="index.fId"
  1934. :label="item.fName"
  1935. :value="item.fId"
  1936. ></el-option>
  1937. </el-select>
  1938. </template>
  1939. </el-table-column>
  1940. <el-table-column
  1941. prop="fFeeid"
  1942. header-align="center"
  1943. align="center"
  1944. width="240px"
  1945. label="费用名称"
  1946. >
  1947. <template slot-scope="scope">
  1948. <el-select
  1949. v-model="scope.row.fFeeid"
  1950. clearable
  1951. filterable
  1952. placeholder="费用名称"
  1953. :disabled="browseStatus || scope.row.fBillstatus == 6"
  1954. >
  1955. <el-option
  1956. v-for="(item, index) in fCNameOptions"
  1957. :key="index.fId"
  1958. :label="item.fName"
  1959. :value="item.fId"
  1960. ></el-option>
  1961. </el-select>
  1962. </template>
  1963. </el-table-column>
  1964. <el-table-column
  1965. prop="fBusinessType"
  1966. header-align="center"
  1967. align="center"
  1968. width="180px"
  1969. label="作业类型"
  1970. >
  1971. <template slot-scope="scope">
  1972. <el-select
  1973. style="width: 80%"
  1974. v-model="scope.row.fBusinessType"
  1975. filterable
  1976. disabled
  1977. >
  1978. <el-option
  1979. v-for="(item, index) in businessTypeOption"
  1980. :key="index.dictValue"
  1981. :label="item.dictLabel"
  1982. :value="item.dictValue"
  1983. ></el-option>
  1984. </el-select>
  1985. </template>
  1986. </el-table-column>
  1987. <el-table-column
  1988. prop="fFeeUnitid"
  1989. header-align="center"
  1990. align="center"
  1991. width="180px"
  1992. label="计价单位"
  1993. >
  1994. <template slot-scope="scope">
  1995. <el-select
  1996. v-model="scope.row.fFeeUnitid"
  1997. placeholder="请选择计价单位"
  1998. clearable
  1999. :disabled="browseStatus || scope.row.fBillstatus == 6"
  2000. @change="changeFeeUnit(scope.row)"
  2001. >
  2002. <el-option
  2003. v-for="(item, index) in fFeetUnitOptions"
  2004. :key="index.dictValue"
  2005. :label="item.dictLabel"
  2006. :value="item.dictValue"
  2007. />
  2008. </el-select>
  2009. </template>
  2010. </el-table-column>
  2011. <el-table-column
  2012. prop="fQty"
  2013. header-align="center"
  2014. align="center"
  2015. width="150px"
  2016. label="数量"
  2017. >
  2018. <template slot-scope="scope">
  2019. <el-input
  2020. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
  2021. v-model="scope.row.fQty"
  2022. :disabled="browseStatus || scope.row.fBillstatus == 6"
  2023. @change="changeContractAmt(scope.row)"
  2024. placeholder="数量"
  2025. show-word-limit
  2026. />
  2027. </template>
  2028. </el-table-column>
  2029. <el-table-column
  2030. prop="fUnitprice"
  2031. header-align="center"
  2032. align="center"
  2033. width="150px"
  2034. label="单价"
  2035. >
  2036. <template slot-scope="scope">
  2037. <el-input
  2038. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  2039. v-model="scope.row.fUnitprice"
  2040. :disabled="browseStatus || scope.row.fSrcTypeId !== 0 || scope.row.fBillstatus == 6"
  2041. @change="changeContractAmt(scope.row)"
  2042. placeholder="单价"
  2043. show-word-limit
  2044. />
  2045. </template>
  2046. </el-table-column>
  2047. <el-table-column
  2048. prop="fAmount"
  2049. header-align="center"
  2050. align="center"
  2051. width="150px"
  2052. label="金额"
  2053. >
  2054. <template slot-scope="scope">
  2055. <el-input
  2056. disabled
  2057. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  2058. v-model="scope.row.fAmount"
  2059. placeholder="金额"
  2060. show-word-limit
  2061. />
  2062. </template>
  2063. </el-table-column>
  2064. <el-table-column
  2065. prop="fStltypeid"
  2066. header-align="center"
  2067. align="center"
  2068. width="130px"
  2069. label="结算方式"
  2070. >
  2071. <template slot-scope="scope">
  2072. <el-select
  2073. v-model="scope.row.fStltypeid"
  2074. placeholder="请选择结算表票结、月结"
  2075. :disabled="browseStatus || scope.row.fBillstatus == 6"
  2076. >
  2077. <el-option
  2078. v-for="(item, index) in fStltypeOptions"
  2079. :key="index.dictValue"
  2080. :label="item.dictLabel"
  2081. :value="item.dictValue"
  2082. ></el-option>
  2083. </el-select>
  2084. </template>
  2085. </el-table-column>
  2086. <el-table-column
  2087. prop="fCurrency"
  2088. header-align="center"
  2089. align="center"
  2090. width="150px"
  2091. label="币别"
  2092. >
  2093. <template slot-scope="scope">
  2094. <el-input
  2095. v-model="scope.row.fCurrency"
  2096. :disabled="browseStatus || scope.row.fBillstatus == 6"
  2097. placeholder="币别"
  2098. show-word-limit
  2099. />
  2100. </template>
  2101. </el-table-column>
  2102. <el-table-column
  2103. prop="fExrate"
  2104. header-align="center"
  2105. align="center"
  2106. width="150px"
  2107. label="汇率"
  2108. >
  2109. <template slot-scope="scope">
  2110. <el-input
  2111. v-model="scope.row.fExrate"
  2112. :disabled="browseStatus || scope.row.fBillstatus == 6"
  2113. placeholder="汇率"
  2114. show-word-limit
  2115. />
  2116. </template>
  2117. </el-table-column>
  2118. <el-table-column
  2119. prop="fTaxrate"
  2120. header-align="center"
  2121. align="center"
  2122. width="150px"
  2123. label="税率"
  2124. >
  2125. <template slot-scope="scope">
  2126. <el-input
  2127. v-model="scope.row.fTaxrate"
  2128. :disabled="browseStatus || scope.row.fBillstatus == 6"
  2129. placeholder="税率"
  2130. show-word-limit
  2131. />
  2132. </template>
  2133. </el-table-column>
  2134. <el-table-column
  2135. prop="fMblno"
  2136. header-align="center"
  2137. align="center"
  2138. width="130px"
  2139. label="提单号"
  2140. >
  2141. <template slot-scope="scope">
  2142. <el-input
  2143. v-model="scope.row.fMblno"
  2144. :disabled="browseStatus || scope.row.fBillstatus == 6"
  2145. placeholder="提单号"
  2146. show-word-limit
  2147. />
  2148. </template>
  2149. </el-table-column>
  2150. <el-table-column
  2151. prop="fProductName"
  2152. header-align="center"
  2153. align="center"
  2154. width="140px"
  2155. label="品名"
  2156. >
  2157. <template slot-scope="scope">
  2158. <el-input
  2159. v-model="scope.row.fProductName"
  2160. :disabled="browseStatus || scope.row.fBillstatus == 6"
  2161. placeholder="品名"
  2162. show-word-limit
  2163. />
  2164. </template>
  2165. </el-table-column>
  2166. <el-table-column
  2167. prop="fMarks"
  2168. header-align="center"
  2169. align="center"
  2170. width="130px"
  2171. label="品牌"
  2172. >
  2173. <template slot-scope="scope">
  2174. <el-input
  2175. v-model="scope.row.fMarks"
  2176. :disabled="browseStatus || scope.row.fBillstatus == 6"
  2177. placeholder="品牌"
  2178. show-word-limit
  2179. />
  2180. </template>
  2181. </el-table-column>
  2182. <el-table-column
  2183. prop="fSrcTypeId"
  2184. header-align="center"
  2185. align="center"
  2186. width="130px"
  2187. label="来源"
  2188. >
  2189. <template slot-scope="scope">
  2190. <span v-if="scope.row.fSrcTypeId === 0">录入</span>
  2191. <span v-if="scope.row.fSrcTypeId == 1">协议</span>
  2192. <span v-if="scope.row.fSrcTypeId == 10">变更</span>
  2193. </template>
  2194. </el-table-column>
  2195. <el-table-column
  2196. prop="remark"
  2197. header-align="center"
  2198. align="center"
  2199. width="150px"
  2200. label="备注"
  2201. >
  2202. <template slot-scope="scope">
  2203. <el-input
  2204. v-model="scope.row.remark"
  2205. :disabled="browseStatus || scope.row.fBillstatus == 6"
  2206. placeholder="备注"
  2207. show-word-limit
  2208. />
  2209. </template>
  2210. </el-table-column>
  2211. <el-table-column
  2212. header-align="center"
  2213. align="center"
  2214. width="200px"
  2215. label="操作"
  2216. fixed="right"
  2217. >
  2218. <template slot-scope="scope">
  2219. <!-- <el-button size="small">审核费用</el-button> -->
  2220. <el-button
  2221. @click.native.prevent="deleteRow(scope.$index, warehouseCrList)"
  2222. size="small"
  2223. :disabled="browseStatus || scope.row.fBillstatus == 6"
  2224. >移除</el-button
  2225. >
  2226. <el-button
  2227. size="small"
  2228. @click="listCheck(scope.row)"
  2229. v-if="scope.row.fBillstatus < 6"
  2230. :disabled="browseStatus"
  2231. >请核</el-button>
  2232. <el-button
  2233. size="small"
  2234. @click="revokeListCheck(scope.row)"
  2235. v-if="scope.row.fBillstatus == 6"
  2236. :disabled="browseStatus"
  2237. >撤销请核</el-button>
  2238. </template>
  2239. </el-table-column>
  2240. </el-table>
  2241. </el-collapse-item>
  2242. </el-collapse>
  2243. <el-dialog
  2244. title="在库物资"
  2245. :modal="false"
  2246. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2247. :visible.sync="whgenlegVisible"
  2248. width="85%"
  2249. @close="init2()"
  2250. v-dialogDrag
  2251. :close-on-click-modal="false"
  2252. >
  2253. <el-dialog
  2254. title="自定义列显示"
  2255. :visible.sync="showSetting2"
  2256. width="700px"
  2257. v-dialogDrag
  2258. append-to-body
  2259. :close-on-click-modal="false"
  2260. >
  2261. <template slot="title">
  2262. <div class="avue-crud__dialog__header">
  2263. <span class="el-dialog__title">
  2264. <span
  2265. style="
  2266. display: inline-block;
  2267. width: 3px;
  2268. height: 20px;
  2269. margin-right: 5px;
  2270. float: left;
  2271. margin-top: 2px;
  2272. "
  2273. ></span>
  2274. </span>
  2275. </div>
  2276. </template>
  2277. <div>配置排序列数据(拖动调整顺序)</div>
  2278. <div style="margin-left: 17px">
  2279. <el-checkbox
  2280. v-model="allCheck2"
  2281. label="全选"
  2282. @change="allChecked2"
  2283. ></el-checkbox>
  2284. </div>
  2285. <div style="padding: 4px; display: flex; justify-content: center">
  2286. <draggable
  2287. v-model="setRowList2"
  2288. group="site"
  2289. animation="300"
  2290. @start="onStart"
  2291. @end="onEnd"
  2292. handle=".indraggable"
  2293. >
  2294. <transition-group>
  2295. <div
  2296. v-for="item in setRowList2"
  2297. :key="item.surface"
  2298. class="listStyle"
  2299. >
  2300. <div style="width: 500px" class="indraggable">
  2301. <div class="progress" :style="{ width: item.width + 'px' }">
  2302. <el-checkbox
  2303. :label="item.name"
  2304. v-model="item.checked"
  2305. :true-label="0"
  2306. :false-label="1"
  2307. >{{ item.name }}
  2308. </el-checkbox>
  2309. </div>
  2310. </div>
  2311. <el-input-number
  2312. v-model.number="item.width"
  2313. controls-position="right"
  2314. :min="1"
  2315. :max="500"
  2316. size="mini"
  2317. ></el-input-number>
  2318. </div>
  2319. </transition-group>
  2320. </draggable>
  2321. </div>
  2322. <span slot="footer" class="dialog-footer">
  2323. <el-button @click="showSetting2 = false">取 消</el-button>
  2324. <el-button @click="delRow2" type="danger">重 置</el-button>
  2325. <el-button type="primary" @click="save2()">确 定</el-button>
  2326. </span>
  2327. </el-dialog>
  2328. <el-form ref="whgenlegParams" :model="whgenlegParams">
  2329. <el-row>
  2330. <el-col :span="5">
  2331. <el-form-item label="提单号" prop="fMblno" label-width="70px">
  2332. <el-input
  2333. v-model="whgenlegParams.fMblno"
  2334. placeholder="请输入提单号"
  2335. clearable
  2336. />
  2337. </el-form-item>
  2338. </el-col>
  2339. <el-col :span="5">
  2340. <el-form-item label="箱号" prop="fCntrno" label-width="70px">
  2341. <el-input
  2342. v-model="whgenlegParams.fCntrno"
  2343. placeholder="请输入箱号"
  2344. clearable
  2345. />
  2346. </el-form-item>
  2347. </el-col>
  2348. <el-col :span="10">
  2349. <el-form-item
  2350. label="入库日期区间"
  2351. prop="orgStorageDate"
  2352. label-width="120px"
  2353. >
  2354. <el-date-picker
  2355. style="width: 80%"
  2356. v-model="whgenlegParams.orgStorageDate"
  2357. type="daterange"
  2358. start-placeholder="开始日期"
  2359. end-placeholder="结束日期"
  2360. value-format="yyyy-MM-dd HH:mm:ss"
  2361. :default-time="['00:00:00', '23:59:59']"
  2362. >
  2363. </el-date-picker>
  2364. </el-form-item>
  2365. </el-col>
  2366. <el-col :span="2">
  2367. <el-button
  2368. type="cyan"
  2369. icon="el-icon-search"
  2370. @click="getDetailsList()"
  2371. >搜索</el-button
  2372. >
  2373. </el-col>
  2374. <el-col :span="2" style="display: flex; justify-content: flex-end">
  2375. <el-button
  2376. icon="el-icon-setting"
  2377. circle
  2378. @click="showSetting2 = !showSetting2"
  2379. ></el-button>
  2380. </el-col>
  2381. </el-row>
  2382. </el-form>
  2383. <el-table
  2384. :data="whgenlegList"
  2385. ref="table"
  2386. tooltip-effect="dark"
  2387. width="100%"
  2388. stripe
  2389. @selection-change="whgenlegSelectionChange"
  2390. >
  2391. <el-table-column type="selection" width="50"> </el-table-column>
  2392. <el-table-column
  2393. v-for="(item, index) in getRowList2"
  2394. :key="index"
  2395. :label="item.name"
  2396. :width="item.width"
  2397. :prop="item.label"
  2398. align="center"
  2399. :fixed="item.fixed"
  2400. sortable
  2401. >
  2402. <template slot-scope="scope">
  2403. <span v-if="item.label == 'fQtyblc2'">
  2404. <el-input
  2405. @change="qtyChange(scope.row)"
  2406. v-model="scope.row.fQtyblc2"
  2407. placeholder="件数"
  2408. />
  2409. </span>
  2410. <span v-else-if="item.label == 'fGrossweightblc2'">
  2411. <el-input
  2412. v-model="scope.row.fGrossweightblc2"
  2413. @change="changeOutStock(scope.row)"
  2414. placeholder="毛重"
  2415. />
  2416. </span>
  2417. <span v-else-if="item.label == 'fNetweightblc2'">
  2418. <el-input
  2419. v-model="scope.row.fNetweightblc2"
  2420. @change="changeOutStock(scope.row)"
  2421. placeholder="净重"
  2422. />
  2423. </span>
  2424. <span v-else>{{ scope.row[item.label] }}</span>
  2425. </template>
  2426. </el-table-column>
  2427. </el-table>
  2428. <pagination
  2429. v-show="whgenlegTotal > 0"
  2430. :total="whgenlegTotal"
  2431. :page.sync="whgenlegParams.pageNum"
  2432. :limit.sync="whgenlegParams.pageSize"
  2433. @pagination="getDetailsList"
  2434. />
  2435. <div slot="footer" class="dialog-footer">
  2436. <el-button type="primary" @click="whgenlegData">导入库存总账</el-button>
  2437. <el-button @click="whgenlegVisible = false">取 消</el-button>
  2438. </div>
  2439. </el-dialog>
  2440. <el-dialog
  2441. :visible.sync="print_zyd"
  2442. width="70%"
  2443. :close-on-click-modal="false"
  2444. :modal="false"
  2445. >
  2446. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  2447. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  2448. <div id="print_area1" class="print-div">
  2449. <div
  2450. class="print-title"
  2451. style="
  2452. display: flex;
  2453. justify-content: center;
  2454. font-size: 24px;
  2455. margin-bottom: 5px;
  2456. "
  2457. >
  2458. {{ company }}作业单
  2459. </div>
  2460. <div
  2461. style="
  2462. display: flex;
  2463. justify-content: center;
  2464. font-size: 18px;
  2465. margin-bottom: 5px;
  2466. "
  2467. ></div>
  2468. <div class="print_table" style="display: flex">
  2469. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
  2470. <tr>
  2471. <td>作业类型</td>
  2472. <td colspan="2">
  2473. {{ form.fBusinessType | fBusinessTypeFormat }}
  2474. </td>
  2475. <td>调拨时间</td>
  2476. <td colspan="2"></td>
  2477. </tr>
  2478. <tr>
  2479. <td>车号</td>
  2480. <td>物品名称</td>
  2481. <td>提单号</td>
  2482. <td>品牌/规格/产地</td>
  2483. <td v-if="radio == 1">净重(T)</td>
  2484. <td v-else>净重(KG)</td>
  2485. <td>件数/规格</td>
  2486. </tr>
  2487. <tr v-for="(item, index) in Printinglist" :key="index">
  2488. <td>{{ item.fTruckno }}</td>
  2489. <td>{{ item.fGoodsids }}</td>
  2490. <td>{{ item.fMblno }}</td>
  2491. <td>
  2492. {{ item.fBusinessType | fStorageFormat }}/{{ item.fMarks }}
  2493. </td>
  2494. <td v-if="radio == 1">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  2495. <td v-else>{{ item.fNetweight }}</td>
  2496. <td>{{ item.fQty }}/{{ item.fPackagespecs }}</td>
  2497. </tr>
  2498. <tr>
  2499. <td>备注</td>
  2500. <td colspan="5"></td>
  2501. </tr>
  2502. <tr v-for="(item, index) in Collectionoptionss" :key="index">
  2503. <td>收费</td>
  2504. <td colspan="2">{{ item.fFeeids }}</td>
  2505. <td colspan="3">{{ item.fAmount }} 元</td>
  2506. </tr>
  2507. <tr>
  2508. <td>司机签字</td>
  2509. <td></td>
  2510. <td>电话</td>
  2511. <td>{{ fDriverTel }}</td>
  2512. <td colspan="2" rowspan="2">
  2513. 确认货物数量无误,包装于货物完好!<br />出库盖好篷布,如有违背责任自负<br />装卸工是否收小费
  2514. </td>
  2515. </tr>
  2516. <tr>
  2517. <td>制表</td>
  2518. <td>{{ form.createBy }}</td>
  2519. <td>机械/人工</td>
  2520. <td></td>
  2521. </tr>
  2522. <tr>
  2523. <td>地址</td>
  2524. <td colspan="2">{{ stockaddr }}</td>
  2525. <td>电话</td>
  2526. <td colspan="2">{{ form.fTel }}</td>
  2527. </tr>
  2528. </table>
  2529. </div>
  2530. </div>
  2531. <span lot="footer" class="dialog-footer">
  2532. <el-button
  2533. type="primary"
  2534. size="mini"
  2535. @click="
  2536. print_zyd = false;
  2537. addprint('zyd');
  2538. "
  2539. >打印
  2540. </el-button>
  2541. <el-button @click="print_zyd = false" size="mini">取消 </el-button>
  2542. </span>
  2543. </el-dialog>
  2544. <el-dialog
  2545. :visible.sync="print_rkd"
  2546. width="70%"
  2547. :close-on-click-modal="false"
  2548. :modal="false"
  2549. >
  2550. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  2551. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  2552. <div id="print_area2" class="print-div">
  2553. <div
  2554. class="print-title"
  2555. style="
  2556. display: flex;
  2557. justify-content: center;
  2558. font-size: 24px;
  2559. margin-bottom: 5px;
  2560. "
  2561. >
  2562. {{ company }}进仓单
  2563. </div>
  2564. <div class="print_table" style="display: flex">
  2565. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
  2566. <tr>
  2567. <td>客户</td>
  2568. <td>{{ form.fCorpidName }}</td>
  2569. <td>仓库</td>
  2570. <td>{{ form.fWarehouseids }}</td>
  2571. <td>地址</td>
  2572. <td colspan="2">{{ stockaddr }}</td>
  2573. </tr>
  2574. <tr>
  2575. <td>保管方</td>
  2576. <td width="200">{{ company }}</td>
  2577. <td>联系人</td>
  2578. <td>{{ form.fContacts }}</td>
  2579. <td>电话</td>
  2580. <td colspan="2">{{ form.fTel }}</td>
  2581. </tr>
  2582. <tr>
  2583. <td>提单号</td>
  2584. <td>品名</td>
  2585. <td>箱型</td>
  2586. <td>品牌</td>
  2587. <td>件数</td>
  2588. <td>重量</td>
  2589. <td>包装规格</td>
  2590. </tr>
  2591. <tr>
  2592. <td></td>
  2593. <td></td>
  2594. <td></td>
  2595. <td></td>
  2596. <td></td>
  2597. <td></td>
  2598. <td></td>
  2599. </tr>
  2600. <tr>
  2601. <td>序号</td>
  2602. <td>入货日期</td>
  2603. <td>箱量(20GP)</td>
  2604. <td v-if="radio == 1">重量(吨)</td>
  2605. <td v-if="radio == 2">重量(千克)</td>
  2606. <td>件数</td>
  2607. <td v-if="radio == 1">入库重量(吨)</td>
  2608. <td v-if="radio == 2">入库重量(千克)</td>
  2609. <td>入库件数</td>
  2610. </tr>
  2611. <tr v-for="(item, index) in Printinglist" :key="index">
  2612. <td>{{ index + 1 }}</td>
  2613. <td>{{ item.fBsdate | fBsdateFormat }}</td>
  2614. <td>{{ item.fCntqty }}</td>
  2615. <td v-if="item.fGrossweight && radio == 1">
  2616. {{ (item.fGrossweight / 1000).toFixed(4) }}
  2617. </td>
  2618. <td v-else-if="item.fGrossweight && radio == 2">
  2619. {{ item.fGrossweight }}
  2620. </td>
  2621. <td v-else></td>
  2622. <td>{{ item.fPlanqty }}</td>
  2623. <td v-if="item.fNetweight && radio == 1">
  2624. {{ (item.fNetweight / 1000).toFixed(4) }}
  2625. </td>
  2626. <td v-else-if="item.fNetweight && radio == 2">
  2627. {{ item.fNetweight }}
  2628. </td>
  2629. <td v-else></td>
  2630. <td>{{ item.fQty }}</td>
  2631. </tr>
  2632. <tr>
  2633. <td colspan="2">合计</td>
  2634. <td>{{ allfCntqty }}</td>
  2635. <td v-if="radio == 1">{{ (allfGrossweight / 1000).toFixed(4) }}</td>
  2636. <td v-if="radio == 2">{{ allfGrossweight }}</td>
  2637. <td>{{ allfPlanqty }}</td>
  2638. <td v-if="radio == 1">{{ (allfNetweight / 1000).toFixed(4) }}</td>
  2639. <td v-if="radio == 2">{{ allfNetweight }}</td>
  2640. <td>{{ allfQty }}</td>
  2641. </tr>
  2642. <tr>
  2643. <td>备注</td>
  2644. <td colspan="6"></td>
  2645. </tr>
  2646. <tr>
  2647. <td colspan="7">
  2648. 本进仓单经仓管员签字并经保管方盖章后即专项作为货物所有人的货权证明,本单据不得转让。
  2649. </td>
  2650. </tr>
  2651. </table>
  2652. </div>
  2653. <div
  2654. style="display: flex; justify-content: space-between; font-size: 12px"
  2655. >
  2656. <div>开单员:</div>
  2657. <div style="width: 150px">仓管员:</div>
  2658. </div>
  2659. <div
  2660. style="display: flex; justify-content: space-between; font-size: 12px"
  2661. >
  2662. <div>开单时间:</div>
  2663. <div style="width: 150px">(盖章)</div>
  2664. </div>
  2665. </div>
  2666. <span slot="footer" class="dialog-footer">
  2667. <el-button
  2668. type="primary"
  2669. @click="
  2670. print_rkd = false;
  2671. addprint('rkd');
  2672. "
  2673. >打印
  2674. </el-button>
  2675. <el-button @click="print_rkd = false">取消 </el-button>
  2676. </span>
  2677. </el-dialog>
  2678. <el-dialog
  2679. :visible.sync="print_shd"
  2680. width="70%"
  2681. :close-on-click-modal="false"
  2682. :modal="false"
  2683. >
  2684. <div id="print_area3" class="print-div">
  2685. <div
  2686. class="print-title"
  2687. style="
  2688. display: flex;
  2689. justify-content: center;
  2690. font-size: 24px;
  2691. margin-bottom: 5px;
  2692. "
  2693. >
  2694. {{ company }}收货单
  2695. </div>
  2696. <div class="print_table" style="display: flex">
  2697. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
  2698. <tr>
  2699. <td>车号</td>
  2700. <td>{{ fTruckno }}</td>
  2701. <td>日期</td>
  2702. <td>{{ fBsdate }}</td>
  2703. </tr>
  2704. <tr v-for="(item, index) in Printinglist" :key="index">
  2705. <td>货物品名</td>
  2706. <td>{{ item.fGoodsids }}</td>
  2707. <td>件数</td>
  2708. <td>{{ item.fQty }}件</td>
  2709. </tr>
  2710. <tr>
  2711. <td>备注</td>
  2712. <td colspan="3"></td>
  2713. </tr>
  2714. <tr>
  2715. <td>司机签字</td>
  2716. <td></td>
  2717. <td>司机电话</td>
  2718. <td>{{ fDriverTel }}</td>
  2719. </tr>
  2720. <tr>
  2721. <td>制单人</td>
  2722. <td>{{ form.createBy }}</td>
  2723. <td>收货人</td>
  2724. <td>{{ form.fContacts }}</td>
  2725. </tr>
  2726. <tr>
  2727. <td>地址</td>
  2728. <td>{{ stockaddr }}</td>
  2729. <td>电话</td>
  2730. <td>{{ form.fTel }}</td>
  2731. </tr>
  2732. </table>
  2733. </div>
  2734. </div>
  2735. <span slot="footer" class="dialog-footer">
  2736. <el-button
  2737. type="primary"
  2738. @click="
  2739. addprint('shd');
  2740. print_shd = false;
  2741. "
  2742. >打印
  2743. </el-button>
  2744. <el-button @click="print_shd = false">取消 </el-button>
  2745. </span>
  2746. </el-dialog>
  2747. <el-dialog
  2748. :visible.sync="print_ykd"
  2749. width="70%"
  2750. :close-on-click-modal="false"
  2751. :modal="false"
  2752. >
  2753. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  2754. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  2755. <div id="print_area4" class="print-div">
  2756. <div
  2757. class="print-title"
  2758. style="
  2759. display: flex;
  2760. justify-content: center;
  2761. font-size: 24px;
  2762. margin-bottom: 5px;
  2763. "
  2764. >
  2765. {{ company }}
  2766. </div>
  2767. <div
  2768. style="
  2769. display: flex;
  2770. justify-content: center;
  2771. font-size: 18px;
  2772. margin-bottom: 5px;
  2773. "
  2774. >
  2775. <div>移&nbsp;库&nbsp;单</div>
  2776. </div>
  2777. <div
  2778. style="
  2779. display: flex;
  2780. justify-content: space-between;
  2781. margin-bottom: 5px;
  2782. "
  2783. class="print_form"
  2784. >
  2785. <div>
  2786. <div>业务编号:{{ form.fCustomno }}</div>
  2787. <div>调拨日期:{{ form.fChargedate }}</div>
  2788. </div>
  2789. <div>
  2790. <div>客户名称:{{ form.fCorpidName }}</div>
  2791. <div>提单号:{{ form.fMblno }}</div>
  2792. </div>
  2793. <div>
  2794. <div>存放地址:{{ stockName }}</div>
  2795. <div>调拨:</div>
  2796. </div>
  2797. </div>
  2798. <div class="print_table" style="display: flex">
  2799. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
  2800. <tr>
  2801. <td>箱号</td>
  2802. <td>现存库区</td>
  2803. <td>件数</td>
  2804. <td v-if="radio == 1">毛重(吨)</td>
  2805. <td v-if="radio == 2">毛重(千克)</td>
  2806. <td v-if="radio == 1">净重(吨)</td>
  2807. <td v-if="radio == 2">净重(千克)</td>
  2808. <td>移入库区</td>
  2809. </tr>
  2810. <tr v-for="(item, index) in Printinglist" :key="index">
  2811. <td>{{ item.fCntrno }}</td>
  2812. <td>{{ item.fOrgwarehouseInformation }}</td>
  2813. <td>{{ item.fQty }}</td>
  2814. <td v-if="radio == 1">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  2815. <td v-if="radio == 1">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  2816. <td v-if="radio == 2">{{ item.fGrossweight }}</td>
  2817. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  2818. <td>{{ item.fWarehouseInformation }}</td>
  2819. </tr>
  2820. </table>
  2821. </div>
  2822. <div
  2823. style="display: flex; justify-content: space-between; font-size: 12px"
  2824. >
  2825. <div>库管:{{ form.fContacts }}</div>
  2826. <div style="width: 100px">叉车:</div>
  2827. </div>
  2828. </div>
  2829. <span slot="footer" class="dialog-footer">
  2830. <el-button
  2831. type="primary"
  2832. @click="
  2833. addprint('ykd');
  2834. print_ykd = false;
  2835. "
  2836. >打印
  2837. </el-button>
  2838. <el-button @click="print_ykd = false">取消 </el-button>
  2839. </span>
  2840. </el-dialog>
  2841. <el-dialog
  2842. :visible.sync="print_ddd"
  2843. width="70%"
  2844. :close-on-click-modal="false"
  2845. :modal="false"
  2846. >
  2847. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  2848. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  2849. <div id="print_area5" class="print-div">
  2850. <div
  2851. class="print-title"
  2852. style="
  2853. display: flex;
  2854. justify-content: center;
  2855. font-size: 24px;
  2856. margin-bottom: 5px;
  2857. "
  2858. >
  2859. {{ company }}
  2860. </div>
  2861. <!-- <div-->
  2862. <!-- style="-->
  2863. <!-- display: flex;-->
  2864. <!-- justify-content: center;-->
  2865. <!-- font-size: 18px;-->
  2866. <!-- margin-bottom: 5px;-->
  2867. <!-- "-->
  2868. <!-- >-->
  2869. <!-- <div>移&nbsp;库&nbsp;单</div>-->
  2870. <!-- </div>-->
  2871. <div
  2872. style="
  2873. display: flex;
  2874. justify-content: space-between;
  2875. margin-bottom: 5px;
  2876. "
  2877. class="print_form"
  2878. >
  2879. <div>
  2880. <div>调拨日:{{ fBsdate }}&nbsp;{{timeOut}}</div>
  2881. </div>
  2882. <div>
  2883. <div>清单:{{ form.fCustomsdeclartion }}</div>
  2884. </div>
  2885. <div>
  2886. <div>调拨:{{form.fStorekeeper}}</div>
  2887. </div>
  2888. </div>
  2889. <div class="print_table" style="display: flex">
  2890. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
  2891. <tr>
  2892. <td>箱号</td>
  2893. <td>现存库区</td>
  2894. <td>件数</td>
  2895. <td v-if="radio == 1">毛重(吨)</td>
  2896. <td v-if="radio == 1">净重(吨)</td>
  2897. <td v-if="radio == 2">毛重(千克)</td>
  2898. <td v-if="radio == 2">净重(千克)</td>
  2899. <td>移入库区</td>
  2900. </tr>
  2901. <tr v-for="(item, index) in Printinglist" :key="index">
  2902. <td>{{ item.fCntrno }}</td>
  2903. <td>{{ item.fOrgwarehouseInformation }}</td>
  2904. <td>{{ item.fQty }}</td>
  2905. <td v-if="radio == 1">{{ (item.fGrossweight/1000).toFixed(4) }}</td>
  2906. <td v-if="radio == 1">{{ (item.fNetweight/1000).toFixed(4) }}</td>
  2907. <td v-if="radio == 2">{{ item.fGrossweight }}</td>
  2908. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  2909. <td>{{ item.fWarehouseInformation }}</td>
  2910. </tr>
  2911. <tr>
  2912. <td colspan="2">合计:</td>
  2913. <td>{{allfQty}}</td>
  2914. <td v-if="radio == 1">{{(allfNetweight/1000).toFixed(4)}}</td>
  2915. <td v-if="radio == 1">{{(allfGrossweight/1000).toFixed(4)}}</td>
  2916. <td v-if="radio == 2">{{allfNetweight}}</td>
  2917. <td v-if="radio == 2">{{allfGrossweight}}</td>
  2918. <td></td>
  2919. </tr>
  2920. <tr>
  2921. <td colspan="6" style="text-align: left">备注:{{form.remark}}</td>
  2922. </tr>
  2923. </table>
  2924. </div>
  2925. <div
  2926. style="display: flex; justify-content: space-between; font-size: 12px"
  2927. >
  2928. <div>库管:{{ form.fContacts }}</div>
  2929. <div style="width: 100px">叉车:</div>
  2930. </div>
  2931. </div>
  2932. <span slot="footer" class="dialog-footer">
  2933. <el-button
  2934. type="primary"
  2935. @click="
  2936. addprint('ddd');
  2937. print_ddd = false;
  2938. "
  2939. >打印
  2940. </el-button>
  2941. <el-button @click="print_ddd = false">取消 </el-button>
  2942. </span>
  2943. </el-dialog>
  2944. <!-- 选择作业费协议数据 -->
  2945. <el-dialog
  2946. v-dialogDrag
  2947. title="作业费协议"
  2948. :close-on-click-modal="false"
  2949. :modal="false"
  2950. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2951. :visible.sync="warehousingagreements"
  2952. width="70%"
  2953. >
  2954. <template slot="作业费协议">
  2955. <div class="avue-crud__dialog__header">
  2956. <span class="el-dialog__title">
  2957. <span
  2958. style="
  2959. display: inline-block;
  2960. width: 3px;
  2961. height: 20px;
  2962. margin-right: 5px;
  2963. float: left;
  2964. margin-top: 2px;
  2965. "
  2966. ></span>
  2967. </span>
  2968. </div>
  2969. </template>
  2970. <el-menu
  2971. :default-active="activeIndex"
  2972. v-if="Navigation === true"
  2973. class="el-menu-demo"
  2974. mode="horizontal"
  2975. @select="handleSelect"
  2976. >
  2977. <el-menu-item index="1">车队作业费</el-menu-item>
  2978. <el-menu-item index="2">劳务作业费</el-menu-item>
  2979. </el-menu>
  2980. <el-table
  2981. :data="tasklegList"
  2982. ref="table"
  2983. tooltip-effect="dark"
  2984. width="100%"
  2985. border
  2986. stripe
  2987. @selection-change="whgenlegSelectionChange"
  2988. >
  2989. <el-table-column type="selection" width="55"> </el-table-column>
  2990. <el-table-column label="行号" type="index" width="80">
  2991. </el-table-column>
  2992. <el-table-column
  2993. prop="fCorpname"
  2994. header-align="center"
  2995. align="center"
  2996. label="客户名称"
  2997. />
  2998. <el-table-column
  2999. prop="fName"
  3000. header-align="center"
  3001. align="center"
  3002. label="费用名称"
  3003. />
  3004. <el-table-column
  3005. prop="fFeeUnitid"
  3006. header-align="center"
  3007. align="center"
  3008. width="180px"
  3009. label="计价单位"
  3010. >
  3011. <template slot-scope="scope">
  3012. <el-select
  3013. v-model="scope.row.fFeeUnitid"
  3014. placeholder="请选择计价单位"
  3015. @change="changeFeeUnit(scope.row)"
  3016. disabled
  3017. clearable
  3018. >
  3019. <el-option
  3020. v-for="(dict, index) in fFeetUnitOptions"
  3021. :key="index.dictValue"
  3022. :label="dict.dictLabel"
  3023. :value="dict.dictValue"
  3024. />
  3025. </el-select>
  3026. </template>
  3027. </el-table-column>
  3028. <el-table-column
  3029. prop="fPrice"
  3030. header-align="center"
  3031. align="center"
  3032. label="单价"
  3033. width="100px"
  3034. />
  3035. <el-table-column
  3036. prop="remark"
  3037. header-align="center"
  3038. align="center"
  3039. label="备注"
  3040. />
  3041. </el-table>
  3042. <pagination
  3043. v-show="whgenlegTotal > 0"
  3044. :total="whgenlegTotal"
  3045. :page.sync="pageNum"
  3046. :limit.sync="pageSize"
  3047. @pagination="getWhgenlegList(key_id)"
  3048. />
  3049. <div slot="footer" class="dialog-footer">
  3050. <el-button type="primary" @click="zhgenlegData" :disabled="browseStatus">导 入</el-button>
  3051. <el-button
  3052. @click="
  3053. warehousingagreements = false;
  3054. Navigation = false;
  3055. "
  3056. >取 消</el-button
  3057. >
  3058. </div>
  3059. </el-dialog>
  3060. <el-dialog
  3061. title="选择库位"
  3062. :data="treeselectList"
  3063. :visible.sync="choiceWarehouse"
  3064. width="30%"
  3065. :before-close="hanDleclose"
  3066. >
  3067. <treeselect
  3068. v-model="treeselectList.fWarehouselocid"
  3069. @select="getAlltree"
  3070. :options="fWarehouseidOptions"
  3071. :show-count="true"
  3072. :disable-branch-nodes="true"
  3073. placeholder="请选择归属库区"
  3074. />
  3075. <span slot="footer" class="dialog-footer">
  3076. <el-button @click="choiceWarehouse = false">取 消</el-button>
  3077. <el-button type="primary" @click="confirm">确 定</el-button>
  3078. </span>
  3079. </el-dialog>
  3080. <div style="display: flex; justify-content: flex-end; margin-top: 10px">
  3081. <!-- 弹窗, 新增 / 修改 -->
  3082. <add-or-update
  3083. v-if="addOrUpdateVisible"
  3084. ref="addOrUpdate"
  3085. @refreshDataList="getDataList"
  3086. ></add-or-update>
  3087. <approval-comments
  3088. v-if="addOrUpdateVisib"
  3089. ref="ApprovalComments"
  3090. @refreshDataList="returnData"
  3091. ></approval-comments>
  3092. <el-button
  3093. type="primary"
  3094. :disabled="approvalStatus"
  3095. v-if="form.fBillstatus > 3"
  3096. @click="addOrUpdateHandle(form, 'f_billstatus')"
  3097. >查看审批</el-button
  3098. >
  3099. <el-button
  3100. type="primary"
  3101. v-if="approVal === true && form.fBillstatus >= 4 && form.fBillstatus < 6"
  3102. @click="addOrUpdateHand(form, 'f_billstatus')"
  3103. >审批</el-button
  3104. >
  3105. <el-button :disabled="browseStatus" type="primary" @click="saveForm()"
  3106. >保 存</el-button
  3107. >
  3108. <el-button
  3109. :disabled="form.fBillstatus > 3"
  3110. style="background-color: #008000; color: #fff"
  3111. @click="submitForm()"
  3112. >请核</el-button
  3113. >
  3114. <el-button type="danger" v-if="form.fBillstatus == 6" @click="revoke"
  3115. >撤销请核</el-button
  3116. >
  3117. <el-button
  3118. type="danger"
  3119. v-if="form.fBillstatus == 4 && current == before"
  3120. :disabled="doNot"
  3121. @click="revokeTwo('f_billstatus')"
  3122. >撤销审批</el-button
  3123. >
  3124. <el-button @click="cancel">取 消</el-button>
  3125. </div>
  3126. <!-- 付款信息作业单-->
  3127. <el-dialog
  3128. :visible.sync="print_Cr"
  3129. width="70%"
  3130. :close-on-click-modal="false"
  3131. :modal="false"
  3132. >
  3133. <div id="print_Cr" class="print-div">
  3134. <div
  3135. class="print-title"
  3136. style="
  3137. display: flex;
  3138. justify-content: center;
  3139. font-size: 24px;
  3140. margin-bottom: 5px;
  3141. "
  3142. >
  3143. {{ company }}请款单
  3144. </div>
  3145. <div
  3146. style="
  3147. display: flex;
  3148. justify-content: center;
  3149. font-size: 18px;
  3150. margin-bottom: 5px;
  3151. "
  3152. ></div>
  3153. <div
  3154. style="
  3155. display: flex;
  3156. justify-content: space-between;
  3157. margin-bottom: 5px;
  3158. "
  3159. class="print_form"
  3160. >
  3161. <div style="display: flex; flex-direction: column;">
  3162. <!-- <div>请款单号:</div>-->
  3163. <div>源业务编码:{{ form.fBillno }}</div>
  3164. <div>委托单位:{{ form.fCorpid | fMblnoFormat(fMblnoOptions) }}</div>
  3165. </div>
  3166. <div style="display: flex; flex-direction: column;margin-right: 15px;width: 150px">
  3167. <div style="">请款日期:</div>
  3168. </div>
  3169. </div>
  3170. <div class="print_table" style="display: flex">
  3171. <table
  3172. border="0"
  3173. cellspacing="0"
  3174. cellpadding="0"
  3175. style="width: 100%; line-height: 30px"
  3176. >
  3177. <tr>
  3178. <td>结算单位</td>
  3179. <td>提单号</td>
  3180. <!-- <td>源业务编码</td>-->
  3181. <td>业务日期</td>
  3182. <td>数量</td>
  3183. <td>单价</td>
  3184. <td>费用</td>
  3185. <td>人民币</td>
  3186. <td>美元</td>
  3187. </tr>
  3188. <tr v-for="(item, index) in PrintingCrlist" :key="index">
  3189. <td>{{ item.fCorpid | fMblnoFormat(fMblnoOptions) }}</td>
  3190. <td>{{ form.fMblno }}</td>
  3191. <!-- <td>{{ form.fBillno }}</td>-->
  3192. <td>{{ form.fBsdate | fBsdateFormat }}</td>
  3193. <td>{{ item.fQty }}</td>
  3194. <td>{{ item.fUnitprice }}</td>
  3195. <td>{{ item.fFeeid | fFeetFormat(fCNameOptions) }}</td>
  3196. <td>{{ item.fAmount }}</td>
  3197. <td></td>
  3198. </tr>
  3199. <tr>
  3200. <td>合计</td>
  3201. <td></td>
  3202. <td></td>
  3203. <td>{{ allCrfQty }}</td>
  3204. <td></td>
  3205. <td></td>
  3206. <td>{{ allCrfAmount }}</td>
  3207. <td></td>
  3208. </tr>
  3209. </table>
  3210. </div>
  3211. <div
  3212. style="display: flex; justify-content: space-between; font-size: 12px"
  3213. >
  3214. <div>领款人:</div>
  3215. <div>业务经理:</div>
  3216. <div>财务:</div>
  3217. <div style="width: 150px">经理:</div>
  3218. </div>
  3219. </div>
  3220. <span lot="footer" class="dialog-footer">
  3221. <el-button
  3222. type="primary"
  3223. size="mini"
  3224. @click="
  3225. print_Cr = false;
  3226. addprint('crzyd');
  3227. "
  3228. >打印
  3229. </el-button>
  3230. <el-button @click="print_Cr = false" size="mini">取消 </el-button>
  3231. </span>
  3232. </el-dialog>
  3233. <!-- 费用确认单-->
  3234. <el-dialog
  3235. :visible.sync="print_fyqr"
  3236. width="70%"
  3237. :close-on-click-modal="false"
  3238. :modal="false"
  3239. >
  3240. <div id="print_fyqr" class="print-div">
  3241. <div
  3242. class="print-title"
  3243. style="
  3244. display: flex;
  3245. justify-content: center;
  3246. font-size: 24px;
  3247. margin-bottom: 5px;
  3248. "
  3249. >
  3250. {{ company }}
  3251. </div>
  3252. <div
  3253. style="
  3254. display: flex;
  3255. justify-content: center;
  3256. margin-bottom: 5px;
  3257. ">
  3258. <div style="font-size: 18px">费用确认</div>
  3259. </div>
  3260. <div style="display: flex;justify-content: space-between;">
  3261. <div>
  3262. <div>业务编号:{{ form.fBillno }}</div>
  3263. <div>客户名称:{{ form.fCorpidName }}</div>
  3264. <div>提单号:{{ form.fBillno }}</div>
  3265. </div>
  3266. <div>
  3267. <div>制单日期:{{ form.createTime | fBsdateFormat }}</div>
  3268. <div>仓库名称:{{ form.fWarehouseid | warehouseFormat(warehouseOptions) }}</div>
  3269. <div>箱型/箱量:{{ form.fCntval }}</div>
  3270. </div>
  3271. <div>
  3272. <div>制单人:{{ form.createBy }}</div>
  3273. <div>打印日期:{{ nowTime | fBsdateFormat }}</div>
  3274. <div>品名:{{ form.fProductName }}</div>
  3275. </div>
  3276. </div>
  3277. <div class="print_table" style="display: flex">
  3278. <table
  3279. border="0"
  3280. cellspacing="0"
  3281. cellpadding="0"
  3282. style="width: 100%; line-height: 30px"
  3283. >
  3284. <tr>
  3285. <td>序号</td>
  3286. <td>费用项目</td>
  3287. <td>计价单位</td>
  3288. <td>数量</td>
  3289. <td>单价</td>
  3290. <td>是否含税</td>
  3291. <td>税率</td>
  3292. <td>不含税金额</td>
  3293. <td>税额</td>
  3294. <td>应收金额</td>
  3295. <td>备注</td>
  3296. </tr>
  3297. <tr v-for="(item, index) in Collectionoptionss" :key="index">
  3298. <td>{{ index + 1 }}</td>
  3299. <td>{{ item.fFeeid | fFeetFormat(fDNameOptions) }}</td>
  3300. <td>{{ item.fFeeUnitid | fFeetUnitFormat(fFeetUnitOptions) }}</td>
  3301. <td>{{ item.fQty }}</td>
  3302. <td>{{ item.fUnitprice }}</td>
  3303. <td>{{ item.fTaxrate != 0? '√': '×' }}</td>
  3304. <td>{{ item.fTaxrate }}</td>
  3305. <td>{{ item.exclTax }}</td>
  3306. <td>{{ item.taxAmount }}</td>
  3307. <td>{{ item.fAmount }}</td>
  3308. <td>{{ item.remark }}</td>
  3309. </tr>
  3310. <tr>
  3311. <td colspan="7">合计</td>
  3312. <td>{{ allExclTax }}</td>
  3313. <td>{{ allTaxAmount }}</td>
  3314. <td>{{ allDrAmount }}</td>
  3315. <td></td>
  3316. </tr>
  3317. </table>
  3318. </div>
  3319. <div>人民币汇款路径:</div>
  3320. <div>公司名称:{{ company }}</div>
  3321. <div>纳税人识别号:{{ Identifier }}</div>
  3322. <div>地址:{{ address }}</div>
  3323. <div>电话:{{ phone }}</div>
  3324. <div>开户行:{{ bank }}</div>
  3325. <div>银行账户:{{ bankAccount }}</div>
  3326. </div>
  3327. <span slot="footer" class="dialog-footer">
  3328. <el-button
  3329. type="primary"
  3330. @click="
  3331. addprint('fyqrd');
  3332. print_fyqr = false;
  3333. "
  3334. >打印
  3335. </el-button>
  3336. <el-button @click="print_fyqr = false">取消 </el-button>
  3337. </span>
  3338. </el-dialog>
  3339. <!-- 费用确认单(付费)-->
  3340. <el-dialog
  3341. :visible.sync="print_Crfyqr"
  3342. width="70%"
  3343. :close-on-click-modal="false"
  3344. :modal="false"
  3345. >
  3346. <div id="print_Crfyqr" class="print-div">
  3347. <div
  3348. class="print-title"
  3349. style="
  3350. display: flex;
  3351. justify-content: center;
  3352. font-size: 28px;
  3353. margin-bottom: 5px;
  3354. "
  3355. >
  3356. {{ company }}
  3357. </div>
  3358. <div
  3359. style="
  3360. display: flex;
  3361. justify-content: center;
  3362. margin-bottom: 5px;
  3363. ">
  3364. <div style="font-size: 24px;">费用确认</div>
  3365. </div>
  3366. <div style="display: flex;justify-content: space-between;">
  3367. <div>
  3368. <div>业务编号:{{ form.fBillno }}</div>
  3369. <div>客户名称:{{ form.fCorpidName }}</div>
  3370. <div>提单号:{{ form.fBillno }}</div>
  3371. </div>
  3372. <div>
  3373. <div>制单日期:{{ form.createTime | fBsdateFormat }}</div>
  3374. <div>仓库名称:{{ form.fWarehouseid | warehouseFormat(warehouseOptions) }}</div>
  3375. <div>箱型/箱量:{{ form.fCntval }}</div>
  3376. </div>
  3377. <div>
  3378. <div>制单人:{{ form.createBy }}</div>
  3379. <div>打印日期:{{ nowTime | fBsdateFormat }}</div>
  3380. {{form.fGoodsid}}
  3381. <div>品名:{{ form.fProductName }}</div>
  3382. </div>
  3383. </div>
  3384. <div class="print_table" style="display: flex">
  3385. <table
  3386. border="0"
  3387. cellspacing="0"
  3388. cellpadding="0"
  3389. style="width: 100%; line-height: 30px"
  3390. >
  3391. <tr>
  3392. <td>序号</td>
  3393. <td>费用项目</td>
  3394. <td>计价单位</td>
  3395. <td>数量</td>
  3396. <td>单价</td>
  3397. <td>是否含税</td>
  3398. <td>税率</td>
  3399. <td>不含税金额</td>
  3400. <td>税额</td>
  3401. <td>应收金额</td>
  3402. <td>备注</td>
  3403. </tr>
  3404. <tr v-for="(item, index) in PrintingCrlist" :key="index">
  3405. <td>{{ index + 1 }}</td>
  3406. <td>{{ item.fFeeid | fFeetFormat(fCNameOptions) }}</td>
  3407. <td>{{ item.fFeeUnitid | fFeetUnitFormat(fFeetUnitOptions) }}</td>
  3408. <td>{{ item.fQty }}</td>
  3409. <td>{{ item.fUnitprice }}</td>
  3410. <td>{{ item.fTaxrate != 0? '√': '×' }}</td>
  3411. <td>{{ item.fTaxrate }}</td>
  3412. <td>{{ item.exclTax }}</td>
  3413. <td>{{ item.taxAmount }}</td>
  3414. <td>{{ item.fAmount }}</td>
  3415. <td>{{ item.remark }}</td>
  3416. </tr>
  3417. <tr>
  3418. <td colspan="7">合计</td>
  3419. <td>{{ allExclTax }}</td>
  3420. <td>{{ allTaxAmount }}</td>
  3421. <td>{{ allDrAmount }}</td>
  3422. <td></td>
  3423. </tr>
  3424. </table>
  3425. </div>
  3426. <div>人民币汇款路径:</div>
  3427. <div>公司名称:{{ company }}</div>
  3428. <div>纳税人识别号:{{ Identifier }}</div>
  3429. <div>地址:{{ address }}</div>
  3430. <div>电话:{{ phone }}</div>
  3431. <div>开户行:{{ bank }}</div>
  3432. <div>银行账户:{{ bankAccount }}</div>
  3433. </div>
  3434. <span slot="footer" class="dialog-footer">
  3435. <el-button
  3436. type="primary"
  3437. @click="
  3438. addprint('Crfyqrd');
  3439. print_Crfyqr = false;
  3440. "
  3441. >打印
  3442. </el-button>
  3443. <el-button @click="print_Crfyqr = false">取消 </el-button>
  3444. </span>
  3445. </el-dialog>
  3446. </div>
  3447. </template>
  3448. <script>
  3449. import print from "print-js";
  3450. import {
  3451. RevocationApproval,
  3452. addWhgenleg,
  3453. getStockTransferList,
  3454. getStockTransfer,
  3455. delStockTransfer,
  3456. updateCredit,
  3457. addJoblist,
  3458. disChargelist,
  3459. addStockTransfer,
  3460. warehouseSubmission,
  3461. updateStockTransfer,
  3462. exportStockTransfer,
  3463. delstockTransfer_s,
  3464. serialNumber,
  3465. revoke,
  3466. submitWarehousingApproval,
  3467. ordersRevoke,
  3468. checkCode,
  3469. feesCheck,
  3470. revokefeeCheck
  3471. } from "@/api/warehouseBusiness/stockTransfer";
  3472. import { operationAgreement } from "@/api/agreement/agreement";
  3473. import { listCorps } from "@/api/basicdata/corps";
  3474. import { listFees, getFees } from "@/api/basicdata/fees";
  3475. import {
  3476. listWarehouse,
  3477. treeselect,
  3478. listWarehousesss,
  3479. } from "@/api/basicdata/warehouse";
  3480. import { listGoods } from "@/api/basicdata/goods";
  3481. import { listCntrs } from "@/api/basicdata/cntr";
  3482. import { listUser, queryUserVal } from "@/api/system/user";
  3483. import { listWhgenleg } from "@/api/reportManagement/whgenleg";
  3484. import ApprovalComments from "@/views/startApproval";
  3485. import AddOrUpdate from "@/views/viewApproval";
  3486. import Global from "@/layout/components/global";
  3487. import Treeselect from "@riophae/vue-treeselect";
  3488. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  3489. import UploadFile from "@/components/Uploadfile";
  3490. import Cookies from "js-cookie";
  3491. import { addSet, select, resetModule } from "@/api/system/set";
  3492. import upLoad from "../components/upLoad";
  3493. import draggable from "vuedraggable";
  3494. import { getDept } from "@/api/basicdata/dept";
  3495. export default {
  3496. name: "inStock",
  3497. props: {
  3498. chiId: {
  3499. type: Number,
  3500. required: null,
  3501. },
  3502. copyStatus: {
  3503. type: Number,
  3504. required: null,
  3505. },
  3506. },
  3507. components: {
  3508. UploadFile,
  3509. Treeselect,
  3510. AddOrUpdate,
  3511. ApprovalComments,
  3512. draggable,
  3513. upLoad,
  3514. },
  3515. data() {
  3516. return {
  3517. radio: 1,
  3518. timeOut:'',
  3519. pageNum: 1,
  3520. pageSize: 10,
  3521. dialogWhgenlegList: [],
  3522. tasklegList: [],
  3523. Navigation: false,
  3524. key_id: "",
  3525. warehousingagreements: false,
  3526. mblnoStatus: "",
  3527. selectloading: false,
  3528. fMblnoOptions: [],
  3529. warehouseDrList: [],
  3530. relevantAttachments: [],
  3531. warehouseCrList: [],
  3532. fStltypeOptions: [],
  3533. form: {},
  3534. rules: {
  3535. fDeptid: [{ required: true, message: " ", trigger: "blur" }],
  3536. fBsdeptid: [{ required: true, message: " ", trigger: "blur" }],
  3537. fCorpid: [{ required: true, message: " ", trigger: "blur" }],
  3538. fChargedate: [{ required: true, message: " ", trigger: "blur" }],
  3539. fMarks: [{ required: true, message: " ", trigger: "blur" }],
  3540. fBsdate: [{ required: true, message: " ", trigger: "blur" }],
  3541. fTrademodeid: [{ required: true, message: " ", trigger: "blur" }],
  3542. fSbu: [{ required: true, message: " ", trigger: "blur" }],
  3543. fBusinessType: [{ required: true, message: " ", trigger: "blur" }],
  3544. fStorekeeper: { required: true, message: " ", trigger: "blur" },
  3545. fWarehouseid: [{ required: true, message: " ", trigger: "blur" }],
  3546. fbillingway: [{ required: true, message: " ", trigger: "blur" }],
  3547. fTocorpid: [{ required: true, message: " ", trigger: "blur" }],
  3548. fFeetUnit: [{ required: true, message: " ", trigger: "blur" }],
  3549. },
  3550. browseStatus: false,
  3551. goodsOptions: [],
  3552. warehouseOptions: [],
  3553. userOptions: [],
  3554. businessTypeOption: [],
  3555. fCompanyOptIons: [],
  3556. fleetOptions: [],
  3557. fFeetUnitOptions: [],
  3558. current: "",
  3559. before: "",
  3560. contrOl: false,
  3561. isrequired: 2,
  3562. isrequired2: 2,
  3563. detailsHidden: false,
  3564. CntrTable: [],
  3565. cntrList: [],
  3566. fTrademodeidOptions: [],
  3567. fIfweighOptions: [],
  3568. fSbuOptions: [],
  3569. collapselist: ["1"],
  3570. fStorageTypeOptions: [],
  3571. weightList: false,
  3572. sumMum: 0,
  3573. allfPlanqty: 0,
  3574. detailList: [],
  3575. fWarehouseidOptions: [],
  3576. print_zyd: false,
  3577. print_shd: false,
  3578. print_rkd: false,
  3579. print_ykd: false,
  3580. print_ddd: false,
  3581. company: "",
  3582. Printinglist: [],
  3583. //库位
  3584. stockName: "",
  3585. //库位地址
  3586. stockaddr: "",
  3587. Collectionoptionss: [],
  3588. fDriverTel: "",
  3589. fBsdate: "",
  3590. fTruckno: "",
  3591. allfCntqty: 0,
  3592. allfGrossweight: 0,
  3593. allfNetweight: 0,
  3594. allfQty: 0,
  3595. fixdetaiNum: null,
  3596. dataListSelection: [],
  3597. dataWithdrawList: [],
  3598. title: "",
  3599. fCNameOptions: [],
  3600. fDNameOptions: [],
  3601. whgenlegTotal: 0,
  3602. fGrossweight: 0,
  3603. fQty: 0,
  3604. fNetweight: 0,
  3605. fCntqty: 0,
  3606. activeIndex: "1",
  3607. ifCntrnoStatus: null,
  3608. addOrUpdateVisible: false,
  3609. addOrUpdateVisib: false,
  3610. approVal: false,
  3611. approvalStatus: false,
  3612. doNot: false,
  3613. fCartypeOptions: [],
  3614. fIfdamageOptions: [],
  3615. whgenlegList: [],
  3616. releaseList: [
  3617. { dictLabel: "已放行", dictValue: "T" },
  3618. { dictLabel: "未放行", dictValue: "F" },
  3619. ],
  3620. whgenlegVisible: false,
  3621. whgenlegParams: {
  3622. pageNum: 1,
  3623. pageSize: 10,
  3624. fCorpid: null,
  3625. fWarehouseid: null,
  3626. fTruckno: null,
  3627. fCntrno: null,
  3628. fMblno: null,
  3629. orgStorageDate: null,
  3630. },
  3631. choiceWarehouse: false,
  3632. treeselectList: {
  3633. fWarehouselocid: null,
  3634. },
  3635. TreeIndex: "",
  3636. drag: false,
  3637. tableDate: [
  3638. {
  3639. surface: "0",
  3640. label: "fBillstatus",
  3641. name: "状态",
  3642. checked: 0,
  3643. width: 80,
  3644. fixed: "left",
  3645. },
  3646. {
  3647. surface: "1",
  3648. label: "fBsdate",
  3649. name: "调拨日期",
  3650. checked: 0,
  3651. width: 200,
  3652. fixed: "left",
  3653. },
  3654. {
  3655. surface: "2",
  3656. label: "fMblno",
  3657. name: "提单号",
  3658. checked: 0,
  3659. width: 100,
  3660. },
  3661. {
  3662. surface: "3",
  3663. label: "fGoodsid",
  3664. name: "品名",
  3665. checked: 0,
  3666. width: 100,
  3667. },
  3668. {
  3669. surface: "4",
  3670. label: "fBusinessType",
  3671. name: "货物属性",
  3672. checked: 0,
  3673. width: 100,
  3674. },
  3675. {
  3676. surface: "5",
  3677. label: "fMarks",
  3678. name: "属性详情",
  3679. checked: 0,
  3680. width: 100,
  3681. },
  3682. {
  3683. surface: "6",
  3684. label: "fOrgwarehouseInformation",
  3685. name: "库位",
  3686. checked: 0,
  3687. width: 150,
  3688. },
  3689. {
  3690. surface: "7",
  3691. label: "fTransferWarehouselocid",
  3692. name: "调入库位",
  3693. checked: 0,
  3694. width: 100,
  3695. },
  3696. {
  3697. surface: "8",
  3698. label: "fPlanqty",
  3699. name: "结余库存",
  3700. checked: 0,
  3701. width: 100,
  3702. },
  3703. {
  3704. surface: "9",
  3705. label: "fPlangrossweight",
  3706. name: "结余毛重(kg)",
  3707. checked: 0,
  3708. width: 120,
  3709. },
  3710. {
  3711. surface: "10",
  3712. label: "fPlannetweight",
  3713. name: "结余净重(kg)",
  3714. checked: 0,
  3715. width: 120,
  3716. },
  3717. {
  3718. surface: "11",
  3719. label: "fQty",
  3720. name: "调拨件数",
  3721. checked: 0,
  3722. width: 100,
  3723. },
  3724. {
  3725. surface: "12",
  3726. label: "fGrossweight",
  3727. name: "调拨毛重(kg)",
  3728. checked: 0,
  3729. width: 120,
  3730. },
  3731. {
  3732. surface: "13",
  3733. label: "fNetweight",
  3734. name: "调拨净重(kg)",
  3735. checked: 0,
  3736. width: 120,
  3737. },
  3738. {
  3739. surface: "14",
  3740. label: "fPackagespecs",
  3741. name: "包装规格",
  3742. checked: 0,
  3743. width: 100,
  3744. },
  3745. {
  3746. surface: "15",
  3747. label: "fFleet",
  3748. name: "车队",
  3749. checked: 0,
  3750. width: 100,
  3751. },
  3752. {
  3753. surface: "16",
  3754. label: "fTruckno",
  3755. name: "车号",
  3756. checked: 0,
  3757. width: 100,
  3758. },
  3759. {
  3760. surface: "17",
  3761. label: "fDriverName",
  3762. name: "司机名称",
  3763. checked: 0,
  3764. width: 100,
  3765. },
  3766. {
  3767. surface: "18",
  3768. label: "fDriverTel",
  3769. name: "司机电话",
  3770. checked: 0,
  3771. width: 100,
  3772. },
  3773. {
  3774. surface: "19",
  3775. label: "fDriverIdCar",
  3776. name: "司机身份证",
  3777. checked: 0,
  3778. width: 150,
  3779. },
  3780. {
  3781. surface: "20",
  3782. label: "fCntrtype",
  3783. name: "箱型",
  3784. checked: 0,
  3785. width: 100,
  3786. },
  3787. {
  3788. surface: "21",
  3789. label: "fCntqty",
  3790. name: "箱量",
  3791. checked: 0,
  3792. width: 100,
  3793. },
  3794. {
  3795. surface: "22",
  3796. label: "fCntrno",
  3797. name: "箱号",
  3798. checked: 0,
  3799. width: 100,
  3800. },
  3801. {
  3802. surface: "23",
  3803. label: "fLntype",
  3804. name: "装卸方式",
  3805. checked: 0,
  3806. width: 100,
  3807. },
  3808. {
  3809. surface: "24",
  3810. label: "fForkliftman",
  3811. name: "叉车工",
  3812. checked: 0,
  3813. width: 100,
  3814. },
  3815. {
  3816. surface: "25",
  3817. label: "fStevedore",
  3818. name: "装卸工",
  3819. checked: 0,
  3820. width: 100,
  3821. },
  3822. {
  3823. surface: "26",
  3824. label: "fLocalcntrno",
  3825. name: "库内箱号",
  3826. checked: 0,
  3827. width: 100,
  3828. },
  3829. {
  3830. surface: "27",
  3831. label: "fSealno",
  3832. name: "封号",
  3833. checked: 0,
  3834. width: 100,
  3835. },
  3836. {
  3837. surface: "28",
  3838. label: "fGoodsval",
  3839. name: "货值",
  3840. checked: 0,
  3841. width: 100,
  3842. },
  3843. {
  3844. surface: "29",
  3845. label: "fSerialNumber",
  3846. name: "流水号",
  3847. checked: 0,
  3848. width: 100,
  3849. },
  3850. {
  3851. surface: "30",
  3852. label: "remark",
  3853. name: "备注",
  3854. checked: 0,
  3855. width: 100,
  3856. },
  3857. ],
  3858. setRowList: [],
  3859. getRowList: [],
  3860. allCheck: false,
  3861. showSetting: false,
  3862. tableDate2: [
  3863. {
  3864. surface: "1",
  3865. label: "fMblno",
  3866. name: "提单号",
  3867. checked: 0,
  3868. width: 150,
  3869. },
  3870. {
  3871. surface: "2",
  3872. label: "fOriginalbilldate",
  3873. name: "入库日期",
  3874. checked: 0,
  3875. width: 100,
  3876. },
  3877. {
  3878. surface: "3",
  3879. label: "fGoodsids",
  3880. name: "品名",
  3881. checked: 0,
  3882. width: 100,
  3883. },
  3884. {
  3885. surface: "4",
  3886. label: "fCntrno",
  3887. name: "箱号",
  3888. checked: 0,
  3889. width: 100,
  3890. },
  3891. {
  3892. surface: "5",
  3893. label: "fQtyblc",
  3894. name: "结余数量",
  3895. checked: 0,
  3896. width: 150,
  3897. },
  3898. {
  3899. surface: "6",
  3900. label: "fGrossweightblc",
  3901. name: "结余毛重(kg)",
  3902. checked: 0,
  3903. width: 150,
  3904. },
  3905. {
  3906. surface: "7",
  3907. label: "fNetweightblc",
  3908. name: "结余净重(kg)",
  3909. checked: 0,
  3910. width: 150,
  3911. },
  3912. {
  3913. surface: "8",
  3914. label: "fWarehouseids",
  3915. name: "库位",
  3916. checked: 0,
  3917. width: 150,
  3918. },
  3919. {
  3920. surface: "9",
  3921. label: "fMarks",
  3922. name: "品牌",
  3923. checked: 0,
  3924. width: 100,
  3925. },
  3926. {
  3927. surface: "10",
  3928. label: "fQtyblc2",
  3929. name: "数量",
  3930. checked: 0,
  3931. width: 100,
  3932. },
  3933. {
  3934. surface: "11",
  3935. label: "fGrossweightblc2",
  3936. name: "毛重(kg)",
  3937. checked: 0,
  3938. width: 100,
  3939. },
  3940. {
  3941. surface: "12",
  3942. label: "fNetweightblc2",
  3943. name: "净重(kg)",
  3944. checked: 0,
  3945. width: 100,
  3946. },
  3947. {
  3948. surface: "13",
  3949. label: "fLocalcntrno",
  3950. name: "库内箱号",
  3951. checked: 0,
  3952. width: 100,
  3953. },
  3954. ],
  3955. setRowList2: [],
  3956. getRowList2: [],
  3957. allCheck2: false,
  3958. showSetting2: false,
  3959. unloadModes: [],
  3960. detailsHidden2: true,
  3961. dataShowcar: null,
  3962. tfNetweightnum: 0,
  3963. tfGrossweightnum: 0,
  3964. showApproval: null,
  3965. // 收款信息明细
  3966. PrintingCrlist: [],
  3967. allCrfAmount: 0,
  3968. allCrfQty: 0,
  3969. // Cr打印弹窗是否开启
  3970. print_Cr: false,
  3971. // 税额总数
  3972. allTaxAmount: 0,
  3973. // 不含税金额总数
  3974. allExclTax: 0,
  3975. // 收款金额合计
  3976. allDrAmount: 0,
  3977. print_fyqr: false,
  3978. activeName: 'searchList',
  3979. // 识别号
  3980. Identifier: '',
  3981. // 地址
  3982. address: '',
  3983. // 电话
  3984. phone: '',
  3985. // 开户行
  3986. bank: '',
  3987. // 银行账户
  3988. bankAccount: '',
  3989. nowTime: null,
  3990. print_Crfyqr: false,
  3991. // 是否启用请款单
  3992. isShowInvoice: null,
  3993. // 是否启用费用确认单
  3994. isShowFeesConfirm: null,
  3995. };
  3996. },
  3997. created() {
  3998. this.setRowList = this.tableDate;
  3999. this.getRowList = this.tableDate;
  4000. this.setRowList2 = this.tableDate2;
  4001. this.getRowList2 = this.tableDate2;
  4002. this.getDicts("data_stltype_type").then((response) => {
  4003. this.fStltypeOptions = response.data;
  4004. });
  4005. this.getDicts("st_trans_type").then((response) => {
  4006. this.businessTypeOption = response.data;
  4007. localStorage.setItem("businessTypeList", JSON.stringify(response.data));
  4008. });
  4009. this.getDicts("data_unitfees").then((response) => {
  4010. this.fFeetUnitOptions = response.data;
  4011. });
  4012. this.getDicts("data_trademodes").then((response) => {
  4013. this.fTrademodeidOptions = response.data;
  4014. });
  4015. this.getDicts("data_ifweigh_status").then((response) => {
  4016. this.fIfweighOptions = response.data;
  4017. });
  4018. this.getDicts("storage_type").then((response) => {
  4019. this.fStorageTypeOptions = response.data;
  4020. localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
  4021. });
  4022. this.getDicts("sys_car_type").then((response) => {
  4023. this.fCartypeOptions = response.data;
  4024. });
  4025. this.getDicts("unload_mode").then((response) => {
  4026. this.unloadModes = response.data;
  4027. });
  4028. this.getDicts("data_ifdamage_status").then((response) => {
  4029. this.fIfdamageOptions = response.data;
  4030. });
  4031. this.getConfigKey("data_showcar").then((response) => {
  4032. this.dataShowcar = response.msg;
  4033. if (this.dataShowcar == "0") {
  4034. this.detailsHidden2 = false;
  4035. } else {
  4036. this.detailsHidden2 = true;
  4037. }
  4038. });
  4039. this.getConfigKey("taxpayer.identification.number").then((response) => {
  4040. this.Identifier = response.msg;
  4041. });
  4042. this.getConfigKey("print.address").then((response) => {
  4043. this.address = response.msg;
  4044. });
  4045. this.getConfigKey("print.phone").then((response) => {
  4046. this.phone = response.msg;
  4047. });
  4048. this.getConfigKey("print.bank").then((response) => {
  4049. this.bank = response.msg;
  4050. });
  4051. this.getConfigKey("print.bank.account").then((response) => {
  4052. this.bankAccount = response.msg;
  4053. });
  4054. this.getConfigKey("warehouse.show.invoice").then((response) => {
  4055. this.isShowInvoice = response.msg;
  4056. });
  4057. this.getConfigKey("warehouse.show.feesConfirm").then((response) => {
  4058. this.isShowFeesConfirm = response.msg;
  4059. });
  4060. listWarehousesss({ fStatus: 0, delFlag: 0 }).then((response) => {
  4061. this.warehouseOptions = response.rows;
  4062. });
  4063. listFees({ fDc: "C" }).then((response) => {
  4064. this.fCNameOptions = response.rows;
  4065. });
  4066. listFees({ fDc: "D" }).then((response) => {
  4067. this.fDNameOptions = response.rows;
  4068. });
  4069. listCorps({ type: 1 }).then((response) => {
  4070. this.fMblnoOptions = response.rows;
  4071. });
  4072. listCorps().then((response) => {
  4073. this.fSbuOptions = response.rows;
  4074. });
  4075. listUser().then((response) => {
  4076. this.userOptions = response.rows;
  4077. });
  4078. listGoods({ fStatus: 0, delFlag: 0 }).then((response) => {
  4079. this.goodsOptions = response.rows;
  4080. });
  4081. listCntrs({ fStatus: "T" }).then((response) => {
  4082. this.cntrList = response.rows;
  4083. });
  4084. listCorps({ fTypeid: 6 }).then((response) => {
  4085. this.fCompanyOptIons = response.rows;
  4086. });
  4087. listCorps({ fTypeid: 2 }).then((response) => {
  4088. this.fleetOptions = response.rows;
  4089. });
  4090. this.getConfigKey("outStock.orders.approvalFlow").then((response) => {
  4091. this.showApproval = response.msg;
  4092. });
  4093. this.company = Cookies.get("companyName")
  4094. this.queryUser();
  4095. this.getRow();
  4096. this.getRow2();
  4097. },
  4098. filters: {
  4099. fStorageFormat(row) {
  4100. let name;
  4101. for (const item of JSON.parse(localStorage.getItem("fStorageTypeList"))) {
  4102. if (row == item.dictValue) {
  4103. name = item.dictLabel;
  4104. }
  4105. }
  4106. return name;
  4107. },
  4108. fBusinessTypeFormat(row) {
  4109. let name;
  4110. for (const item of JSON.parse(localStorage.getItem("businessTypeList"))) {
  4111. if (row == item.dictValue) {
  4112. name = item.dictLabel;
  4113. }
  4114. }
  4115. return name;
  4116. },
  4117. goodsFormat(row, goodsOptions) {
  4118. let goods;
  4119. goodsOptions.map((e) => {
  4120. if (row == e.fId) {
  4121. goods = e.fName;
  4122. }
  4123. });
  4124. return goods;
  4125. },
  4126. fMblnoFormat(row, fMblnoOptions) {
  4127. let name;
  4128. fMblnoOptions.map((e) => {
  4129. if (row == e.fId) {
  4130. name = e.fName;
  4131. }
  4132. });
  4133. return name;
  4134. },
  4135. fBsdateFormat(row) {
  4136. if (row) {
  4137. const dateMat = new Date(row);
  4138. const year = dateMat.getFullYear();
  4139. const month = dateMat.getMonth() + 1;
  4140. const day = dateMat.getDate();
  4141. const timeFormat = year + "-" + month + "-" + day;
  4142. return timeFormat;
  4143. }
  4144. },
  4145. fFeetFormat(row, fCNameOptions) {
  4146. let name;
  4147. fCNameOptions.map((e) => {
  4148. if (row == e.fId) {
  4149. name = e.fName;
  4150. }
  4151. });
  4152. return name;
  4153. },
  4154. warehouseFormat(row, warehouseOptions) {
  4155. let warehouse;
  4156. warehouseOptions.map((e) => {
  4157. if (row == e.fId) {
  4158. warehouse = e.fName;
  4159. }
  4160. });
  4161. return warehouse;
  4162. },
  4163. fFeetUnitFormat(row, fFeetUnitOptions) {
  4164. let name;
  4165. fFeetUnitOptions.map((e) => {
  4166. if (row == e.dictValue) {
  4167. name = e.dictLabel;
  4168. }
  4169. });
  4170. return name;
  4171. },
  4172. },
  4173. methods: {
  4174. init() {
  4175. this.approVal = false;
  4176. this.resetForm("form");
  4177. this.detailList = [];
  4178. this.relevantAttachments = [];
  4179. this.warehouseCrList = [];
  4180. this.warehouseDrList = [];
  4181. this.CntrTable = [];
  4182. if (this.dataShowcar == "0") {
  4183. this.detailsHidden2 = false;
  4184. } else {
  4185. this.detailsHidden2 = true;
  4186. }
  4187. if (this.$route.query.id) {
  4188. this.approVal = true;
  4189. this.$router.push({ query: {} });
  4190. }
  4191. this.getForm();
  4192. },
  4193. init2() {
  4194. this.whgenlegParams = {
  4195. pageNum: 1,
  4196. pageSize: 10,
  4197. fCorpid: null,
  4198. fWarehouseid: null,
  4199. fTruckno: null,
  4200. fCntrno: null,
  4201. fMblno: null,
  4202. orgStorageDate: null,
  4203. };
  4204. },
  4205. tfNetweight(row) {
  4206. this.tfNetweightnum = (row / 1000).toFixed(4);
  4207. },
  4208. tfGrossweight(row) {
  4209. this.tfGrossweightnum = (row / 1000).toFixed(4);
  4210. },
  4211. //列设置全选
  4212. allChecked() {
  4213. if (this.allCheck == true) {
  4214. this.setRowList.map((e) => {
  4215. return (e.checked = 0);
  4216. });
  4217. } else {
  4218. this.setRowList.map((e) => {
  4219. return (e.checked = 1);
  4220. });
  4221. }
  4222. },
  4223. //查询列数据
  4224. getRow() {
  4225. let that = this;
  4226. this.data = {
  4227. tableName: "调拨明细",
  4228. userId: Cookies.get("userName"),
  4229. };
  4230. select(this.data).then((res) => {
  4231. if (res.data.length != 0) {
  4232. this.getRowList = res.data.filter((e) => e.checked == 0);
  4233. this.setRowList = res.data;
  4234. this.setRowList = this.setRowList.reduce((res, item) => {
  4235. res.push({
  4236. surface: item.surface,
  4237. label: item.label,
  4238. name: item.name,
  4239. checked: item.checked,
  4240. width: item.width,
  4241. fixed: item.fixed,
  4242. });
  4243. return res;
  4244. }, []);
  4245. }
  4246. });
  4247. },
  4248. //重置列表
  4249. delRow() {
  4250. this.data = {
  4251. tableName: "调拨明细",
  4252. userId: Cookies.get("userName"),
  4253. };
  4254. resetModule(this.data).then((res) => {
  4255. if (res.code == 200) {
  4256. this.showSetting = false;
  4257. this.setRowList = this.$options.data().tableDate;
  4258. this.getRowList = this.$options.data().tableDate;
  4259. }
  4260. });
  4261. },
  4262. //保存列设置
  4263. save() {
  4264. this.showSetting = false;
  4265. this.data = {
  4266. tableName: "调拨明细",
  4267. userId: Cookies.get("userName"),
  4268. sysTableSetList: this.setRowList,
  4269. };
  4270. addSet(this.data).then((res) => {
  4271. if (res.code == 200) {
  4272. this.showSetting = false;
  4273. this.getRowList = this.setRowList.filter((e) => e.checked == 0);
  4274. }
  4275. });
  4276. },
  4277. //列设置全选
  4278. allChecked2() {
  4279. if (this.allCheck2 == true) {
  4280. this.setRowList2.map((e) => {
  4281. return (e.checked = 0);
  4282. });
  4283. } else {
  4284. this.setRowList2.map((e) => {
  4285. return (e.checked = 1);
  4286. });
  4287. }
  4288. },
  4289. //查询列数据
  4290. getRow2() {
  4291. let that = this;
  4292. this.data = {
  4293. tableName: "调拨总账",
  4294. userId: Cookies.get("userName"),
  4295. };
  4296. select(this.data).then((res) => {
  4297. if (res.data.length != 0) {
  4298. this.getRowList2 = res.data.filter((e) => e.checked == 0);
  4299. this.setRowList2 = res.data;
  4300. this.setRowList2 = this.setRowList2.reduce((res, item) => {
  4301. res.push({
  4302. surface: item.surface,
  4303. label: item.label,
  4304. name: item.name,
  4305. checked: item.checked,
  4306. width: item.width,
  4307. fixed: item.fixed,
  4308. });
  4309. return res;
  4310. }, []);
  4311. }
  4312. });
  4313. },
  4314. //重置列表
  4315. delRow2() {
  4316. this.data = {
  4317. tableName: "调拨总账",
  4318. userId: Cookies.get("userName"),
  4319. };
  4320. resetModule(this.data).then((res) => {
  4321. if (res.code == 200) {
  4322. this.showSetting2 = false;
  4323. this.setRowList2 = this.$options.data().tableDate2;
  4324. this.getRowList2 = this.$options.data().tableDate2;
  4325. }
  4326. });
  4327. },
  4328. //保存列设置
  4329. save2() {
  4330. this.showSetting2 = false;
  4331. this.data = {
  4332. tableName: "调拨总账",
  4333. userId: Cookies.get("userName"),
  4334. sysTableSetList: this.setRowList2,
  4335. };
  4336. addSet(this.data).then((res) => {
  4337. if (res.code == 200) {
  4338. this.showSetting2 = false;
  4339. this.getRowList2 = this.setRowList2.filter((e) => e.checked == 0);
  4340. }
  4341. });
  4342. },
  4343. //开始拖拽事件
  4344. onStart() {
  4345. this.drag = true;
  4346. },
  4347. //拖拽结束事件
  4348. onEnd() {
  4349. this.drag = false;
  4350. },
  4351. changeStock(row) {
  4352. let fNetweight = 0;
  4353. let fGrossweight = 0;
  4354. if (row.fNetweight) {
  4355. fNetweight = row.fNetweight;
  4356. }
  4357. if (row.fGrossweight) {
  4358. fGrossweight = row.fGrossweight;
  4359. }
  4360. if (row.fPlannetweight < fNetweight) {
  4361. this.$message({ message: "调拨净重超出结余净重", type: "warning" });
  4362. return false;
  4363. }
  4364. if (row.fPlangrossweight < fGrossweight) {
  4365. this.$message({ message: "调拨毛重超出结余毛重", type: "warning" });
  4366. return false;
  4367. }
  4368. },
  4369. // 出库件数的计算
  4370. qtyChange(row) {
  4371. // if (!row.fQty || row.fQty === "") {
  4372. // this.$set(row, "fNetweight", 0);
  4373. // this.$set(row, "fGrossweight", 0);
  4374. // return false;
  4375. // }
  4376. if (row.fPlanqty < row.fQty) {
  4377. this.$message.error("出库件数超出结余件数!");
  4378. this.$set(row, "fQty", 0);
  4379. this.$set(row, "fNetweight", 0);
  4380. this.$set(row, "fGrossweight", 0);
  4381. return false;
  4382. }
  4383. if (row.fQtyblc2 > row.fQtyblc) {
  4384. this.$message.error("出库件数超出结余件数!");
  4385. this.$set(row, "fQtyblc2", 0);
  4386. this.$set(row, "fGrossweightblc2", 0);
  4387. this.$set(row, "fNetweightblc2", 0);
  4388. return false;
  4389. }
  4390. this.$set(
  4391. row,
  4392. "fNetweight",
  4393. parseFloat(
  4394. (Number(row.fPlannetweight) / Number(row.fPlanqty)) * Number(row.fQty)
  4395. ).toFixed(2)
  4396. );
  4397. this.$set(
  4398. row,
  4399. "fGrossweight",
  4400. parseFloat(
  4401. (Number(row.fPlangrossweight) / Number(row.fPlanqty)) *
  4402. Number(row.fQty)
  4403. ).toFixed(2)
  4404. );
  4405. this.$set(
  4406. row,
  4407. "fNetweightblc2",
  4408. parseFloat(
  4409. (Number(row.fNetweightblc) / Number(row.fQtyblc)) *
  4410. Number(row.fQtyblc2)
  4411. ).toFixed(2)
  4412. );
  4413. this.$set(
  4414. row,
  4415. "fGrossweightblc2",
  4416. parseFloat(
  4417. (Number(row.fGrossweightblc) / Number(row.fQtyblc)) *
  4418. Number(row.fQtyblc2)
  4419. ).toFixed(2)
  4420. );
  4421. },
  4422. whgenlegData() {
  4423. if (this.dialogWhgenlegList.length === 0) {
  4424. this.$message({ message: "未勾选信息", type: "warning" });
  4425. return false;
  4426. }
  4427. let fTruckno = null;
  4428. let fDriverTel = null;
  4429. let fDriverName = null;
  4430. let fDriverIdCar = null;
  4431. if (this.form.fTruckno) {
  4432. fTruckno = this.form.fTruckno;
  4433. }
  4434. if (this.form.fDriverTel) {
  4435. fDriverTel = this.form.fDriverTel;
  4436. }
  4437. if (this.form.fDriverName) {
  4438. fDriverName = this.form.fDriverName;
  4439. }
  4440. if (this.form.fDriverIdCar) {
  4441. fDriverIdCar = this.form.fDriverIdCar;
  4442. }
  4443. this.dialogWhgenlegList.map((e) => {
  4444. this.detailList.push({
  4445. fBsdate: this.form.fBsdate,
  4446. fId: null,
  4447. fCntrtype: null,
  4448. fGrossweight: e.fGrossweightblc2,
  4449. fNetweight: e.fNetweightblc2,
  4450. fQty: e.fQtyblc2,
  4451. fCntqty: 1,
  4452. fIsPass: "F",
  4453. fGoodsval: null,
  4454. fBillstatus: 10,
  4455. fTruckno: this.form.fTruckno ? this.form.fTruckno : null,
  4456. fDriverName: this.form.fDriverName ? this.form.fDriverName : null,
  4457. fDriverTel: this.form.fDriverTel ? this.form.fDriverTel : null,
  4458. fDriverIdCar: this.form.fDriverIdCar ? this.form.fDriverIdCar : null,
  4459. fMblno: e.fMblno,
  4460. fMarks: e.fMarks,
  4461. fCntrno: e.fCntrno,
  4462. fPlanqty: e.fQtyblc,
  4463. fGoodsid: e.fGoodsid,
  4464. fVolumn: e.fVolumn,
  4465. fGoodsids: e.fGoodsids,
  4466. fBillingway: e.fBillingway,
  4467. fChargedate: e.fChargedate,
  4468. fOrgwarehouseInformation: e.fWarehouseids,
  4469. fPackagespecs: e.fPackagespecs,
  4470. fPlannetweight: e.fNetweightblc,
  4471. fOriginalbillno: e.fOriginalbillno,
  4472. fBusinessType: e.fBusinessType + "",
  4473. fPlangrossweight: e.fGrossweightblc,
  4474. fOriginalbilldate: e.fOriginalbilldate,
  4475. fWarehouselocid: e.fWarehouseLocationid,
  4476. fWarehouselocids: e.fWarehouseLocationids,
  4477. fWarehouseLocationids: e.fWarehouseLocationids,
  4478. fTransferWarehouselocid: null,
  4479. remark: null,
  4480. fSrcid: e.fId,
  4481. fSrcBsdate: e.fBsdate,
  4482. });
  4483. });
  4484. this.whgenlegVisible = false;
  4485. },
  4486. //撤销审批
  4487. revokeTwo(status) {
  4488. let data = {
  4489. actId: 140,
  4490. billId: this.form.fId,
  4491. id: this.form.fId,
  4492. fidStatus: status,
  4493. };
  4494. RevocationApproval(data).then((data) => {
  4495. if (data.code === 200) {
  4496. this.browseStatus = false;
  4497. this.msgSuccess("撤销成功");
  4498. }
  4499. });
  4500. },
  4501. // 查看审批流
  4502. getDataList() {
  4503. this.addOrUpdateVisible = false;
  4504. },
  4505. returnData() {
  4506. this.addOrUpdateVisib = false;
  4507. this.$router.push({ path: "/index" });
  4508. },
  4509. addOrUpdateHandle(form, status) {
  4510. this.addOrUpdateVisible = true;
  4511. this.$nextTick(() => {
  4512. this.$refs.addOrUpdate.init(form.fId, 140, status);
  4513. });
  4514. },
  4515. addOrUpdateHand(form, status) {
  4516. this.addOrUpdateVisib = true;
  4517. this.$nextTick(() => {
  4518. this.$refs.ApprovalComments.init(form.fId, status, 140);
  4519. });
  4520. },
  4521. changefStltype(row) {
  4522. this.fMblnoOptions.map((e) => {
  4523. if (row == e.fId) {
  4524. this.$set(
  4525. this.form,
  4526. "fStltypeid",
  4527. e.fStltypeid ? e.fStltypeid.toString() : null
  4528. );
  4529. }
  4530. });
  4531. },
  4532. changeGoods(row) {
  4533. this.goodsOptions.map((e) => {
  4534. if (row == e.fId) {
  4535. if (e.ifCntrno == "1") {
  4536. this.ifCntrnoStatus = 1;
  4537. } else {
  4538. this.ifCntrnoStatus = null;
  4539. }
  4540. }
  4541. });
  4542. },
  4543. discharge() {
  4544. if (this.Printinglist.length > 0) {
  4545. for (let item in this.Printinglist) {
  4546. if (this.Printinglist[item].fBillstatus === 10) {
  4547. return this.$message.error("请先打印作业单");
  4548. }
  4549. if (this.Printinglist[item].fBillstatus >= 30) {
  4550. return this.$message.error("请勿重复卸货");
  4551. }
  4552. }
  4553. if (this.CntrTable.length > 0) {
  4554. let arr = [];
  4555. this.CntrTable.map((e) => {
  4556. this.cntrList.map((item) => {
  4557. if (item.fId == e.fCntrid) {
  4558. arr.push(item.fName + "X" + e.fCntrcount);
  4559. }
  4560. });
  4561. });
  4562. arr = [...new Set(arr)];
  4563. this.form.fCntval = arr.join(",");
  4564. } else {
  4565. this.form.fCntval = null;
  4566. }
  4567. if (this.detailList.length > 0) {
  4568. let arr = [];
  4569. this.detailList.map((e) => {
  4570. this.goodsOptions.map((item) => {
  4571. if (e.fGoodsid == item.fId) {
  4572. arr.push(item.fName);
  4573. }
  4574. });
  4575. });
  4576. arr = [...new Set(arr)];
  4577. this.form.fProductName = arr.join(",");
  4578. } else {
  4579. this.form.fProductName = "";
  4580. }
  4581. if (this.detailList.length > 0) {
  4582. let arr = [];
  4583. this.detailList.map((e) => {
  4584. arr.push(e.fMarks);
  4585. });
  4586. arr = [...new Set(arr)];
  4587. this.form.fMarks = arr.join(",");
  4588. } else {
  4589. this.form.fMarks = "";
  4590. }
  4591. if (this.detailList.length == 0) {
  4592. this.form.fNetweight = 0;
  4593. this.form.fPlanvolumn = 0;
  4594. this.form.fGrossweight = 0;
  4595. } else {
  4596. this.form.fNetweight = this.fNetweight;
  4597. this.form.fPlanvolumn = this.fPlanvolumn;
  4598. this.form.fGrossweight = this.fGrossweight;
  4599. }
  4600. let formData = new window.FormData();
  4601. formData.append("type", "1");
  4602. formData.append("warehouseBills", JSON.stringify(this.form));
  4603. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  4604. formData.append(
  4605. "warehousebillsitems",
  4606. JSON.stringify(this.Printinglist)
  4607. );
  4608. formData.append(
  4609. "warehousebillsfeesDr",
  4610. JSON.stringify(this.warehouseDrList)
  4611. );
  4612. formData.append(
  4613. "warehousebillsfeesCr",
  4614. JSON.stringify(this.warehouseCrList)
  4615. );
  4616. formData.append("tCntr", JSON.stringify(this.CntrTable));
  4617. disChargelist(formData).then((response) => {
  4618. if ((response.code = 200)) {
  4619. this.detailList.map((e, index) => {
  4620. response.data.warehousebillsitems.map((item) => {
  4621. item.fBsdate = Date.parse(new Date(item.fBsdate));
  4622. if (item.fBusinessType) {
  4623. item.fBusinessType = item.fBusinessType.toString();
  4624. }
  4625. item.fLntype = item.fLntype ? item.fLntype.toString() : null;
  4626. if (e.fId == item.fId) {
  4627. e = item;
  4628. this.$set(this.detailList, index, e);
  4629. }
  4630. });
  4631. });
  4632. this.msgSuccess("卸货成功");
  4633. this.$set(this.form, "fItemsStatus", 3);
  4634. }
  4635. });
  4636. } else {
  4637. this.$message.error("请选择需要卸货的明细!");
  4638. }
  4639. },
  4640. creditClick() {
  4641. for (let item in this.Printinglist) {
  4642. if (!this.Printinglist[item].fId) {
  4643. return this.$message.error("请存在未保存的数据");
  4644. }
  4645. if (this.Printinglist[item].fBillstatus == 10) {
  4646. return this.$message.error("请存在未打印的作业单");
  4647. }
  4648. // if (!this.Printinglist[item].fTruckno) {
  4649. // return this.$message.error("车号不能为空");
  4650. // }
  4651. if (!this.Printinglist[item].fTransferWarehouselocid) {
  4652. return this.$message.error("调入库位不能为空");
  4653. }
  4654. }
  4655. if (this.CntrTable.length > 0) {
  4656. let arr = [];
  4657. this.CntrTable.map((e) => {
  4658. this.cntrList.map((item) => {
  4659. if (item.fId == e.fCntrid) {
  4660. arr.push(item.fName + "X" + e.fCntrcount);
  4661. }
  4662. });
  4663. });
  4664. arr = [...new Set(arr)];
  4665. this.form.fCntval = arr.join(",");
  4666. } else {
  4667. this.form.fCntval = null;
  4668. }
  4669. if (this.detailList.length > 0) {
  4670. let arr = [];
  4671. this.detailList.map((e) => {
  4672. this.goodsOptions.map((item) => {
  4673. if (e.fGoodsid == item.fId) {
  4674. arr.push(item.fName);
  4675. }
  4676. });
  4677. });
  4678. arr = [...new Set(arr)];
  4679. this.form.fProductName = arr.join(",");
  4680. } else {
  4681. this.form.fProductName = "";
  4682. }
  4683. if (this.detailList.length > 0) {
  4684. let arr = [];
  4685. this.detailList.map((e) => {
  4686. arr.push(e.fMarks);
  4687. });
  4688. arr = [...new Set(arr)];
  4689. this.form.fMarks = arr.join(",");
  4690. } else {
  4691. this.form.fMarks = "";
  4692. }
  4693. if (this.detailList.length == 0) {
  4694. this.form.fNetweight = 0;
  4695. this.form.fPlanvolumn = 0;
  4696. this.form.fGrossweight = 0;
  4697. } else {
  4698. this.form.fNetweight = this.fNetweight;
  4699. this.form.fPlanvolumn = this.fPlanvolumn;
  4700. this.form.fGrossweight = this.fGrossweight;
  4701. }
  4702. let formData = new window.FormData();
  4703. formData.append("type", "1");
  4704. formData.append("warehouseBills", JSON.stringify(this.form));
  4705. formData.append("warehousebillsitems", JSON.stringify(this.Printinglist));
  4706. formData.append(
  4707. "warehousebillsfeesDr",
  4708. JSON.stringify(this.warehouseDrList)
  4709. );
  4710. formData.append(
  4711. "warehousebillsfeesCr",
  4712. JSON.stringify(this.warehouseCrList)
  4713. );
  4714. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  4715. formData.append("whgenleg", JSON.stringify(this.relevantAttachments));
  4716. formData.append("tCntr", JSON.stringify(this.CntrTable));
  4717. addWhgenleg(formData).then((response) => {
  4718. if ((response.code = 200)) {
  4719. this.detailList.map((e, index) => {
  4720. response.data.warehouseItem.map((item) => {
  4721. item.fBsdate = Date.parse(new Date(item.fBsdate));
  4722. if (item.fBusinessType) {
  4723. item.fBusinessType = item.fBusinessType.toString();
  4724. }
  4725. item.fLntype = item.fLntype ? item.fLntype.toString() : null;
  4726. if (e.fId == item.fId) {
  4727. e = item;
  4728. this.$set(this.detailList, index, e);
  4729. }
  4730. });
  4731. });
  4732. this.msgSuccess("调拨成功");
  4733. this.$set(this.form, "fItemsStatus", 4);
  4734. }
  4735. });
  4736. },
  4737. getAlltree(tree) {
  4738. this.information = tree.fWarehouseInformation;
  4739. this.informationId = tree.id;
  4740. },
  4741. //树状库位下拉关闭询问
  4742. hanDleclose(done) {
  4743. this.$confirm("确认关闭?")
  4744. .then((_) => {
  4745. done();
  4746. })
  4747. .catch((_) => {});
  4748. },
  4749. getTreeselect(row) {
  4750. this.treeselectList.fWarehouselocid = null;
  4751. this.TreeIndex = row.$index;
  4752. this.choiceWarehouse = true;
  4753. treeselect(this.form.fWarehouseid).then((response) => {
  4754. this.fWarehouseidOptions = response.data;
  4755. });
  4756. },
  4757. confirm() {
  4758. this.$set(
  4759. this.detailList[this.TreeIndex],
  4760. "fWarehouseInformation",
  4761. this.information
  4762. );
  4763. this.$set(
  4764. this.detailList[this.TreeIndex],
  4765. "fTransferWarehouselocid",
  4766. this.informationId
  4767. );
  4768. this.choiceWarehouse = false;
  4769. this.detailList.fTransferWarehouselocid = this.informationId;
  4770. },
  4771. // 撤回入账
  4772. withdrawClick() {
  4773. for (let item in this.Printinglist) {
  4774. if (!this.Printinglist[item].fId) {
  4775. return this.$message.error("请存在未保存的数据");
  4776. }
  4777. if (this.Printinglist[item].fBillstatus == 10) {
  4778. return this.$message.error("请存在未打印的作业单");
  4779. }
  4780. if (this.Printinglist[item].fBillstatus == 20) {
  4781. return this.$message.error("请存在未卸货的数据");
  4782. }
  4783. if (this.Printinglist[item].fBillstatus == 30) {
  4784. return this.$message.error("请存在未出库的数据");
  4785. }
  4786. }
  4787. if (this.CntrTable.length > 0) {
  4788. let arr = [];
  4789. this.CntrTable.map((e) => {
  4790. this.cntrList.map((item) => {
  4791. if (item.fId == e.fCntrid) {
  4792. arr.push(item.fName + "X" + e.fCntrcount);
  4793. }
  4794. });
  4795. });
  4796. arr = [...new Set(arr)];
  4797. this.form.fCntval = arr.join(",");
  4798. } else {
  4799. this.form.fCntval = null;
  4800. }
  4801. if (this.detailList.length > 0) {
  4802. let arr = [];
  4803. this.detailList.map((e) => {
  4804. this.goodsOptions.map((item) => {
  4805. if (e.fGoodsid == item.fId) {
  4806. arr.push(item.fName);
  4807. }
  4808. });
  4809. });
  4810. arr = [...new Set(arr)];
  4811. this.form.fProductName = arr.join(",");
  4812. } else {
  4813. this.form.fProductName = "";
  4814. }
  4815. if (this.detailList.length > 0) {
  4816. let arr = [];
  4817. this.detailList.map((e) => {
  4818. arr.push(e.fMarks);
  4819. });
  4820. arr = [...new Set(arr)];
  4821. this.form.fMarks = arr.join(",");
  4822. } else {
  4823. this.form.fMarks = "";
  4824. }
  4825. if (this.detailList.length == 0) {
  4826. this.form.fNetweight = 0;
  4827. this.form.fPlanvolumn = 0;
  4828. this.form.fGrossweight = 0;
  4829. } else {
  4830. this.form.fNetweight = this.fNetweight;
  4831. this.form.fPlanvolumn = this.fPlanvolumn;
  4832. this.form.fGrossweight = this.fGrossweight;
  4833. }
  4834. // 撤回入库
  4835. let formData = new window.FormData();
  4836. formData.append("type", "1");
  4837. formData.append("warehouseBills", JSON.stringify(this.form));
  4838. formData.append("warehousebillsitems", JSON.stringify(this.Printinglist));
  4839. formData.append(
  4840. "warehousebillsfeesDr",
  4841. JSON.stringify(this.warehouseDrList)
  4842. );
  4843. formData.append(
  4844. "warehousebillsfeesCr",
  4845. JSON.stringify(this.warehouseCrList)
  4846. );
  4847. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  4848. formData.append("tCntr", JSON.stringify(this.CntrTable));
  4849. updateCredit(formData).then((response) => {
  4850. this.Printinglist.map((e) => {
  4851. this.detailList.map((item, index) => {
  4852. if (e.fId == item.fId) {
  4853. this.$set(this.detailList[index], "fBillstatus", 10);
  4854. }
  4855. });
  4856. });
  4857. this.msgSuccess("撤回成功");
  4858. this.$set(this.form, "fItemsStatus", 1);
  4859. });
  4860. },
  4861. fStorageTypeFormat(row) {
  4862. let fStorageType;
  4863. this.fStorageTypeOptions.map((e) => {
  4864. if (row.fBusinessType == e.dictValue) {
  4865. fStorageType = e.dictLabel;
  4866. }
  4867. });
  4868. return fStorageType;
  4869. },
  4870. fCntrtypeFormat(row) {
  4871. let fCntrtype;
  4872. this.cntrList.map((e) => {
  4873. if (row.fCntrtype == e.fId) {
  4874. fCntrtype = e.fName;
  4875. }
  4876. });
  4877. return fCntrtype;
  4878. },
  4879. fBsdateFormat(row) {
  4880. const dateMat = new Date(row.fBsdate);
  4881. const year = dateMat.getFullYear();
  4882. const month = dateMat.getMonth() + 1;
  4883. const day = dateMat.getDate();
  4884. const timeFormat = year + "-" + month + "-" + day;
  4885. return timeFormat;
  4886. },
  4887. getForm() {
  4888. getStockTransfer(this.chiId).then((response) => {
  4889. this.form = response.data.warehousebills;
  4890. if (this.form.fBillstatus > 3) {
  4891. this.approvalStatus = false;
  4892. this.browseStatus = true;
  4893. } else {
  4894. this.approvalStatus = true;
  4895. this.browseStatus = false;
  4896. }
  4897. this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
  4898. this.$set(this.form, "fBstifime", Date.parse(this.form.fBstime));
  4899. this.$set(this.form, "createTime", Date.parse(this.form.createTime));
  4900. this.$set(this.form, "fFeetUnit", this.form.fFeetunit);
  4901. this.tfNetweightnum = (this.form.fPlannetweight / 1000).toFixed(4);
  4902. this.tfGrossweightnum = (this.form.fPlangrossweight / 1000).toFixed(4);
  4903. if (this.form.fCartype || this.form.fCartype == 0) {
  4904. this.$set(this.form, "fCartype", this.form.fCartype.toString());
  4905. }
  4906. if (this.form.fStltypeid || this.form.fStltypeid == 0) {
  4907. this.$set(this.form, "fStltypeid", this.form.fStltypeid.toString());
  4908. }
  4909. if (this.form.fTrademodeid) {
  4910. this.$set(
  4911. this.form,
  4912. "fTrademodeid",
  4913. this.form.fTrademodeid.toString()
  4914. );
  4915. }
  4916. treeselect(this.form.fWarehouseid).then((response) => {
  4917. this.fWarehouseidOptions = response.data;
  4918. });
  4919. if (!this.copyStatus) {
  4920. if (response.data.warehouseBillsItem) {
  4921. response.data.warehouseBillsItem.map((e) => {
  4922. e.fBsdate = Date.parse(e.fBsdate);
  4923. e.fBusinessType = e.fBusinessType.toString();
  4924. e.fLntype = e.fLntype ? e.fLntype.toString() : null;
  4925. });
  4926. this.detailList = response.data.warehouseBillsItem;
  4927. } else {
  4928. this.detailList = [];
  4929. }
  4930. response.data.warehousebillsfeesCr.map((e) => {
  4931. if (e.fFeeunitid) {
  4932. e.fFeeUnitid = e.fFeeunitid.toString();
  4933. }
  4934. if (e.fStltypeid || e.fStltypeid == 0) {
  4935. e.fStltypeid = e.fStltypeid.toString();
  4936. }
  4937. });
  4938. this.warehouseCrList = response.data.warehousebillsfeesCr;
  4939. response.data.warehousebillsfeesDr.map((e) => {
  4940. if (e.fFeeunitid) {
  4941. e.fFeeUnitid = e.fFeeunitid.toString();
  4942. }
  4943. if (e.fStltypeid || e.fStltypeid == 0) {
  4944. e.fStltypeid = e.fStltypeid.toString();
  4945. }
  4946. });
  4947. this.warehouseDrList = response.data.warehousebillsfeesDr;
  4948. if (response.data.tCntrList) {
  4949. this.CntrTable = response.data.tCntrList;
  4950. } else {
  4951. this.CntrTable = [];
  4952. }
  4953. if (response.data.enclosures) {
  4954. this.relevantAttachments = response.data.enclosures;
  4955. }
  4956. } else {
  4957. this.$set(this.form, "fId", null);
  4958. this.$set(this.form, "fMblno", null);
  4959. this.$set(this.form, "fMarks", null);
  4960. this.$set(this.form, "fProductName", null);
  4961. this.$set(this.form, "fNetweight", 0);
  4962. this.$set(this.form, "fPlanvolumn", 0);
  4963. this.$set(this.form, "fGrossweight", 0);
  4964. }
  4965. });
  4966. },
  4967. submitForm() {
  4968. this.$refs["form"].validate((valid) => {
  4969. if (valid) {
  4970. // if (this.detailList.length === 0) {
  4971. // return this.$message.error("请新增库存明细!");
  4972. // }
  4973. this.updateDeduplication();
  4974. for (let item in this.warehouseDrList) {
  4975. if (!this.warehouseDrList[item].fCorpid) {
  4976. if (item === "fBusinessType") {
  4977. } else {
  4978. this.$message.error(
  4979. "请维护收款信息第" + (Number(item) + 1) + "行客户名称"
  4980. );
  4981. return false;
  4982. }
  4983. }
  4984. if (!this.warehouseDrList[item].fFeeid) {
  4985. if (item === "fBusinessType") {
  4986. } else {
  4987. this.$message.error(
  4988. "请维护收款信息第" + (Number(item) + 1) + "行费用名称"
  4989. );
  4990. return false;
  4991. }
  4992. }
  4993. if (!this.warehouseDrList[item].fFeeUnitid) {
  4994. if (item === "fBusinessType") {
  4995. } else {
  4996. this.$message.error(
  4997. "请维护收款信息第" + (Number(item) + 1) + "行计价单位"
  4998. );
  4999. return false;
  5000. }
  5001. }
  5002. }
  5003. for (let item in this.warehouseCrList) {
  5004. if (!this.warehouseCrList[item].fCorpid) {
  5005. if (item === "fBusinessType") {
  5006. } else {
  5007. this.$message.error(
  5008. "请维护付款信息第" + (Number(item) + 1) + "行客户名称"
  5009. );
  5010. return false;
  5011. }
  5012. }
  5013. if (!this.warehouseCrList[item].fFeeid) {
  5014. if (item === "fBusinessType") {
  5015. } else {
  5016. this.$message.error(
  5017. "请维护付款信息第" + (Number(item) + 1) + "行费用名称"
  5018. );
  5019. return false;
  5020. }
  5021. }
  5022. if (!this.warehouseCrList[item].fFeeUnitid) {
  5023. if (item === "fBusinessType") {
  5024. } else {
  5025. this.$message.error(
  5026. "请维护付款信息第" + (Number(item) + 1) + "行计价单位"
  5027. );
  5028. return false;
  5029. }
  5030. }
  5031. }
  5032. // 附件数据
  5033. this.form.fBillingway = this.form.fFeetUnit;
  5034. if (this.detailList.length == 0) {
  5035. this.form.fNetweight = 0;
  5036. this.form.fPlanvolumn = 0;
  5037. this.form.fGrossweight = 0;
  5038. } else {
  5039. this.form.fNetweight = this.fNetweight;
  5040. this.form.fPlanvolumn = this.fPlanvolumn;
  5041. this.form.fGrossweight = this.fGrossweight;
  5042. }
  5043. if (this.CntrTable.length > 0) {
  5044. let arr = [];
  5045. this.CntrTable.map((e) => {
  5046. this.cntrList.map((item) => {
  5047. if (item.fId == e.fCntrid) {
  5048. arr.push(item.fName + "X" + e.fCntrcount);
  5049. }
  5050. });
  5051. });
  5052. arr = [...new Set(arr)];
  5053. this.form.fCntval = arr.join(",");
  5054. } else {
  5055. this.form.fCntval = null;
  5056. }
  5057. if (this.detailList.length > 0) {
  5058. let arr = [];
  5059. this.detailList.map((e) => {
  5060. this.goodsOptions.map((item) => {
  5061. if (e.fGoodsid == item.fId) {
  5062. arr.push(item.fName);
  5063. }
  5064. });
  5065. });
  5066. arr = [...new Set(arr)];
  5067. this.form.fProductName = arr.join(",");
  5068. } else {
  5069. this.form.fProductName = "";
  5070. }
  5071. if (this.detailList.length > 0) {
  5072. let arr = [];
  5073. this.detailList.map((e) => {
  5074. arr.push(e.fMarks);
  5075. });
  5076. arr = [...new Set(arr)];
  5077. this.form.fMarks = arr.join(",");
  5078. } else {
  5079. this.form.fMarks = "";
  5080. }
  5081. let formData = new window.FormData();
  5082. formData.append("type", "1");
  5083. formData.append("warehouseBills", JSON.stringify(this.form));
  5084. // 库存明细
  5085. formData.append(
  5086. "warehousebillsitems",
  5087. JSON.stringify(this.detailList)
  5088. );
  5089. // 附件数据
  5090. formData.append(
  5091. "tEnclosure",
  5092. JSON.stringify(this.relevantAttachments)
  5093. );
  5094. // 费用明细付款
  5095. formData.append(
  5096. "warehousebillsfeesCr",
  5097. JSON.stringify(this.warehouseCrList)
  5098. );
  5099. // 收款
  5100. formData.append(
  5101. "warehousebillsfeesDr",
  5102. JSON.stringify(this.warehouseDrList)
  5103. );
  5104. formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
  5105. formData.append("tCntr", JSON.stringify(this.CntrTable));
  5106. warehouseSubmission(formData).then((response) => {
  5107. if (response.code == 200) {
  5108. this.msgSuccess("提交成功");
  5109. setTimeout(() => {
  5110. this.cancel();
  5111. }, 200);
  5112. }
  5113. });
  5114. }
  5115. });
  5116. },
  5117. verifyForm() {
  5118. let checkData = {
  5119. fId: this.form.fId,
  5120. fType: "warehouse",
  5121. codeVal: this.form.fDateChanged,
  5122. };
  5123. checkCode(checkData).then((response) => {
  5124. if (!response) {
  5125. this.$confirm("数据发生变化,请更新一下数据?", "提示", {
  5126. confirmButtonText: "确认",
  5127. cancelButtonText: "取消",
  5128. type: "warning",
  5129. }).then(() => {
  5130. this.getForm();
  5131. });
  5132. } else {
  5133. this.$refs["form"].validate((valid) => {
  5134. if (valid) {
  5135. this.updateDeduplication();
  5136. this.form.fBillingway = this.form.fFeetUnit;
  5137. this.form.fFeetunit = this.form.fFeetUnit;
  5138. if (this.detailList.length == 0) {
  5139. this.form.fNetweight = 0;
  5140. this.form.fPlanvolumn = 0;
  5141. this.form.fGrossweight = 0;
  5142. } else {
  5143. this.form.fNetweight = this.fNetweight;
  5144. this.form.fPlanvolumn = this.fPlanvolumn;
  5145. this.form.fGrossweight = this.fGrossweight;
  5146. }
  5147. let formData = new window.FormData();
  5148. // 附件数据
  5149. this.form.fQty = this.fQty;
  5150. if (this.CntrTable.length > 0) {
  5151. let arr = [];
  5152. this.CntrTable.map((e) => {
  5153. this.cntrList.map((item) => {
  5154. if (item.fId == e.fCntrid) {
  5155. arr.push(item.fName + "X" + e.fCntrcount);
  5156. }
  5157. });
  5158. });
  5159. arr = [...new Set(arr)];
  5160. this.form.fCntval = arr.join(",");
  5161. } else {
  5162. this.form.fCntval = null;
  5163. }
  5164. if (this.detailList.length > 0) {
  5165. let arr = [];
  5166. this.detailList.map((e) => {
  5167. this.goodsOptions.map((item) => {
  5168. if (e.fGoodsid == item.fId) {
  5169. arr.push(item.fName);
  5170. }
  5171. });
  5172. });
  5173. arr = [...new Set(arr)];
  5174. this.form.fProductName = arr.join(",");
  5175. } else {
  5176. this.form.fProductName = "";
  5177. }
  5178. if (this.detailList.length > 0) {
  5179. let arr = [];
  5180. this.detailList.map((e) => {
  5181. arr.push(e.fMarks);
  5182. });
  5183. arr = [...new Set(arr)];
  5184. this.form.fMarks = arr.join(",");
  5185. } else {
  5186. this.form.fMarks = "";
  5187. }
  5188. formData.append("tWarehouseBills", JSON.stringify(this.form));
  5189. // 库存明细
  5190. formData.append(
  5191. "tWarehousebillsitems",
  5192. JSON.stringify(this.detailList)
  5193. );
  5194. // 附件数据
  5195. formData.append(
  5196. "tEnclosure",
  5197. JSON.stringify(this.relevantAttachments)
  5198. );
  5199. // 费用明细付款
  5200. formData.append(
  5201. "tWarehousebillsfeesCr",
  5202. JSON.stringify(this.warehouseCrList)
  5203. );
  5204. // 收款
  5205. formData.append(
  5206. "tWarehousebillsfeesDr",
  5207. JSON.stringify(this.warehouseDrList)
  5208. );
  5209. formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
  5210. formData.append("tCntr", JSON.stringify(this.CntrTable));
  5211. submitWarehousingApproval(formData).then((response) => {
  5212. if (response.code == 200) {
  5213. this.msgSuccess("请核成功");
  5214. this.$set(this.form, "warehouseStatus", 4);
  5215. this.cancel();
  5216. }
  5217. });
  5218. }
  5219. });
  5220. }
  5221. });
  5222. },
  5223. saveForm(status) {
  5224. this.$refs["form"].validate((valid) => {
  5225. if (valid) {
  5226. this.updateDeduplication();
  5227. this.form.fBillingway = this.form.fFeetUnit;
  5228. this.form.fFeetunit = this.form.fFeetUnit;
  5229. if (this.detailList.length == 0) {
  5230. this.form.fNetweight = 0;
  5231. this.form.fPlanvolumn = 0;
  5232. this.form.fGrossweight = 0;
  5233. } else {
  5234. this.form.fNetweight = this.fNetweight;
  5235. this.form.fPlanvolumn = this.fPlanvolumn;
  5236. this.form.fGrossweight = this.fGrossweight;
  5237. }
  5238. // 附件数据
  5239. this.form.fQty = this.fQty;
  5240. if (this.CntrTable.length > 0) {
  5241. let arr = [];
  5242. this.CntrTable.map((e) => {
  5243. this.cntrList.map((item) => {
  5244. if (item.fId == e.fCntrid) {
  5245. arr.push(item.fName + "X" + e.fCntrcount);
  5246. }
  5247. });
  5248. });
  5249. arr = [...new Set(arr)];
  5250. this.form.fCntval = arr.join(",");
  5251. } else {
  5252. this.form.fCntval = null;
  5253. }
  5254. if (this.detailList.length > 0) {
  5255. let arr = [];
  5256. this.detailList.map((e) => {
  5257. this.goodsOptions.map((item) => {
  5258. if (e.fGoodsid == item.fId) {
  5259. arr.push(item.fName);
  5260. }
  5261. });
  5262. });
  5263. arr = [...new Set(arr)];
  5264. this.form.fProductName = arr.join(",");
  5265. } else {
  5266. this.form.fProductName = "";
  5267. }
  5268. if (this.detailList.length > 0) {
  5269. let arr = [];
  5270. this.detailList.map((e) => {
  5271. arr.push(e.fMarks);
  5272. });
  5273. arr = [...new Set(arr)];
  5274. this.form.fMarks = arr.join(",");
  5275. } else {
  5276. this.form.fMarks = "";
  5277. }
  5278. this.form.fBillstatus = 2;
  5279. for (let item in this.warehouseDrList) {
  5280. if (!this.warehouseDrList[item].fCorpid) {
  5281. return this.$message.error('收款信息第' + (Number(item) + 1) + '行' + '客户名称不能为空');
  5282. } else if (!this.warehouseDrList[item].fFeeid) {
  5283. return this.$message.error('收款信息第' + (Number(item) + 1) + '行' + '费用名称不能为空');
  5284. } else if (!this.warehouseDrList[item].fFeeUnitid) {
  5285. return this.$message.error('收款信息第' + (Number(item) + 1) + '行' + '计价单位不能为空');
  5286. }
  5287. }
  5288. for (let item in this.warehouseCrList) {
  5289. if (!this.warehouseCrList[item].fCorpid) {
  5290. return this.$message.error('付款信息第' + (Number(item) + 1) + '行' + '客户名称不能为空');
  5291. } else if (!this.warehouseCrList[item].fFeeid) {
  5292. return this.$message.error('付款信息第' + (Number(item) + 1) + '行' + '费用名称不能为空');
  5293. } else if (!this.warehouseCrList[item].fFeeUnitid) {
  5294. return this.$message.error('付款信息第' + (Number(item) + 1) + '行' + '计价单位不能为空');
  5295. }
  5296. }
  5297. let formData = new window.FormData();
  5298. formData.append("type", "1");
  5299. formData.append("warehouseBills", JSON.stringify(this.form));
  5300. // 库存明细
  5301. formData.append(
  5302. "warehousebillsitems",
  5303. JSON.stringify(this.detailList)
  5304. );
  5305. // 附件数据
  5306. formData.append(
  5307. "tEnclosure",
  5308. JSON.stringify(this.relevantAttachments)
  5309. );
  5310. // 费用明细付款
  5311. formData.append(
  5312. "warehousebillsfeesCr",
  5313. JSON.stringify(this.warehouseCrList)
  5314. );
  5315. // 收款
  5316. formData.append(
  5317. "warehousebillsfeesDr",
  5318. JSON.stringify(this.warehouseDrList)
  5319. );
  5320. formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
  5321. formData.append("tCntr", JSON.stringify(this.CntrTable));
  5322. addStockTransfer(formData).then((response) => {
  5323. if (response.data == false) {
  5324. this.$confirm(response.msg, "提示", {
  5325. confirmButtonText: "确定",
  5326. cancelButtonText: "取消",
  5327. type: "warning",
  5328. })
  5329. .then(() => {
  5330. this.mblnoStatus = true;
  5331. this.saveForm();
  5332. })
  5333. .catch(() => {
  5334. this.$message({
  5335. type: "info",
  5336. message: "已取消",
  5337. });
  5338. });
  5339. } else {
  5340. if ((response.code = 200)) {
  5341. this.mblnoStatus = "";
  5342. this.form = response.data.warehouseBills;
  5343. this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
  5344. this.$set(this.form, "fBstime", Date.parse(this.form.fBstime));
  5345. this.$set(
  5346. this.form,
  5347. "createTime",
  5348. Date.parse(this.form.createTime)
  5349. );
  5350. if (this.form.fStltypeid || this.form.fStltypeid == 0) {
  5351. this.$set(
  5352. this.form,
  5353. "fStltypeid",
  5354. this.form.fStltypeid.toString()
  5355. );
  5356. }
  5357. this.$set(this.form, "fFeetUnit", this.form.fFeetunit);
  5358. if (this.form.fCartype || this.form.fCartype == 0) {
  5359. this.$set(
  5360. this.form,
  5361. "fCartype",
  5362. this.form.fCartype.toString()
  5363. );
  5364. }
  5365. if (this.form.fTrademodeid) {
  5366. this.$set(
  5367. this.form,
  5368. "fTrademodeid",
  5369. this.form.fTrademodeid.toString()
  5370. );
  5371. }
  5372. response.data.warehousebillsitems.map((e) => {
  5373. e.fBsdate = Date.parse(e.fBsdate);
  5374. e.fBusinessType = e.fBusinessType.toString();
  5375. e.fLntype = e.fLntype ? e.fLntype.toString() : null;
  5376. });
  5377. this.detailList = response.data.warehousebillsitems;
  5378. this.msgSuccess("保存成功");
  5379. getStockTransfer(this.form.fId).then((response) => {
  5380. this.form = response.data.warehousebills;
  5381. if (this.form.fBillstatus > 3) {
  5382. this.approvalStatus = false;
  5383. this.browseStatus = true;
  5384. } else {
  5385. this.approvalStatus = true;
  5386. this.browseStatus = false;
  5387. }
  5388. this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
  5389. this.$set(this.form, "fBstifime", Date.parse(this.form.fBstime));
  5390. this.$set(this.form, "createTime", Date.parse(this.form.createTime));
  5391. this.$set(this.form, "fFeetUnit", this.form.fFeetunit);
  5392. this.tfNetweightnum = (this.form.fPlannetweight / 1000).toFixed(4);
  5393. this.tfGrossweightnum = (this.form.fPlangrossweight / 1000).toFixed(4);
  5394. if (this.form.fCartype || this.form.fCartype == 0) {
  5395. this.$set(this.form, "fCartype", this.form.fCartype.toString());
  5396. }
  5397. if (this.form.fStltypeid || this.form.fStltypeid == 0) {
  5398. this.$set(this.form, "fStltypeid", this.form.fStltypeid.toString());
  5399. }
  5400. if (this.form.fTrademodeid) {
  5401. this.$set(
  5402. this.form,
  5403. "fTrademodeid",
  5404. this.form.fTrademodeid.toString()
  5405. );
  5406. }
  5407. treeselect(this.form.fWarehouseid).then((response) => {
  5408. this.fWarehouseidOptions = response.data;
  5409. });
  5410. if (!this.copyStatus) {
  5411. if (response.data.warehouseBillsItem) {
  5412. response.data.warehouseBillsItem.map((e) => {
  5413. e.fBsdate = Date.parse(e.fBsdate);
  5414. e.fBusinessType = e.fBusinessType.toString();
  5415. e.fLntype = e.fLntype ? e.fLntype.toString() : null;
  5416. });
  5417. this.detailList = response.data.warehouseBillsItem;
  5418. } else {
  5419. this.detailList = [];
  5420. }
  5421. response.data.warehousebillsfeesCr.map((e) => {
  5422. if (e.fFeeunitid) {
  5423. e.fFeeUnitid = e.fFeeunitid.toString();
  5424. }
  5425. if (e.fStltypeid || e.fStltypeid == 0) {
  5426. e.fStltypeid = e.fStltypeid.toString();
  5427. }
  5428. });
  5429. this.warehouseCrList = response.data.warehousebillsfeesCr;
  5430. response.data.warehousebillsfeesDr.map((e) => {
  5431. if (e.fFeeunitid) {
  5432. e.fFeeUnitid = e.fFeeunitid.toString();
  5433. }
  5434. if (e.fStltypeid || e.fStltypeid == 0) {
  5435. e.fStltypeid = e.fStltypeid.toString();
  5436. }
  5437. });
  5438. this.warehouseDrList = response.data.warehousebillsfeesDr;
  5439. if (response.data.tCntrList) {
  5440. this.CntrTable = response.data.tCntrList;
  5441. } else {
  5442. this.CntrTable = [];
  5443. }
  5444. if (response.data.enclosures) {
  5445. this.relevantAttachments = response.data.enclosures;
  5446. }
  5447. }
  5448. });
  5449. if (status == "goBack") {
  5450. this.cancel();
  5451. }
  5452. }
  5453. }
  5454. });
  5455. }
  5456. });
  5457. },
  5458. // 库存明细多选
  5459. Selectinventory(selection) {
  5460. this.Printinglist = selection;
  5461. //允许确认入库list
  5462. this.dataListSelection = [];
  5463. this.dataListSelection = selection.filter((e) => e.fBillstatus == 30);
  5464. //允许撤销入库list
  5465. this.dataWithdrawList = [];
  5466. this.dataWithdrawList = selection.filter((e) => e.fBillstatus == 40);
  5467. },
  5468. // 合计
  5469. getSummaries(param) {
  5470. const { columns, data } = param;
  5471. const sums = [];
  5472. var values = [];
  5473. columns.forEach((column, index) => {
  5474. if (index === 0) {
  5475. sums[index] = "";
  5476. return;
  5477. }
  5478. if (column.property === "fGrossweight") {
  5479. values = data.map((item) => Number(item["fGrossweight"]));
  5480. }
  5481. if (column.property === "fNetweight") {
  5482. values = data.map((item) => Number(item["fNetweight"]));
  5483. }
  5484. if (column.property === "fQty") {
  5485. values = data.map((item) => Number(item["fQty"]));
  5486. }
  5487. if (column.property === "fCntqty") {
  5488. values = data.map((item) => Number(item["fCntqty"]));
  5489. }
  5490. if (
  5491. column.property === "fGrossweight" ||
  5492. column.property === "fNetweight" ||
  5493. column.property === "fQty" ||
  5494. column.property === "fCntqty"
  5495. ) {
  5496. sums[index] = values.reduce((prev, curr) => {
  5497. const value = Number(curr);
  5498. if (!isNaN(value)) {
  5499. if (column.property === "fGrossweight") {
  5500. this.fGrossweight = prev + curr;
  5501. }
  5502. if (column.property === "fNetweight") {
  5503. this.fNetweight = prev + curr;
  5504. }
  5505. if (column.property === "fQty") {
  5506. this.fQty = prev + curr;
  5507. this.sumMum = prev + curr;
  5508. }
  5509. if (column.property === "fCntqty") {
  5510. this.fCntqty = prev + curr;
  5511. }
  5512. return prev + curr;
  5513. } else {
  5514. return prev;
  5515. }
  5516. }, 0);
  5517. if (column.property === "fGrossweight") {
  5518. sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
  5519. } else if (column.property === "fNetweight") {
  5520. sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
  5521. } else {
  5522. sums[index] = sums[index];
  5523. }
  5524. }
  5525. });
  5526. this.sums = sums;
  5527. return sums;
  5528. },
  5529. // 付款合计
  5530. warehouseDrSummaries(param) {
  5531. const { columns, data } = param;
  5532. const sums = [];
  5533. columns.forEach((column, index) => {
  5534. if (index === 0) {
  5535. sums[index] = "合计";
  5536. return;
  5537. }
  5538. const values = data.map((item) => Number(item[column.property]));
  5539. if (
  5540. column.property === "fUnitprice" ||
  5541. column.property === "fAmount" ||
  5542. column.property === "fQty" ||
  5543. column.property === "fQty"
  5544. ) {
  5545. sums[index] = values.reduce((prev, curr) => {
  5546. const value = Number(curr);
  5547. if (!isNaN(value)) {
  5548. return prev + curr;
  5549. } else {
  5550. return prev;
  5551. }
  5552. }, 0);
  5553. sums[index] = sums[index].toFixed(2);
  5554. }
  5555. });
  5556. return sums;
  5557. },
  5558. // 库存总账多选框
  5559. whgenlegSelectionChange(selection) {
  5560. this.dialogWhgenlegList = selection;
  5561. },
  5562. handleSelect(key) {
  5563. if (!this.form.fCorpid) {
  5564. this.$message({
  5565. message: "请维护客户",
  5566. type: "warning",
  5567. });
  5568. } else if (this.form.fProductName == undefined) {
  5569. this.$message({
  5570. message: "请维护入库明细品名",
  5571. type: "warning",
  5572. });
  5573. } else {
  5574. this.pageNum = 1;
  5575. this.pageSize = 10;
  5576. this.dialogWhgenlegList = [];
  5577. this.whgenlegTotal = 0;
  5578. this.warehousingagreements = true;
  5579. this.getWhgenlegList(key);
  5580. }
  5581. },
  5582. // 查询作业费信息
  5583. getWhgenlegList(key) {
  5584. let data = {};
  5585. if (key == 2) {
  5586. this.key_id = key;
  5587. this.Navigation = true;
  5588. data = {
  5589. pageNum: this.pageNum,
  5590. pageSize: this.pageSize,
  5591. fTaskType: key,
  5592. fLabour: this.form.fLabour,
  5593. };
  5594. } else if (key == 1) {
  5595. this.key_id = key;
  5596. this.Navigation = true;
  5597. data = {
  5598. pageNum: this.pageNum,
  5599. pageSize: this.pageSize,
  5600. fTaskType: key,
  5601. fFleet: this.form.fFleet,
  5602. };
  5603. } else {
  5604. this.Navigation = false;
  5605. this.key_id = key;
  5606. data = {
  5607. pageNum: this.pageNum,
  5608. pageSize: this.pageSize,
  5609. fCorpid: this.form.fCorpid,
  5610. };
  5611. }
  5612. operationAgreement(data).then((response) => {
  5613. response.rows.map((e) => {
  5614. if (e.fFeeUnitid) {
  5615. e.fFeeUnitid = e.fFeeUnitid.toString();
  5616. }
  5617. });
  5618. this.tasklegList = response.rows;
  5619. this.whgenlegTotal = response.total;
  5620. });
  5621. },
  5622. // 入库明细新增list
  5623. addRelevant() {
  5624. this.$refs["form"].validate((valid) => {
  5625. if (valid) {
  5626. this.whgenlegList = [];
  5627. this.dialogWhgenlegList = [];
  5628. this.whgenlegTotal = 0;
  5629. this.whgenlegVisible = true;
  5630. this.getDetailsList();
  5631. }
  5632. });
  5633. },
  5634. // 查询库存总账信息
  5635. getDetailsList() {
  5636. if (this.detailList.length == 0) {
  5637. this.whgenlegParams.fMblno = this.form.fMblno;
  5638. }
  5639. this.whgenlegParams.fCorpid = this.form.fCorpid;
  5640. this.whgenlegParams.fTrademodeid = this.form.fTrademodeid;
  5641. this.whgenlegParams.fWarehouseid = this.form.fInwarehouseid;
  5642. listWhgenleg(this.whgenlegParams).then((response) => {
  5643. response.rows.map((e) => {
  5644. e.fQtyblc2 = e.fQtyblc;
  5645. e.fGrossweightblc2 = e.fGrossweightblc;
  5646. e.fNetweightblc2 = e.fNetweightblc;
  5647. });
  5648. this.whgenlegList = response.rows;
  5649. this.whgenlegTotal = response.total;
  5650. });
  5651. },
  5652. //撤销请核
  5653. revoke() {
  5654. revoke(this.form.fId).then((data) => {
  5655. if (data.code === 200) {
  5656. this.browseStatus = false;
  5657. this.msgSuccess("撤销成功");
  5658. }
  5659. });
  5660. },
  5661. ordersRevoke() {
  5662. ordersRevoke(this.form.fId).then((data) => {
  5663. if (data.code === 200) {
  5664. this.$set(this.form, "warehouseStatus", 2);
  5665. this.msgSuccess("撤销成功");
  5666. }
  5667. });
  5668. },
  5669. printZyd() {
  5670. this.radio = 1;
  5671. if (this.Printinglist.length > 0) {
  5672. for (let item in this.Printinglist) {
  5673. if (!this.Printinglist[item].fId) {
  5674. return this.$message.error("请先保存!");
  5675. }
  5676. // if (
  5677. // this.Printinglist[item].fTruckno !== this.Printinglist[0].fTruckno
  5678. // ) {
  5679. // return this.$message.error("请选择车相同车号");
  5680. // }
  5681. }
  5682. this.print_zyd = true;
  5683. this.warehouseOptions.map((e) => {
  5684. if (e.fId == this.form.fWarehouseid) {
  5685. this.stockaddr = e.fAddr;
  5686. }
  5687. });
  5688. this.fDriverTel = this.Printinglist[0].fDriverTel;
  5689. } else {
  5690. this.$message.error("请选择需要打印的明细!");
  5691. }
  5692. },
  5693. handleCommand(command) {
  5694. this.radio = 1;
  5695. if (this.Printinglist.length > 0) {
  5696. this.$refs["form"].validate((valid) => {
  5697. if (valid) {
  5698. for (let corp in this.fMblnoOptions) {
  5699. if (this.form.fCorpid === this.fMblnoOptions[corp].fId) {
  5700. this.$set(
  5701. this.form,
  5702. "fCorpidName",
  5703. this.fMblnoOptions[corp].fName
  5704. );
  5705. }
  5706. }
  5707. this.warehouseOptions.map((e) => {
  5708. if (e.fId == this.form.fWarehouseid) {
  5709. this.stockName = e.fName;
  5710. this.stockaddr = e.fAddr;
  5711. }
  5712. });
  5713. let date = new Date(this.Printinglist[0].fBsdate)
  5714. let Y = date.getFullYear()
  5715. let M = (date.getMonth() +1 <10 ?'0' + (date.getMonth() +1) : date.getMonth() +1)
  5716. let D = date.getDate()
  5717. this.fBsdate = Y + '-' + M + '-' + D
  5718. //获取当前时间
  5719. let now= new Date()
  5720. let _hour = ( 10 > now.getHours() ) ? '0' + now.getHours() : now.getHours();
  5721. let _minute = ( 10 > now.getMinutes() ) ? '0' + now.getMinutes() : now.getMinutes();
  5722. this.timeOut = _hour + ':' + _minute
  5723. console.log(this.data)
  5724. this.fDriverTel = this.Printinglist[0].fDriverTel;
  5725. // this.fBsdate = this.Printinglist[0].fBsdate;
  5726. this.fTruckno = this.Printinglist[0].fTruckno;
  5727. this.allfCntqty = 0;
  5728. this.allfGrossweight = 0;
  5729. this.allfPlanqty = 0;
  5730. this.allfNetweight = 0;
  5731. this.allfQty = 0;
  5732. this.Printinglist.map((e) => {
  5733. if (e.fCntqty) {
  5734. this.allfCntqty += e.fCntqty;
  5735. }
  5736. if (e.fGrossweight) {
  5737. this.allfGrossweight += e.fGrossweight;
  5738. }
  5739. if (e.fPlanqty) {
  5740. this.allfPlanqty += e.fPlanqty;
  5741. }
  5742. if (e.fNetweight) {
  5743. this.allfNetweight += e.fNetweight;
  5744. }
  5745. if (e.fQty) {
  5746. this.allfQty += e.fQty;
  5747. }
  5748. });
  5749. if (command == "a") {
  5750. this.print_shd = true;
  5751. } else if (command == "b") {
  5752. this.print_rkd = true;
  5753. } else if (command == "c") {
  5754. this.print_ykd = true;
  5755. } else if(command="d"){
  5756. this.print_ddd = true;
  5757. }
  5758. }
  5759. });
  5760. } else {
  5761. this.$message.error("请选择需要打印的明细!");
  5762. }
  5763. },
  5764. //计算仓储费日期变更
  5765. changeDate() {
  5766. this.$set(this.form, "fChargedate", this.form.fBsdate);
  5767. },
  5768. addRow() {
  5769. var obj = {};
  5770. this.CntrTable.push(obj);
  5771. },
  5772. deleteRow(index, rows) {
  5773. rows.splice(index, 1);
  5774. },
  5775. wDeleteRow(index, rows) {
  5776. rows.splice(index, 1);
  5777. this.sumMum = 0;
  5778. this.detailList.map((e) => {
  5779. if (e.fQty) {
  5780. this.sumMum += e.fQty;
  5781. }
  5782. });
  5783. if (this.detailList.length == 0) {
  5784. this.form.fProductName = "";
  5785. this.form.fMarks = "";
  5786. this.form.fNetweight = 0;
  5787. this.form.fPlanvolumn = 0;
  5788. this.form.fGrossweight = 0;
  5789. }
  5790. },
  5791. // 收款信息新行
  5792. addCollection() {
  5793. this.$refs["form"].validate((valid) => {
  5794. if (valid) {
  5795. if (this.form.fBusinessType == null) {
  5796. this.$message.error("请维护作业类型");
  5797. return false;
  5798. } else {
  5799. this.warehouseDrList.push({
  5800. fCorpid: null,
  5801. fFeeid: null,
  5802. fFeeUnitid: "",
  5803. fQty: null,
  5804. fUnitprice: null,
  5805. fAmount: null,
  5806. fCurrency: "RMB",
  5807. fExrate: "1",
  5808. fTaxrate: this.fTaxrate,
  5809. fCxrate: null,
  5810. fRate: null,
  5811. remarks: null,
  5812. fMblno: this.form.fMblno,
  5813. fProductName: this.form.fProductName,
  5814. fMarks: this.form.fMarks,
  5815. fBusinessType: this.form.fBusinessType,
  5816. fSrcTypeId: 0,
  5817. fStltypeid: '1',
  5818. });
  5819. this.fWbuOptions = [];
  5820. let queryParams = { pageNum: 1, fDc: "D" };
  5821. listFees(queryParams).then((response) => {
  5822. this.fDNameOptions = response.rows;
  5823. });
  5824. }
  5825. }
  5826. });
  5827. },
  5828. //付款信息新行
  5829. addpayment() {
  5830. this.$refs["form"].validate((valid) => {
  5831. if (valid) {
  5832. if (this.form.fBusinessType == null) {
  5833. return this.$message.error("请维护作业类型");
  5834. } else {
  5835. this.warehouseCrList.push({
  5836. fCorpid: null,
  5837. fFeeid: null,
  5838. fFeeUnitid: "",
  5839. fQty: null,
  5840. fUnitprice: null,
  5841. fAmount: null,
  5842. fCurrency: "RMB",
  5843. fExrate: "1",
  5844. fTaxrate: this.fTaxrate,
  5845. fCxrate: null,
  5846. fRate: null,
  5847. remarks: null,
  5848. fMblno: this.form.fMblno,
  5849. fProductName: this.form.fProductName,
  5850. fMarks: this.form.fMarks,
  5851. fBusinessType: this.form.fBusinessType,
  5852. fSrcTypeId: 0,
  5853. fStltypeid: '1',
  5854. });
  5855. this.fWbuOptions = [];
  5856. let queryParams = { pageNum: 1, fDc: "C" };
  5857. listFees(queryParams).then((response) => {
  5858. this.fCNameOptions = response.rows;
  5859. });
  5860. }
  5861. }
  5862. });
  5863. },
  5864. //导入收付款信息明细
  5865. zhgenlegData() {
  5866. if (this.dialogWhgenlegList.length === 0) {
  5867. this.$message({
  5868. message: "请选择需要导入的数据",
  5869. type: "warning",
  5870. });
  5871. } else {
  5872. this.dialogWhgenlegList.map((e) => {
  5873. let qty = 1;
  5874. if (e.fFeeUnitid == 1) {
  5875. qty = this.fQty;
  5876. } else if (e.fFeeUnitid == 2) {
  5877. qty = (this.fGrossweight / 1000).toFixed(2);
  5878. } else if (e.fFeeUnitid == 3) {
  5879. qty = (this.fNetweight / 1000).toFixed(2);
  5880. } else if (e.fFeeUnitid == 7) {
  5881. qty = this.fCntqty;
  5882. }
  5883. let fAmount = 0;
  5884. fAmount = e.fPrice * qty;
  5885. if (this.key_id == 3) {
  5886. this.warehouseDrList.push({
  5887. fQty: qty,
  5888. fCorpid: e.fCorpid,
  5889. fFeeid: e.feeFId,
  5890. fFeeUnitid: e.fFeeUnitid,
  5891. fUnitprice: e.fPrice,
  5892. fCurrency: "RMB",
  5893. fExrate: 1,
  5894. fAmount: fAmount,
  5895. fTaxrate: this.fTaxrate,
  5896. fMblno: this.form.fMblno,
  5897. fProductName: this.form.fProductName,
  5898. fMarks: this.form.fMarks,
  5899. fBusinessType: this.form.fBusinessType,
  5900. fSrcTypeId: 1,
  5901. fStltypeid: '1',
  5902. });
  5903. } else {
  5904. this.warehouseCrList.push({
  5905. fQty: qty,
  5906. fCorpid: e.fCorpid,
  5907. fFeeid: e.feeFId,
  5908. fFeeUnitid: e.fFeeUnitid,
  5909. fUnitprice: e.fPrice,
  5910. fCurrency: "RMB",
  5911. fExrate: 1,
  5912. fAmount: fAmount,
  5913. fTaxrate: this.fTaxrate,
  5914. fMblno: this.form.fMblno,
  5915. fProductName: this.form.fProductName,
  5916. fMarks: this.form.fMarks,
  5917. fBusinessType: this.form.fBusinessType,
  5918. fSrcTypeId: 1,
  5919. fStltypeid: '1',
  5920. });
  5921. }
  5922. });
  5923. this.warehousingagreements = false;
  5924. }
  5925. },
  5926. // 收款选
  5927. Collectionoptions(selection) {
  5928. this.Collectionoptionss = selection;
  5929. for (let item in this.fWbuOptions) {
  5930. for (let li in this.Collectionoptionss) {
  5931. if (
  5932. this.fWbuOptions[item].fId === this.Collectionoptionss[li].fFeeid
  5933. ) {
  5934. this.$set(
  5935. this.Collectionoptionss[li],
  5936. "fFeeids",
  5937. this.fWbuOptions[item].fName
  5938. );
  5939. }
  5940. }
  5941. }
  5942. },
  5943. //获取登陆人
  5944. queryUser() {
  5945. queryUserVal().then((response) => {
  5946. if (response.user !== null) {
  5947. this.userVal = response.user;
  5948. this.$set(this.form, "fDeptid", this.userVal.deptId);
  5949. this.$set(this.form, "createBy", this.userVal.userName);
  5950. this.$set(this.form, "fStorekeeper", this.userVal.nickName);
  5951. this.$set(this.form, "fIfdamage", "1");
  5952. this.$set(this.form, "fIfweigh", "1");
  5953. this.$set(this.form, "fTrademodeid", "1");
  5954. this.$set(this.form, "createTime", Date.parse(new Date()));
  5955. this.$set(this.form, "fBstime", Date.parse(new Date()));
  5956. this.$set(this.form, "fBusinessType", "0");
  5957. }
  5958. if (response.dept !== null) {
  5959. this.deptOptions = [];
  5960. this.deptOptions.push(response.dept);
  5961. }
  5962. });
  5963. },
  5964. //作业类型校验
  5965. educationChange() {
  5966. if (this.form.fBusinessType === "1" || this.form.fBusinessType === "2") {
  5967. this.isrequired = 1;
  5968. this.isrequired2 = 2;
  5969. } else if (
  5970. this.form.fBusinessType === "3" ||
  5971. this.form.fBusinessType === "4"
  5972. ) {
  5973. this.isrequired2 = 1;
  5974. this.isrequired = 2;
  5975. } else {
  5976. this.isrequired = 2;
  5977. this.isrequired2 = 2;
  5978. }
  5979. },
  5980. // 数量计算
  5981. changeContractAmt(row) {
  5982. let fQty = 0;
  5983. let fUnitprice = 0;
  5984. if (row.fUnitprice) {
  5985. fUnitprice = row.fUnitprice;
  5986. }
  5987. if (row.fQty) {
  5988. fQty = row.fQty;
  5989. }
  5990. this.$set(row, "fAmount", Number(fUnitprice) * Number(fQty)).toFixed(2);
  5991. },
  5992. // 变更计价单位
  5993. changeFeeUnit(row) {
  5994. if (!row.fFeeUnitid) {
  5995. return false;
  5996. }
  5997. if (row.fFeeUnitid === "2") {
  5998. this.$set(row, "fQty", (this.fGrossweight / 1000).toFixed(2));
  5999. } else if (row.fFeeUnitid === "1") {
  6000. this.$set(row, "fQty", this.fQty.toFixed(2));
  6001. } else if (row.fFeeUnitid === "3") {
  6002. this.$set(row, "fQty", (this.fNetweight / 1000).toFixed(2));
  6003. } else if (row.fFeeUnitid === "7") {
  6004. this.$set(row, "fQty", this.fCntqty);
  6005. } else {
  6006. this.$set(row, "fQty", 0);
  6007. }
  6008. if (row.fUnitprice) {
  6009. this.$set(
  6010. row,
  6011. "fAmount",
  6012. parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2)
  6013. );
  6014. }
  6015. },
  6016. updateDeduplication() {
  6017. if (this.detailList.length) {
  6018. let fMarks = [];
  6019. let fProductName = [];
  6020. let fMblno = [];
  6021. this.detailList.map((e) => {
  6022. if (e.fMarks) {
  6023. fMarks.push(e.fMarks);
  6024. }
  6025. if (e.fGoodsids) {
  6026. fProductName.push(e.fGoodsids);
  6027. }
  6028. if (e.fMblno) {
  6029. fMblno.push(e.fMblno);
  6030. }
  6031. });
  6032. this.$set(this.form, "fMarks", [...new Set(fMarks)].join(","));
  6033. this.$set(
  6034. this.form,
  6035. "fProductName",
  6036. [...new Set(fProductName)].join(",")
  6037. );
  6038. fMblno = [...new Set(fMblno)];
  6039. if (fMblno.length <= 2) {
  6040. this.$set(this.form, "fMblno", [...new Set(fMblno)].join(","));
  6041. } else {
  6042. this.$set(this.form, "fMblno", fMblno[0] + "," + fMblno[1] + "…");
  6043. }
  6044. }
  6045. },
  6046. //打印
  6047. addprint(status) {
  6048. const style =
  6049. "@page { } " +
  6050. "@media print { .print-div{ padding:8px;background-color:#cccccc;} .print-title{display:flex;justify-content: center;font-size:24px} .print_form{font-size:12px} .print_table table {border-right: 1px solid #000;border-bottom: 1px solid #000;font-size:12px} .print_table table td {border-left: 1px solid #000;border-top: 1px solid #000;padding:2px;vertical-align:middle;text-align: center;}";
  6051. if (status == "zyd") {
  6052. if (this.CntrTable.length > 0) {
  6053. let arr = [];
  6054. this.CntrTable.map((e) => {
  6055. this.cntrList.map((item) => {
  6056. if (item.fId == e.fCntrid) {
  6057. arr.push(item.fName + "X" + e.fCntrcount);
  6058. }
  6059. });
  6060. });
  6061. arr = [...new Set(arr)];
  6062. this.form.fCntval = arr.join(",");
  6063. } else {
  6064. this.form.fCntval = null;
  6065. }
  6066. if (this.detailList.length > 0) {
  6067. let arr = [];
  6068. this.detailList.map((e) => {
  6069. this.goodsOptions.map((item) => {
  6070. if (e.fGoodsid == item.fId) {
  6071. arr.push(item.fName);
  6072. }
  6073. });
  6074. });
  6075. arr = [...new Set(arr)];
  6076. this.form.fProductName = arr.join(",");
  6077. } else {
  6078. this.form.fProductName = "";
  6079. }
  6080. if (this.detailList.length > 0) {
  6081. let arr = [];
  6082. this.detailList.map((e) => {
  6083. arr.push(e.fMarks);
  6084. });
  6085. arr = [...new Set(arr)];
  6086. this.form.fMarks = arr.join(",");
  6087. } else {
  6088. this.form.fMarks = "";
  6089. }
  6090. this.form.fBillingway = this.form.fFeetUnit;
  6091. if (this.detailList.length == 0) {
  6092. this.form.fNetweight = 0;
  6093. this.form.fPlanvolumn = 0;
  6094. this.form.fGrossweight = 0;
  6095. } else {
  6096. this.form.fNetweight = this.fNetweight;
  6097. this.form.fPlanvolumn = this.fPlanvolumn;
  6098. this.form.fGrossweight = this.fGrossweight;
  6099. }
  6100. let formData = new window.FormData();
  6101. formData.append("type", "1");
  6102. formData.append("warehouseBills", JSON.stringify(this.form));
  6103. formData.append(
  6104. "warehousebillsitems",
  6105. JSON.stringify(this.Printinglist)
  6106. );
  6107. formData.append(
  6108. "warehousebillsfeesDr",
  6109. JSON.stringify(this.warehouseDrList)
  6110. );
  6111. formData.append(
  6112. "warehousebillsfeesCr",
  6113. JSON.stringify(this.warehouseCrList)
  6114. );
  6115. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  6116. formData.append("tCntr", JSON.stringify(this.CntrTable));
  6117. addJoblist(formData).then((response) => {
  6118. if (response.code == 200) {
  6119. this.detailList.map((e, index) => {
  6120. response.data.warehousebillsitems.map((item) => {
  6121. item.fBsdate = Date.parse(new Date(item.fBsdate));
  6122. if (item.fBusinessType) {
  6123. item.fBusinessType = item.fBusinessType.toString();
  6124. }
  6125. item.fLntype = item.fLntype ? item.fLntype.toString() : null;
  6126. if (e.fId == item.fId) {
  6127. this.$set(this.detailList, index, item);
  6128. }
  6129. });
  6130. });
  6131. this.$set(this.form, "fItemsStatus", 2);
  6132. }
  6133. });
  6134. }
  6135. if(status == 'ddd'){
  6136. print({
  6137. printable: "print_area5",
  6138. type: "html",
  6139. style: style, // 亦可使用引入的外部css;
  6140. scanStyles: false,
  6141. });
  6142. } else if (status == 'crzyd') {
  6143. print({
  6144. printable: "print_Cr",
  6145. type: "html",
  6146. style: style, // 亦可使用引入的外部css;
  6147. scanStyles: false,
  6148. });
  6149. }else if (status == 'shd') {
  6150. print({
  6151. printable: "print_area3",
  6152. type: "html",
  6153. style: style, // 亦可使用引入的外部css;
  6154. scanStyles: false,
  6155. });
  6156. }else if (status == 'rkd') {
  6157. print({
  6158. printable: "print_area2",
  6159. type: "html",
  6160. style: style, // 亦可使用引入的外部css;
  6161. scanStyles: false,
  6162. });
  6163. }else if (status == 'ykd') {
  6164. print({
  6165. printable: "print_area4",
  6166. type: "html",
  6167. style: style, // 亦可使用引入的外部css;
  6168. scanStyles: false,
  6169. });
  6170. }else if (status == 'fyqrd') {
  6171. print({
  6172. printable: "print_fyqr",
  6173. type: "html",
  6174. style: style, // 亦可使用引入的外部css;
  6175. scanStyles: false,
  6176. });
  6177. }else if (status == 'Crfyqrd') {
  6178. print({
  6179. printable: "print_Crfyqr",
  6180. type: "html",
  6181. style: style, // 亦可使用引入的外部css;
  6182. scanStyles: false,
  6183. });
  6184. }
  6185. else{
  6186. print({
  6187. printable: "print_area1",
  6188. type: "html",
  6189. style: style, // 亦可使用引入的外部css;
  6190. scanStyles: false,
  6191. });
  6192. }
  6193. // print({
  6194. // printable: "print_area1",
  6195. // type: "html",
  6196. // style: style, // 亦可使用引入的外部css;
  6197. // scanStyles: false,
  6198. // });
  6199. },
  6200. cancel() {
  6201. if (this.$route.query.id) {
  6202. this.$router.push({ query: {} });
  6203. }
  6204. this.resetForm("form");
  6205. this.detailList = [];
  6206. this.relevantAttachments = [];
  6207. this.warehouseCrList = [];
  6208. this.warehouseDrList = [];
  6209. this.CntrTable = [];
  6210. this.$emit("changeShow", "true");
  6211. },
  6212. goBack() {
  6213. this.$confirm("是否确定返回列表?", "提示", {
  6214. confirmButtonText: "保存",
  6215. cancelButtonText: "取消",
  6216. type: "warning",
  6217. })
  6218. .then(() => {
  6219. this.saveForm("goBack");
  6220. })
  6221. .catch(() => {
  6222. this.cancel();
  6223. });
  6224. },
  6225. feeChange(fDC) {
  6226. let data = {
  6227. form: {},
  6228. warehousebillsfeesCr: [],
  6229. warehousebillsfeesDr: [],
  6230. billType: 'outStock',
  6231. fDc: fDC
  6232. }
  6233. data.form = this.form
  6234. if (fDC == 'C') {
  6235. data.warehousebillsfeesCr = this.warehouseCrList
  6236. } else {
  6237. data.warehousebillsfeesDr = this.warehouseDrList
  6238. }
  6239. this.$router.push({
  6240. path: "/business/costModify",
  6241. query: { data: data},
  6242. });
  6243. },
  6244. // 费用明细请核
  6245. listCheck(row) {
  6246. feesCheck(row.fId).then(res => {
  6247. this.$message.success('请核成功')
  6248. res.data.fFeeUnitid = res.data.fFeeunitid.toString();
  6249. if (res.data.fDc == 'D') {
  6250. let index = this.warehouseDrList.findIndex(item => item.fId == res.data.fId)
  6251. this.warehouseDrList.splice(index, 1, res.data)
  6252. } else {
  6253. let index = this.warehouseCrList.findIndex(item => item.fId == res.data.fId)
  6254. this.warehouseCrList.splice(index, 1, res.data)
  6255. }
  6256. console.log(res)
  6257. })
  6258. },
  6259. // 费用明细撤销请核
  6260. revokeListCheck(row) {
  6261. revokefeeCheck(row.fId).then(res => {
  6262. res.data.fFeeUnitid = res.data.fFeeunitid.toString();
  6263. this.$message.success('操作成功')
  6264. if (res.data.fDc == 'D') {
  6265. let index = this.warehouseDrList.findIndex(item => item.fId == res.data.fId)
  6266. this.warehouseDrList.splice(index, 1, res.data)
  6267. } else {
  6268. let index = this.warehouseCrList.findIndex(item => item.fId == res.data.fId)
  6269. this.warehouseCrList.splice(index, 1, res.data)
  6270. }
  6271. console.log(this.warehouseDrList)
  6272. })
  6273. },
  6274. // 付款明细多选
  6275. SelectCr(selection) {
  6276. this.PrintingCrlist = selection;
  6277. },
  6278. // 付款信息打印准备
  6279. printCr() {
  6280. if (this.PrintingCrlist.length > 0) {
  6281. for (let item in this.PrintingCrlist) {
  6282. if (!this.PrintingCrlist[item].fId) {
  6283. return this.$message.error("请先保存!");
  6284. }
  6285. }
  6286. this.allCrfAmount = 0;
  6287. this.allCrfQty = 0;
  6288. this.PrintingCrlist.forEach(item => {
  6289. this.allCrfAmount = this.allCrfAmount + item.fAmount
  6290. this.allCrfQty += item.fQty
  6291. })
  6292. this.print_Cr = true;
  6293. } else {
  6294. this.$message.error("请选择需要打印的明细!");
  6295. }
  6296. },
  6297. warehouseChange() {
  6298. getDept(this.form.fWarehouseid).then(res => {
  6299. this.$set(this.form, 'fContacts', res.data.fContacts)
  6300. this.$set(this.form, 'fTel', res.data.fTel)
  6301. })
  6302. },
  6303. // 打印费用确认单准备
  6304. feesConfirm() {
  6305. if (this.Collectionoptionss.length > 0) {
  6306. for (let item in this.Collectionoptionss) {
  6307. if (!this.Collectionoptionss[item].fId) {
  6308. return this.$message.error("请先保存!");
  6309. }
  6310. }
  6311. if (this.CntrTable.length > 0) {
  6312. let arr = [];
  6313. this.CntrTable.map((e) => {
  6314. this.cntrList.map((item) => {
  6315. if (item.fId == e.fCntrid) {
  6316. arr.push(item.fName + "X" + e.fCntrcount);
  6317. }
  6318. });
  6319. });
  6320. arr = [...new Set(arr)];
  6321. this.form.fCntval = arr.join(",");
  6322. } else {
  6323. this.form.fCntval = null;
  6324. }
  6325. this.allTaxAmount = 0;
  6326. this.allExclTax = 0;
  6327. this.allDrAmount = 0;
  6328. this.Collectionoptionss.forEach(item => {
  6329. // 税额
  6330. this.$set(item, 'taxAmount', Number(item.fAmount) / (1 + Number(Number(item.fTaxrate) / 100)))
  6331. item.taxAmount = item.taxAmount.toSuperFixed(2)
  6332. // 不含税金额
  6333. this.$set(item, 'exclTax', Number(item.fAmount) - Number(item.taxAmount))
  6334. item.exclTax = item.exclTax.toSuperFixed(2)
  6335. this.allTaxAmount = Number(this.allTaxAmount) + Number(item.taxAmount)
  6336. this.allExclTax = Number(this.allExclTax) + Number(item.exclTax)
  6337. this.allDrAmount = Number(this.allDrAmount) + Number(item.fAmount)
  6338. this.allTaxAmount = this.allTaxAmount.toSuperFixed(2)
  6339. this.allExclTax = this.allExclTax.toSuperFixed(2)
  6340. this.allDrAmount = this.allDrAmount.toSuperFixed(2)
  6341. })
  6342. this.nowTime = new Date().toLocaleDateString()
  6343. for (let corp in this.fMblnoOptions) {
  6344. if (this.form.fCorpid === this.fMblnoOptions[corp].fId) {
  6345. this.$set(
  6346. this.form,
  6347. "fCorpidName",
  6348. this.fMblnoOptions[corp].fName
  6349. );
  6350. }
  6351. }
  6352. this.print_fyqr = true;
  6353. } else {
  6354. this.$message.error("请选择需要打印的明细!");
  6355. }
  6356. },
  6357. feesCrConfirm() {
  6358. if (this.PrintingCrlist.length > 0) {
  6359. for (let item in this.PrintingCrlist) {
  6360. if (!this.PrintingCrlist[item].fId) {
  6361. return this.$message.error("请先保存!");
  6362. }
  6363. }
  6364. if (this.CntrTable.length > 0) {
  6365. let arr = [];
  6366. this.CntrTable.map((e) => {
  6367. this.cntrList.map((item) => {
  6368. if (item.fId == e.fCntrid) {
  6369. arr.push(item.fName + "X" + e.fCntrcount);
  6370. }
  6371. });
  6372. });
  6373. arr = [...new Set(arr)];
  6374. this.form.fCntval = arr.join(",");
  6375. } else {
  6376. this.form.fCntval = null;
  6377. }
  6378. this.allTaxAmount = 0;
  6379. this.allExclTax = 0;
  6380. this.allDrAmount = 0;
  6381. this.PrintingCrlist.forEach(item => {
  6382. // 税额
  6383. this.$set(item, 'taxAmount', Number(item.fAmount) / (1 + Number(Number(item.fTaxrate) / 100)))
  6384. item.taxAmount = item.taxAmount.toSuperFixed(2)
  6385. // 不含税金额
  6386. this.$set(item, 'exclTax', Number(item.fAmount) - Number(item.taxAmount))
  6387. item.exclTax = item.exclTax.toSuperFixed(2)
  6388. this.allTaxAmount = Number(this.allTaxAmount) + Number(item.taxAmount)
  6389. this.allExclTax = Number(this.allExclTax) + Number(item.exclTax)
  6390. this.allDrAmount = Number(this.allDrAmount) + Number(item.fAmount)
  6391. this.allTaxAmount = this.allTaxAmount.toSuperFixed(2)
  6392. this.allExclTax = this.allExclTax.toSuperFixed(2)
  6393. this.allDrAmount = this.allDrAmount.toSuperFixed(2)
  6394. })
  6395. this.nowTime = new Date().toLocaleDateString()
  6396. for (let corp in this.fMblnoOptions) {
  6397. if (this.form.fCorpid === this.fMblnoOptions[corp].fId) {
  6398. this.$set(
  6399. this.form,
  6400. "fCorpidName",
  6401. this.fMblnoOptions[corp].fName
  6402. );
  6403. }
  6404. }
  6405. this.print_Crfyqr = true;
  6406. } else {
  6407. this.$message.error("请选择需要打印的明细!");
  6408. }
  6409. },
  6410. },
  6411. watch: {
  6412. // 监听 addOrUpdateVisible 改变
  6413. addOrUpdateVisible(oldVal, newVal) {
  6414. this.showDialog = this.addOrUpdateVisible;
  6415. },
  6416. },
  6417. };
  6418. </script>
  6419. <style lang="scss" scoped>
  6420. .tag-hover:hover {
  6421. background-color: #d9ebfb;
  6422. }
  6423. .tag-hover {
  6424. border-top-left-radius: 0;
  6425. border-bottom-left-radius: 0;
  6426. height: 15px;
  6427. padding: 0px 1px;
  6428. line-height: 12px;
  6429. }
  6430. .print-div {
  6431. color: #000;
  6432. }
  6433. .print_table {
  6434. table {
  6435. border-right: 1px solid #000;
  6436. border-bottom: 1px solid #000;
  6437. font-size: 12px;
  6438. margin-bottom: 5px;
  6439. }
  6440. table td {
  6441. border-left: 1px solid #000;
  6442. border-top: 1px solid #000;
  6443. vertical-align: middle;
  6444. padding: 2px;
  6445. text-align: center;
  6446. }
  6447. }
  6448. .print_form {
  6449. font-size: 12px;
  6450. }
  6451. </style>