AddOrUpdate.vue 237 KB

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