AddOrUpdate.vue 321 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327
  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. <!-- <el-button icon="el-icon-refresh" circle size="mini"></el-button> -->
  63. </div>
  64. <br/>
  65. <el-form ref="form" :model="form" :rules="rules" label-width="120px">
  66. <el-row>
  67. <el-col :span="8">
  68. <el-form-item label="客户" prop="fCorpid">
  69. <el-select
  70. v-model="form.fCorpid"
  71. clearable
  72. filterable
  73. placeholder="请输入关键词"
  74. style="width: 80%"
  75. @change="changefStltype"
  76. :disabled="detailList.findIndex(function(item){return item.fBillstatus == 40}) == -1?false:true"
  77. >
  78. <el-option
  79. v-for="(item, index) in fMblnoOptions"
  80. :key="index.fId"
  81. :label="item.fName"
  82. :value="item.fId"
  83. ></el-option>
  84. </el-select>
  85. </el-form-item>
  86. </el-col>
  87. <el-col :span="8" v-if="true">
  88. <el-form-item label="计费单位" prop="fFeetUnit">
  89. <el-select
  90. v-model="form.fFeetUnit"
  91. placeholder="请选择计费单位"
  92. clearable
  93. :disabled="browseStatus || form.warehouseStatus > 3||detailList.findIndex(function(item){return item.fBillstatus == 40}) == -1?false:true"
  94. style="width: 80%"
  95. >
  96. <el-option
  97. v-for="(item, index) in fFeetUnitOptions"
  98. :key="index.dictValue"
  99. :label="item.dictLabel"
  100. :value="item.dictValue"
  101. />
  102. </el-select>
  103. </el-form-item>
  104. </el-col>
  105. <el-col :span="8" v-else>
  106. <el-form-item label="作业类型" prop="fBusinessType">
  107. <el-select
  108. style="width: 80%"
  109. v-model="form.fBusinessType"
  110. filterable
  111. @change="educationChange"
  112. :disabled="
  113. browseStatus ||
  114. warehouseDrList.length > 0 ||
  115. warehouseCrList.length > 0 ||
  116. form.warehouseStatus > 3
  117. "
  118. >
  119. <el-option
  120. v-for="(item, index) in businessTypeOption"
  121. :key="index.dictValue"
  122. :label="item.dictLabel"
  123. :value="item.dictValue"
  124. ></el-option>
  125. </el-select>
  126. </el-form-item>
  127. </el-col>
  128. <el-col :span="8">
  129. <el-form-item label="提单号" prop="fMblno">
  130. <el-input
  131. v-model="form.fMblno"
  132. :disabled="detailList.findIndex(function(item){return item.fBillstatus == 40}) == -1?false:true"
  133. style="width: 80%"
  134. placeholder="请输入提单号"
  135. v-Space
  136. />
  137. </el-form-item>
  138. </el-col>
  139. </el-row>
  140. <el-row>
  141. <el-col :span="8">
  142. <el-form-item label="计划日期" prop="fBsdate">
  143. <el-date-picker
  144. v-model="form.fBsdate"
  145. style="width: 80%"
  146. type="date"
  147. :disabled="detailList.findIndex(function(item){return item.fBillstatus == 40}) == -1?false:true"
  148. value-format="timestamp"
  149. format="yyyy-MM-dd"
  150. placeholder="请选择计划日期"
  151. @change="changeDate"
  152. >
  153. </el-date-picker>
  154. </el-form-item>
  155. </el-col>
  156. <el-col :span="8">
  157. <el-form-item label="入库时间" prop="fBstime">
  158. <el-time-picker
  159. style="width: 80%"
  160. :disabled="detailList.findIndex(function(item){return item.fBillstatus == 40}) == -1?false:true"
  161. v-model="form.fBstime"
  162. :picker-options="{
  163. selectableRange: '00:00:00 - 23:59:59',
  164. }"
  165. value-format="timestamp"
  166. placeholder="任意时间点"
  167. >
  168. </el-time-picker>
  169. </el-form-item>
  170. </el-col>
  171. <el-col :span="8">
  172. <el-form-item label="仓储费方式" prop="fChargetype">
  173. <!-- detailList[].fBillstatus-->
  174. <el-select
  175. style="width: 80%"
  176. v-model="form.fChargetype"
  177. :disabled="detailList.findIndex(function(item){return item.fBillstatus == 40}) == -1?false:true"
  178. placeholder="请选择仓储费方式"
  179. >
  180. <el-option label="实际入库日期" value="1"></el-option>
  181. <el-option label="最早入库日期" value="0"></el-option>
  182. </el-select>
  183. </el-form-item>
  184. </el-col>
  185. </el-row>
  186. <el-row>
  187. <el-col :span="8">
  188. <el-form-item prop="fGoodsid" label="品名">
  189. <el-select
  190. filterable
  191. v-model="form.fGoodsid"
  192. style="width: 80%"
  193. :disabled="
  194. browseStatus ||
  195. detailList.length > 0 ||
  196. form.warehouseStatus > 3
  197. "
  198. placeholder="请选择品名"
  199. >
  200. <el-option
  201. v-for="(item, index) in goodsOptions"
  202. :key="index.fId"
  203. :label="item.fName"
  204. :value="item.fId"
  205. ></el-option>
  206. </el-select>
  207. </el-form-item>
  208. </el-col>
  209. <el-col :span="8">
  210. <el-form-item label="仓库" prop="fWarehouseid">
  211. <el-select
  212. v-model="form.fWarehouseid"
  213. filterable
  214. :disabled="detailList.findIndex(function(item){return item.fWarehouseInformation}) == -1?false:true"
  215. style="width: 80%"
  216. placeholder="请选择"
  217. >
  218. <el-option
  219. v-for="(item, index) in warehouseOptions"
  220. :key="index.fId"
  221. :label="item.fName"
  222. :value="item.fId"
  223. ></el-option>
  224. </el-select>
  225. </el-form-item>
  226. </el-col>
  227. <el-col :span="8">
  228. <el-form-item label="仓管员" prop="fStorekeeper">
  229. <el-select
  230. v-model="form.fStorekeeper"
  231. filterable
  232. clearable
  233. :disabled="detailList.findIndex(function(item){return item.fBillstatus == 40}) == -1?false:true"
  234. style="width: 80%"
  235. placeholder="请输入模糊查找"
  236. >
  237. <el-option
  238. v-for="(item, index) in userOptions"
  239. :key="index.userName"
  240. :label="item.nickName"
  241. :value="item.userName"
  242. ></el-option>
  243. </el-select>
  244. </el-form-item>
  245. </el-col>
  246. </el-row>
  247. <el-row>
  248. <el-col :span="8">
  249. <el-form-item label="到港日期" prop="fEta">
  250. <el-date-picker
  251. v-model="form.fEta"
  252. style="width: 80%"
  253. type="date"
  254. value-format="timestamp"
  255. placeholder="到港日期"
  256. >
  257. </el-date-picker>
  258. </el-form-item>
  259. </el-col>
  260. <el-col :span="8">
  261. <el-form-item label="箱使日期" prop="freeContainerDate">
  262. <el-date-picker
  263. v-model="form.freeContainerDate"
  264. style="width: 80%"
  265. type="date"
  266. value-format="timestamp"
  267. placeholder="请选择箱使日期"
  268. >
  269. </el-date-picker>
  270. </el-form-item>
  271. </el-col>
  272. <el-col :span="8" v-if="showfCustomno">
  273. <el-form-item
  274. label="报关单号"
  275. prop="fCustomno"
  276. :rules="{
  277. required: form.fTrademodeid == 1 && showfCustomno == 1 ? true : false,
  278. message: '请输入',
  279. trigger: ['blur', 'change'],
  280. }"
  281. >
  282. <el-input
  283. v-model="form.fCustomno"
  284. style="width: 80%"
  285. placeholder="报关单号"
  286. />
  287. </el-form-item>
  288. </el-col>
  289. </el-row>
  290. <el-row>
  291. <el-col :span="8">
  292. <el-form-item label="计划件数" prop="fPlanqty">
  293. <el-input
  294. v-model.number="form.fPlanqty"
  295. style="width: 80%"
  296. maxlength="9"
  297. v-input-limit="0"
  298. placeholder="计划件数"
  299. :disabled="
  300. browseStatus || current !== before || form.warehouseStatus > 3
  301. "
  302. />
  303. </el-form-item>
  304. </el-col>
  305. <el-col :span="8">
  306. <el-form-item label="计划净重(kg)" prop="fPlannetweight">
  307. <el-input
  308. v-model="form.fPlannetweight"
  309. style="width: 80%"
  310. maxlength="16"
  311. v-input-limit="2"
  312. placeholder="计划净重"
  313. @input="changePlannetWeight"
  314. :disabled="
  315. browseStatus || current !== before || form.warehouseStatus > 3
  316. "
  317. @change="tfNetweight"
  318. >
  319. <template slot="append">{{ tfNetweightnum }}吨</template>
  320. </el-input>
  321. </el-form-item>
  322. </el-col>
  323. <el-col :span="8">
  324. <el-form-item label="计划毛重(kg)" prop="fPlangrossweight">
  325. <el-input
  326. v-model="form.fPlangrossweight"
  327. style="width: 80%"
  328. v-input-limit="2"
  329. placeholder="计划毛重"
  330. maxlength="16"
  331. :disabled="
  332. browseStatus || current !== before || form.warehouseStatus > 3
  333. "
  334. @change="tfGrossweight"
  335. >
  336. <template slot="append">{{ tfGrossweightnum }}吨</template>
  337. </el-input>
  338. </el-form-item>
  339. </el-col>
  340. </el-row>
  341. <div v-if="detailsHidden2">
  342. <el-row>
  343. <el-col :span="8" v-if="false">
  344. <el-form-item label="计费单位" prop="fFeetUnit">
  345. <el-select
  346. v-model="form.fFeetUnit"
  347. placeholder="请选择计费单位"
  348. clearable
  349. :disabled="browseStatus || form.warehouseStatus > 3"
  350. style="width: 80%"
  351. >
  352. <el-option
  353. v-for="(item, index) in fFeetUnitOptions"
  354. :key="index.dictValue"
  355. :label="item.dictLabel"
  356. :value="item.dictValue"
  357. />
  358. </el-select>
  359. </el-form-item>
  360. </el-col>
  361. <el-col :span="8" v-else>
  362. <el-form-item label="作业类型" prop="fBusinessType">
  363. <el-select
  364. style="width: 80%"
  365. v-model="form.fBusinessType"
  366. filterable
  367. @change="educationChange"
  368. :disabled="
  369. browseStatus ||
  370. warehouseDrList.length > 0 ||
  371. warehouseCrList.length > 0 ||
  372. form.warehouseStatus > 3
  373. "
  374. >
  375. <el-option
  376. v-for="(item, index) in businessTypeOption"
  377. :key="index.dictValue"
  378. :label="item.dictLabel"
  379. :value="item.dictValue"
  380. ></el-option>
  381. </el-select>
  382. </el-form-item>
  383. </el-col>
  384. <el-col :span="8">
  385. <el-form-item label="劳务公司" prop="fLabour">
  386. <el-select
  387. style="width: 80%"
  388. v-model="form.fLabour"
  389. clearable
  390. filterable
  391. placeholder="请输入关键词"
  392. :disabled="browseStatus || form.warehouseStatus > 3"
  393. >
  394. <el-option
  395. v-for="(item, index) in fCompanyOptIons"
  396. :key="index.fId"
  397. :label="item.fName"
  398. :value="item.fId"
  399. ></el-option>
  400. </el-select>
  401. </el-form-item>
  402. </el-col>
  403. <el-col :span="8">
  404. <el-form-item
  405. label="车队"
  406. prop="fFleet"
  407. :rules="{
  408. required: isrequired === 1 ? true : false,
  409. message: '请选择',
  410. trigger: ['blur', 'change'],
  411. }"
  412. >
  413. <el-select
  414. style="width: 80%"
  415. v-model="form.fFleet"
  416. clearable
  417. filterable
  418. placeholder="请输入关键词"
  419. :disabled="browseStatus || form.warehouseStatus > 3"
  420. >
  421. <el-option
  422. v-for="(item, index) in fleetOptions"
  423. :key="index.fId"
  424. :label="item.fName"
  425. :value="item.fId"
  426. ></el-option>
  427. </el-select>
  428. </el-form-item>
  429. </el-col>
  430. </el-row>
  431. <el-row>
  432. <el-col :span="8">
  433. <el-form-item label="结算方式" prop="fStltypeid">
  434. <el-select
  435. v-model="form.fStltypeid"
  436. placeholder="请选择结算方式"
  437. clearable
  438. :disabled="browseStatus || form.warehouseStatus > 3"
  439. style="width: 80%"
  440. >
  441. <el-option
  442. v-for="(item, index) in fStltypeOptions"
  443. :key="index.dictValue"
  444. :label="item.dictLabel"
  445. :value="item.dictValue"
  446. />
  447. </el-select>
  448. </el-form-item>
  449. </el-col>
  450. <el-col :span="8">
  451. <el-form-item
  452. label="车号"
  453. prop="fTruckno"
  454. :rules="{
  455. required: isrequired2 === 1 ? true : false,
  456. message: '请选择',
  457. trigger: ['blur', 'change'],
  458. }"
  459. >
  460. <el-input
  461. v-model="form.fTruckno"
  462. style="width: 80%"
  463. :disabled="browseStatus || form.warehouseStatus > 3"
  464. placeholder="车号"
  465. />
  466. </el-form-item>
  467. </el-col>
  468. <el-col :span="8">
  469. <el-form-item
  470. label="司机姓名"
  471. prop="fDriverName"
  472. :rules="{
  473. required: isrequired2 === 1 ? true : false,
  474. message: '请选择',
  475. trigger: ['blur', 'change'],
  476. }"
  477. >
  478. <el-input
  479. v-model="form.fDriverName"
  480. style="width: 80%"
  481. :disabled="browseStatus || form.warehouseStatus > 3"
  482. placeholder="司机姓名"
  483. />
  484. </el-form-item>
  485. </el-col>
  486. </el-row>
  487. </div>
  488. <el-row>
  489. <el-col :span="16">
  490. <div v-if="detailsHidden2">
  491. <el-row>
  492. <el-col :span="12">
  493. <el-form-item
  494. label="司机身份证"
  495. prop="fDriverIdCar"
  496. :rules="{
  497. required: isrequired2 === 1 ? true : false,
  498. message: '请选择',
  499. trigger: ['blur', 'change'],
  500. }"
  501. >
  502. <el-input
  503. v-model="form.fDriverIdCar"
  504. style="width: 80%"
  505. :disabled="browseStatus || form.warehouseStatus > 3"
  506. placeholder="司机身份证"
  507. />
  508. </el-form-item>
  509. </el-col>
  510. <el-col :span="12">
  511. <el-form-item
  512. label="司机电话"
  513. prop="fDriverTel"
  514. :rules="{
  515. required: isrequired2 === 1 ? true : false,
  516. message: '请选择',
  517. trigger: ['blur', 'change'],
  518. }"
  519. >
  520. <el-input
  521. v-model="form.fDriverTel"
  522. style="width: 80%"
  523. :disabled="browseStatus || form.warehouseStatus > 3"
  524. placeholder="司机电话"
  525. />
  526. </el-form-item>
  527. </el-col>
  528. </el-row>
  529. </div>
  530. <el-row>
  531. <el-col :span="12">
  532. <el-form-item label="备注" prop="remark">
  533. <el-input
  534. style="width: 80%"
  535. v-model="form.remark"
  536. type="textarea"
  537. placeholder="请输入内容"
  538. />
  539. </el-form-item>
  540. </el-col>
  541. <el-col :span="12">
  542. <el-form-item label="收费指示" prop="remark">
  543. <el-input
  544. style="width: 80%"
  545. v-model="form.fRemarksFees"
  546. type="textarea"
  547. placeholder="请输入内容"
  548. />
  549. </el-form-item>
  550. </el-col>
  551. </el-row>
  552. <el-row>
  553. <el-col :offset="16" :span="6">
  554. <el-button
  555. v-if="dataShowcar == '0'"
  556. @click="
  557. detailsHidden2? (detailsHidden2 = false): (detailsHidden2 = true)
  558. "
  559. >{{ detailsHidden2 ? "隐藏" : "更多" }}
  560. </el-button>
  561. <el-button
  562. @click="
  563. detailsHidden? (detailsHidden = false): (detailsHidden = true)
  564. "
  565. >{{ detailsHidden ? "隐藏" : "展开" }}
  566. </el-button>
  567. </el-col>
  568. </el-row>
  569. </el-col>
  570. <el-col :span="8">
  571. <el-form-item>
  572. <div style="display: flex; align-items: center">
  573. <el-table
  574. :data="CntrTable"
  575. style="width: 80%"
  576. :header-cell-style="{ lineHeight: '16px' }"
  577. >
  578. <el-table-column
  579. prop="fCntrid "
  580. label="箱型"
  581. header-align="center"
  582. align="center"
  583. >
  584. <template slot-scope="scope">
  585. <el-select
  586. placeholder="请选择箱型"
  587. v-model="scope.row.fCntrid"
  588. size="mini"
  589. >
  590. <el-option
  591. v-for="(item, index) in cntrList"
  592. :key="index.fId"
  593. :label="item.fName"
  594. :value="item.fId"
  595. >
  596. </el-option>
  597. </el-select>
  598. </template>
  599. </el-table-column>
  600. <el-table-column
  601. prop="fCntrcount"
  602. label="箱量"
  603. header-align="center"
  604. align="center"
  605. >
  606. <template slot-scope="scope">
  607. <el-input
  608. placeholder="请输入箱量"
  609. v-model="scope.row.fCntrcount"
  610. size="mini"
  611. >
  612. </el-input>
  613. </template>
  614. </el-table-column>
  615. <el-table-column
  616. prop="fCntrcount"
  617. label="操作"
  618. header-align="center"
  619. align="center"
  620. width="50"
  621. >
  622. <template slot-scope="scope">
  623. <el-button
  624. size="mini"
  625. type="text"
  626. @click.native.prevent="deleteRow(scope.$index, CntrTable)"
  627. icon="el-icon-delete"
  628. ></el-button>
  629. </template>
  630. </el-table-column>
  631. </el-table>
  632. <el-tag class="tag-hover" @click="addRow"
  633. ><i class="el-icon-plus"></i
  634. ></el-tag>
  635. </div>
  636. </el-form-item>
  637. </el-col>
  638. </el-row>
  639. <div v-if="detailsHidden">
  640. <el-row style="margin-top: 30px">
  641. <el-col :span="8">
  642. <el-form-item label="仓库联系人" prop="fContacts">
  643. <el-input
  644. v-model="form.fContacts"
  645. style="width: 80%"
  646. placeholder="仓库联系人"
  647. />
  648. </el-form-item>
  649. </el-col>
  650. <el-col :span="8">
  651. <el-form-item label="仓库电话" prop="fTel">
  652. <el-input
  653. v-model="form.fTel"
  654. style="width: 80%"
  655. placeholder="请输仓库入电话"
  656. />
  657. </el-form-item>
  658. </el-col>
  659. <el-col :span="8">
  660. <el-form-item label="船名航次" prop="fVslvoy">
  661. <el-input
  662. v-model="form.fVslvoy"
  663. style="width: 80%"
  664. placeholder="船名航次"
  665. />
  666. </el-form-item>
  667. </el-col>
  668. </el-row>
  669. <el-row>
  670. <el-col :span="8">
  671. <el-form-item label="境内收货人" prop="fSbu">
  672. <el-select
  673. v-model="form.fSbu"
  674. clearable
  675. filterable
  676. placeholder="请输入关键词"
  677. style="width: 80%"
  678. :disabled="browseStatus || form.warehouseStatus > 3"
  679. >
  680. <el-option
  681. v-for="(item, index) in fSbuOptions"
  682. :key="index.fId"
  683. :label="item.fName"
  684. :value="item.fId"
  685. ></el-option>
  686. </el-select>
  687. </el-form-item>
  688. </el-col>
  689. <el-col :span="8">
  690. <el-form-item label="单据编号" prop="fBillno">
  691. <el-input
  692. v-model="form.fBillno"
  693. disabled
  694. style="width: 80%"
  695. placeholder="单据编号"
  696. />
  697. </el-form-item>
  698. </el-col>
  699. <el-col :span="8">
  700. <el-form-item label="贸易方式" prop="fTrademodeid">
  701. <el-select
  702. v-model="form.fTrademodeid"
  703. placeholder="请选择贸易方式"
  704. :disabled="browseStatus || form.warehouseStatus > 3"
  705. clearable
  706. style="width: 80%"
  707. >
  708. <el-option
  709. v-for="(item, index) in fTrademodeidOptions"
  710. :key="index.dictValue"
  711. :label="item.dictLabel"
  712. :value="item.dictValue"
  713. />
  714. </el-select>
  715. </el-form-item>
  716. </el-col>
  717. </el-row>
  718. <el-row>
  719. <el-col :span="8">
  720. <el-form-item label="制单人" prop="createBy">
  721. <el-input
  722. disabled
  723. v-model="form.createBy"
  724. style="width: 80%"
  725. placeholder="制单人"
  726. />
  727. </el-form-item>
  728. </el-col>
  729. <el-col :span="8">
  730. <el-form-item label="制单部门" prop="fDeptid">
  731. <el-select
  732. v-model="form.fDeptid"
  733. filterable
  734. disabled
  735. style="width: 80%"
  736. remote
  737. >
  738. <el-option
  739. v-for="(item, index) in deptOptions"
  740. :key="index.deptId"
  741. :label="item.deptName"
  742. :value="item.deptId"
  743. ></el-option>
  744. </el-select>
  745. </el-form-item>
  746. </el-col>
  747. <el-col :span="8">
  748. <el-form-item label="制单日期" prop="createTime">
  749. <el-date-picker
  750. v-model="form.createTime"
  751. size="large"
  752. type="date"
  753. disabled
  754. style="width: 80%"
  755. value-format="timestamp"
  756. placeholder="制单日期"
  757. >
  758. </el-date-picker>
  759. </el-form-item>
  760. </el-col>
  761. </el-row>
  762. <el-row>
  763. <el-col :span="8">
  764. <el-form-item label="过磅" prop="fIfweigh">
  765. <el-select
  766. v-model="form.fIfweigh"
  767. placeholder="请选择是否过磅"
  768. clearable
  769. :disabled="browseStatus || form.warehouseStatus > 3"
  770. style="width: 80%"
  771. >
  772. <el-option
  773. v-for="(item, index) in fIfweighOptions"
  774. :key="index.dictValue"
  775. :label="item.dictLabel"
  776. :value="item.dictValue"
  777. />
  778. </el-select>
  779. </el-form-item>
  780. </el-col>
  781. <el-col :span="8">
  782. <el-form-item label="品名" prop="fProductName">
  783. <el-input
  784. v-model="form.fProductName"
  785. style="width: 80%"
  786. disabled
  787. placeholder="品名"
  788. />
  789. </el-form-item>
  790. </el-col>
  791. <el-col :span="8">
  792. <el-form-item label="品牌">
  793. <el-input
  794. v-model="form.fMarks"
  795. style="width: 80%"
  796. disabled
  797. placeholder="品牌"
  798. />
  799. </el-form-item>
  800. </el-col>
  801. </el-row>
  802. <el-row>
  803. <el-col :span="8">
  804. <el-form-item label="存货编号" prop="fBscorpno">
  805. <el-input
  806. disabled
  807. v-model="form.fBscorpno"
  808. style="width: 80%"
  809. placeholder="存货编号"
  810. />
  811. </el-form-item>
  812. </el-col>
  813. <el-col :span="8">
  814. <el-form-item label="质押" prop="fIfpledge">
  815. <el-select
  816. v-model="form.fIfpledge"
  817. placeholder="请选择是否质押"
  818. clearable
  819. style="width: 80%"
  820. >
  821. <el-option
  822. v-for="(item, index) in fIfpledgeOptions"
  823. :key="index.dictValue"
  824. :label="item.dictLabel"
  825. :value="item.dictValue"
  826. />
  827. </el-select>
  828. </el-form-item>
  829. </el-col>
  830. <el-col :span="8">
  831. <el-form-item label="质押银行" prop="fBankcorpid">
  832. <el-select
  833. v-model="form.fBankcorpid"
  834. filterable
  835. clearable
  836. style="width: 80%"
  837. placeholder="请输入关键词"
  838. >
  839. <el-option
  840. v-for="(item, index) in Pledgebank"
  841. :key="index.fId"
  842. :label="item.fName"
  843. :value="item.fId"
  844. ></el-option>
  845. </el-select>
  846. </el-form-item>
  847. </el-col>
  848. </el-row>
  849. <el-row>
  850. <el-col :span="8" v-if="showfBusinessAttribution == 0">
  851. <el-form-item label="业务归属" prop="fBusinessAttribution">
  852. <el-select
  853. v-model="form.fBusinessAttribution"
  854. placeholder="请选择业务归属"
  855. clearable
  856. style="width: 80%"
  857. >
  858. <el-option
  859. v-for="(item, index) in battributionList"
  860. :key="index.fId"
  861. :label="item.fName"
  862. :value="item.fId"
  863. />
  864. </el-select>
  865. </el-form-item>
  866. </el-col>
  867. <el-col :span="8">
  868. <el-form-item label="监管单位" prop="fSupervisionUnit">
  869. <el-select
  870. v-model="form.fSupervisionUnit"
  871. clearable
  872. filterable
  873. placeholder="请输入关键词"
  874. style="width: 80%"
  875. >
  876. <el-option
  877. v-for="(item, index) in fMblnoOptions"
  878. :key="index.fId"
  879. :label="item.fName"
  880. :value="item.fId"
  881. ></el-option>
  882. </el-select>
  883. </el-form-item>
  884. </el-col>
  885. <el-col :span="8">
  886. <el-form-item label="申报要素" prop="fDeclarationElements">
  887. <el-input
  888. v-model.number="form.fDeclarationElements"
  889. style="width: 80%"
  890. placeholder="申报要素"
  891. />
  892. </el-form-item>
  893. </el-col>
  894. </el-row>
  895. <el-row>
  896. <el-col :span="8" v-if="showfPartNumber == 0">
  897. <el-form-item label="料件号" prop="fPartNumber">
  898. <el-input
  899. v-model.number="form.fPartNumber"
  900. style="width: 80%"
  901. placeholder="料件号"
  902. v-input-limit="0"
  903. />
  904. </el-form-item>
  905. </el-col>
  906. <el-col :span="8" v-if="showfIfinspection == 0">
  907. <el-form-item label="是否法检" prop="fIfinspection">
  908. <el-select
  909. v-model="form.fIfinspection"
  910. placeholder="是否法检"
  911. clearable
  912. style="width: 80%"
  913. >
  914. <el-option
  915. v-for="(item, index) in ifinspectionList"
  916. :key="index.dictValue"
  917. :label="item.dictLabel"
  918. :value="item.dictValue"
  919. />
  920. </el-select>
  921. </el-form-item>
  922. </el-col>
  923. <el-col :span="8" v-if="showfValue == 0">
  924. <el-form-item label="货值单价" prop="fValue">
  925. <el-input
  926. v-model="form.fValue"
  927. style="width: 80%"
  928. placeholder="货值"
  929. v-input-limit="4"
  930. >
  931. <template slot="append">美元</template>
  932. </el-input>
  933. </el-form-item>
  934. </el-col>
  935. </el-row>
  936. <el-row>
  937. <el-col :span="8" v-if="showfWeighingDate == 0">
  938. <el-form-item label="过磅时间" prop="fWeighingDate"
  939. :rules="{
  940. required: weighedRequired == 0 ? true : false,
  941. message: ' ',
  942. trigger: ['blur', 'change'],
  943. }">
  944. <el-date-picker
  945. v-model="form.fWeighingDate"
  946. style="width: 80%"
  947. type="date"
  948. value-format="timestamp"
  949. placeholder="请选择过磅时间"
  950. >
  951. </el-date-picker>
  952. </el-form-item>
  953. </el-col>
  954. <el-col :span="8" v-if="showfWeighingDate == 0">
  955. <el-form-item label="过磅重量" prop="fWeighWeight" :rules="{
  956. required: weighedRequired == 0 ? true : false,
  957. message: ' ',
  958. trigger: ['blur', 'change'],
  959. }">
  960. <el-input
  961. v-model.number="form.fWeighWeight"
  962. style="width: 80%"
  963. placeholder="过磅重量"
  964. />
  965. </el-form-item>
  966. </el-col>
  967. <el-col :span="8" v-if="showfIfsampling == 0">
  968. <el-form-item label="是否取样" prop="fIfsampling">
  969. <el-select
  970. v-model="form.fIfsampling"
  971. placeholder="是否取样"
  972. clearable
  973. style="width: 80%"
  974. >
  975. <el-option
  976. v-for="(item, index) in ifsamplingList"
  977. :key="index.dictValue"
  978. :label="item.dictLabel"
  979. :value="item.dictValue"
  980. />
  981. </el-select>
  982. </el-form-item>
  983. </el-col>
  984. </el-row>
  985. <el-row>
  986. <el-col :span="8">
  987. <el-form-item label="送样时间" prop="sendSampleDate"
  988. :rules="{
  989. required: weighedRequired == 0 ? true : false,
  990. message: ' ',
  991. trigger: ['blur', 'change'],
  992. }">
  993. <el-date-picker
  994. v-model="form.sendSampleDate"
  995. style="width: 80%"
  996. type="date"
  997. value-format="timestamp"
  998. placeholder="请选择送样时间"
  999. >
  1000. </el-date-picker>
  1001. </el-form-item>
  1002. </el-col>
  1003. <el-col :span="8">
  1004. <el-form-item label="是否复磅" prop="fIfweightRecovery"
  1005. :rules="{
  1006. required: weighedRequired == 0 ? true : false,
  1007. message: ' ',
  1008. trigger: ['blur', 'change'],
  1009. }">
  1010. <el-select
  1011. v-model="form.fIfweightRecovery"
  1012. placeholder="是否复磅"
  1013. clearable
  1014. style="width: 80%"
  1015. >
  1016. <el-option
  1017. v-for="(item, index) in ifweightRecoveryList"
  1018. :key="index.dictValue"
  1019. :label="item.dictLabel"
  1020. :value="item.dictValue"
  1021. />
  1022. </el-select>
  1023. </el-form-item>
  1024. </el-col>
  1025. <el-col :span="8">
  1026. <el-form-item label="复磅时间" prop="weightRecoveryDate"
  1027. :rules="{
  1028. required: weighedRequired == 0 ? true : false,
  1029. message: ' ',
  1030. trigger: ['blur', 'change'],
  1031. }">
  1032. <el-date-picker
  1033. v-model="form.weightRecoveryDate"
  1034. style="width: 80%"
  1035. type="date"
  1036. value-format="timestamp"
  1037. placeholder="请选择复磅时间"
  1038. >
  1039. </el-date-picker>
  1040. </el-form-item>
  1041. </el-col>
  1042. </el-row>
  1043. <el-row>
  1044. <el-col :span="8">
  1045. <el-form-item prop="fChargedate" label="仓储费日期">
  1046. <el-date-picker
  1047. v-model="form.fChargedate"
  1048. type="date"
  1049. style="width: 80%"
  1050. value-format="timestamp"
  1051. :disabled="browseStatus || form.warehouseStatus > 3"
  1052. placeholder="仓储费日期"
  1053. >
  1054. </el-date-picker>
  1055. </el-form-item>
  1056. </el-col>
  1057. <el-col :span="8">
  1058. <el-form-item prop="fSalesmanId" label="业务员">
  1059. <el-select
  1060. v-model="form.fSalesmanId"
  1061. clearable
  1062. filterable
  1063. placeholder="请选择业务员"
  1064. style="width: 80%"
  1065. :disabled="browseStatus || form.warehouseStatus > 3"
  1066. >
  1067. <el-option
  1068. v-for="(item, index) in fSalesmanOption"
  1069. :key="index.userId"
  1070. :label="item.userName"
  1071. :value="item.userId"
  1072. ></el-option>
  1073. </el-select>
  1074. </el-form-item>
  1075. </el-col>
  1076. </el-row>
  1077. </div>
  1078. </el-form>
  1079. <el-dialog
  1080. title="自定义列显示"
  1081. :visible.sync="showSetting"
  1082. width="700px"
  1083. v-dialogDrag
  1084. :close-on-click-modal="false"
  1085. >
  1086. <template slot="title">
  1087. <div class="avue-crud__dialog__header">
  1088. <span class="el-dialog__title">
  1089. <span
  1090. style="
  1091. display: inline-block;
  1092. width: 3px;
  1093. height: 20px;
  1094. margin-right: 5px;
  1095. float: left;
  1096. margin-top: 2px;
  1097. "
  1098. ></span>
  1099. </span>
  1100. </div>
  1101. </template>
  1102. <div>配置排序列数据(拖动调整顺序)</div>
  1103. <div style="margin-left: 17px">
  1104. <el-checkbox
  1105. v-model="allCheck"
  1106. label="全选"
  1107. @change="allChecked"
  1108. ></el-checkbox>
  1109. </div>
  1110. <div style="padding: 4px; display: flex; justify-content: center">
  1111. <draggable
  1112. v-model="setRowList"
  1113. group="site"
  1114. animation="300"
  1115. @start="onStart"
  1116. @end="onEnd"
  1117. handle=".indraggable"
  1118. >
  1119. <transition-group>
  1120. <div
  1121. v-for="item in setRowList"
  1122. :key="item.surface"
  1123. class="listStyle"
  1124. >
  1125. <div style="width: 500px" class="indraggable">
  1126. <div class="progress" :style="{ width: item.width + 'px' }">
  1127. <el-checkbox
  1128. :label="item.name"
  1129. v-model="item.checked"
  1130. :true-label="0"
  1131. :false-label="1"
  1132. >{{ item.name }}
  1133. </el-checkbox>
  1134. </div>
  1135. </div>
  1136. <el-input-number
  1137. v-model.number="item.width"
  1138. controls-position="right"
  1139. :min="1"
  1140. :max="500"
  1141. size="mini"
  1142. ></el-input-number>
  1143. </div>
  1144. </transition-group>
  1145. </draggable>
  1146. </div>
  1147. <span slot="footer" class="dialog-footer">
  1148. <el-button @click="showSetting = false">取 消</el-button>
  1149. <el-button @click="delRow" type="danger">重 置</el-button>
  1150. <el-button type="primary" @click="save()">确 定</el-button>
  1151. </span>
  1152. </el-dialog>
  1153. <el-collapse v-model="collapselist">
  1154. <el-collapse-item name="1">
  1155. <template slot="title">
  1156. <i class="el-icon-s-home" style="font-size: 16px"></i>
  1157. <span style="font-size: 16px; font-weight: bolder; margin-left: 5px"
  1158. >入库明细</span
  1159. >
  1160. </template>
  1161. <div>
  1162. <el-row
  1163. type="flex"
  1164. justify="space-between"
  1165. style="margin-bottom: 10px"
  1166. >
  1167. <el-col>
  1168. <el-button
  1169. type="primary"
  1170. :disabled="browseStatus"
  1171. size="small"
  1172. @click="addRelevant"
  1173. >录 入
  1174. </el-button>
  1175. <el-button
  1176. type="primary"
  1177. size="small"
  1178. @click="saveForm"
  1179. >保 存
  1180. </el-button
  1181. >
  1182. <el-button
  1183. :disabled="browseStatus || Printinglist.length != 1"
  1184. type="primary"
  1185. size="small"
  1186. @click="addRelevant('copy')"
  1187. >复制录入
  1188. </el-button
  1189. >
  1190. <el-button type="primary" size="small" @click="downloadExcel">
  1191. 下载模板
  1192. </el-button>
  1193. <el-button size="small" type="primary" @click="openUploadExcel"
  1194. >导入Execl
  1195. </el-button
  1196. >
  1197. </el-col>
  1198. <el-col style="display: flex; justify-content: flex-end">
  1199. <el-button
  1200. size="small"
  1201. type="info"
  1202. :disabled="browseStatus"
  1203. prop="打印"
  1204. v-if="entryPrinting == 0"
  1205. @click="printZyd"
  1206. >作业单
  1207. </el-button>
  1208. <el-button
  1209. size="small"
  1210. :disabled="browseStatus"
  1211. v-if="entryPrinting == 0"
  1212. @click="discharge"
  1213. >叫车进场
  1214. </el-button>
  1215. <!-- :disabled="dataListSelection.length <= 0 || browseStatus || entryPrinting == 1"-->
  1216. <el-button
  1217. size="small"
  1218. :disabled="dataListSelection.length <= 0 || deliveryConfirmation"
  1219. @click="creditClick"
  1220. >入库确认
  1221. </el-button>
  1222. <el-button
  1223. size="small"
  1224. :disabled="dataWithdrawList.length <= 0 || cancelDelivery || form.fBillstatus > 3"
  1225. @click.prevent="withdrawClick"
  1226. >撤回入库
  1227. </el-button>
  1228. <el-dropdown @command="handleCommand" style="margin-left: 10px">
  1229. <el-button size="small" type="success">
  1230. 打印单据<i class="el-icon-arrow-down el-icon--right"></i>
  1231. </el-button>
  1232. <el-dropdown-menu slot="dropdown">
  1233. <el-dropdown-item command="a">收货单</el-dropdown-item>
  1234. <el-dropdown-item command="g">标准入库单</el-dropdown-item>
  1235. <el-dropdown-item command="y">标准入库单(件数)</el-dropdown-item>
  1236. <el-dropdown-item command="z">标准入库单(详情)</el-dropdown-item>
  1237. <!-- <el-dropdown-item command="o">标准入库单(其他)</el-dropdown-item>-->
  1238. <el-dropdown-item command="b">进仓单</el-dropdown-item>
  1239. <!-- <el-dropdown-item command="c">理货单</el-dropdown-item>-->
  1240. <!-- <el-dropdown-item command="d">货物确认</el-dropdown-item>-->
  1241. <!-- <el-dropdown-item command="e">劳务确认</el-dropdown-item>-->
  1242. <!-- <el-dropdown-item command="f">吊牌信息</el-dropdown-item>-->
  1243. <el-dropdown-item command="L">叉车对账入库单</el-dropdown-item>
  1244. <el-dropdown-item command="M">分箱垛卡入库单</el-dropdown-item>
  1245. <el-dropdown-item command="i">客户入库单</el-dropdown-item>
  1246. <el-dropdown-item command="j">卸货存档入库单</el-dropdown-item>
  1247. <el-dropdown-item command="k">整票垛卡入库单</el-dropdown-item>
  1248. <el-dropdown-item command="h">入库垛卡</el-dropdown-item>
  1249. </el-dropdown-menu>
  1250. </el-dropdown>
  1251. <el-dropdown @command="detailedApproval" style="margin-left: 10px" v-if="showApproval == 0">
  1252. <el-button size="small" type="primary">
  1253. 明细审批<i class="el-icon-arrow-down el-icon--right"></i>
  1254. </el-button>
  1255. <el-dropdown-menu slot="dropdown">
  1256. <el-dropdown-item command="QH">明细请核</el-dropdown-item>
  1257. <el-dropdown-item command="SP">明细审批</el-dropdown-item>
  1258. <el-dropdown-item command="CK">查看明细审批流</el-dropdown-item>
  1259. <el-dropdown-item command="CX">撤销明细审批</el-dropdown-item>
  1260. </el-dropdown-menu>
  1261. </el-dropdown>
  1262. <div style="margin: 0 10px">
  1263. <el-button
  1264. icon="el-icon-setting"
  1265. size="mini"
  1266. circle
  1267. @click="showSetting = !showSetting"
  1268. ></el-button>
  1269. </div>
  1270. </el-col>
  1271. </el-row>
  1272. <el-table
  1273. :data="detailList"
  1274. tooltip-effect="dark"
  1275. stripe
  1276. ref="multipleTables"
  1277. :summary-method="getSummaries"
  1278. @selection-change="Selectinventory"
  1279. show-summary
  1280. >
  1281. <el-table-column type="selection" width="50" align="center" fixed/>
  1282. <el-table-column
  1283. label="序号"
  1284. type="index"
  1285. width="50"
  1286. fixed
  1287. align="center"
  1288. />
  1289. <el-table-column
  1290. v-for="(item, index) in getRowList"
  1291. :key="index"
  1292. :label="item.name"
  1293. :width="item.width"
  1294. :prop="item.label"
  1295. align="center"
  1296. :fixed="item.fixed"
  1297. :show-overflow-tooltip="true"
  1298. sortable
  1299. >
  1300. <template slot-scope="scope">
  1301. <span v-if="item.label == 'fBillstatus'">
  1302. {{ scope.row.fBillstatus | fBillstatusFormat }}
  1303. </span>
  1304. <span v-else-if="item.label == 'fBsdate'">
  1305. {{ scope.row.fBsdate | fBsdateFormat }}
  1306. </span>
  1307. <span v-else-if="item.label == 'fGoodsid'">
  1308. {{ scope.row.fGoodsid | goodsFormat(goodsOptions) }}
  1309. </span>
  1310. <span v-else-if="item.label == 'fBusinessType'">
  1311. {{
  1312. scope.row.fBusinessType
  1313. | fStorageTypeFormat(fStorageTypeOptions)
  1314. }}
  1315. </span>
  1316. <span v-else-if="item.label == 'fCntrtype'">
  1317. {{ scope.row.fCntrtype | fCntrtypeFormat(cntrList) }}
  1318. </span>
  1319. <span v-else-if="item.label == 'fLntype'">
  1320. {{ scope.row.fLntype | fLntypeFormat(unloadModes) }}
  1321. </span>
  1322. <span v-else-if="item.label == 'fFleet'">
  1323. {{ scope.row.fFleet | fFleetFormat(fleetOptions) }}
  1324. </span>
  1325. <span v-else-if="item.label == 'fLocalcntrno'">
  1326. <el-input
  1327. v-model="scope.row.fLocalcntrno"
  1328. placeholder="库内箱号"
  1329. v-Alphabet
  1330. />
  1331. </span>
  1332. <span v-else>{{ scope.row[item.label] }}</span>
  1333. </template>
  1334. </el-table-column>
  1335. <el-table-column
  1336. header-align="center"
  1337. align="center"
  1338. label="操作"
  1339. width="160px"
  1340. fixed="right"
  1341. >
  1342. <template slot-scope="scope">
  1343. <el-button
  1344. :disabled="browseStatus || scope.row.fBillstatus > 30"
  1345. type="text"
  1346. @click.native.prevent="fixRow(scope.row, scope.$index)"
  1347. size="small"
  1348. >修改
  1349. </el-button
  1350. >
  1351. <el-button
  1352. :disabled="
  1353. browseStatus ||
  1354. scope.row.fBillstatus === 20 ||
  1355. scope.row.fBillstatus === 30 ||
  1356. scope.row.fBillstatus === 40
  1357. "
  1358. type="text"
  1359. @click.native.prevent="wDeleteRow(scope.$index, detailList)"
  1360. size="small"
  1361. >移除
  1362. </el-button
  1363. >
  1364. </template>
  1365. </el-table-column>
  1366. </el-table>
  1367. </div>
  1368. </el-collapse-item>
  1369. <el-collapse-item>
  1370. <template slot="title">
  1371. <i class="el-icon-s-order" style="font-size: 16px"></i>
  1372. <span style="font-size: 16px; font-weight: bolder; margin-left: 5px"
  1373. >附件明细</span
  1374. >
  1375. </template>
  1376. <up-load
  1377. :relevantAttachments="relevantAttachments"
  1378. :createBy="form.createBy"
  1379. :browseStatus="browseStatus"
  1380. ></up-load>
  1381. </el-collapse-item>
  1382. <el-collapse-item>
  1383. <template slot="title">
  1384. <i class="el-icon-circle-plus" style="font-size: 16px"></i>
  1385. <span style="font-size: 16px; font-weight: bolder; margin-left: 5px"
  1386. >收款信息</span
  1387. >
  1388. </template>
  1389. <income-money
  1390. :browseStatus="browseStatus"
  1391. @chiSave="saveForm"
  1392. @chiAdd="addCollection"
  1393. @feeChangeD="feeChange"
  1394. :warehouseDrList="warehouseDrList"
  1395. :businessTypeOption="businessTypeOption"
  1396. :fDNameOptions="fDNameOptions"
  1397. :fMblnoOptions="fMblnoOptions"
  1398. :fFeetUnitOptions="fFeetUnitOptions"
  1399. :fStltypeOptions="fStltypeOptions"
  1400. :fGrossweight="fGrossweight"
  1401. :fQty="fQty"
  1402. :fNetweight="fNetweight"
  1403. :fCntqty="fCntqty"
  1404. :form="form"
  1405. :company="company"
  1406. ></income-money>
  1407. </el-collapse-item>
  1408. <el-collapse-item>
  1409. <template slot="title">
  1410. <i class="el-icon-remove" style="font-size: 16px"></i>
  1411. <span style="font-size: 16px; font-weight: bolder; margin-left: 5px"
  1412. >付款信息</span
  1413. >
  1414. </template>
  1415. <pay-money
  1416. :browseStatus="browseStatus"
  1417. @chiSave="saveForm"
  1418. @chiAdd="addpayment"
  1419. @checkRow="checkRow"
  1420. @revokeRow="revokeRow"
  1421. @feeChangeC="feeChange"
  1422. :warehouseCrList="warehouseCrList"
  1423. :businessTypeOption="businessTypeOption"
  1424. :fCNameOptions="fCNameOptions"
  1425. :fMblnoOptions="fMblnoOptions"
  1426. :fFeetUnitOptions="fFeetUnitOptions"
  1427. :fStltypeOptions="fStltypeOptions"
  1428. :fGrossweight="fGrossweight"
  1429. :fQty="fQty"
  1430. :fNetweight="fNetweight"
  1431. :fCntqty="fCntqty"
  1432. :form="form"
  1433. ></pay-money>
  1434. </el-collapse-item>
  1435. </el-collapse>
  1436. <el-dialog
  1437. v-dialogDrag
  1438. :title="title"
  1439. :visible.sync="weightList"
  1440. width="95%"
  1441. :close-on-click-modal="false"
  1442. >
  1443. <div>
  1444. <el-form
  1445. ref="importList"
  1446. :model="importList"
  1447. :rules="imporRules"
  1448. label-width="120px"
  1449. >
  1450. <el-row>
  1451. <el-col :span="6">
  1452. <el-form-item label="入库日期" prop="fBsdate">
  1453. <el-date-picker
  1454. v-model="importList.fBsdate"
  1455. type="date"
  1456. style="width: 100%"
  1457. value-format="timestamp"
  1458. placeholder="入库日期"
  1459. format="yyyy-MM-dd"
  1460. >
  1461. </el-date-picker>
  1462. </el-form-item>
  1463. </el-col>
  1464. <el-col :span="6">
  1465. <el-form-item label="品名" prop="fGoodsid">
  1466. <el-select
  1467. filterable
  1468. v-model="importList.fGoodsid"
  1469. style="width: 100%"
  1470. placeholder="请选择品名"
  1471. @change="changeGoods"
  1472. >
  1473. <el-option
  1474. v-for="(item, index) in goodsOptions"
  1475. :key="index.fId"
  1476. :label="item.fName"
  1477. :value="item.fId"
  1478. ></el-option>
  1479. </el-select>
  1480. </el-form-item>
  1481. </el-col>
  1482. <el-col :span="6">
  1483. <el-form-item label="货物属性" prop="fBusinessType">
  1484. <el-select
  1485. filterable
  1486. v-model="importList.fBusinessType"
  1487. style="width: 100%"
  1488. placeholder="请选择商品属性"
  1489. >
  1490. <el-option
  1491. v-for="(item, index) in fStorageTypeOptions"
  1492. :key="index.dictValue"
  1493. :label="item.dictLabel"
  1494. :value="item.dictValue"
  1495. />
  1496. </el-select>
  1497. </el-form-item>
  1498. </el-col>
  1499. <el-col :span="6">
  1500. <el-form-item label="属性详情" prop="fMarks">
  1501. <el-input
  1502. v-model="importList.fMarks"
  1503. style="width: 100%"
  1504. placeholder="请填写属性描述"
  1505. />
  1506. </el-form-item>
  1507. </el-col>
  1508. </el-row>
  1509. <el-row v-if="newPlan == 0">
  1510. <el-col :span="6">
  1511. <el-form-item label="计划件数" prop="fPlanqty">
  1512. <el-input
  1513. v-input-limit="0"
  1514. v-model.number="importList.fPlanqty"
  1515. style="width: 100%"
  1516. placeholder="件数"
  1517. />
  1518. </el-form-item>
  1519. </el-col>
  1520. <el-col :span="6">
  1521. <el-form-item label="计划毛重(kg)" prop="fPlangrossweight">
  1522. <el-input
  1523. v-model="importList.fPlangrossweight"
  1524. v-input-limit="2"
  1525. style="width: 100%"
  1526. placeholder="毛重">
  1527. <template slot="append">{{ (importList.fPlangrossweight / 1000).toFixed(4) }}吨</template>
  1528. </el-input>
  1529. </el-form-item>
  1530. </el-col>
  1531. <el-col :span="6">
  1532. <el-form-item label="计划净重(kg)" prop="fPlannetweight">
  1533. <el-input
  1534. v-model="importList.fPlannetweight"
  1535. v-input-limit="2"
  1536. style="width: 100%"
  1537. placeholder="净重"
  1538. >
  1539. <template slot="append">{{ (importList.fPlannetweight / 1000).toFixed(4) }}吨</template>
  1540. </el-input>
  1541. </el-form-item>
  1542. </el-col>
  1543. </el-row>
  1544. <el-row>
  1545. <el-col :span="6">
  1546. <el-form-item label="件数" prop="fQty">
  1547. <el-input
  1548. v-input-limit="0"
  1549. v-model.number="importList.fQty"
  1550. style="width: 100%"
  1551. placeholder="件数"
  1552. @input="imporComputer"
  1553. />
  1554. </el-form-item>
  1555. </el-col>
  1556. <el-col :span="6">
  1557. <el-form-item label="毛重(kg)" prop="fGrossweight">
  1558. <el-input
  1559. v-model="importList.fGrossweight"
  1560. v-input-limit="2"
  1561. style="width: 100%"
  1562. placeholder="毛重"
  1563. @change="tfGrossweight2"
  1564. >
  1565. <template slot="append">{{ tfGrossweightnum2 }}吨</template>
  1566. </el-input>
  1567. </el-form-item>
  1568. </el-col>
  1569. <el-col :span="6">
  1570. <el-form-item label="净重(kg)" prop="fNetweight">
  1571. <el-input
  1572. v-model="importList.fNetweight"
  1573. v-input-limit="2"
  1574. style="width: 100%"
  1575. placeholder="净重"
  1576. @change="tfNetweight2"
  1577. >
  1578. <template slot="append">{{ tfNetweightnum2 }}吨</template>
  1579. </el-input>
  1580. </el-form-item>
  1581. </el-col>
  1582. <el-col :span="6">
  1583. <el-form-item label="库区" prop="fWarehouselocid">
  1584. <treeselect
  1585. v-model="importList.fWarehouselocid"
  1586. @select="getAlltree"
  1587. :options="fWarehouseidOptions"
  1588. :show-count="true"
  1589. :disable-branch-nodes="true"
  1590. placeholder="请选择库区"
  1591. />
  1592. </el-form-item>
  1593. </el-col>
  1594. </el-row>
  1595. <el-row>
  1596. <el-col :span="6">
  1597. <el-form-item label="溢短重" prop="fActualWeight">
  1598. <el-input
  1599. v-model="importList.fActualWeight"
  1600. style="width: 100%"
  1601. placeholder="溢短重"
  1602. v-input-limit="2"
  1603. >
  1604. <template slot="append">{{ (importList.fActualWeight / 1000).toFixed(4) }}吨</template>
  1605. </el-input>
  1606. </el-form-item>
  1607. </el-col>
  1608. <el-col :span="6">
  1609. <el-form-item label="箱型" prop="fCntrtype">
  1610. <el-select
  1611. placeholder="请选择箱型"
  1612. style="width: 100%"
  1613. v-model="importList.fCntrtype"
  1614. >
  1615. <el-option
  1616. v-for="(item, index) in cntrList"
  1617. :key="index.fId"
  1618. :label="item.fName"
  1619. :value="item.fId"
  1620. >
  1621. </el-option>
  1622. </el-select>
  1623. </el-form-item>
  1624. </el-col>
  1625. <el-col :span="6">
  1626. <el-form-item label="箱量" prop="fCntqty">
  1627. <el-input
  1628. v-model="importList.fCntqty"
  1629. style="width: 100%"
  1630. placeholder="箱量"
  1631. />
  1632. </el-form-item>
  1633. </el-col>
  1634. <el-col :span="6">
  1635. <el-form-item
  1636. label="箱号"
  1637. prop="fCntrno"
  1638. :rules="{
  1639. required: ifCntrnoStatus == 1 ? true : false,
  1640. message: '',
  1641. trigger: ['blur', 'change'],
  1642. }"
  1643. >
  1644. <el-input
  1645. v-model="importList.fCntrno"
  1646. style="width: 100%"
  1647. placeholder="箱号"
  1648. v-Alphabet
  1649. />
  1650. </el-form-item>
  1651. </el-col>
  1652. </el-row>
  1653. <el-row>
  1654. <el-col :span="6">
  1655. <el-form-item label="车队" prop="fFleet">
  1656. <el-select
  1657. style="width: 100%"
  1658. v-model="importList.fFleet"
  1659. clearable
  1660. filterable
  1661. placeholder="请输入关键词"
  1662. >
  1663. <el-option
  1664. v-for="(item, index) in fleetOptions"
  1665. :key="index.fId"
  1666. :label="item.fName"
  1667. :value="item.fId"
  1668. ></el-option>
  1669. </el-select>
  1670. </el-form-item>
  1671. </el-col>
  1672. <el-col :span="6">
  1673. <el-form-item label="车号" prop="fTruckno">
  1674. <el-input
  1675. v-model="importList.fTruckno"
  1676. style="width: 100%"
  1677. placeholder="车号"
  1678. />
  1679. </el-form-item>
  1680. </el-col>
  1681. <el-col :span="6">
  1682. <el-form-item label="司机名" prop="fDriverName">
  1683. <el-input
  1684. v-model="importList.fDriverName"
  1685. style="width: 100%"
  1686. placeholder="司机名"
  1687. />
  1688. </el-form-item>
  1689. </el-col>
  1690. <el-col :span="6">
  1691. <el-form-item label="司机电话" prop="fDriverTel">
  1692. <el-input
  1693. v-model="importList.fDriverTel"
  1694. style="width: 100%"
  1695. placeholder="司机电话"
  1696. />
  1697. </el-form-item>
  1698. </el-col>
  1699. </el-row>
  1700. <el-row>
  1701. <el-col :span="6">
  1702. <el-form-item label="司机身份证" prop="fDriverIdCar">
  1703. <el-input
  1704. v-model="importList.fDriverIdCar"
  1705. style="width: 100%"
  1706. placeholder="司机身份证"
  1707. />
  1708. </el-form-item>
  1709. </el-col>
  1710. <el-col :span="6">
  1711. <el-form-item label="流水号" prop="fSerialNumber">
  1712. <el-input
  1713. v-model="importList.fSerialNumber"
  1714. style="width: 100%"
  1715. placeholder="流水号"
  1716. disabled
  1717. />
  1718. </el-form-item>
  1719. </el-col>
  1720. <el-col :span="6">
  1721. <el-form-item label="货值" prop="fGoodsval">
  1722. <el-input
  1723. v-model="importList.fGoodsval"
  1724. style="width: 100%"
  1725. placeholder="货值"
  1726. >
  1727. <template slot="append">万</template>
  1728. </el-input>
  1729. </el-form-item>
  1730. </el-col>
  1731. <el-col :span="6">
  1732. <el-form-item label="装卸方式" prop="fLntype">
  1733. <el-select
  1734. v-model="importList.fLntype"
  1735. placeholder="装卸方式"
  1736. style="width: 100%"
  1737. >
  1738. <el-option
  1739. v-for="(item, index) in unloadModes"
  1740. :key="index.dictValue"
  1741. :label="item.dictLabel"
  1742. :value="item.dictValue"
  1743. />
  1744. </el-select>
  1745. </el-form-item>
  1746. </el-col>
  1747. </el-row>
  1748. <el-row>
  1749. <el-col :span="6">
  1750. <el-form-item label="叉车工" prop="fForkliftman">
  1751. <el-input
  1752. v-model="importList.fForkliftman"
  1753. style="width: 100%"
  1754. placeholder="叉车工"
  1755. />
  1756. </el-form-item>
  1757. </el-col>
  1758. <el-col :span="6">
  1759. <el-form-item label="装卸工" prop="fStevedore">
  1760. <el-input
  1761. v-model="importList.fStevedore"
  1762. style="width: 100%"
  1763. placeholder="装卸工"
  1764. />
  1765. </el-form-item>
  1766. </el-col>
  1767. <el-col :span="6">
  1768. <el-form-item label="库内箱号" prop="fLocalcntrno">
  1769. <el-input
  1770. v-model="importList.fLocalcntrno"
  1771. style="width: 100%"
  1772. placeholder="库内箱号"
  1773. v-Alphabet
  1774. />
  1775. </el-form-item>
  1776. </el-col>
  1777. <el-col :span="6">
  1778. <el-form-item label="封号" prop="fSealno">
  1779. <el-input
  1780. v-model="importList.fSealno"
  1781. style="width: 100%"
  1782. placeholder="封号"
  1783. />
  1784. </el-form-item>
  1785. </el-col>
  1786. </el-row>
  1787. <el-row>
  1788. <el-col :span="6">
  1789. <el-form-item label="包装规格" prop="fPackagespecs">
  1790. <el-input
  1791. v-model="importList.fPackagespecs"
  1792. style="width: 100%"
  1793. placeholder="包装规格"
  1794. />
  1795. </el-form-item>
  1796. </el-col>
  1797. </el-row>
  1798. <el-row>
  1799. <el-col>
  1800. <el-form-item label="备注" prop="remark">
  1801. <el-input
  1802. v-model="importList.remark"
  1803. style="width: 100%"
  1804. type="textarea"
  1805. placeholder="备注"
  1806. />
  1807. </el-form-item>
  1808. </el-col>
  1809. </el-row>
  1810. </el-form>
  1811. </div>
  1812. <span slot="footer" class="dialog-footer">
  1813. <el-button v-if="fixdetaiNum == null" type="info" @click="imporTable"
  1814. >保 存</el-button
  1815. >
  1816. <el-button v-else type="info" @click="fiximporTable"
  1817. >确认修改</el-button
  1818. >
  1819. <el-button @click="weightList = false">取 消</el-button>
  1820. </span>
  1821. </el-dialog>
  1822. <el-dialog
  1823. :visible.sync="print_zyd"
  1824. width="70%"
  1825. :close-on-click-modal="false"
  1826. :modal="false"
  1827. >
  1828. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  1829. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  1830. <div id="print_area1" class="print-div">
  1831. <div
  1832. class="print-title"
  1833. style="
  1834. display: flex;
  1835. justify-content: center;
  1836. font-size: 24px;
  1837. margin-bottom: 5px;
  1838. position: relative;
  1839. "
  1840. >
  1841. {{ company }}作业单
  1842. <div
  1843. style="
  1844. display: flex;
  1845. justify-content: space-between;
  1846. position: absolute;
  1847. right: 0;
  1848. font-size: 13px;
  1849. "
  1850. >
  1851. <div>
  1852. </div>
  1853. <div>
  1854. <div>流水号:{{ form.fBillno }}</div>
  1855. <div>办单日期:{{ nowTime }}</div>
  1856. </div>
  1857. </div>
  1858. </div>
  1859. <div class="print_table" style="display: flex">
  1860. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  1861. <tr>
  1862. <td>作业类型</td>
  1863. <td colspan="3">
  1864. {{ form.fBusinessType | fBusinessTypeFormat }}
  1865. </td>
  1866. <td>入库时间</td>
  1867. <td colspan="3">{{ form.fBsdate | fBsdateFormat }}</td>
  1868. </tr>
  1869. <tr>
  1870. <td>序号</td>
  1871. <td>车号</td>
  1872. <td>物品名称</td>
  1873. <td>提单号</td>
  1874. <td>品牌/规格/产地</td>
  1875. <td v-if="radio == 2">净重(KG)</td>
  1876. <td v-else>净重(T)</td>
  1877. <td>件数/规格</td>
  1878. <td>箱号</td>
  1879. </tr>
  1880. <tr v-for="(item, index) in Printinglist" :key="index">
  1881. <td>{{ index + 1 }}</td>
  1882. <td>{{ item.fTruckno }}</td>
  1883. <td>{{ item.fGoodsids }}</td>
  1884. <td>{{ item.fMblno }}</td>
  1885. <td>
  1886. {{ item.fBusinessType | fStorageFormat }}/{{ item.fMarks }}
  1887. </td>
  1888. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  1889. <td v-else>{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  1890. <td>{{ item.fQty }}/{{ item.fPackagespecs }}</td>
  1891. <td>{{ item.fCntrno }}</td>
  1892. </tr>
  1893. <tr>
  1894. <td>收费</td>
  1895. <td colspan="3">
  1896. <span v-for="(item, index) in Collectionoptionss" :key="index">
  1897. {{ item.fFeeid | fFeetFormat(fDNameOptions) }}:{{ item.fAmount }} 元<b v-if="index + 1 != Collectionoptionss.length">,</b>
  1898. </span>
  1899. </td>
  1900. <td>备注</td>
  1901. <td colspan="3">{{ form.remark }}</td>
  1902. </tr>
  1903. <!-- <tr v-for="(item, index) in Collectionoptionss" :key="index">-->
  1904. <!-- <td>收费</td>-->
  1905. <!-- <td colspan="3">{{ item.fFeeid | fFeetFormat(fDNameOptions) }}</td>-->
  1906. <!-- <td colspan="3">{{ item.fAmount }} 元</td>-->
  1907. <!-- </tr>-->
  1908. <tr>
  1909. <td>司机签字</td>
  1910. <td></td>
  1911. <td>电话</td>
  1912. <td>{{ fDriverTel }}</td>
  1913. <td colspan="4" rowspan="2">
  1914. 确认货物数量无误,包装于货物完好!<br/>出库盖好篷布,如有违背责任自负<br/>装卸工是否收小费
  1915. </td>
  1916. </tr>
  1917. <tr>
  1918. <td>制表</td>
  1919. <td>{{ form.createBy }}</td>
  1920. <td>机械/人工</td>
  1921. <td></td>
  1922. </tr>
  1923. <tr>
  1924. <td>地址</td>
  1925. <td colspan="3">{{ stockaddr }}</td>
  1926. <td>电话</td>
  1927. <td colspan="3">{{ form.fTel }}</td>
  1928. </tr>
  1929. </table>
  1930. </div>
  1931. </div>
  1932. <span lot="footer" class="dialog-footer">
  1933. <el-button
  1934. type="primary"
  1935. size="mini"
  1936. :disabled="browseStatus"
  1937. @click="
  1938. print_zyd = false;
  1939. addprint('zyd');
  1940. "
  1941. >打印
  1942. </el-button>
  1943. <el-button @click="print_zyd = false" size="mini">取消 </el-button>
  1944. </span>
  1945. </el-dialog>
  1946. <el-dialog
  1947. :visible.sync="print_shd"
  1948. width="70%"
  1949. :close-on-click-modal="false"
  1950. :modal="false"
  1951. >
  1952. <div id="print_area1" class="print-div">
  1953. <div
  1954. class="print-title"
  1955. style="
  1956. display: flex;
  1957. justify-content: center;
  1958. font-size: 24px;
  1959. margin-bottom: 5px;
  1960. "
  1961. >
  1962. {{ company }}收货单
  1963. </div>
  1964. <div class="print_table" style="display: flex">
  1965. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  1966. <tr>
  1967. <td>车号</td>
  1968. <td>{{ fTruckno }}</td>
  1969. <td>日期</td>
  1970. <td>{{ fBsdate }}</td>
  1971. </tr>
  1972. <tr v-for="(item, index) in Printinglist" :key="index">
  1973. <td>货物品名</td>
  1974. <td>{{ item.fGoodsids }}</td>
  1975. <td>件数</td>
  1976. <td>{{ item.fQty }}件</td>
  1977. </tr>
  1978. <tr>
  1979. <td>备注</td>
  1980. <td colspan="3"></td>
  1981. </tr>
  1982. <tr>
  1983. <td>司机签字</td>
  1984. <td></td>
  1985. <td>司机电话</td>
  1986. <td>{{ fDriverTel }}</td>
  1987. </tr>
  1988. <tr>
  1989. <td>制单人</td>
  1990. <td>{{ form.createBy }}</td>
  1991. <td>收货人</td>
  1992. <td>{{ form.fContacts }}</td>
  1993. </tr>
  1994. <tr>
  1995. <td>地址</td>
  1996. <td>{{ stockaddr }}</td>
  1997. <td>电话</td>
  1998. <td>{{ form.fTel }}</td>
  1999. </tr>
  2000. </table>
  2001. </div>
  2002. </div>
  2003. <span slot="footer" class="dialog-footer">
  2004. <el-button
  2005. type="primary"
  2006. :disabled="browseStatus"
  2007. @click="
  2008. addprint();
  2009. print_shd = false;
  2010. "
  2011. >打印
  2012. </el-button>
  2013. <el-button @click="print_shd = false">取消 </el-button>
  2014. </span>
  2015. </el-dialog>
  2016. <el-dialog
  2017. :visible.sync="print_rkd"
  2018. width="70%"
  2019. :close-on-click-modal="false"
  2020. :modal="false"
  2021. >
  2022. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  2023. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  2024. <div id="print_area18" class="print-div">
  2025. <div
  2026. class="print-title"
  2027. style="
  2028. display: flex;
  2029. justify-content: center;
  2030. font-size: 24px;
  2031. margin-bottom: 5px;
  2032. "
  2033. >
  2034. {{ company }}进仓单
  2035. </div>
  2036. <div
  2037. style="
  2038. display: flex;
  2039. justify-content: space-between;
  2040. margin-bottom: 5px;
  2041. "
  2042. >
  2043. <div>
  2044. </div>
  2045. <div>
  2046. <div>流水号:{{ form.fBillno }}</div>
  2047. </div>
  2048. </div>
  2049. <div class="print_table" style="display: flex">
  2050. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  2051. <tr>
  2052. <td>客户</td>
  2053. <td>{{ form.fCorpidName }}</td>
  2054. <td>仓库</td>
  2055. <td>{{ form.fWarehouseid | warehouseFormat(warehouseOptions) }}</td>
  2056. <td>地址</td>
  2057. <td colspan="2">{{ stockaddr }}</td>
  2058. </tr>
  2059. <tr>
  2060. <td>保管方</td>
  2061. <td width="200">{{ company }}</td>
  2062. <td>联系人</td>
  2063. <td>{{ form.fContacts }}</td>
  2064. <td>电话</td>
  2065. <td colspan="2">{{ form.fTel }}</td>
  2066. </tr>
  2067. <tr>
  2068. <td>提单号</td>
  2069. <td>品名</td>
  2070. <td>箱型</td>
  2071. <td>品牌</td>
  2072. <td>件数</td>
  2073. <td>重量</td>
  2074. <td>包装规格</td>
  2075. </tr>
  2076. <tr>
  2077. <td>{{ form.fMblno }}</td>
  2078. <td>{{ Printinglist.length > 0? Printinglist[0].fGoodsids: '' }}</td>
  2079. <td v-if="Printinglist.length > 0">{{Printinglist[0].fCntrtype | fCntrtypeFormat(cntrList)}}</td>
  2080. <td>{{ Printinglist.length > 0? Printinglist[0].fMarks: '' }}</td>
  2081. <td></td>
  2082. <td v-if="radio == 1">吨</td>
  2083. <td v-if="radio == 2">千克</td>
  2084. <td>{{ Printinglist.length > 0? Printinglist[0].fPackagespecs: '' }}</td>
  2085. </tr>
  2086. <tr>
  2087. <td></td>
  2088. <td></td>
  2089. <td></td>
  2090. <td></td>
  2091. <td></td>
  2092. <td></td>
  2093. <td></td>
  2094. </tr>
  2095. <tr>
  2096. <td>车号/箱号</td>
  2097. <td>入货日期</td>
  2098. <td>箱量</td>
  2099. <td>重量</td>
  2100. <td>件数</td>
  2101. <td>入库重量</td>
  2102. <td>入库件数</td>
  2103. </tr>
  2104. <tr v-for="(item, index) in Printinglist" :key="index">
  2105. <td>{{ item.fTruckno }}/{{ item.fCntrno }}</td>
  2106. <td>{{ item.fBsdate }}</td>
  2107. <td>{{ item.fCntqty }}</td>
  2108. <td v-if="item.fGrossweight && radio == 1">
  2109. {{ (item.fGrossweight / 1000).toFixed(4) }}
  2110. </td>
  2111. <td v-else-if="item.fGrossweight && radio == 2">
  2112. {{ item.fGrossweight }}
  2113. </td>
  2114. <td v-else></td>
  2115. <td>{{ item.fPlanqty }}</td>
  2116. <td v-if="item.fNetweight && radio == 1">
  2117. {{ (item.fNetweight / 1000).toFixed(4) }}
  2118. </td>
  2119. <td v-else-if="item.fNetweight && radio == 2">
  2120. {{ item.fNetweight }}
  2121. </td>
  2122. <td v-else></td>
  2123. <td>{{ item.fQty }}</td>
  2124. </tr>
  2125. <tr>
  2126. <td colspan="2">合计</td>
  2127. <td>{{ allfCntqty }}</td>
  2128. <td v-if="radio == 1">{{ (allfGrossweight / 1000).toFixed(4) }}</td>
  2129. <td v-if="radio == 2">{{ allfGrossweight }}</td>
  2130. <td>{{ allfPlanqty }}</td>
  2131. <td v-if="radio == 1">{{ (allfNetweight / 1000).toFixed(4) }}</td>
  2132. <td v-if="radio == 2">{{ allfNetweight }}</td>
  2133. <td>{{ allfQty }}</td>
  2134. </tr>
  2135. <tr>
  2136. <td>备注</td>
  2137. <td colspan="6"></td>
  2138. </tr>
  2139. <tr>
  2140. <td colspan="7">
  2141. 本进仓单经仓管员签字并经保管方盖章后即专项作为货物所有人的货权证明,本单据不得转让。
  2142. </td>
  2143. </tr>
  2144. </table>
  2145. </div>
  2146. <div
  2147. style="display: flex; justify-content: space-between; font-size: 12px;margin-bottom: 5px"
  2148. >
  2149. <div>开单员:</div>
  2150. <div style="width: 150px">仓管员:{{ form.fStorekeeper }}</div>
  2151. </div>
  2152. <div
  2153. style="display: flex; justify-content: space-between; font-size: 12px"
  2154. >
  2155. <div>开单时间:{{ nowTime }}</div>
  2156. <div style="width: 150px">(盖章)</div>
  2157. </div>
  2158. </div>
  2159. <span slot="footer" class="dialog-footer">
  2160. <el-button
  2161. type="primary"
  2162. :disabled="browseStatus"
  2163. @click="
  2164. addprint('jcd');
  2165. print_rkd = false;
  2166. "
  2167. >打印
  2168. </el-button>
  2169. <el-button @click="print_rkd = false">取消 </el-button>
  2170. </span>
  2171. </el-dialog>
  2172. <el-dialog
  2173. :visible.sync="print_bzrkd"
  2174. width="70%"
  2175. :close-on-click-modal="false"
  2176. :modal="false"
  2177. >
  2178. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  2179. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  2180. <div id="print_area4" class="print-div">
  2181. <div
  2182. class="print-title"
  2183. style="
  2184. display: flex;
  2185. justify-content: center;
  2186. font-size: 24px;
  2187. margin-bottom: 5px;
  2188. "
  2189. >
  2190. {{ company }}入库单
  2191. </div>
  2192. <div class="print_table" style="display: flex">
  2193. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  2194. <tr>
  2195. <td>客户名称</td>
  2196. <td>{{ form.fCorpidName }}</td>
  2197. <td>入库日期</td>
  2198. <td>{{ form.fBsdate | fBsdateFormat }}</td>
  2199. <td>流水号</td>
  2200. <td colspan="3" v-if="form.fBillno">
  2201. {{ form.fBillno }}-{{ lsTime }}
  2202. </td>
  2203. <td colspan="3" v-else></td>
  2204. </tr>
  2205. <tr>
  2206. <td>车号</td>
  2207. <td>{{ form.fTruckno }}</td>
  2208. <td>提单号</td>
  2209. <td>{{ form.fMblno }}</td>
  2210. <td>箱号</td>
  2211. <td colspan="3" v-if="Printinglist.length">
  2212. {{ Printinglist[0].fCntrno }}
  2213. </td>
  2214. <td colspan="3" v-else></td>
  2215. </tr>
  2216. <tr>
  2217. <td>货名</td>
  2218. <td>箱量</td>
  2219. <td>件数</td>
  2220. <td v-if="radio == 1">毛重(吨)</td>
  2221. <td v-if="radio == 1">净重(吨)</td>
  2222. <td v-if="radio == 2">毛重(千克)</td>
  2223. <td v-if="radio == 2">净重(千克)</td>
  2224. <td>规格</td>
  2225. <td>区位</td>
  2226. <td>备注</td>
  2227. </tr>
  2228. <tr v-for="(item, index) in Printinglist" :key="index">
  2229. <td>{{ item.fGoodsids }}</td>
  2230. <td>{{ item.fCntqty }}</td>
  2231. <td>{{ item.fQty }}</td>
  2232. <td v-if="item.fGrossweight && radio == 1">
  2233. {{ (item.fGrossweight / 1000).toFixed(4) }}
  2234. </td>
  2235. <td v-else-if="item.fGrossweight && radio == 2">
  2236. {{ item.fGrossweight }}
  2237. </td>
  2238. <td v-else></td>
  2239. <td v-if="radio == 1">{{ (item.fNetweight/1000).toFixed(4)}}</td>
  2240. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  2241. <td>{{ item.fPackagespecs }}</td>
  2242. <td>{{ item.fWarehouseInformation }}</td>
  2243. <td>{{ item.remark }}</td>
  2244. </tr>
  2245. <tr>
  2246. <td>备注</td>
  2247. <!-- <td colspan="4">不贴标签不卸货</td>-->
  2248. <td colspan="4">{{ form.remark }}</td>
  2249. <td>总件数</td>
  2250. <td colspan="2">{{ allfQty }}</td>
  2251. </tr>
  2252. </table>
  2253. </div>
  2254. <div
  2255. style="display: flex; justify-content: space-between; font-size: 12px"
  2256. >
  2257. <div>操作:</div>
  2258. <div>理货:</div>
  2259. <div>叉车:</div>
  2260. <div>司机:</div>
  2261. <div style="width: 150px">电话:</div>
  2262. </div>
  2263. </div>
  2264. <span slot="footer" class="dialog-footer">
  2265. <el-button
  2266. type="primary"
  2267. :disabled="browseStatus"
  2268. @click="
  2269. addprint();
  2270. print_bzrkd = false;
  2271. "
  2272. >打印
  2273. </el-button>
  2274. <el-button @click="print_bzrkd = false">取消 </el-button>
  2275. </span>
  2276. </el-dialog>
  2277. <el-dialog
  2278. :visible.sync="print_bzrkd_js"
  2279. width="70%"
  2280. :close-on-click-modal="false"
  2281. :modal="false"
  2282. >
  2283. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  2284. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  2285. <div id="print_area15" class="print-div">
  2286. <div
  2287. class="print-title"
  2288. style="
  2289. display: flex;
  2290. justify-content: center;
  2291. font-size: 24px;
  2292. margin-bottom: 5px;
  2293. "
  2294. >
  2295. {{ company }}入库单
  2296. </div>
  2297. <div class="print_table" style="display: flex">
  2298. <table
  2299. border="0"
  2300. cellspacing="0"
  2301. cellpadding="0"
  2302. style="width: 100%; line-height: 30px"
  2303. >
  2304. <tr>
  2305. <td>客户名称</td>
  2306. <td>{{ form.fCorpidName }}</td>
  2307. <td>入库日期</td>
  2308. <td colspan="2" v-if="Printinglist.length">
  2309. {{ Printinglist[0].fBsdate | fBsdateFormat }}
  2310. </td>
  2311. <td colspan="2" v-else></td>
  2312. <td>流水号</td>
  2313. <td colspan="3" v-if="form.fBillno">
  2314. {{ form.fBillno }}-{{ lsTime }}
  2315. </td>
  2316. <td colspan="3" v-else></td>
  2317. </tr>
  2318. <tr>
  2319. <td>车号</td>
  2320. <td colspan="2" v-if="Printinglist.length">{{ Printinglist[0].fTruckno }}</td>
  2321. <td colspan="2" v-else></td>
  2322. <td colspan="2">提单号</td>
  2323. <td colspan="4">{{ form.fMblno }}</td>
  2324. </tr>
  2325. <tr>
  2326. <td style="width: 15%">货名</td>
  2327. <td>箱号</td>
  2328. <td>箱量</td>
  2329. <td>件数</td>
  2330. <td v-if="radio == 1">毛重(吨)</td>
  2331. <td v-if="radio == 1">净重(吨)</td>
  2332. <td v-if="radio == 2">毛重(千克)</td>
  2333. <td v-if="radio == 2">净重(千克)</td>
  2334. <td>规格</td>
  2335. <td>区位</td>
  2336. <td style="width: 20%">备注</td>
  2337. </tr>
  2338. <tr v-for="(item, index) in Printinglist" :key="index">
  2339. <td>{{ item.fGoodsid | goodsFormat(goodsOptions) }}</td>
  2340. <td>{{ item.fCntrno }}</td>
  2341. <td>{{ item.fCntqty }}</td>
  2342. <td>{{ item.fQty }}</td>
  2343. <td v-if="item.fGrossweight && radio == 1">
  2344. {{ (item.fGrossweight / 1000).toFixed(4) }}
  2345. </td>
  2346. <td v-else-if="item.fGrossweight && radio == 2">
  2347. {{ item.fGrossweight }}
  2348. </td>
  2349. <td v-else></td>
  2350. <td v-if="radio == 1">{{ (item.fNetweight/1000).toFixed(4)}}</td>
  2351. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  2352. <td>{{ item.fPackagespecs }}</td>
  2353. <td>{{ item.fWarehouseInformation }}</td>
  2354. <td>{{ item.remark }}</td>
  2355. </tr>
  2356. <tr>
  2357. <td>备注</td>
  2358. <td colspan="4"></td>
  2359. <td>总件数</td>
  2360. <td colspan="3">{{ allfQty }}</td>
  2361. </tr>
  2362. </table>
  2363. </div>
  2364. <div
  2365. style="display: flex; justify-content: space-between; font-size: 12px"
  2366. >
  2367. <div>操作:{{ form.createBy }}</div>
  2368. <div>理货:</div>
  2369. <div>叉车:</div>
  2370. <div>司机:</div>
  2371. <div style="width: 200px">电话:</div>
  2372. </div>
  2373. </div>
  2374. <span slot="footer" class="dialog-footer">
  2375. <el-button
  2376. type="primary"
  2377. @click="
  2378. addprint('bzrkd_js');
  2379. print_bzrkd_js = false;
  2380. "
  2381. >打印
  2382. </el-button>
  2383. <el-button @click="print_bzrkd_js = false">取消 </el-button>
  2384. </span>
  2385. </el-dialog>
  2386. <el-dialog
  2387. :visible.sync="print_bzrkd_xq"
  2388. width="70%"
  2389. :close-on-click-modal="false"
  2390. :modal="false"
  2391. >
  2392. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  2393. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  2394. <div id="print_area16" class="print-div">
  2395. <div
  2396. class="print-title"
  2397. style="
  2398. display: flex;
  2399. justify-content: center;
  2400. font-size: 24px;
  2401. margin-bottom: 5px;
  2402. "
  2403. >
  2404. {{ company }}入库单
  2405. </div>
  2406. <div class="print_table" style="display: flex">
  2407. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  2408. <tr>
  2409. <td>客户名称</td>
  2410. <td>{{ form.fCorpidName }}</td>
  2411. <td>入库日期</td>
  2412. <td>{{ form.fBsdate | fBsdateFormat }}</td>
  2413. <td>流水号</td>
  2414. <td colspan="5" v-if="form.fBillno">
  2415. {{ form.fBillno }}-{{ lsTime }}
  2416. </td>
  2417. <td colspan="5" v-else></td>
  2418. </tr>
  2419. <tr>
  2420. <td>车号</td>
  2421. <td>{{ form.fTruckno }}</td>
  2422. <td>提单号</td>
  2423. <td>{{ form.fMblno }}</td>
  2424. <td>箱号</td>
  2425. <td colspan="5" v-if="Printinglist.length">
  2426. {{ Printinglist[0].fCntrno }}
  2427. </td>
  2428. <td colspan="5" v-else></td>
  2429. </tr>
  2430. <tr>
  2431. <td>货名</td>
  2432. <td>箱量</td>
  2433. <td>货物属性</td>
  2434. <td>属性详情</td>
  2435. <td>件数</td>
  2436. <td v-if="radio == 1">毛重(吨)</td>
  2437. <td v-if="radio == 1">净重(吨)</td>
  2438. <td v-if="radio == 2">毛重(千克)</td>
  2439. <td v-if="radio == 2">净重(千克)</td>
  2440. <td>规格</td>
  2441. <td>区位</td>
  2442. <td>备注</td>
  2443. </tr>
  2444. <tr v-for="(item, index) in Printinglist" :key="index">
  2445. <td>{{ item.fGoodsids }}</td>
  2446. <td>{{ item.fCntqty }}</td>
  2447. <td>{{ item.fBusinessType | fStorageTypeFormat(fStorageTypeOptions) }}</td>
  2448. <td>{{ item.fMarks }}</td>
  2449. <td>{{ item.fQty }}</td>
  2450. <td v-if="item.fGrossweight && radio == 1">
  2451. {{ (item.fGrossweight / 1000).toFixed(4) }}
  2452. </td>
  2453. <td v-else-if="item.fGrossweight && radio == 2">
  2454. {{ item.fGrossweight }}
  2455. </td>
  2456. <td v-else></td>
  2457. <td v-if="radio == 1">{{ (item.fNetweight/1000).toFixed(4)}}</td>
  2458. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  2459. <td>{{ item.fPackagespecs }}</td>
  2460. <td>{{ item.fWarehouseInformation }}</td>
  2461. <td>{{ item.remark }}</td>
  2462. </tr>
  2463. <tr>
  2464. <td>备注</td>
  2465. <!-- <td colspan="4">不贴标签不卸货</td>-->
  2466. <td colspan="4">{{ form.remark }}</td>
  2467. <td>总件数</td>
  2468. <td colspan="4">{{ allfQty }}</td>
  2469. </tr>
  2470. </table>
  2471. </div>
  2472. <div
  2473. style="display: flex; justify-content: space-between; font-size: 12px"
  2474. >
  2475. <div>操作:</div>
  2476. <div>理货:</div>
  2477. <div>叉车:</div>
  2478. <div>司机:</div>
  2479. <div style="width: 150px">电话:</div>
  2480. </div>
  2481. </div>
  2482. <span slot="footer" class="dialog-footer">
  2483. <el-button
  2484. type="primary"
  2485. :disabled="browseStatus"
  2486. @click="
  2487. addprint('bzrkd_xq');
  2488. print_bzrkd_xq = false;
  2489. "
  2490. >打印
  2491. </el-button>
  2492. <el-button @click="print_bzrkd_xq = false">取消 </el-button>
  2493. </span>
  2494. </el-dialog>
  2495. <!-- 标准入库单-其他-->
  2496. <el-dialog
  2497. :visible.sync="print_bzrkd_qt"
  2498. width="70%"
  2499. :close-on-click-modal="false"
  2500. :modal="false"
  2501. >
  2502. <div id="print_area17" class="print-div">
  2503. <div
  2504. class="print-title"
  2505. style="
  2506. display: flex;
  2507. justify-content: center;
  2508. font-size: 24px;
  2509. margin-bottom: 5px;
  2510. "
  2511. >
  2512. {{ company }}入库单
  2513. </div>
  2514. <div style="width: 100%">
  2515. <div style="width: 100%;display: flex">
  2516. <div style="width: 33.333333%">
  2517. 货权方:{{ form.fCorpidName }}
  2518. </div>
  2519. <div style="width: 33.333333%">
  2520. 仓库:
  2521. </div>
  2522. <div style="width: 33.333333%">
  2523. 地址:
  2524. </div>
  2525. </div>
  2526. <div style="width: 100%;display: flex">
  2527. <div style="width: 33.333333%">
  2528. 保管方:{{ company }}
  2529. </div>
  2530. <div style="width: 33.333333%">
  2531. 联系人:
  2532. </div>
  2533. <div style="width: 33.333333%">
  2534. 电话:
  2535. </div>
  2536. </div>
  2537. </div>
  2538. <div class="print_table" style="display: flex">
  2539. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  2540. <tr>
  2541. <td>客户名称</td>
  2542. <td>{{ form.fCorpidName }}</td>
  2543. <td>入库日期</td>
  2544. <td>{{ form.fBsdate | fBsdateFormat }}</td>
  2545. <td>流水号</td>
  2546. <td colspan="5" v-if="form.fBillno">
  2547. {{ form.fBillno }}-{{ lsTime }}
  2548. </td>
  2549. <td colspan="5" v-else></td>
  2550. </tr>
  2551. <tr>
  2552. <td>车号</td>
  2553. <td>{{ form.fTruckno }}</td>
  2554. <td>提单号</td>
  2555. <td>{{ form.fMblno }}</td>
  2556. <td>箱号</td>
  2557. <td colspan="5" v-if="Printinglist.length">
  2558. {{ Printinglist[0].fCntrno }}
  2559. </td>
  2560. <td colspan="5" v-else></td>
  2561. </tr>
  2562. <tr>
  2563. <td>货名</td>
  2564. <td>箱量</td>
  2565. <td>货物属性</td>
  2566. <td>属性详情</td>
  2567. <td>件数</td>
  2568. <td>毛重(吨)</td>
  2569. <td>净重(吨)</td>
  2570. <td>规格</td>
  2571. <td>区位</td>
  2572. <td>备注</td>
  2573. </tr>
  2574. <tr v-for="(item, index) in Printinglist" :key="index">
  2575. <td>{{ item.fGoodsids }}</td>
  2576. <td>{{ item.fCntqty }}</td>
  2577. <td>{{ item.fBusinessType | fStorageTypeFormat(fStorageTypeOptions) }}</td>
  2578. <td>{{ item.fMarks }}</td>
  2579. <td>{{ item.fQty }}</td>
  2580. <td v-if="item.fGrossweight">
  2581. {{ (item.fGrossweight / 1000).toFixed(4) }}
  2582. </td>
  2583. <td v-else></td>
  2584. <td>{{ (item.fNetweight/1000).toFixed(4)}}</td>
  2585. <td>{{ item.fPackagespecs }}</td>
  2586. <td>{{ item.fWarehouseInformation }}</td>
  2587. <td>{{ item.remark }}</td>
  2588. </tr>
  2589. <tr>
  2590. <td>备注</td>
  2591. <!-- <td colspan="4">不贴标签不卸货</td>-->
  2592. <td colspan="4">{{ form.remark }}</td>
  2593. <td>总件数</td>
  2594. <td colspan="4">{{ allfQty }}</td>
  2595. </tr>
  2596. </table>
  2597. </div>
  2598. <div
  2599. style="display: flex; justify-content: space-between; font-size: 12px"
  2600. >
  2601. <div>操作:</div>
  2602. <div>理货:</div>
  2603. <div>叉车:</div>
  2604. <div>司机:</div>
  2605. <div style="width: 150px">电话:</div>
  2606. </div>
  2607. </div>
  2608. <span slot="footer" class="dialog-footer">
  2609. <el-button
  2610. type="primary"
  2611. :disabled="browseStatus"
  2612. @click="
  2613. addprint('bzrkd_qt');
  2614. print_bzrkd_qt = false;
  2615. "
  2616. >打印
  2617. </el-button>
  2618. <el-button @click="print_bzrkd_qt = false">取消 </el-button>
  2619. </span>
  2620. </el-dialog>
  2621. <el-dialog
  2622. :visible.sync="print_lhd"
  2623. width="70%"
  2624. :close-on-click-modal="false"
  2625. :modal="false"
  2626. >
  2627. <div id="print_area5" class="print-div">
  2628. <div
  2629. class="print-title"
  2630. style="
  2631. display: flex;
  2632. justify-content: center;
  2633. font-size: 24px;
  2634. margin-bottom: 5px;
  2635. "
  2636. >
  2637. {{ company }}
  2638. </div>
  2639. <div
  2640. style="
  2641. display: flex;
  2642. justify-content: center;
  2643. font-size: 18px;
  2644. margin-bottom: 5px;
  2645. "
  2646. >
  2647. <div>入&nbsp;库&nbsp;计&nbsp;划&nbsp;单</div>
  2648. </div>
  2649. <div
  2650. style="
  2651. display: flex;
  2652. justify-content: space-between;
  2653. margin-bottom: 5px;
  2654. "
  2655. class="print_form"
  2656. >
  2657. <div>
  2658. <div>提单号:{{ form.fMblno }}</div>
  2659. <div>客户名称:{{ form.fCorpidName }}</div>
  2660. <div>货物名称:{{ form.fProductName }}</div>
  2661. <div>预计净重:{{ form.fPlannetweight }}</div>
  2662. </div>
  2663. <div>
  2664. <div>入库计划单号:{{ form.fBillno }}</div>
  2665. <div>计划入库日期:{{ form.fBstime }}</div>
  2666. <div>制单日期:{{ form.createTime }}</div>
  2667. <div>实际毛重:</div>
  2668. </div>
  2669. <div>
  2670. <div>清单号:{{ form.fCustomno }}</div>
  2671. <div>存放仓库:{{ stockName }}</div>
  2672. <div>预计毛重:{{ form.fPlangrossweight }}</div>
  2673. <div>实际净重:</div>
  2674. </div>
  2675. </div>
  2676. <div class="print_table" style="display: flex">
  2677. <table
  2678. border="0"
  2679. cellspacing="0"
  2680. cellpadding="0"
  2681. style="width: 100%; line-height: 30px"
  2682. >
  2683. <tr>
  2684. <td>箱号</td>
  2685. <td>铅封号</td>
  2686. <td>预计件数</td>
  2687. <td>实际件数</td>
  2688. <td>垛位</td>
  2689. <td>实际入库日期</td>
  2690. <td>送货车号</td>
  2691. <td>送货司机</td>
  2692. <td>备注</td>
  2693. </tr>
  2694. <tr v-for="(item, index) in Printinglist" :key="index">
  2695. <td>{{ item.fCntrno }}</td>
  2696. <td></td>
  2697. <td>{{ item.fQty }}</td>
  2698. <td></td>
  2699. <td>{{ item.fWarehouseInformation }}</td>
  2700. <td>{{ item.fChargedate }}</td>
  2701. <td>{{ item.fTruckno }}</td>
  2702. <td>{{ item.fDriverName }}</td>
  2703. <td>{{ item.remark }}</td>
  2704. </tr>
  2705. <tr>
  2706. <td colspan="2">合计:</td>
  2707. <td>{{ allfQty }}</td>
  2708. <td></td>
  2709. <td></td>
  2710. <td></td>
  2711. <td></td>
  2712. <td></td>
  2713. <td></td>
  2714. </tr>
  2715. </table>
  2716. </div>
  2717. <div
  2718. style="display: flex; justify-content: space-between; font-size: 12px"
  2719. >
  2720. <div>操作:{{ form.createBy }}</div>
  2721. <div>库管:{{ form.fContacts }}</div>
  2722. <div style="width: 100px">叉车:</div>
  2723. </div>
  2724. </div>
  2725. <span slot="footer" class="dialog-footer">
  2726. <el-button
  2727. type="primary"
  2728. @click="
  2729. addprint('lhd');
  2730. print_lhd = false;
  2731. "
  2732. >打印
  2733. </el-button>
  2734. <el-button @click="print_lhd = false">取消 </el-button>
  2735. </span>
  2736. </el-dialog>
  2737. <el-dialog
  2738. :visible.sync="print_hwqr"
  2739. width="70%"
  2740. :close-on-click-modal="false"
  2741. :modal="false"
  2742. >
  2743. <div id="print_area6" class="print-div">
  2744. <div
  2745. class="print-title"
  2746. style="
  2747. display: flex;
  2748. justify-content: center;
  2749. font-size: 24px;
  2750. margin-bottom: 5px;
  2751. "
  2752. >
  2753. {{ company }}
  2754. </div>
  2755. <div
  2756. style="
  2757. display: flex;
  2758. justify-content: center;
  2759. font-size: 18px;
  2760. margin-bottom: 5px;
  2761. "
  2762. >
  2763. <div>入&nbsp;库&nbsp;单</div>
  2764. </div>
  2765. <div style="margin-bottom: 5px" class="print_form">
  2766. <div>客户名称:{{ form.fCorpidName }}</div>
  2767. </div>
  2768. <div class="print_table" style="display: flex">
  2769. <table
  2770. border="0"
  2771. cellspacing="0"
  2772. cellpadding="0"
  2773. style="width: 100%; line-height: 30px"
  2774. >
  2775. <tr>
  2776. <td>序号</td>
  2777. <td>实际入库日期</td>
  2778. <td>商品名称</td>
  2779. <td>提单号</td>
  2780. <td>箱号</td>
  2781. <td>件数</td>
  2782. <td>毛重</td>
  2783. <td>净重</td>
  2784. <td>备注</td>
  2785. </tr>
  2786. <tr v-for="(item, index) in Printinglist" :key="index">
  2787. <td>{{ index + 1 }}</td>
  2788. <td>{{ item.fChargedate }}</td>
  2789. <td>{{ item.fGoodsid | goodsFormat(goodsOptions) }}</td>
  2790. <td>{{ item.fMblno }}</td>
  2791. <td>{{ item.fCntrno }}</td>
  2792. <td>{{ item.fQty }}</td>
  2793. <td>{{ item.fGrossweight }}</td>
  2794. <td>{{ item.fNetweight }}</td>
  2795. <td>{{ item.remark }}</td>
  2796. </tr>
  2797. <tr>
  2798. <td colspan="5">合计:</td>
  2799. <td>{{ allfQty }}</td>
  2800. <td>{{ allfGrossweight }}</td>
  2801. <td>{{ allfNetweight }}</td>
  2802. <td></td>
  2803. </tr>
  2804. </table>
  2805. </div>
  2806. <div
  2807. style="display: flex; justify-content: space-between; font-size: 12px"
  2808. >
  2809. <div>制单人:{{ form.createBy }}</div>
  2810. <div style="width: 100px">审核人:</div>
  2811. </div>
  2812. </div>
  2813. <span slot="footer" class="dialog-footer">
  2814. <el-button
  2815. type="primary"
  2816. @click="
  2817. addprint('hwqr');
  2818. print_hwqr = false;
  2819. "
  2820. >打印
  2821. </el-button>
  2822. <el-button @click="print_hwqr = false">取消 </el-button>
  2823. </span>
  2824. </el-dialog>
  2825. <el-dialog
  2826. :visible.sync="print_lwqr"
  2827. width="70%"
  2828. :close-on-click-modal="false"
  2829. :modal="false"
  2830. >
  2831. <div id="print_area7" class="print-div">
  2832. <div
  2833. class="print-title"
  2834. style="
  2835. display: flex;
  2836. justify-content: center;
  2837. font-size: 24px;
  2838. margin-bottom: 5px;
  2839. "
  2840. >
  2841. {{ company }}
  2842. </div>
  2843. <div
  2844. style="
  2845. display: flex;
  2846. justify-content: center;
  2847. font-size: 18px;
  2848. margin-bottom: 5px;
  2849. "
  2850. >
  2851. <div>入&nbsp;库&nbsp;单</div>
  2852. </div>
  2853. <div style="display: flex; margin-bottom: 5px">
  2854. <div>
  2855. <div>报关单号:{{ form.fCustomno }}</div>
  2856. <div>存货地点:</div>
  2857. </div>
  2858. </div>
  2859. <div class="print_table" style="display: flex">
  2860. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  2861. <tr>
  2862. <td>品名</td>
  2863. <td colspan="3">{{ form.fProductName }}</td>
  2864. <td colspan="3">清单号</td>
  2865. <td colspan="2">{{ form.fCustomno }}</td>
  2866. </tr>
  2867. <tr>
  2868. <td>提单号</td>
  2869. <td colspan="8">{{ form.fMblno }}</td>
  2870. </tr>
  2871. <tr>
  2872. <td>入库日期</td>
  2873. <td>箱号</td>
  2874. <td>铅封号</td>
  2875. <td>预计件数</td>
  2876. <td>垛位</td>
  2877. <td>(</td>
  2878. <td>毛重(吨)</td>
  2879. <td>备注</td>
  2880. </tr>
  2881. <tr v-for="(item, index) in Printinglist" :key="index">
  2882. <td>{{ item.fChargedate }}</td>
  2883. <td>{{ item.fCntrno }}</td>
  2884. <td></td>
  2885. <td>{{ item.fQty }}</td>
  2886. <td>{{ item.fWarehouseInformation }}</td>
  2887. <td></td>
  2888. <td></td>
  2889. <td></td>
  2890. <td>{{ item.remark }}</td>
  2891. </tr>
  2892. </table>
  2893. </div>
  2894. <div
  2895. style="display: flex; justify-content: space-between; font-size: 12px"
  2896. >
  2897. <div>库管:{{ form.fContacts }}</div>
  2898. <div style="width: 100px">叉车:</div>
  2899. </div>
  2900. </div>
  2901. <span slot="footer" class="dialog-footer">
  2902. <el-button
  2903. type="primary"
  2904. @click="
  2905. addprint('lwqr');
  2906. print_lwqr = false;
  2907. "
  2908. >打印
  2909. </el-button>
  2910. <el-button @click="print_lwqr = false">取消 </el-button>
  2911. </span>
  2912. </el-dialog>
  2913. <el-dialog
  2914. :visible.sync="print_dpxx"
  2915. width="70%"
  2916. :close-on-click-modal="false"
  2917. :modal="false"
  2918. >
  2919. <div id="print_area13" class="print-div">
  2920. <div
  2921. class="print-title"
  2922. style="
  2923. display: flex;
  2924. justify-content: center;
  2925. font-size: 24px;
  2926. margin-bottom: 5px;
  2927. "
  2928. >
  2929. {{ company }}货物标识卡
  2930. </div>
  2931. <div
  2932. style="
  2933. display: flex;
  2934. justify-content: center;
  2935. font-size: 18px;
  2936. margin-bottom: 5px;
  2937. "
  2938. >
  2939. <div>入&nbsp;库&nbsp;计&nbsp;划&nbsp;单</div>
  2940. </div>
  2941. <div class="print_table" style="display: flex">
  2942. <table
  2943. border="0"
  2944. cellspacing="0"
  2945. cellpadding="0"
  2946. style="width: 100%; line-height: 30px"
  2947. >
  2948. <tr>
  2949. <td>货物名称</td>
  2950. <td colspan="2">{{ form.fProductName }}</td>
  2951. <td>库位</td>
  2952. <td colspan="2">{{ stockName }}</td>
  2953. </tr>
  2954. <tr>
  2955. <td>提单号</td>
  2956. <td colspan="2">{{ form.fMblno }}</td>
  2957. <td>清单号</td>
  2958. <td colspan="2">{{ form.fCustomno }}</td>
  2959. </tr>
  2960. <tr>
  2961. <td>箱号</td>
  2962. <td colspan="2"></td>
  2963. <td>总箱量</td>
  2964. <td colspan="2"></td>
  2965. </tr>
  2966. <tr>
  2967. <td>总件数</td>
  2968. <td colspan="2">{{ form.fPlanqty }}</td>
  2969. <td>总净重</td>
  2970. <td colspan="2">{{ form.fPlannetweight }}</td>
  2971. </tr>
  2972. <tr>
  2973. <td>总毛重</td>
  2974. <td colspan="2">{{ form.fPlangrossweight }}</td>
  2975. <td>本垛件数</td>
  2976. <td colspan="2">{{ allfQty }}</td>
  2977. </tr>
  2978. <tr>
  2979. <td>本垛净重</td>
  2980. <td colspan="2">{{ allfGrossweight }}</td>
  2981. <td>本垛毛重</td>
  2982. <td colspan="2">{{ allfNetweight }}</td>
  2983. </tr>
  2984. <tr>
  2985. <td>入库日期</td>
  2986. <td colspan="2">{{ form.fBstime }}</td>
  2987. <td>仓管员</td>
  2988. <td colspan="2">{{ form.fContacts }}</td>
  2989. </tr>
  2990. <tr>
  2991. <td>出库日期</td>
  2992. <td>出库件数</td>
  2993. <td>剩余件数</td>
  2994. <td>出库仓管员</td>
  2995. <td>盘点日期</td>
  2996. <td>盘点人</td>
  2997. </tr>
  2998. <tr style="height: 17.8px" v-for="(item, index) in 10" :key="index">
  2999. <td></td>
  3000. <td></td>
  3001. <td></td>
  3002. <td></td>
  3003. <td></td>
  3004. <td></td>
  3005. </tr>
  3006. <tr style="height: 50px">
  3007. <td>备注</td>
  3008. <td colspan="5"></td>
  3009. </tr>
  3010. </table>
  3011. </div>
  3012. </div>
  3013. <span slot="footer" class="dialog-footer">
  3014. <el-button
  3015. type="primary"
  3016. @click="
  3017. addprint('dpxx');
  3018. print_dpxx = false;
  3019. "
  3020. >打印
  3021. </el-button>
  3022. <el-button @click="print_dpxx = false">取消 </el-button>
  3023. </span>
  3024. </el-dialog>
  3025. <el-dialog
  3026. :visible.sync="print_ccdzrkd"
  3027. width="70%"
  3028. :close-on-click-modal="false"
  3029. :modal="false"
  3030. >
  3031. <el-radio v-model="radio" :label="1" @change="radioChange">吨(T)</el-radio>
  3032. <el-radio v-model="radio" :label="2" @change="radioChange">千克(KG)</el-radio>
  3033. <div id="print_area8" class="print-div">
  3034. <div
  3035. class="print-title"
  3036. style="
  3037. display: flex;
  3038. justify-content: center;
  3039. font-size: 24px;
  3040. margin-bottom: 5px;
  3041. "
  3042. >
  3043. {{ company }}
  3044. </div>
  3045. <div style="display: flex; flex-direction: column; margin-left: 70%">
  3046. <div>{{ form.fBillno }}</div>
  3047. <div>存货地点:{{ stockName }}</div>
  3048. </div>
  3049. <div class="print_table" style="display: flex">
  3050. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  3051. <tr>
  3052. <td>品名</td>
  3053. <td colspan="3">{{ form.goodName }}</td>
  3054. <td colspan="2">清单号</td>
  3055. <td colspan="3">{{ form.fCustomsdeclartion }}</td>
  3056. </tr>
  3057. <tr>
  3058. <td class="oneHundredSix">入库日期</td>
  3059. <td class="twoHundred">箱号</td>
  3060. <td>铅封号</td>
  3061. <td>预计件数</td>
  3062. <td>垛位</td>
  3063. <td>实收件数</td>
  3064. <td class="oneHundred" v-if="radio == 1">实收净重(吨)</td>
  3065. <td class="oneHundred" v-if="radio == 1">毛重(吨)</td>
  3066. <td class="oneHundred" v-if="radio == 2">实收净重(千克)</td>
  3067. <td class="oneHundred" v-if="radio == 2">毛重(千克)</td>
  3068. <td class="twoHundred">备注</td>
  3069. </tr>
  3070. <tr v-for="(item, index) in Printinglist" :key="index">
  3071. <td>{{ item.fBsdate }}</td>
  3072. <td>{{ item.fCntrno }}</td>
  3073. <td>{{ item.fSealno }}</td>
  3074. <td>{{ form.fPlanqty }}</td>
  3075. <td>{{ item.fWarehouseInformation }}</td>
  3076. <td>{{ item.fQty }}</td>
  3077. <td v-if="radio == 1">{{ (item.fNetweight / 1000).toSuperFixed(4) }}</td>
  3078. <td v-if="radio == 1">{{ (item.fGrossweight / 1000).toSuperFixed(4) }}</td>
  3079. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  3080. <td v-if="radio == 2">{{ item.fGrossweight }}</td>
  3081. <td>{{ item.remark }}</td>
  3082. </tr>
  3083. <tr>
  3084. <td>合计:</td>
  3085. <td></td>
  3086. <td></td>
  3087. <td></td>
  3088. <td></td>
  3089. <td>{{ allfQty.toFixed(0) }}</td>
  3090. <td v-if="radio == 1">{{ allfNetweight.toSuperFixed(4) }}</td>
  3091. <td v-if="radio == 1">{{ allfGrossweight.toSuperFixed(4) }}</td>
  3092. <td v-if="radio == 2">{{ allfNetweight }}</td>
  3093. <td v-if="radio == 2">{{ allfGrossweight }}</td>
  3094. <td></td>
  3095. </tr>
  3096. </table>
  3097. </div>
  3098. <div
  3099. style="display: flex; justify-content: space-between; font-size: 12px"
  3100. >
  3101. <!-- <div>操作:{{ form.createBy }}</div>-->
  3102. <div>库管:{{ form.fContacts }}</div>
  3103. <div style="width: 100px">叉车:</div>
  3104. </div>
  3105. </div>
  3106. <span slot="footer" class="dialog-footer">
  3107. <el-button
  3108. type="primary"
  3109. :disabled="browseStatus"
  3110. @click="
  3111. addprint('ccdzrkd');
  3112. print_ccdzrkd = false;
  3113. "
  3114. >打印
  3115. </el-button>
  3116. <el-button @click="print_ccdzrkd = false">取消 </el-button>
  3117. </span>
  3118. </el-dialog>
  3119. <el-dialog
  3120. :visible.sync="print_fxdkrkd"
  3121. width="70%"
  3122. :close-on-click-modal="false"
  3123. :modal="false"
  3124. >
  3125. <div id="print_area9" class="print-div">
  3126. <div
  3127. class="print-title"
  3128. style="
  3129. display: flex;
  3130. justify-content: center;
  3131. font-size: 24px;
  3132. margin-bottom: 5px;
  3133. "
  3134. >
  3135. {{ company }}货物标识卡
  3136. </div>
  3137. <div class="print_table" style="display: flex;flex-direction: column">
  3138. <table
  3139. border="0"
  3140. cellspacing="0"
  3141. cellpadding="0"
  3142. style="width: 100%"
  3143. v-for="(item, index) in Printinglist"
  3144. :key="index"
  3145. >
  3146. <tr>
  3147. <td>货物名称</td>
  3148. <td colspan="2">{{ form.goodName }}</td>
  3149. <td>库位</td>
  3150. <td colspan="2">{{ form.fWarehouseInformation }}</td>
  3151. </tr>
  3152. <tr>
  3153. <td>提单号</td>
  3154. <td colspan="2">{{ form.fMblno }}</td>
  3155. <td>清单号</td>
  3156. <td colspan="2">{{ form.fCustomsdeclartion }}</td>
  3157. </tr>
  3158. <tr>
  3159. <td>箱号</td>
  3160. <td colspan="2">{{ item.fCntrno }}</td>
  3161. <td>总箱量</td>
  3162. <td colspan="2">{{ item.fCntqty }}</td>
  3163. </tr>
  3164. <tr>
  3165. <td>总件数</td>
  3166. <td colspan="2">{{ item.fQty }}</td>
  3167. <td v-if="radio == 1">总净重(吨)</td>
  3168. <td v-if="radio == 2">总净重(千克)</td>
  3169. <td v-if="radio == 1" colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  3170. <td v-if="radio == 2" colspan="2">{{ item.fNetweight }}</td>
  3171. </tr>
  3172. <tr>
  3173. <td v-if="radio == 1">总毛重(吨)</td>
  3174. <td v-if="radio == 2">总毛重(千克)</td>
  3175. <td v-if="radio == 1" colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  3176. <td v-if="radio == 2" colspan="2">{{ item.fGrossweight }}</td>
  3177. <td v-if="radio == 1">本垛毛重(吨)</td>
  3178. <td v-if="radio == 2">本垛毛重(千克)</td>
  3179. <td v-if="radio == 1" colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  3180. <td v-if="radio == 2" colspan="2">{{ item.fGrossweight }}</td>
  3181. </tr>
  3182. <tr>
  3183. <td>本垛件数</td>
  3184. <td colspan="2">{{ item.fQty }}</td>
  3185. <td v-if="radio == 1">本垛净重(吨)</td>
  3186. <td v-if="radio == 2">本垛净重(千克)</td>
  3187. <td v-if="radio == 1" colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  3188. <td v-if="radio == 2" colspan="2">{{ item.fNetweight }}</td>
  3189. </tr>
  3190. <tr>
  3191. <td>入库日期</td>
  3192. <td colspan="2">{{ item.fBsdate }}</td>
  3193. <td>仓管员</td>
  3194. <td colspan="2">{{ form.createBy }}</td>
  3195. </tr>
  3196. <tr>
  3197. <td>出库日期</td>
  3198. <td>出库件数</td>
  3199. <td>剩余件数</td>
  3200. <td>出库仓管员</td>
  3201. <td>盘点日期</td>
  3202. <td>盘点人</td>
  3203. </tr>
  3204. <tr>
  3205. <td style="height: 20px"></td>
  3206. <td></td>
  3207. <td></td>
  3208. <td></td>
  3209. <td></td>
  3210. <td></td>
  3211. </tr>
  3212. <tr>
  3213. <td style="height: 20px"></td>
  3214. <td></td>
  3215. <td></td>
  3216. <td></td>
  3217. <td></td>
  3218. <td></td>
  3219. </tr>
  3220. <tr>
  3221. <td style="height: 20px"></td>
  3222. <td></td>
  3223. <td></td>
  3224. <td></td>
  3225. <td></td>
  3226. <td></td>
  3227. </tr>
  3228. <tr>
  3229. <td style="height: 20px"></td>
  3230. <td></td>
  3231. <td></td>
  3232. <td></td>
  3233. <td></td>
  3234. <td></td>
  3235. </tr>
  3236. <tr>
  3237. <td style="height: 20px"></td>
  3238. <td></td>
  3239. <td></td>
  3240. <td></td>
  3241. <td></td>
  3242. <td></td>
  3243. </tr>
  3244. <tr>
  3245. <td style="height: 20px"></td>
  3246. <td></td>
  3247. <td></td>
  3248. <td></td>
  3249. <td></td>
  3250. <td></td>
  3251. </tr>
  3252. <tr>
  3253. <td style="height: 20px"></td>
  3254. <td></td>
  3255. <td></td>
  3256. <td></td>
  3257. <td></td>
  3258. <td></td>
  3259. </tr>
  3260. <tr>
  3261. <td style="height: 20px"></td>
  3262. <td></td>
  3263. <td></td>
  3264. <td></td>
  3265. <td></td>
  3266. <td></td>
  3267. </tr>
  3268. <tr>
  3269. <td style="height: 20px"></td>
  3270. <td></td>
  3271. <td></td>
  3272. <td></td>
  3273. <td></td>
  3274. <td></td>
  3275. </tr>
  3276. <tr>
  3277. <td style="height: 20px"></td>
  3278. <td></td>
  3279. <td></td>
  3280. <td></td>
  3281. <td></td>
  3282. <td></td>
  3283. </tr>
  3284. <tr>
  3285. <td style="height: 20px"></td>
  3286. <td></td>
  3287. <td></td>
  3288. <td></td>
  3289. <td></td>
  3290. <td></td>
  3291. </tr>
  3292. <tr>
  3293. <td style="height: 20px"></td>
  3294. <td></td>
  3295. <td></td>
  3296. <td></td>
  3297. <td></td>
  3298. <td></td>
  3299. </tr>
  3300. <tr>
  3301. <td>备注:</td>
  3302. <td colspan="5">{{ form.remark }}</td>
  3303. </tr>
  3304. </table>
  3305. </div>
  3306. <div
  3307. style="display: flex; justify-content: space-between; font-size: 12px"
  3308. >
  3309. <!-- <div>操作:{{ form.createBy }}</div>-->
  3310. <div>库管:{{ form.fContacts }}</div>
  3311. <div style="width: 100px">叉车:</div>
  3312. </div>
  3313. </div>
  3314. <span slot="footer" class="dialog-footer">
  3315. <el-button
  3316. type="primary"
  3317. :disabled="browseStatus"
  3318. @click="
  3319. addprint('fxdkrkd');
  3320. print_fxdkrkd = false;
  3321. "
  3322. >打印
  3323. </el-button>
  3324. <el-button @click="print_fxdkrkd = false">取消 </el-button>
  3325. </span>
  3326. </el-dialog>
  3327. <el-dialog
  3328. :visible.sync="print_khrkd"
  3329. width="70%"
  3330. :close-on-click-modal="false"
  3331. :modal="false"
  3332. >
  3333. <el-radio v-model="radio" :label="1" @change="radioChange">吨(T)</el-radio>
  3334. <el-radio v-model="radio" :label="2" @change="radioChange">千克(KG)</el-radio>
  3335. <div id="print_area10" class="print-div">
  3336. <div
  3337. class="print-title"
  3338. style="
  3339. display: flex;
  3340. justify-content: center;
  3341. font-size: 24px;
  3342. margin-bottom: 5px;
  3343. "
  3344. >
  3345. {{ company }}
  3346. </div>
  3347. <div
  3348. style="
  3349. display: flex;
  3350. justify-content: center;
  3351. font-size: 18px;
  3352. margin-bottom: 5px;
  3353. "
  3354. >
  3355. <div>入&nbsp;库&nbsp;单</div>
  3356. </div>
  3357. <div
  3358. style="
  3359. display: flex;
  3360. justify-content: space-between;
  3361. margin-bottom: 5px;
  3362. "
  3363. class="print_form"
  3364. >
  3365. <div>客户名称:{{ form.fCorpidName }}</div>
  3366. <div>存货地点:{{ stockName }}</div>
  3367. </div>
  3368. <div class="print_table" style="display: flex">
  3369. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  3370. <tr>
  3371. <td>序号</td>
  3372. <td>实际入库日期</td>
  3373. <td>商品名称</td>
  3374. <td>提单号</td>
  3375. <td>箱号</td>
  3376. <td>件数</td>
  3377. <td v-if="radio == 1">毛重(吨)</td>
  3378. <td v-if="radio == 1">净重(吨)</td>
  3379. <td v-if="radio == 2">毛重(千克)</td>
  3380. <td v-if="radio == 2">净重(千克)</td>
  3381. <td>备注</td>
  3382. </tr>
  3383. <tr v-for="(item, index) in Printinglist" :key="index">
  3384. <td>{{ index + 1 }}</td>
  3385. <td>{{ item.fBsdate }}</td>
  3386. <td>{{ item.fGoodsids }}</td>
  3387. <td>{{ item.fMblno }}</td>
  3388. <td>{{ item.fCntrno }}</td>
  3389. <td>{{ item.fQty }}</td>
  3390. <td v-if="radio == 1">{{ (item.fGrossweight / 1000).toSuperFixed(4) }}</td>
  3391. <td v-if="radio == 1">{{ (item.fNetweight / 1000).toSuperFixed(4) }}</td>
  3392. <td v-if="radio == 2">{{ item.fGrossweight }}</td>
  3393. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  3394. <td>{{ item.remark }}</td>
  3395. </tr>
  3396. <tr>
  3397. <td>合计:</td>
  3398. <td></td>
  3399. <td></td>
  3400. <td></td>
  3401. <td></td>
  3402. <td>{{ allfQty.toFixed(0) }}</td>
  3403. <td v-if="radio == 1">{{ allfGrossweight.toSuperFixed(4) }}</td>
  3404. <td v-if="radio == 1">{{ allfNetweight.toSuperFixed(4) }}</td>
  3405. <td v-if="radio == 2">{{ allfGrossweight }}</td>
  3406. <td v-if="radio == 2">{{ allfNetweight }}</td>
  3407. <td></td>
  3408. </tr>
  3409. </table>
  3410. </div>
  3411. <div
  3412. style="display: flex; justify-content: space-between; font-size: 12px"
  3413. >
  3414. <!-- <div>操作:{{ form.createBy }}</div>-->
  3415. <div>库管:{{ form.fContacts }}</div>
  3416. <div style="width: 100px">叉车:</div>
  3417. </div>
  3418. </div>
  3419. <span slot="footer" class="dialog-footer">
  3420. <el-button
  3421. type="primary"
  3422. :disabled="browseStatus"
  3423. @click="
  3424. addprint('khrkd');
  3425. print_khrkd = false;
  3426. "
  3427. >打印
  3428. </el-button>
  3429. <el-button @click="print_khrkd = false">取消 </el-button>
  3430. </span>
  3431. </el-dialog>
  3432. <!-- <el-dialog-->
  3433. <!-- :visible.sync="print_xhcdrkd"-->
  3434. <!-- width="70%"-->
  3435. <!-- :close-on-click-modal="false"-->
  3436. <!-- :modal="false"-->
  3437. <!-- >-->
  3438. <!-- <div id="print_area11" class="print-div">-->
  3439. <!-- <div-->
  3440. <!-- class="print-title"-->
  3441. <!-- style="-->
  3442. <!-- display: flex;-->
  3443. <!-- justify-content: center;-->
  3444. <!-- font-size: 24px;-->
  3445. <!-- margin-bottom: 5px;-->
  3446. <!-- "-->
  3447. <!-- >-->
  3448. <!-- {{ company }}入库单-->
  3449. <!-- </div>-->
  3450. <!-- <div-->
  3451. <!-- style="-->
  3452. <!-- display: flex;-->
  3453. <!-- justify-content: space-between;-->
  3454. <!-- margin-bottom: 5px;-->
  3455. <!-- "-->
  3456. <!-- class="print_form"-->
  3457. <!-- >-->
  3458. <!-- <div>-->
  3459. <!-- <div>提单号:{{ form.fMblno }}</div>-->
  3460. <!-- <div>客户名称:{{ form.fCorpidName }}</div>-->
  3461. <!-- <div>货物名称:{{ form.fProductName }}</div>-->
  3462. <!-- <div>件数:{{ form.fPlanqty }}</div>-->
  3463. <!-- </div>-->
  3464. <!-- <div>-->
  3465. <!-- <div>系统编号:{{ form.fBillno }}</div>-->
  3466. <!-- <div>计划入库日期:{{ form.fBsdate }}</div>-->
  3467. <!-- <div>制单日期:{{ form.createTime }}</div>-->
  3468. <!-- <div>毛重:{{ (form.fPlangrossweight / 1000).toFixed(2) }}</div>-->
  3469. <!-- </div>-->
  3470. <!-- <div>-->
  3471. <!-- <div>清单号:{{ form.fCustomsdeclartion }}</div>-->
  3472. <!-- <div>存放仓库:{{ stockName }}</div>-->
  3473. <!-- <div>净重:{{ (form.fPlannetweight / 1000).toFixed(2) }}</div>-->
  3474. <!-- </div>-->
  3475. <!-- </div>-->
  3476. <!-- <div class="print_table" style="display: flex">-->
  3477. <!-- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">-->
  3478. <!-- <tr>-->
  3479. <!-- <td>箱号</td>-->
  3480. <!-- <td>铅封号</td>-->
  3481. <!-- <td>预计件数</td>-->
  3482. <!-- <td>实际件数</td>-->
  3483. <!-- <td>库位</td>-->
  3484. <!-- <td>实际入库日期</td>-->
  3485. <!-- <td>送货车号</td>-->
  3486. <!-- <td>送货司机</td>-->
  3487. <!-- <td>备注</td>-->
  3488. <!-- </tr>-->
  3489. <!-- <tr v-for="(item, index) in Printinglist" :key="index">-->
  3490. <!-- <td>{{ item.fCntrno }}</td>-->
  3491. <!-- <td>{{ item.fSealno }}</td>-->
  3492. <!-- <td>{{ form.fPlanqty }}</td>-->
  3493. <!-- <td>{{ item.fQty }}</td>-->
  3494. <!-- <td>{{ item.fWarehouseInformation }}</td>-->
  3495. <!-- <td>{{ item.fBsdate }}</td>-->
  3496. <!-- <td>{{ item.fTruckno }}</td>-->
  3497. <!-- <td>{{ item.fDriverName }}</td>-->
  3498. <!-- <td>{{ item.remark }}</td>-->
  3499. <!-- </tr>-->
  3500. <!-- <tr>-->
  3501. <!-- <td colspan="3">合计:</td>-->
  3502. <!-- <td>{{ allfQty }}</td>-->
  3503. <!-- <td></td>-->
  3504. <!-- <td></td>-->
  3505. <!-- <td></td>-->
  3506. <!-- <td></td>-->
  3507. <!-- <td></td>-->
  3508. <!-- </tr>-->
  3509. <!-- </table>-->
  3510. <!-- </div>-->
  3511. <!-- <div-->
  3512. <!-- style="display: flex; justify-content: space-between; font-size: 12px"-->
  3513. <!-- >-->
  3514. <!-- <div>操作:{{ form.createBy }}</div>-->
  3515. <!-- <div>库管:{{ form.fContacts }}</div>-->
  3516. <!-- <div style="width: 100px">叉车:</div>-->
  3517. <!-- </div>-->
  3518. <!-- </div>-->
  3519. <!-- <span slot="footer" class="dialog-footer">-->
  3520. <!-- <el-button-->
  3521. <!-- type="primary"-->
  3522. <!-- :disabled="browseStatus"-->
  3523. <!-- @click="-->
  3524. <!-- addprint('xhcdrkd');-->
  3525. <!-- print_xhcdrkd = false;-->
  3526. <!-- "-->
  3527. <!-- >打印-->
  3528. <!-- </el-button>-->
  3529. <!-- <el-button @click="print_xhcdrkd = false">取消 </el-button>-->
  3530. <!-- </span>-->
  3531. <!-- </el-dialog>-->
  3532. <el-dialog
  3533. :visible.sync="print_zpdkrkd"
  3534. width="70%"
  3535. :close-on-click-modal="false"
  3536. :modal="false"
  3537. >
  3538. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  3539. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  3540. <div id="print_area12" class="print-div">
  3541. <div
  3542. class="print-title"
  3543. style="
  3544. display: flex;
  3545. justify-content: center;
  3546. font-size: 24px;
  3547. margin-bottom: 5px;
  3548. "
  3549. >
  3550. {{ company }}货物标识卡
  3551. </div>
  3552. <div class="print_table" style="display: flex">
  3553. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  3554. <tr>
  3555. <td>货物名称</td>
  3556. <td colspan="2">{{ form.goodName }}</td>
  3557. <td>库位</td>
  3558. <td colspan="2">{{ stockName }}</td>
  3559. </tr>
  3560. <tr>
  3561. <td>提单号</td>
  3562. <td colspan="2">{{ form.fMblno }}</td>
  3563. <td>清单号</td>
  3564. <td colspan="2">{{ form.fCustomsdeclartion }}</td>
  3565. </tr>
  3566. <tr>
  3567. <td>箱号</td>
  3568. <td colspan="2"></td>
  3569. <td>总箱量</td>
  3570. <td colspan="2">{{ container }}</td>
  3571. </tr>
  3572. <tr>
  3573. <td>总件数</td>
  3574. <td colspan="2">{{ form.fPlanqty }}</td>
  3575. <td v-if="radio == 1">总净重(吨)</td>
  3576. <td v-if="radio == 2">总净重(千克)</td>
  3577. <td v-if="radio == 1" colspan="2">{{ (allfNetweight / 1000).toFixed(4) }}</td>
  3578. <td v-if="radio == 2" colspan="2">{{ allfNetweight }}</td>
  3579. </tr>
  3580. <tr>
  3581. <td v-if="radio == 1">总毛重(吨)</td>
  3582. <td v-if="radio == 2">总毛重(千克)</td>
  3583. <td v-if="radio == 1" colspan="2">{{ (allfGrossweight / 1000).toFixed(4) }}</td>
  3584. <td v-if="radio == 2" colspan="2">{{ allfGrossweight }}</td>
  3585. <td v-if="radio == 1">本垛毛重(吨)</td>
  3586. <td v-if="radio == 2">本垛毛重(千克)</td>
  3587. <td v-if="radio == 1" colspan="2">{{ (form.fPlangrossweight / 1000).toFixed(4) }}</td>
  3588. <td v-if="radio == 2" colspan="2">{{ form.fPlangrossweight }}</td>
  3589. </tr>
  3590. <tr>
  3591. <td>本垛件数</td>
  3592. <td colspan="2">{{ form.fPlanqty }}</td>
  3593. <td v-if="radio == 1">本垛净重(吨)</td>
  3594. <td v-if="radio == 2">本垛净重(千克)</td>
  3595. <td v-if="radio == 1" colspan="2">{{ (form.fPlannetweight / 1000).toFixed(4) }}</td>
  3596. <td v-if="radio == 2" colspan="2">{{ form.fPlannetweight }}</td>
  3597. </tr>
  3598. <tr>
  3599. <td>入库日期</td>
  3600. <td colspan="2">{{ form.fBsdate | fBsdateFormat }}</td>
  3601. <td>仓管员</td>
  3602. <td colspan="2">{{ form.createBy }}</td>
  3603. </tr>
  3604. <tr>
  3605. <td>出库日期</td>
  3606. <td>出库件数</td>
  3607. <td>剩余件数</td>
  3608. <td>出库仓管员</td>
  3609. <td>盘点日期</td>
  3610. <td>盘点人</td>
  3611. </tr>
  3612. <tr>
  3613. <td style="height: 20px"></td>
  3614. <td></td>
  3615. <td></td>
  3616. <td></td>
  3617. <td></td>
  3618. <td></td>
  3619. </tr>
  3620. <tr>
  3621. <td style="height: 20px"></td>
  3622. <td></td>
  3623. <td></td>
  3624. <td></td>
  3625. <td></td>
  3626. <td></td>
  3627. </tr>
  3628. <tr>
  3629. <td style="height: 20px"></td>
  3630. <td></td>
  3631. <td></td>
  3632. <td></td>
  3633. <td></td>
  3634. <td></td>
  3635. </tr>
  3636. <tr>
  3637. <td style="height: 20px"></td>
  3638. <td></td>
  3639. <td></td>
  3640. <td></td>
  3641. <td></td>
  3642. <td></td>
  3643. </tr>
  3644. <tr>
  3645. <td style="height: 20px"></td>
  3646. <td></td>
  3647. <td></td>
  3648. <td></td>
  3649. <td></td>
  3650. <td></td>
  3651. </tr>
  3652. <tr>
  3653. <td style="height: 20px"></td>
  3654. <td></td>
  3655. <td></td>
  3656. <td></td>
  3657. <td></td>
  3658. <td></td>
  3659. </tr>
  3660. <tr>
  3661. <td style="height: 20px"></td>
  3662. <td></td>
  3663. <td></td>
  3664. <td></td>
  3665. <td></td>
  3666. <td></td>
  3667. </tr>
  3668. <tr>
  3669. <td style="height: 20px"></td>
  3670. <td></td>
  3671. <td></td>
  3672. <td></td>
  3673. <td></td>
  3674. <td></td>
  3675. </tr>
  3676. <tr>
  3677. <td style="height: 20px"></td>
  3678. <td></td>
  3679. <td></td>
  3680. <td></td>
  3681. <td></td>
  3682. <td></td>
  3683. </tr>
  3684. <tr>
  3685. <td style="height: 20px"></td>
  3686. <td></td>
  3687. <td></td>
  3688. <td></td>
  3689. <td></td>
  3690. <td></td>
  3691. </tr>
  3692. <tr>
  3693. <td style="height: 20px"></td>
  3694. <td></td>
  3695. <td></td>
  3696. <td></td>
  3697. <td></td>
  3698. <td></td>
  3699. </tr>
  3700. <tr>
  3701. <td style="height: 20px"></td>
  3702. <td></td>
  3703. <td></td>
  3704. <td></td>
  3705. <td></td>
  3706. <td></td>
  3707. </tr>
  3708. <tr>
  3709. <td>备注:</td>
  3710. <td colspan="5">{{ form.remark }}</td>
  3711. </tr>
  3712. </table>
  3713. </div>
  3714. <div
  3715. style="display: flex; justify-content: space-between; font-size: 12px"
  3716. >
  3717. <!-- <div>操作:{{ form.createBy }}</div>-->
  3718. <div>库管:{{ form.fContacts }}</div>
  3719. <div style="width: 100px">叉车:</div>
  3720. </div>
  3721. </div>
  3722. <span slot="footer" class="dialog-footer">
  3723. <el-button
  3724. type="primary"
  3725. :disabled="browseStatus"
  3726. @click="
  3727. addprint('zpdkrkd');
  3728. print_zpdkrkd = false;
  3729. "
  3730. >打印
  3731. </el-button>
  3732. <el-button @click="print_zpdkrkd = false">取消 </el-button>
  3733. </span>
  3734. </el-dialog>
  3735. <el-dialog
  3736. :visible.sync="print_ccdzrkd"
  3737. width="70%"
  3738. :close-on-click-modal="false"
  3739. :modal="false"
  3740. >
  3741. <div id="print_area8" class="print-div">
  3742. <div
  3743. class="print-title"
  3744. style="
  3745. display: flex;
  3746. justify-content: center;
  3747. font-size: 24px;
  3748. margin-bottom: 5px;
  3749. "
  3750. >
  3751. {{ company }}
  3752. </div>
  3753. <div style="display:flex;flex-direction: column;margin-left: 70%">
  3754. <div>{{ form.fBillno }}</div>
  3755. <div>存货地点:{{ stockName }}</div>
  3756. </div>
  3757. <div class="print_table" style="display: flex">
  3758. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  3759. <tr>
  3760. <td>品名</td>
  3761. <td colspan="3">{{ form.goodName }}</td>
  3762. <td colspan="2">清单号</td>
  3763. <td colspan="3">{{ form.fCustomsdeclartion }}</td>
  3764. </tr>
  3765. <tr>
  3766. <td class="oneHundredSix" style="width: 160px;">入库日期</td>
  3767. <td class="twoHundred" style="width: 200px;">箱号</td>
  3768. <td>铅封号</td>
  3769. <td>预计件数</td>
  3770. <td>垛位</td>
  3771. <td>实收件数</td>
  3772. <td class="oneHundred" style="width: 100px;">实收净重(吨)</td>
  3773. <td class="oneHundred" style="width: 100px;">毛重(吨)</td>
  3774. <td class="twoHundred" style="width: 200px;">备注</td>
  3775. </tr>
  3776. <tr v-for="(item, index) in Printinglist" :key="index">
  3777. <td>{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>
  3778. <td>{{ item.fCntrno }}</td>
  3779. <td>{{ item.fSealno }}</td>
  3780. <td>{{ item.fQty }}</td>
  3781. <td>{{ item.fWarehouseInformation }}</td>
  3782. <td>{{ item.fQty }}</td>
  3783. <td>{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  3784. <td>{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  3785. <td>{{ item.remark }}</td>
  3786. </tr>
  3787. <tr>
  3788. <td>合计:</td>
  3789. <td></td>
  3790. <td></td>
  3791. <td></td>
  3792. <td></td>
  3793. <td>{{ allfQty.toFixed(0) }}</td>
  3794. <td>{{ (allfNetweight / 1000).toFixed(4) }}</td>
  3795. <td>{{ (allfGrossweight / 1000).toFixed(4) }}</td>
  3796. <td></td>
  3797. </tr>
  3798. </table>
  3799. </div>
  3800. <div
  3801. style="display: flex; justify-content: space-between; font-size: 12px"
  3802. >
  3803. <!-- <div>操作:{{ form.createBy }}</div>-->
  3804. <div>库管:{{ form.fContacts }}</div>
  3805. <div style="width: 100px">叉车:</div>
  3806. </div>
  3807. </div>
  3808. <span slot="footer" class="dialog-footer">
  3809. <el-button
  3810. type="primary"
  3811. :disabled="browseStatus"
  3812. @click="
  3813. addprint('ccdzrkd');
  3814. print_ccdzrkd = false;
  3815. "
  3816. >打印
  3817. </el-button>
  3818. <el-button @click="print_ccdzrkd = false">取消 </el-button>
  3819. </span>
  3820. </el-dialog>
  3821. <el-dialog
  3822. :visible.sync="print_fxdkrkd"
  3823. width="70%"
  3824. :close-on-click-modal="false"
  3825. :modal="false"
  3826. >
  3827. <div id="print_area9" class="print-div">
  3828. <div
  3829. class="print-title"
  3830. style="
  3831. display: flex;
  3832. justify-content: center;
  3833. font-size: 24px;
  3834. margin-bottom: 5px;
  3835. "
  3836. >
  3837. {{ company }}货物标识卡
  3838. </div>
  3839. <div class="print_table" style="display: flex">
  3840. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%" v-for="(item, index) in Printinglist"
  3841. :key="index">
  3842. <tr>
  3843. <td>货物名称</td>
  3844. <td colspan="2">{{ form.goodName }}</td>
  3845. <td>库位</td>
  3846. <td colspan="2">{{ form.fWarehouseInformation }}</td>
  3847. </tr>
  3848. <tr>
  3849. <td>提单号</td>
  3850. <td colspan="2">{{ form.fMblno }}</td>
  3851. <td>清单号</td>
  3852. <td colspan="2">{{ form.fCustomsdeclartion }}</td>
  3853. </tr>
  3854. <tr>
  3855. <td>箱号</td>
  3856. <td colspan="2">{{ item.fCntrno }}</td>
  3857. <td>总箱量</td>
  3858. <td colspan="2">{{ item.fCntqty }}</td>
  3859. </tr>
  3860. <tr>
  3861. <td>总件数</td>
  3862. <td colspan="2">{{ item.fQty }}</td>
  3863. <td>总净重</td>
  3864. <td colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  3865. </tr>
  3866. <tr>
  3867. <td>总毛重</td>
  3868. <td colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  3869. <td>本垛毛重</td>
  3870. <td colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  3871. </tr>
  3872. <tr>
  3873. <td>本垛件数</td>
  3874. <td colspan="2">{{ item.fQty }}</td>
  3875. <td>本垛净重</td>
  3876. <td colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  3877. </tr>
  3878. <tr>
  3879. <td>入库日期</td>
  3880. <td colspan="2">{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>
  3881. <td>仓管员</td>
  3882. <td colspan="2">{{ form.createBy }}</td>
  3883. </tr>
  3884. <tr>
  3885. <td>出库日期</td>
  3886. <td>出库件数</td>
  3887. <td>剩余件数</td>
  3888. <td>出库仓管员</td>
  3889. <td>盘点日期</td>
  3890. <td>盘点人</td>
  3891. </tr>
  3892. <tr>
  3893. <td style="height:20px"></td>
  3894. <td></td>
  3895. <td></td>
  3896. <td></td>
  3897. <td></td>
  3898. <td></td>
  3899. </tr>
  3900. <tr>
  3901. <td style="height:20px"></td>
  3902. <td></td>
  3903. <td></td>
  3904. <td></td>
  3905. <td></td>
  3906. <td></td>
  3907. </tr>
  3908. <tr>
  3909. <td style="height:20px"></td>
  3910. <td></td>
  3911. <td></td>
  3912. <td></td>
  3913. <td></td>
  3914. <td></td>
  3915. </tr>
  3916. <tr>
  3917. <td style="height:20px"></td>
  3918. <td></td>
  3919. <td></td>
  3920. <td></td>
  3921. <td></td>
  3922. <td></td>
  3923. </tr>
  3924. <tr>
  3925. <td style="height:20px"></td>
  3926. <td></td>
  3927. <td></td>
  3928. <td></td>
  3929. <td></td>
  3930. <td></td>
  3931. </tr>
  3932. <tr>
  3933. <td style="height:20px"></td>
  3934. <td></td>
  3935. <td></td>
  3936. <td></td>
  3937. <td></td>
  3938. <td></td>
  3939. </tr>
  3940. <tr>
  3941. <td style="height:20px"></td>
  3942. <td></td>
  3943. <td></td>
  3944. <td></td>
  3945. <td></td>
  3946. <td></td>
  3947. </tr>
  3948. <tr>
  3949. <td style="height:20px"></td>
  3950. <td></td>
  3951. <td></td>
  3952. <td></td>
  3953. <td></td>
  3954. <td></td>
  3955. </tr>
  3956. <tr>
  3957. <td style="height:20px"></td>
  3958. <td></td>
  3959. <td></td>
  3960. <td></td>
  3961. <td></td>
  3962. <td></td>
  3963. </tr>
  3964. <tr>
  3965. <td style="height:20px"></td>
  3966. <td></td>
  3967. <td></td>
  3968. <td></td>
  3969. <td></td>
  3970. <td></td>
  3971. </tr>
  3972. <tr>
  3973. <td style="height:20px"></td>
  3974. <td></td>
  3975. <td></td>
  3976. <td></td>
  3977. <td></td>
  3978. <td></td>
  3979. </tr>
  3980. <tr>
  3981. <td style="height:20px"></td>
  3982. <td></td>
  3983. <td></td>
  3984. <td></td>
  3985. <td></td>
  3986. <td></td>
  3987. </tr>
  3988. <tr>
  3989. <td>备注:</td>
  3990. <td colspan="5">{{ form.remark }}</td>
  3991. </tr>
  3992. </table>
  3993. </div>
  3994. <div
  3995. style="display: flex; justify-content: space-between; font-size: 12px"
  3996. >
  3997. <!-- <div>操作:{{ form.createBy }}</div>-->
  3998. <div>库管:{{ form.fContacts }}</div>
  3999. <div style="width: 100px">叉车:</div>
  4000. </div>
  4001. </div>
  4002. <span slot="footer" class="dialog-footer">
  4003. <el-button
  4004. type="primary"
  4005. :disabled="browseStatus"
  4006. @click="
  4007. addprint('fxdkrkd');
  4008. print_fxdkrkd = false;
  4009. "
  4010. >打印
  4011. </el-button>
  4012. <el-button @click="print_fxdkrkd = false">取消 </el-button>
  4013. </span>
  4014. </el-dialog>
  4015. <el-dialog
  4016. :visible.sync="print_khrkd"
  4017. width="70%"
  4018. :close-on-click-modal="false"
  4019. :modal="false"
  4020. >
  4021. <div id="print_area10" class="print-div">
  4022. <div
  4023. class="print-title"
  4024. style="
  4025. display: flex;
  4026. justify-content: center;
  4027. font-size: 24px;
  4028. margin-bottom: 5px;
  4029. "
  4030. >
  4031. {{ company }}
  4032. </div>
  4033. <div
  4034. style="
  4035. display: flex;
  4036. justify-content: center;
  4037. font-size: 18px;
  4038. margin-bottom: 5px;
  4039. "
  4040. >
  4041. <div>入&nbsp;库&nbsp;单</div>
  4042. </div>
  4043. <div
  4044. style="
  4045. display: flex;
  4046. justify-content: space-between;
  4047. margin-bottom: 5px;
  4048. "
  4049. class="print_form"
  4050. >
  4051. <div>客户名称:{{ form.fCorpidName }}</div>
  4052. <div>存货地点:{{ stockName }}</div>
  4053. </div>
  4054. <div class="print_table" style="display: flex">
  4055. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  4056. <tr>
  4057. <td>序号</td>
  4058. <td>实际入库日期</td>
  4059. <td>商品名称</td>
  4060. <td>提单号</td>
  4061. <td>箱号</td>
  4062. <td>件数</td>
  4063. <td>毛重(吨)</td>
  4064. <td>净重(吨)</td>
  4065. <td>备注</td>
  4066. </tr>
  4067. <tr v-for="(item, index) in Printinglist" :key="index">
  4068. <td>{{ index + 1 }}</td>
  4069. <td>{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>
  4070. <td>{{ item.fGoodsids }}</td>
  4071. <td>{{ item.fMblno }}</td>
  4072. <td>{{ item.fCntrno }}</td>
  4073. <td>{{ item.fQty }}</td>
  4074. <td>{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  4075. <td>{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  4076. <td>{{ item.remark }}</td>
  4077. </tr>
  4078. <tr>
  4079. <td>合计:</td>
  4080. <td></td>
  4081. <td></td>
  4082. <td></td>
  4083. <td></td>
  4084. <td>{{ allfQty.toFixed(0) }}</td>
  4085. <td>{{ (allfGrossweight / 1000).toFixed(4) }}</td>
  4086. <td>{{ (allfNetweight / 1000).toFixed(4) }}</td>
  4087. <td></td>
  4088. </tr>
  4089. </table>
  4090. </div>
  4091. <div
  4092. style="display: flex; justify-content: space-between; font-size: 12px"
  4093. >
  4094. <!-- <div>操作:{{ form.createBy }}</div>-->
  4095. <div>库管:{{ form.fContacts }}</div>
  4096. <div style="width: 100px">叉车:</div>
  4097. </div>
  4098. </div>
  4099. <span slot="footer" class="dialog-footer">
  4100. <el-button
  4101. type="primary"
  4102. :disabled="browseStatus"
  4103. @click="
  4104. addprint('khrkd');
  4105. print_khrkd = false;
  4106. "
  4107. >打印
  4108. </el-button>
  4109. <el-button @click="print_khrkd = false">取消 </el-button>
  4110. </span>
  4111. </el-dialog>
  4112. <!-- <el-dialog-->
  4113. <!-- :visible.sync="print_xhcdrkd"-->
  4114. <!-- width="70%"-->
  4115. <!-- :close-on-click-modal="false"-->
  4116. <!-- :modal="false"-->
  4117. <!-- >-->
  4118. <!-- <div id="print_area11" class="print-div">-->
  4119. <!-- <div-->
  4120. <!-- class="print-title"-->
  4121. <!-- style="-->
  4122. <!-- display: flex;-->
  4123. <!-- justify-content: center;-->
  4124. <!-- font-size: 24px;-->
  4125. <!-- margin-bottom: 5px;-->
  4126. <!-- "-->
  4127. <!-- >-->
  4128. <!-- {{ company }}入库单-->
  4129. <!-- </div>-->
  4130. <!-- <div-->
  4131. <!-- style="-->
  4132. <!-- display: flex;-->
  4133. <!-- justify-content: space-between;-->
  4134. <!-- margin-bottom: 5px;-->
  4135. <!-- "-->
  4136. <!-- class="print_form"-->
  4137. <!-- >-->
  4138. <!-- <div>-->
  4139. <!-- <div>提单号:{{ form.fMblno }}</div>-->
  4140. <!-- <div>客户名称:{{ form.fCorpidName }}</div>-->
  4141. <!-- <div>货物名称:{{ form.fProductName }}</div>-->
  4142. <!-- <div>件数:{{ form.fPlanqty }}</div>-->
  4143. <!-- </div>-->
  4144. <!-- <div>-->
  4145. <!-- <div>系统编号:{{ form.fBillno }}</div>-->
  4146. <!-- <div>计划入库日期:{{ form.fBsdate }}&nbsp;{{ timeOut }}</div>-->
  4147. <!-- <div>制单日期:{{ form.createTime }}</div>-->
  4148. <!-- <div>毛重:{{(form.fPlangrossweight/1000).toFixed(2)}}</div>-->
  4149. <!-- </div>-->
  4150. <!-- <div>-->
  4151. <!-- <div>清单号:{{ form.fCustomsdeclartion }}</div>-->
  4152. <!-- <div>存放仓库:{{ stockName }}</div>-->
  4153. <!-- <div>净重:{{(form.fPlannetweight/1000).toFixed(2)}}</div>-->
  4154. <!-- </div>-->
  4155. <!-- </div>-->
  4156. <!-- <div class="print_table" style="display: flex">-->
  4157. <!-- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">-->
  4158. <!-- <tr>-->
  4159. <!-- <td>品名</td>-->
  4160. <!-- <td colspan="3">{{ form.fProductName }}</td>-->
  4161. <!-- <td colspan="3">清单号</td>-->
  4162. <!-- <td colspan="2">{{ form.fCustomno }}</td>-->
  4163. <!-- </tr>-->
  4164. <!-- <tr>-->
  4165. <!-- <td>提单号</td>-->
  4166. <!-- <td colspan="8">{{ form.fMblno }}</td>-->
  4167. <!-- </tr>-->
  4168. <!-- <tr>-->
  4169. <!-- <td>入库日期</td>-->
  4170. <!-- <td>箱号</td>-->
  4171. <!-- <td>铅封号</td>-->
  4172. <!-- <td>预计件数</td>-->
  4173. <!-- <td>垛位</td>-->
  4174. <!-- <td>实收件数</td>-->
  4175. <!-- <td>实收净重(吨)</td>-->
  4176. <!-- <td>毛重(吨)</td>-->
  4177. <!-- <td>备注</td>-->
  4178. <!-- </tr>-->
  4179. <!-- <tr v-for="(item, index) in Printinglist" :key="index">-->
  4180. <!-- <td>{{ item.fChargedate }}</td>-->
  4181. <!-- <td>{{ item.fCntrno }}</td>-->
  4182. <!-- <td></td>-->
  4183. <!-- <td>{{ item.fQty }}</td>-->
  4184. <!-- <td>{{ item.fWarehouseInformation }}</td>-->
  4185. <!-- <td></td>-->
  4186. <!-- <td></td>-->
  4187. <!-- <td></td>-->
  4188. <!-- <td>{{ item.remark }}</td>-->
  4189. <!-- </tr>-->
  4190. <!-- </table>-->
  4191. <!-- </div>-->
  4192. <!-- <div-->
  4193. <!-- style="display: flex; justify-content: space-between; font-size: 12px"-->
  4194. <!-- >-->
  4195. <!-- <div>库管:{{ form.fContacts }}</div>-->
  4196. <!-- <div style="width: 100px">叉车:</div>-->
  4197. <!-- </div>-->
  4198. <!-- </div>-->
  4199. <!-- <span slot="footer" class="dialog-footer">-->
  4200. <!-- <el-button-->
  4201. <!-- type="primary"-->
  4202. <!-- @click="-->
  4203. <!-- addprint('lwqr');-->
  4204. <!-- print_lwqr = false;-->
  4205. <!-- "-->
  4206. <!-- >打印-->
  4207. <!-- </el-button>-->
  4208. <!-- <el-button @click="print_lwqr = false">取消 </el-button>-->
  4209. <!-- </span>-->
  4210. <!-- </el-dialog>-->
  4211. <el-dialog
  4212. :visible.sync="print_dpxx"
  4213. width="70%"
  4214. :close-on-click-modal="false"
  4215. :modal="false"
  4216. >
  4217. <div id="print_area13" class="print-div">
  4218. <div
  4219. class="print-title"
  4220. style="
  4221. display: flex;
  4222. justify-content: center;
  4223. font-size: 24px;
  4224. margin-bottom: 5px;
  4225. "
  4226. >
  4227. {{ company }}货物标识卡
  4228. </div>
  4229. <div
  4230. style="
  4231. display: flex;
  4232. justify-content: center;
  4233. font-size: 18px;
  4234. margin-bottom: 5px;
  4235. "
  4236. >
  4237. <div>入&nbsp;库&nbsp;计&nbsp;划&nbsp;单</div>
  4238. </div>
  4239. <div class="print_table" style="display: flex">
  4240. <table
  4241. border="0"
  4242. cellspacing="0"
  4243. cellpadding="0"
  4244. style="width: 100%; line-height: 30px"
  4245. >
  4246. <tr>
  4247. <td>货物名称</td>
  4248. <td colspan="2">{{ form.fProductName }}</td>
  4249. <td>库位</td>
  4250. <td colspan="2">{{ stockName }}</td>
  4251. </tr>
  4252. <tr>
  4253. <td>提单号</td>
  4254. <td colspan="2">{{ form.fMblno }}</td>
  4255. <td>清单号</td>
  4256. <td colspan="2">{{ form.fCustomno }}</td>
  4257. </tr>
  4258. <tr>
  4259. <td>箱号</td>
  4260. <td colspan="2"></td>
  4261. <td>总箱量</td>
  4262. <td colspan="2"></td>
  4263. </tr>
  4264. <tr>
  4265. <td>总件数</td>
  4266. <td colspan="2">{{ form.fPlanqty }}</td>
  4267. <td>总净重</td>
  4268. <td colspan="2">{{ form.fPlannetweight }}</td>
  4269. </tr>
  4270. <tr>
  4271. <td>总毛重</td>
  4272. <td colspan="2">{{ form.fPlangrossweight }}</td>
  4273. <td>本垛件数</td>
  4274. <td colspan="2">{{ allfQty }}</td>
  4275. </tr>
  4276. <tr>
  4277. <td>本垛净重</td>
  4278. <td colspan="2">{{ allfGrossweight }}</td>
  4279. <td>本垛毛重</td>
  4280. <td colspan="2">{{ allfNetweight }}</td>
  4281. </tr>
  4282. <tr>
  4283. <td>入库日期</td>
  4284. <td colspan="2">{{ form.fBstime }}</td>
  4285. <td>仓管员</td>
  4286. <td colspan="2">{{ form.fContacts }}</td>
  4287. </tr>
  4288. <tr>
  4289. <td>出库日期</td>
  4290. <td>出库件数</td>
  4291. <td>剩余件数</td>
  4292. <td>出库仓管员</td>
  4293. <td>盘点日期</td>
  4294. <td>盘点人</td>
  4295. </tr>
  4296. <tr style="height: 17.8px" v-for="(item, index) in 10" :key="index">
  4297. <td></td>
  4298. <td></td>
  4299. <td></td>
  4300. <td></td>
  4301. <td></td>
  4302. <td></td>
  4303. </tr>
  4304. <tr style="height: 50px">
  4305. <td>备注</td>
  4306. <td colspan="5"></td>
  4307. </tr>
  4308. </table>
  4309. </div>
  4310. </div>
  4311. <span slot="footer" class="dialog-footer">
  4312. <el-button
  4313. type="primary"
  4314. @click="
  4315. addprint('dpxx');
  4316. print_dpxx = false;
  4317. "
  4318. >打印
  4319. </el-button>
  4320. <el-button @click="print_dpxx = false">取消 </el-button>
  4321. </span>
  4322. </el-dialog>
  4323. <el-dialog
  4324. :visible.sync="print_fxdkrkd"
  4325. width="70%"
  4326. :close-on-click-modal="false"
  4327. :modal="false"
  4328. >
  4329. <div id="print_area9" class="print-div">
  4330. <div
  4331. class="print-title"
  4332. style="
  4333. display: flex;
  4334. justify-content: center;
  4335. font-size: 24px;
  4336. margin-bottom: 5px;
  4337. "
  4338. >
  4339. {{ company }}货物标识卡
  4340. </div>
  4341. <div class="print_table" style="display: flex">
  4342. <table
  4343. border="0"
  4344. cellspacing="0"
  4345. cellpadding="0"
  4346. style="width: 100%"
  4347. v-for="(item, index) in Printinglist"
  4348. :key="index"
  4349. >
  4350. <tr>
  4351. <td>货物名称</td>
  4352. <td colspan="2">{{ form.goodName }}</td>
  4353. <td>库位</td>
  4354. <td colspan="2">{{ form.fWarehouseInformation }}</td>
  4355. </tr>
  4356. <tr>
  4357. <td>提单号</td>
  4358. <td colspan="2">{{ form.fMblno }}</td>
  4359. <td>清单号</td>
  4360. <td colspan="2">{{ form.fCustomsdeclartion }}</td>
  4361. </tr>
  4362. <tr>
  4363. <td>箱号</td>
  4364. <td colspan="2">{{ item.fCntrno }}</td>
  4365. <td>总箱量</td>
  4366. <td colspan="2">{{ item.fCntqty }}</td>
  4367. </tr>
  4368. <tr>
  4369. <td>总件数</td>
  4370. <td colspan="2">{{ item.fQty }}</td>
  4371. <td>总净重</td>
  4372. <td colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  4373. </tr>
  4374. <tr>
  4375. <td>总毛重</td>
  4376. <td colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  4377. <td>本垛毛重</td>
  4378. <td colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  4379. </tr>
  4380. <tr>
  4381. <td>本垛件数</td>
  4382. <td colspan="2">{{ item.fQty }}</td>
  4383. <td>本垛净重</td>
  4384. <td colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  4385. </tr>
  4386. <tr>
  4387. <td>入库日期</td>
  4388. <td colspan="2">{{ item.fBsdate }}</td>
  4389. <td>仓管员</td>
  4390. <td colspan="2">{{ form.createBy }}</td>
  4391. </tr>
  4392. <tr>
  4393. <td>出库日期</td>
  4394. <td>出库件数</td>
  4395. <td>剩余件数</td>
  4396. <td>出库仓管员</td>
  4397. <td>盘点日期</td>
  4398. <td>盘点人</td>
  4399. </tr>
  4400. <tr>
  4401. <td style="height: 20px"></td>
  4402. <td></td>
  4403. <td></td>
  4404. <td></td>
  4405. <td></td>
  4406. <td></td>
  4407. </tr>
  4408. <tr>
  4409. <td style="height: 20px"></td>
  4410. <td></td>
  4411. <td></td>
  4412. <td></td>
  4413. <td></td>
  4414. <td></td>
  4415. </tr>
  4416. <tr>
  4417. <td style="height: 20px"></td>
  4418. <td></td>
  4419. <td></td>
  4420. <td></td>
  4421. <td></td>
  4422. <td></td>
  4423. </tr>
  4424. <tr>
  4425. <td style="height: 20px"></td>
  4426. <td></td>
  4427. <td></td>
  4428. <td></td>
  4429. <td></td>
  4430. <td></td>
  4431. </tr>
  4432. <tr>
  4433. <td style="height: 20px"></td>
  4434. <td></td>
  4435. <td></td>
  4436. <td></td>
  4437. <td></td>
  4438. <td></td>
  4439. </tr>
  4440. <tr>
  4441. <td style="height: 20px"></td>
  4442. <td></td>
  4443. <td></td>
  4444. <td></td>
  4445. <td></td>
  4446. <td></td>
  4447. </tr>
  4448. <tr>
  4449. <td style="height: 20px"></td>
  4450. <td></td>
  4451. <td></td>
  4452. <td></td>
  4453. <td></td>
  4454. <td></td>
  4455. </tr>
  4456. <tr>
  4457. <td style="height: 20px"></td>
  4458. <td></td>
  4459. <td></td>
  4460. <td></td>
  4461. <td></td>
  4462. <td></td>
  4463. </tr>
  4464. <tr>
  4465. <td style="height: 20px"></td>
  4466. <td></td>
  4467. <td></td>
  4468. <td></td>
  4469. <td></td>
  4470. <td></td>
  4471. </tr>
  4472. <tr>
  4473. <td style="height: 20px"></td>
  4474. <td></td>
  4475. <td></td>
  4476. <td></td>
  4477. <td></td>
  4478. <td></td>
  4479. </tr>
  4480. <tr>
  4481. <td style="height: 20px"></td>
  4482. <td></td>
  4483. <td></td>
  4484. <td></td>
  4485. <td></td>
  4486. <td></td>
  4487. </tr>
  4488. <tr>
  4489. <td style="height: 20px"></td>
  4490. <td></td>
  4491. <td></td>
  4492. <td></td>
  4493. <td></td>
  4494. <td></td>
  4495. </tr>
  4496. <tr>
  4497. <td>备注:</td>
  4498. <td colspan="5">{{ form.remark }}</td>
  4499. </tr>
  4500. </table>
  4501. </div>
  4502. <div
  4503. style="display: flex; justify-content: space-between; font-size: 12px"
  4504. >
  4505. <!-- <div>操作:{{ form.createBy }}</div>-->
  4506. <div>库管:{{ form.fContacts }}</div>
  4507. <div style="width: 100px">叉车:</div>
  4508. </div>
  4509. </div>
  4510. <span slot="footer" class="dialog-footer">
  4511. <el-button
  4512. type="primary"
  4513. :disabled="browseStatus"
  4514. @click="
  4515. addprint('fxdkrkd');
  4516. print_fxdkrkd = false;
  4517. "
  4518. >打印
  4519. </el-button>
  4520. <el-button @click="print_fxdkrkd = false">取消 </el-button>
  4521. </span>
  4522. </el-dialog>
  4523. <el-dialog
  4524. :visible.sync="print_khrkd"
  4525. width="70%"
  4526. :close-on-click-modal="false"
  4527. :modal="false"
  4528. >
  4529. <div id="print_area10" class="print-div">
  4530. <div
  4531. class="print-title"
  4532. style="
  4533. display: flex;
  4534. justify-content: center;
  4535. font-size: 24px;
  4536. margin-bottom: 5px;
  4537. "
  4538. >
  4539. {{ company }}
  4540. </div>
  4541. <div
  4542. style="
  4543. display: flex;
  4544. justify-content: center;
  4545. font-size: 18px;
  4546. margin-bottom: 5px;
  4547. "
  4548. >
  4549. <div>入&nbsp;库&nbsp;单</div>
  4550. </div>
  4551. <div
  4552. style="
  4553. display: flex;
  4554. justify-content: space-between;
  4555. margin-bottom: 5px;
  4556. "
  4557. class="print_form"
  4558. >
  4559. <div>客户名称:{{ form.fCorpidName }}</div>
  4560. <div>存货地点:{{ stockName }}</div>
  4561. </div>
  4562. <div class="print_table" style="display: flex">
  4563. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  4564. <tr>
  4565. <td>序号</td>
  4566. <td>实际入库日期</td>
  4567. <td>商品名称</td>
  4568. <td>提单号</td>
  4569. <td>箱号</td>
  4570. <td>件数</td>
  4571. <td>毛重(吨)</td>
  4572. <td>净重(吨)</td>
  4573. <td>备注</td>
  4574. </tr>
  4575. <tr v-for="(item, index) in Printinglist" :key="index">
  4576. <td>{{ index + 1 }}</td>
  4577. <td>{{ item.fBsdate }}</td>
  4578. <td>{{ item.fGoodsids }}</td>
  4579. <td>{{ item.fMblno }}</td>
  4580. <td>{{ item.fCntrno }}</td>
  4581. <td>{{ item.fQty }}</td>
  4582. <td>{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  4583. <td>{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  4584. <td>{{ item.remark }}</td>
  4585. </tr>
  4586. <tr>
  4587. <td>合计:</td>
  4588. <td></td>
  4589. <td></td>
  4590. <td></td>
  4591. <td></td>
  4592. <td>{{ allfQty.toFixed(0) }}</td>
  4593. <td>{{ (allfNetweight / 1000).toSuperFixed(4) }}</td>
  4594. <td>{{ (allfGrossweight / 1000).toSuperFixed(4) }}</td>
  4595. <td></td>
  4596. </tr>
  4597. </table>
  4598. </div>
  4599. <div
  4600. style="display: flex; justify-content: space-between; font-size: 12px"
  4601. >
  4602. <!-- <div>操作:{{ form.createBy }}</div>-->
  4603. <div>库管:{{ form.fContacts }}</div>
  4604. <div style="width: 100px">叉车:</div>
  4605. </div>
  4606. </div>
  4607. <span slot="footer" class="dialog-footer">
  4608. <el-button
  4609. type="primary"
  4610. :disabled="browseStatus"
  4611. @click="
  4612. addprint('khrkd');
  4613. print_khrkd = false;
  4614. "
  4615. >打印
  4616. </el-button>
  4617. <el-button @click="print_khrkd = false">取消 </el-button>
  4618. </span>
  4619. </el-dialog>
  4620. <!-- <el-dialog-->
  4621. <!-- :visible.sync="print_xhcdrkd"-->
  4622. <!-- width="70%"-->
  4623. <!-- :close-on-click-modal="false"-->
  4624. <!-- :modal="false"-->
  4625. <!-- >-->
  4626. <!-- <div id="print_area11" class="print-div">-->
  4627. <!-- <div-->
  4628. <!-- class="print-title"-->
  4629. <!-- style="-->
  4630. <!-- display: flex;-->
  4631. <!-- justify-content: center;-->
  4632. <!-- font-size: 24px;-->
  4633. <!-- margin-bottom: 5px;-->
  4634. <!-- "-->
  4635. <!-- >-->
  4636. <!-- {{ company }}入库单-->
  4637. <!-- </div>-->
  4638. <!-- <div-->
  4639. <!-- style="-->
  4640. <!-- display: flex;-->
  4641. <!-- justify-content: space-between;-->
  4642. <!-- margin-bottom: 5px;-->
  4643. <!-- "-->
  4644. <!-- class="print_form"-->
  4645. <!-- >-->
  4646. <!-- <div>-->
  4647. <!-- <div>提单号:{{ form.fMblno }}</div>-->
  4648. <!-- <div>客户名称:{{ form.fCorpidName }}</div>-->
  4649. <!-- <div>货物名称:{{ form.fProductName }}</div>-->
  4650. <!-- <div>件数:{{ form.fPlanqty }}</div>-->
  4651. <!-- </div>-->
  4652. <!-- <div>-->
  4653. <!-- <div>系统编号:{{ form.fBillno }}</div>-->
  4654. <!-- <div>计划入库日期:{{ form.fBsdate }}</div>-->
  4655. <!-- <div>制单日期:{{ form.createTime }}</div>-->
  4656. <!-- <div>毛重:{{ (form.fPlangrossweight / 1000).toFixed(2) }}</div>-->
  4657. <!-- </div>-->
  4658. <!-- <div>-->
  4659. <!-- <div>清单号:{{ form.fCustomsdeclartion }}</div>-->
  4660. <!-- <div>存放仓库:{{ stockName }}</div>-->
  4661. <!-- <div>净重:{{ (form.fPlannetweight / 1000).toFixed(2) }}</div>-->
  4662. <!-- </div>-->
  4663. <!-- </div>-->
  4664. <!-- <div class="print_table" style="display: flex">-->
  4665. <!-- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">-->
  4666. <!-- <tr>-->
  4667. <!-- <td>箱号</td>-->
  4668. <!-- <td>铅封号</td>-->
  4669. <!-- <td>预计件数</td>-->
  4670. <!-- <td>实际件数</td>-->
  4671. <!-- <td>库位</td>-->
  4672. <!-- <td>实际入库日期</td>-->
  4673. <!-- <td>送货车号</td>-->
  4674. <!-- <td>送货司机</td>-->
  4675. <!-- <td>备注</td>-->
  4676. <!-- </tr>-->
  4677. <!-- <tr v-for="(item, index) in Printinglist" :key="index">-->
  4678. <!-- <td>{{ item.fCntrno }}</td>-->
  4679. <!-- <td>{{ item.fSealno }}</td>-->
  4680. <!-- <td>{{ form.fPlanqty }}</td>-->
  4681. <!-- <td>{{ item.fQty }}</td>-->
  4682. <!-- <td>{{ item.fWarehouseInformation }}</td>-->
  4683. <!-- <td>{{ item.fBsdate }}</td>-->
  4684. <!-- <td>{{ item.fTruckno }}</td>-->
  4685. <!-- <td>{{ item.fDriverName }}</td>-->
  4686. <!-- <td>{{ item.remark }}</td>-->
  4687. <!-- </tr>-->
  4688. <!-- <tr>-->
  4689. <!-- <td colspan="3">合计:</td>-->
  4690. <!-- <td>{{ allfQty }}</td>-->
  4691. <!-- <td></td>-->
  4692. <!-- <td></td>-->
  4693. <!-- <td></td>-->
  4694. <!-- <td></td>-->
  4695. <!-- <td></td>-->
  4696. <!-- </tr>-->
  4697. <!-- </table>-->
  4698. <!-- </div>-->
  4699. <!-- <div-->
  4700. <!-- style="display: flex; justify-content: space-between; font-size: 12px"-->
  4701. <!-- >-->
  4702. <!-- <div>操作:{{ form.createBy }}</div>-->
  4703. <!-- <div>库管:{{ form.fContacts }}</div>-->
  4704. <!-- <div style="width: 100px">叉车:</div>-->
  4705. <!-- </div>-->
  4706. <!-- </div>-->
  4707. <!-- <span slot="footer" class="dialog-footer">-->
  4708. <!-- <el-button-->
  4709. <!-- type="primary"-->
  4710. <!-- :disabled="browseStatus"-->
  4711. <!-- @click="-->
  4712. <!-- addprint('xhcdrkd');-->
  4713. <!-- print_xhcdrkd = false;-->
  4714. <!-- "-->
  4715. <!-- >打印-->
  4716. <!-- </el-button>-->
  4717. <!-- <el-button @click="print_xhcdrkd = false">取消 </el-button>-->
  4718. <!-- </span>-->
  4719. <!-- </el-dialog>-->
  4720. <!-- <el-dialog-->
  4721. <!-- :visible.sync="print_zpdkrkd"-->
  4722. <!-- width="70%"-->
  4723. <!-- :close-on-click-modal="false"-->
  4724. <!-- :modal="false"-->
  4725. <!-- >-->
  4726. <!-- <div id="print_area12" class="print-div">-->
  4727. <!-- <div-->
  4728. <!-- class="print-title"-->
  4729. <!-- style="-->
  4730. <!-- display: flex;-->
  4731. <!-- justify-content: center;-->
  4732. <!-- font-size: 24px;-->
  4733. <!-- margin-bottom: 5px;-->
  4734. <!-- "-->
  4735. <!-- >-->
  4736. <!-- {{ company }}货物标识卡-->
  4737. <!-- </div>-->
  4738. <!-- <div class="print_table" style="display: flex">-->
  4739. <!-- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">-->
  4740. <!-- <tr>-->
  4741. <!-- <td>货物名称</td>-->
  4742. <!-- <td colspan="2">{{ form.goodName }}</td>-->
  4743. <!-- <td>库位</td>-->
  4744. <!-- <td colspan="2">{{ stockName }}</td>-->
  4745. <!-- </tr>-->
  4746. <!-- <tr>-->
  4747. <!-- <td>提单号</td>-->
  4748. <!-- <td colspan="2">{{ form.fMblno }}</td>-->
  4749. <!-- <td>清单号</td>-->
  4750. <!-- <td colspan="2">{{ form.fCustomsdeclartion }}</td>-->
  4751. <!-- </tr>-->
  4752. <!-- <tr>-->
  4753. <!-- <td>箱号</td>-->
  4754. <!-- <td colspan="2"></td>-->
  4755. <!-- <td>总箱量</td>-->
  4756. <!-- <td colspan="2">{{ container }}</td>-->
  4757. <!-- </tr>-->
  4758. <!-- <tr>-->
  4759. <!-- <td>总件数</td>-->
  4760. <!-- <td colspan="2">{{ form.fPlanqty }}</td>-->
  4761. <!-- <td>总净重</td>-->
  4762. <!-- <td colspan="2">{{ (form.fPlannetweight / 1000).toFixed(2) }}</td>-->
  4763. <!-- </tr>-->
  4764. <!-- <tr>-->
  4765. <!-- <td>总毛重</td>-->
  4766. <!-- <td colspan="2">-->
  4767. <!-- {{ (form.fPlangrossweight / 1000).toFixed(2) }}-->
  4768. <!-- </td>-->
  4769. <!-- <td>本垛毛重</td>-->
  4770. <!-- <td colspan="2">-->
  4771. <!-- {{ (form.fPlangrossweight / 1000).toFixed(2) }}-->
  4772. <!-- </td>-->
  4773. <!-- </tr>-->
  4774. <!-- <tr>-->
  4775. <!-- <td>本垛件数</td>-->
  4776. <!-- <td colspan="2">{{ form.fPlanqty }}</td>-->
  4777. <!-- <td>本垛净重</td>-->
  4778. <!-- <td colspan="2">{{ (form.fPlannetweight / 1000).toFixed(2) }}</td>-->
  4779. <!-- </tr>-->
  4780. <!-- <tr>-->
  4781. <!-- <td>入库日期</td>-->
  4782. <!-- <td colspan="2">{{ form.fBsdate }}</td>-->
  4783. <!-- <td>仓管员</td>-->
  4784. <!-- <td colspan="2">{{ form.createBy }}</td>-->
  4785. <!-- </tr>-->
  4786. <!-- <tr>-->
  4787. <!-- <td>出库日期</td>-->
  4788. <!-- <td>出库件数</td>-->
  4789. <!-- <td>剩余件数</td>-->
  4790. <!-- <td>出库仓管员</td>-->
  4791. <!-- <td>盘点日期</td>-->
  4792. <!-- <td>盘点人</td>-->
  4793. <!-- </tr>-->
  4794. <!-- <tr>-->
  4795. <!-- <td style="height: 20px"></td>-->
  4796. <!-- <td></td>-->
  4797. <!-- <td></td>-->
  4798. <!-- <td></td>-->
  4799. <!-- <td></td>-->
  4800. <!-- <td></td>-->
  4801. <!-- </tr>-->
  4802. <!-- <tr>-->
  4803. <!-- <td style="height: 20px"></td>-->
  4804. <!-- <td></td>-->
  4805. <!-- <td></td>-->
  4806. <!-- <td></td>-->
  4807. <!-- <td></td>-->
  4808. <!-- <td></td>-->
  4809. <!-- </tr>-->
  4810. <!-- <tr>-->
  4811. <!-- <td style="height: 20px"></td>-->
  4812. <!-- <td></td>-->
  4813. <!-- <td></td>-->
  4814. <!-- <td></td>-->
  4815. <!-- <td></td>-->
  4816. <!-- <td></td>-->
  4817. <!-- </tr>-->
  4818. <!-- <tr>-->
  4819. <!-- <td style="height: 20px"></td>-->
  4820. <!-- <td></td>-->
  4821. <!-- <td></td>-->
  4822. <!-- <td></td>-->
  4823. <!-- <td></td>-->
  4824. <!-- <td></td>-->
  4825. <!-- </tr>-->
  4826. <!-- <tr>-->
  4827. <!-- <td style="height: 20px"></td>-->
  4828. <!-- <td></td>-->
  4829. <!-- <td></td>-->
  4830. <!-- <td></td>-->
  4831. <!-- <td></td>-->
  4832. <!-- <td></td>-->
  4833. <!-- </tr>-->
  4834. <!-- <tr>-->
  4835. <!-- <td style="height: 20px"></td>-->
  4836. <!-- <td></td>-->
  4837. <!-- <td></td>-->
  4838. <!-- <td></td>-->
  4839. <!-- <td></td>-->
  4840. <!-- <td></td>-->
  4841. <!-- </tr>-->
  4842. <!-- <tr>-->
  4843. <!-- <td style="height: 20px"></td>-->
  4844. <!-- <td></td>-->
  4845. <!-- <td></td>-->
  4846. <!-- <td></td>-->
  4847. <!-- <td></td>-->
  4848. <!-- <td></td>-->
  4849. <!-- </tr>-->
  4850. <!-- <tr>-->
  4851. <!-- <td style="height: 20px"></td>-->
  4852. <!-- <td></td>-->
  4853. <!-- <td></td>-->
  4854. <!-- <td></td>-->
  4855. <!-- <td></td>-->
  4856. <!-- <td></td>-->
  4857. <!-- </tr>-->
  4858. <!-- <tr>-->
  4859. <!-- <td style="height: 20px"></td>-->
  4860. <!-- <td></td>-->
  4861. <!-- <td></td>-->
  4862. <!-- <td></td>-->
  4863. <!-- <td></td>-->
  4864. <!-- <td></td>-->
  4865. <!-- </tr>-->
  4866. <!-- <tr>-->
  4867. <!-- <td style="height: 20px"></td>-->
  4868. <!-- <td></td>-->
  4869. <!-- <td></td>-->
  4870. <!-- <td></td>-->
  4871. <!-- <td></td>-->
  4872. <!-- <td></td>-->
  4873. <!-- </tr>-->
  4874. <!-- <tr>-->
  4875. <!-- <td style="height: 20px"></td>-->
  4876. <!-- <td></td>-->
  4877. <!-- <td></td>-->
  4878. <!-- <td></td>-->
  4879. <!-- <td></td>-->
  4880. <!-- <td></td>-->
  4881. <!-- </tr>-->
  4882. <!-- <tr>-->
  4883. <!-- <td style="height: 20px"></td>-->
  4884. <!-- <td></td>-->
  4885. <!-- <td></td>-->
  4886. <!-- <td></td>-->
  4887. <!-- <td></td>-->
  4888. <!-- <td></td>-->
  4889. <!-- </tr>-->
  4890. <!-- <tr>-->
  4891. <!-- <td>备注:</td>-->
  4892. <!-- <td colspan="5">{{ form.remark }}</td>-->
  4893. <!-- </tr>-->
  4894. <!-- </table>-->
  4895. <!-- </div>-->
  4896. <!-- <div-->
  4897. <!-- style="display: flex; justify-content: space-between; font-size: 12px"-->
  4898. <!-- >-->
  4899. <!-- &lt;!&ndash; <div>操作:{{ form.createBy }}</div>&ndash;&gt;-->
  4900. <!-- <div>库管:{{ form.fContacts }}</div>-->
  4901. <!-- <div style="width: 100px">叉车:</div>-->
  4902. <!-- </div>-->
  4903. <!-- </div>-->
  4904. <!-- <span slot="footer" class="dialog-footer">-->
  4905. <!-- <el-button-->
  4906. <!-- type="primary"-->
  4907. <!-- :disabled="browseStatus"-->
  4908. <!-- @click="-->
  4909. <!-- addprint('fxdkrkd');-->
  4910. <!-- print_zpdkrkd = false;-->
  4911. <!-- "-->
  4912. <!-- >打印-->
  4913. <!-- </el-button>-->
  4914. <!-- <el-button @click="print_zpdkrkd = false">取消 </el-button>-->
  4915. <!-- </span>-->
  4916. <!-- </el-dialog>-->
  4917. <el-dialog
  4918. :visible.sync="print_ccdzrkd"
  4919. width="70%"
  4920. :close-on-click-modal="false"
  4921. :modal="false"
  4922. >
  4923. <el-radio v-model="radio" :label="1" @change="radioChange">吨(T)</el-radio>
  4924. <el-radio v-model="radio" :label="2" @change="radioChange">千克(KG)</el-radio>
  4925. <div id="print_area8" class="print-div">
  4926. <div
  4927. class="print-title"
  4928. style="
  4929. display: flex;
  4930. justify-content: center;
  4931. font-size: 24px;
  4932. margin-bottom: 5px;
  4933. "
  4934. >
  4935. {{ company }}
  4936. </div>
  4937. <div style="display:flex;flex-direction: column;margin-left: 70%">
  4938. <div>{{ form.fBillno }}</div>
  4939. <div>存货地点:{{ stockName }}</div>
  4940. </div>
  4941. <div class="print_table" style="display: flex">
  4942. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  4943. <tr>
  4944. <td>品名</td>
  4945. <td colspan="3">{{ form.goodName }}</td>
  4946. <td colspan="2">清单号</td>
  4947. <td colspan="3">{{ form.fCustomsdeclartion }}</td>
  4948. </tr>
  4949. <tr>
  4950. <td class="oneHundredSix" style="width: 160px;">入库日期</td>
  4951. <td class="twoHundred" style="width: 200px;">箱号</td>
  4952. <td>铅封号</td>
  4953. <td>预计件数</td>
  4954. <td>垛位</td>
  4955. <td>实收件数</td>
  4956. <td class="oneHundred" style="width: 100px;" v-if="radio == 1">实收净重(吨)</td>
  4957. <td class="oneHundred" style="width: 100px;" v-if="radio == 1">毛重(吨)</td>
  4958. <td class="oneHundred" style="width: 100px;" v-if="radio == 2">实收净重(千克)</td>
  4959. <td class="oneHundred" style="width: 100px;" v-if="radio == 2">毛重(千克)</td>
  4960. <td class="twoHundred" style="width: 200px;">备注</td>
  4961. </tr>
  4962. <tr v-for="(item, index) in Printinglist" :key="index">
  4963. <td>{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>
  4964. <td>{{ item.fCntrno }}</td>
  4965. <td>{{ item.fSealno }}</td>
  4966. <td>{{ item.fQty }}</td>
  4967. <td>{{ item.fWarehouseInformation }}</td>
  4968. <td>{{ item.fQty }}</td>
  4969. <td v-if="radio == 1">{{ (item.fNetweight / 1000).toSuperFixed(4) }}</td>
  4970. <td v-if="radio == 1">{{ (item.fGrossweight / 1000).toSuperFixed(4) }}</td>
  4971. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  4972. <td v-if="radio == 2">{{ item.fGrossweight }}</td>
  4973. <td>{{ item.remark }}</td>
  4974. </tr>
  4975. <tr>
  4976. <td>合计:</td>
  4977. <td></td>
  4978. <td></td>
  4979. <td></td>
  4980. <td></td>
  4981. <td>{{ allfQty.toFixed(0) }}</td>
  4982. <td v-if="radio == 1">{{ allfNetweight.toSuperFixed(4) }}</td>
  4983. <td v-if="radio == 1">{{ allfGrossweight.toSuperFixed(4) }}</td>
  4984. <td v-if="radio == 2">{{ allfNetweight }}</td>
  4985. <td v-if="radio == 2">{{ allfGrossweight }}</td>
  4986. <td></td>
  4987. </tr>
  4988. </table>
  4989. </div>
  4990. <div
  4991. style="display: flex; justify-content: space-between; font-size: 12px"
  4992. >
  4993. <!-- <div>操作:{{ form.createBy }}</div>-->
  4994. <div>库管:{{ form.fContacts }}</div>
  4995. <div style="width: 100px">叉车:</div>
  4996. </div>
  4997. </div>
  4998. <span slot="footer" class="dialog-footer">
  4999. <el-button
  5000. type="primary"
  5001. :disabled="browseStatus"
  5002. @click="
  5003. addprint('ccdzrkd');
  5004. print_ccdzrkd = false;
  5005. "
  5006. >打印
  5007. </el-button>
  5008. <el-button @click="print_ccdzrkd = false">取消 </el-button>
  5009. </span>
  5010. </el-dialog>
  5011. <el-dialog
  5012. :visible.sync="print_fxdkrkd"
  5013. width="70%"
  5014. :close-on-click-modal="false"
  5015. :modal="false"
  5016. >
  5017. <div id="print_area9" class="print-div">
  5018. <div
  5019. class="print-title"
  5020. style="
  5021. display: flex;
  5022. justify-content: center;
  5023. font-size: 24px;
  5024. margin-bottom: 5px;
  5025. "
  5026. >
  5027. {{ company }}货物标识卡
  5028. </div>
  5029. <div class="print_table" style="display: flex">
  5030. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%" v-for="(item, index) in Printinglist"
  5031. :key="index">
  5032. <tr>
  5033. <td>货物名称</td>
  5034. <td colspan="2">{{ form.goodName }}</td>
  5035. <td>库位</td>
  5036. <td colspan="2">{{ form.fWarehouseInformation }}</td>
  5037. </tr>
  5038. <tr>
  5039. <td>提单号</td>
  5040. <td colspan="2">{{ form.fMblno }}</td>
  5041. <td>清单号</td>
  5042. <td colspan="2">{{ form.fCustomsdeclartion }}</td>
  5043. </tr>
  5044. <tr>
  5045. <td>箱号</td>
  5046. <td colspan="2">{{ item.fCntrno }}</td>
  5047. <td>总箱量</td>
  5048. <td colspan="2">{{ item.fCntqty }}</td>
  5049. </tr>
  5050. <tr>
  5051. <td>总件数</td>
  5052. <td colspan="2">{{ item.fQty }}</td>
  5053. <td>总净重</td>
  5054. <td colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  5055. </tr>
  5056. <tr>
  5057. <td>总毛重</td>
  5058. <td colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  5059. <td>本垛毛重</td>
  5060. <td colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  5061. </tr>
  5062. <tr>
  5063. <td>本垛件数</td>
  5064. <td colspan="2">{{ item.fQty }}</td>
  5065. <td>本垛净重</td>
  5066. <td colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  5067. </tr>
  5068. <tr>
  5069. <td>入库日期</td>
  5070. <td colspan="2">{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>
  5071. <td>仓管员</td>
  5072. <td colspan="2">{{ form.createBy }}</td>
  5073. </tr>
  5074. <tr>
  5075. <td>出库日期</td>
  5076. <td>出库件数</td>
  5077. <td>剩余件数</td>
  5078. <td>出库仓管员</td>
  5079. <td>盘点日期</td>
  5080. <td>盘点人</td>
  5081. </tr>
  5082. <tr>
  5083. <td style="height:20px"></td>
  5084. <td></td>
  5085. <td></td>
  5086. <td></td>
  5087. <td></td>
  5088. <td></td>
  5089. </tr>
  5090. <tr>
  5091. <td style="height:20px"></td>
  5092. <td></td>
  5093. <td></td>
  5094. <td></td>
  5095. <td></td>
  5096. <td></td>
  5097. </tr>
  5098. <tr>
  5099. <td style="height:20px"></td>
  5100. <td></td>
  5101. <td></td>
  5102. <td></td>
  5103. <td></td>
  5104. <td></td>
  5105. </tr>
  5106. <tr>
  5107. <td style="height:20px"></td>
  5108. <td></td>
  5109. <td></td>
  5110. <td></td>
  5111. <td></td>
  5112. <td></td>
  5113. </tr>
  5114. <tr>
  5115. <td style="height:20px"></td>
  5116. <td></td>
  5117. <td></td>
  5118. <td></td>
  5119. <td></td>
  5120. <td></td>
  5121. </tr>
  5122. <tr>
  5123. <td style="height:20px"></td>
  5124. <td></td>
  5125. <td></td>
  5126. <td></td>
  5127. <td></td>
  5128. <td></td>
  5129. </tr>
  5130. <tr>
  5131. <td style="height:20px"></td>
  5132. <td></td>
  5133. <td></td>
  5134. <td></td>
  5135. <td></td>
  5136. <td></td>
  5137. </tr>
  5138. <tr>
  5139. <td style="height:20px"></td>
  5140. <td></td>
  5141. <td></td>
  5142. <td></td>
  5143. <td></td>
  5144. <td></td>
  5145. </tr>
  5146. <tr>
  5147. <td style="height:20px"></td>
  5148. <td></td>
  5149. <td></td>
  5150. <td></td>
  5151. <td></td>
  5152. <td></td>
  5153. </tr>
  5154. <tr>
  5155. <td style="height:20px"></td>
  5156. <td></td>
  5157. <td></td>
  5158. <td></td>
  5159. <td></td>
  5160. <td></td>
  5161. </tr>
  5162. <tr>
  5163. <td style="height:20px"></td>
  5164. <td></td>
  5165. <td></td>
  5166. <td></td>
  5167. <td></td>
  5168. <td></td>
  5169. </tr>
  5170. <tr>
  5171. <td style="height:20px"></td>
  5172. <td></td>
  5173. <td></td>
  5174. <td></td>
  5175. <td></td>
  5176. <td></td>
  5177. </tr>
  5178. <tr>
  5179. <td>备注:</td>
  5180. <td colspan="5">{{ form.remark }}</td>
  5181. </tr>
  5182. </table>
  5183. </div>
  5184. <div
  5185. style="display: flex; justify-content: space-between; font-size: 12px"
  5186. >
  5187. <!-- <div>操作:{{ form.createBy }}</div>-->
  5188. <div>库管:{{ form.fContacts }}</div>
  5189. <div style="width: 100px">叉车:</div>
  5190. </div>
  5191. </div>
  5192. <span slot="footer" class="dialog-footer">
  5193. <el-button
  5194. type="primary"
  5195. :disabled="browseStatus"
  5196. @click="
  5197. addprint('fxdkrkd');
  5198. print_fxdkrkd = false;
  5199. "
  5200. >打印
  5201. </el-button>
  5202. <el-button @click="print_fxdkrkd = false">取消 </el-button>
  5203. </span>
  5204. </el-dialog>
  5205. <el-dialog
  5206. :visible.sync="print_khrkd"
  5207. width="70%"
  5208. :close-on-click-modal="false"
  5209. :modal="false"
  5210. >
  5211. <div id="print_area10" class="print-div">
  5212. <div
  5213. class="print-title"
  5214. style="
  5215. display: flex;
  5216. justify-content: center;
  5217. font-size: 24px;
  5218. margin-bottom: 5px;
  5219. "
  5220. >
  5221. {{ company }}
  5222. </div>
  5223. <div
  5224. style="
  5225. display: flex;
  5226. justify-content: center;
  5227. font-size: 18px;
  5228. margin-bottom: 5px;
  5229. "
  5230. >
  5231. <div>入&nbsp;库&nbsp;单</div>
  5232. </div>
  5233. <div
  5234. style="
  5235. display: flex;
  5236. justify-content: space-between;
  5237. margin-bottom: 5px;
  5238. "
  5239. class="print_form"
  5240. >
  5241. <div>客户名称:{{ form.fCorpidName }}</div>
  5242. <div>存货地点:{{ stockName }}</div>
  5243. </div>
  5244. <div class="print_table" style="display: flex">
  5245. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  5246. <tr>
  5247. <td>序号</td>
  5248. <td>实际入库日期</td>
  5249. <td>商品名称</td>
  5250. <td>提单号</td>
  5251. <td>箱号</td>
  5252. <td>件数</td>
  5253. <td>毛重(吨)</td>
  5254. <td>净重(吨)</td>
  5255. <td>备注</td>
  5256. </tr>
  5257. <tr v-for="(item, index) in Printinglist" :key="index">
  5258. <td>{{ index + 1 }}</td>
  5259. <td>{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>
  5260. <td>{{ item.fGoodsids }}</td>
  5261. <td>{{ item.fMblno }}</td>
  5262. <td>{{ item.fCntrno }}</td>
  5263. <td>{{ item.fQty }}</td>
  5264. <td>{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  5265. <td>{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  5266. <td>{{ item.remark }}</td>
  5267. </tr>
  5268. <tr>
  5269. <td>合计:</td>
  5270. <td></td>
  5271. <td></td>
  5272. <td></td>
  5273. <td></td>
  5274. <td>{{ allfQty.toFixed(0) }}</td>
  5275. <td>{{ (allfGrossweight / 1000).toFixed(4) }}</td>
  5276. <td>{{ (allfNetweight / 1000).toFixed(4) }}</td>
  5277. <td></td>
  5278. </tr>
  5279. </table>
  5280. </div>
  5281. <div
  5282. style="display: flex; justify-content: space-between; font-size: 12px"
  5283. >
  5284. <!-- <div>操作:{{ form.createBy }}</div>-->
  5285. <div>库管:{{ form.fContacts }}</div>
  5286. <div style="width: 100px">叉车:</div>
  5287. </div>
  5288. </div>
  5289. <span slot="footer" class="dialog-footer">
  5290. <el-button
  5291. type="primary"
  5292. :disabled="browseStatus"
  5293. @click="
  5294. addprint('khrkd');
  5295. print_khrkd = false;
  5296. "
  5297. >打印
  5298. </el-button>
  5299. <el-button @click="print_khrkd = false">取消 </el-button>
  5300. </span>
  5301. </el-dialog>
  5302. <!-- 卸货存档入库单-->
  5303. <el-dialog
  5304. :visible.sync="print_xhcdrkd"
  5305. width="70%"
  5306. :close-on-click-modal="false"
  5307. :modal="false"
  5308. >
  5309. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  5310. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  5311. <div id="print_area11" class="print-div">
  5312. <div
  5313. class="print-title"
  5314. style="
  5315. display: flex;
  5316. justify-content: center;
  5317. font-size: 24px;
  5318. margin-bottom: 5px;
  5319. "
  5320. >
  5321. {{ company }}入库单
  5322. </div>
  5323. <div
  5324. style="
  5325. display: flex;
  5326. justify-content: space-between;
  5327. margin-bottom: 5px;
  5328. "
  5329. class="print_form"
  5330. >
  5331. <div>
  5332. <div>提单号:{{ form.fMblno }}</div>
  5333. <div>客户名称:{{ form.fCorpidName }}</div>
  5334. <div>货物名称:{{ form.fProductName }}</div>
  5335. <div>件数:{{ form.fPlanqty }}</div>
  5336. </div>
  5337. <div>
  5338. <div>系统编号:{{ form.fBillno }}</div>
  5339. <div>计划入库日期:{{ form.fBsdate }}&nbsp;{{ timeOut }}</div>
  5340. <div>制单日期:{{ form.createTime }}</div>
  5341. <div v-if="radio == 1">毛重(吨):{{ (form.fPlangrossweight / 1000).toFixed(4) }}</div>
  5342. <div v-if="radio == 2">毛重(千克):{{ form.fPlangrossweight }}</div>
  5343. </div>
  5344. <div>
  5345. <div>报关单号:{{ form.fCustomno }}</div>
  5346. <!-- <div>清单号:{{ form.fCustomsdeclartion }}</div>-->
  5347. <div>存放仓库:{{ stockName }}</div>
  5348. <div v-if="radio == 1">净重(吨):{{ (form.fPlannetweight / 1000).toFixed(4) }}</div>
  5349. <div v-if="radio == 2">净重(千克):{{ form.fPlannetweight }}</div>
  5350. </div>
  5351. </div>
  5352. <div class="print_table" style="display: flex">
  5353. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  5354. <tr>
  5355. <td>箱号</td>
  5356. <td>铅封号</td>
  5357. <td>预计件数</td>
  5358. <td>实际件数</td>
  5359. <td>库位</td>
  5360. <td>实际入库日期</td>
  5361. <td>送货车号</td>
  5362. <td>送货司机</td>
  5363. <td>备注</td>
  5364. </tr>
  5365. <tr v-for="(item,index) in Printinglist" :key="index">
  5366. <td>{{ item.fCntrno }}</td>
  5367. <td>{{ item.fSealno }}</td>
  5368. <td>{{ item.fQty }}</td>
  5369. <td>{{ item.fQty }}</td>
  5370. <td>{{ item.fWarehouseInformation }}</td>
  5371. <!-- <td>{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>-->
  5372. <td>{{ item.fBsdate }}&nbsp;{{ inTime }}</td>
  5373. <td>{{ item.fTruckno }}</td>
  5374. <td>{{ item.fDriverName }}</td>
  5375. <td>{{ item.remark }}</td>
  5376. </tr>
  5377. <tr>
  5378. <td colspan="2">合计:</td>
  5379. <td>{{ allfQty }}</td>
  5380. <td>{{ allfQty }}</td>
  5381. <td></td>
  5382. <td></td>
  5383. <td></td>
  5384. <td></td>
  5385. <td></td>
  5386. </tr>
  5387. </table>
  5388. </div>
  5389. <div
  5390. style="display: flex; justify-content: space-between; font-size: 12px"
  5391. >
  5392. <div>操作:</div>
  5393. <div>库管:{{ form.fContacts }}</div>
  5394. <div style="width: 100px">叉车:</div>
  5395. </div>
  5396. </div>
  5397. <span slot="footer" class="dialog-footer">
  5398. <el-button
  5399. type="primary"
  5400. :disabled="browseStatus"
  5401. @click="
  5402. addprint('xhcdrkd');
  5403. print_xhcdrkd = false;
  5404. "
  5405. >打印
  5406. </el-button>
  5407. <el-button @click="print_xhcdrkd = false">取消 </el-button>
  5408. </span>
  5409. </el-dialog>
  5410. <!-- <el-dialog-->
  5411. <!-- :visible.sync="print_zpdkrkd"-->
  5412. <!-- width="70%"-->
  5413. <!-- :close-on-click-modal="false"-->
  5414. <!-- :modal="false"-->
  5415. <!-- >-->
  5416. <!-- <div id="print_area12" class="print-div">-->
  5417. <!-- <div-->
  5418. <!-- class="print-title"-->
  5419. <!-- style="-->
  5420. <!-- display: flex;-->
  5421. <!-- justify-content: center;-->
  5422. <!-- font-size: 24px;-->
  5423. <!-- margin-bottom: 5px;-->
  5424. <!-- "-->
  5425. <!-- >-->
  5426. <!-- {{ company }}货物标识卡-->
  5427. <!-- </div>-->
  5428. <!-- <div class="print_table" style="display: flex">-->
  5429. <!-- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%" >-->
  5430. <!-- <tr>-->
  5431. <!-- <td>货物名称</td>-->
  5432. <!-- <td colspan="2">{{form.goodName}}</td>-->
  5433. <!-- <td>库位</td>-->
  5434. <!-- <td colspan="2">{{ stockName}}</td>-->
  5435. <!-- </tr>-->
  5436. <!-- <tr>-->
  5437. <!-- <td>提单号</td>-->
  5438. <!-- <td colspan="2">{{form.fMblno}}</td>-->
  5439. <!-- <td>清单号</td>-->
  5440. <!-- <td colspan="2">{{ form.fCustomsdeclartion}}</td>-->
  5441. <!-- </tr>-->
  5442. <!-- <tr>-->
  5443. <!-- <td>箱号</td>-->
  5444. <!-- <td colspan="2"></td>-->
  5445. <!-- <td>总箱量</td>-->
  5446. <!-- <td colspan="2">{{ container}}</td>-->
  5447. <!-- </tr>-->
  5448. <!-- <tr>-->
  5449. <!-- <td>总件数</td>-->
  5450. <!-- <td colspan="2">{{form.fPlanqty}}</td>-->
  5451. <!-- <td>总净重</td>-->
  5452. <!-- <td colspan="2">{{ (form.fPlannetweight/1000).toFixed(2)}}</td>-->
  5453. <!-- </tr>-->
  5454. <!-- <tr>-->
  5455. <!-- <td>总毛重</td>-->
  5456. <!-- <td colspan="2">{{(form.fPlangrossweight/1000).toFixed(2)}}</td>-->
  5457. <!-- <td>本垛毛重</td>-->
  5458. <!-- <td colspan="2">{{(form.fPlangrossweight/1000).toFixed(2)}}</td>-->
  5459. <!-- </tr>-->
  5460. <!-- <tr>-->
  5461. <!-- <td>本垛件数</td>-->
  5462. <!-- <td colspan="2">{{form.fPlanqty}}</td>-->
  5463. <!-- <td>本垛净重</td>-->
  5464. <!-- <td colspan="2">{{ (form.fPlannetweight/1000).toFixed(2)}}</td>-->
  5465. <!-- </tr>-->
  5466. <!-- <tr>-->
  5467. <!-- <td>入库日期</td>-->
  5468. <!-- <td colspan="2">{{form.fBsdate}}&nbsp;{{ timeOut }}</td>-->
  5469. <!-- <td>仓管员</td>-->
  5470. <!-- <td colspan="2">{{ form.createBy}}</td>-->
  5471. <!-- </tr>-->
  5472. <!-- <tr>-->
  5473. <!-- <td>出库日期</td>-->
  5474. <!-- <td>出库件数</td>-->
  5475. <!-- <td>剩余件数</td>-->
  5476. <!-- <td>出库仓管员</td>-->
  5477. <!-- <td>盘点日期</td>-->
  5478. <!-- <td>盘点人</td>-->
  5479. <!-- </tr>-->
  5480. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5481. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5482. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5483. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5484. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5485. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5486. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5487. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5488. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5489. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5490. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5491. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5492. <!-- <tr>-->
  5493. <!-- <td>备注:</td>-->
  5494. <!-- <td colspan="5">{{form.remark}}</td>-->
  5495. <!-- </tr>-->
  5496. <!-- </table>-->
  5497. <!-- </div>-->
  5498. <!-- <div-->
  5499. <!-- style="display: flex; justify-content: space-between; font-size: 12px"-->
  5500. <!-- >-->
  5501. <!-- &lt;!&ndash; <div>操作:{{ form.createBy }}</div>&ndash;&gt;-->
  5502. <!-- <div>库管:{{ form.fContacts }}</div>-->
  5503. <!-- <div style="width: 100px">叉车:</div>-->
  5504. <!-- </div>-->
  5505. <!-- </div>-->
  5506. <!-- <span slot="footer" class="dialog-footer">-->
  5507. <!-- <el-button-->
  5508. <!-- type="primary"-->
  5509. <!-- :disabled="browseStatus"-->
  5510. <!-- @click="-->
  5511. <!-- addprint('fxdkrkd');-->
  5512. <!-- print_zpdkrkd = false;-->
  5513. <!-- "-->
  5514. <!-- >打印-->
  5515. <!-- </el-button>-->
  5516. <!-- <el-button @click="print_zpdkrkd = false">取消 </el-button>-->
  5517. <!-- </span>-->
  5518. <!-- </el-dialog>-->
  5519. <el-dialog
  5520. :visible.sync="print_fxdkrkd"
  5521. width="70%"
  5522. :close-on-click-modal="false"
  5523. :modal="false"
  5524. >
  5525. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  5526. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  5527. <div id="print_area9" class="print-div">
  5528. <div
  5529. class="print-title"
  5530. style="
  5531. display: flex;
  5532. justify-content: center;
  5533. font-size: 24px;
  5534. margin-bottom: 5px;
  5535. "
  5536. >
  5537. {{ company }}货物标识卡
  5538. </div>
  5539. <div class="print_table" style="display: flex;flex-direction: column">
  5540. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%" v-for="(item, index) in Printinglist"
  5541. :key="index">
  5542. <tr>
  5543. <td>货物名称</td>
  5544. <td colspan="2">{{ form.goodName }}</td>
  5545. <td>库位</td>
  5546. <td colspan="2">{{ form.fWarehouseInformation }}</td>
  5547. </tr>
  5548. <tr>
  5549. <td>提单号</td>
  5550. <td colspan="2">{{ form.fMblno }}</td>
  5551. <td>清单号</td>
  5552. <td colspan="2">{{ form.fCustomsdeclartion }}</td>
  5553. </tr>
  5554. <tr>
  5555. <td>箱号</td>
  5556. <td colspan="2">{{ item.fCntrno }}</td>
  5557. <td>总箱量</td>
  5558. <td colspan="2">{{ item.fCntqty }}</td>
  5559. </tr>
  5560. <tr>
  5561. <td>总件数</td>
  5562. <td colspan="2">{{ item.fQty }}</td>
  5563. <td v-if="radio == 1">总净重(吨)</td>
  5564. <td v-if="radio == 2">总净重(千克)</td>
  5565. <td v-if="radio == 1" colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  5566. <td v-if="radio == 2" colspan="2">{{ item.fNetweight }}</td>
  5567. </tr>
  5568. <tr>
  5569. <td v-if="radio == 1">总毛重(吨)</td>
  5570. <td v-if="radio == 2">总毛重(千克)</td>
  5571. <td v-if="radio == 1" colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  5572. <td v-if="radio == 2" colspan="2">{{ item.fGrossweight }}</td>
  5573. <td v-if="radio == 1">本垛毛重(吨)</td>
  5574. <td v-if="radio == 2">本垛毛重(千克)</td>
  5575. <td v-if="radio == 1" colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  5576. <td v-if="radio == 2" colspan="2">{{ item.fGrossweight }}</td>
  5577. </tr>
  5578. <tr>
  5579. <td>本垛件数</td>
  5580. <td colspan="2">{{ item.fQty }}</td>
  5581. <td v-if="radio == 1">本垛净重(吨)</td>
  5582. <td v-if="radio == 2">本垛净重(千克)</td>
  5583. <td v-if="radio == 1" colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  5584. <td v-if="radio == 2" colspan="2">{{ item.fNetweight }}</td>
  5585. </tr>
  5586. <tr>
  5587. <td>入库日期</td>
  5588. <td colspan="2">{{ item.fBsdate }}</td>
  5589. <td>仓管员</td>
  5590. <td colspan="2">{{ form.createBy }}</td>
  5591. </tr>
  5592. <tr>
  5593. <td>出库日期</td>
  5594. <td>出库件数</td>
  5595. <td>剩余件数</td>
  5596. <td>出库仓管员</td>
  5597. <td>盘点日期</td>
  5598. <td>盘点人</td>
  5599. </tr>
  5600. <tr>
  5601. <td style="height:20px"></td>
  5602. <td></td>
  5603. <td></td>
  5604. <td></td>
  5605. <td></td>
  5606. <td></td>
  5607. </tr>
  5608. <tr>
  5609. <td style="height:20px"></td>
  5610. <td></td>
  5611. <td></td>
  5612. <td></td>
  5613. <td></td>
  5614. <td></td>
  5615. </tr>
  5616. <tr>
  5617. <td style="height:20px"></td>
  5618. <td></td>
  5619. <td></td>
  5620. <td></td>
  5621. <td></td>
  5622. <td></td>
  5623. </tr>
  5624. <tr>
  5625. <td style="height:20px"></td>
  5626. <td></td>
  5627. <td></td>
  5628. <td></td>
  5629. <td></td>
  5630. <td></td>
  5631. </tr>
  5632. <tr>
  5633. <td style="height:20px"></td>
  5634. <td></td>
  5635. <td></td>
  5636. <td></td>
  5637. <td></td>
  5638. <td></td>
  5639. </tr>
  5640. <tr>
  5641. <td style="height:20px"></td>
  5642. <td></td>
  5643. <td></td>
  5644. <td></td>
  5645. <td></td>
  5646. <td></td>
  5647. </tr>
  5648. <tr>
  5649. <td style="height:20px"></td>
  5650. <td></td>
  5651. <td></td>
  5652. <td></td>
  5653. <td></td>
  5654. <td></td>
  5655. </tr>
  5656. <tr>
  5657. <td style="height:20px"></td>
  5658. <td></td>
  5659. <td></td>
  5660. <td></td>
  5661. <td></td>
  5662. <td></td>
  5663. </tr>
  5664. <tr>
  5665. <td style="height:20px"></td>
  5666. <td></td>
  5667. <td></td>
  5668. <td></td>
  5669. <td></td>
  5670. <td></td>
  5671. </tr>
  5672. <tr>
  5673. <td style="height:20px"></td>
  5674. <td></td>
  5675. <td></td>
  5676. <td></td>
  5677. <td></td>
  5678. <td></td>
  5679. </tr>
  5680. <tr>
  5681. <td style="height:20px"></td>
  5682. <td></td>
  5683. <td></td>
  5684. <td></td>
  5685. <td></td>
  5686. <td></td>
  5687. </tr>
  5688. <tr>
  5689. <td style="height:20px"></td>
  5690. <td></td>
  5691. <td></td>
  5692. <td></td>
  5693. <td></td>
  5694. <td></td>
  5695. </tr>
  5696. <tr>
  5697. <td>备注:</td>
  5698. <td colspan="5">{{ form.remark }}</td>
  5699. </tr>
  5700. </table>
  5701. </div>
  5702. <div
  5703. style="display: flex; justify-content: space-between; font-size: 12px"
  5704. >
  5705. <!-- <div>操作:{{ form.createBy }}</div>-->
  5706. <div>库管:{{ form.fContacts }}</div>
  5707. <div style="width: 100px">叉车:</div>
  5708. </div>
  5709. </div>
  5710. <span slot="footer" class="dialog-footer">
  5711. <el-button
  5712. type="primary"
  5713. :disabled="browseStatus"
  5714. @click="
  5715. addprint('fxdkrkd');
  5716. print_fxdkrkd = false;
  5717. "
  5718. >打印
  5719. </el-button>
  5720. <el-button @click="print_fxdkrkd = false">取消 </el-button>
  5721. </span>
  5722. </el-dialog>
  5723. <el-dialog
  5724. :visible.sync="print_khrkd"
  5725. width="70%"
  5726. :close-on-click-modal="false"
  5727. :modal="false"
  5728. >
  5729. <el-radio v-model="radio" :label="1" @change="radioChange">吨(T)</el-radio>
  5730. <el-radio v-model="radio" :label="2" @change="radioChange">千克(KG)</el-radio>
  5731. <div id="print_area10" class="print-div">
  5732. <div
  5733. class="print-title"
  5734. style="
  5735. display: flex;
  5736. justify-content: center;
  5737. font-size: 24px;
  5738. margin-bottom: 5px;
  5739. "
  5740. >
  5741. {{ company }}
  5742. </div>
  5743. <div
  5744. style="
  5745. display: flex;
  5746. justify-content: center;
  5747. font-size: 18px;
  5748. margin-bottom: 5px;
  5749. "
  5750. >
  5751. <div>入&nbsp;库&nbsp;单</div>
  5752. </div>
  5753. <div
  5754. style="
  5755. display: flex;
  5756. justify-content: space-between;
  5757. margin-bottom: 5px;
  5758. "
  5759. class="print_form"
  5760. >
  5761. <div>客户名称:{{ form.fCorpidName }}</div>
  5762. <div>存货地点:{{ stockName }}</div>
  5763. </div>
  5764. <div class="print_table" style="display: flex">
  5765. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  5766. <tr>
  5767. <td>序号</td>
  5768. <td>实际入库日期</td>
  5769. <td>商品名称</td>
  5770. <td>提单号</td>
  5771. <td>箱号</td>
  5772. <td>件数</td>
  5773. <td v-if="radio == 1">毛重(吨)</td>
  5774. <td v-if="radio == 1">净重(吨)</td>
  5775. <td v-if="radio == 2">毛重(千克)</td>
  5776. <td v-if="radio == 2">净重(千克)</td>
  5777. <td>备注</td>
  5778. </tr>
  5779. <tr v-for="(item, index) in Printinglist" :key="index">
  5780. <td>{{ index + 1 }}</td>
  5781. <td>{{ item.fBsdate }}</td>
  5782. <td>{{ item.fGoodsids }}</td>
  5783. <td>{{ item.fMblno }}</td>
  5784. <td>{{ item.fCntrno }}</td>
  5785. <td>{{ item.fQty }}</td>
  5786. <td v-if="radio == 1">{{ (item.fGrossweight / 1000).toSuperFixed(4) }}</td>
  5787. <td v-if="radio == 1">{{ (item.fNetweight / 1000).toSuperFixed(4) }}</td>
  5788. <td v-if="radio == 2">{{ item.fGrossweight }}</td>
  5789. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  5790. <td>{{ item.remark }}</td>
  5791. </tr>
  5792. <tr>
  5793. <td>合计:</td>
  5794. <td></td>
  5795. <td></td>
  5796. <td></td>
  5797. <td></td>
  5798. <td>{{ allfQty.toFixed(0) }}</td>
  5799. <td v-if="radio == 1">{{ allfGrossweight.toSuperFixed(4) }}</td>
  5800. <td v-if="radio == 1">{{ allfNetweight.toSuperFixed(4) }}</td>
  5801. <td v-if="radio == 2">{{ allfGrossweight }}</td>
  5802. <td v-if="radio == 2">{{ allfNetweight }}</td>
  5803. <td></td>
  5804. </tr>
  5805. </table>
  5806. </div>
  5807. <div
  5808. style="display: flex; justify-content: space-between; font-size: 12px"
  5809. >
  5810. <!-- <div>操作:{{ form.createBy }}</div>-->
  5811. <div>库管:{{ form.fContacts }}</div>
  5812. <div style="width: 100px">叉车:</div>
  5813. </div>
  5814. </div>
  5815. <span slot="footer" class="dialog-footer">
  5816. <el-button
  5817. type="primary"
  5818. :disabled="browseStatus"
  5819. @click="
  5820. addprint('khrkd');
  5821. print_khrkd = false;
  5822. "
  5823. >打印
  5824. </el-button>
  5825. <el-button @click="print_khrkd = false">取消 </el-button>
  5826. </span>
  5827. </el-dialog>
  5828. <!-- <el-dialog-->
  5829. <!-- :visible.sync="print_xhcdrkd"-->
  5830. <!-- width="70%"-->
  5831. <!-- :close-on-click-modal="false"-->
  5832. <!-- :modal="false"-->
  5833. <!-- >-->
  5834. <!-- <div id="print_area11" class="print-div">-->
  5835. <!-- <div-->
  5836. <!-- class="print-title"-->
  5837. <!-- style="-->
  5838. <!-- display: flex;-->
  5839. <!-- justify-content: center;-->
  5840. <!-- font-size: 24px;-->
  5841. <!-- margin-bottom: 5px;-->
  5842. <!-- "-->
  5843. <!-- >-->
  5844. <!-- {{ company }}入库单-->
  5845. <!-- </div>-->
  5846. <!-- <div-->
  5847. <!-- style="-->
  5848. <!-- display: flex;-->
  5849. <!-- justify-content: space-between;-->
  5850. <!-- margin-bottom: 5px;-->
  5851. <!-- "-->
  5852. <!-- class="print_form"-->
  5853. <!-- >-->
  5854. <!-- <div>-->
  5855. <!-- <div>提单号:{{ form.fMblno }}</div>-->
  5856. <!-- <div>客户名称:{{ form.fCorpidName }}</div>-->
  5857. <!-- <div>货物名称:{{ form.fProductName }}</div>-->
  5858. <!-- <div>件数:{{ form.fPlanqty }}</div>-->
  5859. <!-- </div>-->
  5860. <!-- <div>-->
  5861. <!-- <div>系统编号:{{ form.fBillno }}</div>-->
  5862. <!-- <div>计划入库日期:{{ form.fBsdate }}</div>-->
  5863. <!-- <div>制单日期:{{ form.createTime }}</div>-->
  5864. <!-- <div>毛重:{{(form.fPlangrossweight/1000).toFixed(2)}}</div>-->
  5865. <!-- </div>-->
  5866. <!-- <div>-->
  5867. <!-- <div>清单号:{{ form.fCustomsdeclartion }}</div>-->
  5868. <!-- <div>存放仓库:{{ stockName }}</div>-->
  5869. <!-- <div>净重:{{(form.fPlannetweight/1000).toFixed(2)}}</div>-->
  5870. <!-- </div>-->
  5871. <!-- </div>-->
  5872. <!-- <div class="print_table" style="display: flex">-->
  5873. <!-- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">-->
  5874. <!-- <tr>-->
  5875. <!-- <td>箱号</td>-->
  5876. <!-- <td>铅封号</td>-->
  5877. <!-- <td>预计件数</td>-->
  5878. <!-- <td>实际件数</td>-->
  5879. <!-- <td>库位</td>-->
  5880. <!-- <td>实际入库日期</td>-->
  5881. <!-- <td>送货车号</td>-->
  5882. <!-- <td>送货司机</td>-->
  5883. <!-- <td>备注</td>-->
  5884. <!-- </tr>-->
  5885. <!-- <tr v-for="(item,index) in Printinglist" :key="index">-->
  5886. <!-- <td>{{item.fCntrno}}</td>-->
  5887. <!-- <td>{{item.fSealno}}</td>-->
  5888. <!-- <td>{{form.fPlanqty}}</td>-->
  5889. <!-- <td>{{item.fQty}}</td>-->
  5890. <!-- <td>{{item.fWarehouseInformation}}</td>-->
  5891. <!-- <td>{{item.fBsdate}}</td>-->
  5892. <!-- <td>{{item.fTruckno}}</td>-->
  5893. <!-- <td>{{item.fDriverName}}</td>-->
  5894. <!-- <td>{{item.remark}}</td>-->
  5895. <!-- </tr>-->
  5896. <!-- <tr>-->
  5897. <!-- <td colspan="3">合计:</td>-->
  5898. <!-- <td>{{allfQty}}</td>-->
  5899. <!-- <td></td>-->
  5900. <!-- <td></td>-->
  5901. <!-- <td></td>-->
  5902. <!-- <td></td>-->
  5903. <!-- <td></td>-->
  5904. <!-- </tr>-->
  5905. <!-- </table>-->
  5906. <!-- </div>-->
  5907. <!-- <div-->
  5908. <!-- style="display: flex; justify-content: space-between; font-size: 12px"-->
  5909. <!-- >-->
  5910. <!-- <div>操作:{{ form.createBy }}</div>-->
  5911. <!-- <div>库管:{{ form.fContacts }}</div>-->
  5912. <!-- <div style="width: 100px">叉车:</div>-->
  5913. <!-- </div>-->
  5914. <!-- </div>-->
  5915. <!-- <span slot="footer" class="dialog-footer">-->
  5916. <!-- <el-button-->
  5917. <!-- type="primary"-->
  5918. <!-- :disabled="browseStatus"-->
  5919. <!-- @click="-->
  5920. <!-- addprint('xhcdrkd');-->
  5921. <!-- print_xhcdrkd = false;-->
  5922. <!-- "-->
  5923. <!-- >打印-->
  5924. <!-- </el-button>-->
  5925. <!-- <el-button @click="print_xhcdrkd = false">取消 </el-button>-->
  5926. <!-- </span>-->
  5927. <!-- </el-dialog>-->
  5928. <!-- <el-dialog-->
  5929. <!-- :visible.sync="print_zpdkrkd"-->
  5930. <!-- width="70%"-->
  5931. <!-- :close-on-click-modal="false"-->
  5932. <!-- :modal="false"-->
  5933. <!-- >-->
  5934. <!-- <div id="print_area12" class="print-div">-->
  5935. <!-- <div-->
  5936. <!-- class="print-title"-->
  5937. <!-- style="-->
  5938. <!-- display: flex;-->
  5939. <!-- justify-content: center;-->
  5940. <!-- font-size: 24px;-->
  5941. <!-- margin-bottom: 5px;-->
  5942. <!-- "-->
  5943. <!-- >-->
  5944. <!-- {{ company }}货物标识卡-->
  5945. <!-- </div>-->
  5946. <!-- <div class="print_table" style="display: flex">-->
  5947. <!-- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%" >-->
  5948. <!-- <tr>-->
  5949. <!-- <td>货物名称</td>-->
  5950. <!-- <td colspan="2">{{form.goodName}}</td>-->
  5951. <!-- <td>库位</td>-->
  5952. <!-- <td colspan="2">{{ stockName}}</td>-->
  5953. <!-- </tr>-->
  5954. <!-- <tr>-->
  5955. <!-- <td>提单号</td>-->
  5956. <!-- <td colspan="2">{{form.fMblno}}</td>-->
  5957. <!-- <td>清单号</td>-->
  5958. <!-- <td colspan="2">{{ form.fCustomsdeclartion}}</td>-->
  5959. <!-- </tr>-->
  5960. <!-- <tr>-->
  5961. <!-- <td>箱号</td>-->
  5962. <!-- <td colspan="2"></td>-->
  5963. <!-- <td>总箱量</td>-->
  5964. <!-- <td colspan="2">{{ container}}</td>-->
  5965. <!-- </tr>-->
  5966. <!-- <tr>-->
  5967. <!-- <td>总件数</td>-->
  5968. <!-- <td colspan="2">{{form.fPlanqty}}</td>-->
  5969. <!-- <td>总净重</td>-->
  5970. <!-- <td colspan="2">{{ (form.fPlannetweight/1000).toFixed(2)}}</td>-->
  5971. <!-- </tr>-->
  5972. <!-- <tr>-->
  5973. <!-- <td>总毛重</td>-->
  5974. <!-- <td colspan="2">{{(form.fPlangrossweight/1000).toFixed(2)}}</td>-->
  5975. <!-- <td>本垛毛重</td>-->
  5976. <!-- <td colspan="2">{{(form.fPlangrossweight/1000).toFixed(2)}}</td>-->
  5977. <!-- </tr>-->
  5978. <!-- <tr>-->
  5979. <!-- <td>本垛件数</td>-->
  5980. <!-- <td colspan="2">{{form.fPlanqty}}</td>-->
  5981. <!-- <td>本垛净重</td>-->
  5982. <!-- <td colspan="2">{{ (form.fPlannetweight/1000).toFixed(2)}}</td>-->
  5983. <!-- </tr>-->
  5984. <!-- <tr>-->
  5985. <!-- <td>入库日期</td>-->
  5986. <!-- <td colspan="2">{{form.fBsdate}}</td>-->
  5987. <!-- <td>仓管员</td>-->
  5988. <!-- <td colspan="2">{{ form.createBy}}</td>-->
  5989. <!-- </tr>-->
  5990. <!-- <tr>-->
  5991. <!-- <td>出库日期</td>-->
  5992. <!-- <td>出库件数</td>-->
  5993. <!-- <td>剩余件数</td>-->
  5994. <!-- <td>出库仓管员</td>-->
  5995. <!-- <td>盘点日期</td>-->
  5996. <!-- <td>盘点人</td>-->
  5997. <!-- </tr>-->
  5998. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5999. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6000. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6001. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6002. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6003. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6004. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6005. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6006. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6007. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6008. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6009. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6010. <!-- <tr>-->
  6011. <!-- <td>备注:</td>-->
  6012. <!-- <td colspan="5">{{form.remark}}</td>-->
  6013. <!-- </tr>-->
  6014. <!-- </table>-->
  6015. <!-- </div>-->
  6016. <!-- <div-->
  6017. <!-- style="display: flex; justify-content: space-between; font-size: 12px"-->
  6018. <!-- >-->
  6019. <!-- &lt;!&ndash; <div>操作:{{ form.createBy }}</div>&ndash;&gt;-->
  6020. <!-- <div>库管:{{ form.fContacts }}</div>-->
  6021. <!-- <div style="width: 100px">叉车:</div>-->
  6022. <!-- </div>-->
  6023. <!-- </div>-->
  6024. <!-- <span slot="footer" class="dialog-footer">-->
  6025. <!-- <el-button-->
  6026. <!-- type="primary"-->
  6027. <!-- :disabled="browseStatus"-->
  6028. <!-- @click="-->
  6029. <!-- addprint('fxdkrkd');-->
  6030. <!-- print_zpdkrkd = false;-->
  6031. <!-- "-->
  6032. <!-- >打印-->
  6033. <!-- </el-button>-->
  6034. <!-- <el-button @click="print_zpdkrkd = false">取消 </el-button>-->
  6035. <!-- </span>-->
  6036. <!-- </el-dialog>-->
  6037. <!-- 选择作业费协议数据 -->
  6038. <el-dialog
  6039. :visible.sync="print_dk"
  6040. width="70%"
  6041. :close-on-click-modal="false"
  6042. :modal="false"
  6043. >
  6044. <div id="print_area001" class="print-div">
  6045. <div
  6046. class="print-title"
  6047. style="
  6048. display: flex;
  6049. justify-content: center;
  6050. font-size: 24px;
  6051. margin-bottom: 5px;
  6052. "
  6053. >
  6054. 垛卡
  6055. </div>
  6056. <div class="print_table" style="display: flex">
  6057. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  6058. <tr>
  6059. <td>客户</td>
  6060. <td colspan="2">{{ form.fCorpidName }}</td>
  6061. <td>箱量</td>
  6062. <td v-if="Printinglist.length">{{ Printinglist[0].fCntqty }}</td>
  6063. <td v-else></td>
  6064. <td>车号</td>
  6065. <td>{{ form.fTruckno }}</td>
  6066. </tr>
  6067. <tr>
  6068. <td>提单号</td>
  6069. <td colspan="2">{{ form.fMblno }}</td>
  6070. <td>品名</td>
  6071. <td colspan="3">
  6072. {{ form.fGoodsid | goodsFormat(goodsOptions) }}
  6073. </td>
  6074. </tr>
  6075. <tr>
  6076. <td>箱号</td>
  6077. <td colspan="2" v-if="Printinglist.length">
  6078. {{ Printinglist[0].fCntrno }}
  6079. </td>
  6080. <td colspan="2" v-else></td>
  6081. <td>报关号</td>
  6082. <td colspan="3"></td>
  6083. </tr>
  6084. <tr>
  6085. <td>入库日期</td>
  6086. <td>入库件数</td>
  6087. <td>出库日期</td>
  6088. <td>出库件数</td>
  6089. <td>结余件数</td>
  6090. <td>区位</td>
  6091. <td>备注</td>
  6092. </tr>
  6093. <tr v-for="(item, index) in Printinglist" :key="index">
  6094. <td>{{ item.fBsdate }}</td>
  6095. <td>{{ item.fQty }}</td>
  6096. <td></td>
  6097. <td></td>
  6098. <td></td>
  6099. <td>{{ item.fWarehouseInformation }}</td>
  6100. <td>{{ item.remark }}</td>
  6101. </tr>
  6102. </table>
  6103. </div>
  6104. <div
  6105. style="display: flex; justify-content: space-between; font-size: 12px"
  6106. >
  6107. <div>操作:{{ form.createBy }}</div>
  6108. <div>司机:</div>
  6109. <div>理货:</div>
  6110. <div>掏箱叉车:</div>
  6111. <div style="width: 150px">码垛叉车:</div>
  6112. </div>
  6113. </div>
  6114. <span slot="footer" class="dialog-footer">
  6115. <el-button
  6116. type="primary"
  6117. :disabled="browseStatus"
  6118. @click="
  6119. addprint('001');
  6120. print_dk = false;
  6121. "
  6122. >打印
  6123. </el-button>
  6124. <el-button @click="print_dk = false">取消 </el-button>
  6125. </span>
  6126. </el-dialog>
  6127. <upload-excel
  6128. ref="upexcel"
  6129. :uploadExcelVisible="uploadExcel"
  6130. @changeShow="showAddOrUpdate2"
  6131. @adddetailList="adddetailList"
  6132. ></upload-excel>
  6133. <div style="display: flex; justify-content: flex-end; margin-top: 10px">
  6134. <!-- 弹窗, 新增 / 修改 -->
  6135. <add-or-update
  6136. v-if="addOrUpdateVisible"
  6137. ref="addOrUpdate"
  6138. @refreshDataList="getDataList"
  6139. ></add-or-update>
  6140. <approval-comments
  6141. v-if="addOrUpdateVisib"
  6142. ref="ApprovalComments"
  6143. @refreshDataList="returnData"
  6144. ></approval-comments>
  6145. <el-button
  6146. type="primary"
  6147. :disabled="approvalStatus"
  6148. v-if="form.fBillstatus > 3"
  6149. @click="addOrUpdateHandle(form, 'f_billstatus')"
  6150. >查看审批
  6151. </el-button
  6152. >
  6153. <el-button
  6154. type="primary"
  6155. v-if="approVal == true && form.fBillstatus >= 4 && form.fBillstatus < 6"
  6156. @click="addOrUpdateHand(form, 'f_billstatus')"
  6157. >审批
  6158. </el-button
  6159. >
  6160. <el-button
  6161. :disabled="browseStatus"
  6162. type="success"
  6163. prop="打印"
  6164. @click="print_shd = true"
  6165. >收货单
  6166. </el-button>
  6167. <el-button
  6168. :disabled="browseStatus"
  6169. type="warning"
  6170. prop="打印"
  6171. @click="print_rkd = true"
  6172. >入库单
  6173. </el-button>
  6174. <el-button @click="discharge" :disabled="browseStatus">卸货</el-button>
  6175. <el-button
  6176. type="info"
  6177. :disabled="browseStatus"
  6178. prop="打印"
  6179. @click="print_zyd = true"
  6180. >作业单
  6181. </el-button>
  6182. <el-button type="primary" @click="saveForm()"
  6183. >保 存
  6184. </el-button
  6185. >
  6186. <el-button
  6187. :disabled="form.fBillstatus > 3"
  6188. style="background-color: #008000; color: #fff"
  6189. @click="submitForm()"
  6190. >请核
  6191. </el-button>
  6192. <el-button type="danger" v-if="form.fBillstatus === 6" @click="revoke"
  6193. >撤销请核
  6194. </el-button
  6195. >
  6196. <el-button
  6197. type="danger"
  6198. v-if="form.fBillstatus === 4 && current == before"
  6199. :disabled="doNot"
  6200. @click="revokeTwo('f_billstatus')"
  6201. >撤销审批
  6202. </el-button
  6203. >
  6204. <el-button @click="cancel">取 消</el-button>
  6205. </div>
  6206. </div>
  6207. </template>
  6208. <script>
  6209. import print from "print-js";
  6210. import {selectUserByRole} from "@/api/basicdata/warehouse"
  6211. import {
  6212. addWhgenleg,
  6213. addJoblist,
  6214. disChargelist,
  6215. updateCredit,
  6216. listWarehousebills,
  6217. getWarehousebills,
  6218. delWarehousebills,
  6219. addWarehousebills,
  6220. addWarehouse,
  6221. exportWarehousebills,
  6222. revoke,
  6223. revokeTwo,
  6224. delinStock_s,
  6225. submitWarehousingApproval,
  6226. ordersRevoke,
  6227. checkCode,
  6228. queryClerkRoleList,
  6229. pleaseCheck,
  6230. feesCheck
  6231. } from "@/api/warehouseBusiness/warehouseInStock";
  6232. import {operationAgreement} from "@/api/agreement/agreement";
  6233. import {listCorps} from "@/api/basicdata/corps";
  6234. import {listFees, getFees} from "@/api/basicdata/fees";
  6235. import {
  6236. listWarehouse,
  6237. treeselect,
  6238. listWarehousesss,
  6239. } from "@/api/basicdata/warehouse";
  6240. import {listGoods} from "@/api/basicdata/goods";
  6241. import {listCntrs} from "@/api/basicdata/cntr";
  6242. import {listUser, queryUserVal} from "@/api/system/user";
  6243. import ApprovalComments from "@/views/startApproval";
  6244. import AddOrUpdate from "@/views/viewApproval";
  6245. import Treeselect from "@riophae/vue-treeselect";
  6246. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  6247. import UploadFile from "@/components/Uploadfile";
  6248. import Cookies from "js-cookie";
  6249. import {addSet, select, resetModule} from "@/api/system/set";
  6250. import draggable from "vuedraggable";
  6251. import upLoad from "../components/upLoad";
  6252. import incomeMoney from "../components/incomeMoney";
  6253. import payMoney from "../components/payMoney";
  6254. import uploadExcel from "./uploadExcel";
  6255. export default {
  6256. name: "inStock",
  6257. props: {
  6258. chiId: {
  6259. type: Number,
  6260. required: null,
  6261. },
  6262. copyStatus: {
  6263. type: Number,
  6264. required: null,
  6265. },
  6266. },
  6267. components: {
  6268. UploadFile,
  6269. Treeselect,
  6270. AddOrUpdate,
  6271. ApprovalComments,
  6272. draggable,
  6273. upLoad,
  6274. incomeMoney,
  6275. payMoney,
  6276. uploadExcel
  6277. },
  6278. data() {
  6279. return {
  6280. radio: 1,
  6281. nowTime: null,
  6282. recordStatus: false,
  6283. timeOut: '',
  6284. plannedGrossWeight: 0,
  6285. container: '',
  6286. deliveryConfirmation: true,
  6287. cancelDelivery: true,
  6288. pageNum: 1,
  6289. pageSize: 10,
  6290. dialogWhgenlegList: [],
  6291. tasklegList: [],
  6292. Navigation: false,
  6293. key_id: "",
  6294. mblnoStatus: "",
  6295. selectloading: false,
  6296. fMblnoOptions: [],
  6297. warehouseDrList: [],
  6298. relevantAttachments: [],
  6299. warehouseCrList: [],
  6300. fStltypeOptions: [],
  6301. form: {},
  6302. rules: {
  6303. fDeptid: [{required: true, message: " ", trigger: "blur"}],
  6304. fMblno: [{required: true, message: " ", trigger: "blur"}],
  6305. fBsdeptid: [{required: true, message: " ", trigger: "blur"}],
  6306. fCorpid: [{required: true, message: " ", trigger: "blur"}],
  6307. fFeetUnit: [{required: true, message: " ", trigger: "blur"}],
  6308. fPlanqty: [{required: true, message: " ", trigger: "blur"}],
  6309. fPlangrossweight: [{required: true, message: " ", trigger: "blur"}],
  6310. fPlannetweight: [{required: true, message: " ", trigger: "blur"}],
  6311. fCustomno: [{required: true, message: " ", trigger: "blur"}],
  6312. // fChargedate: [{ required: true, message: " ", trigger: "blur" }],
  6313. fMarks: [{required: true, message: " ", trigger: "blur"}],
  6314. fBsdate: [{required: true, message: " ", trigger: "blur"}],
  6315. fTrademodeid: [{required: true, message: " ", trigger: "blur"}],
  6316. fBusinessType: [{required: true, message: " ", trigger: "blur"}],
  6317. fStorekeeper: {required: true, message: " ", trigger: "blur"},
  6318. fWarehouseid: [{required: true, message: " ", trigger: "blur"}],
  6319. fbillingway: [{required: true, message: " ", trigger: "blur"}],
  6320. fTocorpid: [{required: true, message: " ", trigger: "blur"}],
  6321. fGoodsid: [{required: true, message: " ", trigger: "blur"}],
  6322. },
  6323. imporRules: {
  6324. fBsdate: [{required: true, message: " ", trigger: "blur"}],
  6325. fQty: [{required: true, message: " ", trigger: "blur"}],
  6326. fGoodsid: [{required: true, message: " ", trigger: "blur"}],
  6327. fBusinessType: [{required: true, message: " ", trigger: "blur"}],
  6328. fMarks: [{required: true, message: " ", trigger: "blur"}],
  6329. fPackagespecs: [{required: false, message: " ", trigger: "blur"}],
  6330. fTruckno: [{required: false, message: " ", trigger: "blur"}],
  6331. },
  6332. browseStatus: false,
  6333. goodsOptions: [],
  6334. warehouseOptions: [],
  6335. userOptions: [],
  6336. businessTypeOption: [],
  6337. fCompanyOptIons: [],
  6338. fleetOptions: [],
  6339. fFeetUnitOptions: [],
  6340. current: "",
  6341. before: "",
  6342. isrequired: 2,
  6343. isrequired2: 2,
  6344. detailsHidden: false,
  6345. detailsHidden2: true,
  6346. fSalesmanOption: [],
  6347. CntrTable: [],
  6348. cntrList: [],
  6349. fTrademodeidOptions: [],
  6350. fIfweighOptions: [],
  6351. fIfpledgeOptions: [],
  6352. fSbuOptions: [],
  6353. Pledgebank: [],
  6354. collapselist: ["1"],
  6355. fStorageTypeOptions: [],
  6356. weightList: false,
  6357. importList: {},
  6358. sumMum: 0,
  6359. allfPlanqty: 0,
  6360. detailList: [],
  6361. fWarehouseidOptions: [],
  6362. print_zyd: false,
  6363. print_shd: false,
  6364. print_rkd: false,
  6365. print_lhd: false,
  6366. print_hwqr: false,
  6367. print_lwqr: false,
  6368. print_dpxx: false,
  6369. print_ccdzrkd: false,
  6370. print_fxdkrkd: false,
  6371. print_khrkd: false,
  6372. print_xhcdrkd: false,
  6373. print_zpdkrkd: false,
  6374. print_bzrkd: false,
  6375. print_bzrkd_js: false,
  6376. print_bzrkd_xq: false,
  6377. print_bzrkd_qt: false,
  6378. print_dk: false,
  6379. company: "",
  6380. Printinglist: [],
  6381. //库位
  6382. stockName: "",
  6383. //库位地址
  6384. stockaddr: "",
  6385. Collectionoptionss: [],
  6386. fDriverTel: "",
  6387. fBsdate: "",
  6388. fTruckno: "",
  6389. allfCntqty: 0,
  6390. allfGrossweight: 0,
  6391. allfNetweight: 0,
  6392. allfQty: 0,
  6393. fixdetaiNum: null,
  6394. dataListSelection: [],
  6395. dataWithdrawList: [],
  6396. title: "",
  6397. fCNameOptions: [],
  6398. fDNameOptions: [],
  6399. whgenlegTotal: 0,
  6400. fGrossweight: 0,
  6401. fQty: 0,
  6402. fNetweight: 0,
  6403. fCntqty: 0,
  6404. fActualWeight: 0,
  6405. activeIndex: "1",
  6406. ifCntrnoStatus: null,
  6407. addOrUpdateVisible: false,
  6408. addOrUpdateVisib: false,
  6409. approVal: false,
  6410. approvalStatus: false,
  6411. doNot: false,
  6412. stockoi: null,
  6413. unloadModes: [],
  6414. dataShowcar: null,
  6415. drag: false,
  6416. tableDate: [
  6417. {
  6418. surface: "0",
  6419. label: "fBillstatus",
  6420. name: "状态",
  6421. checked: 0,
  6422. width: 100,
  6423. },
  6424. {
  6425. surface: "1",
  6426. label: "fBsdate",
  6427. name: "入库日期",
  6428. checked: 0,
  6429. width: 100,
  6430. },
  6431. {
  6432. surface: "2",
  6433. label: "fMblno",
  6434. name: "提单号",
  6435. checked: 1,
  6436. width: 100,
  6437. },
  6438. {
  6439. surface: "3",
  6440. label: "fGoodsid",
  6441. name: "品名",
  6442. checked: 0,
  6443. width: 100,
  6444. },
  6445. {
  6446. surface: "4",
  6447. label: "fBusinessType",
  6448. name: "货物属性",
  6449. checked: 0,
  6450. width: 100,
  6451. },
  6452. {
  6453. surface: "5",
  6454. label: "fMarks",
  6455. name: "属性详情",
  6456. checked: 0,
  6457. width: 100,
  6458. },
  6459. {
  6460. surface: "6",
  6461. label: "fWarehouseInformation",
  6462. name: "库区",
  6463. checked: 0,
  6464. width: 100,
  6465. },
  6466. {
  6467. surface: "7",
  6468. label: "fCntrtype",
  6469. name: "箱型",
  6470. checked: 0,
  6471. width: 100,
  6472. },
  6473. {
  6474. surface: "8",
  6475. label: "fCntqty",
  6476. name: "箱量",
  6477. checked: 0,
  6478. width: 100,
  6479. }, {
  6480. surface: "9",
  6481. label: "fPlanqty",
  6482. name: "计划件数",
  6483. checked: 1,
  6484. width: 100,
  6485. }, {
  6486. surface: "10",
  6487. label: "fPlangrossweight",
  6488. name: "计划毛重",
  6489. checked: 1,
  6490. width: 100,
  6491. }, {
  6492. surface: "11",
  6493. label: "fPlannetweight",
  6494. name: "计划净重",
  6495. checked: 1,
  6496. width: 100,
  6497. },
  6498. {
  6499. surface: "12",
  6500. label: "fQty",
  6501. name: "入库件数",
  6502. checked: 0,
  6503. width: 100,
  6504. },
  6505. {
  6506. surface: "13",
  6507. label: "fGrossweight",
  6508. name: "入库毛重(kg)",
  6509. checked: 0,
  6510. width: 120,
  6511. },
  6512. {
  6513. surface: "14",
  6514. label: "fNetweight",
  6515. name: "入库净重(kg)",
  6516. checked: 0,
  6517. width: 120,
  6518. },
  6519. {
  6520. surface: "14",
  6521. label: "fActualWeight",
  6522. name: "溢短重(kg)",
  6523. checked: 0,
  6524. width: 120,
  6525. },
  6526. {
  6527. surface: "15",
  6528. label: "fPackagespecs",
  6529. name: "包装规格",
  6530. checked: 0,
  6531. width: 100,
  6532. },
  6533. {
  6534. surface: "16",
  6535. label: "fFleet",
  6536. name: "车队",
  6537. checked: 0,
  6538. width: 100,
  6539. },
  6540. {
  6541. surface: "17",
  6542. label: "fTruckno",
  6543. name: "车号",
  6544. checked: 0,
  6545. width: 100,
  6546. },
  6547. {
  6548. surface: "18",
  6549. label: "fDriverName",
  6550. name: "司机名称",
  6551. checked: 0,
  6552. width: 100,
  6553. },
  6554. {
  6555. surface: "19",
  6556. label: "fDriverTel",
  6557. name: "司机电话",
  6558. checked: 0,
  6559. width: 100,
  6560. },
  6561. {
  6562. surface: "20",
  6563. label: "fDriverIdCar",
  6564. name: "司机身份证",
  6565. checked: 0,
  6566. width: 120,
  6567. },
  6568. {
  6569. surface: "21",
  6570. label: "fSerialNumber",
  6571. name: "流水号",
  6572. checked: 0,
  6573. width: 100,
  6574. },
  6575. {
  6576. surface: "22",
  6577. label: "fCntrno",
  6578. name: "箱号",
  6579. checked: 0,
  6580. width: 100,
  6581. },
  6582. {
  6583. surface: "23",
  6584. label: "fLntype",
  6585. name: "装卸方式",
  6586. checked: 0,
  6587. width: 100,
  6588. },
  6589. {
  6590. surface: "24",
  6591. label: "fForkliftman",
  6592. name: "叉车工",
  6593. checked: 0,
  6594. width: 100,
  6595. },
  6596. {
  6597. surface: "25",
  6598. label: "fStevedore",
  6599. name: "装卸工",
  6600. checked: 0,
  6601. width: 100,
  6602. },
  6603. {
  6604. surface: "26",
  6605. label: "fLocalcntrno",
  6606. name: "库内箱号",
  6607. checked: 0,
  6608. width: 100,
  6609. },
  6610. {
  6611. surface: "27",
  6612. label: "fSealno",
  6613. name: "封号",
  6614. checked: 0,
  6615. width: 100,
  6616. },
  6617. {
  6618. surface: "28",
  6619. label: "fGoodsval",
  6620. name: "货值",
  6621. checked: 0,
  6622. width: 100,
  6623. },
  6624. {
  6625. surface: "29",
  6626. label: "fChargedate",
  6627. name: "仓储费日期",
  6628. checked: 0,
  6629. width: 100,
  6630. },
  6631. {
  6632. surface: "30",
  6633. label: "remark",
  6634. name: "备注",
  6635. checked: 0,
  6636. width: 100,
  6637. },
  6638. ],
  6639. setRowList: [],
  6640. getRowList: [],
  6641. allCheck: false,
  6642. showSetting: false,
  6643. tfNetweightnum: 0,
  6644. tfGrossweightnum: 0,
  6645. tfNetweightnum2: 0,
  6646. tfGrossweightnum2: 0,
  6647. deptOptions: [],
  6648. battributionList: [],
  6649. delementsList: [],
  6650. ifinspectionList: [],
  6651. ifsamplingList: [],
  6652. ifweightRecoveryList: [],
  6653. showApproval: null,
  6654. downloadTemplateVisible: false,
  6655. uploadExcel: false,
  6656. rkTime: null,
  6657. lsTime: null,
  6658. showfCustomno: false,
  6659. showfBusinessAttribution: [],
  6660. showfIfsampling: null,
  6661. showfWeighingDate: null,
  6662. showfValue: 0,
  6663. showfIfinspection: null,
  6664. showfPartNumber: null,
  6665. newPlan: 1,
  6666. entryPrinting: 1,
  6667. weighedRequired: 1,
  6668. inTime: '',
  6669. bring: null
  6670. };
  6671. },
  6672. created() {
  6673. this.setRowList = this.tableDate;
  6674. this.getRowList = this.tableDate.filter((e) => e.checked == 0);
  6675. this.getDicts("data_stltype_type").then((response) => {
  6676. this.fStltypeOptions = response.data;
  6677. });
  6678. this.getDicts("st_in_type").then((response) => {
  6679. this.businessTypeOption = response.data;
  6680. localStorage.setItem("businessTypeList", JSON.stringify(response.data));
  6681. });
  6682. this.getDicts("data_unitfees").then((response) => {
  6683. this.fFeetUnitOptions = response.data;
  6684. });
  6685. this.getDicts("data_trademodes").then((response) => {
  6686. this.fTrademodeidOptions = response.data;
  6687. });
  6688. this.getDicts("data_ifweigh_status").then((response) => {
  6689. this.fIfweighOptions = response.data;
  6690. });
  6691. this.getDicts("data_ifweigh_status").then((response) => {
  6692. this.fIfpledgeOptions = response.data;
  6693. });
  6694. this.getDicts("storage_type").then((response) => {
  6695. this.fStorageTypeOptions = response.data;
  6696. localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
  6697. });
  6698. this.getDicts("unload_mode").then((response) => {
  6699. this.unloadModes = response.data;
  6700. });
  6701. this.getDicts("f_declaration_elements").then((response) => {
  6702. this.delementsList = response.data;
  6703. });
  6704. this.getDicts("data_ifweigh_status").then((response) => {
  6705. this.ifinspectionList = response.data;
  6706. });
  6707. this.getDicts("data_ifweigh_status").then((response) => {
  6708. this.ifsamplingList = response.data;
  6709. });
  6710. this.getDicts("data_ifweigh_status").then((response) => {
  6711. this.ifweightRecoveryList = response.data;
  6712. });
  6713. this.getConfigKey("stockoi").then((response) => {
  6714. this.stockoi = response.msg;
  6715. });
  6716. this.getConfigKey("entry.printing").then((response) => {
  6717. this.entryPrinting = response.msg;
  6718. });
  6719. this.getConfigKey("weighed.Required").then((response) => {
  6720. this.weighedRequired = response.msg;
  6721. });
  6722. this.getConfigKey("new.plan").then((response) => {
  6723. this.newPlan = response.msg;
  6724. });
  6725. this.getConfigKey("show_fCustomno").then((response) => {
  6726. this.showfCustomno = response.msg;
  6727. });
  6728. this.getConfigKey("show_fBusinessAttribution").then((response) => {
  6729. this.showfBusinessAttribution = response.msg;
  6730. });
  6731. this.getConfigKey("show_fIfinspection").then((response) => {
  6732. this.showfIfinspection = response.msg;
  6733. });
  6734. this.getConfigKey("warehouse.inStock.bring").then((response) => {
  6735. this.bring = response.msg;
  6736. });
  6737. //货值是否显示
  6738. // this.getConfigKey("show_fValue").then((response) => {
  6739. // this.showfValue = response.msg;
  6740. // });
  6741. this.getConfigKey("show_fWeighingDate").then((response) => {
  6742. this.showfWeighingDate = response.msg;
  6743. });
  6744. this.getConfigKey("show_fIfsampling").then((response) => {
  6745. this.showfIfsampling = response.msg;
  6746. });
  6747. this.getConfigKey("show_fPartNumber").then((response) => {
  6748. this.showfPartNumber = response.msg;
  6749. });
  6750. this.getConfigKey("data_showcar").then((response) => {
  6751. console.log(response.msg)
  6752. this.dataShowcar = response.msg;
  6753. if (this.dataShowcar == "0") {
  6754. this.detailsHidden2 = false;
  6755. } else {
  6756. this.detailsHidden2 = true;
  6757. }
  6758. });
  6759. this.getConfigKey("instock.orders.approval").then((response) => {
  6760. this.showApproval = response.msg;
  6761. });
  6762. // 业务员获取
  6763. selectUserByRole().then(res => {
  6764. this.fSalesmanOption = res.rows
  6765. })
  6766. listWarehousesss({fStatus: 0, delFlag: 0}).then((response) => {
  6767. this.warehouseOptions = response.rows;
  6768. });
  6769. listFees({fDc: "C"}).then((response) => {
  6770. this.fCNameOptions = response.rows;
  6771. });
  6772. listFees({fDc: "D"}).then((response) => {
  6773. this.fDNameOptions = response.rows;
  6774. });
  6775. listCorps({type: 1}).then((response) => {
  6776. this.fMblnoOptions = response.rows;
  6777. });
  6778. listCorps().then((response) => {
  6779. this.fSbuOptions = response.rows;
  6780. });
  6781. listCorps({type: 5}).then((response) => {
  6782. this.Pledgebank = response.rows;
  6783. });
  6784. queryClerkRoleList().then((response) => {
  6785. this.userOptions = response.data;
  6786. });
  6787. listGoods({fStatus: 0, delFlag: 0}).then((response) => {
  6788. this.goodsOptions = response.rows;
  6789. });
  6790. listCntrs({fStatus: "T"}).then((response) => {
  6791. this.cntrList = response.rows;
  6792. });
  6793. listCorps({fTypeid: 6}).then((response) => {
  6794. this.fCompanyOptIons = response.rows;
  6795. });
  6796. listCorps({fTypeid: 7}).then((response) => {
  6797. this.battributionList = response.rows;
  6798. });
  6799. listCorps({fTypeid: 2}).then((response) => {
  6800. this.fleetOptions = response.rows;
  6801. });
  6802. this.company = Cookies.get("companyName")
  6803. this.queryUser();
  6804. this.getRow();
  6805. },
  6806. filters: {
  6807. fStorageFormat(row) {
  6808. let name;
  6809. for (const item of JSON.parse(localStorage.getItem("fStorageTypeList"))) {
  6810. if (row == item.dictValue) {
  6811. name = item.dictLabel;
  6812. }
  6813. }
  6814. return name;
  6815. },
  6816. fBusinessTypeFormat(row) {
  6817. let name;
  6818. for (const item of JSON.parse(localStorage.getItem("businessTypeList"))) {
  6819. if (row == item.dictValue) {
  6820. name = item.dictLabel;
  6821. }
  6822. }
  6823. return name;
  6824. },
  6825. fStorageTypeFormat(row, fStorageTypeOptions) {
  6826. let fStorageType;
  6827. fStorageTypeOptions.map((e) => {
  6828. if (row == e.dictValue) {
  6829. fStorageType = e.dictLabel;
  6830. }
  6831. });
  6832. return fStorageType;
  6833. },
  6834. fCntrtypeFormat(row, cntrList) {
  6835. let fCntrtype;
  6836. cntrList.map((e) => {
  6837. if (row == e.fId) {
  6838. fCntrtype = e.fName;
  6839. }
  6840. });
  6841. return fCntrtype;
  6842. },
  6843. storekeeper(row, userOptions) {
  6844. let name;
  6845. userOptions.map((e) => {
  6846. if (row == e.userName) {
  6847. name = e.nickName;
  6848. }
  6849. });
  6850. return name;
  6851. },
  6852. goodsFormat(row, goodsOptions) {
  6853. let goods;
  6854. goodsOptions.map((e) => {
  6855. if (row == e.fId) {
  6856. goods = e.fName;
  6857. }
  6858. });
  6859. return goods;
  6860. },
  6861. warehouseFormat(row, warehouseOptions) {
  6862. let warehouse;
  6863. warehouseOptions.map((e) => {
  6864. if (row == e.fId) {
  6865. warehouse = e.fName;
  6866. }
  6867. });
  6868. return warehouse;
  6869. },
  6870. fLntypeFormat(row, unloadModes) {
  6871. let name;
  6872. unloadModes.map((e) => {
  6873. if (row == e.dictValue) {
  6874. name = e.dictLabel;
  6875. }
  6876. });
  6877. return name;
  6878. },
  6879. fFleetFormat(row, fleetOptions) {
  6880. let name;
  6881. fleetOptions.map((e) => {
  6882. if (row == e.fId) {
  6883. name = e.fName;
  6884. }
  6885. });
  6886. return name;
  6887. },
  6888. fBsdateFormat(row) {
  6889. if (row) {
  6890. const dateMat = new Date(row);
  6891. const year = dateMat.getFullYear();
  6892. const month = dateMat.getMonth() + 1;
  6893. const day = dateMat.getDate();
  6894. const timeFormat = year + "-" + month + "-" + day;
  6895. return timeFormat;
  6896. }
  6897. },
  6898. fBillstatusFormat(row) {
  6899. let Name;
  6900. switch (row) {
  6901. case 10:
  6902. Name = "计划";
  6903. break;
  6904. case 20:
  6905. Name = "待入库";
  6906. break;
  6907. case 30:
  6908. Name = "入库中";
  6909. break;
  6910. default:
  6911. Name = "已入库";
  6912. }
  6913. return Name;
  6914. },
  6915. fFeetFormat(row, fCNameOptions) {
  6916. let name;
  6917. fCNameOptions.map((e) => {
  6918. if (row == e.fId) {
  6919. name = e.fName;
  6920. }
  6921. });
  6922. return name;
  6923. },
  6924. },
  6925. methods: {
  6926. init() {
  6927. this.approVal = false;
  6928. this.resetForm("form");
  6929. this.resetForm("importList");
  6930. this.detailList = [];
  6931. this.relevantAttachments = [];
  6932. this.warehouseCrList = [];
  6933. this.warehouseDrList = [];
  6934. this.CntrTable = [];
  6935. this.sumMum = 0;
  6936. if (this.dataShowcar == "0") {
  6937. this.detailsHidden2 = false;
  6938. } else {
  6939. this.detailsHidden2 = true;
  6940. }
  6941. if (this.$route.query.id) {
  6942. this.approVal = true;
  6943. this.$router.push({query: {}});
  6944. }
  6945. this.getForm();
  6946. },
  6947. reset() {
  6948. this.importList = {
  6949. fBillstatus: null,
  6950. fMblno: null,
  6951. fQty: null,
  6952. fNetweight: null,
  6953. fGrossweight: null,
  6954. fBsdate: null,
  6955. fGoodsid: null,
  6956. fBusinessType: null,
  6957. fMarks: null,
  6958. fWarehouselocid: null,
  6959. fWarehouseInformation: null,
  6960. fCntrtype: null,
  6961. fCntqty: null,
  6962. fPackagespecs: null,
  6963. fTruckno: null,
  6964. fDriverName: null,
  6965. fDriverTel: null,
  6966. fDriverIdCar: null,
  6967. fSerialNumber: null,
  6968. fCntrno: null,
  6969. fGoodsval: null,
  6970. remark: null,
  6971. };
  6972. },
  6973. tfNetweight(row) {
  6974. this.tfNetweightnum = (row / 1000).toFixed(4);
  6975. },
  6976. tfNetweight2(row) {
  6977. this.tfNetweightnum2 = (row / 1000).toFixed(4);
  6978. },
  6979. tfGrossweight(row) {
  6980. this.tfGrossweightnum = (row / 1000).toFixed(4);
  6981. },
  6982. tfGrossweight2(row) {
  6983. this.tfGrossweightnum2 = (row / 1000).toFixed(4);
  6984. },
  6985. //列设置全选
  6986. allChecked() {
  6987. if (this.allCheck == true) {
  6988. this.setRowList.map((e) => {
  6989. return (e.checked = 0);
  6990. });
  6991. } else {
  6992. this.setRowList.map((e) => {
  6993. return (e.checked = 1);
  6994. });
  6995. }
  6996. },
  6997. tishi() {
  6998. return this.$message.error("正在开发中");
  6999. },
  7000. //查询列数据
  7001. getRow() {
  7002. let that = this;
  7003. this.data = {
  7004. tableName: "入库明细",
  7005. userId: Cookies.get("userName"),
  7006. };
  7007. select(this.data).then((res) => {
  7008. if (res.data.length != 0) {
  7009. this.getRowList = res.data.filter((e) => e.checked == 0);
  7010. this.setRowList = res.data;
  7011. this.setRowList = this.setRowList.reduce((res, item) => {
  7012. res.push({
  7013. surface: item.surface,
  7014. label: item.label,
  7015. name: item.name,
  7016. checked: item.checked,
  7017. width: item.width,
  7018. fixed: item.fixed,
  7019. });
  7020. return res;
  7021. }, []);
  7022. }
  7023. });
  7024. },
  7025. //重置列表
  7026. delRow() {
  7027. this.data = {
  7028. tableName: "入库明细",
  7029. userId: Cookies.get("userName"),
  7030. };
  7031. resetModule(this.data).then((res) => {
  7032. if (res.code == 200) {
  7033. this.showSetting = false;
  7034. this.setRowList = this.$options.data().tableDate;
  7035. this.getRowList = this.$options
  7036. .data()
  7037. .tableDate.filter((e) => e.checked == 0);
  7038. }
  7039. });
  7040. },
  7041. //保存列设置
  7042. save() {
  7043. this.showSetting = false;
  7044. this.data = {
  7045. tableName: "入库明细",
  7046. userId: Cookies.get("userName"),
  7047. sysTableSetList: this.setRowList,
  7048. };
  7049. addSet(this.data).then((res) => {
  7050. if (res.code == 200) {
  7051. this.showSetting = false;
  7052. this.getRowList = this.setRowList.filter((e) => e.checked == 0);
  7053. }
  7054. });
  7055. },
  7056. //开始拖拽事件
  7057. onStart() {
  7058. this.drag = true;
  7059. },
  7060. //拖拽结束事件
  7061. onEnd() {
  7062. this.drag = false;
  7063. },
  7064. //撤销请核
  7065. revoke() {
  7066. revoke(this.form.fId).then(async (data) => {
  7067. if (data.code === 200) {
  7068. this.browseStatus = false;
  7069. await getWarehousebills(this.form.fId).then((response) => {
  7070. this.TFformdata(response.data.warehousebills);
  7071. if (!this.copyStatus || this.recordStatus === true) {
  7072. if (response.data.warehouseBillsItem) {
  7073. response.data.warehouseBillsItem.map((e) => {
  7074. e.fLntype = e.fLntype ? e.fLntype.toString() : null;
  7075. });
  7076. this.detailList = response.data.warehouseBillsItem;
  7077. } else {
  7078. this.detailList = [];
  7079. }
  7080. response.data.warehousebillsfeesCr.map((e) => {
  7081. if (e.fFeeunitid) {
  7082. e.fFeeUnitid = e.fFeeunitid.toString();
  7083. }
  7084. if (e.fStltypeid || e.fStltypeid == 0) {
  7085. e.fStltypeid = e.fStltypeid.toString();
  7086. }
  7087. });
  7088. this.warehouseCrList = response.data.warehousebillsfeesCr;
  7089. response.data.warehousebillsfeesDr.map((e) => {
  7090. if (e.fFeeunitid) {
  7091. e.fFeeUnitid = e.fFeeunitid.toString();
  7092. }
  7093. if (e.fStltypeid || e.fStltypeid == 0) {
  7094. e.fStltypeid = e.fStltypeid.toString();
  7095. }
  7096. });
  7097. this.warehouseDrList = response.data.warehousebillsfeesDr;
  7098. if (response.data.tCntrList) {
  7099. this.CntrTable = response.data.tCntrList;
  7100. } else {
  7101. this.CntrTable = [];
  7102. }
  7103. if (response.data.enclosures) {
  7104. this.relevantAttachments = response.data.enclosures;
  7105. }
  7106. } else {
  7107. this.approvalStatus = false;
  7108. this.browseStatus = false;
  7109. this.$set(this.form, "fId", null);
  7110. this.$set(this.form, "fMblno", null);
  7111. this.$set(this.form, "fMarks", null);
  7112. this.$set(this.form, "fProductName", null);
  7113. this.$set(this.form, "warehouseStatus", null);
  7114. this.$set(this.form, "fBillstatus", null);
  7115. this.$set(this.form, "fItemsStatus", null);
  7116. this.$set(this.form, "fNetweight", 0);
  7117. this.$set(this.form, "fPlanvolumn", 0);
  7118. this.$set(this.form, "fGrossweight", 0);
  7119. // this.recordStatus = true
  7120. }
  7121. });
  7122. this.warehouseCrList.forEach((item, index) => {
  7123. if (item.fQty != 0 && item.fUnitprice !== 0 && item.fAmount !==0) {
  7124. item.fBillstatus = 6;
  7125. }
  7126. })
  7127. let formData = new window.FormData();
  7128. formData.append("tWarehouseBills", JSON.stringify(this.form));
  7129. // 库存明细
  7130. formData.append("tWarehousebillsitems",JSON.stringify(this.detailList));
  7131. // 附件数据
  7132. formData.append("tEnclosure",JSON.stringify(this.relevantAttachments));
  7133. // 费用明细付款
  7134. formData.append("tWarehousebillsfeesCr",JSON.stringify(this.warehouseCrList));
  7135. // 收款
  7136. formData.append("tWarehousebillsfeesDr",JSON.stringify(this.warehouseDrList));
  7137. formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
  7138. formData.append("tCntr", JSON.stringify(this.CntrTable));
  7139. addWarehousebills(formData).then(res => {})
  7140. this.msgSuccess("撤销成功");
  7141. }
  7142. });
  7143. },
  7144. ordersRevoke() {
  7145. ordersRevoke(this.form.fId).then((data) => {
  7146. if (data.code === 200) {
  7147. this.$set(this.form, "warehouseStatus", 2);
  7148. this.msgSuccess("撤销成功");
  7149. }
  7150. });
  7151. },
  7152. //撤销审批
  7153. revokeTwo(status) {
  7154. let data = {
  7155. actId: 110,
  7156. billId: this.form.fId,
  7157. id: this.form.fId,
  7158. fidStatus: status,
  7159. };
  7160. revokeTwo(data).then((data) => {
  7161. if (data.code === 200) {
  7162. this.browseStatus = false;
  7163. this.msgSuccess("撤销成功");
  7164. if (status) {
  7165. this.$set(this.form, "warehouseStatus", 2);
  7166. this.$set(this.form, "fBillstatus", 2);
  7167. }
  7168. }
  7169. });
  7170. },
  7171. // 查看审批流
  7172. getDataList() {
  7173. this.addOrUpdateVisible = false;
  7174. },
  7175. returnData() {
  7176. this.addOrUpdateVisib = false;
  7177. this.$router.push({path: "/index"});
  7178. },
  7179. addOrUpdateHandle(form, status) {
  7180. this.addOrUpdateVisible = true;
  7181. let actId = "110";
  7182. this.$nextTick(() => {
  7183. this.$refs.addOrUpdate.init(form.fId, actId, status);
  7184. });
  7185. },
  7186. addOrUpdateHand(form, status) {
  7187. this.addOrUpdateVisib = true;
  7188. this.$nextTick(() => {
  7189. this.$refs.ApprovalComments.init(form.fId, status, 110);
  7190. });
  7191. },
  7192. changefStltype(row) {
  7193. this.fMblnoOptions.map((e) => {
  7194. if (row == e.fId) {
  7195. this.$set(
  7196. this.form,
  7197. "fStltypeid",
  7198. e.fStltypeid ? e.fStltypeid.toString() : null
  7199. );
  7200. }
  7201. });
  7202. },
  7203. changeGoods(row) {
  7204. this.goodsOptions.map((e) => {
  7205. if (row == e.fId) {
  7206. if (e.ifCntrno == "1") {
  7207. this.ifCntrnoStatus = 1;
  7208. } else {
  7209. this.ifCntrnoStatus = null;
  7210. }
  7211. }
  7212. });
  7213. },
  7214. discharge() {
  7215. let checkData = {
  7216. fId: this.form.fId,
  7217. fType: "warehouse",
  7218. codeVal: this.form.fDateChanged,
  7219. };
  7220. checkCode(checkData).then((response) => {
  7221. if (!response) {
  7222. this.$confirm("数据发生变化,请更新一下数据?", "提示", {
  7223. confirmButtonText: "确认",
  7224. cancelButtonText: "取消",
  7225. type: "warning",
  7226. }).then(() => {
  7227. this.getForm();
  7228. });
  7229. } else {
  7230. if (this.Printinglist.length > 0) {
  7231. for (let item in this.Printinglist) {
  7232. if (this.Printinglist[item].fBillstatus === 10) {
  7233. return this.$message.error("请先打印作业单");
  7234. }
  7235. if (this.Printinglist[item].fBillstatus >= 30 && this.stockoi == "0") {
  7236. return this.$message.error("请勿重复装货");
  7237. }
  7238. }
  7239. if (this.CntrTable.length > 0) {
  7240. let arr = [];
  7241. this.CntrTable.map((e) => {
  7242. this.cntrList.map((item) => {
  7243. if (item.fId == e.fCntrid) {
  7244. arr.push(item.fName + "X" + e.fCntrcount);
  7245. }
  7246. });
  7247. });
  7248. arr = [...new Set(arr)];
  7249. this.form.fCntval = arr.join(",");
  7250. } else {
  7251. this.form.fCntval = null;
  7252. }
  7253. if (this.detailList.length > 0) {
  7254. let arr = [];
  7255. this.detailList.map((e) => {
  7256. this.goodsOptions.map((item) => {
  7257. if (e.fGoodsid == item.fId) {
  7258. arr.push(item.fName);
  7259. }
  7260. });
  7261. });
  7262. arr = [...new Set(arr)];
  7263. this.form.fProductName = arr.join(",");
  7264. } else {
  7265. this.form.fProductName = "";
  7266. }
  7267. if (this.detailList.length > 0) {
  7268. let arr = [];
  7269. this.detailList.map((e) => {
  7270. arr.push(e.fMarks);
  7271. });
  7272. arr = [...new Set(arr)];
  7273. this.form.fMarks = arr.join(",");
  7274. } else {
  7275. this.form.fMarks = "";
  7276. }
  7277. if (this.detailList.length == 0) {
  7278. this.form.fNetweight = 0;
  7279. this.form.fPlanvolumn = 0;
  7280. this.form.fGrossweight = 0;
  7281. } else {
  7282. this.form.fNetweight = this.fNetweight;
  7283. this.form.fPlanvolumn = this.fPlanvolumn;
  7284. this.form.fGrossweight = this.fGrossweight;
  7285. }
  7286. let formData = new window.FormData();
  7287. formData.append("warehouseBills", JSON.stringify(this.form));
  7288. formData.append(
  7289. "tEnclosure",
  7290. JSON.stringify(this.relevantAttachments)
  7291. );
  7292. formData.append(
  7293. "warehousebillsitems",
  7294. JSON.stringify(this.Printinglist)
  7295. );
  7296. formData.append(
  7297. "warehousebillsfeesDr",
  7298. JSON.stringify(this.warehouseDrList)
  7299. );
  7300. formData.append(
  7301. "warehousebillsfeesCr",
  7302. JSON.stringify(this.warehouseCrList)
  7303. );
  7304. formData.append("tCntr", JSON.stringify(this.CntrTable));
  7305. disChargelist(formData).then((response) => {
  7306. this.$set(this.form, "fDateChanged", response.data.fDateChanged);
  7307. if ((response.code = 200)) {
  7308. this.detailList.map((e, index) => {
  7309. response.data.warehousebillsitems.map((item) => {
  7310. if (e.fId == item.fId) {
  7311. e = item;
  7312. this.$set(this.detailList, index, e);
  7313. }
  7314. });
  7315. });
  7316. this.msgSuccess("卸货成功");
  7317. this.$set(this.form, "fItemsStatus", 3);
  7318. }
  7319. });
  7320. } else {
  7321. this.$message.error("请选择需要卸货的明细!");
  7322. }
  7323. }
  7324. });
  7325. },
  7326. creditClick() {
  7327. let checkData = {
  7328. fId: this.form.fId,
  7329. fType: "warehouse",
  7330. codeVal: this.form.fDateChanged,
  7331. };
  7332. checkCode(checkData).then((response) => {
  7333. if (!response) {
  7334. this.$confirm("数据发生变化,请更新一下数据?", "提示", {
  7335. confirmButtonText: "确认",
  7336. cancelButtonText: "取消",
  7337. type: "warning",
  7338. }).then(() => {
  7339. this.getForm();
  7340. });
  7341. } else {
  7342. for (let item in this.Printinglist) {
  7343. if (!this.Printinglist[item].fId) {
  7344. return this.$message.error("请存在未保存的数据");
  7345. }
  7346. if (this.entryPrinting == 0) {
  7347. if (this.Printinglist[item].fBillstatus == 10 && this.stockoi == "0") return this.$message.error("请存在未打印的作业单");
  7348. }
  7349. if (
  7350. this.Printinglist[item].fBillstatus == 20 &&
  7351. this.stockoi == "0"
  7352. ) {
  7353. return this.$message.error("请存在未卸货的数据");
  7354. }
  7355. }
  7356. if (this.CntrTable.length > 0) {
  7357. let arr = [];
  7358. this.CntrTable.map((e) => {
  7359. this.cntrList.map((item) => {
  7360. if (item.fId == e.fCntrid) {
  7361. arr.push(item.fName + "X" + e.fCntrcount);
  7362. }
  7363. });
  7364. });
  7365. arr = [...new Set(arr)];
  7366. this.form.fCntval = arr.join(",");
  7367. } else {
  7368. this.form.fCntval = null;
  7369. }
  7370. if (this.detailList.length > 0) {
  7371. let arr = [];
  7372. this.detailList.map((e) => {
  7373. this.goodsOptions.map((item) => {
  7374. if (e.fGoodsid == item.fId) {
  7375. arr.push(item.fName);
  7376. }
  7377. });
  7378. });
  7379. arr = [...new Set(arr)];
  7380. this.form.fProductName = arr.join(",");
  7381. } else {
  7382. this.form.fProductName = "";
  7383. }
  7384. if (this.detailList.length > 0) {
  7385. let arr = [];
  7386. this.detailList.map((e) => {
  7387. arr.push(e.fMarks);
  7388. });
  7389. arr = [...new Set(arr)];
  7390. this.form.fMarks = arr.join(",");
  7391. } else {
  7392. this.form.fMarks = "";
  7393. }
  7394. if (this.detailList.length == 0) {
  7395. this.form.fNetweight = 0;
  7396. this.form.fPlanvolumn = 0;
  7397. this.form.fGrossweight = 0;
  7398. } else {
  7399. this.form.fNetweight = this.fNetweight;
  7400. this.form.fPlanvolumn = this.fPlanvolumn;
  7401. this.form.fGrossweight = this.fGrossweight;
  7402. }
  7403. for (let item in this.Printinglist){
  7404. this.Printinglist[item].fBillingway = this.form.fFeetUnit
  7405. }
  7406. this.form.fFeetunit = this.form.fFeetUnit
  7407. let formData = new window.FormData();
  7408. formData.append("warehouseBills", JSON.stringify(this.form));
  7409. formData.append(
  7410. "warehousebillsitems",
  7411. JSON.stringify(this.Printinglist)
  7412. );
  7413. formData.append(
  7414. "warehousebillsfeesDr",
  7415. JSON.stringify(this.warehouseDrList)
  7416. );
  7417. formData.append(
  7418. "warehousebillsfeesCr",
  7419. JSON.stringify(this.warehouseCrList)
  7420. );
  7421. formData.append(
  7422. "tEnclosure",
  7423. JSON.stringify(this.relevantAttachments)
  7424. );
  7425. formData.append("whgenleg", JSON.stringify(this.relevantAttachments));
  7426. formData.append("tCntr", JSON.stringify(this.CntrTable));
  7427. addWhgenleg(formData).then((response) => {
  7428. if ((response.code = 200)) {
  7429. this.$set(this.form, "fDateChanged", response.data.fDateChanged);
  7430. this.TFformdata(response.data.warehousebills);
  7431. this.detailList.map((e, index) => {
  7432. response.data.warehousebillsitems.map((item) => {
  7433. if (e.fId == item.fId) {
  7434. e = item;
  7435. this.$set(this.detailList, index, e);
  7436. }
  7437. });
  7438. });
  7439. this.msgSuccess("入库成功");
  7440. this.$set(this.form, "fItemsStatus", 4);
  7441. }
  7442. });
  7443. }
  7444. });
  7445. },
  7446. // 撤回入账
  7447. withdrawClick() {
  7448. let checkData = {
  7449. fId: this.form.fId,
  7450. fType: "warehouse",
  7451. codeVal: this.form.fDateChanged,
  7452. };
  7453. checkCode(checkData).then((response) => {
  7454. if (!response) {
  7455. this.$confirm("数据发生变化,请更新一下数据?", "提示", {
  7456. confirmButtonText: "确认",
  7457. cancelButtonText: "取消",
  7458. type: "warning",
  7459. }).then(() => {
  7460. this.getForm();
  7461. });
  7462. } else {
  7463. for (let item in this.Printinglist) {
  7464. if (!this.Printinglist[item].fId) {
  7465. return this.$message.error("请存在未保存的数据");
  7466. }
  7467. if (this.Printinglist[item].fBillstatus == 10) {
  7468. return this.$message.error("请存在未打印的作业单");
  7469. }
  7470. if (this.Printinglist[item].fBillstatus == 20) {
  7471. return this.$message.error("请存在未卸货的数据");
  7472. }
  7473. if (this.Printinglist[item].fBillstatus == 30) {
  7474. return this.$message.error("请存在未入库的数据");
  7475. }
  7476. }
  7477. if (this.CntrTable.length > 0) {
  7478. let arr = [];
  7479. this.CntrTable.map((e) => {
  7480. this.cntrList.map((item) => {
  7481. if (item.fId == e.fCntrid) {
  7482. arr.push(item.fName + "X" + e.fCntrcount);
  7483. }
  7484. });
  7485. });
  7486. arr = [...new Set(arr)];
  7487. this.form.fCntval = arr.join(",");
  7488. } else {
  7489. this.form.fCntval = null;
  7490. }
  7491. if (this.detailList.length > 0) {
  7492. let arr = [];
  7493. this.detailList.map((e) => {
  7494. this.goodsOptions.map((item) => {
  7495. if (e.fGoodsid == item.fId) {
  7496. arr.push(item.fName);
  7497. }
  7498. });
  7499. });
  7500. arr = [...new Set(arr)];
  7501. this.form.fProductName = arr.join(",");
  7502. } else {
  7503. this.form.fProductName = "";
  7504. }
  7505. if (this.detailList.length > 0) {
  7506. let arr = [];
  7507. this.detailList.map((e) => {
  7508. arr.push(e.fMarks);
  7509. });
  7510. arr = [...new Set(arr)];
  7511. this.form.fMarks = arr.join(",");
  7512. } else {
  7513. this.form.fMarks = "";
  7514. }
  7515. if (this.detailList.length == 0) {
  7516. this.form.fNetweight = 0;
  7517. this.form.fPlanvolumn = 0;
  7518. this.form.fGrossweight = 0;
  7519. } else {
  7520. this.form.fNetweight = this.fNetweight;
  7521. this.form.fPlanvolumn = this.fPlanvolumn;
  7522. this.form.fGrossweight = this.fGrossweight;
  7523. }
  7524. // 撤回入库
  7525. let formData = new window.FormData();
  7526. formData.append("warehouseBills", JSON.stringify(this.form));
  7527. formData.append(
  7528. "warehousebillsitems",
  7529. JSON.stringify(this.Printinglist)
  7530. );
  7531. formData.append(
  7532. "warehousebillsfeesDr",
  7533. JSON.stringify(this.warehouseDrList)
  7534. );
  7535. formData.append(
  7536. "warehousebillsfeesCr",
  7537. JSON.stringify(this.warehouseCrList)
  7538. );
  7539. formData.append(
  7540. "tEnclosure",
  7541. JSON.stringify(this.relevantAttachments)
  7542. );
  7543. formData.append("tCntr", JSON.stringify(this.CntrTable));
  7544. updateCredit(formData).then((response) => {
  7545. if (response.code == 200) {
  7546. this.Printinglist.map((e) => {
  7547. this.detailList.map((item, index) => {
  7548. if (e.fId == item.fId) {
  7549. this.$set(this.detailList[index], "fBillstatus", 10);
  7550. }
  7551. });
  7552. });
  7553. this.msgSuccess("撤回成功");
  7554. this.$refs.multipleTables.clearSelection()
  7555. this.$set(this.form, "fItemsStatus", 1);
  7556. this.$set(this.form, "fDateChanged", response.msg);
  7557. }
  7558. });
  7559. }
  7560. });
  7561. },
  7562. TFformdata(data) {
  7563. this.form = data;
  7564. if (this.form.fBillstatus > 3) {
  7565. this.approvalStatus = false;
  7566. this.browseStatus = true;
  7567. } else {
  7568. this.approvalStatus = true;
  7569. this.browseStatus = false;
  7570. }
  7571. this.$set(
  7572. this.form,
  7573. "sendSampleDate",
  7574. Date.parse(this.form.sendSampleDate)
  7575. );
  7576. this.$set(
  7577. this.form,
  7578. "weightRecoveryDate",
  7579. Date.parse(this.form.weightRecoveryDate)
  7580. );
  7581. this.$set(
  7582. this.form,
  7583. "fWeighingDate",
  7584. Date.parse(this.form.fWeighingDate)
  7585. );
  7586. this.$set(
  7587. this.form,
  7588. "fDeclarationElements",
  7589. this.form.fDeclarationElements
  7590. ? this.form.fDeclarationElements.toString()
  7591. : null
  7592. );
  7593. this.$set(
  7594. this.form,
  7595. "fIfinspection",
  7596. this.form.fIfinspection || this.form.fIfinspection == 0
  7597. ? this.form.fIfinspection.toString()
  7598. : null
  7599. );
  7600. this.$set(
  7601. this.form,
  7602. "fIfsampling",
  7603. this.form.fIfsampling || this.form.fIfsampling == 0
  7604. ? this.form.fIfsampling.toString()
  7605. : null
  7606. );
  7607. this.$set(
  7608. this.form,
  7609. "fIfweightRecovery",
  7610. this.form.fIfweightRecovery || this.form.fIfweightRecovery == 0
  7611. ? this.form.fIfweightRecovery.toString()
  7612. : null
  7613. );
  7614. this.$set(this.form, "fEta", Date.parse(this.form.fEta));
  7615. this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
  7616. this.$set(this.form, "fBstime", Date.parse(this.form.fBstime));
  7617. this.$set(this.form, "createTime", Date.parse(this.form.createTime));
  7618. this.$set(this.form, "fChargedate", Date.parse(this.form.fChargedate));
  7619. this.$set(
  7620. this.form,
  7621. "freeContainerDate",
  7622. Date.parse(this.form.freeContainerDate)
  7623. );
  7624. this.$set(this.form, "fFeetUnit", this.form.fFeetunit);
  7625. this.tfNetweightnum = (this.form.fPlannetweight / 1000).toFixed(4);
  7626. this.tfGrossweightnum = (this.form.fPlangrossweight / 1000).toFixed(4);
  7627. if (this.form.fTrademodeid) {
  7628. this.$set(this.form, "fTrademodeid", this.form.fTrademodeid.toString());
  7629. }
  7630. if (this.form.fStltypeid || this.form.fStltypeid == 0) {
  7631. this.$set(this.form, "fStltypeid", this.form.fStltypeid.toString());
  7632. }
  7633. },
  7634. getForm() {
  7635. let fId = null
  7636. if (this.chiId) fId = this.chiId
  7637. if (this.chiId? false: this.form.fId) fId = this.form.fId
  7638. getWarehousebills(fId).then((response) => {
  7639. this.TFformdata(response.data.warehousebills);
  7640. if (!this.copyStatus || this.recordStatus === true) {
  7641. if (response.data.warehouseBillsItem) {
  7642. response.data.warehouseBillsItem.map((e) => {
  7643. e.fLntype = e.fLntype ? e.fLntype.toString() : null;
  7644. });
  7645. this.detailList = response.data.warehouseBillsItem;
  7646. } else {
  7647. this.detailList = [];
  7648. }
  7649. response.data.warehousebillsfeesCr.map((e) => {
  7650. if (e.fFeeunitid) {
  7651. e.fFeeUnitid = e.fFeeunitid.toString();
  7652. }
  7653. if (e.fStltypeid || e.fStltypeid == 0) {
  7654. e.fStltypeid = e.fStltypeid.toString();
  7655. }
  7656. });
  7657. this.warehouseCrList = response.data.warehousebillsfeesCr;
  7658. response.data.warehousebillsfeesDr.map((e) => {
  7659. if (e.fFeeunitid) {
  7660. e.fFeeUnitid = e.fFeeunitid.toString();
  7661. }
  7662. if (e.fStltypeid || e.fStltypeid == 0) {
  7663. e.fStltypeid = e.fStltypeid.toString();
  7664. }
  7665. });
  7666. this.warehouseDrList = response.data.warehousebillsfeesDr;
  7667. if (response.data.tCntrList) {
  7668. this.CntrTable = response.data.tCntrList;
  7669. } else {
  7670. this.CntrTable = [];
  7671. }
  7672. if (response.data.enclosures) {
  7673. this.relevantAttachments = response.data.enclosures;
  7674. }
  7675. } else {
  7676. this.approvalStatus = false;
  7677. this.browseStatus = false;
  7678. this.$set(this.form, "fId", null);
  7679. this.$set(this.form, "fMblno", null);
  7680. this.$set(this.form, "fMarks", null);
  7681. this.$set(this.form, "fProductName", null);
  7682. this.$set(this.form, "warehouseStatus", null);
  7683. this.$set(this.form, "fBillstatus", null);
  7684. this.$set(this.form, "fItemsStatus", null);
  7685. this.$set(this.form, "fNetweight", 0);
  7686. this.$set(this.form, "fPlanvolumn", 0);
  7687. this.$set(this.form, "fGrossweight", 0);
  7688. // this.recordStatus = true
  7689. }
  7690. });
  7691. },
  7692. //从表库位弹窗下拉树状事件
  7693. getAlltree(tree) {
  7694. this.importList.fWarehouseInformation = tree.fWarehouseInformation;
  7695. },
  7696. submitForm() {
  7697. let checkData = {
  7698. fId: this.form.fId,
  7699. fType: "warehouse",
  7700. codeVal: this.form.fDateChanged,
  7701. };
  7702. checkCode(checkData).then((response) => {
  7703. if (!response) {
  7704. this.$confirm("数据发生变化,请更新一下数据?", "提示", {
  7705. confirmButtonText: "确认",
  7706. cancelButtonText: "取消",
  7707. type: "warning",
  7708. }).then(() => {
  7709. this.getForm();
  7710. });
  7711. } else {
  7712. this.$refs["form"].validate((valid) => {
  7713. if (valid) {
  7714. // if (this.detailList.length === 0) {
  7715. // return this.$message.error("请新增库存明细!");
  7716. // }
  7717. for (let item in this.warehouseDrList) {
  7718. if (!this.warehouseDrList[item].fCorpid) {
  7719. if (item === "fBusinessType") {
  7720. } else {
  7721. this.$message.error(
  7722. "请维护收款信息第" + (Number(item) + 1) + "行客户名称"
  7723. );
  7724. return false;
  7725. }
  7726. }
  7727. if (!this.warehouseDrList[item].fFeeid) {
  7728. if (item === "fBusinessType") {
  7729. } else {
  7730. this.$message.error(
  7731. "请维护收款信息第" + (Number(item) + 1) + "行费用名称"
  7732. );
  7733. return false;
  7734. }
  7735. }
  7736. if (!this.warehouseDrList[item].fFeeUnitid) {
  7737. if (item === "fBusinessType") {
  7738. } else {
  7739. this.$message.error(
  7740. "请维护收款信息第" + (Number(item) + 1) + "行计价单位"
  7741. );
  7742. return false;
  7743. }
  7744. }
  7745. }
  7746. for (let item in this.warehouseCrList) {
  7747. if (!this.warehouseCrList[item].fCorpid) {
  7748. if (item === "fBusinessType") {
  7749. } else {
  7750. this.$message.error(
  7751. "请维护付款信息第" + (Number(item) + 1) + "行客户名称"
  7752. );
  7753. return false;
  7754. }
  7755. }
  7756. if (!this.warehouseCrList[item].fFeeid) {
  7757. if (item === "fBusinessType") {
  7758. } else {
  7759. this.$message.error(
  7760. "请维护付款信息第" + (Number(item) + 1) + "行费用名称"
  7761. );
  7762. return false;
  7763. }
  7764. }
  7765. if (!this.warehouseCrList[item].fFeeUnitid) {
  7766. if (item === "fBusinessType") {
  7767. } else {
  7768. this.$message.error(
  7769. "请维护付款信息第" + (Number(item) + 1) + "行计价单位"
  7770. );
  7771. return false;
  7772. }
  7773. }
  7774. }
  7775. // 附件数据
  7776. this.form.fBillingway = this.form.fFeetUnit;
  7777. if (this.detailList.length == 0) {
  7778. this.form.fNetweight = 0;
  7779. this.form.fPlanvolumn = 0;
  7780. this.form.fGrossweight = 0;
  7781. } else {
  7782. this.form.fNetweight = this.fNetweight;
  7783. this.form.fPlanvolumn = this.fPlanvolumn;
  7784. this.form.fGrossweight = this.fGrossweight;
  7785. }
  7786. if (this.CntrTable.length > 0) {
  7787. let arr = [];
  7788. this.CntrTable.map((e) => {
  7789. this.cntrList.map((item) => {
  7790. if (item.fId == e.fCntrid) {
  7791. arr.push(item.fName + "X" + e.fCntrcount);
  7792. }
  7793. });
  7794. });
  7795. arr = [...new Set(arr)];
  7796. this.form.fCntval = arr.join(",");
  7797. } else {
  7798. this.form.fCntval = null;
  7799. }
  7800. if (this.detailList.length > 0) {
  7801. let arr = [];
  7802. this.detailList.map((e) => {
  7803. this.goodsOptions.map((item) => {
  7804. if (e.fGoodsid == item.fId) {
  7805. arr.push(item.fName);
  7806. }
  7807. });
  7808. });
  7809. arr = [...new Set(arr)];
  7810. this.form.fProductName = arr.join(",");
  7811. } else {
  7812. this.form.fProductName = "";
  7813. }
  7814. if (this.detailList.length > 0) {
  7815. let arr = [];
  7816. this.detailList.map((e) => {
  7817. arr.push(e.fMarks);
  7818. });
  7819. arr = [...new Set(arr)];
  7820. this.form.fMarks = arr.join(",");
  7821. } else {
  7822. this.form.fMarks = "";
  7823. }
  7824. let formData = new window.FormData();
  7825. formData.append("tWarehouseBills", JSON.stringify(this.form));
  7826. // 库存明细
  7827. formData.append(
  7828. "tWarehousebillsitems",
  7829. JSON.stringify(this.detailList)
  7830. );
  7831. // 附件数据
  7832. formData.append(
  7833. "tEnclosure",
  7834. JSON.stringify(this.relevantAttachments)
  7835. );
  7836. // 费用明细付款
  7837. formData.append(
  7838. "tWarehousebillsfeesCr",
  7839. JSON.stringify(this.warehouseCrList)
  7840. );
  7841. // 收款
  7842. formData.append(
  7843. "tWarehousebillsfeesDr",
  7844. JSON.stringify(this.warehouseDrList)
  7845. );
  7846. formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
  7847. formData.append("tCntr", JSON.stringify(this.CntrTable));
  7848. addWarehouse(formData).then((response) => {
  7849. if (response.code == 200) {
  7850. this.msgSuccess("提交成功");
  7851. setTimeout(() => {
  7852. this.cancel();
  7853. }, 200);
  7854. }
  7855. });
  7856. }
  7857. });
  7858. }
  7859. });
  7860. },
  7861. verifyForm() {
  7862. let checkData = {
  7863. fId: this.form.fId,
  7864. fType: "warehouse",
  7865. codeVal: this.form.fDateChanged,
  7866. };
  7867. checkCode(checkData).then((response) => {
  7868. if (!response) {
  7869. this.$confirm("数据发生变化,请更新一下数据?", "提示", {
  7870. confirmButtonText: "确认",
  7871. cancelButtonText: "取消",
  7872. type: "warning",
  7873. }).then(() => {
  7874. this.getForm();
  7875. });
  7876. } else {
  7877. this.$refs["form"].validate((valid) => {
  7878. if (valid) {
  7879. // 附件数据
  7880. this.form.fBillingway = this.form.fFeetUnit;
  7881. if (this.detailList.length == 0) {
  7882. this.form.fNetweight = 0;
  7883. this.form.fPlanvolumn = 0;
  7884. this.form.fGrossweight = 0;
  7885. } else {
  7886. this.form.fNetweight = this.fNetweight;
  7887. this.form.fPlanvolumn = this.fPlanvolumn;
  7888. this.form.fGrossweight = this.fGrossweight;
  7889. }
  7890. if (this.CntrTable.length > 0) {
  7891. let arr = [];
  7892. this.CntrTable.map((e) => {
  7893. this.cntrList.map((item) => {
  7894. if (item.fId == e.fCntrid) {
  7895. arr.push(item.fName + "X" + e.fCntrcount);
  7896. }
  7897. });
  7898. });
  7899. arr = [...new Set(arr)];
  7900. this.form.fCntval = arr.join(",");
  7901. } else {
  7902. this.form.fCntval = null;
  7903. }
  7904. if (this.detailList.length > 0) {
  7905. let arr = [];
  7906. this.detailList.map((e) => {
  7907. this.goodsOptions.map((item) => {
  7908. if (e.fGoodsid == item.fId) {
  7909. arr.push(item.fName);
  7910. }
  7911. });
  7912. });
  7913. arr = [...new Set(arr)];
  7914. this.form.fProductName = arr.join(",");
  7915. } else {
  7916. this.form.fProductName = "";
  7917. }
  7918. if (this.detailList.length > 0) {
  7919. let arr = [];
  7920. this.detailList.map((e) => {
  7921. arr.push(e.fMarks);
  7922. });
  7923. arr = [...new Set(arr)];
  7924. this.form.fMarks = arr.join(",");
  7925. } else {
  7926. this.form.fMarks = "";
  7927. }
  7928. let formData = new window.FormData();
  7929. formData.append("tWarehouseBills", JSON.stringify(this.form));
  7930. // 库存明细
  7931. formData.append(
  7932. "tWarehousebillsitems",
  7933. JSON.stringify(this.detailList)
  7934. );
  7935. // 附件数据
  7936. formData.append(
  7937. "tEnclosure",
  7938. JSON.stringify(this.relevantAttachments)
  7939. );
  7940. // 费用明细付款
  7941. formData.append(
  7942. "tWarehousebillsfeesCr",
  7943. JSON.stringify(this.warehouseCrList)
  7944. );
  7945. // 收款
  7946. formData.append(
  7947. "tWarehousebillsfeesDr",
  7948. JSON.stringify(this.warehouseDrList)
  7949. );
  7950. formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
  7951. formData.append("tCntr", JSON.stringify(this.CntrTable));
  7952. submitWarehousingApproval(formData).then((response) => {
  7953. if (response.code == 200) {
  7954. this.msgSuccess("请核成功");
  7955. this.$set(this.form, "warehouseStatus", 4);
  7956. this.cancel();
  7957. }
  7958. });
  7959. }
  7960. });
  7961. }
  7962. });
  7963. },
  7964. saveForm(status) {
  7965. let checkData = {
  7966. fId: this.form.fId,
  7967. fType: "warehouse",
  7968. codeVal: this.form.fDateChanged,
  7969. };
  7970. checkCode(checkData).then((response) => {
  7971. if (!response) {
  7972. this.$confirm("数据发生变化,请更新一下数据?", "提示", {
  7973. confirmButtonText: "确认",
  7974. cancelButtonText: "取消",
  7975. type: "warning",
  7976. }).then(() => {
  7977. this.getForm();
  7978. });
  7979. } else {
  7980. this.$refs["form"].validate((valid) => {
  7981. if (valid) {
  7982. this.form.fBillingway = this.form.fFeetUnit;
  7983. if (this.detailList.length == 0) {
  7984. this.form.fNetweight = 0;
  7985. this.form.fPlanvolumn = 0;
  7986. this.form.fGrossweight = 0;
  7987. } else {
  7988. this.form.fNetweight = this.fNetweight;
  7989. this.form.fPlanvolumn = this.fPlanvolumn;
  7990. this.form.fGrossweight = this.fGrossweight;
  7991. }
  7992. let formData = new window.FormData();
  7993. // 附件数据
  7994. this.form.fQty = this.fQty;
  7995. if (this.CntrTable.length > 0) {
  7996. let arr = [];
  7997. this.CntrTable.map((e) => {
  7998. this.cntrList.map((item) => {
  7999. if (item.fId == e.fCntrid) {
  8000. arr.push(item.fName + "X" + e.fCntrcount);
  8001. }
  8002. });
  8003. });
  8004. arr = [...new Set(arr)];
  8005. this.form.fCntval = arr.join(",");
  8006. } else {
  8007. this.form.fCntval = null;
  8008. }
  8009. if (this.detailList.length > 0) {
  8010. let arr = [];
  8011. this.detailList.map((e) => {
  8012. this.goodsOptions.map((item) => {
  8013. if (e.fGoodsid == item.fId) {
  8014. arr.push(item.fName);
  8015. }
  8016. });
  8017. });
  8018. arr = [...new Set(arr)];
  8019. this.form.fProductName = arr.join(",");
  8020. } else {
  8021. this.form.fProductName = "";
  8022. }
  8023. if (this.detailList.length > 0) {
  8024. let arr = [];
  8025. this.detailList.map((e) => {
  8026. arr.push(e.fMarks);
  8027. });
  8028. arr = [...new Set(arr)];
  8029. this.form.fMarks = arr.join(",");
  8030. } else {
  8031. this.form.fMarks = "";
  8032. }
  8033. this.detailList.forEach(item => {
  8034. this.$set(item, 'fOriginalbillno', this.form.fMblno)
  8035. })
  8036. for (let item in this.warehouseDrList) {
  8037. if (!this.warehouseDrList[item].fCorpid) {
  8038. return this.$message.error('收款信息第' + (Number(item) + 1) + '行' + '客户名称不能为空');
  8039. } else if (!this.warehouseDrList[item].fFeeid) {
  8040. return this.$message.error('收款信息第' + (Number(item) + 1) + '行' + '费用名称不能为空');
  8041. } else if (!this.warehouseDrList[item].fFeeUnitid) {
  8042. return this.$message.error('收款信息第' + (Number(item) + 1) + '行' + '计价单位不能为空');
  8043. }
  8044. }
  8045. for (let item in this.warehouseCrList) {
  8046. if (!this.warehouseCrList[item].fCorpid) {
  8047. return this.$message.error('付款信息第' + (Number(item) + 1) + '行' + '客户名称不能为空');
  8048. } else if (!this.warehouseCrList[item].fFeeid) {
  8049. return this.$message.error('付款信息第' + (Number(item) + 1) + '行' + '费用名称不能为空');
  8050. } else if (!this.warehouseCrList[item].fFeeUnitid) {
  8051. return this.$message.error('付款信息第' + (Number(item) + 1) + '行' + '计价单位不能为空');
  8052. }
  8053. }
  8054. this.$set(this.form, 'fFeetunit', this.form.fFeetUnit)
  8055. formData.append("tWarehouseBills", JSON.stringify(this.form));
  8056. // 库存明细
  8057. formData.append("tWarehousebillsitems",JSON.stringify(this.detailList));
  8058. // 附件数据
  8059. formData.append("tEnclosure",JSON.stringify(this.relevantAttachments));
  8060. // 费用明细付款
  8061. formData.append("tWarehousebillsfeesCr",JSON.stringify(this.warehouseCrList));
  8062. // 收款
  8063. formData.append("tWarehousebillsfeesDr",JSON.stringify(this.warehouseDrList));
  8064. formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
  8065. formData.append("tCntr", JSON.stringify(this.CntrTable));
  8066. addWarehousebills(formData).then((response) => {
  8067. if (response.data == false) {
  8068. this.$confirm(response.msg, "提示", {
  8069. confirmButtonText: "确定",
  8070. cancelButtonText: "取消",
  8071. type: "warning",
  8072. }).then(() => {
  8073. this.mblnoStatus = true;
  8074. this.saveForm();
  8075. }).catch(() => {
  8076. this.$message({
  8077. type: "info",
  8078. message: "已取消",
  8079. });
  8080. });
  8081. } else {
  8082. if ((response.code = 200)) {
  8083. this.mblnoStatus = "";
  8084. this.TFformdata(response.data.warehouseBills);
  8085. this.detailList = response.data.warehousebillsitems;
  8086. this.msgSuccess("保存成功");
  8087. getWarehousebills(this.form.fId).then((response) => {
  8088. this.TFformdata(response.data.warehousebills);
  8089. if (!this.copyStatus || this.recordStatus === true) {
  8090. if (response.data.warehouseBillsItem) {
  8091. response.data.warehouseBillsItem.map((e) => {
  8092. e.fLntype = e.fLntype ? e.fLntype.toString() : null;
  8093. });
  8094. this.detailList = response.data.warehouseBillsItem;
  8095. } else {
  8096. this.detailList = [];
  8097. }
  8098. response.data.warehousebillsfeesCr.map((e) => {
  8099. if (e.fFeeunitid) {
  8100. e.fFeeUnitid = e.fFeeunitid.toString();
  8101. }
  8102. if (e.fStltypeid || e.fStltypeid == 0) {
  8103. e.fStltypeid = e.fStltypeid.toString();
  8104. }
  8105. });
  8106. this.warehouseCrList = response.data.warehousebillsfeesCr;
  8107. response.data.warehousebillsfeesDr.map((e) => {
  8108. if (e.fFeeunitid) {
  8109. e.fFeeUnitid = e.fFeeunitid.toString();
  8110. }
  8111. if (e.fStltypeid || e.fStltypeid == 0) {
  8112. e.fStltypeid = e.fStltypeid.toString();
  8113. }
  8114. });
  8115. this.warehouseDrList = response.data.warehousebillsfeesDr;
  8116. if (response.data.tCntrList) {
  8117. this.CntrTable = response.data.tCntrList;
  8118. } else {
  8119. this.CntrTable = [];
  8120. }
  8121. if (response.data.enclosures) {
  8122. this.relevantAttachments = response.data.enclosures;
  8123. }
  8124. }
  8125. // else {
  8126. // this.approvalStatus = false;
  8127. // this.browseStatus = false;
  8128. // this.$set(this.form, "fId", null);
  8129. // this.$set(this.form, "fMblno", null);
  8130. // this.$set(this.form, "fMarks", null);
  8131. // this.$set(this.form, "fProductName", null);
  8132. // this.$set(this.form, "warehouseStatus", null);
  8133. // this.$set(this.form, "fBillstatus", null);
  8134. // this.$set(this.form, "fItemsStatus", null);
  8135. // this.$set(this.form, "fNetweight", 0);
  8136. // this.$set(this.form, "fPlanvolumn", 0);
  8137. // this.$set(this.form, "fGrossweight", 0);
  8138. // // this.recordStatus = true
  8139. // }
  8140. });
  8141. if (status == "goBack") {
  8142. this.cancel();
  8143. }
  8144. }
  8145. }
  8146. });
  8147. }
  8148. });
  8149. }
  8150. });
  8151. },
  8152. imporTable() {
  8153. this.$refs["importList"].validate((valid) => {
  8154. if (valid) {
  8155. for (let item in this.detailList) {
  8156. if (
  8157. this.importList.fCntrno == this.detailList[item].fCntrno &&
  8158. this.importList.fCntrno
  8159. ) {
  8160. return this.$message.error("箱号不能重复");
  8161. }
  8162. }
  8163. this.detailList.push({
  8164. fBillstatus: 10,
  8165. fMblno: this.form.fMblno,
  8166. fQty: this.importList.fQty,
  8167. fNetweight: this.importList.fNetweight,
  8168. fGrossweight: this.importList.fGrossweight,
  8169. fBsdate: this.importList.fBsdate,
  8170. fGoodsid: this.importList.fGoodsid,
  8171. fBusinessType: this.importList.fBusinessType,
  8172. fMarks: this.importList.fMarks,
  8173. fWarehouselocid: this.importList.fWarehouselocid,
  8174. fWarehouseInformation: this.importList.fWarehouseInformation,
  8175. fCntrtype: this.importList.fCntrtype,
  8176. fCntqty: this.importList.fCntqty,
  8177. fPackagespecs: this.importList.fPackagespecs,
  8178. fTruckno: this.importList.fTruckno,
  8179. fDriverName: this.importList.fDriverName,
  8180. fDriverTel: this.importList.fDriverTel,
  8181. fDriverIdCar: this.importList.fDriverIdCar,
  8182. fSerialNumber: this.importList.fSerialNumber,
  8183. fCntrno: this.importList.fCntrno,
  8184. fGoodsval: this.importList.fGoodsval,
  8185. fLntype: this.importList.fLntype,
  8186. fForkliftman: this.importList.fForkliftman,
  8187. fStevedore: this.importList.fStevedore,
  8188. fLocalcntrno: this.importList.fLocalcntrno,
  8189. fSealno: this.importList.fSealno,
  8190. fFleet: this.importList.fFleet,
  8191. remark: this.importList.remark,
  8192. fPlanqty: this.importList.fPlanqty,
  8193. fPlannetweight: this.importList.fPlannetweight,
  8194. fPlangrossweight: this.importList.fPlangrossweight,
  8195. fActualWeight: this.importList.fActualWeight,
  8196. });
  8197. if (this.detailList[0].fGoodsid) {
  8198. for (let item in this.goodsOptions) {
  8199. if (this.goodsOptions[item].fId == this.detailList[0].fGoodsid) {
  8200. this.form.fProductName = this.goodsOptions[item].fName;
  8201. }
  8202. }
  8203. }
  8204. this.weightList = false;
  8205. }
  8206. });
  8207. },
  8208. // 收款信息新行
  8209. addCollection() {
  8210. this.$refs["form"].validate((valid) => {
  8211. if (valid) {
  8212. if (this.form.fBusinessType == null) {
  8213. this.$message.error("请维护作业类型");
  8214. return false;
  8215. } else {
  8216. this.warehouseDrList.push({
  8217. fCorpid: null,
  8218. fFeeid: null,
  8219. fFeeUnitid: "",
  8220. fQty: null,
  8221. fUnitprice: null,
  8222. fAmount: null,
  8223. fCurrency: "RMB",
  8224. fExrate: "1",
  8225. fTaxrate: this.fTaxrate,
  8226. fCxrate: null,
  8227. fRate: null,
  8228. remarks: null,
  8229. fMblno: this.form.fMblno,
  8230. fProductName: this.form.fProductName,
  8231. fMarks: this.form.fMarks,
  8232. fBusinessType: this.form.fBusinessType,
  8233. fSrcTypeId: 0,
  8234. fStltypeid: '1',
  8235. });
  8236. this.fWbuOptions = [];
  8237. let queryParams = {pageNum: 1, fDc: "D"};
  8238. listFees(queryParams).then((response) => {
  8239. this.fDNameOptions = response.rows;
  8240. });
  8241. }
  8242. }
  8243. });
  8244. },
  8245. fiximporTable() {
  8246. this.$refs["importList"].validate((valid) => {
  8247. if (valid) {
  8248. for (let item in this.detailList) {
  8249. if (
  8250. this.importList.fCntrno == this.detailList[item].fCntrno &&
  8251. this.importList.fCntrno &&
  8252. item != this.fixdetaiNum
  8253. ) {
  8254. return this.$message.error("箱号不能重复");
  8255. }
  8256. }
  8257. this.$set(this.detailList, this.fixdetaiNum, this.importList);
  8258. this.weightList = false;
  8259. }
  8260. });
  8261. },
  8262. // 库存明细多选
  8263. Selectinventory(selection) {
  8264. this.Printinglist = selection;
  8265. //允许撤销入库list
  8266. this.dataWithdrawList = selection;
  8267. //允许确认入库list
  8268. this.dataListSelection = selection;
  8269. if (this.dataWithdrawList.length === 0) {
  8270. this.cancelDelivery = true
  8271. } else {
  8272. for (let item in this.dataWithdrawList) {
  8273. if (this.dataWithdrawList[item].fBillstatus === 40) {
  8274. this.cancelDelivery = false
  8275. this.deliveryConfirmation = true
  8276. for (let li in this.dataWithdrawList) {
  8277. if (this.entryPrinting != 0 ? this.dataWithdrawList[li].fBillstatus === 10 : this.dataWithdrawList[li].fBillstatus === 30) {
  8278. this.deliveryConfirmation = true
  8279. this.cancelDelivery = true
  8280. return
  8281. }
  8282. }
  8283. } else if (this.entryPrinting != 0 ? this.dataWithdrawList[item].fBillstatus === 10 : this.dataWithdrawList[item].fBillstatus === 30) {
  8284. this.deliveryConfirmation = false
  8285. this.cancelDelivery = true
  8286. for (let li in this.dataWithdrawList) {
  8287. if (this.dataWithdrawList[li].fBillstatus === 40) {
  8288. this.deliveryConfirmation = true
  8289. this.cancelDelivery = true
  8290. return
  8291. }
  8292. }
  8293. } else {
  8294. this.deliveryConfirmation = false
  8295. }
  8296. }
  8297. }
  8298. },
  8299. // 合计
  8300. getSummaries(param) {
  8301. const {columns, data} = param;
  8302. const sums = [];
  8303. var values = [];
  8304. columns.forEach((column, index) => {
  8305. if (index === 0) {
  8306. sums[index] = "";
  8307. return;
  8308. }
  8309. if (column.property === "fGrossweight") {
  8310. values = data.map((item) => Number(item["fGrossweight"]));
  8311. }
  8312. if (column.property === "fNetweight") {
  8313. values = data.map((item) => Number(item["fNetweight"]));
  8314. }
  8315. if (column.property === "fQty") {
  8316. values = data.map((item) => Number(item["fQty"]));
  8317. }
  8318. if (column.property === "fCntqty") {
  8319. values = data.map((item) => Number(item["fCntqty"]));
  8320. }
  8321. if (column.property === "fActualWeight") {
  8322. values = data.map((item) => Number(item["fActualWeight"]));
  8323. }
  8324. if (
  8325. column.property === "fGrossweight" ||
  8326. column.property === "fNetweight" ||
  8327. column.property === "fQty" ||
  8328. column.property === "fCntqty" ||
  8329. column.property === "fActualWeight"
  8330. ) {
  8331. sums[index] = values.reduce((prev, curr) => {
  8332. const value = Number(curr);
  8333. if (!isNaN(value)) {
  8334. if (column.property === "fGrossweight") {
  8335. this.fGrossweight = prev + curr;
  8336. }
  8337. if (column.property === "fNetweight") {
  8338. this.fNetweight = prev + curr;
  8339. }
  8340. if (column.property === "fQty") {
  8341. this.fQty = prev + curr;
  8342. this.sumMum = prev + curr;
  8343. }
  8344. if (column.property === "fCntqty") {
  8345. this.fCntqty = prev + curr;
  8346. }
  8347. if (column.property === "fActualWeight") {
  8348. this.fActualWeight = prev + curr;
  8349. }
  8350. return prev + curr;
  8351. } else {
  8352. return prev;
  8353. }
  8354. }, 0);
  8355. if (column.property === "fGrossweight") {
  8356. sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
  8357. } else if (column.property === "fNetweight") {
  8358. sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
  8359. } else if (column.property === "fActualWeight") {
  8360. sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
  8361. } else {
  8362. // sums[index] = sums[index].toFixed(2);
  8363. sums[index] = sums[index]
  8364. }
  8365. }
  8366. });
  8367. this.sums = sums;
  8368. return sums;
  8369. },
  8370. playcomputer() {
  8371. if (this.importList.fPlannetweight && this.importList.fPlanqty && this.importList.fPlangrossweight) {
  8372. let Num1 = Number(this.importList.fPlannetweight) / Number(this.importList.fPlanqty);
  8373. let Num2 =
  8374. Number(this.importList.fPlangrossweight) / Number(this.importList.fPlanqty);
  8375. this.importList.fNetweight = Number(
  8376. (this.importList.fQty * Num1).toFixed(4)
  8377. );
  8378. this.tfNetweightnum2 = (this.importList.fNetweight / 1000).toFixed(4);
  8379. this.importList.fGrossweight = Number(
  8380. (this.importList.fQty * Num2).toFixed(4)
  8381. );
  8382. this.tfGrossweightnum2 = (this.importList.fGrossweight / 1000).toFixed(4);
  8383. } else {
  8384. let Num1 = Number(this.form.fPlannetweight) / Number(this.form.fPlanqty);
  8385. let Num2 =
  8386. Number(this.form.fPlangrossweight) / Number(this.form.fPlanqty);
  8387. this.importList.fNetweight = Number(
  8388. (this.importList.fQty * Num1).toFixed(4)
  8389. );
  8390. this.tfNetweightnum2 = (this.importList.fNetweight / 1000).toFixed(4);
  8391. this.importList.fGrossweight = Number(
  8392. (this.importList.fQty * Num2).toFixed(4)
  8393. );
  8394. this.tfGrossweightnum2 = (this.importList.fGrossweight / 1000).toFixed(4);
  8395. }
  8396. },
  8397. imporComputer() {
  8398. this.playcomputer();
  8399. },
  8400. // 入库明细新增list
  8401. addRelevant(status) {
  8402. this.$refs["form"].validate((valid) => {
  8403. if (valid) {
  8404. this.title = "新增";
  8405. this.reset();
  8406. this.fixdetaiNum = null;
  8407. if (
  8408. !this.form.fPlannetweight ||
  8409. !this.form.fPlangrossweight ||
  8410. !this.form.fPlanqty
  8411. ) {
  8412. return this.$message({
  8413. message: "请维护计划净重(kg),计划毛重(kg),计划件数",
  8414. type: "warning",
  8415. });
  8416. }
  8417. this.$set(this.importList, 'fPlanqty', this.form.fPlanqty)
  8418. this.$set(this.importList, 'fPlangrossweight', this.form.fPlangrossweight)
  8419. this.$set(this.importList, 'fPlannetweight', this.form.fPlannetweight)
  8420. this.$set(this.importList, 'fNetweight', this.form.fNetweight)
  8421. this.$set(this.importList, 'fActualWeight', 0)
  8422. //录入复制
  8423. // console.log(this.importList)
  8424. if (this.detailList.length !== 0) this.importList = JSON.parse(JSON.stringify(this.detailList[0]))
  8425. // this.importList.fBusinessType = JSON.stringify(this.importList.fBusinessType)
  8426. if (this.importList.fBusinessType) this.$set(this.importList, 'fBusinessType', typeof this.importList.fBusinessType != 'string' ? JSON.stringify(this.importList.fBusinessType) : this.importList.fBusinessType)
  8427. this.$set(this.importList, 'fCntrno', this.importList.fCntrno === null ? '' : this.importList.fCntrno)
  8428. // console.log(this.importList)
  8429. //结束
  8430. this.importList.fQty = Number(
  8431. (this.form.fPlanqty - this.sumMum).toFixed(2)
  8432. );
  8433. if (this.importList.fQty < 0) {
  8434. this.importList.fQty = 0;
  8435. }
  8436. if (this.form.fTruckno) {
  8437. this.importList.fTruckno = this.form.fTruckno;
  8438. }
  8439. if (this.form.fDriverTel) {
  8440. this.importList.fDriverTel = this.form.fDriverTel;
  8441. }
  8442. if (this.form.fDriverName) {
  8443. this.importList.fDriverName = this.form.fDriverName;
  8444. }
  8445. if (this.form.fDriverIdCar) {
  8446. this.importList.fDriverIdCar = this.form.fDriverIdCar;
  8447. }
  8448. this.allfPlanqty = this.importList.fQty;
  8449. this.importList.fBsdate = this.form.fBsdate;
  8450. this.importList.fGoodsid = this.form.fGoodsid;
  8451. this.goodsOptions.map((e) => {
  8452. if (this.importList.fGoodsid == e.fId) {
  8453. if (e.ifCntrno == "1") {
  8454. this.ifCntrnoStatus = 1;
  8455. } else {
  8456. this.ifCntrnoStatus = null;
  8457. }
  8458. }
  8459. });
  8460. this.playcomputer();
  8461. treeselect(this.form.fWarehouseid).then((response) => {
  8462. this.fWarehouseidOptions = response.data;
  8463. });
  8464. if (status == "copy") {
  8465. this.importList.fBsdate = Date.parse(this.Printinglist[0].fBsdate);
  8466. if (!this.importList.fBsdate) {
  8467. this.importList.fBsdate = this.Printinglist[0].fBsdate;
  8468. }
  8469. this.importList.fGoodsid = this.Printinglist[0].fGoodsid;
  8470. this.importList.fBusinessType = this.Printinglist[0].fBusinessType.toString();
  8471. this.importList.fMarks = this.Printinglist[0].fMarks;
  8472. this.importList.fWarehouselocid = this.Printinglist[0].fWarehouselocid;
  8473. this.importList.fWarehouseInformation = this.Printinglist[0].fWarehouseInformation;
  8474. this.importList.fPackagespecs = this.Printinglist[0].fPackagespecs;
  8475. this.importList.fCntrtype = Number(this.Printinglist[0].fCntrtype);
  8476. this.importList.fCntqty = this.Printinglist[0].fCntqty;
  8477. this.importList.fTruckno = this.Printinglist[0].fTruckno;
  8478. this.importList.fDriverName = this.Printinglist[0].fDriverName;
  8479. this.importList.fDriverTel = this.Printinglist[0].fDriverTel;
  8480. this.importList.fDriverIdCar = this.Printinglist[0].fDriverIdCar;
  8481. this.importList.fSerialNumber = this.Printinglist[0].fSerialNumber;
  8482. this.importList.fGoodsval = this.Printinglist[0].fGoodsval;
  8483. this.importList.remark = this.Printinglist[0].remark;
  8484. this.importList.fQty = this.Printinglist[0].fQty;
  8485. this.importList.fGrossweight = this.Printinglist[0].fGrossweight;
  8486. this.importList.fNetweight = this.Printinglist[0].fNetweight;
  8487. this.tfNetweightnum2 = (this.importList.fNetweight / 1000).toFixed(
  8488. 4
  8489. );
  8490. this.tfGrossweightnum2 = (
  8491. this.importList.fGrossweight / 1000
  8492. ).toFixed(4);
  8493. }
  8494. this.weightList = true;
  8495. }
  8496. });
  8497. },
  8498. printZyd() {
  8499. this.nowTime = new Date(+new Date() + 8 * 3600 * 1000 ).toJSON().substr(0, 19).replace("T"," ")
  8500. if (this.Printinglist.length > 0) {
  8501. for (let item in this.Printinglist) {
  8502. if (!this.Printinglist[item].fId) {
  8503. return this.$message.error("请先保存!");
  8504. }
  8505. if (
  8506. this.Printinglist[item].fTruckno !== this.Printinglist[0].fTruckno
  8507. ) {
  8508. return this.$message.error("请选择车相同车号");
  8509. }
  8510. }
  8511. this.radio = 1
  8512. this.print_zyd = true;
  8513. this.warehouseOptions.map((e) => {
  8514. if (e.fId == this.form.fWarehouseid) {
  8515. this.stockaddr = e.fAddr;
  8516. }
  8517. });
  8518. this.fDriverTel = this.Printinglist[0].fDriverTel;
  8519. } else {
  8520. this.$message.error("请选择需要打印的明细!");
  8521. }
  8522. },
  8523. detailedApproval(command) {
  8524. if (command === 'QH') {
  8525. pleaseCheck(this.form.fId).then(res => {
  8526. if (res.code == 200) {
  8527. this.msgSuccess("请核成功");
  8528. this.$set(this.form, 'fItemstatus', 4)
  8529. }
  8530. })
  8531. } else if (command === 'CK') {
  8532. this.addOrUpdateVisible = true;
  8533. let actId = "170";
  8534. this.$nextTick(() => {
  8535. this.$refs.addOrUpdate.init(this.form.fId, actId, 'f_itemstatus');
  8536. });
  8537. } else if (command === 'SP') {
  8538. this.addOrUpdateVisib = true;
  8539. this.$nextTick(() => {
  8540. this.$refs.ApprovalComments.init(this.form.fId, 'f_itemstatus', 170);
  8541. });
  8542. } else if (command === 'CX') {
  8543. let data = {
  8544. actId: 170,
  8545. billId: this.form.fId,
  8546. id: this.form.fId,
  8547. fidStatus: 'f_itemstatus',
  8548. };
  8549. revokeTwo(data).then((data) => {
  8550. if (data.code === 200) {
  8551. this.browseStatus = false;
  8552. this.msgSuccess("撤销成功");
  8553. this.$set(this.form, 'fItemstatus', 2)
  8554. }
  8555. });
  8556. }
  8557. },
  8558. handleCommand(command) {
  8559. if (this.Printinglist.length > 0) {
  8560. this.$refs["form"].validate((valid) => {
  8561. if (valid) {
  8562. for (let corp in this.fMblnoOptions) {
  8563. if (this.form.fCorpid === this.fMblnoOptions[corp].fId) {
  8564. this.$set(
  8565. this.form,
  8566. "fCorpidName",
  8567. this.fMblnoOptions[corp].fName
  8568. );
  8569. }
  8570. }
  8571. this.warehouseOptions.map((e) => {
  8572. if (e.fId == this.form.fWarehouseid) {
  8573. this.stockName = e.fName;
  8574. this.stockaddr = e.fAddr;
  8575. }
  8576. });
  8577. this.goodsOptions.map((e) => {
  8578. if (e.fId == this.form.fGoodsid) {
  8579. this.$set(
  8580. this.form,
  8581. 'goodName',
  8582. e.fName
  8583. )
  8584. }
  8585. })
  8586. this.radio = 1
  8587. this.fDriverTel = this.Printinglist[0].fDriverTel;
  8588. this.fBsdate = this.Printinglist[0].fBsdate;
  8589. this.fTruckno = this.Printinglist[0].fTruckno;
  8590. this.allfCntqty = 0;
  8591. this.allfGrossweight = 0;
  8592. this.allfPlanqty = 0;
  8593. this.allfNetweight = 0;
  8594. this.allfQty = 0;
  8595. this.Printinglist.map((e) => {
  8596. if (e.fCntqty) {
  8597. this.allfCntqty += e.fCntqty;
  8598. }
  8599. if (e.fGrossweight) {
  8600. this.allfGrossweight += e.fGrossweight;
  8601. }
  8602. if (e.fPlanqty) {
  8603. this.allfPlanqty += e.fPlanqty;
  8604. }
  8605. if (e.fNetweight) {
  8606. this.allfNetweight += e.fNetweight;
  8607. }
  8608. if (e.fQty) {
  8609. this.allfQty += e.fQty;
  8610. }
  8611. if (e.fBsdate) {
  8612. // let date = new Date(this.Printinglist[0].fBsdate);
  8613. let date = new Date(e.fBsdate);
  8614. let Y = date.getFullYear();
  8615. let M =
  8616. date.getMonth() + 1 < 10
  8617. ? "0" + (date.getMonth() + 1)
  8618. : date.getMonth() + 1;
  8619. let D =
  8620. date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
  8621. e.fBsdate = Y + "-" + M + "-" + D;
  8622. }
  8623. //获取当前时间
  8624. let now = new Date()
  8625. let _hour = (10 > now.getHours()) ? '0' + now.getHours() : now.getHours();
  8626. let _minute = (10 > now.getMinutes()) ? '0' + now.getMinutes() : now.getMinutes();
  8627. this.timeOut = _hour + ':' + _minute
  8628. // 把入库时间的时间戳转换为时分秒
  8629. let inTime = new Date(this.form.fBstime);
  8630. let h = inTime.getHours()
  8631. h = h < 10 ? ('0' + h) : h
  8632. let m = inTime.getMinutes()
  8633. m = m < 10 ? ('0' + m) : m
  8634. let s = inTime.getSeconds()
  8635. s = s < 10 ? ('0' + s) : s
  8636. this.inTime = h + ':' + m + ':' + s
  8637. });
  8638. if (command == "a") {
  8639. this.print_shd = true;
  8640. } else if (command == "b") {
  8641. this.nowTime = new Date(+new Date() + 8 * 3600 * 1000 ).toJSON().substr(0, 19).replace("T"," ")
  8642. this.print_rkd = true;
  8643. } else if (command == "c") {
  8644. this.print_lhd = true;
  8645. } else if (command == "d") {
  8646. this.print_hwqr = true;
  8647. } else if (command == "e") {
  8648. this.print_lwqr = true;
  8649. } else if (command == "f") {
  8650. this.print_dpxx = true;
  8651. } else if (command == "L") {
  8652. this.allfGrossweight = 0;
  8653. this.allfNetweight = 0;
  8654. this.Printinglist.map((e) => {
  8655. if (this.radio == 1) {
  8656. if (e.fGrossweight) {
  8657. this.allfGrossweight += parseFloat((e.fGrossweight / 1000).toSuperFixed(4));
  8658. }
  8659. if (e.fNetweight) {
  8660. this.allfNetweight += parseFloat((e.fNetweight / 1000).toSuperFixed(4));
  8661. }
  8662. } else {
  8663. if (e.fGrossweight) {
  8664. this.allfGrossweight += e.fGrossweight;
  8665. }
  8666. if (e.fNetweight) {
  8667. this.allfNetweight += e.fNetweight;
  8668. }
  8669. }
  8670. })
  8671. this.print_ccdzrkd = true
  8672. } else if (command == "M") {
  8673. this.print_fxdkrkd = true
  8674. // if (this.Printinglist.length == 1) {
  8675. // this.print_fxdkrkd = true
  8676. // } else {
  8677. // this.$message.error("请选择单条明细")
  8678. // }
  8679. } else if (command == "i") {
  8680. this.allfGrossweight = 0;
  8681. this.allfNetweight = 0;
  8682. this.Printinglist.map((e) => {
  8683. if (e.fGrossweight) {
  8684. this.allfGrossweight += parseFloat((e.fGrossweight / 1000).toSuperFixed(4));
  8685. }
  8686. if (e.fNetweight) {
  8687. this.allfNetweight += parseFloat((e.fNetweight / 1000).toSuperFixed(4));
  8688. }
  8689. })
  8690. this.print_khrkd = true
  8691. } else if (command == "j") {
  8692. let date = new Date(this.Printinglist[0].fBsdate)
  8693. let Y = date.getFullYear()
  8694. let M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1)
  8695. let D = date.getDate()
  8696. this.form.fBsdate = Y + '-' + M + '-' + D
  8697. this.print_xhcdrkd = true
  8698. } else if (command == "k") {
  8699. let container = []
  8700. this.container = ''
  8701. this.CntrTable.map((e) => {
  8702. this.cntrList.map((i) => {
  8703. if (i.fId == e.fCntrid) {
  8704. e.fCntrid = i.fName
  8705. container.push(e.fCntrid + '*' + e.fCntrcount + ',')
  8706. }
  8707. })
  8708. })
  8709. container.forEach(item => {
  8710. this.container += item
  8711. })
  8712. this.container = this.container.slice(0, this.container.length - 1)
  8713. console.log(this.container)
  8714. this.print_zpdkrkd = true
  8715. } else if (command == "g") {
  8716. let date = new Date();
  8717. let hours =
  8718. date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
  8719. let minutes =
  8720. date.getMinutes() < 10
  8721. ? "0" + date.getMinutes()
  8722. : date.getMinutes();
  8723. let seconds =
  8724. date.getSeconds() < 10
  8725. ? "0" + date.getSeconds()
  8726. : date.getSeconds();
  8727. this.rkTime = hours + ":" + minutes;
  8728. this.lsTime = hours + "" + minutes + "" + seconds;
  8729. this.print_bzrkd = true;
  8730. } else if (command == "h") {
  8731. this.print_dk = true;
  8732. } else if (command == "y") {
  8733. this.print_bzrkd_js = true;
  8734. } else if (command == "z") {
  8735. this.print_bzrkd_xq = true;
  8736. } else if (command == "o") {
  8737. this.print_bzrkd_qt = true;
  8738. }
  8739. }
  8740. })
  8741. } else {
  8742. this.$message.error("请选择需要打印的明细!");
  8743. }
  8744. },
  8745. radioChange(radio) {
  8746. this.allfGrossweight = 0
  8747. this.allfNetweight = 0
  8748. this.Printinglist.map((e) => {
  8749. if (radio == 1) {
  8750. if (e.fGrossweight) {
  8751. this.allfGrossweight += parseFloat((e.fGrossweight / 1000).toSuperFixed(4));
  8752. }
  8753. if (e.fNetweight) {
  8754. this.allfNetweight += parseFloat((e.fNetweight / 1000).toSuperFixed(4));
  8755. }
  8756. } else {
  8757. if (e.fGrossweight) {
  8758. this.allfGrossweight += e.fGrossweight;
  8759. }
  8760. if (e.fNetweight) {
  8761. this.allfNetweight += e.fNetweight;
  8762. }
  8763. }
  8764. })
  8765. },
  8766. //计算仓储费日期变更
  8767. changeDate() {
  8768. this.$set(this.form, "fChargedate", this.form.fBsdate);
  8769. },
  8770. addRow() {
  8771. var obj = {};
  8772. this.CntrTable.push(obj);
  8773. },
  8774. fixRow(row, index) {
  8775. this.title = "修改";
  8776. this.reset();
  8777. this.fixdetaiNum = null;
  8778. this.fixdetaiNum = index;
  8779. treeselect(this.form.fWarehouseid).then((response) => {
  8780. this.fWarehouseidOptions = response.data;
  8781. });
  8782. this.allfPlanqty += row.fQty;
  8783. this.tfNetweightnum2 = (row.fNetweight / 1000).toFixed(4);
  8784. this.tfGrossweightnum2 = (row.fGrossweight / 1000).toFixed(4);
  8785. row.fBsdate = new Date(row.fBsdate).getTime();
  8786. row.fBusinessType = row.fBusinessType.toString();
  8787. row.fCntrtype = Number(row.fCntrtype);
  8788. this.importList = JSON.parse(JSON.stringify(row));
  8789. this.weightList = true;
  8790. },
  8791. deleteRow(index, rows) {
  8792. rows.splice(index, 1);
  8793. },
  8794. wDeleteRow(index, rows) {
  8795. rows.splice(index, 1);
  8796. this.sumMum = 0;
  8797. this.detailList.map((e) => {
  8798. if (e.fQty) {
  8799. this.sumMum += e.fQty;
  8800. }
  8801. });
  8802. if (this.detailList.length == 0) {
  8803. this.form.fProductName = "";
  8804. this.form.fMarks = "";
  8805. this.form.fNetweight = 0;
  8806. this.form.fPlanvolumn = 0;
  8807. this.form.fGrossweight = 0;
  8808. }
  8809. },
  8810. //付款信息新行
  8811. addpayment() {
  8812. this.$refs["form"].validate((valid) => {
  8813. if (valid) {
  8814. if (this.form.fBusinessType == null) {
  8815. return this.$message.error("请维护作业类型");
  8816. } else {
  8817. this.warehouseCrList.push({
  8818. fCorpid: null,
  8819. fFeeid: null,
  8820. fFeeUnitid: "",
  8821. fQty: null,
  8822. fUnitprice: null,
  8823. fAmount: null,
  8824. fCurrency: "RMB",
  8825. fExrate: "1",
  8826. fTaxrate: this.fTaxrate,
  8827. fCxrate: null,
  8828. fRate: null,
  8829. remarks: null,
  8830. fMblno: this.form.fMblno,
  8831. fProductName: this.form.fProductName,
  8832. fMarks: this.form.fMarks,
  8833. fBusinessType: this.form.fBusinessType,
  8834. fSrcTypeId: 0,
  8835. fStltypeid: '1',
  8836. });
  8837. this.fWbuOptions = [];
  8838. let queryParams = {pageNum: 1, fDc: "C"};
  8839. listFees(queryParams).then((response) => {
  8840. this.fCNameOptions = response.rows;
  8841. });
  8842. }
  8843. }
  8844. });
  8845. },
  8846. //获取登陆人
  8847. queryUser() {
  8848. queryUserVal().then((response) => {
  8849. if (response.user !== null) {
  8850. this.userVal = response.user;
  8851. this.$set(this.form, "fDeptid", this.userVal.deptId);
  8852. this.$set(this.form, "createBy", this.userVal.userName);
  8853. this.$set(this.form, "fStorekeeper", this.userVal.nickName);
  8854. this.$set(this.form, "fIfdamage", "1");
  8855. this.$set(this.form, "fIfweigh", "1");
  8856. this.$set(this.form, "fTrademodeid", "1");
  8857. this.$set(this.form, "createTime", Date.parse(new Date()));
  8858. this.$set(this.form, "fBstime", Date.parse(new Date()));
  8859. this.$set(this.form, "fBusinessType", "0");
  8860. this.$set(this.form, "fFeetUnit", "2");
  8861. this.$set(this.form, "fChargetype", "1");
  8862. }
  8863. if (response.dept !== null) {
  8864. this.deptOptions = [];
  8865. this.deptOptions.push(response.dept);
  8866. }
  8867. });
  8868. },
  8869. //作业类型校验
  8870. educationChange() {
  8871. if (this.form.fBusinessType === "1" || this.form.fBusinessType === "2") {
  8872. this.isrequired = 1;
  8873. this.isrequired2 = 2;
  8874. } else if (
  8875. this.form.fBusinessType === "3" ||
  8876. this.form.fBusinessType === "4"
  8877. ) {
  8878. this.isrequired2 = 1;
  8879. this.isrequired = 2;
  8880. } else {
  8881. this.isrequired = 2;
  8882. this.isrequired2 = 2;
  8883. }
  8884. },
  8885. //打印
  8886. addprint(status) {
  8887. // if (status == "zyd") {
  8888. // if (this.CntrTable.length > 0) {
  8889. // let arr = [];
  8890. // this.CntrTable.map((e) => {
  8891. // this.cntrList.map((item) => {
  8892. // if (item.fId == e.fCntrid) {
  8893. // arr.push(item.fName + "X" + e.fCntrcount);
  8894. // }
  8895. // });
  8896. // });
  8897. // arr = [...new Set(arr)];
  8898. // this.form.fCntval = arr.join(",");
  8899. // } else {
  8900. // this.form.fCntval = null;
  8901. // }
  8902. // if (this.detailList.length > 0) {
  8903. // let arr = [];
  8904. // this.detailList.map((e) => {
  8905. // this.goodsOptions.map((item) => {
  8906. // if (e.fGoodsid == item.fId) {
  8907. // arr.push(item.fName);
  8908. // }
  8909. // });
  8910. // });
  8911. // arr = [...new Set(arr)];
  8912. // this.form.fProductName = arr.join(",");
  8913. // } else {
  8914. // this.form.fProductName = "";
  8915. // }
  8916. // if (this.detailList.length > 0) {
  8917. // let arr = [];
  8918. // this.detailList.map((e) => {
  8919. // arr.push(e.fMarks);
  8920. // });
  8921. // arr = [...new Set(arr)];
  8922. // this.form.fMarks = arr.join(",");
  8923. // } else {
  8924. // this.form.fMarks = "";
  8925. // }
  8926. // this.form.fBillingway = this.form.fFeetUnit;
  8927. // if (this.detailList.length == 0) {
  8928. // this.form.fNetweight = 0;
  8929. // this.form.fPlanvolumn = 0;
  8930. // this.form.fGrossweight = 0;
  8931. // } else {
  8932. // this.form.fNetweight = this.fNetweight;
  8933. // this.form.fPlanvolumn = this.fPlanvolumn;
  8934. // this.form.fGrossweight = this.fGrossweight;
  8935. // }
  8936. // let formData = new window.FormData();
  8937. // formData.append("warehouseBills", JSON.stringify(this.form));
  8938. // formData.append(
  8939. // "warehousebillsitems",
  8940. // JSON.stringify(this.Printinglist)
  8941. // );
  8942. // formData.append(
  8943. // "warehousebillsfeesDr",
  8944. // JSON.stringify(this.warehouseDrList)
  8945. // );
  8946. // formData.append(
  8947. // "warehousebillsfeesCr",
  8948. // JSON.stringify(this.warehouseCrList)
  8949. // );
  8950. // formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  8951. // formData.append("tCntr", JSON.stringify(this.CntrTable));
  8952. // addJoblist(formData).then((response) => {
  8953. // if (response.code == 200) {
  8954. // this.detailList.map((e, index) => {
  8955. // response.data.warehousebillsitems.map((item) => {
  8956. // if (e.fId == item.fId) {
  8957. // e = item;
  8958. // this.$set(this.detailList, index, e);
  8959. // }
  8960. // });
  8961. // });
  8962. // this.$set(this.form, "fItemsStatus", 2);
  8963. // }
  8964. // });
  8965. // }
  8966. const style =
  8967. "@page { } " +
  8968. "@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;}";
  8969. switch (status) {
  8970. case 'zyd':
  8971. if (this.CntrTable.length > 0) {
  8972. let arr = [];
  8973. this.CntrTable.map((e) => {
  8974. this.cntrList.map((item) => {
  8975. if (item.fId == e.fCntrid) {
  8976. arr.push(item.fName + "X" + e.fCntrcount);
  8977. }
  8978. });
  8979. });
  8980. arr = [...new Set(arr)];
  8981. this.form.fCntval = arr.join(",");
  8982. } else {
  8983. this.form.fCntval = null;
  8984. }
  8985. if (this.detailList.length > 0) {
  8986. let arr = [];
  8987. this.detailList.map((e) => {
  8988. this.goodsOptions.map((item) => {
  8989. if (e.fGoodsid == item.fId) {
  8990. arr.push(item.fName);
  8991. }
  8992. });
  8993. });
  8994. arr = [...new Set(arr)];
  8995. this.form.fProductName = arr.join(",");
  8996. } else {
  8997. this.form.fProductName = "";
  8998. }
  8999. if (this.detailList.length > 0) {
  9000. let arr = [];
  9001. this.detailList.map((e) => {
  9002. arr.push(e.fMarks);
  9003. });
  9004. arr = [...new Set(arr)];
  9005. this.form.fMarks = arr.join(",");
  9006. } else {
  9007. this.form.fMarks = "";
  9008. }
  9009. this.form.fBillingway = this.form.fFeetUnit;
  9010. if (this.detailList.length == 0) {
  9011. this.form.fNetweight = 0;
  9012. this.form.fPlanvolumn = 0;
  9013. this.form.fGrossweight = 0;
  9014. } else {
  9015. this.form.fNetweight = this.fNetweight;
  9016. this.form.fPlanvolumn = this.fPlanvolumn;
  9017. this.form.fGrossweight = this.fGrossweight;
  9018. }
  9019. let formData = new window.FormData();
  9020. formData.append("warehouseBills", JSON.stringify(this.form));
  9021. formData.append("warehousebillsitems", JSON.stringify(this.Printinglist));
  9022. formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  9023. formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  9024. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  9025. formData.append("tCntr", JSON.stringify(this.CntrTable));
  9026. addJoblist(formData).then((response) => {
  9027. if (response.code == 200) {
  9028. this.$set(this.form, "fDateChanged", response.data.fDateChanged);
  9029. this.detailList.map((e, index) => {
  9030. response.data.warehousebillsitems.map((item) => {
  9031. if (e.fId == item.fId) {
  9032. e = item;
  9033. this.$set(this.detailList, index, e);
  9034. }
  9035. });
  9036. });
  9037. this.$set(this.form, "fItemsStatus", 2);
  9038. }
  9039. });
  9040. print({
  9041. printable: "print_area1",
  9042. type: "html",
  9043. style: style, // 亦可使用引入的外部css;
  9044. scanStyles: false,
  9045. });
  9046. break
  9047. case 'ccdzrkd':
  9048. let stylEe =
  9049. "@page { } " +
  9050. "@media print {.oneHundred{width: 100px} .twoHundred{width: 200px} .oneHundredSix{width: 160px} .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;}";
  9051. print({
  9052. printable: "print_area8",
  9053. type: "html",
  9054. style: stylEe, // 亦可使用引入的外部css;
  9055. scanStyles: false,
  9056. });
  9057. break
  9058. case 'fxdkrkd':
  9059. print({
  9060. printable: "print_area9",
  9061. type: "html",
  9062. style: style, // 亦可使用引入的外部css;
  9063. scanStyles: false,
  9064. });
  9065. break
  9066. case 'khrkd':
  9067. print({
  9068. printable: "print_area10",
  9069. type: "html",
  9070. style: style, // 亦可使用引入的外部css;
  9071. scanStyles: false,
  9072. });
  9073. break
  9074. case 'xhcdrkd':
  9075. print({
  9076. printable: "print_area11",
  9077. type: "html",
  9078. style: style, // 亦可使用引入的外部css;
  9079. scanStyles: false,
  9080. });
  9081. break
  9082. case 'zpdkrkd':
  9083. print({
  9084. printable: "print_area12",
  9085. type: "html",
  9086. style: style, // 亦可使用引入的外部css;
  9087. scanStyles: false,
  9088. });
  9089. break
  9090. case 'bzrkd_js':
  9091. print({
  9092. printable: "print_area15",
  9093. type: "html",
  9094. style: style, // 亦可使用引入的外部css;
  9095. scanStyles: false,
  9096. });
  9097. break
  9098. case 'bzrkd_xq':
  9099. print({
  9100. printable: "print_area16",
  9101. type: "html",
  9102. style: style, // 亦可使用引入的外部css;
  9103. scanStyles: false,
  9104. });
  9105. break
  9106. case 'bzrkd_qt':
  9107. print({
  9108. printable: "print_area17",
  9109. type: "html",
  9110. style: style, // 亦可使用引入的外部css;
  9111. scanStyles: false,
  9112. });
  9113. break
  9114. case 'jcd':
  9115. print({
  9116. printable: "print_area18",
  9117. type: "html",
  9118. style: style, // 亦可使用引入的外部css;
  9119. scanStyles: false,
  9120. });
  9121. break
  9122. case '001':
  9123. print({
  9124. printable: "print_area001",
  9125. type: "html",
  9126. style: style, // 亦可使用引入的外部css;
  9127. scanStyles: false,
  9128. });
  9129. break
  9130. default:
  9131. print({
  9132. printable: "print_area4",
  9133. type: "html",
  9134. style: style, // 亦可使用引入的外部css;
  9135. scanStyles: false,
  9136. });
  9137. }
  9138. },
  9139. cancel() {
  9140. if (this.$route.query.id) {
  9141. this.$router.push({query: {}});
  9142. }
  9143. this.form.fId = ''
  9144. this.resetForm("form");
  9145. this.resetForm("importList");
  9146. this.detailList = [];
  9147. this.relevantAttachments = [];
  9148. this.warehouseCrList = [];
  9149. this.warehouseDrList = [];
  9150. this.CntrTable = [];
  9151. this.$emit("changeShow", "true");
  9152. },
  9153. goBack() {
  9154. this.$confirm("是否确定返回列表?", "提示", {
  9155. confirmButtonText: "保存",
  9156. cancelButtonText: "取消",
  9157. type: "warning",
  9158. }).then(() => {
  9159. this.saveForm("goBack");
  9160. }).catch(() => {
  9161. this.cancel();
  9162. });
  9163. },
  9164. openUploadExcel() {
  9165. this.uploadExcel = !this.uploadExcel;
  9166. this.$refs.upexcel.init(this.form, this.detailList);
  9167. },
  9168. // 监听 子组件弹窗关闭后触发,有子组件调用
  9169. showAddOrUpdate(data) {
  9170. if (data === "false") {
  9171. this.addOrUpdateVisible = false;
  9172. this.disabled = false;
  9173. } else {
  9174. this.addOrUpdateVisible = true;
  9175. }
  9176. },
  9177. showAddOrUpdate2(data) {
  9178. this.uploadExcel = data;
  9179. },
  9180. adddetailList(rows) {
  9181. rows.map((e) => {
  9182. e.fMblno = this.form.fMblno;
  9183. e.fBillstatus = 10;
  9184. });
  9185. this.detailList.push(...rows);
  9186. },
  9187. downloadExcel() {
  9188. window.location.href = "http://121.36.212.131:8080/file/入库模板.xlsx";
  9189. },
  9190. // 付款信息请核
  9191. checkRow(index, rows) {
  9192. if (!rows[index].fQty) {
  9193. this.$message.error("请维护数量")
  9194. return false
  9195. }
  9196. if (!rows[index].fUnitprice) {
  9197. this.$message.error("请维护单价")
  9198. return false
  9199. }
  9200. if (!rows[index].fAmount) {
  9201. this.$message.error("请维护金额")
  9202. return false
  9203. }
  9204. rows[index].fBillstatus = 6
  9205. let formData = new window.FormData();
  9206. formData.append("tWarehouseBills", JSON.stringify(this.form));
  9207. // 库存明细
  9208. formData.append("tWarehousebillsitems",JSON.stringify(this.detailList));
  9209. // 附件数据
  9210. formData.append("tEnclosure",JSON.stringify(this.relevantAttachments));
  9211. // 费用明细付款
  9212. formData.append("tWarehousebillsfeesCr",JSON.stringify(this.warehouseCrList));
  9213. // 收款
  9214. formData.append("tWarehousebillsfeesDr",JSON.stringify(this.warehouseDrList));
  9215. formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
  9216. formData.append("tCntr", JSON.stringify(this.CntrTable));
  9217. addWarehousebills(formData).then(res => {
  9218. this.msgSuccess("请核成功");
  9219. })
  9220. },
  9221. revokeRow(index, rows) {
  9222. rows[index].fBillstatus = 2
  9223. let formData = new window.FormData();
  9224. formData.append("tWarehouseBills", JSON.stringify(this.form));
  9225. // 库存明细
  9226. formData.append("tWarehousebillsitems",JSON.stringify(this.detailList));
  9227. // 附件数据
  9228. formData.append("tEnclosure",JSON.stringify(this.relevantAttachments));
  9229. // 费用明细付款
  9230. formData.append("tWarehousebillsfeesCr",JSON.stringify(this.warehouseCrList));
  9231. // 收款
  9232. formData.append("tWarehousebillsfeesDr",JSON.stringify(this.warehouseDrList));
  9233. formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
  9234. formData.append("tCntr", JSON.stringify(this.CntrTable));
  9235. addWarehousebills(formData).then(res => {
  9236. this.msgSuccess("撤销成功");
  9237. })
  9238. },
  9239. changePlannetWeight() {
  9240. console.log(this.bring)
  9241. if (this.bring == '0') {
  9242. this.$set(this.form, 'fPlangrossweight', this.form.fPlannetweight)
  9243. }
  9244. },
  9245. // 费用明细撤销请核
  9246. revokeListCheck() {},
  9247. // 费用明细请核
  9248. listCheck() {
  9249. feesCheck().then(res => {})
  9250. },
  9251. feeChange(fDC) {
  9252. let data = {
  9253. form: this.form,
  9254. warehousebillsfeesCr: [],
  9255. warehousebillsfeesDr: [],
  9256. billType: 'inStock',
  9257. fDc: fDC
  9258. }
  9259. if (fDC == 'C') {
  9260. data.warehousebillsfeesCr = this.warehouseCrList
  9261. } else {
  9262. data.warehousebillsfeesDr = this.warehouseDrList
  9263. }
  9264. this.$router.push({
  9265. path: "/business/costModify",
  9266. query: { data: data},
  9267. });
  9268. },
  9269. },
  9270. watch: {
  9271. // 监听 addOrUpdateVisible 改变
  9272. addOrUpdateVisible(oldVal, newVal) {
  9273. this.showDialog = this.addOrUpdateVisible;
  9274. },
  9275. },
  9276. };
  9277. </script>
  9278. <style lang="scss" scoped>
  9279. .tag-hover:hover {
  9280. background-color: #d9ebfb;
  9281. }
  9282. .tag-hover {
  9283. border-top-left-radius: 0;
  9284. border-bottom-left-radius: 0;
  9285. height: 15px;
  9286. padding: 0px 1px;
  9287. line-height: 12px;
  9288. }
  9289. .print-div {
  9290. color: #000;
  9291. }
  9292. .print_table {
  9293. table {
  9294. border-right: 1px solid #000;
  9295. border-bottom: 1px solid #000;
  9296. font-size: 12px;
  9297. margin-bottom: 5px;
  9298. }
  9299. table td {
  9300. border-left: 1px solid #000;
  9301. border-top: 1px solid #000;
  9302. vertical-align: middle;
  9303. padding: 2px;
  9304. text-align: center;
  9305. }
  9306. }
  9307. .print_form {
  9308. font-size: 12px;
  9309. }
  9310. </style>