AddOrUpdate.vue 320 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330
  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. @change="warehouseChange"
  218. >
  219. <el-option
  220. v-for="(item, index) in warehouseOptions"
  221. :key="index.fId"
  222. :label="item.fName"
  223. :value="item.fId"
  224. ></el-option>
  225. </el-select>
  226. </el-form-item>
  227. </el-col>
  228. <el-col :span="8">
  229. <el-form-item label="仓管员" prop="fStorekeeper">
  230. <el-select
  231. v-model="form.fStorekeeper"
  232. filterable
  233. clearable
  234. :disabled="detailList.findIndex(function(item){return item.fBillstatus == 40}) == -1?false:true"
  235. style="width: 80%"
  236. placeholder="请输入模糊查找"
  237. >
  238. <el-option
  239. v-for="(item, index) in userOptions"
  240. :key="index.userName"
  241. :label="item.nickName"
  242. :value="item.userName"
  243. ></el-option>
  244. </el-select>
  245. </el-form-item>
  246. </el-col>
  247. </el-row>
  248. <el-row>
  249. <el-col :span="8">
  250. <el-form-item label="到港日期" prop="fEta">
  251. <el-date-picker
  252. v-model="form.fEta"
  253. style="width: 80%"
  254. type="date"
  255. value-format="timestamp"
  256. placeholder="到港日期"
  257. >
  258. </el-date-picker>
  259. </el-form-item>
  260. </el-col>
  261. <el-col :span="8">
  262. <el-form-item label="箱使日期" prop="freeContainerDate">
  263. <el-date-picker
  264. v-model="form.freeContainerDate"
  265. style="width: 80%"
  266. type="date"
  267. value-format="timestamp"
  268. placeholder="请选择箱使日期"
  269. >
  270. </el-date-picker>
  271. </el-form-item>
  272. </el-col>
  273. <el-col :span="8" v-if="showfCustomno">
  274. <el-form-item
  275. label="报关单号"
  276. prop="fCustomno"
  277. :rules="{
  278. required: form.fTrademodeid == 1 && showfCustomno == 1 ? true : false,
  279. message: '请输入',
  280. trigger: ['blur', 'change'],
  281. }"
  282. >
  283. <el-input
  284. v-model="form.fCustomno"
  285. style="width: 80%"
  286. placeholder="报关单号"
  287. />
  288. </el-form-item>
  289. </el-col>
  290. </el-row>
  291. <el-row>
  292. <el-col :span="8">
  293. <el-form-item label="计划件数" prop="fPlanqty">
  294. <el-input
  295. v-model.number="form.fPlanqty"
  296. style="width: 80%"
  297. maxlength="9"
  298. v-input-limit="0"
  299. placeholder="计划件数"
  300. :disabled="
  301. browseStatus || current !== before || form.warehouseStatus > 3
  302. "
  303. />
  304. </el-form-item>
  305. </el-col>
  306. <el-col :span="8">
  307. <el-form-item label="计划净重(kg)" prop="fPlannetweight">
  308. <el-input
  309. v-model="form.fPlannetweight"
  310. style="width: 80%"
  311. maxlength="16"
  312. v-input-limit="2"
  313. placeholder="计划净重"
  314. @input="changePlannetWeight"
  315. :disabled="
  316. browseStatus || current !== before || form.warehouseStatus > 3
  317. "
  318. @change="tfNetweight"
  319. >
  320. <template slot="append">{{ tfNetweightnum }}吨</template>
  321. </el-input>
  322. </el-form-item>
  323. </el-col>
  324. <el-col :span="8">
  325. <el-form-item label="计划毛重(kg)" prop="fPlangrossweight">
  326. <el-input
  327. v-model="form.fPlangrossweight"
  328. style="width: 80%"
  329. v-input-limit="2"
  330. placeholder="计划毛重"
  331. maxlength="16"
  332. :disabled="
  333. browseStatus || current !== before || form.warehouseStatus > 3
  334. "
  335. @change="tfGrossweight"
  336. >
  337. <template slot="append">{{ tfGrossweightnum }}吨</template>
  338. </el-input>
  339. </el-form-item>
  340. </el-col>
  341. </el-row>
  342. <div v-if="detailsHidden2">
  343. <el-row>
  344. <el-col :span="8" v-if="false">
  345. <el-form-item label="计费单位" prop="fFeetUnit">
  346. <el-select
  347. v-model="form.fFeetUnit"
  348. placeholder="请选择计费单位"
  349. clearable
  350. :disabled="browseStatus || form.warehouseStatus > 3"
  351. style="width: 80%"
  352. >
  353. <el-option
  354. v-for="(item, index) in fFeetUnitOptions"
  355. :key="index.dictValue"
  356. :label="item.dictLabel"
  357. :value="item.dictValue"
  358. />
  359. </el-select>
  360. </el-form-item>
  361. </el-col>
  362. <el-col :span="8" v-else>
  363. <el-form-item label="作业类型" prop="fBusinessType">
  364. <el-select
  365. style="width: 80%"
  366. v-model="form.fBusinessType"
  367. filterable
  368. @change="educationChange"
  369. :disabled="
  370. browseStatus ||
  371. warehouseDrList.length > 0 ||
  372. warehouseCrList.length > 0 ||
  373. form.warehouseStatus > 3
  374. "
  375. >
  376. <el-option
  377. v-for="(item, index) in businessTypeOption"
  378. :key="index.dictValue"
  379. :label="item.dictLabel"
  380. :value="item.dictValue"
  381. ></el-option>
  382. </el-select>
  383. </el-form-item>
  384. </el-col>
  385. <el-col :span="8">
  386. <el-form-item label="劳务公司" prop="fLabour">
  387. <el-select
  388. style="width: 80%"
  389. v-model="form.fLabour"
  390. clearable
  391. filterable
  392. placeholder="请输入关键词"
  393. :disabled="browseStatus || form.warehouseStatus > 3"
  394. >
  395. <el-option
  396. v-for="(item, index) in fCompanyOptIons"
  397. :key="index.fId"
  398. :label="item.fName"
  399. :value="item.fId"
  400. ></el-option>
  401. </el-select>
  402. </el-form-item>
  403. </el-col>
  404. <el-col :span="8">
  405. <el-form-item
  406. label="车队"
  407. prop="fFleet"
  408. :rules="{
  409. required: isrequired === 1 ? true : false,
  410. message: '请选择',
  411. trigger: ['blur', 'change'],
  412. }"
  413. >
  414. <el-select
  415. style="width: 80%"
  416. v-model="form.fFleet"
  417. clearable
  418. filterable
  419. placeholder="请输入关键词"
  420. :disabled="browseStatus || form.warehouseStatus > 3"
  421. >
  422. <el-option
  423. v-for="(item, index) in fleetOptions"
  424. :key="index.fId"
  425. :label="item.fName"
  426. :value="item.fId"
  427. ></el-option>
  428. </el-select>
  429. </el-form-item>
  430. </el-col>
  431. </el-row>
  432. <el-row>
  433. <el-col :span="8">
  434. <el-form-item label="结算方式" prop="fStltypeid">
  435. <el-select
  436. v-model="form.fStltypeid"
  437. placeholder="请选择结算方式"
  438. clearable
  439. :disabled="browseStatus || form.warehouseStatus > 3"
  440. style="width: 80%"
  441. >
  442. <el-option
  443. v-for="(item, index) in fStltypeOptions"
  444. :key="index.dictValue"
  445. :label="item.dictLabel"
  446. :value="item.dictValue"
  447. />
  448. </el-select>
  449. </el-form-item>
  450. </el-col>
  451. <el-col :span="8">
  452. <el-form-item
  453. label="车号"
  454. prop="fTruckno"
  455. :rules="{
  456. required: isrequired2 === 1 ? true : false,
  457. message: '请选择',
  458. trigger: ['blur', 'change'],
  459. }"
  460. >
  461. <el-input
  462. v-model="form.fTruckno"
  463. style="width: 80%"
  464. :disabled="browseStatus || form.warehouseStatus > 3"
  465. placeholder="车号"
  466. />
  467. </el-form-item>
  468. </el-col>
  469. <el-col :span="8">
  470. <el-form-item
  471. label="司机姓名"
  472. prop="fDriverName"
  473. :rules="{
  474. required: isrequired2 === 1 ? true : false,
  475. message: '请选择',
  476. trigger: ['blur', 'change'],
  477. }"
  478. >
  479. <el-input
  480. v-model="form.fDriverName"
  481. style="width: 80%"
  482. :disabled="browseStatus || form.warehouseStatus > 3"
  483. placeholder="司机姓名"
  484. />
  485. </el-form-item>
  486. </el-col>
  487. </el-row>
  488. </div>
  489. <el-row>
  490. <el-col :span="16">
  491. <div v-if="detailsHidden2">
  492. <el-row>
  493. <el-col :span="12">
  494. <el-form-item
  495. label="司机身份证"
  496. prop="fDriverIdCar"
  497. :rules="{
  498. required: isrequired2 === 1 ? true : false,
  499. message: '请选择',
  500. trigger: ['blur', 'change'],
  501. }"
  502. >
  503. <el-input
  504. v-model="form.fDriverIdCar"
  505. style="width: 80%"
  506. :disabled="browseStatus || form.warehouseStatus > 3"
  507. placeholder="司机身份证"
  508. />
  509. </el-form-item>
  510. </el-col>
  511. <el-col :span="12">
  512. <el-form-item
  513. label="司机电话"
  514. prop="fDriverTel"
  515. :rules="{
  516. required: isrequired2 === 1 ? true : false,
  517. message: '请选择',
  518. trigger: ['blur', 'change'],
  519. }"
  520. >
  521. <el-input
  522. v-model="form.fDriverTel"
  523. style="width: 80%"
  524. :disabled="browseStatus || form.warehouseStatus > 3"
  525. placeholder="司机电话"
  526. />
  527. </el-form-item>
  528. </el-col>
  529. </el-row>
  530. </div>
  531. <el-row>
  532. <el-col :span="12">
  533. <el-form-item label="备注" prop="remark">
  534. <el-input
  535. style="width: 80%"
  536. v-model="form.remark"
  537. type="textarea"
  538. placeholder="请输入内容"
  539. />
  540. </el-form-item>
  541. </el-col>
  542. <el-col :span="12">
  543. <el-form-item label="收费指示" prop="remark">
  544. <el-input
  545. style="width: 80%"
  546. v-model="form.fRemarksFees"
  547. type="textarea"
  548. placeholder="请输入内容"
  549. />
  550. </el-form-item>
  551. </el-col>
  552. </el-row>
  553. <el-row>
  554. <el-col :offset="16" :span="6">
  555. <el-button
  556. v-if="dataShowcar == '0'"
  557. @click="
  558. detailsHidden2? (detailsHidden2 = false): (detailsHidden2 = true)
  559. "
  560. >{{ detailsHidden2 ? "隐藏" : "更多" }}
  561. </el-button>
  562. <el-button
  563. @click="
  564. detailsHidden? (detailsHidden = false): (detailsHidden = true)
  565. "
  566. >{{ detailsHidden ? "隐藏" : "展开" }}
  567. </el-button>
  568. </el-col>
  569. </el-row>
  570. </el-col>
  571. <el-col :span="8">
  572. <el-form-item>
  573. <div style="display: flex; align-items: center">
  574. <el-table
  575. :data="CntrTable"
  576. style="width: 80%"
  577. :header-cell-style="{ lineHeight: '16px' }"
  578. >
  579. <el-table-column
  580. prop="fCntrid "
  581. label="箱型"
  582. header-align="center"
  583. align="center"
  584. >
  585. <template slot-scope="scope">
  586. <el-select
  587. placeholder="请选择箱型"
  588. v-model="scope.row.fCntrid"
  589. size="mini"
  590. >
  591. <el-option
  592. v-for="(item, index) in cntrList"
  593. :key="index.fId"
  594. :label="item.fName"
  595. :value="item.fId"
  596. >
  597. </el-option>
  598. </el-select>
  599. </template>
  600. </el-table-column>
  601. <el-table-column
  602. prop="fCntrcount"
  603. label="箱量"
  604. header-align="center"
  605. align="center"
  606. >
  607. <template slot-scope="scope">
  608. <el-input
  609. placeholder="请输入箱量"
  610. v-model="scope.row.fCntrcount"
  611. size="mini"
  612. >
  613. </el-input>
  614. </template>
  615. </el-table-column>
  616. <el-table-column
  617. prop="fCntrcount"
  618. label="操作"
  619. header-align="center"
  620. align="center"
  621. width="50"
  622. >
  623. <template slot-scope="scope">
  624. <el-button
  625. size="mini"
  626. type="text"
  627. @click.native.prevent="deleteRow(scope.$index, CntrTable)"
  628. icon="el-icon-delete"
  629. ></el-button>
  630. </template>
  631. </el-table-column>
  632. </el-table>
  633. <el-tag class="tag-hover" @click="addRow"
  634. ><i class="el-icon-plus"></i
  635. ></el-tag>
  636. </div>
  637. </el-form-item>
  638. </el-col>
  639. </el-row>
  640. <div v-if="detailsHidden">
  641. <el-row style="margin-top: 30px">
  642. <el-col :span="8">
  643. <el-form-item label="仓库联系人" prop="fContacts">
  644. <el-input
  645. v-model="form.fContacts"
  646. style="width: 80%"
  647. placeholder="仓库联系人"
  648. />
  649. </el-form-item>
  650. </el-col>
  651. <el-col :span="8">
  652. <el-form-item label="仓库电话" prop="fTel">
  653. <el-input
  654. v-model="form.fTel"
  655. style="width: 80%"
  656. placeholder="请输仓库入电话"
  657. />
  658. </el-form-item>
  659. </el-col>
  660. <el-col :span="8">
  661. <el-form-item label="船名航次" prop="fVslvoy">
  662. <el-input
  663. v-model="form.fVslvoy"
  664. style="width: 80%"
  665. placeholder="船名航次"
  666. />
  667. </el-form-item>
  668. </el-col>
  669. </el-row>
  670. <el-row>
  671. <el-col :span="8">
  672. <el-form-item label="境内收货人" prop="fSbu">
  673. <el-select
  674. v-model="form.fSbu"
  675. clearable
  676. filterable
  677. placeholder="请输入关键词"
  678. style="width: 80%"
  679. :disabled="browseStatus || form.warehouseStatus > 3"
  680. >
  681. <el-option
  682. v-for="(item, index) in fSbuOptions"
  683. :key="index.fId"
  684. :label="item.fName"
  685. :value="item.fId"
  686. ></el-option>
  687. </el-select>
  688. </el-form-item>
  689. </el-col>
  690. <el-col :span="8">
  691. <el-form-item label="单据编号" prop="fBillno">
  692. <el-input
  693. v-model="form.fBillno"
  694. disabled
  695. style="width: 80%"
  696. placeholder="单据编号"
  697. />
  698. </el-form-item>
  699. </el-col>
  700. <el-col :span="8">
  701. <el-form-item label="贸易方式" prop="fTrademodeid">
  702. <el-select
  703. v-model="form.fTrademodeid"
  704. placeholder="请选择贸易方式"
  705. :disabled="browseStatus || form.warehouseStatus > 3"
  706. clearable
  707. style="width: 80%"
  708. >
  709. <el-option
  710. v-for="(item, index) in fTrademodeidOptions"
  711. :key="index.dictValue"
  712. :label="item.dictLabel"
  713. :value="item.dictValue"
  714. />
  715. </el-select>
  716. </el-form-item>
  717. </el-col>
  718. </el-row>
  719. <el-row>
  720. <el-col :span="8">
  721. <el-form-item label="制单人" prop="createBy">
  722. <el-input
  723. disabled
  724. v-model="form.createBy"
  725. style="width: 80%"
  726. placeholder="制单人"
  727. />
  728. </el-form-item>
  729. </el-col>
  730. <el-col :span="8">
  731. <el-form-item label="制单部门" prop="fDeptid">
  732. <el-select
  733. v-model="form.fDeptid"
  734. filterable
  735. disabled
  736. style="width: 80%"
  737. remote
  738. >
  739. <el-option
  740. v-for="(item, index) in deptOptions"
  741. :key="index.deptId"
  742. :label="item.deptName"
  743. :value="item.deptId"
  744. ></el-option>
  745. </el-select>
  746. </el-form-item>
  747. </el-col>
  748. <el-col :span="8">
  749. <el-form-item label="制单日期" prop="createTime">
  750. <el-date-picker
  751. v-model="form.createTime"
  752. size="large"
  753. type="date"
  754. disabled
  755. style="width: 80%"
  756. value-format="timestamp"
  757. placeholder="制单日期"
  758. >
  759. </el-date-picker>
  760. </el-form-item>
  761. </el-col>
  762. </el-row>
  763. <el-row>
  764. <el-col :span="8">
  765. <el-form-item label="过磅" prop="fIfweigh">
  766. <el-select
  767. v-model="form.fIfweigh"
  768. placeholder="请选择是否过磅"
  769. clearable
  770. :disabled="browseStatus || form.warehouseStatus > 3"
  771. style="width: 80%"
  772. >
  773. <el-option
  774. v-for="(item, index) in fIfweighOptions"
  775. :key="index.dictValue"
  776. :label="item.dictLabel"
  777. :value="item.dictValue"
  778. />
  779. </el-select>
  780. </el-form-item>
  781. </el-col>
  782. <el-col :span="8">
  783. <el-form-item label="品名" prop="fProductName">
  784. <el-input
  785. v-model="form.fProductName"
  786. style="width: 80%"
  787. disabled
  788. placeholder="品名"
  789. />
  790. </el-form-item>
  791. </el-col>
  792. <el-col :span="8">
  793. <el-form-item label="品牌">
  794. <el-input
  795. v-model="form.fMarks"
  796. style="width: 80%"
  797. disabled
  798. placeholder="品牌"
  799. />
  800. </el-form-item>
  801. </el-col>
  802. </el-row>
  803. <el-row>
  804. <el-col :span="8">
  805. <el-form-item label="存货编号" prop="fBscorpno">
  806. <el-input
  807. disabled
  808. v-model="form.fBscorpno"
  809. style="width: 80%"
  810. placeholder="存货编号"
  811. />
  812. </el-form-item>
  813. </el-col>
  814. <el-col :span="8">
  815. <el-form-item label="质押" prop="fIfpledge">
  816. <el-select
  817. v-model="form.fIfpledge"
  818. placeholder="请选择是否质押"
  819. clearable
  820. style="width: 80%"
  821. >
  822. <el-option
  823. v-for="(item, index) in fIfpledgeOptions"
  824. :key="index.dictValue"
  825. :label="item.dictLabel"
  826. :value="item.dictValue"
  827. />
  828. </el-select>
  829. </el-form-item>
  830. </el-col>
  831. <el-col :span="8">
  832. <el-form-item label="质押银行" prop="fBankcorpid">
  833. <el-select
  834. v-model="form.fBankcorpid"
  835. filterable
  836. clearable
  837. style="width: 80%"
  838. placeholder="请输入关键词"
  839. >
  840. <el-option
  841. v-for="(item, index) in Pledgebank"
  842. :key="index.fId"
  843. :label="item.fName"
  844. :value="item.fId"
  845. ></el-option>
  846. </el-select>
  847. </el-form-item>
  848. </el-col>
  849. </el-row>
  850. <el-row>
  851. <el-col :span="8" v-if="showfBusinessAttribution == 0">
  852. <el-form-item label="业务归属" prop="fBusinessAttribution">
  853. <el-select
  854. v-model="form.fBusinessAttribution"
  855. placeholder="请选择业务归属"
  856. clearable
  857. style="width: 80%"
  858. >
  859. <el-option
  860. v-for="(item, index) in battributionList"
  861. :key="index.fId"
  862. :label="item.fName"
  863. :value="item.fId"
  864. />
  865. </el-select>
  866. </el-form-item>
  867. </el-col>
  868. <el-col :span="8">
  869. <el-form-item label="监管单位" prop="fSupervisionUnit">
  870. <el-select
  871. v-model="form.fSupervisionUnit"
  872. clearable
  873. filterable
  874. placeholder="请输入关键词"
  875. style="width: 80%"
  876. >
  877. <el-option
  878. v-for="(item, index) in fMblnoOptions"
  879. :key="index.fId"
  880. :label="item.fName"
  881. :value="item.fId"
  882. ></el-option>
  883. </el-select>
  884. </el-form-item>
  885. </el-col>
  886. <el-col :span="8">
  887. <el-form-item label="申报要素" prop="fDeclarationElements">
  888. <el-input
  889. v-model.number="form.fDeclarationElements"
  890. style="width: 80%"
  891. placeholder="申报要素"
  892. />
  893. </el-form-item>
  894. </el-col>
  895. </el-row>
  896. <el-row>
  897. <el-col :span="8" v-if="showfPartNumber == 0">
  898. <el-form-item label="料件号" prop="fPartNumber">
  899. <el-input
  900. v-model.number="form.fPartNumber"
  901. style="width: 80%"
  902. placeholder="料件号"
  903. v-input-limit="0"
  904. />
  905. </el-form-item>
  906. </el-col>
  907. <el-col :span="8" v-if="showfIfinspection == 0">
  908. <el-form-item label="是否法检" prop="fIfinspection">
  909. <el-select
  910. v-model="form.fIfinspection"
  911. placeholder="是否法检"
  912. clearable
  913. style="width: 80%"
  914. >
  915. <el-option
  916. v-for="(item, index) in ifinspectionList"
  917. :key="index.dictValue"
  918. :label="item.dictLabel"
  919. :value="item.dictValue"
  920. />
  921. </el-select>
  922. </el-form-item>
  923. </el-col>
  924. <el-col :span="8" v-if="showfValue == 0">
  925. <el-form-item label="货值单价" prop="fValue">
  926. <el-input
  927. v-model="form.fValue"
  928. style="width: 80%"
  929. placeholder="货值"
  930. v-input-limit="4"
  931. >
  932. <template slot="append">美元</template>
  933. </el-input>
  934. </el-form-item>
  935. </el-col>
  936. </el-row>
  937. <el-row>
  938. <el-col :span="8" v-if="showfWeighingDate == 0">
  939. <el-form-item label="过磅时间" prop="fWeighingDate"
  940. :rules="{
  941. required: weighedRequired == 0 ? true : false,
  942. message: ' ',
  943. trigger: ['blur', 'change'],
  944. }">
  945. <el-date-picker
  946. v-model="form.fWeighingDate"
  947. style="width: 80%"
  948. type="date"
  949. value-format="timestamp"
  950. placeholder="请选择过磅时间"
  951. >
  952. </el-date-picker>
  953. </el-form-item>
  954. </el-col>
  955. <el-col :span="8" v-if="showfWeighingDate == 0">
  956. <el-form-item label="过磅重量" prop="fWeighWeight" :rules="{
  957. required: weighedRequired == 0 ? true : false,
  958. message: ' ',
  959. trigger: ['blur', 'change'],
  960. }">
  961. <el-input
  962. v-model.number="form.fWeighWeight"
  963. style="width: 80%"
  964. placeholder="过磅重量"
  965. />
  966. </el-form-item>
  967. </el-col>
  968. <el-col :span="8" v-if="showfIfsampling == 0">
  969. <el-form-item label="是否取样" prop="fIfsampling">
  970. <el-select
  971. v-model="form.fIfsampling"
  972. placeholder="是否取样"
  973. clearable
  974. style="width: 80%"
  975. >
  976. <el-option
  977. v-for="(item, index) in ifsamplingList"
  978. :key="index.dictValue"
  979. :label="item.dictLabel"
  980. :value="item.dictValue"
  981. />
  982. </el-select>
  983. </el-form-item>
  984. </el-col>
  985. </el-row>
  986. <el-row>
  987. <el-col :span="8">
  988. <el-form-item label="送样时间" prop="sendSampleDate"
  989. :rules="{
  990. required: weighedRequired == 0 ? true : false,
  991. message: ' ',
  992. trigger: ['blur', 'change'],
  993. }">
  994. <el-date-picker
  995. v-model="form.sendSampleDate"
  996. style="width: 80%"
  997. type="date"
  998. value-format="timestamp"
  999. placeholder="请选择送样时间"
  1000. >
  1001. </el-date-picker>
  1002. </el-form-item>
  1003. </el-col>
  1004. <el-col :span="8">
  1005. <el-form-item label="是否复磅" prop="fIfweightRecovery"
  1006. :rules="{
  1007. required: weighedRequired == 0 ? true : false,
  1008. message: ' ',
  1009. trigger: ['blur', 'change'],
  1010. }">
  1011. <el-select
  1012. v-model="form.fIfweightRecovery"
  1013. placeholder="是否复磅"
  1014. clearable
  1015. style="width: 80%"
  1016. >
  1017. <el-option
  1018. v-for="(item, index) in ifweightRecoveryList"
  1019. :key="index.dictValue"
  1020. :label="item.dictLabel"
  1021. :value="item.dictValue"
  1022. />
  1023. </el-select>
  1024. </el-form-item>
  1025. </el-col>
  1026. <el-col :span="8">
  1027. <el-form-item label="复磅时间" prop="weightRecoveryDate"
  1028. :rules="{
  1029. required: weighedRequired == 0 ? true : false,
  1030. message: ' ',
  1031. trigger: ['blur', 'change'],
  1032. }">
  1033. <el-date-picker
  1034. v-model="form.weightRecoveryDate"
  1035. style="width: 80%"
  1036. type="date"
  1037. value-format="timestamp"
  1038. placeholder="请选择复磅时间"
  1039. >
  1040. </el-date-picker>
  1041. </el-form-item>
  1042. </el-col>
  1043. </el-row>
  1044. <el-row>
  1045. <el-col :span="8">
  1046. <el-form-item prop="fChargedate" label="仓储费日期">
  1047. <el-date-picker
  1048. v-model="form.fChargedate"
  1049. type="date"
  1050. style="width: 80%"
  1051. value-format="timestamp"
  1052. :disabled="browseStatus || form.warehouseStatus > 3"
  1053. placeholder="仓储费日期"
  1054. >
  1055. </el-date-picker>
  1056. </el-form-item>
  1057. </el-col>
  1058. <el-col :span="8">
  1059. <el-form-item prop="fSalesmanId" label="业务员">
  1060. <el-select
  1061. v-model="form.fSalesmanId"
  1062. clearable
  1063. filterable
  1064. placeholder="请选择业务员"
  1065. style="width: 80%"
  1066. :disabled="browseStatus || form.warehouseStatus > 3"
  1067. >
  1068. <el-option
  1069. v-for="(item, index) in fSalesmanOption"
  1070. :key="index.userId"
  1071. :label="item.userName"
  1072. :value="item.userId"
  1073. ></el-option>
  1074. </el-select>
  1075. </el-form-item>
  1076. </el-col>
  1077. </el-row>
  1078. </div>
  1079. </el-form>
  1080. <el-dialog
  1081. title="自定义列显示"
  1082. :visible.sync="showSetting"
  1083. width="700px"
  1084. v-dialogDrag
  1085. :close-on-click-modal="false"
  1086. >
  1087. <template slot="title">
  1088. <div class="avue-crud__dialog__header">
  1089. <span class="el-dialog__title">
  1090. <span
  1091. style="
  1092. display: inline-block;
  1093. width: 3px;
  1094. height: 20px;
  1095. margin-right: 5px;
  1096. float: left;
  1097. margin-top: 2px;
  1098. "
  1099. ></span>
  1100. </span>
  1101. </div>
  1102. </template>
  1103. <div>配置排序列数据(拖动调整顺序)</div>
  1104. <div style="margin-left: 17px">
  1105. <el-checkbox
  1106. v-model="allCheck"
  1107. label="全选"
  1108. @change="allChecked"
  1109. ></el-checkbox>
  1110. </div>
  1111. <div style="padding: 4px; display: flex; justify-content: center">
  1112. <draggable
  1113. v-model="setRowList"
  1114. group="site"
  1115. animation="300"
  1116. @start="onStart"
  1117. @end="onEnd"
  1118. handle=".indraggable"
  1119. >
  1120. <transition-group>
  1121. <div
  1122. v-for="item in setRowList"
  1123. :key="item.surface"
  1124. class="listStyle"
  1125. >
  1126. <div style="width: 500px" class="indraggable">
  1127. <div class="progress" :style="{ width: item.width + 'px' }">
  1128. <el-checkbox
  1129. :label="item.name"
  1130. v-model="item.checked"
  1131. :true-label="0"
  1132. :false-label="1"
  1133. >{{ item.name }}
  1134. </el-checkbox>
  1135. </div>
  1136. </div>
  1137. <el-input-number
  1138. v-model.number="item.width"
  1139. controls-position="right"
  1140. :min="1"
  1141. :max="500"
  1142. size="mini"
  1143. ></el-input-number>
  1144. </div>
  1145. </transition-group>
  1146. </draggable>
  1147. </div>
  1148. <span slot="footer" class="dialog-footer">
  1149. <el-button @click="showSetting = false">取 消</el-button>
  1150. <el-button @click="delRow" type="danger">重 置</el-button>
  1151. <el-button type="primary" @click="save()">确 定</el-button>
  1152. </span>
  1153. </el-dialog>
  1154. <el-collapse v-model="collapselist">
  1155. <el-collapse-item name="1">
  1156. <template slot="title">
  1157. <i class="el-icon-s-home" style="font-size: 16px"></i>
  1158. <span style="font-size: 16px; font-weight: bolder; margin-left: 5px"
  1159. >入库明细</span
  1160. >
  1161. </template>
  1162. <div>
  1163. <el-row
  1164. type="flex"
  1165. justify="space-between"
  1166. style="margin-bottom: 10px"
  1167. >
  1168. <el-col>
  1169. <el-button
  1170. type="primary"
  1171. :disabled="browseStatus"
  1172. size="small"
  1173. @click="addRelevant"
  1174. >录 入
  1175. </el-button>
  1176. <el-button
  1177. type="primary"
  1178. size="small"
  1179. @click="saveForm"
  1180. >保 存
  1181. </el-button
  1182. >
  1183. <el-button
  1184. :disabled="browseStatus || Printinglist.length != 1"
  1185. type="primary"
  1186. size="small"
  1187. @click="addRelevant('copy')"
  1188. >复制录入
  1189. </el-button
  1190. >
  1191. <el-button type="primary" size="small" @click="downloadExcel">
  1192. 下载模板
  1193. </el-button>
  1194. <el-button size="small" type="primary" @click="openUploadExcel"
  1195. >导入Execl
  1196. </el-button
  1197. >
  1198. </el-col>
  1199. <el-col style="display: flex; justify-content: flex-end">
  1200. <el-button
  1201. size="small"
  1202. type="info"
  1203. :disabled="browseStatus"
  1204. prop="打印"
  1205. v-if="entryPrinting == 0"
  1206. @click="printZyd"
  1207. >作业单
  1208. </el-button>
  1209. <el-button
  1210. size="small"
  1211. :disabled="browseStatus"
  1212. v-if="entryPrinting == 0"
  1213. @click="discharge"
  1214. >叫车进场
  1215. </el-button>
  1216. <!-- :disabled="dataListSelection.length <= 0 || browseStatus || entryPrinting == 1"-->
  1217. <el-button
  1218. size="small"
  1219. :disabled="dataListSelection.length <= 0 || deliveryConfirmation"
  1220. @click="creditClick"
  1221. >入库确认
  1222. </el-button>
  1223. <el-button
  1224. size="small"
  1225. :disabled="dataWithdrawList.length <= 0 || cancelDelivery || form.fBillstatus > 3"
  1226. @click.prevent="withdrawClick"
  1227. >撤回入库
  1228. </el-button>
  1229. <el-dropdown @command="handleCommand" style="margin-left: 10px">
  1230. <el-button size="small" type="success">
  1231. 打印单据<i class="el-icon-arrow-down el-icon--right"></i>
  1232. </el-button>
  1233. <el-dropdown-menu slot="dropdown">
  1234. <el-dropdown-item command="a">收货单</el-dropdown-item>
  1235. <el-dropdown-item command="g">标准入库单</el-dropdown-item>
  1236. <el-dropdown-item command="y">标准入库单(件数)</el-dropdown-item>
  1237. <el-dropdown-item command="z">标准入库单(详情)</el-dropdown-item>
  1238. <!-- <el-dropdown-item command="o">标准入库单(其他)</el-dropdown-item>-->
  1239. <el-dropdown-item command="b">进仓单</el-dropdown-item>
  1240. <!-- <el-dropdown-item command="c">理货单</el-dropdown-item>-->
  1241. <!-- <el-dropdown-item command="d">货物确认</el-dropdown-item>-->
  1242. <!-- <el-dropdown-item command="e">劳务确认</el-dropdown-item>-->
  1243. <!-- <el-dropdown-item command="f">吊牌信息</el-dropdown-item>-->
  1244. <el-dropdown-item command="L">叉车对账入库单</el-dropdown-item>
  1245. <el-dropdown-item command="M">分箱垛卡入库单</el-dropdown-item>
  1246. <el-dropdown-item command="i">客户入库单</el-dropdown-item>
  1247. <el-dropdown-item command="j">卸货存档入库单</el-dropdown-item>
  1248. <el-dropdown-item command="k">整票垛卡入库单</el-dropdown-item>
  1249. <el-dropdown-item command="h">入库垛卡</el-dropdown-item>
  1250. </el-dropdown-menu>
  1251. </el-dropdown>
  1252. <el-dropdown @command="detailedApproval" style="margin-left: 10px" v-if="showApproval == 0">
  1253. <el-button size="small" type="primary">
  1254. 明细审批<i class="el-icon-arrow-down el-icon--right"></i>
  1255. </el-button>
  1256. <el-dropdown-menu slot="dropdown">
  1257. <el-dropdown-item command="QH">明细请核</el-dropdown-item>
  1258. <el-dropdown-item command="SP">明细审批</el-dropdown-item>
  1259. <el-dropdown-item command="CK">查看明细审批流</el-dropdown-item>
  1260. <el-dropdown-item command="CX">撤销明细审批</el-dropdown-item>
  1261. </el-dropdown-menu>
  1262. </el-dropdown>
  1263. <div style="margin: 0 10px">
  1264. <el-button
  1265. icon="el-icon-setting"
  1266. size="mini"
  1267. circle
  1268. @click="showSetting = !showSetting"
  1269. ></el-button>
  1270. </div>
  1271. </el-col>
  1272. </el-row>
  1273. <el-table
  1274. :data="detailList"
  1275. tooltip-effect="dark"
  1276. stripe
  1277. ref="multipleTables"
  1278. :summary-method="getSummaries"
  1279. @selection-change="Selectinventory"
  1280. show-summary
  1281. >
  1282. <el-table-column type="selection" width="50" align="center" fixed/>
  1283. <el-table-column
  1284. label="序号"
  1285. type="index"
  1286. width="50"
  1287. fixed
  1288. align="center"
  1289. />
  1290. <el-table-column
  1291. v-for="(item, index) in getRowList"
  1292. :key="index"
  1293. :label="item.name"
  1294. :width="item.width"
  1295. :prop="item.label"
  1296. align="center"
  1297. :fixed="item.fixed"
  1298. :show-overflow-tooltip="true"
  1299. sortable
  1300. >
  1301. <template slot-scope="scope">
  1302. <span v-if="item.label == 'fBillstatus'">
  1303. {{ scope.row.fBillstatus | fBillstatusFormat }}
  1304. </span>
  1305. <span v-else-if="item.label == 'fBsdate'">
  1306. {{ scope.row.fBsdate | fBsdateFormat }}
  1307. </span>
  1308. <span v-else-if="item.label == 'fGoodsid'">
  1309. {{ scope.row.fGoodsid | goodsFormat(goodsOptions) }}
  1310. </span>
  1311. <span v-else-if="item.label == 'fBusinessType'">
  1312. {{
  1313. scope.row.fBusinessType
  1314. | fStorageTypeFormat(fStorageTypeOptions)
  1315. }}
  1316. </span>
  1317. <span v-else-if="item.label == 'fCntrtype'">
  1318. {{ scope.row.fCntrtype | fCntrtypeFormat(cntrList) }}
  1319. </span>
  1320. <span v-else-if="item.label == 'fLntype'">
  1321. {{ scope.row.fLntype | fLntypeFormat(unloadModes) }}
  1322. </span>
  1323. <span v-else-if="item.label == 'fFleet'">
  1324. {{ scope.row.fFleet | fFleetFormat(fleetOptions) }}
  1325. </span>
  1326. <span v-else-if="item.label == 'fLocalcntrno'">
  1327. <el-input
  1328. v-model="scope.row.fLocalcntrno"
  1329. placeholder="库内箱号"
  1330. v-Alphabet
  1331. />
  1332. </span>
  1333. <span v-else-if="item.label == 'fSerialNumber'">
  1334. <el-input
  1335. v-model="scope.row.fSerialNumber"
  1336. placeholder="流水号"
  1337. :disabled="browseStatus || scope.row.fBillstatus >= 40"
  1338. />
  1339. </span>
  1340. <span v-else>{{ scope.row[item.label] }}</span>
  1341. </template>
  1342. </el-table-column>
  1343. <el-table-column
  1344. header-align="center"
  1345. align="center"
  1346. label="操作"
  1347. width="160px"
  1348. fixed="right"
  1349. >
  1350. <template slot-scope="scope">
  1351. <el-button
  1352. :disabled="browseStatus || scope.row.fBillstatus > 30"
  1353. type="text"
  1354. @click.native.prevent="fixRow(scope.row, scope.$index)"
  1355. size="small"
  1356. >修改
  1357. </el-button
  1358. >
  1359. <el-button
  1360. :disabled="
  1361. browseStatus ||
  1362. scope.row.fBillstatus === 20 ||
  1363. scope.row.fBillstatus === 30 ||
  1364. scope.row.fBillstatus === 40
  1365. "
  1366. type="text"
  1367. @click.native.prevent="wDeleteRow(scope.$index, detailList)"
  1368. size="small"
  1369. >移除
  1370. </el-button
  1371. >
  1372. </template>
  1373. </el-table-column>
  1374. </el-table>
  1375. </div>
  1376. </el-collapse-item>
  1377. <el-collapse-item>
  1378. <template slot="title">
  1379. <i class="el-icon-s-order" style="font-size: 16px"></i>
  1380. <span style="font-size: 16px; font-weight: bolder; margin-left: 5px"
  1381. >附件明细</span
  1382. >
  1383. </template>
  1384. <up-load
  1385. :relevantAttachments="relevantAttachments"
  1386. :createBy="form.createBy"
  1387. :browseStatus="browseStatus"
  1388. ></up-load>
  1389. </el-collapse-item>
  1390. <el-collapse-item>
  1391. <template slot="title">
  1392. <i class="el-icon-circle-plus" style="font-size: 16px"></i>
  1393. <span style="font-size: 16px; font-weight: bolder; margin-left: 5px"
  1394. >收款信息</span
  1395. >
  1396. </template>
  1397. <income-money
  1398. :browseStatus="browseStatus"
  1399. @chiSave="saveForm"
  1400. @chiAdd="addCollection"
  1401. @feeChangeD="feeChange"
  1402. :warehouseDrList="warehouseDrList"
  1403. :businessTypeOption="businessTypeOption"
  1404. :fDNameOptions="fDNameOptions"
  1405. :fMblnoOptions="fMblnoOptions"
  1406. :fFeetUnitOptions="fFeetUnitOptions"
  1407. :fStltypeOptions="fStltypeOptions"
  1408. :fGrossweight="fGrossweight"
  1409. :fQty="fQty"
  1410. :fNetweight="fNetweight"
  1411. :fCntqty="fCntqty"
  1412. :form="form"
  1413. :company="company"
  1414. :CntrTable="CntrTable"
  1415. :cntrList="cntrList"
  1416. ></income-money>
  1417. </el-collapse-item>
  1418. <el-collapse-item>
  1419. <template slot="title">
  1420. <i class="el-icon-remove" style="font-size: 16px"></i>
  1421. <span style="font-size: 16px; font-weight: bolder; margin-left: 5px"
  1422. >付款信息</span
  1423. >
  1424. </template>
  1425. <pay-money
  1426. :browseStatus="browseStatus"
  1427. @chiSave="saveForm"
  1428. @chiAdd="addpayment"
  1429. @checkRow="checkRow"
  1430. @revokeRow="revokeRow"
  1431. @feeChangeC="feeChange"
  1432. :warehouseCrList="warehouseCrList"
  1433. :businessTypeOption="businessTypeOption"
  1434. :fCNameOptions="fCNameOptions"
  1435. :fMblnoOptions="fMblnoOptions"
  1436. :fFeetUnitOptions="fFeetUnitOptions"
  1437. :fStltypeOptions="fStltypeOptions"
  1438. :fGrossweight="fGrossweight"
  1439. :fQty="fQty"
  1440. :fNetweight="fNetweight"
  1441. :fCntqty="fCntqty"
  1442. :form="form"
  1443. ></pay-money>
  1444. </el-collapse-item>
  1445. </el-collapse>
  1446. <el-dialog
  1447. v-dialogDrag
  1448. :title="title"
  1449. :visible.sync="weightList"
  1450. width="95%"
  1451. :close-on-click-modal="false"
  1452. >
  1453. <div>
  1454. <el-form
  1455. ref="importList"
  1456. :model="importList"
  1457. :rules="imporRules"
  1458. label-width="120px"
  1459. >
  1460. <el-row>
  1461. <el-col :span="6">
  1462. <el-form-item label="入库日期" prop="fBsdate">
  1463. <el-date-picker
  1464. v-model="importList.fBsdate"
  1465. type="date"
  1466. style="width: 100%"
  1467. value-format="timestamp"
  1468. placeholder="入库日期"
  1469. format="yyyy-MM-dd"
  1470. >
  1471. </el-date-picker>
  1472. </el-form-item>
  1473. </el-col>
  1474. <el-col :span="6">
  1475. <el-form-item label="品名" prop="fGoodsid">
  1476. <el-select
  1477. filterable
  1478. v-model="importList.fGoodsid"
  1479. style="width: 100%"
  1480. placeholder="请选择品名"
  1481. @change="changeGoods"
  1482. >
  1483. <el-option
  1484. v-for="(item, index) in goodsOptions"
  1485. :key="index.fId"
  1486. :label="item.fName"
  1487. :value="item.fId"
  1488. ></el-option>
  1489. </el-select>
  1490. </el-form-item>
  1491. </el-col>
  1492. <el-col :span="6">
  1493. <el-form-item label="货物属性" prop="fBusinessType">
  1494. <el-select
  1495. filterable
  1496. v-model="importList.fBusinessType"
  1497. style="width: 100%"
  1498. placeholder="请选择商品属性"
  1499. >
  1500. <el-option
  1501. v-for="(item, index) in fStorageTypeOptions"
  1502. :key="index.dictValue"
  1503. :label="item.dictLabel"
  1504. :value="item.dictValue"
  1505. />
  1506. </el-select>
  1507. </el-form-item>
  1508. </el-col>
  1509. <el-col :span="6">
  1510. <el-form-item label="属性详情" prop="fMarks">
  1511. <el-input
  1512. v-model="importList.fMarks"
  1513. style="width: 100%"
  1514. placeholder="请填写属性描述"
  1515. />
  1516. </el-form-item>
  1517. </el-col>
  1518. </el-row>
  1519. <el-row v-if="newPlan == 0">
  1520. <el-col :span="6">
  1521. <el-form-item label="计划件数" prop="fPlanqty">
  1522. <el-input
  1523. v-input-limit="0"
  1524. v-model.number="importList.fPlanqty"
  1525. style="width: 100%"
  1526. placeholder="件数"
  1527. />
  1528. </el-form-item>
  1529. </el-col>
  1530. <el-col :span="6">
  1531. <el-form-item label="计划毛重(kg)" prop="fPlangrossweight">
  1532. <el-input
  1533. v-model="importList.fPlangrossweight"
  1534. v-input-limit="2"
  1535. style="width: 100%"
  1536. placeholder="毛重">
  1537. <template slot="append">{{ (importList.fPlangrossweight / 1000).toFixed(4) }}吨</template>
  1538. </el-input>
  1539. </el-form-item>
  1540. </el-col>
  1541. <el-col :span="6">
  1542. <el-form-item label="计划净重(kg)" prop="fPlannetweight">
  1543. <el-input
  1544. v-model="importList.fPlannetweight"
  1545. v-input-limit="2"
  1546. style="width: 100%"
  1547. placeholder="净重"
  1548. >
  1549. <template slot="append">{{ (importList.fPlannetweight / 1000).toFixed(4) }}吨</template>
  1550. </el-input>
  1551. </el-form-item>
  1552. </el-col>
  1553. </el-row>
  1554. <el-row>
  1555. <el-col :span="6">
  1556. <el-form-item label="件数" prop="fQty">
  1557. <el-input
  1558. v-input-limit="0"
  1559. v-model.number="importList.fQty"
  1560. style="width: 100%"
  1561. placeholder="件数"
  1562. @input="imporComputer"
  1563. />
  1564. </el-form-item>
  1565. </el-col>
  1566. <el-col :span="6">
  1567. <el-form-item label="毛重(kg)" prop="fGrossweight">
  1568. <el-input
  1569. v-model="importList.fGrossweight"
  1570. v-input-limit="2"
  1571. style="width: 100%"
  1572. placeholder="毛重"
  1573. @change="tfGrossweight2"
  1574. >
  1575. <template slot="append">{{ tfGrossweightnum2 }}吨</template>
  1576. </el-input>
  1577. </el-form-item>
  1578. </el-col>
  1579. <el-col :span="6">
  1580. <el-form-item label="净重(kg)" prop="fNetweight">
  1581. <el-input
  1582. v-model="importList.fNetweight"
  1583. v-input-limit="2"
  1584. style="width: 100%"
  1585. placeholder="净重"
  1586. @change="tfNetweight2"
  1587. >
  1588. <template slot="append">{{ tfNetweightnum2 }}吨</template>
  1589. </el-input>
  1590. </el-form-item>
  1591. </el-col>
  1592. <el-col :span="6">
  1593. <el-form-item label="库区" prop="fWarehouselocid">
  1594. <treeselect
  1595. v-model="importList.fWarehouselocid"
  1596. @select="getAlltree"
  1597. :options="fWarehouseidOptions"
  1598. :show-count="true"
  1599. :disable-branch-nodes="true"
  1600. placeholder="请选择库区"
  1601. />
  1602. </el-form-item>
  1603. </el-col>
  1604. </el-row>
  1605. <el-row>
  1606. <el-col :span="6">
  1607. <el-form-item label="溢短重" prop="fActualWeight">
  1608. <el-input
  1609. v-model="importList.fActualWeight"
  1610. style="width: 100%"
  1611. placeholder="溢短重"
  1612. v-input-limit="2"
  1613. >
  1614. <template slot="append">{{ (importList.fActualWeight / 1000).toFixed(4) }}吨</template>
  1615. </el-input>
  1616. </el-form-item>
  1617. </el-col>
  1618. <el-col :span="6">
  1619. <el-form-item label="箱型" prop="fCntrtype">
  1620. <el-select
  1621. placeholder="请选择箱型"
  1622. style="width: 100%"
  1623. v-model="importList.fCntrtype"
  1624. >
  1625. <el-option
  1626. v-for="(item, index) in cntrList"
  1627. :key="index.fId"
  1628. :label="item.fName"
  1629. :value="item.fId"
  1630. >
  1631. </el-option>
  1632. </el-select>
  1633. </el-form-item>
  1634. </el-col>
  1635. <el-col :span="6">
  1636. <el-form-item label="箱量" prop="fCntqty">
  1637. <el-input
  1638. v-model="importList.fCntqty"
  1639. style="width: 100%"
  1640. placeholder="箱量"
  1641. />
  1642. </el-form-item>
  1643. </el-col>
  1644. <el-col :span="6">
  1645. <el-form-item
  1646. label="箱号"
  1647. prop="fCntrno"
  1648. :rules="{
  1649. required: ifCntrnoStatus == 1 ? true : false,
  1650. message: '',
  1651. trigger: ['blur', 'change'],
  1652. }"
  1653. >
  1654. <el-input
  1655. v-model="importList.fCntrno"
  1656. style="width: 100%"
  1657. placeholder="箱号"
  1658. v-Alphabet
  1659. />
  1660. </el-form-item>
  1661. </el-col>
  1662. </el-row>
  1663. <el-row>
  1664. <el-col :span="6">
  1665. <el-form-item label="车队" prop="fFleet">
  1666. <el-select
  1667. style="width: 100%"
  1668. v-model="importList.fFleet"
  1669. clearable
  1670. filterable
  1671. placeholder="请输入关键词"
  1672. >
  1673. <el-option
  1674. v-for="(item, index) in fleetOptions"
  1675. :key="index.fId"
  1676. :label="item.fName"
  1677. :value="item.fId"
  1678. ></el-option>
  1679. </el-select>
  1680. </el-form-item>
  1681. </el-col>
  1682. <el-col :span="6">
  1683. <el-form-item label="车号" prop="fTruckno">
  1684. <el-input
  1685. v-model="importList.fTruckno"
  1686. style="width: 100%"
  1687. placeholder="车号"
  1688. />
  1689. </el-form-item>
  1690. </el-col>
  1691. <el-col :span="6">
  1692. <el-form-item label="司机名" prop="fDriverName">
  1693. <el-input
  1694. v-model="importList.fDriverName"
  1695. style="width: 100%"
  1696. placeholder="司机名"
  1697. />
  1698. </el-form-item>
  1699. </el-col>
  1700. <el-col :span="6">
  1701. <el-form-item label="司机电话" prop="fDriverTel">
  1702. <el-input
  1703. v-model="importList.fDriverTel"
  1704. style="width: 100%"
  1705. placeholder="司机电话"
  1706. />
  1707. </el-form-item>
  1708. </el-col>
  1709. </el-row>
  1710. <el-row>
  1711. <el-col :span="6">
  1712. <el-form-item label="司机身份证" prop="fDriverIdCar">
  1713. <el-input
  1714. v-model="importList.fDriverIdCar"
  1715. style="width: 100%"
  1716. placeholder="司机身份证"
  1717. />
  1718. </el-form-item>
  1719. </el-col>
  1720. <el-col :span="6">
  1721. <el-form-item label="流水号" prop="fSerialNumber">
  1722. <el-input
  1723. v-model="importList.fSerialNumber"
  1724. style="width: 100%"
  1725. placeholder="流水号"
  1726. disabled
  1727. />
  1728. </el-form-item>
  1729. </el-col>
  1730. <el-col :span="6">
  1731. <el-form-item label="货值" prop="fGoodsval">
  1732. <el-input
  1733. v-model="importList.fGoodsval"
  1734. style="width: 100%"
  1735. placeholder="货值"
  1736. >
  1737. <template slot="append">万</template>
  1738. </el-input>
  1739. </el-form-item>
  1740. </el-col>
  1741. <el-col :span="6">
  1742. <el-form-item label="装卸方式" prop="fLntype">
  1743. <el-select
  1744. v-model="importList.fLntype"
  1745. placeholder="装卸方式"
  1746. style="width: 100%"
  1747. >
  1748. <el-option
  1749. v-for="(item, index) in unloadModes"
  1750. :key="index.dictValue"
  1751. :label="item.dictLabel"
  1752. :value="item.dictValue"
  1753. />
  1754. </el-select>
  1755. </el-form-item>
  1756. </el-col>
  1757. </el-row>
  1758. <el-row>
  1759. <el-col :span="6">
  1760. <el-form-item label="叉车工" prop="fForkliftman">
  1761. <el-input
  1762. v-model="importList.fForkliftman"
  1763. style="width: 100%"
  1764. placeholder="叉车工"
  1765. />
  1766. </el-form-item>
  1767. </el-col>
  1768. <el-col :span="6">
  1769. <el-form-item label="装卸工" prop="fStevedore">
  1770. <el-input
  1771. v-model="importList.fStevedore"
  1772. style="width: 100%"
  1773. placeholder="装卸工"
  1774. />
  1775. </el-form-item>
  1776. </el-col>
  1777. <el-col :span="6">
  1778. <el-form-item label="库内箱号" prop="fLocalcntrno">
  1779. <el-input
  1780. v-model="importList.fLocalcntrno"
  1781. style="width: 100%"
  1782. placeholder="库内箱号"
  1783. v-Alphabet
  1784. />
  1785. </el-form-item>
  1786. </el-col>
  1787. <el-col :span="6">
  1788. <el-form-item label="封号" prop="fSealno">
  1789. <el-input
  1790. v-model="importList.fSealno"
  1791. style="width: 100%"
  1792. placeholder="封号"
  1793. />
  1794. </el-form-item>
  1795. </el-col>
  1796. </el-row>
  1797. <el-row>
  1798. <el-col :span="6">
  1799. <el-form-item label="包装规格" prop="fPackagespecs">
  1800. <el-input
  1801. v-model="importList.fPackagespecs"
  1802. style="width: 100%"
  1803. placeholder="包装规格"
  1804. />
  1805. </el-form-item>
  1806. </el-col>
  1807. </el-row>
  1808. <el-row>
  1809. <el-col>
  1810. <el-form-item label="备注" prop="remark">
  1811. <el-input
  1812. v-model="importList.remark"
  1813. style="width: 100%"
  1814. type="textarea"
  1815. placeholder="备注"
  1816. />
  1817. </el-form-item>
  1818. </el-col>
  1819. </el-row>
  1820. </el-form>
  1821. </div>
  1822. <span slot="footer" class="dialog-footer">
  1823. <el-button v-if="fixdetaiNum == null" type="info" @click="imporTable"
  1824. >保 存</el-button
  1825. >
  1826. <el-button v-else type="info" @click="fiximporTable"
  1827. >确认修改</el-button
  1828. >
  1829. <el-button @click="weightList = false">取 消</el-button>
  1830. </span>
  1831. </el-dialog>
  1832. <el-dialog
  1833. :visible.sync="print_zyd"
  1834. width="70%"
  1835. :close-on-click-modal="false"
  1836. :modal="false"
  1837. >
  1838. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  1839. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  1840. <div id="print_area1" class="print-div">
  1841. <div
  1842. class="print-title"
  1843. style="
  1844. display: flex;
  1845. justify-content: center;
  1846. font-size: 24px;
  1847. margin-bottom: 5px;
  1848. position: relative;
  1849. "
  1850. >
  1851. {{ company }}作业单
  1852. <div
  1853. style="
  1854. display: flex;
  1855. justify-content: space-between;
  1856. position: absolute;
  1857. right: 0;
  1858. font-size: 13px;
  1859. "
  1860. >
  1861. <div>
  1862. </div>
  1863. <div>
  1864. <div>办单号:{{ form.fBillno }}</div>
  1865. <div>办单日期:{{ nowTime }}</div>
  1866. </div>
  1867. </div>
  1868. </div>
  1869. <div class="print_table" style="display: flex">
  1870. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  1871. <tr>
  1872. <td>作业类型</td>
  1873. <td colspan="3">
  1874. {{ form.fBusinessType | fBusinessTypeFormat }}
  1875. </td>
  1876. <td>入库时间</td>
  1877. <td colspan="3">{{ form.fBsdate | fBsdateFormat }}</td>
  1878. </tr>
  1879. <tr>
  1880. <td>序号</td>
  1881. <td>车号</td>
  1882. <td>物品名称</td>
  1883. <td>提单号</td>
  1884. <td>品牌/规格/产地</td>
  1885. <td v-if="radio == 2">净重(KG)</td>
  1886. <td v-else>净重(T)</td>
  1887. <td>件数/规格</td>
  1888. <td>箱号</td>
  1889. </tr>
  1890. <tr v-for="(item, index) in Printinglist" :key="index">
  1891. <td>{{ index + 1 }}</td>
  1892. <td>{{ item.fTruckno }}</td>
  1893. <td>{{ item.fGoodsids }}</td>
  1894. <td>{{ item.fMblno }}</td>
  1895. <td>
  1896. {{ item.fBusinessType | fStorageFormat }}/{{ item.fMarks }}
  1897. </td>
  1898. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  1899. <td v-else>{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  1900. <td>{{ item.fQty }}/{{ item.fPackagespecs }}</td>
  1901. <td>{{ item.fCntrno }}</td>
  1902. </tr>
  1903. <tr>
  1904. <td>收费</td>
  1905. <td colspan="3">
  1906. <span v-for="(item, index) in Collectionoptionss" :key="index">
  1907. {{ item.fFeeid | fFeetFormat(fDNameOptions) }}:{{ item.fAmount }} 元<b v-if="index + 1 != Collectionoptionss.length">,</b>
  1908. </span>
  1909. </td>
  1910. <td>备注</td>
  1911. <td colspan="3">{{ form.remark }}</td>
  1912. </tr>
  1913. <!-- <tr v-for="(item, index) in Collectionoptionss" :key="index">-->
  1914. <!-- <td>收费</td>-->
  1915. <!-- <td colspan="3">{{ item.fFeeid | fFeetFormat(fDNameOptions) }}</td>-->
  1916. <!-- <td colspan="3">{{ item.fAmount }} 元</td>-->
  1917. <!-- </tr>-->
  1918. <tr>
  1919. <td>司机签字</td>
  1920. <td></td>
  1921. <td>电话</td>
  1922. <td>{{ fDriverTel }}</td>
  1923. <td colspan="4" rowspan="2">
  1924. 确认货物数量无误,包装于货物完好!<br/>出库盖好篷布,如有违背责任自负<br/>装卸工是否收小费
  1925. </td>
  1926. </tr>
  1927. <tr>
  1928. <td>制表</td>
  1929. <td>{{ form.createBy }}</td>
  1930. <td>机械/人工</td>
  1931. <td></td>
  1932. </tr>
  1933. <tr>
  1934. <td>地址</td>
  1935. <td colspan="3">{{ stockaddr }}</td>
  1936. <td>电话</td>
  1937. <td colspan="3">{{ form.fTel }}</td>
  1938. </tr>
  1939. </table>
  1940. </div>
  1941. </div>
  1942. <span lot="footer" class="dialog-footer">
  1943. <el-button
  1944. type="primary"
  1945. size="mini"
  1946. :disabled="browseStatus"
  1947. @click="
  1948. print_zyd = false;
  1949. addprint('zyd');
  1950. "
  1951. >打印
  1952. </el-button>
  1953. <el-button @click="print_zyd = false" size="mini">取消 </el-button>
  1954. </span>
  1955. </el-dialog>
  1956. <el-dialog
  1957. :visible.sync="print_shd"
  1958. width="70%"
  1959. :close-on-click-modal="false"
  1960. :modal="false"
  1961. >
  1962. <div id="print_area1" class="print-div">
  1963. <div
  1964. class="print-title"
  1965. style="
  1966. display: flex;
  1967. justify-content: center;
  1968. font-size: 24px;
  1969. margin-bottom: 5px;
  1970. "
  1971. >
  1972. {{ company }}收货单
  1973. </div>
  1974. <div class="print_table" style="display: flex">
  1975. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  1976. <tr>
  1977. <td>车号</td>
  1978. <td>{{ fTruckno }}</td>
  1979. <td>日期</td>
  1980. <td>{{ fBsdate }}</td>
  1981. </tr>
  1982. <tr v-for="(item, index) in Printinglist" :key="index">
  1983. <td>货物品名</td>
  1984. <td>{{ item.fGoodsids }}</td>
  1985. <td>件数</td>
  1986. <td>{{ item.fQty }}件</td>
  1987. </tr>
  1988. <tr>
  1989. <td>备注</td>
  1990. <td colspan="3"></td>
  1991. </tr>
  1992. <tr>
  1993. <td>司机签字</td>
  1994. <td></td>
  1995. <td>司机电话</td>
  1996. <td>{{ fDriverTel }}</td>
  1997. </tr>
  1998. <tr>
  1999. <td>制单人</td>
  2000. <td>{{ form.createBy }}</td>
  2001. <td>收货人</td>
  2002. <td>{{ form.fContacts }}</td>
  2003. </tr>
  2004. <tr>
  2005. <td>地址</td>
  2006. <td>{{ stockaddr }}</td>
  2007. <td>电话</td>
  2008. <td>{{ form.fTel }}</td>
  2009. </tr>
  2010. </table>
  2011. </div>
  2012. </div>
  2013. <span slot="footer" class="dialog-footer">
  2014. <el-button
  2015. type="primary"
  2016. :disabled="browseStatus"
  2017. @click="
  2018. addprint();
  2019. print_shd = false;
  2020. "
  2021. >打印
  2022. </el-button>
  2023. <el-button @click="print_shd = false">取消 </el-button>
  2024. </span>
  2025. </el-dialog>
  2026. <el-dialog
  2027. :visible.sync="print_rkd"
  2028. width="70%"
  2029. :close-on-click-modal="false"
  2030. :modal="false"
  2031. >
  2032. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  2033. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  2034. <div id="print_area18" class="print-div">
  2035. <div
  2036. class="print-title"
  2037. style="
  2038. display: flex;
  2039. justify-content: center;
  2040. font-size: 24px;
  2041. margin-bottom: 5px;
  2042. "
  2043. >
  2044. {{ company }}进仓单
  2045. </div>
  2046. <div
  2047. style="
  2048. display: flex;
  2049. justify-content: space-between;
  2050. margin-bottom: 5px;
  2051. "
  2052. >
  2053. <div>
  2054. </div>
  2055. <div>
  2056. <div>流水号:{{ form.fBillno }}</div>
  2057. </div>
  2058. </div>
  2059. <div class="print_table" style="display: flex">
  2060. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  2061. <tr>
  2062. <td>客户</td>
  2063. <td>{{ form.fCorpidName }}</td>
  2064. <td>仓库</td>
  2065. <td>{{ form.fWarehouseid | warehouseFormat(warehouseOptions) }}</td>
  2066. <td>地址</td>
  2067. <td colspan="2">{{ stockaddr }}</td>
  2068. </tr>
  2069. <tr>
  2070. <td>保管方</td>
  2071. <td width="200">{{ company }}</td>
  2072. <td>联系人</td>
  2073. <td>{{ form.fContacts }}</td>
  2074. <td>电话</td>
  2075. <td colspan="2">{{ form.fTel }}</td>
  2076. </tr>
  2077. <tr>
  2078. <td>提单号</td>
  2079. <td>品名</td>
  2080. <td>箱型</td>
  2081. <td>品牌</td>
  2082. <td>件数</td>
  2083. <td>重量</td>
  2084. <td>包装规格</td>
  2085. </tr>
  2086. <tr>
  2087. <td>{{ form.fMblno }}</td>
  2088. <td>{{ Printinglist.length > 0? Printinglist[0].fGoodsids: '' }}</td>
  2089. <td v-if="Printinglist.length > 0">{{Printinglist[0].fCntrtype | fCntrtypeFormat(cntrList)}}</td>
  2090. <td>{{ Printinglist.length > 0? Printinglist[0].fMarks: '' }}</td>
  2091. <td></td>
  2092. <td v-if="radio == 1">吨</td>
  2093. <td v-if="radio == 2">千克</td>
  2094. <td>{{ Printinglist.length > 0? Printinglist[0].fPackagespecs: '' }}</td>
  2095. </tr>
  2096. <tr>
  2097. <td></td>
  2098. <td></td>
  2099. <td></td>
  2100. <td></td>
  2101. <td></td>
  2102. <td></td>
  2103. <td></td>
  2104. </tr>
  2105. <tr>
  2106. <td>车号/箱号</td>
  2107. <td>入货日期</td>
  2108. <td>箱量</td>
  2109. <td>重量</td>
  2110. <td>件数</td>
  2111. <td>入库重量</td>
  2112. <td>入库件数</td>
  2113. </tr>
  2114. <tr v-for="(item, index) in Printinglist" :key="index">
  2115. <td>{{ item.fTruckno }}/{{ item.fCntrno }}</td>
  2116. <td>{{ item.fBsdate }}</td>
  2117. <td>{{ item.fCntqty }}</td>
  2118. <td v-if="item.fGrossweight && radio == 1">
  2119. {{ (item.fGrossweight / 1000).toFixed(4) }}
  2120. </td>
  2121. <td v-else-if="item.fGrossweight && radio == 2">
  2122. {{ item.fGrossweight }}
  2123. </td>
  2124. <td v-else></td>
  2125. <td>{{ item.fPlanqty }}</td>
  2126. <td v-if="item.fNetweight && radio == 1">
  2127. {{ (item.fNetweight / 1000).toFixed(4) }}
  2128. </td>
  2129. <td v-else-if="item.fNetweight && radio == 2">
  2130. {{ item.fNetweight }}
  2131. </td>
  2132. <td v-else></td>
  2133. <td>{{ item.fQty }}</td>
  2134. </tr>
  2135. <tr>
  2136. <td colspan="2">合计</td>
  2137. <td>{{ allfCntqty }}</td>
  2138. <td v-if="radio == 1">{{ (allfGrossweight / 1000).toFixed(4) }}</td>
  2139. <td v-if="radio == 2">{{ allfGrossweight }}</td>
  2140. <td>{{ allfPlanqty }}</td>
  2141. <td v-if="radio == 1">{{ (allfNetweight / 1000).toFixed(4) }}</td>
  2142. <td v-if="radio == 2">{{ allfNetweight }}</td>
  2143. <td>{{ allfQty }}</td>
  2144. </tr>
  2145. <tr>
  2146. <td>备注</td>
  2147. <td colspan="6"></td>
  2148. </tr>
  2149. <tr>
  2150. <td colspan="7">
  2151. 本进仓单经仓管员签字并经保管方盖章后即专项作为货物所有人的货权证明,本单据不得转让。
  2152. </td>
  2153. </tr>
  2154. </table>
  2155. </div>
  2156. <div
  2157. style="display: flex; justify-content: space-between; font-size: 12px;margin-bottom: 5px"
  2158. >
  2159. <div>开单员:</div>
  2160. <div style="width: 150px">仓管员:{{ form.fStorekeeper }}</div>
  2161. </div>
  2162. <div
  2163. style="display: flex; justify-content: space-between; font-size: 12px"
  2164. >
  2165. <div>开单时间:{{ nowTime }}</div>
  2166. <div style="width: 150px">(盖章)</div>
  2167. </div>
  2168. </div>
  2169. <span slot="footer" class="dialog-footer">
  2170. <el-button
  2171. type="primary"
  2172. :disabled="browseStatus"
  2173. @click="
  2174. addprint('jcd');
  2175. print_rkd = false;
  2176. "
  2177. >打印
  2178. </el-button>
  2179. <el-button @click="print_rkd = false">取消 </el-button>
  2180. </span>
  2181. </el-dialog>
  2182. <el-dialog
  2183. :visible.sync="print_bzrkd"
  2184. width="70%"
  2185. :close-on-click-modal="false"
  2186. :modal="false"
  2187. >
  2188. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  2189. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  2190. <div id="print_area4" class="print-div">
  2191. <div
  2192. class="print-title"
  2193. style="
  2194. display: flex;
  2195. justify-content: center;
  2196. font-size: 24px;
  2197. margin-bottom: 5px;
  2198. "
  2199. >
  2200. {{ company }}入库单
  2201. </div>
  2202. <div class="print_table" style="display: flex">
  2203. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  2204. <tr>
  2205. <td>客户名称</td>
  2206. <td>{{ form.fCorpidName }}</td>
  2207. <td>入库日期</td>
  2208. <td>{{ form.fBsdate | fBsdateFormat }}</td>
  2209. <td>流水号</td>
  2210. <td colspan="3" v-if="form.fBillno">
  2211. {{ form.fBillno }}-{{ lsTime }}
  2212. </td>
  2213. <td colspan="3" v-else></td>
  2214. </tr>
  2215. <tr>
  2216. <td>车号</td>
  2217. <td>{{ form.fTruckno }}</td>
  2218. <td>提单号</td>
  2219. <td>{{ form.fMblno }}</td>
  2220. <td>箱号</td>
  2221. <td colspan="3" v-if="Printinglist.length">
  2222. {{ Printinglist[0].fCntrno }}
  2223. </td>
  2224. <td colspan="3" v-else></td>
  2225. </tr>
  2226. <tr>
  2227. <td>货名</td>
  2228. <td>箱量</td>
  2229. <td>件数</td>
  2230. <td v-if="radio == 1">毛重(吨)</td>
  2231. <td v-if="radio == 1">净重(吨)</td>
  2232. <td v-if="radio == 2">毛重(千克)</td>
  2233. <td v-if="radio == 2">净重(千克)</td>
  2234. <td>规格</td>
  2235. <td>区位</td>
  2236. <td>备注</td>
  2237. </tr>
  2238. <tr v-for="(item, index) in Printinglist" :key="index">
  2239. <td>{{ item.fGoodsids }}</td>
  2240. <td>{{ item.fCntqty }}</td>
  2241. <td>{{ item.fQty }}</td>
  2242. <td v-if="item.fGrossweight && radio == 1">
  2243. {{ (item.fGrossweight / 1000).toFixed(4) }}
  2244. </td>
  2245. <td v-else-if="item.fGrossweight && radio == 2">
  2246. {{ item.fGrossweight }}
  2247. </td>
  2248. <td v-else></td>
  2249. <td v-if="radio == 1">{{ (item.fNetweight/1000).toFixed(4)}}</td>
  2250. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  2251. <td>{{ item.fPackagespecs }}</td>
  2252. <td>{{ item.fWarehouseInformation }}</td>
  2253. <td>{{ item.remark }}</td>
  2254. </tr>
  2255. <tr>
  2256. <td>备注</td>
  2257. <!-- <td colspan="4">不贴标签不卸货</td>-->
  2258. <td colspan="4">{{ form.remark }}</td>
  2259. <td>总件数</td>
  2260. <td colspan="2">{{ allfQty }}</td>
  2261. </tr>
  2262. </table>
  2263. </div>
  2264. <div
  2265. style="display: flex; justify-content: space-between; font-size: 12px"
  2266. >
  2267. <div>操作:</div>
  2268. <div>理货:</div>
  2269. <div>叉车:</div>
  2270. <div>司机:</div>
  2271. <div style="width: 150px">电话:</div>
  2272. </div>
  2273. </div>
  2274. <span slot="footer" class="dialog-footer">
  2275. <el-button
  2276. type="primary"
  2277. :disabled="browseStatus"
  2278. @click="
  2279. addprint();
  2280. print_bzrkd = false;
  2281. "
  2282. >打印
  2283. </el-button>
  2284. <el-button @click="print_bzrkd = false">取消 </el-button>
  2285. </span>
  2286. </el-dialog>
  2287. <el-dialog
  2288. :visible.sync="print_bzrkd_js"
  2289. width="70%"
  2290. :close-on-click-modal="false"
  2291. :modal="false"
  2292. >
  2293. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  2294. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  2295. <div id="print_area15" class="print-div">
  2296. <div
  2297. class="print-title"
  2298. style="
  2299. display: flex;
  2300. justify-content: center;
  2301. font-size: 24px;
  2302. margin-bottom: 5px;
  2303. "
  2304. >
  2305. {{ company }}入库单
  2306. </div>
  2307. <div class="print_table" style="display: flex">
  2308. <table
  2309. border="0"
  2310. cellspacing="0"
  2311. cellpadding="0"
  2312. style="width: 100%; line-height: 30px"
  2313. >
  2314. <tr>
  2315. <td>客户名称</td>
  2316. <td>{{ form.fCorpidName }}</td>
  2317. <td>入库日期</td>
  2318. <td colspan="2" v-if="Printinglist.length">
  2319. {{ Printinglist[0].fBsdate | fBsdateFormat }}
  2320. </td>
  2321. <td colspan="2" v-else></td>
  2322. <td>流水号</td>
  2323. <td colspan="3" v-if="form.fBillno">
  2324. {{ form.fBillno }}-{{ lsTime }}
  2325. </td>
  2326. <td colspan="3" v-else></td>
  2327. </tr>
  2328. <tr>
  2329. <td>车号</td>
  2330. <td colspan="2" v-if="Printinglist.length">{{ Printinglist[0].fTruckno }}</td>
  2331. <td colspan="2" v-else></td>
  2332. <td colspan="2">提单号</td>
  2333. <td colspan="4">{{ form.fMblno }}</td>
  2334. </tr>
  2335. <tr>
  2336. <td style="width: 15%">货名</td>
  2337. <td>箱号</td>
  2338. <td>箱量</td>
  2339. <td>件数</td>
  2340. <td v-if="radio == 1">毛重(吨)</td>
  2341. <td v-if="radio == 1">净重(吨)</td>
  2342. <td v-if="radio == 2">毛重(千克)</td>
  2343. <td v-if="radio == 2">净重(千克)</td>
  2344. <td>规格</td>
  2345. <td>区位</td>
  2346. <td style="width: 20%">备注</td>
  2347. </tr>
  2348. <tr v-for="(item, index) in Printinglist" :key="index">
  2349. <td>{{ item.fGoodsid | goodsFormat(goodsOptions) }}</td>
  2350. <td>{{ item.fCntrno }}</td>
  2351. <td>{{ item.fCntqty }}</td>
  2352. <td>{{ item.fQty }}</td>
  2353. <td v-if="item.fGrossweight && radio == 1">
  2354. {{ (item.fGrossweight / 1000).toFixed(4) }}
  2355. </td>
  2356. <td v-else-if="item.fGrossweight && radio == 2">
  2357. {{ item.fGrossweight }}
  2358. </td>
  2359. <td v-else></td>
  2360. <td v-if="radio == 1">{{ (item.fNetweight/1000).toFixed(4)}}</td>
  2361. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  2362. <td>{{ item.fPackagespecs }}</td>
  2363. <td>{{ item.fWarehouseInformation }}</td>
  2364. <td>{{ item.remark }}</td>
  2365. </tr>
  2366. <tr>
  2367. <td>备注</td>
  2368. <td colspan="4"></td>
  2369. <td>总件数</td>
  2370. <td colspan="3">{{ allfQty }}</td>
  2371. </tr>
  2372. </table>
  2373. </div>
  2374. <div
  2375. style="display: flex; justify-content: space-between; font-size: 12px"
  2376. >
  2377. <div>操作:{{ form.createBy }}</div>
  2378. <div>理货:</div>
  2379. <div>叉车:</div>
  2380. <div>司机:</div>
  2381. <div style="width: 200px">电话:</div>
  2382. </div>
  2383. </div>
  2384. <span slot="footer" class="dialog-footer">
  2385. <el-button
  2386. type="primary"
  2387. @click="
  2388. addprint('bzrkd_js');
  2389. print_bzrkd_js = false;
  2390. "
  2391. >打印
  2392. </el-button>
  2393. <el-button @click="print_bzrkd_js = false">取消 </el-button>
  2394. </span>
  2395. </el-dialog>
  2396. <el-dialog
  2397. :visible.sync="print_bzrkd_xq"
  2398. width="70%"
  2399. :close-on-click-modal="false"
  2400. :modal="false"
  2401. >
  2402. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  2403. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  2404. <div id="print_area16" class="print-div">
  2405. <div
  2406. class="print-title"
  2407. style="
  2408. display: flex;
  2409. justify-content: center;
  2410. font-size: 24px;
  2411. margin-bottom: 5px;
  2412. "
  2413. >
  2414. {{ company }}入库单
  2415. </div>
  2416. <div class="print_table" style="display: flex">
  2417. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  2418. <tr>
  2419. <td>客户名称</td>
  2420. <td>{{ form.fCorpidName }}</td>
  2421. <td>入库日期</td>
  2422. <td>{{ form.fBsdate | fBsdateFormat }}</td>
  2423. <td>流水号</td>
  2424. <td colspan="5" v-if="form.fBillno">
  2425. {{ form.fBillno }}-{{ lsTime }}
  2426. </td>
  2427. <td colspan="5" v-else></td>
  2428. </tr>
  2429. <tr>
  2430. <td>车号</td>
  2431. <td>{{ form.fTruckno }}</td>
  2432. <td>提单号</td>
  2433. <td>{{ form.fMblno }}</td>
  2434. <td>箱号</td>
  2435. <td colspan="5" v-if="Printinglist.length">
  2436. {{ Printinglist[0].fCntrno }}
  2437. </td>
  2438. <td colspan="5" v-else></td>
  2439. </tr>
  2440. <tr>
  2441. <td>货名</td>
  2442. <td>箱量</td>
  2443. <td>货物属性</td>
  2444. <td>属性详情</td>
  2445. <td>件数</td>
  2446. <td v-if="radio == 1">毛重(吨)</td>
  2447. <td v-if="radio == 1">净重(吨)</td>
  2448. <td v-if="radio == 2">毛重(千克)</td>
  2449. <td v-if="radio == 2">净重(千克)</td>
  2450. <td>规格</td>
  2451. <td>区位</td>
  2452. <td>备注</td>
  2453. </tr>
  2454. <tr v-for="(item, index) in Printinglist" :key="index">
  2455. <td>{{ item.fGoodsids }}</td>
  2456. <td>{{ item.fCntqty }}</td>
  2457. <td>{{ item.fBusinessType | fStorageTypeFormat(fStorageTypeOptions) }}</td>
  2458. <td>{{ item.fMarks }}</td>
  2459. <td>{{ item.fQty }}</td>
  2460. <td v-if="item.fGrossweight && radio == 1">
  2461. {{ (item.fGrossweight / 1000).toFixed(4) }}
  2462. </td>
  2463. <td v-else-if="item.fGrossweight && radio == 2">
  2464. {{ item.fGrossweight }}
  2465. </td>
  2466. <td v-else></td>
  2467. <td v-if="radio == 1">{{ (item.fNetweight/1000).toFixed(4)}}</td>
  2468. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  2469. <td>{{ item.fPackagespecs }}</td>
  2470. <td>{{ item.fWarehouseInformation }}</td>
  2471. <td>{{ item.remark }}</td>
  2472. </tr>
  2473. <tr>
  2474. <td>备注</td>
  2475. <!-- <td colspan="4">不贴标签不卸货</td>-->
  2476. <td colspan="4">{{ form.remark }}</td>
  2477. <td>总件数</td>
  2478. <td colspan="4">{{ allfQty }}</td>
  2479. </tr>
  2480. </table>
  2481. </div>
  2482. <div
  2483. style="display: flex; justify-content: space-between; font-size: 12px"
  2484. >
  2485. <div>操作:</div>
  2486. <div>理货:</div>
  2487. <div>叉车:</div>
  2488. <div>司机:</div>
  2489. <div style="width: 150px">电话:</div>
  2490. </div>
  2491. </div>
  2492. <span slot="footer" class="dialog-footer">
  2493. <el-button
  2494. type="primary"
  2495. :disabled="browseStatus"
  2496. @click="
  2497. addprint('bzrkd_xq');
  2498. print_bzrkd_xq = false;
  2499. "
  2500. >打印
  2501. </el-button>
  2502. <el-button @click="print_bzrkd_xq = false">取消 </el-button>
  2503. </span>
  2504. </el-dialog>
  2505. <!-- 标准入库单-其他-->
  2506. <el-dialog
  2507. :visible.sync="print_bzrkd_qt"
  2508. width="70%"
  2509. :close-on-click-modal="false"
  2510. :modal="false"
  2511. >
  2512. <div id="print_area17" class="print-div">
  2513. <div
  2514. class="print-title"
  2515. style="
  2516. display: flex;
  2517. justify-content: center;
  2518. font-size: 24px;
  2519. margin-bottom: 5px;
  2520. "
  2521. >
  2522. {{ company }}入库单
  2523. </div>
  2524. <div style="width: 100%">
  2525. <div style="width: 100%;display: flex">
  2526. <div style="width: 33.333333%">
  2527. 货权方:{{ form.fCorpidName }}
  2528. </div>
  2529. <div style="width: 33.333333%">
  2530. 仓库:
  2531. </div>
  2532. <div style="width: 33.333333%">
  2533. 地址:
  2534. </div>
  2535. </div>
  2536. <div style="width: 100%;display: flex">
  2537. <div style="width: 33.333333%">
  2538. 保管方:{{ company }}
  2539. </div>
  2540. <div style="width: 33.333333%">
  2541. 联系人:
  2542. </div>
  2543. <div style="width: 33.333333%">
  2544. 电话:
  2545. </div>
  2546. </div>
  2547. </div>
  2548. <div class="print_table" style="display: flex">
  2549. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  2550. <tr>
  2551. <td>客户名称</td>
  2552. <td>{{ form.fCorpidName }}</td>
  2553. <td>入库日期</td>
  2554. <td>{{ form.fBsdate | fBsdateFormat }}</td>
  2555. <td>流水号</td>
  2556. <td colspan="5" v-if="form.fBillno">
  2557. {{ form.fBillno }}-{{ lsTime }}
  2558. </td>
  2559. <td colspan="5" v-else></td>
  2560. </tr>
  2561. <tr>
  2562. <td>车号</td>
  2563. <td>{{ form.fTruckno }}</td>
  2564. <td>提单号</td>
  2565. <td>{{ form.fMblno }}</td>
  2566. <td>箱号</td>
  2567. <td colspan="5" v-if="Printinglist.length">
  2568. {{ Printinglist[0].fCntrno }}
  2569. </td>
  2570. <td colspan="5" v-else></td>
  2571. </tr>
  2572. <tr>
  2573. <td>货名</td>
  2574. <td>箱量</td>
  2575. <td>货物属性</td>
  2576. <td>属性详情</td>
  2577. <td>件数</td>
  2578. <td>毛重(吨)</td>
  2579. <td>净重(吨)</td>
  2580. <td>规格</td>
  2581. <td>区位</td>
  2582. <td>备注</td>
  2583. </tr>
  2584. <tr v-for="(item, index) in Printinglist" :key="index">
  2585. <td>{{ item.fGoodsids }}</td>
  2586. <td>{{ item.fCntqty }}</td>
  2587. <td>{{ item.fBusinessType | fStorageTypeFormat(fStorageTypeOptions) }}</td>
  2588. <td>{{ item.fMarks }}</td>
  2589. <td>{{ item.fQty }}</td>
  2590. <td v-if="item.fGrossweight">
  2591. {{ (item.fGrossweight / 1000).toFixed(4) }}
  2592. </td>
  2593. <td v-else></td>
  2594. <td>{{ (item.fNetweight/1000).toFixed(4)}}</td>
  2595. <td>{{ item.fPackagespecs }}</td>
  2596. <td>{{ item.fWarehouseInformation }}</td>
  2597. <td>{{ item.remark }}</td>
  2598. </tr>
  2599. <tr>
  2600. <td>备注</td>
  2601. <!-- <td colspan="4">不贴标签不卸货</td>-->
  2602. <td colspan="4">{{ form.remark }}</td>
  2603. <td>总件数</td>
  2604. <td colspan="4">{{ allfQty }}</td>
  2605. </tr>
  2606. </table>
  2607. </div>
  2608. <div
  2609. style="display: flex; justify-content: space-between; font-size: 12px"
  2610. >
  2611. <div>操作:</div>
  2612. <div>理货:</div>
  2613. <div>叉车:</div>
  2614. <div>司机:</div>
  2615. <div style="width: 150px">电话:</div>
  2616. </div>
  2617. </div>
  2618. <span slot="footer" class="dialog-footer">
  2619. <el-button
  2620. type="primary"
  2621. :disabled="browseStatus"
  2622. @click="
  2623. addprint('bzrkd_qt');
  2624. print_bzrkd_qt = false;
  2625. "
  2626. >打印
  2627. </el-button>
  2628. <el-button @click="print_bzrkd_qt = false">取消 </el-button>
  2629. </span>
  2630. </el-dialog>
  2631. <el-dialog
  2632. :visible.sync="print_lhd"
  2633. width="70%"
  2634. :close-on-click-modal="false"
  2635. :modal="false"
  2636. >
  2637. <div id="print_area5" class="print-div">
  2638. <div
  2639. class="print-title"
  2640. style="
  2641. display: flex;
  2642. justify-content: center;
  2643. font-size: 24px;
  2644. margin-bottom: 5px;
  2645. "
  2646. >
  2647. {{ company }}
  2648. </div>
  2649. <div
  2650. style="
  2651. display: flex;
  2652. justify-content: center;
  2653. font-size: 18px;
  2654. margin-bottom: 5px;
  2655. "
  2656. >
  2657. <div>入&nbsp;库&nbsp;计&nbsp;划&nbsp;单</div>
  2658. </div>
  2659. <div
  2660. style="
  2661. display: flex;
  2662. justify-content: space-between;
  2663. margin-bottom: 5px;
  2664. "
  2665. class="print_form"
  2666. >
  2667. <div>
  2668. <div>提单号:{{ form.fMblno }}</div>
  2669. <div>客户名称:{{ form.fCorpidName }}</div>
  2670. <div>货物名称:{{ form.fProductName }}</div>
  2671. <div>预计净重:{{ form.fPlannetweight }}</div>
  2672. </div>
  2673. <div>
  2674. <div>入库计划单号:{{ form.fBillno }}</div>
  2675. <div>计划入库日期:{{ form.fBstime }}</div>
  2676. <div>制单日期:{{ form.createTime }}</div>
  2677. <div>实际毛重:</div>
  2678. </div>
  2679. <div>
  2680. <div>清单号:{{ form.fCustomno }}</div>
  2681. <div>存放仓库:{{ stockName }}</div>
  2682. <div>预计毛重:{{ form.fPlangrossweight }}</div>
  2683. <div>实际净重:</div>
  2684. </div>
  2685. </div>
  2686. <div class="print_table" style="display: flex">
  2687. <table
  2688. border="0"
  2689. cellspacing="0"
  2690. cellpadding="0"
  2691. style="width: 100%; line-height: 30px"
  2692. >
  2693. <tr>
  2694. <td>箱号</td>
  2695. <td>铅封号</td>
  2696. <td>预计件数</td>
  2697. <td>实际件数</td>
  2698. <td>垛位</td>
  2699. <td>实际入库日期</td>
  2700. <td>送货车号</td>
  2701. <td>送货司机</td>
  2702. <td>备注</td>
  2703. </tr>
  2704. <tr v-for="(item, index) in Printinglist" :key="index">
  2705. <td>{{ item.fCntrno }}</td>
  2706. <td></td>
  2707. <td>{{ item.fQty }}</td>
  2708. <td></td>
  2709. <td>{{ item.fWarehouseInformation }}</td>
  2710. <td>{{ item.fChargedate }}</td>
  2711. <td>{{ item.fTruckno }}</td>
  2712. <td>{{ item.fDriverName }}</td>
  2713. <td>{{ item.remark }}</td>
  2714. </tr>
  2715. <tr>
  2716. <td colspan="2">合计:</td>
  2717. <td>{{ allfQty }}</td>
  2718. <td></td>
  2719. <td></td>
  2720. <td></td>
  2721. <td></td>
  2722. <td></td>
  2723. <td></td>
  2724. </tr>
  2725. </table>
  2726. </div>
  2727. <div
  2728. style="display: flex; justify-content: space-between; font-size: 12px"
  2729. >
  2730. <div>操作:{{ form.createBy }}</div>
  2731. <div>库管:{{ form.fContacts }}</div>
  2732. <div style="width: 100px">叉车:</div>
  2733. </div>
  2734. </div>
  2735. <span slot="footer" class="dialog-footer">
  2736. <el-button
  2737. type="primary"
  2738. @click="
  2739. addprint('lhd');
  2740. print_lhd = false;
  2741. "
  2742. >打印
  2743. </el-button>
  2744. <el-button @click="print_lhd = false">取消 </el-button>
  2745. </span>
  2746. </el-dialog>
  2747. <el-dialog
  2748. :visible.sync="print_hwqr"
  2749. width="70%"
  2750. :close-on-click-modal="false"
  2751. :modal="false"
  2752. >
  2753. <div id="print_area6" class="print-div">
  2754. <div
  2755. class="print-title"
  2756. style="
  2757. display: flex;
  2758. justify-content: center;
  2759. font-size: 24px;
  2760. margin-bottom: 5px;
  2761. "
  2762. >
  2763. {{ company }}
  2764. </div>
  2765. <div
  2766. style="
  2767. display: flex;
  2768. justify-content: center;
  2769. font-size: 18px;
  2770. margin-bottom: 5px;
  2771. "
  2772. >
  2773. <div>入&nbsp;库&nbsp;单</div>
  2774. </div>
  2775. <div style="margin-bottom: 5px" class="print_form">
  2776. <div>客户名称:{{ form.fCorpidName }}</div>
  2777. </div>
  2778. <div class="print_table" style="display: flex">
  2779. <table
  2780. border="0"
  2781. cellspacing="0"
  2782. cellpadding="0"
  2783. style="width: 100%; line-height: 30px"
  2784. >
  2785. <tr>
  2786. <td>序号</td>
  2787. <td>实际入库日期</td>
  2788. <td>商品名称</td>
  2789. <td>提单号</td>
  2790. <td>箱号</td>
  2791. <td>件数</td>
  2792. <td>毛重</td>
  2793. <td>净重</td>
  2794. <td>备注</td>
  2795. </tr>
  2796. <tr v-for="(item, index) in Printinglist" :key="index">
  2797. <td>{{ index + 1 }}</td>
  2798. <td>{{ item.fChargedate }}</td>
  2799. <td>{{ item.fGoodsid | goodsFormat(goodsOptions) }}</td>
  2800. <td>{{ item.fMblno }}</td>
  2801. <td>{{ item.fCntrno }}</td>
  2802. <td>{{ item.fQty }}</td>
  2803. <td>{{ item.fGrossweight }}</td>
  2804. <td>{{ item.fNetweight }}</td>
  2805. <td>{{ item.remark }}</td>
  2806. </tr>
  2807. <tr>
  2808. <td colspan="5">合计:</td>
  2809. <td>{{ allfQty }}</td>
  2810. <td>{{ allfGrossweight }}</td>
  2811. <td>{{ allfNetweight }}</td>
  2812. <td></td>
  2813. </tr>
  2814. </table>
  2815. </div>
  2816. <div
  2817. style="display: flex; justify-content: space-between; font-size: 12px"
  2818. >
  2819. <div>制单人:{{ form.createBy }}</div>
  2820. <div style="width: 100px">审核人:</div>
  2821. </div>
  2822. </div>
  2823. <span slot="footer" class="dialog-footer">
  2824. <el-button
  2825. type="primary"
  2826. @click="
  2827. addprint('hwqr');
  2828. print_hwqr = false;
  2829. "
  2830. >打印
  2831. </el-button>
  2832. <el-button @click="print_hwqr = false">取消 </el-button>
  2833. </span>
  2834. </el-dialog>
  2835. <el-dialog
  2836. :visible.sync="print_lwqr"
  2837. width="70%"
  2838. :close-on-click-modal="false"
  2839. :modal="false"
  2840. >
  2841. <div id="print_area7" class="print-div">
  2842. <div
  2843. class="print-title"
  2844. style="
  2845. display: flex;
  2846. justify-content: center;
  2847. font-size: 24px;
  2848. margin-bottom: 5px;
  2849. "
  2850. >
  2851. {{ company }}
  2852. </div>
  2853. <div
  2854. style="
  2855. display: flex;
  2856. justify-content: center;
  2857. font-size: 18px;
  2858. margin-bottom: 5px;
  2859. "
  2860. >
  2861. <div>入&nbsp;库&nbsp;单</div>
  2862. </div>
  2863. <div style="display: flex; margin-bottom: 5px">
  2864. <div>
  2865. <div>报关单号:{{ form.fCustomno }}</div>
  2866. <div>存货地点:</div>
  2867. </div>
  2868. </div>
  2869. <div class="print_table" style="display: flex">
  2870. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  2871. <tr>
  2872. <td>品名</td>
  2873. <td colspan="3">{{ form.fProductName }}</td>
  2874. <td colspan="3">清单号</td>
  2875. <td colspan="2">{{ form.fCustomno }}</td>
  2876. </tr>
  2877. <tr>
  2878. <td>提单号</td>
  2879. <td colspan="8">{{ form.fMblno }}</td>
  2880. </tr>
  2881. <tr>
  2882. <td>入库日期</td>
  2883. <td>箱号</td>
  2884. <td>铅封号</td>
  2885. <td>预计件数</td>
  2886. <td>垛位</td>
  2887. <td>(</td>
  2888. <td>毛重(吨)</td>
  2889. <td>备注</td>
  2890. </tr>
  2891. <tr v-for="(item, index) in Printinglist" :key="index">
  2892. <td>{{ item.fChargedate }}</td>
  2893. <td>{{ item.fCntrno }}</td>
  2894. <td></td>
  2895. <td>{{ item.fQty }}</td>
  2896. <td>{{ item.fWarehouseInformation }}</td>
  2897. <td></td>
  2898. <td></td>
  2899. <td></td>
  2900. <td>{{ item.remark }}</td>
  2901. </tr>
  2902. </table>
  2903. </div>
  2904. <div
  2905. style="display: flex; justify-content: space-between; font-size: 12px"
  2906. >
  2907. <div>库管:{{ form.fContacts }}</div>
  2908. <div style="width: 100px">叉车:</div>
  2909. </div>
  2910. </div>
  2911. <span slot="footer" class="dialog-footer">
  2912. <el-button
  2913. type="primary"
  2914. @click="
  2915. addprint('lwqr');
  2916. print_lwqr = false;
  2917. "
  2918. >打印
  2919. </el-button>
  2920. <el-button @click="print_lwqr = false">取消 </el-button>
  2921. </span>
  2922. </el-dialog>
  2923. <el-dialog
  2924. :visible.sync="print_dpxx"
  2925. width="70%"
  2926. :close-on-click-modal="false"
  2927. :modal="false"
  2928. >
  2929. <div id="print_area13" class="print-div">
  2930. <div
  2931. class="print-title"
  2932. style="
  2933. display: flex;
  2934. justify-content: center;
  2935. font-size: 24px;
  2936. margin-bottom: 5px;
  2937. "
  2938. >
  2939. {{ company }}货物标识卡
  2940. </div>
  2941. <div
  2942. style="
  2943. display: flex;
  2944. justify-content: center;
  2945. font-size: 18px;
  2946. margin-bottom: 5px;
  2947. "
  2948. >
  2949. <div>入&nbsp;库&nbsp;计&nbsp;划&nbsp;单</div>
  2950. </div>
  2951. <div class="print_table" style="display: flex">
  2952. <table
  2953. border="0"
  2954. cellspacing="0"
  2955. cellpadding="0"
  2956. style="width: 100%; line-height: 30px"
  2957. >
  2958. <tr>
  2959. <td>货物名称</td>
  2960. <td colspan="2">{{ form.fProductName }}</td>
  2961. <td>库位</td>
  2962. <td colspan="2">{{ stockName }}</td>
  2963. </tr>
  2964. <tr>
  2965. <td>提单号</td>
  2966. <td colspan="2">{{ form.fMblno }}</td>
  2967. <td>清单号</td>
  2968. <td colspan="2">{{ form.fCustomno }}</td>
  2969. </tr>
  2970. <tr>
  2971. <td>箱号</td>
  2972. <td colspan="2"></td>
  2973. <td>总箱量</td>
  2974. <td colspan="2"></td>
  2975. </tr>
  2976. <tr>
  2977. <td>总件数</td>
  2978. <td colspan="2">{{ form.fPlanqty }}</td>
  2979. <td>总净重</td>
  2980. <td colspan="2">{{ form.fPlannetweight }}</td>
  2981. </tr>
  2982. <tr>
  2983. <td>总毛重</td>
  2984. <td colspan="2">{{ form.fPlangrossweight }}</td>
  2985. <td>本垛件数</td>
  2986. <td colspan="2">{{ allfQty }}</td>
  2987. </tr>
  2988. <tr>
  2989. <td>本垛净重</td>
  2990. <td colspan="2">{{ allfGrossweight }}</td>
  2991. <td>本垛毛重</td>
  2992. <td colspan="2">{{ allfNetweight }}</td>
  2993. </tr>
  2994. <tr>
  2995. <td>入库日期</td>
  2996. <td colspan="2">{{ form.fBstime }}</td>
  2997. <td>仓管员</td>
  2998. <td colspan="2">{{ form.fContacts }}</td>
  2999. </tr>
  3000. <tr>
  3001. <td>出库日期</td>
  3002. <td>出库件数</td>
  3003. <td>剩余件数</td>
  3004. <td>出库仓管员</td>
  3005. <td>盘点日期</td>
  3006. <td>盘点人</td>
  3007. </tr>
  3008. <tr style="height: 17.8px" v-for="(item, index) in 10" :key="index">
  3009. <td></td>
  3010. <td></td>
  3011. <td></td>
  3012. <td></td>
  3013. <td></td>
  3014. <td></td>
  3015. </tr>
  3016. <tr style="height: 50px">
  3017. <td>备注</td>
  3018. <td colspan="5"></td>
  3019. </tr>
  3020. </table>
  3021. </div>
  3022. </div>
  3023. <span slot="footer" class="dialog-footer">
  3024. <el-button
  3025. type="primary"
  3026. @click="
  3027. addprint('dpxx');
  3028. print_dpxx = false;
  3029. "
  3030. >打印
  3031. </el-button>
  3032. <el-button @click="print_dpxx = false">取消 </el-button>
  3033. </span>
  3034. </el-dialog>
  3035. <el-dialog
  3036. :visible.sync="print_ccdzrkd"
  3037. width="70%"
  3038. :close-on-click-modal="false"
  3039. :modal="false"
  3040. >
  3041. <el-radio v-model="radio" :label="1" @change="radioChange">吨(T)</el-radio>
  3042. <el-radio v-model="radio" :label="2" @change="radioChange">千克(KG)</el-radio>
  3043. <div id="print_area8" class="print-div">
  3044. <div
  3045. class="print-title"
  3046. style="
  3047. display: flex;
  3048. justify-content: center;
  3049. font-size: 24px;
  3050. margin-bottom: 5px;
  3051. "
  3052. >
  3053. {{ company }}
  3054. </div>
  3055. <div style="display: flex; flex-direction: column; margin-left: 70%">
  3056. <div>{{ form.fBillno }}</div>
  3057. <div>存货地点:{{ stockName }}</div>
  3058. </div>
  3059. <div class="print_table" style="display: flex">
  3060. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  3061. <tr>
  3062. <td>品名</td>
  3063. <td colspan="3">{{ form.goodName }}</td>
  3064. <td colspan="2">清单号</td>
  3065. <td colspan="3">{{ form.fCustomsdeclartion }}</td>
  3066. </tr>
  3067. <tr>
  3068. <td class="oneHundredSix">入库日期</td>
  3069. <td class="twoHundred">箱号</td>
  3070. <td>铅封号</td>
  3071. <td>预计件数</td>
  3072. <td>垛位</td>
  3073. <td>实收件数</td>
  3074. <td class="oneHundred" v-if="radio == 1">实收净重(吨)</td>
  3075. <td class="oneHundred" v-if="radio == 1">毛重(吨)</td>
  3076. <td class="oneHundred" v-if="radio == 2">实收净重(千克)</td>
  3077. <td class="oneHundred" v-if="radio == 2">毛重(千克)</td>
  3078. <td class="twoHundred">备注</td>
  3079. </tr>
  3080. <tr v-for="(item, index) in Printinglist" :key="index">
  3081. <td>{{ item.fBsdate }}</td>
  3082. <td>{{ item.fCntrno }}</td>
  3083. <td>{{ item.fSealno }}</td>
  3084. <td>{{ form.fPlanqty }}</td>
  3085. <td>{{ item.fWarehouseInformation }}</td>
  3086. <td>{{ item.fQty }}</td>
  3087. <td v-if="radio == 1">{{ (item.fNetweight / 1000).toSuperFixed(4) }}</td>
  3088. <td v-if="radio == 1">{{ (item.fGrossweight / 1000).toSuperFixed(4) }}</td>
  3089. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  3090. <td v-if="radio == 2">{{ item.fGrossweight }}</td>
  3091. <td>{{ item.remark }}</td>
  3092. </tr>
  3093. <tr>
  3094. <td>合计:</td>
  3095. <td></td>
  3096. <td></td>
  3097. <td></td>
  3098. <td></td>
  3099. <td>{{ allfQty.toFixed(0) }}</td>
  3100. <td v-if="radio == 1">{{ allfNetweight.toSuperFixed(4) }}</td>
  3101. <td v-if="radio == 1">{{ allfGrossweight.toSuperFixed(4) }}</td>
  3102. <td v-if="radio == 2">{{ allfNetweight }}</td>
  3103. <td v-if="radio == 2">{{ allfGrossweight }}</td>
  3104. <td></td>
  3105. </tr>
  3106. </table>
  3107. </div>
  3108. <div
  3109. style="display: flex; justify-content: space-between; font-size: 12px"
  3110. >
  3111. <!-- <div>操作:{{ form.createBy }}</div>-->
  3112. <div>库管:{{ form.fContacts }}</div>
  3113. <div style="width: 100px">叉车:</div>
  3114. </div>
  3115. </div>
  3116. <span slot="footer" class="dialog-footer">
  3117. <el-button
  3118. type="primary"
  3119. :disabled="browseStatus"
  3120. @click="
  3121. addprint('ccdzrkd');
  3122. print_ccdzrkd = false;
  3123. "
  3124. >打印
  3125. </el-button>
  3126. <el-button @click="print_ccdzrkd = false">取消 </el-button>
  3127. </span>
  3128. </el-dialog>
  3129. <el-dialog
  3130. :visible.sync="print_fxdkrkd"
  3131. width="70%"
  3132. :close-on-click-modal="false"
  3133. :modal="false"
  3134. >
  3135. <div id="print_area9" class="print-div">
  3136. <div
  3137. class="print-title"
  3138. style="
  3139. display: flex;
  3140. justify-content: center;
  3141. font-size: 24px;
  3142. margin-bottom: 5px;
  3143. "
  3144. >
  3145. {{ company }}货物标识卡
  3146. </div>
  3147. <div class="print_table" style="display: flex;flex-direction: column">
  3148. <table
  3149. border="0"
  3150. cellspacing="0"
  3151. cellpadding="0"
  3152. style="width: 100%"
  3153. v-for="(item, index) in Printinglist"
  3154. :key="index"
  3155. >
  3156. <tr>
  3157. <td>货物名称</td>
  3158. <td colspan="2">{{ form.goodName }}</td>
  3159. <td>库位</td>
  3160. <td colspan="2">{{ form.fWarehouseInformation }}</td>
  3161. </tr>
  3162. <tr>
  3163. <td>提单号</td>
  3164. <td colspan="2">{{ form.fMblno }}</td>
  3165. <td>清单号</td>
  3166. <td colspan="2">{{ form.fCustomsdeclartion }}</td>
  3167. </tr>
  3168. <tr>
  3169. <td>箱号</td>
  3170. <td colspan="2">{{ item.fCntrno }}</td>
  3171. <td>总箱量</td>
  3172. <td colspan="2">{{ item.fCntqty }}</td>
  3173. </tr>
  3174. <tr>
  3175. <td>总件数</td>
  3176. <td colspan="2">{{ item.fQty }}</td>
  3177. <td v-if="radio == 1">总净重(吨)</td>
  3178. <td v-if="radio == 2">总净重(千克)</td>
  3179. <td v-if="radio == 1" colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  3180. <td v-if="radio == 2" colspan="2">{{ item.fNetweight }}</td>
  3181. </tr>
  3182. <tr>
  3183. <td v-if="radio == 1">总毛重(吨)</td>
  3184. <td v-if="radio == 2">总毛重(千克)</td>
  3185. <td v-if="radio == 1" colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  3186. <td v-if="radio == 2" colspan="2">{{ item.fGrossweight }}</td>
  3187. <td v-if="radio == 1">本垛毛重(吨)</td>
  3188. <td v-if="radio == 2">本垛毛重(千克)</td>
  3189. <td v-if="radio == 1" colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  3190. <td v-if="radio == 2" colspan="2">{{ item.fGrossweight }}</td>
  3191. </tr>
  3192. <tr>
  3193. <td>本垛件数</td>
  3194. <td colspan="2">{{ item.fQty }}</td>
  3195. <td v-if="radio == 1">本垛净重(吨)</td>
  3196. <td v-if="radio == 2">本垛净重(千克)</td>
  3197. <td v-if="radio == 1" colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  3198. <td v-if="radio == 2" colspan="2">{{ item.fNetweight }}</td>
  3199. </tr>
  3200. <tr>
  3201. <td>入库日期</td>
  3202. <td colspan="2">{{ item.fBsdate }}</td>
  3203. <td>仓管员</td>
  3204. <td colspan="2">{{ form.createBy }}</td>
  3205. </tr>
  3206. <tr>
  3207. <td>出库日期</td>
  3208. <td>出库件数</td>
  3209. <td>剩余件数</td>
  3210. <td>出库仓管员</td>
  3211. <td>盘点日期</td>
  3212. <td>盘点人</td>
  3213. </tr>
  3214. <tr>
  3215. <td style="height: 20px"></td>
  3216. <td></td>
  3217. <td></td>
  3218. <td></td>
  3219. <td></td>
  3220. <td></td>
  3221. </tr>
  3222. <tr>
  3223. <td style="height: 20px"></td>
  3224. <td></td>
  3225. <td></td>
  3226. <td></td>
  3227. <td></td>
  3228. <td></td>
  3229. </tr>
  3230. <tr>
  3231. <td style="height: 20px"></td>
  3232. <td></td>
  3233. <td></td>
  3234. <td></td>
  3235. <td></td>
  3236. <td></td>
  3237. </tr>
  3238. <tr>
  3239. <td style="height: 20px"></td>
  3240. <td></td>
  3241. <td></td>
  3242. <td></td>
  3243. <td></td>
  3244. <td></td>
  3245. </tr>
  3246. <tr>
  3247. <td style="height: 20px"></td>
  3248. <td></td>
  3249. <td></td>
  3250. <td></td>
  3251. <td></td>
  3252. <td></td>
  3253. </tr>
  3254. <tr>
  3255. <td style="height: 20px"></td>
  3256. <td></td>
  3257. <td></td>
  3258. <td></td>
  3259. <td></td>
  3260. <td></td>
  3261. </tr>
  3262. <tr>
  3263. <td style="height: 20px"></td>
  3264. <td></td>
  3265. <td></td>
  3266. <td></td>
  3267. <td></td>
  3268. <td></td>
  3269. </tr>
  3270. <tr>
  3271. <td style="height: 20px"></td>
  3272. <td></td>
  3273. <td></td>
  3274. <td></td>
  3275. <td></td>
  3276. <td></td>
  3277. </tr>
  3278. <tr>
  3279. <td style="height: 20px"></td>
  3280. <td></td>
  3281. <td></td>
  3282. <td></td>
  3283. <td></td>
  3284. <td></td>
  3285. </tr>
  3286. <tr>
  3287. <td style="height: 20px"></td>
  3288. <td></td>
  3289. <td></td>
  3290. <td></td>
  3291. <td></td>
  3292. <td></td>
  3293. </tr>
  3294. <tr>
  3295. <td style="height: 20px"></td>
  3296. <td></td>
  3297. <td></td>
  3298. <td></td>
  3299. <td></td>
  3300. <td></td>
  3301. </tr>
  3302. <tr>
  3303. <td style="height: 20px"></td>
  3304. <td></td>
  3305. <td></td>
  3306. <td></td>
  3307. <td></td>
  3308. <td></td>
  3309. </tr>
  3310. <tr>
  3311. <td>备注:</td>
  3312. <td colspan="5">{{ form.remark }}</td>
  3313. </tr>
  3314. </table>
  3315. </div>
  3316. <div
  3317. style="display: flex; justify-content: space-between; font-size: 12px"
  3318. >
  3319. <!-- <div>操作:{{ form.createBy }}</div>-->
  3320. <div>库管:{{ form.fContacts }}</div>
  3321. <div style="width: 100px">叉车:</div>
  3322. </div>
  3323. </div>
  3324. <span slot="footer" class="dialog-footer">
  3325. <el-button
  3326. type="primary"
  3327. :disabled="browseStatus"
  3328. @click="
  3329. addprint('fxdkrkd');
  3330. print_fxdkrkd = false;
  3331. "
  3332. >打印
  3333. </el-button>
  3334. <el-button @click="print_fxdkrkd = false">取消 </el-button>
  3335. </span>
  3336. </el-dialog>
  3337. <el-dialog
  3338. :visible.sync="print_khrkd"
  3339. width="70%"
  3340. :close-on-click-modal="false"
  3341. :modal="false"
  3342. >
  3343. <el-radio v-model="radio" :label="1" @change="radioChange">吨(T)</el-radio>
  3344. <el-radio v-model="radio" :label="2" @change="radioChange">千克(KG)</el-radio>
  3345. <div id="print_area10" class="print-div">
  3346. <div
  3347. class="print-title"
  3348. style="
  3349. display: flex;
  3350. justify-content: center;
  3351. font-size: 24px;
  3352. margin-bottom: 5px;
  3353. "
  3354. >
  3355. {{ company }}
  3356. </div>
  3357. <div
  3358. style="
  3359. display: flex;
  3360. justify-content: center;
  3361. font-size: 18px;
  3362. margin-bottom: 5px;
  3363. "
  3364. >
  3365. <div>入&nbsp;库&nbsp;单</div>
  3366. </div>
  3367. <div
  3368. style="
  3369. display: flex;
  3370. justify-content: space-between;
  3371. margin-bottom: 5px;
  3372. "
  3373. class="print_form"
  3374. >
  3375. <div>客户名称:{{ form.fCorpidName }}</div>
  3376. <div>存货地点:{{ stockName }}</div>
  3377. </div>
  3378. <div class="print_table" style="display: flex">
  3379. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  3380. <tr>
  3381. <td>序号</td>
  3382. <td>实际入库日期</td>
  3383. <td>商品名称</td>
  3384. <td>提单号</td>
  3385. <td>箱号</td>
  3386. <td>件数</td>
  3387. <td v-if="radio == 1">毛重(吨)</td>
  3388. <td v-if="radio == 1">净重(吨)</td>
  3389. <td v-if="radio == 2">毛重(千克)</td>
  3390. <td v-if="radio == 2">净重(千克)</td>
  3391. <td>备注</td>
  3392. </tr>
  3393. <tr v-for="(item, index) in Printinglist" :key="index">
  3394. <td>{{ index + 1 }}</td>
  3395. <td>{{ item.fBsdate }}</td>
  3396. <td>{{ item.fGoodsids }}</td>
  3397. <td>{{ item.fMblno }}</td>
  3398. <td>{{ item.fCntrno }}</td>
  3399. <td>{{ item.fQty }}</td>
  3400. <td v-if="radio == 1">{{ (item.fGrossweight / 1000).toSuperFixed(4) }}</td>
  3401. <td v-if="radio == 1">{{ (item.fNetweight / 1000).toSuperFixed(4) }}</td>
  3402. <td v-if="radio == 2">{{ item.fGrossweight }}</td>
  3403. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  3404. <td>{{ item.remark }}</td>
  3405. </tr>
  3406. <tr>
  3407. <td>合计:</td>
  3408. <td></td>
  3409. <td></td>
  3410. <td></td>
  3411. <td></td>
  3412. <td>{{ allfQty.toFixed(0) }}</td>
  3413. <td v-if="radio == 1">{{ allfGrossweight.toSuperFixed(4) }}</td>
  3414. <td v-if="radio == 1">{{ allfNetweight.toSuperFixed(4) }}</td>
  3415. <td v-if="radio == 2">{{ allfGrossweight }}</td>
  3416. <td v-if="radio == 2">{{ allfNetweight }}</td>
  3417. <td></td>
  3418. </tr>
  3419. </table>
  3420. </div>
  3421. <div
  3422. style="display: flex; justify-content: space-between; font-size: 12px"
  3423. >
  3424. <!-- <div>操作:{{ form.createBy }}</div>-->
  3425. <div>库管:{{ form.fContacts }}</div>
  3426. <div style="width: 100px">叉车:</div>
  3427. </div>
  3428. </div>
  3429. <span slot="footer" class="dialog-footer">
  3430. <el-button
  3431. type="primary"
  3432. :disabled="browseStatus"
  3433. @click="
  3434. addprint('khrkd');
  3435. print_khrkd = false;
  3436. "
  3437. >打印
  3438. </el-button>
  3439. <el-button @click="print_khrkd = false">取消 </el-button>
  3440. </span>
  3441. </el-dialog>
  3442. <!-- <el-dialog-->
  3443. <!-- :visible.sync="print_xhcdrkd"-->
  3444. <!-- width="70%"-->
  3445. <!-- :close-on-click-modal="false"-->
  3446. <!-- :modal="false"-->
  3447. <!-- >-->
  3448. <!-- <div id="print_area11" class="print-div">-->
  3449. <!-- <div-->
  3450. <!-- class="print-title"-->
  3451. <!-- style="-->
  3452. <!-- display: flex;-->
  3453. <!-- justify-content: center;-->
  3454. <!-- font-size: 24px;-->
  3455. <!-- margin-bottom: 5px;-->
  3456. <!-- "-->
  3457. <!-- >-->
  3458. <!-- {{ company }}入库单-->
  3459. <!-- </div>-->
  3460. <!-- <div-->
  3461. <!-- style="-->
  3462. <!-- display: flex;-->
  3463. <!-- justify-content: space-between;-->
  3464. <!-- margin-bottom: 5px;-->
  3465. <!-- "-->
  3466. <!-- class="print_form"-->
  3467. <!-- >-->
  3468. <!-- <div>-->
  3469. <!-- <div>提单号:{{ form.fMblno }}</div>-->
  3470. <!-- <div>客户名称:{{ form.fCorpidName }}</div>-->
  3471. <!-- <div>货物名称:{{ form.fProductName }}</div>-->
  3472. <!-- <div>件数:{{ form.fPlanqty }}</div>-->
  3473. <!-- </div>-->
  3474. <!-- <div>-->
  3475. <!-- <div>系统编号:{{ form.fBillno }}</div>-->
  3476. <!-- <div>计划入库日期:{{ form.fBsdate }}</div>-->
  3477. <!-- <div>制单日期:{{ form.createTime }}</div>-->
  3478. <!-- <div>毛重:{{ (form.fPlangrossweight / 1000).toFixed(2) }}</div>-->
  3479. <!-- </div>-->
  3480. <!-- <div>-->
  3481. <!-- <div>清单号:{{ form.fCustomsdeclartion }}</div>-->
  3482. <!-- <div>存放仓库:{{ stockName }}</div>-->
  3483. <!-- <div>净重:{{ (form.fPlannetweight / 1000).toFixed(2) }}</div>-->
  3484. <!-- </div>-->
  3485. <!-- </div>-->
  3486. <!-- <div class="print_table" style="display: flex">-->
  3487. <!-- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">-->
  3488. <!-- <tr>-->
  3489. <!-- <td>箱号</td>-->
  3490. <!-- <td>铅封号</td>-->
  3491. <!-- <td>预计件数</td>-->
  3492. <!-- <td>实际件数</td>-->
  3493. <!-- <td>库位</td>-->
  3494. <!-- <td>实际入库日期</td>-->
  3495. <!-- <td>送货车号</td>-->
  3496. <!-- <td>送货司机</td>-->
  3497. <!-- <td>备注</td>-->
  3498. <!-- </tr>-->
  3499. <!-- <tr v-for="(item, index) in Printinglist" :key="index">-->
  3500. <!-- <td>{{ item.fCntrno }}</td>-->
  3501. <!-- <td>{{ item.fSealno }}</td>-->
  3502. <!-- <td>{{ form.fPlanqty }}</td>-->
  3503. <!-- <td>{{ item.fQty }}</td>-->
  3504. <!-- <td>{{ item.fWarehouseInformation }}</td>-->
  3505. <!-- <td>{{ item.fBsdate }}</td>-->
  3506. <!-- <td>{{ item.fTruckno }}</td>-->
  3507. <!-- <td>{{ item.fDriverName }}</td>-->
  3508. <!-- <td>{{ item.remark }}</td>-->
  3509. <!-- </tr>-->
  3510. <!-- <tr>-->
  3511. <!-- <td colspan="3">合计:</td>-->
  3512. <!-- <td>{{ allfQty }}</td>-->
  3513. <!-- <td></td>-->
  3514. <!-- <td></td>-->
  3515. <!-- <td></td>-->
  3516. <!-- <td></td>-->
  3517. <!-- <td></td>-->
  3518. <!-- </tr>-->
  3519. <!-- </table>-->
  3520. <!-- </div>-->
  3521. <!-- <div-->
  3522. <!-- style="display: flex; justify-content: space-between; font-size: 12px"-->
  3523. <!-- >-->
  3524. <!-- <div>操作:{{ form.createBy }}</div>-->
  3525. <!-- <div>库管:{{ form.fContacts }}</div>-->
  3526. <!-- <div style="width: 100px">叉车:</div>-->
  3527. <!-- </div>-->
  3528. <!-- </div>-->
  3529. <!-- <span slot="footer" class="dialog-footer">-->
  3530. <!-- <el-button-->
  3531. <!-- type="primary"-->
  3532. <!-- :disabled="browseStatus"-->
  3533. <!-- @click="-->
  3534. <!-- addprint('xhcdrkd');-->
  3535. <!-- print_xhcdrkd = false;-->
  3536. <!-- "-->
  3537. <!-- >打印-->
  3538. <!-- </el-button>-->
  3539. <!-- <el-button @click="print_xhcdrkd = false">取消 </el-button>-->
  3540. <!-- </span>-->
  3541. <!-- </el-dialog>-->
  3542. <el-dialog
  3543. :visible.sync="print_zpdkrkd"
  3544. width="70%"
  3545. :close-on-click-modal="false"
  3546. :modal="false"
  3547. >
  3548. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  3549. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  3550. <div id="print_area12" class="print-div">
  3551. <div
  3552. class="print-title"
  3553. style="
  3554. display: flex;
  3555. justify-content: center;
  3556. font-size: 24px;
  3557. margin-bottom: 5px;
  3558. "
  3559. >
  3560. {{ company }}货物标识卡
  3561. </div>
  3562. <div class="print_table" style="display: flex">
  3563. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  3564. <tr>
  3565. <td>货物名称</td>
  3566. <td colspan="2">{{ form.goodName }}</td>
  3567. <td>库位</td>
  3568. <td colspan="2">{{ stockName }}</td>
  3569. </tr>
  3570. <tr>
  3571. <td>提单号</td>
  3572. <td colspan="2">{{ form.fMblno }}</td>
  3573. <td>清单号</td>
  3574. <td colspan="2">{{ form.fCustomsdeclartion }}</td>
  3575. </tr>
  3576. <tr>
  3577. <td>箱号</td>
  3578. <td colspan="2"></td>
  3579. <td>总箱量</td>
  3580. <td colspan="2">{{ container }}</td>
  3581. </tr>
  3582. <tr>
  3583. <td>总件数</td>
  3584. <td colspan="2">{{ form.fPlanqty }}</td>
  3585. <td v-if="radio == 1">总净重(吨)</td>
  3586. <td v-if="radio == 2">总净重(千克)</td>
  3587. <td v-if="radio == 1" colspan="2">{{ (allfNetweight / 1000).toFixed(4) }}</td>
  3588. <td v-if="radio == 2" colspan="2">{{ allfNetweight }}</td>
  3589. </tr>
  3590. <tr>
  3591. <td v-if="radio == 1">总毛重(吨)</td>
  3592. <td v-if="radio == 2">总毛重(千克)</td>
  3593. <td v-if="radio == 1" colspan="2">{{ (allfGrossweight / 1000).toFixed(4) }}</td>
  3594. <td v-if="radio == 2" colspan="2">{{ allfGrossweight }}</td>
  3595. <td v-if="radio == 1">本垛毛重(吨)</td>
  3596. <td v-if="radio == 2">本垛毛重(千克)</td>
  3597. <td v-if="radio == 1" colspan="2">{{ (form.fPlangrossweight / 1000).toFixed(4) }}</td>
  3598. <td v-if="radio == 2" colspan="2">{{ form.fPlangrossweight }}</td>
  3599. </tr>
  3600. <tr>
  3601. <td>本垛件数</td>
  3602. <td colspan="2">{{ form.fPlanqty }}</td>
  3603. <td v-if="radio == 1">本垛净重(吨)</td>
  3604. <td v-if="radio == 2">本垛净重(千克)</td>
  3605. <td v-if="radio == 1" colspan="2">{{ (form.fPlannetweight / 1000).toFixed(4) }}</td>
  3606. <td v-if="radio == 2" colspan="2">{{ form.fPlannetweight }}</td>
  3607. </tr>
  3608. <tr>
  3609. <td>入库日期</td>
  3610. <td colspan="2">{{ form.fBsdate | fBsdateFormat }}</td>
  3611. <td>仓管员</td>
  3612. <td colspan="2">{{ form.createBy }}</td>
  3613. </tr>
  3614. <tr>
  3615. <td>出库日期</td>
  3616. <td>出库件数</td>
  3617. <td>剩余件数</td>
  3618. <td>出库仓管员</td>
  3619. <td>盘点日期</td>
  3620. <td>盘点人</td>
  3621. </tr>
  3622. <tr>
  3623. <td style="height: 20px"></td>
  3624. <td></td>
  3625. <td></td>
  3626. <td></td>
  3627. <td></td>
  3628. <td></td>
  3629. </tr>
  3630. <tr>
  3631. <td style="height: 20px"></td>
  3632. <td></td>
  3633. <td></td>
  3634. <td></td>
  3635. <td></td>
  3636. <td></td>
  3637. </tr>
  3638. <tr>
  3639. <td style="height: 20px"></td>
  3640. <td></td>
  3641. <td></td>
  3642. <td></td>
  3643. <td></td>
  3644. <td></td>
  3645. </tr>
  3646. <tr>
  3647. <td style="height: 20px"></td>
  3648. <td></td>
  3649. <td></td>
  3650. <td></td>
  3651. <td></td>
  3652. <td></td>
  3653. </tr>
  3654. <tr>
  3655. <td style="height: 20px"></td>
  3656. <td></td>
  3657. <td></td>
  3658. <td></td>
  3659. <td></td>
  3660. <td></td>
  3661. </tr>
  3662. <tr>
  3663. <td style="height: 20px"></td>
  3664. <td></td>
  3665. <td></td>
  3666. <td></td>
  3667. <td></td>
  3668. <td></td>
  3669. </tr>
  3670. <tr>
  3671. <td style="height: 20px"></td>
  3672. <td></td>
  3673. <td></td>
  3674. <td></td>
  3675. <td></td>
  3676. <td></td>
  3677. </tr>
  3678. <tr>
  3679. <td style="height: 20px"></td>
  3680. <td></td>
  3681. <td></td>
  3682. <td></td>
  3683. <td></td>
  3684. <td></td>
  3685. </tr>
  3686. <tr>
  3687. <td style="height: 20px"></td>
  3688. <td></td>
  3689. <td></td>
  3690. <td></td>
  3691. <td></td>
  3692. <td></td>
  3693. </tr>
  3694. <tr>
  3695. <td style="height: 20px"></td>
  3696. <td></td>
  3697. <td></td>
  3698. <td></td>
  3699. <td></td>
  3700. <td></td>
  3701. </tr>
  3702. <tr>
  3703. <td style="height: 20px"></td>
  3704. <td></td>
  3705. <td></td>
  3706. <td></td>
  3707. <td></td>
  3708. <td></td>
  3709. </tr>
  3710. <tr>
  3711. <td style="height: 20px"></td>
  3712. <td></td>
  3713. <td></td>
  3714. <td></td>
  3715. <td></td>
  3716. <td></td>
  3717. </tr>
  3718. <tr>
  3719. <td>备注:</td>
  3720. <td colspan="5">{{ form.remark }}</td>
  3721. </tr>
  3722. </table>
  3723. </div>
  3724. <div
  3725. style="display: flex; justify-content: space-between; font-size: 12px"
  3726. >
  3727. <!-- <div>操作:{{ form.createBy }}</div>-->
  3728. <div>库管:{{ form.fContacts }}</div>
  3729. <div style="width: 100px">叉车:</div>
  3730. </div>
  3731. </div>
  3732. <span slot="footer" class="dialog-footer">
  3733. <el-button
  3734. type="primary"
  3735. :disabled="browseStatus"
  3736. @click="
  3737. addprint('zpdkrkd');
  3738. print_zpdkrkd = false;
  3739. "
  3740. >打印
  3741. </el-button>
  3742. <el-button @click="print_zpdkrkd = false">取消 </el-button>
  3743. </span>
  3744. </el-dialog>
  3745. <el-dialog
  3746. :visible.sync="print_ccdzrkd"
  3747. width="70%"
  3748. :close-on-click-modal="false"
  3749. :modal="false"
  3750. >
  3751. <div id="print_area8" class="print-div">
  3752. <div
  3753. class="print-title"
  3754. style="
  3755. display: flex;
  3756. justify-content: center;
  3757. font-size: 24px;
  3758. margin-bottom: 5px;
  3759. "
  3760. >
  3761. {{ company }}
  3762. </div>
  3763. <div style="display:flex;flex-direction: column;margin-left: 70%">
  3764. <div>{{ form.fBillno }}</div>
  3765. <div>存货地点:{{ stockName }}</div>
  3766. </div>
  3767. <div class="print_table" style="display: flex">
  3768. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  3769. <tr>
  3770. <td>品名</td>
  3771. <td colspan="3">{{ form.goodName }}</td>
  3772. <td colspan="2">清单号</td>
  3773. <td colspan="3">{{ form.fCustomsdeclartion }}</td>
  3774. </tr>
  3775. <tr>
  3776. <td class="oneHundredSix" style="width: 160px;">入库日期</td>
  3777. <td class="twoHundred" style="width: 200px;">箱号</td>
  3778. <td>铅封号</td>
  3779. <td>预计件数</td>
  3780. <td>垛位</td>
  3781. <td>实收件数</td>
  3782. <td class="oneHundred" style="width: 100px;">实收净重(吨)</td>
  3783. <td class="oneHundred" style="width: 100px;">毛重(吨)</td>
  3784. <td class="twoHundred" style="width: 200px;">备注</td>
  3785. </tr>
  3786. <tr v-for="(item, index) in Printinglist" :key="index">
  3787. <td>{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>
  3788. <td>{{ item.fCntrno }}</td>
  3789. <td>{{ item.fSealno }}</td>
  3790. <td>{{ item.fQty }}</td>
  3791. <td>{{ item.fWarehouseInformation }}</td>
  3792. <td>{{ item.fQty }}</td>
  3793. <td>{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  3794. <td>{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  3795. <td>{{ item.remark }}</td>
  3796. </tr>
  3797. <tr>
  3798. <td>合计:</td>
  3799. <td></td>
  3800. <td></td>
  3801. <td></td>
  3802. <td></td>
  3803. <td>{{ allfQty.toFixed(0) }}</td>
  3804. <td>{{ (allfNetweight / 1000).toFixed(4) }}</td>
  3805. <td>{{ (allfGrossweight / 1000).toFixed(4) }}</td>
  3806. <td></td>
  3807. </tr>
  3808. </table>
  3809. </div>
  3810. <div
  3811. style="display: flex; justify-content: space-between; font-size: 12px"
  3812. >
  3813. <!-- <div>操作:{{ form.createBy }}</div>-->
  3814. <div>库管:{{ form.fContacts }}</div>
  3815. <div style="width: 100px">叉车:</div>
  3816. </div>
  3817. </div>
  3818. <span slot="footer" class="dialog-footer">
  3819. <el-button
  3820. type="primary"
  3821. :disabled="browseStatus"
  3822. @click="
  3823. addprint('ccdzrkd');
  3824. print_ccdzrkd = false;
  3825. "
  3826. >打印
  3827. </el-button>
  3828. <el-button @click="print_ccdzrkd = false">取消 </el-button>
  3829. </span>
  3830. </el-dialog>
  3831. <el-dialog
  3832. :visible.sync="print_fxdkrkd"
  3833. width="70%"
  3834. :close-on-click-modal="false"
  3835. :modal="false"
  3836. >
  3837. <div id="print_area9" class="print-div">
  3838. <div
  3839. class="print-title"
  3840. style="
  3841. display: flex;
  3842. justify-content: center;
  3843. font-size: 24px;
  3844. margin-bottom: 5px;
  3845. "
  3846. >
  3847. {{ company }}货物标识卡
  3848. </div>
  3849. <div class="print_table" style="display: flex">
  3850. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%" v-for="(item, index) in Printinglist"
  3851. :key="index">
  3852. <tr>
  3853. <td>货物名称</td>
  3854. <td colspan="2">{{ form.goodName }}</td>
  3855. <td>库位</td>
  3856. <td colspan="2">{{ form.fWarehouseInformation }}</td>
  3857. </tr>
  3858. <tr>
  3859. <td>提单号</td>
  3860. <td colspan="2">{{ form.fMblno }}</td>
  3861. <td>清单号</td>
  3862. <td colspan="2">{{ form.fCustomsdeclartion }}</td>
  3863. </tr>
  3864. <tr>
  3865. <td>箱号</td>
  3866. <td colspan="2">{{ item.fCntrno }}</td>
  3867. <td>总箱量</td>
  3868. <td colspan="2">{{ item.fCntqty }}</td>
  3869. </tr>
  3870. <tr>
  3871. <td>总件数</td>
  3872. <td colspan="2">{{ item.fQty }}</td>
  3873. <td>总净重</td>
  3874. <td colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  3875. </tr>
  3876. <tr>
  3877. <td>总毛重</td>
  3878. <td colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  3879. <td>本垛毛重</td>
  3880. <td colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  3881. </tr>
  3882. <tr>
  3883. <td>本垛件数</td>
  3884. <td colspan="2">{{ item.fQty }}</td>
  3885. <td>本垛净重</td>
  3886. <td colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  3887. </tr>
  3888. <tr>
  3889. <td>入库日期</td>
  3890. <td colspan="2">{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>
  3891. <td>仓管员</td>
  3892. <td colspan="2">{{ form.createBy }}</td>
  3893. </tr>
  3894. <tr>
  3895. <td>出库日期</td>
  3896. <td>出库件数</td>
  3897. <td>剩余件数</td>
  3898. <td>出库仓管员</td>
  3899. <td>盘点日期</td>
  3900. <td>盘点人</td>
  3901. </tr>
  3902. <tr>
  3903. <td style="height:20px"></td>
  3904. <td></td>
  3905. <td></td>
  3906. <td></td>
  3907. <td></td>
  3908. <td></td>
  3909. </tr>
  3910. <tr>
  3911. <td style="height:20px"></td>
  3912. <td></td>
  3913. <td></td>
  3914. <td></td>
  3915. <td></td>
  3916. <td></td>
  3917. </tr>
  3918. <tr>
  3919. <td style="height:20px"></td>
  3920. <td></td>
  3921. <td></td>
  3922. <td></td>
  3923. <td></td>
  3924. <td></td>
  3925. </tr>
  3926. <tr>
  3927. <td style="height:20px"></td>
  3928. <td></td>
  3929. <td></td>
  3930. <td></td>
  3931. <td></td>
  3932. <td></td>
  3933. </tr>
  3934. <tr>
  3935. <td style="height:20px"></td>
  3936. <td></td>
  3937. <td></td>
  3938. <td></td>
  3939. <td></td>
  3940. <td></td>
  3941. </tr>
  3942. <tr>
  3943. <td style="height:20px"></td>
  3944. <td></td>
  3945. <td></td>
  3946. <td></td>
  3947. <td></td>
  3948. <td></td>
  3949. </tr>
  3950. <tr>
  3951. <td style="height:20px"></td>
  3952. <td></td>
  3953. <td></td>
  3954. <td></td>
  3955. <td></td>
  3956. <td></td>
  3957. </tr>
  3958. <tr>
  3959. <td style="height:20px"></td>
  3960. <td></td>
  3961. <td></td>
  3962. <td></td>
  3963. <td></td>
  3964. <td></td>
  3965. </tr>
  3966. <tr>
  3967. <td style="height:20px"></td>
  3968. <td></td>
  3969. <td></td>
  3970. <td></td>
  3971. <td></td>
  3972. <td></td>
  3973. </tr>
  3974. <tr>
  3975. <td style="height:20px"></td>
  3976. <td></td>
  3977. <td></td>
  3978. <td></td>
  3979. <td></td>
  3980. <td></td>
  3981. </tr>
  3982. <tr>
  3983. <td style="height:20px"></td>
  3984. <td></td>
  3985. <td></td>
  3986. <td></td>
  3987. <td></td>
  3988. <td></td>
  3989. </tr>
  3990. <tr>
  3991. <td style="height:20px"></td>
  3992. <td></td>
  3993. <td></td>
  3994. <td></td>
  3995. <td></td>
  3996. <td></td>
  3997. </tr>
  3998. <tr>
  3999. <td>备注:</td>
  4000. <td colspan="5">{{ form.remark }}</td>
  4001. </tr>
  4002. </table>
  4003. </div>
  4004. <div
  4005. style="display: flex; justify-content: space-between; font-size: 12px"
  4006. >
  4007. <!-- <div>操作:{{ form.createBy }}</div>-->
  4008. <div>库管:{{ form.fContacts }}</div>
  4009. <div style="width: 100px">叉车:</div>
  4010. </div>
  4011. </div>
  4012. <span slot="footer" class="dialog-footer">
  4013. <el-button
  4014. type="primary"
  4015. :disabled="browseStatus"
  4016. @click="
  4017. addprint('fxdkrkd');
  4018. print_fxdkrkd = false;
  4019. "
  4020. >打印
  4021. </el-button>
  4022. <el-button @click="print_fxdkrkd = false">取消 </el-button>
  4023. </span>
  4024. </el-dialog>
  4025. <el-dialog
  4026. :visible.sync="print_khrkd"
  4027. width="70%"
  4028. :close-on-click-modal="false"
  4029. :modal="false"
  4030. >
  4031. <div id="print_area10" class="print-div">
  4032. <div
  4033. class="print-title"
  4034. style="
  4035. display: flex;
  4036. justify-content: center;
  4037. font-size: 24px;
  4038. margin-bottom: 5px;
  4039. "
  4040. >
  4041. {{ company }}
  4042. </div>
  4043. <div
  4044. style="
  4045. display: flex;
  4046. justify-content: center;
  4047. font-size: 18px;
  4048. margin-bottom: 5px;
  4049. "
  4050. >
  4051. <div>入&nbsp;库&nbsp;单</div>
  4052. </div>
  4053. <div
  4054. style="
  4055. display: flex;
  4056. justify-content: space-between;
  4057. margin-bottom: 5px;
  4058. "
  4059. class="print_form"
  4060. >
  4061. <div>客户名称:{{ form.fCorpidName }}</div>
  4062. <div>存货地点:{{ stockName }}</div>
  4063. </div>
  4064. <div class="print_table" style="display: flex">
  4065. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  4066. <tr>
  4067. <td>序号</td>
  4068. <td>实际入库日期</td>
  4069. <td>商品名称</td>
  4070. <td>提单号</td>
  4071. <td>箱号</td>
  4072. <td>件数</td>
  4073. <td>毛重(吨)</td>
  4074. <td>净重(吨)</td>
  4075. <td>备注</td>
  4076. </tr>
  4077. <tr v-for="(item, index) in Printinglist" :key="index">
  4078. <td>{{ index + 1 }}</td>
  4079. <td>{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>
  4080. <td>{{ item.fGoodsids }}</td>
  4081. <td>{{ item.fMblno }}</td>
  4082. <td>{{ item.fCntrno }}</td>
  4083. <td>{{ item.fQty }}</td>
  4084. <td>{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  4085. <td>{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  4086. <td>{{ item.remark }}</td>
  4087. </tr>
  4088. <tr>
  4089. <td>合计:</td>
  4090. <td></td>
  4091. <td></td>
  4092. <td></td>
  4093. <td></td>
  4094. <td>{{ allfQty.toFixed(0) }}</td>
  4095. <td>{{ (allfGrossweight / 1000).toFixed(4) }}</td>
  4096. <td>{{ (allfNetweight / 1000).toFixed(4) }}</td>
  4097. <td></td>
  4098. </tr>
  4099. </table>
  4100. </div>
  4101. <div
  4102. style="display: flex; justify-content: space-between; font-size: 12px"
  4103. >
  4104. <!-- <div>操作:{{ form.createBy }}</div>-->
  4105. <div>库管:{{ form.fContacts }}</div>
  4106. <div style="width: 100px">叉车:</div>
  4107. </div>
  4108. </div>
  4109. <span slot="footer" class="dialog-footer">
  4110. <el-button
  4111. type="primary"
  4112. :disabled="browseStatus"
  4113. @click="
  4114. addprint('khrkd');
  4115. print_khrkd = false;
  4116. "
  4117. >打印
  4118. </el-button>
  4119. <el-button @click="print_khrkd = false">取消 </el-button>
  4120. </span>
  4121. </el-dialog>
  4122. <!-- <el-dialog-->
  4123. <!-- :visible.sync="print_xhcdrkd"-->
  4124. <!-- width="70%"-->
  4125. <!-- :close-on-click-modal="false"-->
  4126. <!-- :modal="false"-->
  4127. <!-- >-->
  4128. <!-- <div id="print_area11" class="print-div">-->
  4129. <!-- <div-->
  4130. <!-- class="print-title"-->
  4131. <!-- style="-->
  4132. <!-- display: flex;-->
  4133. <!-- justify-content: center;-->
  4134. <!-- font-size: 24px;-->
  4135. <!-- margin-bottom: 5px;-->
  4136. <!-- "-->
  4137. <!-- >-->
  4138. <!-- {{ company }}入库单-->
  4139. <!-- </div>-->
  4140. <!-- <div-->
  4141. <!-- style="-->
  4142. <!-- display: flex;-->
  4143. <!-- justify-content: space-between;-->
  4144. <!-- margin-bottom: 5px;-->
  4145. <!-- "-->
  4146. <!-- class="print_form"-->
  4147. <!-- >-->
  4148. <!-- <div>-->
  4149. <!-- <div>提单号:{{ form.fMblno }}</div>-->
  4150. <!-- <div>客户名称:{{ form.fCorpidName }}</div>-->
  4151. <!-- <div>货物名称:{{ form.fProductName }}</div>-->
  4152. <!-- <div>件数:{{ form.fPlanqty }}</div>-->
  4153. <!-- </div>-->
  4154. <!-- <div>-->
  4155. <!-- <div>系统编号:{{ form.fBillno }}</div>-->
  4156. <!-- <div>计划入库日期:{{ form.fBsdate }}&nbsp;{{ timeOut }}</div>-->
  4157. <!-- <div>制单日期:{{ form.createTime }}</div>-->
  4158. <!-- <div>毛重:{{(form.fPlangrossweight/1000).toFixed(2)}}</div>-->
  4159. <!-- </div>-->
  4160. <!-- <div>-->
  4161. <!-- <div>清单号:{{ form.fCustomsdeclartion }}</div>-->
  4162. <!-- <div>存放仓库:{{ stockName }}</div>-->
  4163. <!-- <div>净重:{{(form.fPlannetweight/1000).toFixed(2)}}</div>-->
  4164. <!-- </div>-->
  4165. <!-- </div>-->
  4166. <!-- <div class="print_table" style="display: flex">-->
  4167. <!-- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">-->
  4168. <!-- <tr>-->
  4169. <!-- <td>品名</td>-->
  4170. <!-- <td colspan="3">{{ form.fProductName }}</td>-->
  4171. <!-- <td colspan="3">清单号</td>-->
  4172. <!-- <td colspan="2">{{ form.fCustomno }}</td>-->
  4173. <!-- </tr>-->
  4174. <!-- <tr>-->
  4175. <!-- <td>提单号</td>-->
  4176. <!-- <td colspan="8">{{ form.fMblno }}</td>-->
  4177. <!-- </tr>-->
  4178. <!-- <tr>-->
  4179. <!-- <td>入库日期</td>-->
  4180. <!-- <td>箱号</td>-->
  4181. <!-- <td>铅封号</td>-->
  4182. <!-- <td>预计件数</td>-->
  4183. <!-- <td>垛位</td>-->
  4184. <!-- <td>实收件数</td>-->
  4185. <!-- <td>实收净重(吨)</td>-->
  4186. <!-- <td>毛重(吨)</td>-->
  4187. <!-- <td>备注</td>-->
  4188. <!-- </tr>-->
  4189. <!-- <tr v-for="(item, index) in Printinglist" :key="index">-->
  4190. <!-- <td>{{ item.fChargedate }}</td>-->
  4191. <!-- <td>{{ item.fCntrno }}</td>-->
  4192. <!-- <td></td>-->
  4193. <!-- <td>{{ item.fQty }}</td>-->
  4194. <!-- <td>{{ item.fWarehouseInformation }}</td>-->
  4195. <!-- <td></td>-->
  4196. <!-- <td></td>-->
  4197. <!-- <td></td>-->
  4198. <!-- <td>{{ item.remark }}</td>-->
  4199. <!-- </tr>-->
  4200. <!-- </table>-->
  4201. <!-- </div>-->
  4202. <!-- <div-->
  4203. <!-- style="display: flex; justify-content: space-between; font-size: 12px"-->
  4204. <!-- >-->
  4205. <!-- <div>库管:{{ form.fContacts }}</div>-->
  4206. <!-- <div style="width: 100px">叉车:</div>-->
  4207. <!-- </div>-->
  4208. <!-- </div>-->
  4209. <!-- <span slot="footer" class="dialog-footer">-->
  4210. <!-- <el-button-->
  4211. <!-- type="primary"-->
  4212. <!-- @click="-->
  4213. <!-- addprint('lwqr');-->
  4214. <!-- print_lwqr = false;-->
  4215. <!-- "-->
  4216. <!-- >打印-->
  4217. <!-- </el-button>-->
  4218. <!-- <el-button @click="print_lwqr = false">取消 </el-button>-->
  4219. <!-- </span>-->
  4220. <!-- </el-dialog>-->
  4221. <el-dialog
  4222. :visible.sync="print_dpxx"
  4223. width="70%"
  4224. :close-on-click-modal="false"
  4225. :modal="false"
  4226. >
  4227. <div id="print_area13" class="print-div">
  4228. <div
  4229. class="print-title"
  4230. style="
  4231. display: flex;
  4232. justify-content: center;
  4233. font-size: 24px;
  4234. margin-bottom: 5px;
  4235. "
  4236. >
  4237. {{ company }}货物标识卡
  4238. </div>
  4239. <div
  4240. style="
  4241. display: flex;
  4242. justify-content: center;
  4243. font-size: 18px;
  4244. margin-bottom: 5px;
  4245. "
  4246. >
  4247. <div>入&nbsp;库&nbsp;计&nbsp;划&nbsp;单</div>
  4248. </div>
  4249. <div class="print_table" style="display: flex">
  4250. <table
  4251. border="0"
  4252. cellspacing="0"
  4253. cellpadding="0"
  4254. style="width: 100%; line-height: 30px"
  4255. >
  4256. <tr>
  4257. <td>货物名称</td>
  4258. <td colspan="2">{{ form.fProductName }}</td>
  4259. <td>库位</td>
  4260. <td colspan="2">{{ stockName }}</td>
  4261. </tr>
  4262. <tr>
  4263. <td>提单号</td>
  4264. <td colspan="2">{{ form.fMblno }}</td>
  4265. <td>清单号</td>
  4266. <td colspan="2">{{ form.fCustomno }}</td>
  4267. </tr>
  4268. <tr>
  4269. <td>箱号</td>
  4270. <td colspan="2"></td>
  4271. <td>总箱量</td>
  4272. <td colspan="2"></td>
  4273. </tr>
  4274. <tr>
  4275. <td>总件数</td>
  4276. <td colspan="2">{{ form.fPlanqty }}</td>
  4277. <td>总净重</td>
  4278. <td colspan="2">{{ form.fPlannetweight }}</td>
  4279. </tr>
  4280. <tr>
  4281. <td>总毛重</td>
  4282. <td colspan="2">{{ form.fPlangrossweight }}</td>
  4283. <td>本垛件数</td>
  4284. <td colspan="2">{{ allfQty }}</td>
  4285. </tr>
  4286. <tr>
  4287. <td>本垛净重</td>
  4288. <td colspan="2">{{ allfGrossweight }}</td>
  4289. <td>本垛毛重</td>
  4290. <td colspan="2">{{ allfNetweight }}</td>
  4291. </tr>
  4292. <tr>
  4293. <td>入库日期</td>
  4294. <td colspan="2">{{ form.fBstime }}</td>
  4295. <td>仓管员</td>
  4296. <td colspan="2">{{ form.fContacts }}</td>
  4297. </tr>
  4298. <tr>
  4299. <td>出库日期</td>
  4300. <td>出库件数</td>
  4301. <td>剩余件数</td>
  4302. <td>出库仓管员</td>
  4303. <td>盘点日期</td>
  4304. <td>盘点人</td>
  4305. </tr>
  4306. <tr style="height: 17.8px" v-for="(item, index) in 10" :key="index">
  4307. <td></td>
  4308. <td></td>
  4309. <td></td>
  4310. <td></td>
  4311. <td></td>
  4312. <td></td>
  4313. </tr>
  4314. <tr style="height: 50px">
  4315. <td>备注</td>
  4316. <td colspan="5"></td>
  4317. </tr>
  4318. </table>
  4319. </div>
  4320. </div>
  4321. <span slot="footer" class="dialog-footer">
  4322. <el-button
  4323. type="primary"
  4324. @click="
  4325. addprint('dpxx');
  4326. print_dpxx = false;
  4327. "
  4328. >打印
  4329. </el-button>
  4330. <el-button @click="print_dpxx = false">取消 </el-button>
  4331. </span>
  4332. </el-dialog>
  4333. <el-dialog
  4334. :visible.sync="print_fxdkrkd"
  4335. width="70%"
  4336. :close-on-click-modal="false"
  4337. :modal="false"
  4338. >
  4339. <div id="print_area9" class="print-div">
  4340. <div
  4341. class="print-title"
  4342. style="
  4343. display: flex;
  4344. justify-content: center;
  4345. font-size: 24px;
  4346. margin-bottom: 5px;
  4347. "
  4348. >
  4349. {{ company }}货物标识卡
  4350. </div>
  4351. <div class="print_table" style="display: flex">
  4352. <table
  4353. border="0"
  4354. cellspacing="0"
  4355. cellpadding="0"
  4356. style="width: 100%"
  4357. v-for="(item, index) in Printinglist"
  4358. :key="index"
  4359. >
  4360. <tr>
  4361. <td>货物名称</td>
  4362. <td colspan="2">{{ form.goodName }}</td>
  4363. <td>库位</td>
  4364. <td colspan="2">{{ form.fWarehouseInformation }}</td>
  4365. </tr>
  4366. <tr>
  4367. <td>提单号</td>
  4368. <td colspan="2">{{ form.fMblno }}</td>
  4369. <td>清单号</td>
  4370. <td colspan="2">{{ form.fCustomsdeclartion }}</td>
  4371. </tr>
  4372. <tr>
  4373. <td>箱号</td>
  4374. <td colspan="2">{{ item.fCntrno }}</td>
  4375. <td>总箱量</td>
  4376. <td colspan="2">{{ item.fCntqty }}</td>
  4377. </tr>
  4378. <tr>
  4379. <td>总件数</td>
  4380. <td colspan="2">{{ item.fQty }}</td>
  4381. <td>总净重</td>
  4382. <td colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  4383. </tr>
  4384. <tr>
  4385. <td>总毛重</td>
  4386. <td colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  4387. <td>本垛毛重</td>
  4388. <td colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  4389. </tr>
  4390. <tr>
  4391. <td>本垛件数</td>
  4392. <td colspan="2">{{ item.fQty }}</td>
  4393. <td>本垛净重</td>
  4394. <td colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  4395. </tr>
  4396. <tr>
  4397. <td>入库日期</td>
  4398. <td colspan="2">{{ item.fBsdate }}</td>
  4399. <td>仓管员</td>
  4400. <td colspan="2">{{ form.createBy }}</td>
  4401. </tr>
  4402. <tr>
  4403. <td>出库日期</td>
  4404. <td>出库件数</td>
  4405. <td>剩余件数</td>
  4406. <td>出库仓管员</td>
  4407. <td>盘点日期</td>
  4408. <td>盘点人</td>
  4409. </tr>
  4410. <tr>
  4411. <td style="height: 20px"></td>
  4412. <td></td>
  4413. <td></td>
  4414. <td></td>
  4415. <td></td>
  4416. <td></td>
  4417. </tr>
  4418. <tr>
  4419. <td style="height: 20px"></td>
  4420. <td></td>
  4421. <td></td>
  4422. <td></td>
  4423. <td></td>
  4424. <td></td>
  4425. </tr>
  4426. <tr>
  4427. <td style="height: 20px"></td>
  4428. <td></td>
  4429. <td></td>
  4430. <td></td>
  4431. <td></td>
  4432. <td></td>
  4433. </tr>
  4434. <tr>
  4435. <td style="height: 20px"></td>
  4436. <td></td>
  4437. <td></td>
  4438. <td></td>
  4439. <td></td>
  4440. <td></td>
  4441. </tr>
  4442. <tr>
  4443. <td style="height: 20px"></td>
  4444. <td></td>
  4445. <td></td>
  4446. <td></td>
  4447. <td></td>
  4448. <td></td>
  4449. </tr>
  4450. <tr>
  4451. <td style="height: 20px"></td>
  4452. <td></td>
  4453. <td></td>
  4454. <td></td>
  4455. <td></td>
  4456. <td></td>
  4457. </tr>
  4458. <tr>
  4459. <td style="height: 20px"></td>
  4460. <td></td>
  4461. <td></td>
  4462. <td></td>
  4463. <td></td>
  4464. <td></td>
  4465. </tr>
  4466. <tr>
  4467. <td style="height: 20px"></td>
  4468. <td></td>
  4469. <td></td>
  4470. <td></td>
  4471. <td></td>
  4472. <td></td>
  4473. </tr>
  4474. <tr>
  4475. <td style="height: 20px"></td>
  4476. <td></td>
  4477. <td></td>
  4478. <td></td>
  4479. <td></td>
  4480. <td></td>
  4481. </tr>
  4482. <tr>
  4483. <td style="height: 20px"></td>
  4484. <td></td>
  4485. <td></td>
  4486. <td></td>
  4487. <td></td>
  4488. <td></td>
  4489. </tr>
  4490. <tr>
  4491. <td style="height: 20px"></td>
  4492. <td></td>
  4493. <td></td>
  4494. <td></td>
  4495. <td></td>
  4496. <td></td>
  4497. </tr>
  4498. <tr>
  4499. <td style="height: 20px"></td>
  4500. <td></td>
  4501. <td></td>
  4502. <td></td>
  4503. <td></td>
  4504. <td></td>
  4505. </tr>
  4506. <tr>
  4507. <td>备注:</td>
  4508. <td colspan="5">{{ form.remark }}</td>
  4509. </tr>
  4510. </table>
  4511. </div>
  4512. <div
  4513. style="display: flex; justify-content: space-between; font-size: 12px"
  4514. >
  4515. <!-- <div>操作:{{ form.createBy }}</div>-->
  4516. <div>库管:{{ form.fContacts }}</div>
  4517. <div style="width: 100px">叉车:</div>
  4518. </div>
  4519. </div>
  4520. <span slot="footer" class="dialog-footer">
  4521. <el-button
  4522. type="primary"
  4523. :disabled="browseStatus"
  4524. @click="
  4525. addprint('fxdkrkd');
  4526. print_fxdkrkd = false;
  4527. "
  4528. >打印
  4529. </el-button>
  4530. <el-button @click="print_fxdkrkd = false">取消 </el-button>
  4531. </span>
  4532. </el-dialog>
  4533. <el-dialog
  4534. :visible.sync="print_khrkd"
  4535. width="70%"
  4536. :close-on-click-modal="false"
  4537. :modal="false"
  4538. >
  4539. <div id="print_area10" class="print-div">
  4540. <div
  4541. class="print-title"
  4542. style="
  4543. display: flex;
  4544. justify-content: center;
  4545. font-size: 24px;
  4546. margin-bottom: 5px;
  4547. "
  4548. >
  4549. {{ company }}
  4550. </div>
  4551. <div
  4552. style="
  4553. display: flex;
  4554. justify-content: center;
  4555. font-size: 18px;
  4556. margin-bottom: 5px;
  4557. "
  4558. >
  4559. <div>入&nbsp;库&nbsp;单</div>
  4560. </div>
  4561. <div
  4562. style="
  4563. display: flex;
  4564. justify-content: space-between;
  4565. margin-bottom: 5px;
  4566. "
  4567. class="print_form"
  4568. >
  4569. <div>客户名称:{{ form.fCorpidName }}</div>
  4570. <div>存货地点:{{ stockName }}</div>
  4571. </div>
  4572. <div class="print_table" style="display: flex">
  4573. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  4574. <tr>
  4575. <td>序号</td>
  4576. <td>实际入库日期</td>
  4577. <td>商品名称</td>
  4578. <td>提单号</td>
  4579. <td>箱号</td>
  4580. <td>件数</td>
  4581. <td>毛重(吨)</td>
  4582. <td>净重(吨)</td>
  4583. <td>备注</td>
  4584. </tr>
  4585. <tr v-for="(item, index) in Printinglist" :key="index">
  4586. <td>{{ index + 1 }}</td>
  4587. <td>{{ item.fBsdate }}</td>
  4588. <td>{{ item.fGoodsids }}</td>
  4589. <td>{{ item.fMblno }}</td>
  4590. <td>{{ item.fCntrno }}</td>
  4591. <td>{{ item.fQty }}</td>
  4592. <td>{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  4593. <td>{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  4594. <td>{{ item.remark }}</td>
  4595. </tr>
  4596. <tr>
  4597. <td>合计:</td>
  4598. <td></td>
  4599. <td></td>
  4600. <td></td>
  4601. <td></td>
  4602. <td>{{ allfQty.toFixed(0) }}</td>
  4603. <td>{{ (allfNetweight / 1000).toSuperFixed(4) }}</td>
  4604. <td>{{ (allfGrossweight / 1000).toSuperFixed(4) }}</td>
  4605. <td></td>
  4606. </tr>
  4607. </table>
  4608. </div>
  4609. <div
  4610. style="display: flex; justify-content: space-between; font-size: 12px"
  4611. >
  4612. <!-- <div>操作:{{ form.createBy }}</div>-->
  4613. <div>库管:{{ form.fContacts }}</div>
  4614. <div style="width: 100px">叉车:</div>
  4615. </div>
  4616. </div>
  4617. <span slot="footer" class="dialog-footer">
  4618. <el-button
  4619. type="primary"
  4620. :disabled="browseStatus"
  4621. @click="
  4622. addprint('khrkd');
  4623. print_khrkd = false;
  4624. "
  4625. >打印
  4626. </el-button>
  4627. <el-button @click="print_khrkd = false">取消 </el-button>
  4628. </span>
  4629. </el-dialog>
  4630. <!-- <el-dialog-->
  4631. <!-- :visible.sync="print_xhcdrkd"-->
  4632. <!-- width="70%"-->
  4633. <!-- :close-on-click-modal="false"-->
  4634. <!-- :modal="false"-->
  4635. <!-- >-->
  4636. <!-- <div id="print_area11" class="print-div">-->
  4637. <!-- <div-->
  4638. <!-- class="print-title"-->
  4639. <!-- style="-->
  4640. <!-- display: flex;-->
  4641. <!-- justify-content: center;-->
  4642. <!-- font-size: 24px;-->
  4643. <!-- margin-bottom: 5px;-->
  4644. <!-- "-->
  4645. <!-- >-->
  4646. <!-- {{ company }}入库单-->
  4647. <!-- </div>-->
  4648. <!-- <div-->
  4649. <!-- style="-->
  4650. <!-- display: flex;-->
  4651. <!-- justify-content: space-between;-->
  4652. <!-- margin-bottom: 5px;-->
  4653. <!-- "-->
  4654. <!-- class="print_form"-->
  4655. <!-- >-->
  4656. <!-- <div>-->
  4657. <!-- <div>提单号:{{ form.fMblno }}</div>-->
  4658. <!-- <div>客户名称:{{ form.fCorpidName }}</div>-->
  4659. <!-- <div>货物名称:{{ form.fProductName }}</div>-->
  4660. <!-- <div>件数:{{ form.fPlanqty }}</div>-->
  4661. <!-- </div>-->
  4662. <!-- <div>-->
  4663. <!-- <div>系统编号:{{ form.fBillno }}</div>-->
  4664. <!-- <div>计划入库日期:{{ form.fBsdate }}</div>-->
  4665. <!-- <div>制单日期:{{ form.createTime }}</div>-->
  4666. <!-- <div>毛重:{{ (form.fPlangrossweight / 1000).toFixed(2) }}</div>-->
  4667. <!-- </div>-->
  4668. <!-- <div>-->
  4669. <!-- <div>清单号:{{ form.fCustomsdeclartion }}</div>-->
  4670. <!-- <div>存放仓库:{{ stockName }}</div>-->
  4671. <!-- <div>净重:{{ (form.fPlannetweight / 1000).toFixed(2) }}</div>-->
  4672. <!-- </div>-->
  4673. <!-- </div>-->
  4674. <!-- <div class="print_table" style="display: flex">-->
  4675. <!-- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">-->
  4676. <!-- <tr>-->
  4677. <!-- <td>箱号</td>-->
  4678. <!-- <td>铅封号</td>-->
  4679. <!-- <td>预计件数</td>-->
  4680. <!-- <td>实际件数</td>-->
  4681. <!-- <td>库位</td>-->
  4682. <!-- <td>实际入库日期</td>-->
  4683. <!-- <td>送货车号</td>-->
  4684. <!-- <td>送货司机</td>-->
  4685. <!-- <td>备注</td>-->
  4686. <!-- </tr>-->
  4687. <!-- <tr v-for="(item, index) in Printinglist" :key="index">-->
  4688. <!-- <td>{{ item.fCntrno }}</td>-->
  4689. <!-- <td>{{ item.fSealno }}</td>-->
  4690. <!-- <td>{{ form.fPlanqty }}</td>-->
  4691. <!-- <td>{{ item.fQty }}</td>-->
  4692. <!-- <td>{{ item.fWarehouseInformation }}</td>-->
  4693. <!-- <td>{{ item.fBsdate }}</td>-->
  4694. <!-- <td>{{ item.fTruckno }}</td>-->
  4695. <!-- <td>{{ item.fDriverName }}</td>-->
  4696. <!-- <td>{{ item.remark }}</td>-->
  4697. <!-- </tr>-->
  4698. <!-- <tr>-->
  4699. <!-- <td colspan="3">合计:</td>-->
  4700. <!-- <td>{{ allfQty }}</td>-->
  4701. <!-- <td></td>-->
  4702. <!-- <td></td>-->
  4703. <!-- <td></td>-->
  4704. <!-- <td></td>-->
  4705. <!-- <td></td>-->
  4706. <!-- </tr>-->
  4707. <!-- </table>-->
  4708. <!-- </div>-->
  4709. <!-- <div-->
  4710. <!-- style="display: flex; justify-content: space-between; font-size: 12px"-->
  4711. <!-- >-->
  4712. <!-- <div>操作:{{ form.createBy }}</div>-->
  4713. <!-- <div>库管:{{ form.fContacts }}</div>-->
  4714. <!-- <div style="width: 100px">叉车:</div>-->
  4715. <!-- </div>-->
  4716. <!-- </div>-->
  4717. <!-- <span slot="footer" class="dialog-footer">-->
  4718. <!-- <el-button-->
  4719. <!-- type="primary"-->
  4720. <!-- :disabled="browseStatus"-->
  4721. <!-- @click="-->
  4722. <!-- addprint('xhcdrkd');-->
  4723. <!-- print_xhcdrkd = false;-->
  4724. <!-- "-->
  4725. <!-- >打印-->
  4726. <!-- </el-button>-->
  4727. <!-- <el-button @click="print_xhcdrkd = false">取消 </el-button>-->
  4728. <!-- </span>-->
  4729. <!-- </el-dialog>-->
  4730. <!-- <el-dialog-->
  4731. <!-- :visible.sync="print_zpdkrkd"-->
  4732. <!-- width="70%"-->
  4733. <!-- :close-on-click-modal="false"-->
  4734. <!-- :modal="false"-->
  4735. <!-- >-->
  4736. <!-- <div id="print_area12" class="print-div">-->
  4737. <!-- <div-->
  4738. <!-- class="print-title"-->
  4739. <!-- style="-->
  4740. <!-- display: flex;-->
  4741. <!-- justify-content: center;-->
  4742. <!-- font-size: 24px;-->
  4743. <!-- margin-bottom: 5px;-->
  4744. <!-- "-->
  4745. <!-- >-->
  4746. <!-- {{ company }}货物标识卡-->
  4747. <!-- </div>-->
  4748. <!-- <div class="print_table" style="display: flex">-->
  4749. <!-- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">-->
  4750. <!-- <tr>-->
  4751. <!-- <td>货物名称</td>-->
  4752. <!-- <td colspan="2">{{ form.goodName }}</td>-->
  4753. <!-- <td>库位</td>-->
  4754. <!-- <td colspan="2">{{ stockName }}</td>-->
  4755. <!-- </tr>-->
  4756. <!-- <tr>-->
  4757. <!-- <td>提单号</td>-->
  4758. <!-- <td colspan="2">{{ form.fMblno }}</td>-->
  4759. <!-- <td>清单号</td>-->
  4760. <!-- <td colspan="2">{{ form.fCustomsdeclartion }}</td>-->
  4761. <!-- </tr>-->
  4762. <!-- <tr>-->
  4763. <!-- <td>箱号</td>-->
  4764. <!-- <td colspan="2"></td>-->
  4765. <!-- <td>总箱量</td>-->
  4766. <!-- <td colspan="2">{{ container }}</td>-->
  4767. <!-- </tr>-->
  4768. <!-- <tr>-->
  4769. <!-- <td>总件数</td>-->
  4770. <!-- <td colspan="2">{{ form.fPlanqty }}</td>-->
  4771. <!-- <td>总净重</td>-->
  4772. <!-- <td colspan="2">{{ (form.fPlannetweight / 1000).toFixed(2) }}</td>-->
  4773. <!-- </tr>-->
  4774. <!-- <tr>-->
  4775. <!-- <td>总毛重</td>-->
  4776. <!-- <td colspan="2">-->
  4777. <!-- {{ (form.fPlangrossweight / 1000).toFixed(2) }}-->
  4778. <!-- </td>-->
  4779. <!-- <td>本垛毛重</td>-->
  4780. <!-- <td colspan="2">-->
  4781. <!-- {{ (form.fPlangrossweight / 1000).toFixed(2) }}-->
  4782. <!-- </td>-->
  4783. <!-- </tr>-->
  4784. <!-- <tr>-->
  4785. <!-- <td>本垛件数</td>-->
  4786. <!-- <td colspan="2">{{ form.fPlanqty }}</td>-->
  4787. <!-- <td>本垛净重</td>-->
  4788. <!-- <td colspan="2">{{ (form.fPlannetweight / 1000).toFixed(2) }}</td>-->
  4789. <!-- </tr>-->
  4790. <!-- <tr>-->
  4791. <!-- <td>入库日期</td>-->
  4792. <!-- <td colspan="2">{{ form.fBsdate }}</td>-->
  4793. <!-- <td>仓管员</td>-->
  4794. <!-- <td colspan="2">{{ form.createBy }}</td>-->
  4795. <!-- </tr>-->
  4796. <!-- <tr>-->
  4797. <!-- <td>出库日期</td>-->
  4798. <!-- <td>出库件数</td>-->
  4799. <!-- <td>剩余件数</td>-->
  4800. <!-- <td>出库仓管员</td>-->
  4801. <!-- <td>盘点日期</td>-->
  4802. <!-- <td>盘点人</td>-->
  4803. <!-- </tr>-->
  4804. <!-- <tr>-->
  4805. <!-- <td style="height: 20px"></td>-->
  4806. <!-- <td></td>-->
  4807. <!-- <td></td>-->
  4808. <!-- <td></td>-->
  4809. <!-- <td></td>-->
  4810. <!-- <td></td>-->
  4811. <!-- </tr>-->
  4812. <!-- <tr>-->
  4813. <!-- <td style="height: 20px"></td>-->
  4814. <!-- <td></td>-->
  4815. <!-- <td></td>-->
  4816. <!-- <td></td>-->
  4817. <!-- <td></td>-->
  4818. <!-- <td></td>-->
  4819. <!-- </tr>-->
  4820. <!-- <tr>-->
  4821. <!-- <td style="height: 20px"></td>-->
  4822. <!-- <td></td>-->
  4823. <!-- <td></td>-->
  4824. <!-- <td></td>-->
  4825. <!-- <td></td>-->
  4826. <!-- <td></td>-->
  4827. <!-- </tr>-->
  4828. <!-- <tr>-->
  4829. <!-- <td style="height: 20px"></td>-->
  4830. <!-- <td></td>-->
  4831. <!-- <td></td>-->
  4832. <!-- <td></td>-->
  4833. <!-- <td></td>-->
  4834. <!-- <td></td>-->
  4835. <!-- </tr>-->
  4836. <!-- <tr>-->
  4837. <!-- <td style="height: 20px"></td>-->
  4838. <!-- <td></td>-->
  4839. <!-- <td></td>-->
  4840. <!-- <td></td>-->
  4841. <!-- <td></td>-->
  4842. <!-- <td></td>-->
  4843. <!-- </tr>-->
  4844. <!-- <tr>-->
  4845. <!-- <td style="height: 20px"></td>-->
  4846. <!-- <td></td>-->
  4847. <!-- <td></td>-->
  4848. <!-- <td></td>-->
  4849. <!-- <td></td>-->
  4850. <!-- <td></td>-->
  4851. <!-- </tr>-->
  4852. <!-- <tr>-->
  4853. <!-- <td style="height: 20px"></td>-->
  4854. <!-- <td></td>-->
  4855. <!-- <td></td>-->
  4856. <!-- <td></td>-->
  4857. <!-- <td></td>-->
  4858. <!-- <td></td>-->
  4859. <!-- </tr>-->
  4860. <!-- <tr>-->
  4861. <!-- <td style="height: 20px"></td>-->
  4862. <!-- <td></td>-->
  4863. <!-- <td></td>-->
  4864. <!-- <td></td>-->
  4865. <!-- <td></td>-->
  4866. <!-- <td></td>-->
  4867. <!-- </tr>-->
  4868. <!-- <tr>-->
  4869. <!-- <td style="height: 20px"></td>-->
  4870. <!-- <td></td>-->
  4871. <!-- <td></td>-->
  4872. <!-- <td></td>-->
  4873. <!-- <td></td>-->
  4874. <!-- <td></td>-->
  4875. <!-- </tr>-->
  4876. <!-- <tr>-->
  4877. <!-- <td style="height: 20px"></td>-->
  4878. <!-- <td></td>-->
  4879. <!-- <td></td>-->
  4880. <!-- <td></td>-->
  4881. <!-- <td></td>-->
  4882. <!-- <td></td>-->
  4883. <!-- </tr>-->
  4884. <!-- <tr>-->
  4885. <!-- <td style="height: 20px"></td>-->
  4886. <!-- <td></td>-->
  4887. <!-- <td></td>-->
  4888. <!-- <td></td>-->
  4889. <!-- <td></td>-->
  4890. <!-- <td></td>-->
  4891. <!-- </tr>-->
  4892. <!-- <tr>-->
  4893. <!-- <td style="height: 20px"></td>-->
  4894. <!-- <td></td>-->
  4895. <!-- <td></td>-->
  4896. <!-- <td></td>-->
  4897. <!-- <td></td>-->
  4898. <!-- <td></td>-->
  4899. <!-- </tr>-->
  4900. <!-- <tr>-->
  4901. <!-- <td>备注:</td>-->
  4902. <!-- <td colspan="5">{{ form.remark }}</td>-->
  4903. <!-- </tr>-->
  4904. <!-- </table>-->
  4905. <!-- </div>-->
  4906. <!-- <div-->
  4907. <!-- style="display: flex; justify-content: space-between; font-size: 12px"-->
  4908. <!-- >-->
  4909. <!-- &lt;!&ndash; <div>操作:{{ form.createBy }}</div>&ndash;&gt;-->
  4910. <!-- <div>库管:{{ form.fContacts }}</div>-->
  4911. <!-- <div style="width: 100px">叉车:</div>-->
  4912. <!-- </div>-->
  4913. <!-- </div>-->
  4914. <!-- <span slot="footer" class="dialog-footer">-->
  4915. <!-- <el-button-->
  4916. <!-- type="primary"-->
  4917. <!-- :disabled="browseStatus"-->
  4918. <!-- @click="-->
  4919. <!-- addprint('fxdkrkd');-->
  4920. <!-- print_zpdkrkd = false;-->
  4921. <!-- "-->
  4922. <!-- >打印-->
  4923. <!-- </el-button>-->
  4924. <!-- <el-button @click="print_zpdkrkd = false">取消 </el-button>-->
  4925. <!-- </span>-->
  4926. <!-- </el-dialog>-->
  4927. <el-dialog
  4928. :visible.sync="print_ccdzrkd"
  4929. width="70%"
  4930. :close-on-click-modal="false"
  4931. :modal="false"
  4932. >
  4933. <el-radio v-model="radio" :label="1" @change="radioChange">吨(T)</el-radio>
  4934. <el-radio v-model="radio" :label="2" @change="radioChange">千克(KG)</el-radio>
  4935. <div id="print_area8" class="print-div">
  4936. <div
  4937. class="print-title"
  4938. style="
  4939. display: flex;
  4940. justify-content: center;
  4941. font-size: 24px;
  4942. margin-bottom: 5px;
  4943. "
  4944. >
  4945. {{ company }}
  4946. </div>
  4947. <div style="display:flex;flex-direction: column;margin-left: 70%">
  4948. <div>{{ form.fBillno }}</div>
  4949. <div>存货地点:{{ stockName }}</div>
  4950. </div>
  4951. <div class="print_table" style="display: flex">
  4952. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  4953. <tr>
  4954. <td>品名</td>
  4955. <td colspan="3">{{ form.goodName }}</td>
  4956. <td colspan="2">清单号</td>
  4957. <td colspan="3">{{ form.fCustomsdeclartion }}</td>
  4958. </tr>
  4959. <tr>
  4960. <td class="oneHundredSix" style="width: 160px;">入库日期</td>
  4961. <td class="twoHundred" style="width: 200px;">箱号</td>
  4962. <td>铅封号</td>
  4963. <td>预计件数</td>
  4964. <td>垛位</td>
  4965. <td>实收件数</td>
  4966. <td class="oneHundred" style="width: 100px;" v-if="radio == 1">实收净重(吨)</td>
  4967. <td class="oneHundred" style="width: 100px;" v-if="radio == 1">毛重(吨)</td>
  4968. <td class="oneHundred" style="width: 100px;" v-if="radio == 2">实收净重(千克)</td>
  4969. <td class="oneHundred" style="width: 100px;" v-if="radio == 2">毛重(千克)</td>
  4970. <td class="twoHundred" style="width: 200px;">备注</td>
  4971. </tr>
  4972. <tr v-for="(item, index) in Printinglist" :key="index">
  4973. <td>{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>
  4974. <td>{{ item.fCntrno }}</td>
  4975. <td>{{ item.fSealno }}</td>
  4976. <td>{{ item.fQty }}</td>
  4977. <td>{{ item.fWarehouseInformation }}</td>
  4978. <td>{{ item.fQty }}</td>
  4979. <td v-if="radio == 1">{{ (item.fNetweight / 1000).toSuperFixed(4) }}</td>
  4980. <td v-if="radio == 1">{{ (item.fGrossweight / 1000).toSuperFixed(4) }}</td>
  4981. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  4982. <td v-if="radio == 2">{{ item.fGrossweight }}</td>
  4983. <td>{{ item.remark }}</td>
  4984. </tr>
  4985. <tr>
  4986. <td>合计:</td>
  4987. <td></td>
  4988. <td></td>
  4989. <td></td>
  4990. <td></td>
  4991. <td>{{ allfQty.toFixed(0) }}</td>
  4992. <td v-if="radio == 1">{{ allfNetweight.toSuperFixed(4) }}</td>
  4993. <td v-if="radio == 1">{{ allfGrossweight.toSuperFixed(4) }}</td>
  4994. <td v-if="radio == 2">{{ allfNetweight }}</td>
  4995. <td v-if="radio == 2">{{ allfGrossweight }}</td>
  4996. <td></td>
  4997. </tr>
  4998. </table>
  4999. </div>
  5000. <div
  5001. style="display: flex; justify-content: space-between; font-size: 12px"
  5002. >
  5003. <!-- <div>操作:{{ form.createBy }}</div>-->
  5004. <div>库管:{{ form.fContacts }}</div>
  5005. <div style="width: 100px">叉车:</div>
  5006. </div>
  5007. </div>
  5008. <span slot="footer" class="dialog-footer">
  5009. <el-button
  5010. type="primary"
  5011. :disabled="browseStatus"
  5012. @click="
  5013. addprint('ccdzrkd');
  5014. print_ccdzrkd = false;
  5015. "
  5016. >打印
  5017. </el-button>
  5018. <el-button @click="print_ccdzrkd = false">取消 </el-button>
  5019. </span>
  5020. </el-dialog>
  5021. <el-dialog
  5022. :visible.sync="print_fxdkrkd"
  5023. width="70%"
  5024. :close-on-click-modal="false"
  5025. :modal="false"
  5026. >
  5027. <div id="print_area9" class="print-div">
  5028. <div
  5029. class="print-title"
  5030. style="
  5031. display: flex;
  5032. justify-content: center;
  5033. font-size: 24px;
  5034. margin-bottom: 5px;
  5035. "
  5036. >
  5037. {{ company }}货物标识卡
  5038. </div>
  5039. <div class="print_table" style="display: flex">
  5040. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%" v-for="(item, index) in Printinglist"
  5041. :key="index">
  5042. <tr>
  5043. <td>货物名称</td>
  5044. <td colspan="2">{{ form.goodName }}</td>
  5045. <td>库位</td>
  5046. <td colspan="2">{{ form.fWarehouseInformation }}</td>
  5047. </tr>
  5048. <tr>
  5049. <td>提单号</td>
  5050. <td colspan="2">{{ form.fMblno }}</td>
  5051. <td>清单号</td>
  5052. <td colspan="2">{{ form.fCustomsdeclartion }}</td>
  5053. </tr>
  5054. <tr>
  5055. <td>箱号</td>
  5056. <td colspan="2">{{ item.fCntrno }}</td>
  5057. <td>总箱量</td>
  5058. <td colspan="2">{{ item.fCntqty }}</td>
  5059. </tr>
  5060. <tr>
  5061. <td>总件数</td>
  5062. <td colspan="2">{{ item.fQty }}</td>
  5063. <td>总净重</td>
  5064. <td colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  5065. </tr>
  5066. <tr>
  5067. <td>总毛重</td>
  5068. <td colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  5069. <td>本垛毛重</td>
  5070. <td colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  5071. </tr>
  5072. <tr>
  5073. <td>本垛件数</td>
  5074. <td colspan="2">{{ item.fQty }}</td>
  5075. <td>本垛净重</td>
  5076. <td colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  5077. </tr>
  5078. <tr>
  5079. <td>入库日期</td>
  5080. <td colspan="2">{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>
  5081. <td>仓管员</td>
  5082. <td colspan="2">{{ form.createBy }}</td>
  5083. </tr>
  5084. <tr>
  5085. <td>出库日期</td>
  5086. <td>出库件数</td>
  5087. <td>剩余件数</td>
  5088. <td>出库仓管员</td>
  5089. <td>盘点日期</td>
  5090. <td>盘点人</td>
  5091. </tr>
  5092. <tr>
  5093. <td style="height:20px"></td>
  5094. <td></td>
  5095. <td></td>
  5096. <td></td>
  5097. <td></td>
  5098. <td></td>
  5099. </tr>
  5100. <tr>
  5101. <td style="height:20px"></td>
  5102. <td></td>
  5103. <td></td>
  5104. <td></td>
  5105. <td></td>
  5106. <td></td>
  5107. </tr>
  5108. <tr>
  5109. <td style="height:20px"></td>
  5110. <td></td>
  5111. <td></td>
  5112. <td></td>
  5113. <td></td>
  5114. <td></td>
  5115. </tr>
  5116. <tr>
  5117. <td style="height:20px"></td>
  5118. <td></td>
  5119. <td></td>
  5120. <td></td>
  5121. <td></td>
  5122. <td></td>
  5123. </tr>
  5124. <tr>
  5125. <td style="height:20px"></td>
  5126. <td></td>
  5127. <td></td>
  5128. <td></td>
  5129. <td></td>
  5130. <td></td>
  5131. </tr>
  5132. <tr>
  5133. <td style="height:20px"></td>
  5134. <td></td>
  5135. <td></td>
  5136. <td></td>
  5137. <td></td>
  5138. <td></td>
  5139. </tr>
  5140. <tr>
  5141. <td style="height:20px"></td>
  5142. <td></td>
  5143. <td></td>
  5144. <td></td>
  5145. <td></td>
  5146. <td></td>
  5147. </tr>
  5148. <tr>
  5149. <td style="height:20px"></td>
  5150. <td></td>
  5151. <td></td>
  5152. <td></td>
  5153. <td></td>
  5154. <td></td>
  5155. </tr>
  5156. <tr>
  5157. <td style="height:20px"></td>
  5158. <td></td>
  5159. <td></td>
  5160. <td></td>
  5161. <td></td>
  5162. <td></td>
  5163. </tr>
  5164. <tr>
  5165. <td style="height:20px"></td>
  5166. <td></td>
  5167. <td></td>
  5168. <td></td>
  5169. <td></td>
  5170. <td></td>
  5171. </tr>
  5172. <tr>
  5173. <td style="height:20px"></td>
  5174. <td></td>
  5175. <td></td>
  5176. <td></td>
  5177. <td></td>
  5178. <td></td>
  5179. </tr>
  5180. <tr>
  5181. <td style="height:20px"></td>
  5182. <td></td>
  5183. <td></td>
  5184. <td></td>
  5185. <td></td>
  5186. <td></td>
  5187. </tr>
  5188. <tr>
  5189. <td>备注:</td>
  5190. <td colspan="5">{{ form.remark }}</td>
  5191. </tr>
  5192. </table>
  5193. </div>
  5194. <div
  5195. style="display: flex; justify-content: space-between; font-size: 12px"
  5196. >
  5197. <!-- <div>操作:{{ form.createBy }}</div>-->
  5198. <div>库管:{{ form.fContacts }}</div>
  5199. <div style="width: 100px">叉车:</div>
  5200. </div>
  5201. </div>
  5202. <span slot="footer" class="dialog-footer">
  5203. <el-button
  5204. type="primary"
  5205. :disabled="browseStatus"
  5206. @click="
  5207. addprint('fxdkrkd');
  5208. print_fxdkrkd = false;
  5209. "
  5210. >打印
  5211. </el-button>
  5212. <el-button @click="print_fxdkrkd = false">取消 </el-button>
  5213. </span>
  5214. </el-dialog>
  5215. <el-dialog
  5216. :visible.sync="print_khrkd"
  5217. width="70%"
  5218. :close-on-click-modal="false"
  5219. :modal="false"
  5220. >
  5221. <div id="print_area10" class="print-div">
  5222. <div
  5223. class="print-title"
  5224. style="
  5225. display: flex;
  5226. justify-content: center;
  5227. font-size: 24px;
  5228. margin-bottom: 5px;
  5229. "
  5230. >
  5231. {{ company }}
  5232. </div>
  5233. <div
  5234. style="
  5235. display: flex;
  5236. justify-content: center;
  5237. font-size: 18px;
  5238. margin-bottom: 5px;
  5239. "
  5240. >
  5241. <div>入&nbsp;库&nbsp;单</div>
  5242. </div>
  5243. <div
  5244. style="
  5245. display: flex;
  5246. justify-content: space-between;
  5247. margin-bottom: 5px;
  5248. "
  5249. class="print_form"
  5250. >
  5251. <div>客户名称:{{ form.fCorpidName }}</div>
  5252. <div>存货地点:{{ stockName }}</div>
  5253. </div>
  5254. <div class="print_table" style="display: flex">
  5255. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  5256. <tr>
  5257. <td>序号</td>
  5258. <td>实际入库日期</td>
  5259. <td>商品名称</td>
  5260. <td>提单号</td>
  5261. <td>箱号</td>
  5262. <td>件数</td>
  5263. <td>毛重(吨)</td>
  5264. <td>净重(吨)</td>
  5265. <td>备注</td>
  5266. </tr>
  5267. <tr v-for="(item, index) in Printinglist" :key="index">
  5268. <td>{{ index + 1 }}</td>
  5269. <td>{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>
  5270. <td>{{ item.fGoodsids }}</td>
  5271. <td>{{ item.fMblno }}</td>
  5272. <td>{{ item.fCntrno }}</td>
  5273. <td>{{ item.fQty }}</td>
  5274. <td>{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  5275. <td>{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  5276. <td>{{ item.remark }}</td>
  5277. </tr>
  5278. <tr>
  5279. <td>合计:</td>
  5280. <td></td>
  5281. <td></td>
  5282. <td></td>
  5283. <td></td>
  5284. <td>{{ allfQty.toFixed(0) }}</td>
  5285. <td>{{ (allfGrossweight / 1000).toFixed(4) }}</td>
  5286. <td>{{ (allfNetweight / 1000).toFixed(4) }}</td>
  5287. <td></td>
  5288. </tr>
  5289. </table>
  5290. </div>
  5291. <div
  5292. style="display: flex; justify-content: space-between; font-size: 12px"
  5293. >
  5294. <!-- <div>操作:{{ form.createBy }}</div>-->
  5295. <div>库管:{{ form.fContacts }}</div>
  5296. <div style="width: 100px">叉车:</div>
  5297. </div>
  5298. </div>
  5299. <span slot="footer" class="dialog-footer">
  5300. <el-button
  5301. type="primary"
  5302. :disabled="browseStatus"
  5303. @click="
  5304. addprint('khrkd');
  5305. print_khrkd = false;
  5306. "
  5307. >打印
  5308. </el-button>
  5309. <el-button @click="print_khrkd = false">取消 </el-button>
  5310. </span>
  5311. </el-dialog>
  5312. <!-- 卸货存档入库单-->
  5313. <el-dialog
  5314. :visible.sync="print_xhcdrkd"
  5315. width="70%"
  5316. :close-on-click-modal="false"
  5317. :modal="false"
  5318. >
  5319. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  5320. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  5321. <div id="print_area11" class="print-div">
  5322. <div
  5323. class="print-title"
  5324. style="
  5325. display: flex;
  5326. justify-content: center;
  5327. font-size: 24px;
  5328. margin-bottom: 5px;
  5329. "
  5330. >
  5331. {{ company }}入库单
  5332. </div>
  5333. <div
  5334. style="
  5335. display: flex;
  5336. justify-content: space-between;
  5337. margin-bottom: 5px;
  5338. "
  5339. class="print_form"
  5340. >
  5341. <div>
  5342. <div>提单号:{{ form.fMblno }}</div>
  5343. <div>客户名称:{{ form.fCorpidName }}</div>
  5344. <div>货物名称:{{ form.fProductName }}</div>
  5345. <div>件数:{{ form.fPlanqty }}</div>
  5346. </div>
  5347. <div>
  5348. <div>系统编号:{{ form.fBillno }}</div>
  5349. <div>计划入库日期:{{ form.fBsdate }}&nbsp;{{ timeOut }}</div>
  5350. <div>制单日期:{{ form.createTime }}</div>
  5351. <div v-if="radio == 1">毛重(吨):{{ (form.fPlangrossweight / 1000).toFixed(4) }}</div>
  5352. <div v-if="radio == 2">毛重(千克):{{ form.fPlangrossweight }}</div>
  5353. </div>
  5354. <div>
  5355. <div>报关单号:{{ form.fCustomno }}</div>
  5356. <!-- <div>清单号:{{ form.fCustomsdeclartion }}</div>-->
  5357. <div>存放仓库:{{ stockName }}</div>
  5358. <div v-if="radio == 1">净重(吨):{{ (form.fPlannetweight / 1000).toFixed(4) }}</div>
  5359. <div v-if="radio == 2">净重(千克):{{ form.fPlannetweight }}</div>
  5360. </div>
  5361. </div>
  5362. <div class="print_table" style="display: flex">
  5363. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  5364. <tr>
  5365. <td>箱号</td>
  5366. <td>铅封号</td>
  5367. <td>预计件数</td>
  5368. <td>实际件数</td>
  5369. <td>库位</td>
  5370. <td>实际入库日期</td>
  5371. <td>送货车号</td>
  5372. <td>送货司机</td>
  5373. <td>备注</td>
  5374. </tr>
  5375. <tr v-for="(item,index) in Printinglist" :key="index">
  5376. <td>{{ item.fCntrno }}</td>
  5377. <td>{{ item.fSealno }}</td>
  5378. <td>{{ item.fQty }}</td>
  5379. <td>{{ item.fQty }}</td>
  5380. <td>{{ item.fWarehouseInformation }}</td>
  5381. <!-- <td>{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>-->
  5382. <td>{{ item.fBsdate }}&nbsp;{{ inTime }}</td>
  5383. <td>{{ item.fTruckno }}</td>
  5384. <td>{{ item.fDriverName }}</td>
  5385. <td>{{ item.remark }}</td>
  5386. </tr>
  5387. <tr>
  5388. <td colspan="2">合计:</td>
  5389. <td>{{ allfQty }}</td>
  5390. <td>{{ allfQty }}</td>
  5391. <td></td>
  5392. <td></td>
  5393. <td></td>
  5394. <td></td>
  5395. <td></td>
  5396. </tr>
  5397. </table>
  5398. </div>
  5399. <div
  5400. style="display: flex; justify-content: space-between; font-size: 12px"
  5401. >
  5402. <div>操作:</div>
  5403. <div>库管:{{ form.fContacts }}</div>
  5404. <div style="width: 100px">叉车:</div>
  5405. </div>
  5406. </div>
  5407. <span slot="footer" class="dialog-footer">
  5408. <el-button
  5409. type="primary"
  5410. :disabled="browseStatus"
  5411. @click="
  5412. addprint('xhcdrkd');
  5413. print_xhcdrkd = false;
  5414. "
  5415. >打印
  5416. </el-button>
  5417. <el-button @click="print_xhcdrkd = false">取消 </el-button>
  5418. </span>
  5419. </el-dialog>
  5420. <!-- <el-dialog-->
  5421. <!-- :visible.sync="print_zpdkrkd"-->
  5422. <!-- width="70%"-->
  5423. <!-- :close-on-click-modal="false"-->
  5424. <!-- :modal="false"-->
  5425. <!-- >-->
  5426. <!-- <div id="print_area12" class="print-div">-->
  5427. <!-- <div-->
  5428. <!-- class="print-title"-->
  5429. <!-- style="-->
  5430. <!-- display: flex;-->
  5431. <!-- justify-content: center;-->
  5432. <!-- font-size: 24px;-->
  5433. <!-- margin-bottom: 5px;-->
  5434. <!-- "-->
  5435. <!-- >-->
  5436. <!-- {{ company }}货物标识卡-->
  5437. <!-- </div>-->
  5438. <!-- <div class="print_table" style="display: flex">-->
  5439. <!-- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%" >-->
  5440. <!-- <tr>-->
  5441. <!-- <td>货物名称</td>-->
  5442. <!-- <td colspan="2">{{form.goodName}}</td>-->
  5443. <!-- <td>库位</td>-->
  5444. <!-- <td colspan="2">{{ stockName}}</td>-->
  5445. <!-- </tr>-->
  5446. <!-- <tr>-->
  5447. <!-- <td>提单号</td>-->
  5448. <!-- <td colspan="2">{{form.fMblno}}</td>-->
  5449. <!-- <td>清单号</td>-->
  5450. <!-- <td colspan="2">{{ form.fCustomsdeclartion}}</td>-->
  5451. <!-- </tr>-->
  5452. <!-- <tr>-->
  5453. <!-- <td>箱号</td>-->
  5454. <!-- <td colspan="2"></td>-->
  5455. <!-- <td>总箱量</td>-->
  5456. <!-- <td colspan="2">{{ container}}</td>-->
  5457. <!-- </tr>-->
  5458. <!-- <tr>-->
  5459. <!-- <td>总件数</td>-->
  5460. <!-- <td colspan="2">{{form.fPlanqty}}</td>-->
  5461. <!-- <td>总净重</td>-->
  5462. <!-- <td colspan="2">{{ (form.fPlannetweight/1000).toFixed(2)}}</td>-->
  5463. <!-- </tr>-->
  5464. <!-- <tr>-->
  5465. <!-- <td>总毛重</td>-->
  5466. <!-- <td colspan="2">{{(form.fPlangrossweight/1000).toFixed(2)}}</td>-->
  5467. <!-- <td>本垛毛重</td>-->
  5468. <!-- <td colspan="2">{{(form.fPlangrossweight/1000).toFixed(2)}}</td>-->
  5469. <!-- </tr>-->
  5470. <!-- <tr>-->
  5471. <!-- <td>本垛件数</td>-->
  5472. <!-- <td colspan="2">{{form.fPlanqty}}</td>-->
  5473. <!-- <td>本垛净重</td>-->
  5474. <!-- <td colspan="2">{{ (form.fPlannetweight/1000).toFixed(2)}}</td>-->
  5475. <!-- </tr>-->
  5476. <!-- <tr>-->
  5477. <!-- <td>入库日期</td>-->
  5478. <!-- <td colspan="2">{{form.fBsdate}}&nbsp;{{ timeOut }}</td>-->
  5479. <!-- <td>仓管员</td>-->
  5480. <!-- <td colspan="2">{{ form.createBy}}</td>-->
  5481. <!-- </tr>-->
  5482. <!-- <tr>-->
  5483. <!-- <td>出库日期</td>-->
  5484. <!-- <td>出库件数</td>-->
  5485. <!-- <td>剩余件数</td>-->
  5486. <!-- <td>出库仓管员</td>-->
  5487. <!-- <td>盘点日期</td>-->
  5488. <!-- <td>盘点人</td>-->
  5489. <!-- </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 ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5493. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5494. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5495. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5496. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5497. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5498. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5499. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5500. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5501. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  5502. <!-- <tr>-->
  5503. <!-- <td>备注:</td>-->
  5504. <!-- <td colspan="5">{{form.remark}}</td>-->
  5505. <!-- </tr>-->
  5506. <!-- </table>-->
  5507. <!-- </div>-->
  5508. <!-- <div-->
  5509. <!-- style="display: flex; justify-content: space-between; font-size: 12px"-->
  5510. <!-- >-->
  5511. <!-- &lt;!&ndash; <div>操作:{{ form.createBy }}</div>&ndash;&gt;-->
  5512. <!-- <div>库管:{{ form.fContacts }}</div>-->
  5513. <!-- <div style="width: 100px">叉车:</div>-->
  5514. <!-- </div>-->
  5515. <!-- </div>-->
  5516. <!-- <span slot="footer" class="dialog-footer">-->
  5517. <!-- <el-button-->
  5518. <!-- type="primary"-->
  5519. <!-- :disabled="browseStatus"-->
  5520. <!-- @click="-->
  5521. <!-- addprint('fxdkrkd');-->
  5522. <!-- print_zpdkrkd = false;-->
  5523. <!-- "-->
  5524. <!-- >打印-->
  5525. <!-- </el-button>-->
  5526. <!-- <el-button @click="print_zpdkrkd = false">取消 </el-button>-->
  5527. <!-- </span>-->
  5528. <!-- </el-dialog>-->
  5529. <el-dialog
  5530. :visible.sync="print_fxdkrkd"
  5531. width="70%"
  5532. :close-on-click-modal="false"
  5533. :modal="false"
  5534. >
  5535. <el-radio v-model="radio" :label="1">吨(T)</el-radio>
  5536. <el-radio v-model="radio" :label="2">千克(KG)</el-radio>
  5537. <div id="print_area9" class="print-div">
  5538. <div
  5539. class="print-title"
  5540. style="
  5541. display: flex;
  5542. justify-content: center;
  5543. font-size: 24px;
  5544. margin-bottom: 5px;
  5545. "
  5546. >
  5547. {{ company }}货物标识卡
  5548. </div>
  5549. <div class="print_table" style="display: flex;flex-direction: column">
  5550. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%" v-for="(item, index) in Printinglist"
  5551. :key="index">
  5552. <tr>
  5553. <td>货物名称</td>
  5554. <td colspan="2">{{ form.goodName }}</td>
  5555. <td>库位</td>
  5556. <td colspan="2">{{ form.fWarehouseInformation }}</td>
  5557. </tr>
  5558. <tr>
  5559. <td>提单号</td>
  5560. <td colspan="2">{{ form.fMblno }}</td>
  5561. <td>清单号</td>
  5562. <td colspan="2">{{ form.fCustomsdeclartion }}</td>
  5563. </tr>
  5564. <tr>
  5565. <td>箱号</td>
  5566. <td colspan="2">{{ item.fCntrno }}</td>
  5567. <td>总箱量</td>
  5568. <td colspan="2">{{ item.fCntqty }}</td>
  5569. </tr>
  5570. <tr>
  5571. <td>总件数</td>
  5572. <td colspan="2">{{ item.fQty }}</td>
  5573. <td v-if="radio == 1">总净重(吨)</td>
  5574. <td v-if="radio == 2">总净重(千克)</td>
  5575. <td v-if="radio == 1" colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  5576. <td v-if="radio == 2" colspan="2">{{ item.fNetweight }}</td>
  5577. </tr>
  5578. <tr>
  5579. <td v-if="radio == 1">总毛重(吨)</td>
  5580. <td v-if="radio == 2">总毛重(千克)</td>
  5581. <td v-if="radio == 1" colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  5582. <td v-if="radio == 2" colspan="2">{{ item.fGrossweight }}</td>
  5583. <td v-if="radio == 1">本垛毛重(吨)</td>
  5584. <td v-if="radio == 2">本垛毛重(千克)</td>
  5585. <td v-if="radio == 1" colspan="2">{{ (item.fGrossweight / 1000).toFixed(4) }}</td>
  5586. <td v-if="radio == 2" colspan="2">{{ item.fGrossweight }}</td>
  5587. </tr>
  5588. <tr>
  5589. <td>本垛件数</td>
  5590. <td colspan="2">{{ item.fQty }}</td>
  5591. <td v-if="radio == 1">本垛净重(吨)</td>
  5592. <td v-if="radio == 2">本垛净重(千克)</td>
  5593. <td v-if="radio == 1" colspan="2">{{ (item.fNetweight / 1000).toFixed(4) }}</td>
  5594. <td v-if="radio == 2" colspan="2">{{ item.fNetweight }}</td>
  5595. </tr>
  5596. <tr>
  5597. <td>入库日期</td>
  5598. <td colspan="2">{{ item.fBsdate }}</td>
  5599. <td>仓管员</td>
  5600. <td colspan="2">{{ form.createBy }}</td>
  5601. </tr>
  5602. <tr>
  5603. <td>出库日期</td>
  5604. <td>出库件数</td>
  5605. <td>剩余件数</td>
  5606. <td>出库仓管员</td>
  5607. <td>盘点日期</td>
  5608. <td>盘点人</td>
  5609. </tr>
  5610. <tr>
  5611. <td style="height:20px"></td>
  5612. <td></td>
  5613. <td></td>
  5614. <td></td>
  5615. <td></td>
  5616. <td></td>
  5617. </tr>
  5618. <tr>
  5619. <td style="height:20px"></td>
  5620. <td></td>
  5621. <td></td>
  5622. <td></td>
  5623. <td></td>
  5624. <td></td>
  5625. </tr>
  5626. <tr>
  5627. <td style="height:20px"></td>
  5628. <td></td>
  5629. <td></td>
  5630. <td></td>
  5631. <td></td>
  5632. <td></td>
  5633. </tr>
  5634. <tr>
  5635. <td style="height:20px"></td>
  5636. <td></td>
  5637. <td></td>
  5638. <td></td>
  5639. <td></td>
  5640. <td></td>
  5641. </tr>
  5642. <tr>
  5643. <td style="height:20px"></td>
  5644. <td></td>
  5645. <td></td>
  5646. <td></td>
  5647. <td></td>
  5648. <td></td>
  5649. </tr>
  5650. <tr>
  5651. <td style="height:20px"></td>
  5652. <td></td>
  5653. <td></td>
  5654. <td></td>
  5655. <td></td>
  5656. <td></td>
  5657. </tr>
  5658. <tr>
  5659. <td style="height:20px"></td>
  5660. <td></td>
  5661. <td></td>
  5662. <td></td>
  5663. <td></td>
  5664. <td></td>
  5665. </tr>
  5666. <tr>
  5667. <td style="height:20px"></td>
  5668. <td></td>
  5669. <td></td>
  5670. <td></td>
  5671. <td></td>
  5672. <td></td>
  5673. </tr>
  5674. <tr>
  5675. <td style="height:20px"></td>
  5676. <td></td>
  5677. <td></td>
  5678. <td></td>
  5679. <td></td>
  5680. <td></td>
  5681. </tr>
  5682. <tr>
  5683. <td style="height:20px"></td>
  5684. <td></td>
  5685. <td></td>
  5686. <td></td>
  5687. <td></td>
  5688. <td></td>
  5689. </tr>
  5690. <tr>
  5691. <td style="height:20px"></td>
  5692. <td></td>
  5693. <td></td>
  5694. <td></td>
  5695. <td></td>
  5696. <td></td>
  5697. </tr>
  5698. <tr>
  5699. <td style="height:20px"></td>
  5700. <td></td>
  5701. <td></td>
  5702. <td></td>
  5703. <td></td>
  5704. <td></td>
  5705. </tr>
  5706. <tr>
  5707. <td>备注:</td>
  5708. <td colspan="5">{{ form.remark }}</td>
  5709. </tr>
  5710. </table>
  5711. </div>
  5712. <div
  5713. style="display: flex; justify-content: space-between; font-size: 12px"
  5714. >
  5715. <!-- <div>操作:{{ form.createBy }}</div>-->
  5716. <div>库管:{{ form.fContacts }}</div>
  5717. <div style="width: 100px">叉车:</div>
  5718. </div>
  5719. </div>
  5720. <span slot="footer" class="dialog-footer">
  5721. <el-button
  5722. type="primary"
  5723. :disabled="browseStatus"
  5724. @click="
  5725. addprint('fxdkrkd');
  5726. print_fxdkrkd = false;
  5727. "
  5728. >打印
  5729. </el-button>
  5730. <el-button @click="print_fxdkrkd = false">取消 </el-button>
  5731. </span>
  5732. </el-dialog>
  5733. <el-dialog
  5734. :visible.sync="print_khrkd"
  5735. width="70%"
  5736. :close-on-click-modal="false"
  5737. :modal="false"
  5738. >
  5739. <el-radio v-model="radio" :label="1" @change="radioChange">吨(T)</el-radio>
  5740. <el-radio v-model="radio" :label="2" @change="radioChange">千克(KG)</el-radio>
  5741. <div id="print_area10" class="print-div">
  5742. <div
  5743. class="print-title"
  5744. style="
  5745. display: flex;
  5746. justify-content: center;
  5747. font-size: 24px;
  5748. margin-bottom: 5px;
  5749. "
  5750. >
  5751. {{ company }}
  5752. </div>
  5753. <div
  5754. style="
  5755. display: flex;
  5756. justify-content: center;
  5757. font-size: 18px;
  5758. margin-bottom: 5px;
  5759. "
  5760. >
  5761. <div>入&nbsp;库&nbsp;单</div>
  5762. </div>
  5763. <div
  5764. style="
  5765. display: flex;
  5766. justify-content: space-between;
  5767. margin-bottom: 5px;
  5768. "
  5769. class="print_form"
  5770. >
  5771. <div>客户名称:{{ form.fCorpidName }}</div>
  5772. <div>存货地点:{{ stockName }}</div>
  5773. </div>
  5774. <div class="print_table" style="display: flex">
  5775. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  5776. <tr>
  5777. <td>序号</td>
  5778. <td>实际入库日期</td>
  5779. <td>商品名称</td>
  5780. <td>提单号</td>
  5781. <td>箱号</td>
  5782. <td>件数</td>
  5783. <td v-if="radio == 1">毛重(吨)</td>
  5784. <td v-if="radio == 1">净重(吨)</td>
  5785. <td v-if="radio == 2">毛重(千克)</td>
  5786. <td v-if="radio == 2">净重(千克)</td>
  5787. <td>备注</td>
  5788. </tr>
  5789. <tr v-for="(item, index) in Printinglist" :key="index">
  5790. <td>{{ index + 1 }}</td>
  5791. <td>{{ item.fBsdate }}</td>
  5792. <td>{{ item.fGoodsids }}</td>
  5793. <td>{{ item.fMblno }}</td>
  5794. <td>{{ item.fCntrno }}</td>
  5795. <td>{{ item.fQty }}</td>
  5796. <td v-if="radio == 1">{{ (item.fGrossweight / 1000).toSuperFixed(4) }}</td>
  5797. <td v-if="radio == 1">{{ (item.fNetweight / 1000).toSuperFixed(4) }}</td>
  5798. <td v-if="radio == 2">{{ item.fGrossweight }}</td>
  5799. <td v-if="radio == 2">{{ item.fNetweight }}</td>
  5800. <td>{{ item.remark }}</td>
  5801. </tr>
  5802. <tr>
  5803. <td>合计:</td>
  5804. <td></td>
  5805. <td></td>
  5806. <td></td>
  5807. <td></td>
  5808. <td>{{ allfQty.toFixed(0) }}</td>
  5809. <td v-if="radio == 1">{{ allfGrossweight.toSuperFixed(4) }}</td>
  5810. <td v-if="radio == 1">{{ allfNetweight.toSuperFixed(4) }}</td>
  5811. <td v-if="radio == 2">{{ allfGrossweight }}</td>
  5812. <td v-if="radio == 2">{{ allfNetweight }}</td>
  5813. <td></td>
  5814. </tr>
  5815. </table>
  5816. </div>
  5817. <div
  5818. style="display: flex; justify-content: space-between; font-size: 12px"
  5819. >
  5820. <!-- <div>操作:{{ form.createBy }}</div>-->
  5821. <div>库管:{{ form.fContacts }}</div>
  5822. <div style="width: 100px">叉车:</div>
  5823. </div>
  5824. </div>
  5825. <span slot="footer" class="dialog-footer">
  5826. <el-button
  5827. type="primary"
  5828. :disabled="browseStatus"
  5829. @click="
  5830. addprint('khrkd');
  5831. print_khrkd = false;
  5832. "
  5833. >打印
  5834. </el-button>
  5835. <el-button @click="print_khrkd = false">取消 </el-button>
  5836. </span>
  5837. </el-dialog>
  5838. <!-- <el-dialog-->
  5839. <!-- :visible.sync="print_xhcdrkd"-->
  5840. <!-- width="70%"-->
  5841. <!-- :close-on-click-modal="false"-->
  5842. <!-- :modal="false"-->
  5843. <!-- >-->
  5844. <!-- <div id="print_area11" class="print-div">-->
  5845. <!-- <div-->
  5846. <!-- class="print-title"-->
  5847. <!-- style="-->
  5848. <!-- display: flex;-->
  5849. <!-- justify-content: center;-->
  5850. <!-- font-size: 24px;-->
  5851. <!-- margin-bottom: 5px;-->
  5852. <!-- "-->
  5853. <!-- >-->
  5854. <!-- {{ company }}入库单-->
  5855. <!-- </div>-->
  5856. <!-- <div-->
  5857. <!-- style="-->
  5858. <!-- display: flex;-->
  5859. <!-- justify-content: space-between;-->
  5860. <!-- margin-bottom: 5px;-->
  5861. <!-- "-->
  5862. <!-- class="print_form"-->
  5863. <!-- >-->
  5864. <!-- <div>-->
  5865. <!-- <div>提单号:{{ form.fMblno }}</div>-->
  5866. <!-- <div>客户名称:{{ form.fCorpidName }}</div>-->
  5867. <!-- <div>货物名称:{{ form.fProductName }}</div>-->
  5868. <!-- <div>件数:{{ form.fPlanqty }}</div>-->
  5869. <!-- </div>-->
  5870. <!-- <div>-->
  5871. <!-- <div>系统编号:{{ form.fBillno }}</div>-->
  5872. <!-- <div>计划入库日期:{{ form.fBsdate }}</div>-->
  5873. <!-- <div>制单日期:{{ form.createTime }}</div>-->
  5874. <!-- <div>毛重:{{(form.fPlangrossweight/1000).toFixed(2)}}</div>-->
  5875. <!-- </div>-->
  5876. <!-- <div>-->
  5877. <!-- <div>清单号:{{ form.fCustomsdeclartion }}</div>-->
  5878. <!-- <div>存放仓库:{{ stockName }}</div>-->
  5879. <!-- <div>净重:{{(form.fPlannetweight/1000).toFixed(2)}}</div>-->
  5880. <!-- </div>-->
  5881. <!-- </div>-->
  5882. <!-- <div class="print_table" style="display: flex">-->
  5883. <!-- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">-->
  5884. <!-- <tr>-->
  5885. <!-- <td>箱号</td>-->
  5886. <!-- <td>铅封号</td>-->
  5887. <!-- <td>预计件数</td>-->
  5888. <!-- <td>实际件数</td>-->
  5889. <!-- <td>库位</td>-->
  5890. <!-- <td>实际入库日期</td>-->
  5891. <!-- <td>送货车号</td>-->
  5892. <!-- <td>送货司机</td>-->
  5893. <!-- <td>备注</td>-->
  5894. <!-- </tr>-->
  5895. <!-- <tr v-for="(item,index) in Printinglist" :key="index">-->
  5896. <!-- <td>{{item.fCntrno}}</td>-->
  5897. <!-- <td>{{item.fSealno}}</td>-->
  5898. <!-- <td>{{form.fPlanqty}}</td>-->
  5899. <!-- <td>{{item.fQty}}</td>-->
  5900. <!-- <td>{{item.fWarehouseInformation}}</td>-->
  5901. <!-- <td>{{item.fBsdate}}</td>-->
  5902. <!-- <td>{{item.fTruckno}}</td>-->
  5903. <!-- <td>{{item.fDriverName}}</td>-->
  5904. <!-- <td>{{item.remark}}</td>-->
  5905. <!-- </tr>-->
  5906. <!-- <tr>-->
  5907. <!-- <td colspan="3">合计:</td>-->
  5908. <!-- <td>{{allfQty}}</td>-->
  5909. <!-- <td></td>-->
  5910. <!-- <td></td>-->
  5911. <!-- <td></td>-->
  5912. <!-- <td></td>-->
  5913. <!-- <td></td>-->
  5914. <!-- </tr>-->
  5915. <!-- </table>-->
  5916. <!-- </div>-->
  5917. <!-- <div-->
  5918. <!-- style="display: flex; justify-content: space-between; font-size: 12px"-->
  5919. <!-- >-->
  5920. <!-- <div>操作:{{ form.createBy }}</div>-->
  5921. <!-- <div>库管:{{ form.fContacts }}</div>-->
  5922. <!-- <div style="width: 100px">叉车:</div>-->
  5923. <!-- </div>-->
  5924. <!-- </div>-->
  5925. <!-- <span slot="footer" class="dialog-footer">-->
  5926. <!-- <el-button-->
  5927. <!-- type="primary"-->
  5928. <!-- :disabled="browseStatus"-->
  5929. <!-- @click="-->
  5930. <!-- addprint('xhcdrkd');-->
  5931. <!-- print_xhcdrkd = false;-->
  5932. <!-- "-->
  5933. <!-- >打印-->
  5934. <!-- </el-button>-->
  5935. <!-- <el-button @click="print_xhcdrkd = false">取消 </el-button>-->
  5936. <!-- </span>-->
  5937. <!-- </el-dialog>-->
  5938. <!-- <el-dialog-->
  5939. <!-- :visible.sync="print_zpdkrkd"-->
  5940. <!-- width="70%"-->
  5941. <!-- :close-on-click-modal="false"-->
  5942. <!-- :modal="false"-->
  5943. <!-- >-->
  5944. <!-- <div id="print_area12" class="print-div">-->
  5945. <!-- <div-->
  5946. <!-- class="print-title"-->
  5947. <!-- style="-->
  5948. <!-- display: flex;-->
  5949. <!-- justify-content: center;-->
  5950. <!-- font-size: 24px;-->
  5951. <!-- margin-bottom: 5px;-->
  5952. <!-- "-->
  5953. <!-- >-->
  5954. <!-- {{ company }}货物标识卡-->
  5955. <!-- </div>-->
  5956. <!-- <div class="print_table" style="display: flex">-->
  5957. <!-- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%" >-->
  5958. <!-- <tr>-->
  5959. <!-- <td>货物名称</td>-->
  5960. <!-- <td colspan="2">{{form.goodName}}</td>-->
  5961. <!-- <td>库位</td>-->
  5962. <!-- <td colspan="2">{{ stockName}}</td>-->
  5963. <!-- </tr>-->
  5964. <!-- <tr>-->
  5965. <!-- <td>提单号</td>-->
  5966. <!-- <td colspan="2">{{form.fMblno}}</td>-->
  5967. <!-- <td>清单号</td>-->
  5968. <!-- <td colspan="2">{{ form.fCustomsdeclartion}}</td>-->
  5969. <!-- </tr>-->
  5970. <!-- <tr>-->
  5971. <!-- <td>箱号</td>-->
  5972. <!-- <td colspan="2"></td>-->
  5973. <!-- <td>总箱量</td>-->
  5974. <!-- <td colspan="2">{{ container}}</td>-->
  5975. <!-- </tr>-->
  5976. <!-- <tr>-->
  5977. <!-- <td>总件数</td>-->
  5978. <!-- <td colspan="2">{{form.fPlanqty}}</td>-->
  5979. <!-- <td>总净重</td>-->
  5980. <!-- <td colspan="2">{{ (form.fPlannetweight/1000).toFixed(2)}}</td>-->
  5981. <!-- </tr>-->
  5982. <!-- <tr>-->
  5983. <!-- <td>总毛重</td>-->
  5984. <!-- <td colspan="2">{{(form.fPlangrossweight/1000).toFixed(2)}}</td>-->
  5985. <!-- <td>本垛毛重</td>-->
  5986. <!-- <td colspan="2">{{(form.fPlangrossweight/1000).toFixed(2)}}</td>-->
  5987. <!-- </tr>-->
  5988. <!-- <tr>-->
  5989. <!-- <td>本垛件数</td>-->
  5990. <!-- <td colspan="2">{{form.fPlanqty}}</td>-->
  5991. <!-- <td>本垛净重</td>-->
  5992. <!-- <td colspan="2">{{ (form.fPlannetweight/1000).toFixed(2)}}</td>-->
  5993. <!-- </tr>-->
  5994. <!-- <tr>-->
  5995. <!-- <td>入库日期</td>-->
  5996. <!-- <td colspan="2">{{form.fBsdate}}</td>-->
  5997. <!-- <td>仓管员</td>-->
  5998. <!-- <td colspan="2">{{ form.createBy}}</td>-->
  5999. <!-- </tr>-->
  6000. <!-- <tr>-->
  6001. <!-- <td>出库日期</td>-->
  6002. <!-- <td>出库件数</td>-->
  6003. <!-- <td>剩余件数</td>-->
  6004. <!-- <td>出库仓管员</td>-->
  6005. <!-- <td>盘点日期</td>-->
  6006. <!-- <td>盘点人</td>-->
  6007. <!-- </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 ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6011. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6012. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6013. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6014. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6015. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6016. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6017. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6018. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6019. <!-- <tr ><td style="height:20px"></td><td></td><td></td><td></td><td></td><td></td></tr>-->
  6020. <!-- <tr>-->
  6021. <!-- <td>备注:</td>-->
  6022. <!-- <td colspan="5">{{form.remark}}</td>-->
  6023. <!-- </tr>-->
  6024. <!-- </table>-->
  6025. <!-- </div>-->
  6026. <!-- <div-->
  6027. <!-- style="display: flex; justify-content: space-between; font-size: 12px"-->
  6028. <!-- >-->
  6029. <!-- &lt;!&ndash; <div>操作:{{ form.createBy }}</div>&ndash;&gt;-->
  6030. <!-- <div>库管:{{ form.fContacts }}</div>-->
  6031. <!-- <div style="width: 100px">叉车:</div>-->
  6032. <!-- </div>-->
  6033. <!-- </div>-->
  6034. <!-- <span slot="footer" class="dialog-footer">-->
  6035. <!-- <el-button-->
  6036. <!-- type="primary"-->
  6037. <!-- :disabled="browseStatus"-->
  6038. <!-- @click="-->
  6039. <!-- addprint('fxdkrkd');-->
  6040. <!-- print_zpdkrkd = false;-->
  6041. <!-- "-->
  6042. <!-- >打印-->
  6043. <!-- </el-button>-->
  6044. <!-- <el-button @click="print_zpdkrkd = false">取消 </el-button>-->
  6045. <!-- </span>-->
  6046. <!-- </el-dialog>-->
  6047. <!-- 选择作业费协议数据 -->
  6048. <el-dialog
  6049. :visible.sync="print_dk"
  6050. width="70%"
  6051. :close-on-click-modal="false"
  6052. :modal="false"
  6053. >
  6054. <div id="print_area001" class="print-div">
  6055. <div
  6056. class="print-title"
  6057. style="
  6058. display: flex;
  6059. justify-content: center;
  6060. font-size: 24px;
  6061. margin-bottom: 5px;
  6062. "
  6063. >
  6064. 垛卡
  6065. </div>
  6066. <div class="print_table" style="display: flex">
  6067. <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
  6068. <tr>
  6069. <td>客户</td>
  6070. <td colspan="2">{{ form.fCorpidName }}</td>
  6071. <td>箱量</td>
  6072. <td v-if="Printinglist.length">{{ Printinglist[0].fCntqty }}</td>
  6073. <td v-else></td>
  6074. <td>车号</td>
  6075. <td>{{ form.fTruckno }}</td>
  6076. </tr>
  6077. <tr>
  6078. <td>提单号</td>
  6079. <td colspan="2">{{ form.fMblno }}</td>
  6080. <td>品名</td>
  6081. <td colspan="3">
  6082. {{ form.fGoodsid | goodsFormat(goodsOptions) }}
  6083. </td>
  6084. </tr>
  6085. <tr>
  6086. <td>箱号</td>
  6087. <td colspan="2" v-if="Printinglist.length">
  6088. {{ Printinglist[0].fCntrno }}
  6089. </td>
  6090. <td colspan="2" v-else></td>
  6091. <td>报关号</td>
  6092. <td colspan="3"></td>
  6093. </tr>
  6094. <tr>
  6095. <td>入库日期</td>
  6096. <td>入库件数</td>
  6097. <td>出库日期</td>
  6098. <td>出库件数</td>
  6099. <td>结余件数</td>
  6100. <td>区位</td>
  6101. <td>备注</td>
  6102. </tr>
  6103. <tr v-for="(item, index) in Printinglist" :key="index">
  6104. <td>{{ item.fBsdate }}</td>
  6105. <td>{{ item.fQty }}</td>
  6106. <td></td>
  6107. <td></td>
  6108. <td></td>
  6109. <td>{{ item.fWarehouseInformation }}</td>
  6110. <td>{{ item.remark }}</td>
  6111. </tr>
  6112. </table>
  6113. </div>
  6114. <div
  6115. style="display: flex; justify-content: space-between; font-size: 12px"
  6116. >
  6117. <div>操作:{{ form.createBy }}</div>
  6118. <div>司机:</div>
  6119. <div>理货:</div>
  6120. <div>掏箱叉车:</div>
  6121. <div style="width: 150px">码垛叉车:</div>
  6122. </div>
  6123. </div>
  6124. <span slot="footer" class="dialog-footer">
  6125. <el-button
  6126. type="primary"
  6127. :disabled="browseStatus"
  6128. @click="
  6129. addprint('001');
  6130. print_dk = false;
  6131. "
  6132. >打印
  6133. </el-button>
  6134. <el-button @click="print_dk = false">取消 </el-button>
  6135. </span>
  6136. </el-dialog>
  6137. <upload-excel
  6138. ref="upexcel"
  6139. :uploadExcelVisible="uploadExcel"
  6140. @changeShow="showAddOrUpdate2"
  6141. @adddetailList="adddetailList"
  6142. ></upload-excel>
  6143. <div style="display: flex; justify-content: flex-end; margin-top: 10px">
  6144. <!-- 弹窗, 新增 / 修改 -->
  6145. <add-or-update
  6146. v-if="addOrUpdateVisible"
  6147. ref="addOrUpdate"
  6148. @refreshDataList="getDataList"
  6149. ></add-or-update>
  6150. <approval-comments
  6151. v-if="addOrUpdateVisib"
  6152. ref="ApprovalComments"
  6153. @refreshDataList="returnData"
  6154. ></approval-comments>
  6155. <el-button
  6156. type="primary"
  6157. :disabled="approvalStatus"
  6158. v-if="form.fBillstatus > 3"
  6159. @click="addOrUpdateHandle(form, 'f_billstatus')"
  6160. >查看审批
  6161. </el-button
  6162. >
  6163. <el-button
  6164. type="primary"
  6165. v-if="approVal == true && form.fBillstatus >= 4 && form.fBillstatus < 6"
  6166. @click="addOrUpdateHand(form, 'f_billstatus')"
  6167. >审批
  6168. </el-button
  6169. >
  6170. <el-button
  6171. :disabled="browseStatus"
  6172. type="success"
  6173. prop="打印"
  6174. @click="print_shd = true"
  6175. >收货单
  6176. </el-button>
  6177. <el-button
  6178. :disabled="browseStatus"
  6179. type="warning"
  6180. prop="打印"
  6181. @click="print_rkd = true"
  6182. >入库单
  6183. </el-button>
  6184. <el-button @click="discharge" :disabled="browseStatus">卸货</el-button>
  6185. <el-button
  6186. type="info"
  6187. :disabled="browseStatus"
  6188. prop="打印"
  6189. @click="print_zyd = true"
  6190. >作业单
  6191. </el-button>
  6192. <el-button type="primary" @click="saveForm()"
  6193. >保 存
  6194. </el-button
  6195. >
  6196. <el-button
  6197. :disabled="form.fBillstatus > 3"
  6198. style="background-color: #008000; color: #fff"
  6199. @click="submitForm()"
  6200. >请核
  6201. </el-button>
  6202. <el-button type="danger" v-if="form.fBillstatus === 6" @click="revoke"
  6203. >撤销请核
  6204. </el-button
  6205. >
  6206. <el-button
  6207. type="danger"
  6208. v-if="form.fBillstatus === 4 && current == before"
  6209. :disabled="doNot"
  6210. @click="revokeTwo('f_billstatus')"
  6211. >撤销审批
  6212. </el-button
  6213. >
  6214. <el-button @click="cancel">取 消</el-button>
  6215. </div>
  6216. </div>
  6217. </template>
  6218. <script>
  6219. import print from "print-js";
  6220. import {selectUserByRole} from "@/api/basicdata/warehouse"
  6221. import {
  6222. addWhgenleg,
  6223. addJoblist,
  6224. disChargelist,
  6225. updateCredit,
  6226. listWarehousebills,
  6227. getWarehousebills,
  6228. delWarehousebills,
  6229. addWarehousebills,
  6230. addWarehouse,
  6231. exportWarehousebills,
  6232. revoke,
  6233. revokeTwo,
  6234. delinStock_s,
  6235. submitWarehousingApproval,
  6236. ordersRevoke,
  6237. checkCode,
  6238. queryClerkRoleList,
  6239. pleaseCheck,
  6240. feesCheck
  6241. } from "@/api/warehouseBusiness/warehouseInStock";
  6242. import {operationAgreement} from "@/api/agreement/agreement";
  6243. import {listCorps} from "@/api/basicdata/corps";
  6244. import {listFees, getFees} from "@/api/basicdata/fees";
  6245. import {
  6246. listWarehouse,
  6247. treeselect,
  6248. listWarehousesss,
  6249. } from "@/api/basicdata/warehouse";
  6250. import {listGoods} from "@/api/basicdata/goods";
  6251. import {listCntrs} from "@/api/basicdata/cntr";
  6252. import {listUser, queryUserVal} from "@/api/system/user";
  6253. import ApprovalComments from "@/views/startApproval";
  6254. import AddOrUpdate from "@/views/viewApproval";
  6255. import Treeselect from "@riophae/vue-treeselect";
  6256. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  6257. import UploadFile from "@/components/Uploadfile";
  6258. import Cookies from "js-cookie";
  6259. import {addSet, select, resetModule} from "@/api/system/set";
  6260. import draggable from "vuedraggable";
  6261. import upLoad from "../components/upLoad";
  6262. import incomeMoney from "../components/incomeMoney";
  6263. import payMoney from "../components/payMoney";
  6264. import uploadExcel from "./uploadExcel";
  6265. import { getDept } from "@/api/basicdata/dept";
  6266. export default {
  6267. name: "inStock",
  6268. props: {
  6269. chiId: {
  6270. type: Number,
  6271. required: null,
  6272. },
  6273. copyStatus: {
  6274. type: Number,
  6275. required: null,
  6276. },
  6277. },
  6278. components: {
  6279. UploadFile,
  6280. Treeselect,
  6281. AddOrUpdate,
  6282. ApprovalComments,
  6283. draggable,
  6284. upLoad,
  6285. incomeMoney,
  6286. payMoney,
  6287. uploadExcel
  6288. },
  6289. data() {
  6290. return {
  6291. radio: 1,
  6292. nowTime: null,
  6293. recordStatus: false,
  6294. timeOut: '',
  6295. plannedGrossWeight: 0,
  6296. container: '',
  6297. deliveryConfirmation: true,
  6298. cancelDelivery: true,
  6299. pageNum: 1,
  6300. pageSize: 10,
  6301. dialogWhgenlegList: [],
  6302. tasklegList: [],
  6303. Navigation: false,
  6304. key_id: "",
  6305. mblnoStatus: "",
  6306. selectloading: false,
  6307. fMblnoOptions: [],
  6308. warehouseDrList: [],
  6309. relevantAttachments: [],
  6310. warehouseCrList: [],
  6311. fStltypeOptions: [],
  6312. form: {},
  6313. rules: {
  6314. fDeptid: [{required: true, message: " ", trigger: "blur"}],
  6315. fMblno: [{required: true, message: " ", trigger: "blur"}],
  6316. fBsdeptid: [{required: true, message: " ", trigger: "blur"}],
  6317. fCorpid: [{required: true, message: " ", trigger: "blur"}],
  6318. fFeetUnit: [{required: true, message: " ", trigger: "blur"}],
  6319. fPlanqty: [{required: true, message: " ", trigger: "blur"}],
  6320. fPlangrossweight: [{required: true, message: " ", trigger: "blur"}],
  6321. fPlannetweight: [{required: true, message: " ", trigger: "blur"}],
  6322. fCustomno: [{required: true, message: " ", trigger: "blur"}],
  6323. // fChargedate: [{ required: true, message: " ", trigger: "blur" }],
  6324. fMarks: [{required: true, message: " ", trigger: "blur"}],
  6325. fBsdate: [{required: true, message: " ", trigger: "blur"}],
  6326. fTrademodeid: [{required: true, message: " ", trigger: "blur"}],
  6327. fBusinessType: [{required: true, message: " ", trigger: "blur"}],
  6328. fStorekeeper: {required: true, message: " ", trigger: "blur"},
  6329. fWarehouseid: [{required: true, message: " ", trigger: "blur"}],
  6330. fbillingway: [{required: true, message: " ", trigger: "blur"}],
  6331. fTocorpid: [{required: true, message: " ", trigger: "blur"}],
  6332. fGoodsid: [{required: true, message: " ", trigger: "blur"}],
  6333. },
  6334. imporRules: {
  6335. fBsdate: [{required: true, message: " ", trigger: "blur"}],
  6336. fQty: [{required: true, message: " ", trigger: "blur"}],
  6337. fGoodsid: [{required: true, message: " ", trigger: "blur"}],
  6338. fBusinessType: [{required: true, message: " ", trigger: "blur"}],
  6339. fMarks: [{required: true, message: " ", trigger: "blur"}],
  6340. fPackagespecs: [{required: false, message: " ", trigger: "blur"}],
  6341. fTruckno: [{required: false, message: " ", trigger: "blur"}],
  6342. },
  6343. browseStatus: false,
  6344. goodsOptions: [],
  6345. warehouseOptions: [],
  6346. userOptions: [],
  6347. businessTypeOption: [],
  6348. fCompanyOptIons: [],
  6349. fleetOptions: [],
  6350. fFeetUnitOptions: [],
  6351. current: "",
  6352. before: "",
  6353. isrequired: 2,
  6354. isrequired2: 2,
  6355. detailsHidden: false,
  6356. detailsHidden2: true,
  6357. fSalesmanOption: [],
  6358. CntrTable: [],
  6359. cntrList: [],
  6360. fTrademodeidOptions: [],
  6361. fIfweighOptions: [],
  6362. fIfpledgeOptions: [],
  6363. fSbuOptions: [],
  6364. Pledgebank: [],
  6365. collapselist: ["1"],
  6366. fStorageTypeOptions: [],
  6367. weightList: false,
  6368. importList: {},
  6369. sumMum: 0,
  6370. allfPlanqty: 0,
  6371. detailList: [],
  6372. fWarehouseidOptions: [],
  6373. print_zyd: false,
  6374. print_shd: false,
  6375. print_rkd: false,
  6376. print_lhd: false,
  6377. print_hwqr: false,
  6378. print_lwqr: false,
  6379. print_dpxx: false,
  6380. print_ccdzrkd: false,
  6381. print_fxdkrkd: false,
  6382. print_khrkd: false,
  6383. print_xhcdrkd: false,
  6384. print_zpdkrkd: false,
  6385. print_bzrkd: false,
  6386. print_bzrkd_js: false,
  6387. print_bzrkd_xq: false,
  6388. print_bzrkd_qt: false,
  6389. print_dk: false,
  6390. company: "",
  6391. Printinglist: [],
  6392. //库位
  6393. stockName: "",
  6394. //库位地址
  6395. stockaddr: "",
  6396. Collectionoptionss: [],
  6397. fDriverTel: "",
  6398. fBsdate: "",
  6399. fTruckno: "",
  6400. allfCntqty: 0,
  6401. allfGrossweight: 0,
  6402. allfNetweight: 0,
  6403. allfQty: 0,
  6404. fixdetaiNum: null,
  6405. dataListSelection: [],
  6406. dataWithdrawList: [],
  6407. title: "",
  6408. fCNameOptions: [],
  6409. fDNameOptions: [],
  6410. whgenlegTotal: 0,
  6411. fGrossweight: 0,
  6412. fQty: 0,
  6413. fNetweight: 0,
  6414. fCntqty: 0,
  6415. fActualWeight: 0,
  6416. activeIndex: "1",
  6417. ifCntrnoStatus: null,
  6418. addOrUpdateVisible: false,
  6419. addOrUpdateVisib: false,
  6420. approVal: false,
  6421. approvalStatus: false,
  6422. doNot: false,
  6423. stockoi: null,
  6424. unloadModes: [],
  6425. dataShowcar: null,
  6426. drag: false,
  6427. tableDate: [
  6428. {
  6429. surface: "0",
  6430. label: "fBillstatus",
  6431. name: "状态",
  6432. checked: 0,
  6433. width: 100,
  6434. },
  6435. {
  6436. surface: "1",
  6437. label: "fBsdate",
  6438. name: "入库日期",
  6439. checked: 0,
  6440. width: 100,
  6441. },
  6442. {
  6443. surface: "2",
  6444. label: "fMblno",
  6445. name: "提单号",
  6446. checked: 1,
  6447. width: 100,
  6448. },
  6449. {
  6450. surface: "3",
  6451. label: "fGoodsid",
  6452. name: "品名",
  6453. checked: 0,
  6454. width: 100,
  6455. },
  6456. {
  6457. surface: "4",
  6458. label: "fBusinessType",
  6459. name: "货物属性",
  6460. checked: 0,
  6461. width: 100,
  6462. },
  6463. {
  6464. surface: "5",
  6465. label: "fMarks",
  6466. name: "属性详情",
  6467. checked: 0,
  6468. width: 100,
  6469. },
  6470. {
  6471. surface: "6",
  6472. label: "fWarehouseInformation",
  6473. name: "库区",
  6474. checked: 0,
  6475. width: 100,
  6476. },
  6477. {
  6478. surface: "7",
  6479. label: "fCntrtype",
  6480. name: "箱型",
  6481. checked: 0,
  6482. width: 100,
  6483. },
  6484. {
  6485. surface: "8",
  6486. label: "fCntqty",
  6487. name: "箱量",
  6488. checked: 0,
  6489. width: 100,
  6490. }, {
  6491. surface: "9",
  6492. label: "fPlanqty",
  6493. name: "计划件数",
  6494. checked: 1,
  6495. width: 100,
  6496. }, {
  6497. surface: "10",
  6498. label: "fPlangrossweight",
  6499. name: "计划毛重",
  6500. checked: 1,
  6501. width: 100,
  6502. }, {
  6503. surface: "11",
  6504. label: "fPlannetweight",
  6505. name: "计划净重",
  6506. checked: 1,
  6507. width: 100,
  6508. },
  6509. {
  6510. surface: "12",
  6511. label: "fQty",
  6512. name: "入库件数",
  6513. checked: 0,
  6514. width: 100,
  6515. },
  6516. {
  6517. surface: "13",
  6518. label: "fGrossweight",
  6519. name: "入库毛重(kg)",
  6520. checked: 0,
  6521. width: 120,
  6522. },
  6523. {
  6524. surface: "14",
  6525. label: "fNetweight",
  6526. name: "入库净重(kg)",
  6527. checked: 0,
  6528. width: 120,
  6529. },
  6530. {
  6531. surface: "14",
  6532. label: "fActualWeight",
  6533. name: "溢短重(kg)",
  6534. checked: 0,
  6535. width: 120,
  6536. },
  6537. {
  6538. surface: "15",
  6539. label: "fPackagespecs",
  6540. name: "包装规格",
  6541. checked: 0,
  6542. width: 100,
  6543. },
  6544. {
  6545. surface: "16",
  6546. label: "fFleet",
  6547. name: "车队",
  6548. checked: 0,
  6549. width: 100,
  6550. },
  6551. {
  6552. surface: "17",
  6553. label: "fTruckno",
  6554. name: "车号",
  6555. checked: 0,
  6556. width: 100,
  6557. },
  6558. {
  6559. surface: "18",
  6560. label: "fDriverName",
  6561. name: "司机名称",
  6562. checked: 0,
  6563. width: 100,
  6564. },
  6565. {
  6566. surface: "19",
  6567. label: "fDriverTel",
  6568. name: "司机电话",
  6569. checked: 0,
  6570. width: 100,
  6571. },
  6572. {
  6573. surface: "20",
  6574. label: "fDriverIdCar",
  6575. name: "司机身份证",
  6576. checked: 0,
  6577. width: 120,
  6578. },
  6579. {
  6580. surface: "21",
  6581. label: "fSerialNumber",
  6582. name: "流水号",
  6583. checked: 0,
  6584. width: 100,
  6585. },
  6586. {
  6587. surface: "22",
  6588. label: "fCntrno",
  6589. name: "箱号",
  6590. checked: 0,
  6591. width: 100,
  6592. },
  6593. {
  6594. surface: "23",
  6595. label: "fLntype",
  6596. name: "装卸方式",
  6597. checked: 0,
  6598. width: 100,
  6599. },
  6600. {
  6601. surface: "24",
  6602. label: "fForkliftman",
  6603. name: "叉车工",
  6604. checked: 0,
  6605. width: 100,
  6606. },
  6607. {
  6608. surface: "25",
  6609. label: "fStevedore",
  6610. name: "装卸工",
  6611. checked: 0,
  6612. width: 100,
  6613. },
  6614. {
  6615. surface: "26",
  6616. label: "fLocalcntrno",
  6617. name: "库内箱号",
  6618. checked: 0,
  6619. width: 100,
  6620. },
  6621. {
  6622. surface: "27",
  6623. label: "fSealno",
  6624. name: "封号",
  6625. checked: 0,
  6626. width: 100,
  6627. },
  6628. {
  6629. surface: "28",
  6630. label: "fGoodsval",
  6631. name: "货值",
  6632. checked: 0,
  6633. width: 100,
  6634. },
  6635. {
  6636. surface: "29",
  6637. label: "fChargedate",
  6638. name: "仓储费日期",
  6639. checked: 0,
  6640. width: 100,
  6641. },
  6642. {
  6643. surface: "30",
  6644. label: "remark",
  6645. name: "备注",
  6646. checked: 0,
  6647. width: 100,
  6648. },
  6649. ],
  6650. setRowList: [],
  6651. getRowList: [],
  6652. allCheck: false,
  6653. showSetting: false,
  6654. tfNetweightnum: 0,
  6655. tfGrossweightnum: 0,
  6656. tfNetweightnum2: 0,
  6657. tfGrossweightnum2: 0,
  6658. deptOptions: [],
  6659. battributionList: [],
  6660. delementsList: [],
  6661. ifinspectionList: [],
  6662. ifsamplingList: [],
  6663. ifweightRecoveryList: [],
  6664. showApproval: null,
  6665. downloadTemplateVisible: false,
  6666. uploadExcel: false,
  6667. rkTime: null,
  6668. lsTime: null,
  6669. showfCustomno: false,
  6670. showfBusinessAttribution: [],
  6671. showfIfsampling: null,
  6672. showfWeighingDate: null,
  6673. showfValue: 0,
  6674. showfIfinspection: null,
  6675. showfPartNumber: null,
  6676. newPlan: 1,
  6677. entryPrinting: 1,
  6678. weighedRequired: 1,
  6679. inTime: '',
  6680. bring: null
  6681. };
  6682. },
  6683. created() {
  6684. this.setRowList = this.tableDate;
  6685. this.getRowList = this.tableDate.filter((e) => e.checked == 0);
  6686. this.getDicts("data_stltype_type").then((response) => {
  6687. this.fStltypeOptions = response.data;
  6688. });
  6689. this.getDicts("st_in_type").then((response) => {
  6690. this.businessTypeOption = response.data;
  6691. localStorage.setItem("businessTypeList", JSON.stringify(response.data));
  6692. });
  6693. this.getDicts("data_unitfees").then((response) => {
  6694. this.fFeetUnitOptions = response.data;
  6695. });
  6696. this.getDicts("data_trademodes").then((response) => {
  6697. this.fTrademodeidOptions = response.data;
  6698. });
  6699. this.getDicts("data_ifweigh_status").then((response) => {
  6700. this.fIfweighOptions = response.data;
  6701. });
  6702. this.getDicts("data_ifweigh_status").then((response) => {
  6703. this.fIfpledgeOptions = response.data;
  6704. });
  6705. this.getDicts("storage_type").then((response) => {
  6706. this.fStorageTypeOptions = response.data;
  6707. localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
  6708. });
  6709. this.getDicts("unload_mode").then((response) => {
  6710. this.unloadModes = response.data;
  6711. });
  6712. this.getDicts("f_declaration_elements").then((response) => {
  6713. this.delementsList = response.data;
  6714. });
  6715. this.getDicts("data_ifweigh_status").then((response) => {
  6716. this.ifinspectionList = response.data;
  6717. });
  6718. this.getDicts("data_ifweigh_status").then((response) => {
  6719. this.ifsamplingList = response.data;
  6720. });
  6721. this.getDicts("data_ifweigh_status").then((response) => {
  6722. this.ifweightRecoveryList = response.data;
  6723. });
  6724. this.getConfigKey("stockoi").then((response) => {
  6725. this.stockoi = response.msg;
  6726. });
  6727. this.getConfigKey("entry.printing").then((response) => {
  6728. this.entryPrinting = response.msg;
  6729. });
  6730. this.getConfigKey("weighed.Required").then((response) => {
  6731. this.weighedRequired = response.msg;
  6732. });
  6733. this.getConfigKey("new.plan").then((response) => {
  6734. this.newPlan = response.msg;
  6735. });
  6736. this.getConfigKey("show_fCustomno").then((response) => {
  6737. this.showfCustomno = response.msg;
  6738. });
  6739. this.getConfigKey("show_fBusinessAttribution").then((response) => {
  6740. this.showfBusinessAttribution = response.msg;
  6741. });
  6742. this.getConfigKey("show_fIfinspection").then((response) => {
  6743. this.showfIfinspection = response.msg;
  6744. });
  6745. this.getConfigKey("warehouse.inStock.bring").then((response) => {
  6746. this.bring = response.msg;
  6747. });
  6748. //货值是否显示
  6749. // this.getConfigKey("show_fValue").then((response) => {
  6750. // this.showfValue = response.msg;
  6751. // });
  6752. this.getConfigKey("show_fWeighingDate").then((response) => {
  6753. this.showfWeighingDate = response.msg;
  6754. });
  6755. this.getConfigKey("show_fIfsampling").then((response) => {
  6756. this.showfIfsampling = response.msg;
  6757. });
  6758. this.getConfigKey("show_fPartNumber").then((response) => {
  6759. this.showfPartNumber = response.msg;
  6760. });
  6761. this.getConfigKey("data_showcar").then((response) => {
  6762. console.log(response.msg)
  6763. this.dataShowcar = response.msg;
  6764. if (this.dataShowcar == "0") {
  6765. this.detailsHidden2 = false;
  6766. } else {
  6767. this.detailsHidden2 = true;
  6768. }
  6769. });
  6770. this.getConfigKey("instock.orders.approval").then((response) => {
  6771. this.showApproval = response.msg;
  6772. });
  6773. // 业务员获取
  6774. selectUserByRole().then(res => {
  6775. this.fSalesmanOption = res.rows
  6776. })
  6777. listWarehousesss({fStatus: 0, delFlag: 0}).then((response) => {
  6778. this.warehouseOptions = response.rows;
  6779. });
  6780. listFees({fDc: "C"}).then((response) => {
  6781. this.fCNameOptions = response.rows;
  6782. });
  6783. listFees({fDc: "D"}).then((response) => {
  6784. this.fDNameOptions = response.rows;
  6785. });
  6786. listCorps({type: 1}).then((response) => {
  6787. this.fMblnoOptions = response.rows;
  6788. });
  6789. listCorps().then((response) => {
  6790. this.fSbuOptions = response.rows;
  6791. });
  6792. listCorps({type: 5}).then((response) => {
  6793. this.Pledgebank = response.rows;
  6794. });
  6795. queryClerkRoleList().then((response) => {
  6796. this.userOptions = response.data;
  6797. });
  6798. listGoods({fStatus: 0, delFlag: 0}).then((response) => {
  6799. this.goodsOptions = response.rows;
  6800. });
  6801. listCntrs({fStatus: "T"}).then((response) => {
  6802. this.cntrList = response.rows;
  6803. });
  6804. listCorps({fTypeid: 6}).then((response) => {
  6805. this.fCompanyOptIons = response.rows;
  6806. });
  6807. listCorps({fTypeid: 7}).then((response) => {
  6808. this.battributionList = response.rows;
  6809. });
  6810. listCorps({fTypeid: 2}).then((response) => {
  6811. this.fleetOptions = response.rows;
  6812. });
  6813. this.company = Cookies.get("companyName")
  6814. this.queryUser();
  6815. this.getRow();
  6816. },
  6817. filters: {
  6818. fStorageFormat(row) {
  6819. let name;
  6820. for (const item of JSON.parse(localStorage.getItem("fStorageTypeList"))) {
  6821. if (row == item.dictValue) {
  6822. name = item.dictLabel;
  6823. }
  6824. }
  6825. return name;
  6826. },
  6827. fBusinessTypeFormat(row) {
  6828. let name;
  6829. for (const item of JSON.parse(localStorage.getItem("businessTypeList"))) {
  6830. if (row == item.dictValue) {
  6831. name = item.dictLabel;
  6832. }
  6833. }
  6834. return name;
  6835. },
  6836. fStorageTypeFormat(row, fStorageTypeOptions) {
  6837. let fStorageType;
  6838. fStorageTypeOptions.map((e) => {
  6839. if (row == e.dictValue) {
  6840. fStorageType = e.dictLabel;
  6841. }
  6842. });
  6843. return fStorageType;
  6844. },
  6845. fCntrtypeFormat(row, cntrList) {
  6846. let fCntrtype;
  6847. cntrList.map((e) => {
  6848. if (row == e.fId) {
  6849. fCntrtype = e.fName;
  6850. }
  6851. });
  6852. return fCntrtype;
  6853. },
  6854. storekeeper(row, userOptions) {
  6855. let name;
  6856. userOptions.map((e) => {
  6857. if (row == e.userName) {
  6858. name = e.nickName;
  6859. }
  6860. });
  6861. return name;
  6862. },
  6863. goodsFormat(row, goodsOptions) {
  6864. let goods;
  6865. goodsOptions.map((e) => {
  6866. if (row == e.fId) {
  6867. goods = e.fName;
  6868. }
  6869. });
  6870. return goods;
  6871. },
  6872. warehouseFormat(row, warehouseOptions) {
  6873. let warehouse;
  6874. warehouseOptions.map((e) => {
  6875. if (row == e.fId) {
  6876. warehouse = e.fName;
  6877. }
  6878. });
  6879. return warehouse;
  6880. },
  6881. fLntypeFormat(row, unloadModes) {
  6882. let name;
  6883. unloadModes.map((e) => {
  6884. if (row == e.dictValue) {
  6885. name = e.dictLabel;
  6886. }
  6887. });
  6888. return name;
  6889. },
  6890. fFleetFormat(row, fleetOptions) {
  6891. let name;
  6892. fleetOptions.map((e) => {
  6893. if (row == e.fId) {
  6894. name = e.fName;
  6895. }
  6896. });
  6897. return name;
  6898. },
  6899. fBsdateFormat(row) {
  6900. if (row) {
  6901. const dateMat = new Date(row);
  6902. const year = dateMat.getFullYear();
  6903. const month = dateMat.getMonth() + 1;
  6904. const day = dateMat.getDate();
  6905. const timeFormat = year + "-" + month + "-" + day;
  6906. return timeFormat;
  6907. }
  6908. },
  6909. fBillstatusFormat(row) {
  6910. let Name;
  6911. switch (row) {
  6912. case 10:
  6913. Name = "计划";
  6914. break;
  6915. case 20:
  6916. Name = "待入库";
  6917. break;
  6918. case 30:
  6919. Name = "入库中";
  6920. break;
  6921. default:
  6922. Name = "已入库";
  6923. }
  6924. return Name;
  6925. },
  6926. fFeetFormat(row, fCNameOptions) {
  6927. let name;
  6928. fCNameOptions.map((e) => {
  6929. if (row == e.fId) {
  6930. name = e.fName;
  6931. }
  6932. });
  6933. return name;
  6934. },
  6935. },
  6936. methods: {
  6937. init() {
  6938. this.approVal = false;
  6939. this.resetForm("form");
  6940. this.resetForm("importList");
  6941. this.detailList = [];
  6942. this.relevantAttachments = [];
  6943. this.warehouseCrList = [];
  6944. this.warehouseDrList = [];
  6945. this.CntrTable = [];
  6946. this.sumMum = 0;
  6947. if (this.dataShowcar == "0") {
  6948. this.detailsHidden2 = false;
  6949. } else {
  6950. this.detailsHidden2 = true;
  6951. }
  6952. if (this.$route.query.id) {
  6953. this.approVal = true;
  6954. this.$router.push({query: {}});
  6955. }
  6956. this.getForm();
  6957. },
  6958. reset() {
  6959. this.importList = {
  6960. fBillstatus: null,
  6961. fMblno: null,
  6962. fQty: null,
  6963. fNetweight: null,
  6964. fGrossweight: null,
  6965. fBsdate: null,
  6966. fGoodsid: null,
  6967. fBusinessType: null,
  6968. fMarks: null,
  6969. fWarehouselocid: null,
  6970. fWarehouseInformation: null,
  6971. fCntrtype: null,
  6972. fCntqty: null,
  6973. fPackagespecs: null,
  6974. fTruckno: null,
  6975. fDriverName: null,
  6976. fDriverTel: null,
  6977. fDriverIdCar: null,
  6978. fSerialNumber: null,
  6979. fCntrno: null,
  6980. fGoodsval: null,
  6981. remark: null,
  6982. };
  6983. },
  6984. tfNetweight(row) {
  6985. this.tfNetweightnum = (row / 1000).toFixed(4);
  6986. },
  6987. tfNetweight2(row) {
  6988. this.tfNetweightnum2 = (row / 1000).toFixed(4);
  6989. },
  6990. tfGrossweight(row) {
  6991. this.tfGrossweightnum = (row / 1000).toFixed(4);
  6992. },
  6993. tfGrossweight2(row) {
  6994. this.tfGrossweightnum2 = (row / 1000).toFixed(4);
  6995. },
  6996. //列设置全选
  6997. allChecked() {
  6998. if (this.allCheck == true) {
  6999. this.setRowList.map((e) => {
  7000. return (e.checked = 0);
  7001. });
  7002. } else {
  7003. this.setRowList.map((e) => {
  7004. return (e.checked = 1);
  7005. });
  7006. }
  7007. },
  7008. tishi() {
  7009. return this.$message.error("正在开发中");
  7010. },
  7011. //查询列数据
  7012. getRow() {
  7013. let that = this;
  7014. this.data = {
  7015. tableName: "入库明细",
  7016. userId: Cookies.get("userName"),
  7017. };
  7018. select(this.data).then((res) => {
  7019. if (res.data.length != 0) {
  7020. this.getRowList = res.data.filter((e) => e.checked == 0);
  7021. this.setRowList = res.data;
  7022. this.setRowList = this.setRowList.reduce((res, item) => {
  7023. res.push({
  7024. surface: item.surface,
  7025. label: item.label,
  7026. name: item.name,
  7027. checked: item.checked,
  7028. width: item.width,
  7029. fixed: item.fixed,
  7030. });
  7031. return res;
  7032. }, []);
  7033. }
  7034. });
  7035. },
  7036. //重置列表
  7037. delRow() {
  7038. this.data = {
  7039. tableName: "入库明细",
  7040. userId: Cookies.get("userName"),
  7041. };
  7042. resetModule(this.data).then((res) => {
  7043. if (res.code == 200) {
  7044. this.showSetting = false;
  7045. this.setRowList = this.$options.data().tableDate;
  7046. this.getRowList = this.$options
  7047. .data()
  7048. .tableDate.filter((e) => e.checked == 0);
  7049. }
  7050. });
  7051. },
  7052. //保存列设置
  7053. save() {
  7054. this.showSetting = false;
  7055. this.data = {
  7056. tableName: "入库明细",
  7057. userId: Cookies.get("userName"),
  7058. sysTableSetList: this.setRowList,
  7059. };
  7060. addSet(this.data).then((res) => {
  7061. if (res.code == 200) {
  7062. this.showSetting = false;
  7063. this.getRowList = this.setRowList.filter((e) => e.checked == 0);
  7064. }
  7065. });
  7066. },
  7067. //开始拖拽事件
  7068. onStart() {
  7069. this.drag = true;
  7070. },
  7071. //拖拽结束事件
  7072. onEnd() {
  7073. this.drag = false;
  7074. },
  7075. //撤销请核
  7076. revoke() {
  7077. revoke(this.form.fId).then(async (data) => {
  7078. if (data.code === 200) {
  7079. this.browseStatus = false;
  7080. await getWarehousebills(this.form.fId).then((response) => {
  7081. this.TFformdata(response.data.warehousebills);
  7082. if (!this.copyStatus || this.recordStatus === true) {
  7083. if (response.data.warehouseBillsItem) {
  7084. response.data.warehouseBillsItem.map((e) => {
  7085. e.fLntype = e.fLntype ? e.fLntype.toString() : null;
  7086. });
  7087. this.detailList = response.data.warehouseBillsItem;
  7088. } else {
  7089. this.detailList = [];
  7090. }
  7091. response.data.warehousebillsfeesCr.map((e) => {
  7092. if (e.fFeeunitid) {
  7093. e.fFeeUnitid = e.fFeeunitid.toString();
  7094. }
  7095. if (e.fStltypeid || e.fStltypeid == 0) {
  7096. e.fStltypeid = e.fStltypeid.toString();
  7097. }
  7098. });
  7099. this.warehouseCrList = response.data.warehousebillsfeesCr;
  7100. response.data.warehousebillsfeesDr.map((e) => {
  7101. if (e.fFeeunitid) {
  7102. e.fFeeUnitid = e.fFeeunitid.toString();
  7103. }
  7104. if (e.fStltypeid || e.fStltypeid == 0) {
  7105. e.fStltypeid = e.fStltypeid.toString();
  7106. }
  7107. });
  7108. this.warehouseDrList = response.data.warehousebillsfeesDr;
  7109. if (response.data.tCntrList) {
  7110. this.CntrTable = response.data.tCntrList;
  7111. } else {
  7112. this.CntrTable = [];
  7113. }
  7114. if (response.data.enclosures) {
  7115. this.relevantAttachments = response.data.enclosures;
  7116. }
  7117. } else {
  7118. this.approvalStatus = false;
  7119. this.browseStatus = false;
  7120. this.$set(this.form, "fId", null);
  7121. this.$set(this.form, "fMblno", null);
  7122. this.$set(this.form, "fMarks", null);
  7123. this.$set(this.form, "fProductName", null);
  7124. this.$set(this.form, "warehouseStatus", null);
  7125. this.$set(this.form, "fBillstatus", null);
  7126. this.$set(this.form, "fItemsStatus", null);
  7127. this.$set(this.form, "fNetweight", 0);
  7128. this.$set(this.form, "fPlanvolumn", 0);
  7129. this.$set(this.form, "fGrossweight", 0);
  7130. // this.recordStatus = true
  7131. }
  7132. });
  7133. this.warehouseCrList.forEach((item, index) => {
  7134. if (item.fQty != 0 && item.fUnitprice !== 0 && item.fAmount !==0) {
  7135. item.fBillstatus = 6;
  7136. }
  7137. })
  7138. let formData = new window.FormData();
  7139. formData.append("tWarehouseBills", JSON.stringify(this.form));
  7140. // 库存明细
  7141. formData.append("tWarehousebillsitems",JSON.stringify(this.detailList));
  7142. // 附件数据
  7143. formData.append("tEnclosure",JSON.stringify(this.relevantAttachments));
  7144. // 费用明细付款
  7145. formData.append("tWarehousebillsfeesCr",JSON.stringify(this.warehouseCrList));
  7146. // 收款
  7147. formData.append("tWarehousebillsfeesDr",JSON.stringify(this.warehouseDrList));
  7148. formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
  7149. formData.append("tCntr", JSON.stringify(this.CntrTable));
  7150. addWarehousebills(formData).then(res => {})
  7151. this.msgSuccess("撤销成功");
  7152. }
  7153. });
  7154. },
  7155. ordersRevoke() {
  7156. ordersRevoke(this.form.fId).then((data) => {
  7157. if (data.code === 200) {
  7158. this.$set(this.form, "warehouseStatus", 2);
  7159. this.msgSuccess("撤销成功");
  7160. }
  7161. });
  7162. },
  7163. //撤销审批
  7164. revokeTwo(status) {
  7165. let data = {
  7166. actId: 110,
  7167. billId: this.form.fId,
  7168. id: this.form.fId,
  7169. fidStatus: status,
  7170. };
  7171. revokeTwo(data).then((data) => {
  7172. if (data.code === 200) {
  7173. this.browseStatus = false;
  7174. this.msgSuccess("撤销成功");
  7175. if (status) {
  7176. this.$set(this.form, "warehouseStatus", 2);
  7177. this.$set(this.form, "fBillstatus", 2);
  7178. }
  7179. }
  7180. });
  7181. },
  7182. // 查看审批流
  7183. getDataList() {
  7184. this.addOrUpdateVisible = false;
  7185. },
  7186. returnData() {
  7187. this.addOrUpdateVisib = false;
  7188. this.$router.push({path: "/index"});
  7189. },
  7190. addOrUpdateHandle(form, status) {
  7191. this.addOrUpdateVisible = true;
  7192. let actId = "110";
  7193. this.$nextTick(() => {
  7194. this.$refs.addOrUpdate.init(form.fId, actId, status);
  7195. });
  7196. },
  7197. addOrUpdateHand(form, status) {
  7198. this.addOrUpdateVisib = true;
  7199. this.$nextTick(() => {
  7200. this.$refs.ApprovalComments.init(form.fId, status, 110);
  7201. });
  7202. },
  7203. changefStltype(row) {
  7204. this.fMblnoOptions.map((e) => {
  7205. if (row == e.fId) {
  7206. this.$set(
  7207. this.form,
  7208. "fStltypeid",
  7209. e.fStltypeid ? e.fStltypeid.toString() : null
  7210. );
  7211. }
  7212. });
  7213. },
  7214. changeGoods(row) {
  7215. this.goodsOptions.map((e) => {
  7216. if (row == e.fId) {
  7217. if (e.ifCntrno == "1") {
  7218. this.ifCntrnoStatus = 1;
  7219. } else {
  7220. this.ifCntrnoStatus = null;
  7221. }
  7222. }
  7223. });
  7224. },
  7225. discharge() {
  7226. let checkData = {
  7227. fId: this.form.fId,
  7228. fType: "warehouse",
  7229. codeVal: this.form.fDateChanged,
  7230. };
  7231. checkCode(checkData).then((response) => {
  7232. if (!response) {
  7233. this.$confirm("数据发生变化,请更新一下数据?", "提示", {
  7234. confirmButtonText: "确认",
  7235. cancelButtonText: "取消",
  7236. type: "warning",
  7237. }).then(() => {
  7238. this.getForm();
  7239. });
  7240. } else {
  7241. if (this.Printinglist.length > 0) {
  7242. for (let item in this.Printinglist) {
  7243. if (this.Printinglist[item].fBillstatus === 10) {
  7244. return this.$message.error("请先打印作业单");
  7245. }
  7246. if (this.Printinglist[item].fBillstatus >= 30 && this.stockoi == "0") {
  7247. return this.$message.error("请勿重复装货");
  7248. }
  7249. }
  7250. if (this.CntrTable.length > 0) {
  7251. let arr = [];
  7252. this.CntrTable.map((e) => {
  7253. this.cntrList.map((item) => {
  7254. if (item.fId == e.fCntrid) {
  7255. arr.push(item.fName + "X" + e.fCntrcount);
  7256. }
  7257. });
  7258. });
  7259. arr = [...new Set(arr)];
  7260. this.form.fCntval = arr.join(",");
  7261. } else {
  7262. this.form.fCntval = null;
  7263. }
  7264. if (this.detailList.length > 0) {
  7265. let arr = [];
  7266. this.detailList.map((e) => {
  7267. this.goodsOptions.map((item) => {
  7268. if (e.fGoodsid == item.fId) {
  7269. arr.push(item.fName);
  7270. }
  7271. });
  7272. });
  7273. arr = [...new Set(arr)];
  7274. this.form.fProductName = arr.join(",");
  7275. } else {
  7276. this.form.fProductName = "";
  7277. }
  7278. if (this.detailList.length > 0) {
  7279. let arr = [];
  7280. this.detailList.map((e) => {
  7281. arr.push(e.fMarks);
  7282. });
  7283. arr = [...new Set(arr)];
  7284. this.form.fMarks = arr.join(",");
  7285. } else {
  7286. this.form.fMarks = "";
  7287. }
  7288. if (this.detailList.length == 0) {
  7289. this.form.fNetweight = 0;
  7290. this.form.fPlanvolumn = 0;
  7291. this.form.fGrossweight = 0;
  7292. } else {
  7293. this.form.fNetweight = this.fNetweight;
  7294. this.form.fPlanvolumn = this.fPlanvolumn;
  7295. this.form.fGrossweight = this.fGrossweight;
  7296. }
  7297. let formData = new window.FormData();
  7298. formData.append("warehouseBills", JSON.stringify(this.form));
  7299. formData.append(
  7300. "tEnclosure",
  7301. JSON.stringify(this.relevantAttachments)
  7302. );
  7303. formData.append(
  7304. "warehousebillsitems",
  7305. JSON.stringify(this.Printinglist)
  7306. );
  7307. formData.append(
  7308. "warehousebillsfeesDr",
  7309. JSON.stringify(this.warehouseDrList)
  7310. );
  7311. formData.append(
  7312. "warehousebillsfeesCr",
  7313. JSON.stringify(this.warehouseCrList)
  7314. );
  7315. formData.append("tCntr", JSON.stringify(this.CntrTable));
  7316. disChargelist(formData).then((response) => {
  7317. this.$set(this.form, "fDateChanged", response.data.fDateChanged);
  7318. if ((response.code = 200)) {
  7319. this.detailList.map((e, index) => {
  7320. response.data.warehousebillsitems.map((item) => {
  7321. if (e.fId == item.fId) {
  7322. e = item;
  7323. this.$set(this.detailList, index, e);
  7324. }
  7325. });
  7326. });
  7327. this.msgSuccess("卸货成功");
  7328. this.$set(this.form, "fItemsStatus", 3);
  7329. }
  7330. });
  7331. } else {
  7332. this.$message.error("请选择需要卸货的明细!");
  7333. }
  7334. }
  7335. });
  7336. },
  7337. creditClick() {
  7338. let checkData = {
  7339. fId: this.form.fId,
  7340. fType: "warehouse",
  7341. codeVal: this.form.fDateChanged,
  7342. };
  7343. checkCode(checkData).then((response) => {
  7344. if (!response) {
  7345. this.$confirm("数据发生变化,请更新一下数据?", "提示", {
  7346. confirmButtonText: "确认",
  7347. cancelButtonText: "取消",
  7348. type: "warning",
  7349. }).then(() => {
  7350. this.getForm();
  7351. });
  7352. } else {
  7353. for (let item in this.Printinglist) {
  7354. if (!this.Printinglist[item].fId) {
  7355. return this.$message.error("请存在未保存的数据");
  7356. }
  7357. if (this.entryPrinting == 0) {
  7358. if (this.Printinglist[item].fBillstatus == 10 && this.stockoi == "0") return this.$message.error("请存在未打印的作业单");
  7359. }
  7360. if (
  7361. this.Printinglist[item].fBillstatus == 20 &&
  7362. this.stockoi == "0"
  7363. ) {
  7364. return this.$message.error("请存在未卸货的数据");
  7365. }
  7366. }
  7367. if (this.CntrTable.length > 0) {
  7368. let arr = [];
  7369. this.CntrTable.map((e) => {
  7370. this.cntrList.map((item) => {
  7371. if (item.fId == e.fCntrid) {
  7372. arr.push(item.fName + "X" + e.fCntrcount);
  7373. }
  7374. });
  7375. });
  7376. arr = [...new Set(arr)];
  7377. this.form.fCntval = arr.join(",");
  7378. } else {
  7379. this.form.fCntval = null;
  7380. }
  7381. if (this.detailList.length > 0) {
  7382. let arr = [];
  7383. this.detailList.map((e) => {
  7384. this.goodsOptions.map((item) => {
  7385. if (e.fGoodsid == item.fId) {
  7386. arr.push(item.fName);
  7387. }
  7388. });
  7389. });
  7390. arr = [...new Set(arr)];
  7391. this.form.fProductName = arr.join(",");
  7392. } else {
  7393. this.form.fProductName = "";
  7394. }
  7395. if (this.detailList.length > 0) {
  7396. let arr = [];
  7397. this.detailList.map((e) => {
  7398. arr.push(e.fMarks);
  7399. });
  7400. arr = [...new Set(arr)];
  7401. this.form.fMarks = arr.join(",");
  7402. } else {
  7403. this.form.fMarks = "";
  7404. }
  7405. if (this.detailList.length == 0) {
  7406. this.form.fNetweight = 0;
  7407. this.form.fPlanvolumn = 0;
  7408. this.form.fGrossweight = 0;
  7409. } else {
  7410. this.form.fNetweight = this.fNetweight;
  7411. this.form.fPlanvolumn = this.fPlanvolumn;
  7412. this.form.fGrossweight = this.fGrossweight;
  7413. }
  7414. for (let item in this.Printinglist){
  7415. this.Printinglist[item].fBillingway = this.form.fFeetUnit
  7416. }
  7417. this.form.fFeetunit = this.form.fFeetUnit
  7418. let formData = new window.FormData();
  7419. formData.append("warehouseBills", JSON.stringify(this.form));
  7420. formData.append(
  7421. "warehousebillsitems",
  7422. JSON.stringify(this.Printinglist)
  7423. );
  7424. formData.append(
  7425. "warehousebillsfeesDr",
  7426. JSON.stringify(this.warehouseDrList)
  7427. );
  7428. formData.append(
  7429. "warehousebillsfeesCr",
  7430. JSON.stringify(this.warehouseCrList)
  7431. );
  7432. formData.append(
  7433. "tEnclosure",
  7434. JSON.stringify(this.relevantAttachments)
  7435. );
  7436. formData.append("whgenleg", JSON.stringify(this.relevantAttachments));
  7437. formData.append("tCntr", JSON.stringify(this.CntrTable));
  7438. addWhgenleg(formData).then((response) => {
  7439. if ((response.code = 200)) {
  7440. this.$set(this.form, "fDateChanged", response.data.fDateChanged);
  7441. this.TFformdata(response.data.warehousebills);
  7442. this.detailList.map((e, index) => {
  7443. response.data.warehousebillsitems.map((item) => {
  7444. if (e.fId == item.fId) {
  7445. e = item;
  7446. this.$set(this.detailList, index, e);
  7447. }
  7448. });
  7449. });
  7450. this.msgSuccess("入库成功");
  7451. this.$set(this.form, "fItemsStatus", 4);
  7452. }
  7453. });
  7454. }
  7455. });
  7456. },
  7457. // 撤回入账
  7458. withdrawClick() {
  7459. let checkData = {
  7460. fId: this.form.fId,
  7461. fType: "warehouse",
  7462. codeVal: this.form.fDateChanged,
  7463. };
  7464. checkCode(checkData).then((response) => {
  7465. if (!response) {
  7466. this.$confirm("数据发生变化,请更新一下数据?", "提示", {
  7467. confirmButtonText: "确认",
  7468. cancelButtonText: "取消",
  7469. type: "warning",
  7470. }).then(() => {
  7471. this.getForm();
  7472. });
  7473. } else {
  7474. for (let item in this.Printinglist) {
  7475. if (!this.Printinglist[item].fId) {
  7476. return this.$message.error("请存在未保存的数据");
  7477. }
  7478. if (this.Printinglist[item].fBillstatus == 10) {
  7479. return this.$message.error("请存在未打印的作业单");
  7480. }
  7481. if (this.Printinglist[item].fBillstatus == 20) {
  7482. return this.$message.error("请存在未卸货的数据");
  7483. }
  7484. if (this.Printinglist[item].fBillstatus == 30) {
  7485. return this.$message.error("请存在未入库的数据");
  7486. }
  7487. }
  7488. if (this.CntrTable.length > 0) {
  7489. let arr = [];
  7490. this.CntrTable.map((e) => {
  7491. this.cntrList.map((item) => {
  7492. if (item.fId == e.fCntrid) {
  7493. arr.push(item.fName + "X" + e.fCntrcount);
  7494. }
  7495. });
  7496. });
  7497. arr = [...new Set(arr)];
  7498. this.form.fCntval = arr.join(",");
  7499. } else {
  7500. this.form.fCntval = null;
  7501. }
  7502. if (this.detailList.length > 0) {
  7503. let arr = [];
  7504. this.detailList.map((e) => {
  7505. this.goodsOptions.map((item) => {
  7506. if (e.fGoodsid == item.fId) {
  7507. arr.push(item.fName);
  7508. }
  7509. });
  7510. });
  7511. arr = [...new Set(arr)];
  7512. this.form.fProductName = arr.join(",");
  7513. } else {
  7514. this.form.fProductName = "";
  7515. }
  7516. if (this.detailList.length > 0) {
  7517. let arr = [];
  7518. this.detailList.map((e) => {
  7519. arr.push(e.fMarks);
  7520. });
  7521. arr = [...new Set(arr)];
  7522. this.form.fMarks = arr.join(",");
  7523. } else {
  7524. this.form.fMarks = "";
  7525. }
  7526. if (this.detailList.length == 0) {
  7527. this.form.fNetweight = 0;
  7528. this.form.fPlanvolumn = 0;
  7529. this.form.fGrossweight = 0;
  7530. } else {
  7531. this.form.fNetweight = this.fNetweight;
  7532. this.form.fPlanvolumn = this.fPlanvolumn;
  7533. this.form.fGrossweight = this.fGrossweight;
  7534. }
  7535. // 撤回入库
  7536. let formData = new window.FormData();
  7537. formData.append("warehouseBills", JSON.stringify(this.form));
  7538. formData.append(
  7539. "warehousebillsitems",
  7540. JSON.stringify(this.Printinglist)
  7541. );
  7542. formData.append(
  7543. "warehousebillsfeesDr",
  7544. JSON.stringify(this.warehouseDrList)
  7545. );
  7546. formData.append(
  7547. "warehousebillsfeesCr",
  7548. JSON.stringify(this.warehouseCrList)
  7549. );
  7550. formData.append(
  7551. "tEnclosure",
  7552. JSON.stringify(this.relevantAttachments)
  7553. );
  7554. formData.append("tCntr", JSON.stringify(this.CntrTable));
  7555. updateCredit(formData).then((response) => {
  7556. if (response.code == 200) {
  7557. this.Printinglist.map((e) => {
  7558. this.detailList.map((item, index) => {
  7559. if (e.fId == item.fId) {
  7560. this.$set(this.detailList[index], "fBillstatus", 10);
  7561. }
  7562. });
  7563. });
  7564. this.msgSuccess("撤回成功");
  7565. this.$refs.multipleTables.clearSelection()
  7566. this.$set(this.form, "fItemsStatus", 1);
  7567. this.$set(this.form, "fDateChanged", response.msg);
  7568. }
  7569. });
  7570. }
  7571. });
  7572. },
  7573. TFformdata(data) {
  7574. this.form = data;
  7575. if (this.form.fBillstatus > 3) {
  7576. this.approvalStatus = false;
  7577. this.browseStatus = true;
  7578. } else {
  7579. this.approvalStatus = true;
  7580. this.browseStatus = false;
  7581. }
  7582. this.$set(
  7583. this.form,
  7584. "sendSampleDate",
  7585. Date.parse(this.form.sendSampleDate)
  7586. );
  7587. this.$set(
  7588. this.form,
  7589. "weightRecoveryDate",
  7590. Date.parse(this.form.weightRecoveryDate)
  7591. );
  7592. this.$set(
  7593. this.form,
  7594. "fWeighingDate",
  7595. Date.parse(this.form.fWeighingDate)
  7596. );
  7597. this.$set(
  7598. this.form,
  7599. "fDeclarationElements",
  7600. this.form.fDeclarationElements
  7601. ? this.form.fDeclarationElements.toString()
  7602. : null
  7603. );
  7604. this.$set(
  7605. this.form,
  7606. "fIfinspection",
  7607. this.form.fIfinspection || this.form.fIfinspection == 0
  7608. ? this.form.fIfinspection.toString()
  7609. : null
  7610. );
  7611. this.$set(
  7612. this.form,
  7613. "fIfsampling",
  7614. this.form.fIfsampling || this.form.fIfsampling == 0
  7615. ? this.form.fIfsampling.toString()
  7616. : null
  7617. );
  7618. this.$set(
  7619. this.form,
  7620. "fIfweightRecovery",
  7621. this.form.fIfweightRecovery || this.form.fIfweightRecovery == 0
  7622. ? this.form.fIfweightRecovery.toString()
  7623. : null
  7624. );
  7625. this.$set(this.form, "fEta", Date.parse(this.form.fEta));
  7626. this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
  7627. this.$set(this.form, "fBstime", Date.parse(this.form.fBstime));
  7628. this.$set(this.form, "createTime", Date.parse(this.form.createTime));
  7629. this.$set(this.form, "fChargedate", Date.parse(this.form.fChargedate));
  7630. this.$set(
  7631. this.form,
  7632. "freeContainerDate",
  7633. Date.parse(this.form.freeContainerDate)
  7634. );
  7635. this.$set(this.form, "fFeetUnit", this.form.fFeetunit);
  7636. this.tfNetweightnum = (this.form.fPlannetweight / 1000).toFixed(4);
  7637. this.tfGrossweightnum = (this.form.fPlangrossweight / 1000).toFixed(4);
  7638. if (this.form.fTrademodeid) {
  7639. this.$set(this.form, "fTrademodeid", this.form.fTrademodeid.toString());
  7640. }
  7641. if (this.form.fStltypeid || this.form.fStltypeid == 0) {
  7642. this.$set(this.form, "fStltypeid", this.form.fStltypeid.toString());
  7643. }
  7644. },
  7645. getForm() {
  7646. let fId = null
  7647. if (this.chiId) fId = this.chiId
  7648. if (this.chiId? false: this.form.fId) fId = this.form.fId
  7649. getWarehousebills(fId).then((response) => {
  7650. this.TFformdata(response.data.warehousebills);
  7651. if (!this.copyStatus || this.recordStatus === true) {
  7652. if (response.data.warehouseBillsItem) {
  7653. response.data.warehouseBillsItem.map((e) => {
  7654. e.fLntype = e.fLntype ? e.fLntype.toString() : null;
  7655. });
  7656. this.detailList = response.data.warehouseBillsItem;
  7657. } else {
  7658. this.detailList = [];
  7659. }
  7660. response.data.warehousebillsfeesCr.map((e) => {
  7661. if (e.fFeeunitid) {
  7662. e.fFeeUnitid = e.fFeeunitid.toString();
  7663. }
  7664. if (e.fStltypeid || e.fStltypeid == 0) {
  7665. e.fStltypeid = e.fStltypeid.toString();
  7666. }
  7667. });
  7668. this.warehouseCrList = response.data.warehousebillsfeesCr;
  7669. response.data.warehousebillsfeesDr.map((e) => {
  7670. if (e.fFeeunitid) {
  7671. e.fFeeUnitid = e.fFeeunitid.toString();
  7672. }
  7673. if (e.fStltypeid || e.fStltypeid == 0) {
  7674. e.fStltypeid = e.fStltypeid.toString();
  7675. }
  7676. });
  7677. this.warehouseDrList = response.data.warehousebillsfeesDr;
  7678. if (response.data.tCntrList) {
  7679. this.CntrTable = response.data.tCntrList;
  7680. } else {
  7681. this.CntrTable = [];
  7682. }
  7683. if (response.data.enclosures) {
  7684. this.relevantAttachments = response.data.enclosures;
  7685. }
  7686. } else {
  7687. this.approvalStatus = false;
  7688. this.browseStatus = false;
  7689. this.$set(this.form, "fId", null);
  7690. this.$set(this.form, "fMblno", null);
  7691. this.$set(this.form, "fMarks", null);
  7692. this.$set(this.form, "fProductName", null);
  7693. this.$set(this.form, "warehouseStatus", null);
  7694. this.$set(this.form, "fBillstatus", null);
  7695. this.$set(this.form, "fItemsStatus", null);
  7696. this.$set(this.form, "fNetweight", 0);
  7697. this.$set(this.form, "fPlanvolumn", 0);
  7698. this.$set(this.form, "fGrossweight", 0);
  7699. // this.recordStatus = true
  7700. }
  7701. });
  7702. },
  7703. //从表库位弹窗下拉树状事件
  7704. getAlltree(tree) {
  7705. this.importList.fWarehouseInformation = tree.fWarehouseInformation;
  7706. },
  7707. submitForm() {
  7708. let checkData = {
  7709. fId: this.form.fId,
  7710. fType: "warehouse",
  7711. codeVal: this.form.fDateChanged,
  7712. };
  7713. checkCode(checkData).then((response) => {
  7714. if (!response) {
  7715. this.$confirm("数据发生变化,请更新一下数据?", "提示", {
  7716. confirmButtonText: "确认",
  7717. cancelButtonText: "取消",
  7718. type: "warning",
  7719. }).then(() => {
  7720. this.getForm();
  7721. });
  7722. } else {
  7723. this.$refs["form"].validate((valid) => {
  7724. if (valid) {
  7725. // if (this.detailList.length === 0) {
  7726. // return this.$message.error("请新增库存明细!");
  7727. // }
  7728. for (let item in this.warehouseDrList) {
  7729. if (!this.warehouseDrList[item].fCorpid) {
  7730. if (item === "fBusinessType") {
  7731. } else {
  7732. this.$message.error(
  7733. "请维护收款信息第" + (Number(item) + 1) + "行客户名称"
  7734. );
  7735. return false;
  7736. }
  7737. }
  7738. if (!this.warehouseDrList[item].fFeeid) {
  7739. if (item === "fBusinessType") {
  7740. } else {
  7741. this.$message.error(
  7742. "请维护收款信息第" + (Number(item) + 1) + "行费用名称"
  7743. );
  7744. return false;
  7745. }
  7746. }
  7747. if (!this.warehouseDrList[item].fFeeUnitid) {
  7748. if (item === "fBusinessType") {
  7749. } else {
  7750. this.$message.error(
  7751. "请维护收款信息第" + (Number(item) + 1) + "行计价单位"
  7752. );
  7753. return false;
  7754. }
  7755. }
  7756. }
  7757. for (let item in this.warehouseCrList) {
  7758. if (!this.warehouseCrList[item].fCorpid) {
  7759. if (item === "fBusinessType") {
  7760. } else {
  7761. this.$message.error(
  7762. "请维护付款信息第" + (Number(item) + 1) + "行客户名称"
  7763. );
  7764. return false;
  7765. }
  7766. }
  7767. if (!this.warehouseCrList[item].fFeeid) {
  7768. if (item === "fBusinessType") {
  7769. } else {
  7770. this.$message.error(
  7771. "请维护付款信息第" + (Number(item) + 1) + "行费用名称"
  7772. );
  7773. return false;
  7774. }
  7775. }
  7776. if (!this.warehouseCrList[item].fFeeUnitid) {
  7777. if (item === "fBusinessType") {
  7778. } else {
  7779. this.$message.error(
  7780. "请维护付款信息第" + (Number(item) + 1) + "行计价单位"
  7781. );
  7782. return false;
  7783. }
  7784. }
  7785. }
  7786. // 附件数据
  7787. this.form.fBillingway = this.form.fFeetUnit;
  7788. if (this.detailList.length == 0) {
  7789. this.form.fNetweight = 0;
  7790. this.form.fPlanvolumn = 0;
  7791. this.form.fGrossweight = 0;
  7792. } else {
  7793. this.form.fNetweight = this.fNetweight;
  7794. this.form.fPlanvolumn = this.fPlanvolumn;
  7795. this.form.fGrossweight = this.fGrossweight;
  7796. }
  7797. if (this.CntrTable.length > 0) {
  7798. let arr = [];
  7799. this.CntrTable.map((e) => {
  7800. this.cntrList.map((item) => {
  7801. if (item.fId == e.fCntrid) {
  7802. arr.push(item.fName + "X" + e.fCntrcount);
  7803. }
  7804. });
  7805. });
  7806. arr = [...new Set(arr)];
  7807. this.form.fCntval = arr.join(",");
  7808. } else {
  7809. this.form.fCntval = null;
  7810. }
  7811. if (this.detailList.length > 0) {
  7812. let arr = [];
  7813. this.detailList.map((e) => {
  7814. this.goodsOptions.map((item) => {
  7815. if (e.fGoodsid == item.fId) {
  7816. arr.push(item.fName);
  7817. }
  7818. });
  7819. });
  7820. arr = [...new Set(arr)];
  7821. this.form.fProductName = arr.join(",");
  7822. } else {
  7823. this.form.fProductName = "";
  7824. }
  7825. if (this.detailList.length > 0) {
  7826. let arr = [];
  7827. this.detailList.map((e) => {
  7828. arr.push(e.fMarks);
  7829. });
  7830. arr = [...new Set(arr)];
  7831. this.form.fMarks = arr.join(",");
  7832. } else {
  7833. this.form.fMarks = "";
  7834. }
  7835. let formData = new window.FormData();
  7836. formData.append("tWarehouseBills", JSON.stringify(this.form));
  7837. // 库存明细
  7838. formData.append(
  7839. "tWarehousebillsitems",
  7840. JSON.stringify(this.detailList)
  7841. );
  7842. // 附件数据
  7843. formData.append(
  7844. "tEnclosure",
  7845. JSON.stringify(this.relevantAttachments)
  7846. );
  7847. // 费用明细付款
  7848. formData.append(
  7849. "tWarehousebillsfeesCr",
  7850. JSON.stringify(this.warehouseCrList)
  7851. );
  7852. // 收款
  7853. formData.append(
  7854. "tWarehousebillsfeesDr",
  7855. JSON.stringify(this.warehouseDrList)
  7856. );
  7857. formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
  7858. formData.append("tCntr", JSON.stringify(this.CntrTable));
  7859. addWarehouse(formData).then((response) => {
  7860. if (response.code == 200) {
  7861. this.msgSuccess("提交成功");
  7862. setTimeout(() => {
  7863. this.cancel();
  7864. }, 200);
  7865. }
  7866. });
  7867. }
  7868. });
  7869. }
  7870. });
  7871. },
  7872. verifyForm() {
  7873. let checkData = {
  7874. fId: this.form.fId,
  7875. fType: "warehouse",
  7876. codeVal: this.form.fDateChanged,
  7877. };
  7878. checkCode(checkData).then((response) => {
  7879. if (!response) {
  7880. this.$confirm("数据发生变化,请更新一下数据?", "提示", {
  7881. confirmButtonText: "确认",
  7882. cancelButtonText: "取消",
  7883. type: "warning",
  7884. }).then(() => {
  7885. this.getForm();
  7886. });
  7887. } else {
  7888. this.$refs["form"].validate((valid) => {
  7889. if (valid) {
  7890. // 附件数据
  7891. this.form.fBillingway = this.form.fFeetUnit;
  7892. if (this.detailList.length == 0) {
  7893. this.form.fNetweight = 0;
  7894. this.form.fPlanvolumn = 0;
  7895. this.form.fGrossweight = 0;
  7896. } else {
  7897. this.form.fNetweight = this.fNetweight;
  7898. this.form.fPlanvolumn = this.fPlanvolumn;
  7899. this.form.fGrossweight = this.fGrossweight;
  7900. }
  7901. if (this.CntrTable.length > 0) {
  7902. let arr = [];
  7903. this.CntrTable.map((e) => {
  7904. this.cntrList.map((item) => {
  7905. if (item.fId == e.fCntrid) {
  7906. arr.push(item.fName + "X" + e.fCntrcount);
  7907. }
  7908. });
  7909. });
  7910. arr = [...new Set(arr)];
  7911. this.form.fCntval = arr.join(",");
  7912. } else {
  7913. this.form.fCntval = null;
  7914. }
  7915. if (this.detailList.length > 0) {
  7916. let arr = [];
  7917. this.detailList.map((e) => {
  7918. this.goodsOptions.map((item) => {
  7919. if (e.fGoodsid == item.fId) {
  7920. arr.push(item.fName);
  7921. }
  7922. });
  7923. });
  7924. arr = [...new Set(arr)];
  7925. this.form.fProductName = arr.join(",");
  7926. } else {
  7927. this.form.fProductName = "";
  7928. }
  7929. if (this.detailList.length > 0) {
  7930. let arr = [];
  7931. this.detailList.map((e) => {
  7932. arr.push(e.fMarks);
  7933. });
  7934. arr = [...new Set(arr)];
  7935. this.form.fMarks = arr.join(",");
  7936. } else {
  7937. this.form.fMarks = "";
  7938. }
  7939. let formData = new window.FormData();
  7940. formData.append("tWarehouseBills", JSON.stringify(this.form));
  7941. // 库存明细
  7942. formData.append(
  7943. "tWarehousebillsitems",
  7944. JSON.stringify(this.detailList)
  7945. );
  7946. // 附件数据
  7947. formData.append(
  7948. "tEnclosure",
  7949. JSON.stringify(this.relevantAttachments)
  7950. );
  7951. // 费用明细付款
  7952. formData.append(
  7953. "tWarehousebillsfeesCr",
  7954. JSON.stringify(this.warehouseCrList)
  7955. );
  7956. // 收款
  7957. formData.append(
  7958. "tWarehousebillsfeesDr",
  7959. JSON.stringify(this.warehouseDrList)
  7960. );
  7961. formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
  7962. formData.append("tCntr", JSON.stringify(this.CntrTable));
  7963. submitWarehousingApproval(formData).then((response) => {
  7964. if (response.code == 200) {
  7965. this.msgSuccess("请核成功");
  7966. this.$set(this.form, "warehouseStatus", 4);
  7967. this.cancel();
  7968. }
  7969. });
  7970. }
  7971. });
  7972. }
  7973. });
  7974. },
  7975. saveForm(status) {
  7976. let checkData = {
  7977. fId: this.form.fId,
  7978. fType: "warehouse",
  7979. codeVal: this.form.fDateChanged,
  7980. };
  7981. checkCode(checkData).then((response) => {
  7982. if (!response) {
  7983. this.$confirm("数据发生变化,请更新一下数据?", "提示", {
  7984. confirmButtonText: "确认",
  7985. cancelButtonText: "取消",
  7986. type: "warning",
  7987. }).then(() => {
  7988. this.getForm();
  7989. });
  7990. } else {
  7991. this.$refs["form"].validate((valid) => {
  7992. if (valid) {
  7993. this.form.fBillingway = this.form.fFeetUnit;
  7994. if (this.detailList.length == 0) {
  7995. this.form.fNetweight = 0;
  7996. this.form.fPlanvolumn = 0;
  7997. this.form.fGrossweight = 0;
  7998. } else {
  7999. this.form.fNetweight = this.fNetweight;
  8000. this.form.fPlanvolumn = this.fPlanvolumn;
  8001. this.form.fGrossweight = this.fGrossweight;
  8002. }
  8003. let formData = new window.FormData();
  8004. // 附件数据
  8005. this.form.fQty = this.fQty;
  8006. if (this.CntrTable.length > 0) {
  8007. let arr = [];
  8008. this.CntrTable.map((e) => {
  8009. this.cntrList.map((item) => {
  8010. if (item.fId == e.fCntrid) {
  8011. arr.push(item.fName + "X" + e.fCntrcount);
  8012. }
  8013. });
  8014. });
  8015. arr = [...new Set(arr)];
  8016. this.form.fCntval = arr.join(",");
  8017. } else {
  8018. this.form.fCntval = null;
  8019. }
  8020. if (this.detailList.length > 0) {
  8021. let arr = [];
  8022. this.detailList.map((e) => {
  8023. this.goodsOptions.map((item) => {
  8024. if (e.fGoodsid == item.fId) {
  8025. arr.push(item.fName);
  8026. }
  8027. });
  8028. });
  8029. arr = [...new Set(arr)];
  8030. this.form.fProductName = arr.join(",");
  8031. } else {
  8032. this.form.fProductName = "";
  8033. }
  8034. if (this.detailList.length > 0) {
  8035. let arr = [];
  8036. this.detailList.map((e) => {
  8037. arr.push(e.fMarks);
  8038. });
  8039. arr = [...new Set(arr)];
  8040. this.form.fMarks = arr.join(",");
  8041. } else {
  8042. this.form.fMarks = "";
  8043. }
  8044. this.detailList.forEach(item => {
  8045. this.$set(item, 'fOriginalbillno', this.form.fMblno)
  8046. })
  8047. for (let item in this.warehouseDrList) {
  8048. if (!this.warehouseDrList[item].fCorpid) {
  8049. return this.$message.error('收款信息第' + (Number(item) + 1) + '行' + '客户名称不能为空');
  8050. } else if (!this.warehouseDrList[item].fFeeid) {
  8051. return this.$message.error('收款信息第' + (Number(item) + 1) + '行' + '费用名称不能为空');
  8052. } else if (!this.warehouseDrList[item].fFeeUnitid) {
  8053. return this.$message.error('收款信息第' + (Number(item) + 1) + '行' + '计价单位不能为空');
  8054. }
  8055. }
  8056. for (let item in this.warehouseCrList) {
  8057. if (!this.warehouseCrList[item].fCorpid) {
  8058. return this.$message.error('付款信息第' + (Number(item) + 1) + '行' + '客户名称不能为空');
  8059. } else if (!this.warehouseCrList[item].fFeeid) {
  8060. return this.$message.error('付款信息第' + (Number(item) + 1) + '行' + '费用名称不能为空');
  8061. } else if (!this.warehouseCrList[item].fFeeUnitid) {
  8062. return this.$message.error('付款信息第' + (Number(item) + 1) + '行' + '计价单位不能为空');
  8063. }
  8064. }
  8065. this.$set(this.form, 'fFeetunit', this.form.fFeetUnit)
  8066. formData.append("tWarehouseBills", JSON.stringify(this.form));
  8067. // 库存明细
  8068. formData.append("tWarehousebillsitems",JSON.stringify(this.detailList));
  8069. // 附件数据
  8070. formData.append("tEnclosure",JSON.stringify(this.relevantAttachments));
  8071. // 费用明细付款
  8072. formData.append("tWarehousebillsfeesCr",JSON.stringify(this.warehouseCrList));
  8073. // 收款
  8074. formData.append("tWarehousebillsfeesDr",JSON.stringify(this.warehouseDrList));
  8075. formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
  8076. formData.append("tCntr", JSON.stringify(this.CntrTable));
  8077. addWarehousebills(formData).then((response) => {
  8078. if (response.data == false) {
  8079. this.$confirm(response.msg, "提示", {
  8080. confirmButtonText: "确定",
  8081. cancelButtonText: "取消",
  8082. type: "warning",
  8083. }).then(() => {
  8084. this.mblnoStatus = true;
  8085. this.saveForm();
  8086. }).catch(() => {
  8087. this.$message({
  8088. type: "info",
  8089. message: "已取消",
  8090. });
  8091. });
  8092. } else {
  8093. if ((response.code = 200)) {
  8094. this.mblnoStatus = "";
  8095. this.TFformdata(response.data.warehouseBills);
  8096. this.detailList = response.data.warehousebillsitems;
  8097. this.msgSuccess("保存成功");
  8098. getWarehousebills(this.form.fId).then((response) => {
  8099. this.TFformdata(response.data.warehousebills);
  8100. if (!this.copyStatus || this.recordStatus === true) {
  8101. if (response.data.warehouseBillsItem) {
  8102. response.data.warehouseBillsItem.map((e) => {
  8103. e.fLntype = e.fLntype ? e.fLntype.toString() : null;
  8104. });
  8105. this.detailList = response.data.warehouseBillsItem;
  8106. } else {
  8107. this.detailList = [];
  8108. }
  8109. response.data.warehousebillsfeesCr.map((e) => {
  8110. if (e.fFeeunitid) {
  8111. e.fFeeUnitid = e.fFeeunitid.toString();
  8112. }
  8113. if (e.fStltypeid || e.fStltypeid == 0) {
  8114. e.fStltypeid = e.fStltypeid.toString();
  8115. }
  8116. });
  8117. this.warehouseCrList = response.data.warehousebillsfeesCr;
  8118. response.data.warehousebillsfeesDr.map((e) => {
  8119. if (e.fFeeunitid) {
  8120. e.fFeeUnitid = e.fFeeunitid.toString();
  8121. }
  8122. if (e.fStltypeid || e.fStltypeid == 0) {
  8123. e.fStltypeid = e.fStltypeid.toString();
  8124. }
  8125. });
  8126. this.warehouseDrList = response.data.warehousebillsfeesDr;
  8127. if (response.data.tCntrList) {
  8128. this.CntrTable = response.data.tCntrList;
  8129. } else {
  8130. this.CntrTable = [];
  8131. }
  8132. if (response.data.enclosures) {
  8133. this.relevantAttachments = response.data.enclosures;
  8134. }
  8135. }
  8136. });
  8137. if (status == "goBack") {
  8138. this.cancel();
  8139. }
  8140. }
  8141. }
  8142. });
  8143. }
  8144. });
  8145. }
  8146. });
  8147. },
  8148. imporTable() {
  8149. this.$refs["importList"].validate((valid) => {
  8150. if (valid) {
  8151. for (let item in this.detailList) {
  8152. if (
  8153. this.importList.fCntrno == this.detailList[item].fCntrno &&
  8154. this.importList.fCntrno
  8155. ) {
  8156. return this.$message.error("箱号不能重复");
  8157. }
  8158. }
  8159. this.detailList.push({
  8160. fBillstatus: 10,
  8161. fMblno: this.form.fMblno,
  8162. fQty: this.importList.fQty,
  8163. fNetweight: this.importList.fNetweight,
  8164. fGrossweight: this.importList.fGrossweight,
  8165. fBsdate: this.importList.fBsdate,
  8166. fGoodsid: this.importList.fGoodsid,
  8167. fBusinessType: this.importList.fBusinessType,
  8168. fMarks: this.importList.fMarks,
  8169. fWarehouselocid: this.importList.fWarehouselocid,
  8170. fWarehouseInformation: this.importList.fWarehouseInformation,
  8171. fCntrtype: this.importList.fCntrtype,
  8172. fCntqty: this.importList.fCntqty,
  8173. fPackagespecs: this.importList.fPackagespecs,
  8174. fTruckno: this.importList.fTruckno,
  8175. fDriverName: this.importList.fDriverName,
  8176. fDriverTel: this.importList.fDriverTel,
  8177. fDriverIdCar: this.importList.fDriverIdCar,
  8178. fSerialNumber: this.importList.fSerialNumber,
  8179. fCntrno: this.importList.fCntrno,
  8180. fGoodsval: this.importList.fGoodsval,
  8181. fLntype: this.importList.fLntype,
  8182. fForkliftman: this.importList.fForkliftman,
  8183. fStevedore: this.importList.fStevedore,
  8184. fLocalcntrno: this.importList.fLocalcntrno,
  8185. fSealno: this.importList.fSealno,
  8186. fFleet: this.importList.fFleet,
  8187. remark: this.importList.remark,
  8188. fPlanqty: this.importList.fPlanqty,
  8189. fPlannetweight: this.importList.fPlannetweight,
  8190. fPlangrossweight: this.importList.fPlangrossweight,
  8191. fActualWeight: this.importList.fActualWeight,
  8192. });
  8193. if (this.detailList[0].fGoodsid) {
  8194. for (let item in this.goodsOptions) {
  8195. if (this.goodsOptions[item].fId == this.detailList[0].fGoodsid) {
  8196. this.form.fProductName = this.goodsOptions[item].fName;
  8197. }
  8198. }
  8199. }
  8200. this.weightList = false;
  8201. }
  8202. });
  8203. },
  8204. // 收款信息新行
  8205. addCollection() {
  8206. this.$refs["form"].validate((valid) => {
  8207. if (valid) {
  8208. if (this.form.fBusinessType == null) {
  8209. this.$message.error("请维护作业类型");
  8210. return false;
  8211. } else {
  8212. this.warehouseDrList.push({
  8213. fCorpid: null,
  8214. fFeeid: null,
  8215. fFeeUnitid: "",
  8216. fQty: null,
  8217. fUnitprice: null,
  8218. fAmount: null,
  8219. fCurrency: "RMB",
  8220. fExrate: "1",
  8221. fTaxrate: this.fTaxrate,
  8222. fCxrate: null,
  8223. fRate: null,
  8224. remarks: null,
  8225. fMblno: this.form.fMblno,
  8226. fProductName: this.form.fProductName,
  8227. fMarks: this.form.fMarks,
  8228. fBusinessType: this.form.fBusinessType,
  8229. fSrcTypeId: 0,
  8230. fStltypeid: '1',
  8231. });
  8232. this.fWbuOptions = [];
  8233. let queryParams = {pageNum: 1, fDc: "D"};
  8234. listFees(queryParams).then((response) => {
  8235. this.fDNameOptions = response.rows;
  8236. });
  8237. }
  8238. }
  8239. });
  8240. },
  8241. fiximporTable() {
  8242. this.$refs["importList"].validate((valid) => {
  8243. if (valid) {
  8244. for (let item in this.detailList) {
  8245. if (
  8246. this.importList.fCntrno == this.detailList[item].fCntrno &&
  8247. this.importList.fCntrno &&
  8248. item != this.fixdetaiNum
  8249. ) {
  8250. return this.$message.error("箱号不能重复");
  8251. }
  8252. }
  8253. this.$set(this.detailList, this.fixdetaiNum, this.importList);
  8254. this.weightList = false;
  8255. }
  8256. });
  8257. },
  8258. // 库存明细多选
  8259. Selectinventory(selection) {
  8260. this.Printinglist = selection;
  8261. //允许撤销入库list
  8262. this.dataWithdrawList = selection;
  8263. //允许确认入库list
  8264. this.dataListSelection = selection;
  8265. if (this.dataWithdrawList.length === 0) {
  8266. this.cancelDelivery = true
  8267. } else {
  8268. for (let item in this.dataWithdrawList) {
  8269. if (this.dataWithdrawList[item].fBillstatus === 40) {
  8270. this.cancelDelivery = false
  8271. this.deliveryConfirmation = true
  8272. for (let li in this.dataWithdrawList) {
  8273. if (this.entryPrinting != 0 ? this.dataWithdrawList[li].fBillstatus === 10 : this.dataWithdrawList[li].fBillstatus === 30) {
  8274. this.deliveryConfirmation = true
  8275. this.cancelDelivery = true
  8276. return
  8277. }
  8278. }
  8279. } else if (this.entryPrinting != 0 ? this.dataWithdrawList[item].fBillstatus === 10 : this.dataWithdrawList[item].fBillstatus === 30) {
  8280. this.deliveryConfirmation = false
  8281. this.cancelDelivery = true
  8282. for (let li in this.dataWithdrawList) {
  8283. if (this.dataWithdrawList[li].fBillstatus === 40) {
  8284. this.deliveryConfirmation = true
  8285. this.cancelDelivery = true
  8286. return
  8287. }
  8288. }
  8289. } else {
  8290. this.deliveryConfirmation = false
  8291. }
  8292. }
  8293. }
  8294. },
  8295. // 合计
  8296. getSummaries(param) {
  8297. const {columns, data} = param;
  8298. const sums = [];
  8299. var values = [];
  8300. columns.forEach((column, index) => {
  8301. if (index === 0) {
  8302. sums[index] = "";
  8303. return;
  8304. }
  8305. if (column.property === "fGrossweight") {
  8306. values = data.map((item) => Number(item["fGrossweight"]));
  8307. }
  8308. if (column.property === "fNetweight") {
  8309. values = data.map((item) => Number(item["fNetweight"]));
  8310. }
  8311. if (column.property === "fQty") {
  8312. values = data.map((item) => Number(item["fQty"]));
  8313. }
  8314. if (column.property === "fCntqty") {
  8315. values = data.map((item) => Number(item["fCntqty"]));
  8316. }
  8317. if (column.property === "fActualWeight") {
  8318. values = data.map((item) => Number(item["fActualWeight"]));
  8319. }
  8320. if (
  8321. column.property === "fGrossweight" ||
  8322. column.property === "fNetweight" ||
  8323. column.property === "fQty" ||
  8324. column.property === "fCntqty" ||
  8325. column.property === "fActualWeight"
  8326. ) {
  8327. sums[index] = values.reduce((prev, curr) => {
  8328. const value = Number(curr);
  8329. if (!isNaN(value)) {
  8330. if (column.property === "fGrossweight") {
  8331. this.fGrossweight = prev + curr;
  8332. }
  8333. if (column.property === "fNetweight") {
  8334. this.fNetweight = prev + curr;
  8335. }
  8336. if (column.property === "fQty") {
  8337. this.fQty = prev + curr;
  8338. this.sumMum = prev + curr;
  8339. }
  8340. if (column.property === "fCntqty") {
  8341. this.fCntqty = prev + curr;
  8342. }
  8343. if (column.property === "fActualWeight") {
  8344. this.fActualWeight = prev + curr;
  8345. }
  8346. return prev + curr;
  8347. } else {
  8348. return prev;
  8349. }
  8350. }, 0);
  8351. if (column.property === "fGrossweight") {
  8352. sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
  8353. } else if (column.property === "fNetweight") {
  8354. sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
  8355. } else if (column.property === "fActualWeight") {
  8356. sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
  8357. } else {
  8358. // sums[index] = sums[index].toFixed(2);
  8359. sums[index] = sums[index]
  8360. }
  8361. }
  8362. });
  8363. this.sums = sums;
  8364. return sums;
  8365. },
  8366. playcomputer() {
  8367. if (this.importList.fPlannetweight && this.importList.fPlanqty && this.importList.fPlangrossweight) {
  8368. let Num1 = Number(this.importList.fPlannetweight) / Number(this.importList.fPlanqty);
  8369. let Num2 =
  8370. Number(this.importList.fPlangrossweight) / Number(this.importList.fPlanqty);
  8371. this.importList.fNetweight = Number(
  8372. (this.importList.fQty * Num1).toFixed(4)
  8373. );
  8374. this.tfNetweightnum2 = (this.importList.fNetweight / 1000).toFixed(4);
  8375. this.importList.fGrossweight = Number(
  8376. (this.importList.fQty * Num2).toFixed(4)
  8377. );
  8378. this.tfGrossweightnum2 = (this.importList.fGrossweight / 1000).toFixed(4);
  8379. } else {
  8380. let Num1 = Number(this.form.fPlannetweight) / Number(this.form.fPlanqty);
  8381. let Num2 =
  8382. Number(this.form.fPlangrossweight) / Number(this.form.fPlanqty);
  8383. this.importList.fNetweight = Number(
  8384. (this.importList.fQty * Num1).toFixed(4)
  8385. );
  8386. this.tfNetweightnum2 = (this.importList.fNetweight / 1000).toFixed(4);
  8387. this.importList.fGrossweight = Number(
  8388. (this.importList.fQty * Num2).toFixed(4)
  8389. );
  8390. this.tfGrossweightnum2 = (this.importList.fGrossweight / 1000).toFixed(4);
  8391. }
  8392. },
  8393. imporComputer() {
  8394. this.playcomputer();
  8395. },
  8396. // 入库明细新增list
  8397. addRelevant(status) {
  8398. this.$refs["form"].validate((valid) => {
  8399. if (valid) {
  8400. this.title = "新增";
  8401. this.reset();
  8402. this.fixdetaiNum = null;
  8403. if (
  8404. !this.form.fPlannetweight ||
  8405. !this.form.fPlangrossweight ||
  8406. !this.form.fPlanqty
  8407. ) {
  8408. return this.$message({
  8409. message: "请维护计划净重(kg),计划毛重(kg),计划件数",
  8410. type: "warning",
  8411. });
  8412. }
  8413. this.$set(this.importList, 'fPlanqty', this.form.fPlanqty)
  8414. this.$set(this.importList, 'fPlangrossweight', this.form.fPlangrossweight)
  8415. this.$set(this.importList, 'fPlannetweight', this.form.fPlannetweight)
  8416. this.$set(this.importList, 'fNetweight', this.form.fNetweight)
  8417. this.$set(this.importList, 'fActualWeight', 0)
  8418. //录入复制
  8419. // console.log(this.importList)
  8420. if (this.detailList.length !== 0) this.importList = JSON.parse(JSON.stringify(this.detailList[0]))
  8421. // this.importList.fBusinessType = JSON.stringify(this.importList.fBusinessType)
  8422. if (this.importList.fBusinessType) this.$set(this.importList, 'fBusinessType', typeof this.importList.fBusinessType != 'string' ? JSON.stringify(this.importList.fBusinessType) : this.importList.fBusinessType)
  8423. this.$set(this.importList, 'fCntrno', this.importList.fCntrno === null ? '' : this.importList.fCntrno)
  8424. // console.log(this.importList)
  8425. //结束
  8426. this.importList.fQty = Number(
  8427. (this.form.fPlanqty - this.sumMum).toFixed(2)
  8428. );
  8429. if (this.importList.fQty < 0) {
  8430. this.importList.fQty = 0;
  8431. }
  8432. if (this.form.fTruckno) {
  8433. this.importList.fTruckno = this.form.fTruckno;
  8434. }
  8435. if (this.form.fDriverTel) {
  8436. this.importList.fDriverTel = this.form.fDriverTel;
  8437. }
  8438. if (this.form.fDriverName) {
  8439. this.importList.fDriverName = this.form.fDriverName;
  8440. }
  8441. if (this.form.fDriverIdCar) {
  8442. this.importList.fDriverIdCar = this.form.fDriverIdCar;
  8443. }
  8444. this.allfPlanqty = this.importList.fQty;
  8445. this.importList.fBsdate = this.form.fBsdate;
  8446. this.importList.fGoodsid = this.form.fGoodsid;
  8447. this.goodsOptions.map((e) => {
  8448. if (this.importList.fGoodsid == e.fId) {
  8449. if (e.ifCntrno == "1") {
  8450. this.ifCntrnoStatus = 1;
  8451. } else {
  8452. this.ifCntrnoStatus = null;
  8453. }
  8454. }
  8455. });
  8456. this.playcomputer();
  8457. treeselect(this.form.fWarehouseid).then((response) => {
  8458. this.fWarehouseidOptions = response.data;
  8459. });
  8460. if (status == "copy") {
  8461. this.importList.fBsdate = Date.parse(this.Printinglist[0].fBsdate);
  8462. if (!this.importList.fBsdate) {
  8463. this.importList.fBsdate = this.Printinglist[0].fBsdate;
  8464. }
  8465. this.importList.fGoodsid = this.Printinglist[0].fGoodsid;
  8466. this.importList.fBusinessType = this.Printinglist[0].fBusinessType.toString();
  8467. this.importList.fMarks = this.Printinglist[0].fMarks;
  8468. this.importList.fWarehouselocid = this.Printinglist[0].fWarehouselocid;
  8469. this.importList.fWarehouseInformation = this.Printinglist[0].fWarehouseInformation;
  8470. this.importList.fPackagespecs = this.Printinglist[0].fPackagespecs;
  8471. this.importList.fCntrtype = Number(this.Printinglist[0].fCntrtype);
  8472. this.importList.fCntqty = this.Printinglist[0].fCntqty;
  8473. this.importList.fTruckno = this.Printinglist[0].fTruckno;
  8474. this.importList.fDriverName = this.Printinglist[0].fDriverName;
  8475. this.importList.fDriverTel = this.Printinglist[0].fDriverTel;
  8476. this.importList.fDriverIdCar = this.Printinglist[0].fDriverIdCar;
  8477. this.importList.fSerialNumber = this.Printinglist[0].fSerialNumber;
  8478. this.importList.fGoodsval = this.Printinglist[0].fGoodsval;
  8479. this.importList.remark = this.Printinglist[0].remark;
  8480. this.importList.fQty = this.Printinglist[0].fQty;
  8481. this.importList.fGrossweight = this.Printinglist[0].fGrossweight;
  8482. this.importList.fNetweight = this.Printinglist[0].fNetweight;
  8483. this.tfNetweightnum2 = (this.importList.fNetweight / 1000).toFixed(
  8484. 4
  8485. );
  8486. this.tfGrossweightnum2 = (
  8487. this.importList.fGrossweight / 1000
  8488. ).toFixed(4);
  8489. }
  8490. this.weightList = true;
  8491. }
  8492. });
  8493. },
  8494. printZyd() {
  8495. this.nowTime = new Date(+new Date() + 8 * 3600 * 1000 ).toJSON().substr(0, 19).replace("T"," ")
  8496. if (this.Printinglist.length > 0) {
  8497. for (let item in this.Printinglist) {
  8498. if (!this.Printinglist[item].fId) {
  8499. return this.$message.error("请先保存!");
  8500. }
  8501. if (
  8502. this.Printinglist[item].fTruckno !== this.Printinglist[0].fTruckno
  8503. ) {
  8504. return this.$message.error("请选择车相同车号");
  8505. }
  8506. }
  8507. this.radio = 1
  8508. this.print_zyd = true;
  8509. this.warehouseOptions.map((e) => {
  8510. if (e.fId == this.form.fWarehouseid) {
  8511. this.stockaddr = e.fAddr;
  8512. }
  8513. });
  8514. this.fDriverTel = this.Printinglist[0].fDriverTel;
  8515. } else {
  8516. this.$message.error("请选择需要打印的明细!");
  8517. }
  8518. },
  8519. detailedApproval(command) {
  8520. if (command === 'QH') {
  8521. pleaseCheck(this.form.fId).then(res => {
  8522. if (res.code == 200) {
  8523. this.msgSuccess("请核成功");
  8524. this.$set(this.form, 'fItemstatus', 4)
  8525. }
  8526. })
  8527. } else if (command === 'CK') {
  8528. this.addOrUpdateVisible = true;
  8529. let actId = "170";
  8530. this.$nextTick(() => {
  8531. this.$refs.addOrUpdate.init(this.form.fId, actId, 'f_itemstatus');
  8532. });
  8533. } else if (command === 'SP') {
  8534. this.addOrUpdateVisib = true;
  8535. this.$nextTick(() => {
  8536. this.$refs.ApprovalComments.init(this.form.fId, 'f_itemstatus', 170);
  8537. });
  8538. } else if (command === 'CX') {
  8539. let data = {
  8540. actId: 170,
  8541. billId: this.form.fId,
  8542. id: this.form.fId,
  8543. fidStatus: 'f_itemstatus',
  8544. };
  8545. revokeTwo(data).then((data) => {
  8546. if (data.code === 200) {
  8547. this.browseStatus = false;
  8548. this.msgSuccess("撤销成功");
  8549. this.$set(this.form, 'fItemstatus', 2)
  8550. }
  8551. });
  8552. }
  8553. },
  8554. handleCommand(command) {
  8555. if (this.Printinglist.length > 0) {
  8556. this.$refs["form"].validate((valid) => {
  8557. if (valid) {
  8558. for (let corp in this.fMblnoOptions) {
  8559. if (this.form.fCorpid === this.fMblnoOptions[corp].fId) {
  8560. this.$set(
  8561. this.form,
  8562. "fCorpidName",
  8563. this.fMblnoOptions[corp].fName
  8564. );
  8565. }
  8566. }
  8567. this.warehouseOptions.map((e) => {
  8568. if (e.fId == this.form.fWarehouseid) {
  8569. this.stockName = e.fName;
  8570. this.stockaddr = e.fAddr;
  8571. }
  8572. });
  8573. this.goodsOptions.map((e) => {
  8574. if (e.fId == this.form.fGoodsid) {
  8575. this.$set(
  8576. this.form,
  8577. 'goodName',
  8578. e.fName
  8579. )
  8580. }
  8581. })
  8582. this.radio = 1
  8583. this.fDriverTel = this.Printinglist[0].fDriverTel;
  8584. this.fBsdate = this.Printinglist[0].fBsdate;
  8585. this.fTruckno = this.Printinglist[0].fTruckno;
  8586. this.allfCntqty = 0;
  8587. this.allfGrossweight = 0;
  8588. this.allfPlanqty = 0;
  8589. this.allfNetweight = 0;
  8590. this.allfQty = 0;
  8591. this.Printinglist.map((e) => {
  8592. if (e.fCntqty) {
  8593. this.allfCntqty += e.fCntqty;
  8594. }
  8595. if (e.fGrossweight) {
  8596. this.allfGrossweight += e.fGrossweight;
  8597. }
  8598. if (e.fPlanqty) {
  8599. this.allfPlanqty += e.fPlanqty;
  8600. }
  8601. if (e.fNetweight) {
  8602. this.allfNetweight += e.fNetweight;
  8603. }
  8604. if (e.fQty) {
  8605. this.allfQty += e.fQty;
  8606. }
  8607. if (e.fBsdate) {
  8608. // let date = new Date(this.Printinglist[0].fBsdate);
  8609. let date = new Date(e.fBsdate);
  8610. let Y = date.getFullYear();
  8611. let M =
  8612. date.getMonth() + 1 < 10
  8613. ? "0" + (date.getMonth() + 1)
  8614. : date.getMonth() + 1;
  8615. let D =
  8616. date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
  8617. e.fBsdate = Y + "-" + M + "-" + D;
  8618. }
  8619. //获取当前时间
  8620. let now = new Date()
  8621. let _hour = (10 > now.getHours()) ? '0' + now.getHours() : now.getHours();
  8622. let _minute = (10 > now.getMinutes()) ? '0' + now.getMinutes() : now.getMinutes();
  8623. this.timeOut = _hour + ':' + _minute
  8624. // 把入库时间的时间戳转换为时分秒
  8625. let inTime = new Date(this.form.fBstime);
  8626. let h = inTime.getHours()
  8627. h = h < 10 ? ('0' + h) : h
  8628. let m = inTime.getMinutes()
  8629. m = m < 10 ? ('0' + m) : m
  8630. let s = inTime.getSeconds()
  8631. s = s < 10 ? ('0' + s) : s
  8632. this.inTime = h + ':' + m + ':' + s
  8633. });
  8634. if (command == "a") {
  8635. this.print_shd = true;
  8636. } else if (command == "b") {
  8637. this.nowTime = new Date(+new Date() + 8 * 3600 * 1000 ).toJSON().substr(0, 19).replace("T"," ")
  8638. this.print_rkd = true;
  8639. } else if (command == "c") {
  8640. this.print_lhd = true;
  8641. } else if (command == "d") {
  8642. this.print_hwqr = true;
  8643. } else if (command == "e") {
  8644. this.print_lwqr = true;
  8645. } else if (command == "f") {
  8646. this.print_dpxx = true;
  8647. } else if (command == "L") {
  8648. this.allfGrossweight = 0;
  8649. this.allfNetweight = 0;
  8650. this.Printinglist.map((e) => {
  8651. if (this.radio == 1) {
  8652. if (e.fGrossweight) {
  8653. this.allfGrossweight += parseFloat((e.fGrossweight / 1000).toSuperFixed(4));
  8654. }
  8655. if (e.fNetweight) {
  8656. this.allfNetweight += parseFloat((e.fNetweight / 1000).toSuperFixed(4));
  8657. }
  8658. } else {
  8659. if (e.fGrossweight) {
  8660. this.allfGrossweight += e.fGrossweight;
  8661. }
  8662. if (e.fNetweight) {
  8663. this.allfNetweight += e.fNetweight;
  8664. }
  8665. }
  8666. })
  8667. this.print_ccdzrkd = true
  8668. } else if (command == "M") {
  8669. this.print_fxdkrkd = true
  8670. // if (this.Printinglist.length == 1) {
  8671. // this.print_fxdkrkd = true
  8672. // } else {
  8673. // this.$message.error("请选择单条明细")
  8674. // }
  8675. } else if (command == "i") {
  8676. this.allfGrossweight = 0;
  8677. this.allfNetweight = 0;
  8678. this.Printinglist.map((e) => {
  8679. if (e.fGrossweight) {
  8680. this.allfGrossweight += parseFloat((e.fGrossweight / 1000).toSuperFixed(4));
  8681. }
  8682. if (e.fNetweight) {
  8683. this.allfNetweight += parseFloat((e.fNetweight / 1000).toSuperFixed(4));
  8684. }
  8685. })
  8686. this.print_khrkd = true
  8687. } else if (command == "j") {
  8688. let date = new Date(this.Printinglist[0].fBsdate)
  8689. let Y = date.getFullYear()
  8690. let M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1)
  8691. let D = date.getDate()
  8692. this.form.fBsdate = Y + '-' + M + '-' + D
  8693. this.print_xhcdrkd = true
  8694. } else if (command == "k") {
  8695. let container = []
  8696. this.container = ''
  8697. this.CntrTable.map((e) => {
  8698. this.cntrList.map((i) => {
  8699. if (i.fId == e.fCntrid) {
  8700. e.fCntrid = i.fName
  8701. container.push(e.fCntrid + '*' + e.fCntrcount + ',')
  8702. }
  8703. })
  8704. })
  8705. container.forEach(item => {
  8706. this.container += item
  8707. })
  8708. this.container = this.container.slice(0, this.container.length - 1)
  8709. console.log(this.container)
  8710. this.print_zpdkrkd = true
  8711. } else if (command == "g") {
  8712. let date = new Date();
  8713. let hours =
  8714. date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
  8715. let minutes =
  8716. date.getMinutes() < 10
  8717. ? "0" + date.getMinutes()
  8718. : date.getMinutes();
  8719. let seconds =
  8720. date.getSeconds() < 10
  8721. ? "0" + date.getSeconds()
  8722. : date.getSeconds();
  8723. this.rkTime = hours + ":" + minutes;
  8724. this.lsTime = hours + "" + minutes + "" + seconds;
  8725. this.print_bzrkd = true;
  8726. } else if (command == "h") {
  8727. this.print_dk = true;
  8728. } else if (command == "y") {
  8729. this.print_bzrkd_js = true;
  8730. } else if (command == "z") {
  8731. this.print_bzrkd_xq = true;
  8732. } else if (command == "o") {
  8733. this.print_bzrkd_qt = true;
  8734. }
  8735. }
  8736. })
  8737. } else {
  8738. this.$message.error("请选择需要打印的明细!");
  8739. }
  8740. },
  8741. radioChange(radio) {
  8742. this.allfGrossweight = 0
  8743. this.allfNetweight = 0
  8744. this.Printinglist.map((e) => {
  8745. if (radio == 1) {
  8746. if (e.fGrossweight) {
  8747. this.allfGrossweight += parseFloat((e.fGrossweight / 1000).toSuperFixed(4));
  8748. }
  8749. if (e.fNetweight) {
  8750. this.allfNetweight += parseFloat((e.fNetweight / 1000).toSuperFixed(4));
  8751. }
  8752. } else {
  8753. if (e.fGrossweight) {
  8754. this.allfGrossweight += e.fGrossweight;
  8755. }
  8756. if (e.fNetweight) {
  8757. this.allfNetweight += e.fNetweight;
  8758. }
  8759. }
  8760. })
  8761. },
  8762. //计算仓储费日期变更
  8763. changeDate() {
  8764. this.$set(this.form, "fChargedate", this.form.fBsdate);
  8765. },
  8766. addRow() {
  8767. var obj = {};
  8768. this.CntrTable.push(obj);
  8769. },
  8770. fixRow(row, index) {
  8771. this.title = "修改";
  8772. this.reset();
  8773. this.fixdetaiNum = null;
  8774. this.fixdetaiNum = index;
  8775. treeselect(this.form.fWarehouseid).then((response) => {
  8776. this.fWarehouseidOptions = response.data;
  8777. });
  8778. this.allfPlanqty += row.fQty;
  8779. this.tfNetweightnum2 = (row.fNetweight / 1000).toFixed(4);
  8780. this.tfGrossweightnum2 = (row.fGrossweight / 1000).toFixed(4);
  8781. row.fBsdate = new Date(row.fBsdate).getTime();
  8782. row.fBusinessType = row.fBusinessType.toString();
  8783. row.fCntrtype = Number(row.fCntrtype);
  8784. this.importList = JSON.parse(JSON.stringify(row));
  8785. this.weightList = true;
  8786. },
  8787. deleteRow(index, rows) {
  8788. rows.splice(index, 1);
  8789. },
  8790. wDeleteRow(index, rows) {
  8791. rows.splice(index, 1);
  8792. this.sumMum = 0;
  8793. this.detailList.map((e) => {
  8794. if (e.fQty) {
  8795. this.sumMum += e.fQty;
  8796. }
  8797. });
  8798. if (this.detailList.length == 0) {
  8799. this.form.fProductName = "";
  8800. this.form.fMarks = "";
  8801. this.form.fNetweight = 0;
  8802. this.form.fPlanvolumn = 0;
  8803. this.form.fGrossweight = 0;
  8804. }
  8805. },
  8806. //付款信息新行
  8807. addpayment() {
  8808. this.$refs["form"].validate((valid) => {
  8809. if (valid) {
  8810. if (this.form.fBusinessType == null) {
  8811. return this.$message.error("请维护作业类型");
  8812. } else {
  8813. this.warehouseCrList.push({
  8814. fCorpid: null,
  8815. fFeeid: null,
  8816. fFeeUnitid: "",
  8817. fQty: null,
  8818. fUnitprice: null,
  8819. fAmount: null,
  8820. fCurrency: "RMB",
  8821. fExrate: "1",
  8822. fTaxrate: this.fTaxrate,
  8823. fCxrate: null,
  8824. fRate: null,
  8825. remarks: null,
  8826. fMblno: this.form.fMblno,
  8827. fProductName: this.form.fProductName,
  8828. fMarks: this.form.fMarks,
  8829. fBusinessType: this.form.fBusinessType,
  8830. fSrcTypeId: 0,
  8831. fStltypeid: '1',
  8832. });
  8833. this.fWbuOptions = [];
  8834. let queryParams = {pageNum: 1, fDc: "C"};
  8835. listFees(queryParams).then((response) => {
  8836. this.fCNameOptions = response.rows;
  8837. });
  8838. }
  8839. }
  8840. });
  8841. },
  8842. //获取登陆人
  8843. queryUser() {
  8844. queryUserVal().then((response) => {
  8845. if (response.user !== null) {
  8846. this.userVal = response.user;
  8847. this.$set(this.form, "fDeptid", this.userVal.deptId);
  8848. this.$set(this.form, "createBy", this.userVal.userName);
  8849. this.$set(this.form, "fStorekeeper", this.userVal.nickName);
  8850. this.$set(this.form, "fIfdamage", "1");
  8851. this.$set(this.form, "fIfweigh", "1");
  8852. this.$set(this.form, "fTrademodeid", "1");
  8853. this.$set(this.form, "createTime", Date.parse(new Date()));
  8854. this.$set(this.form, "fBstime", Date.parse(new Date()));
  8855. this.$set(this.form, "fBusinessType", "0");
  8856. this.$set(this.form, "fFeetUnit", "2");
  8857. this.$set(this.form, "fChargetype", "1");
  8858. }
  8859. if (response.dept !== null) {
  8860. this.deptOptions = [];
  8861. this.deptOptions.push(response.dept);
  8862. }
  8863. });
  8864. },
  8865. //作业类型校验
  8866. educationChange() {
  8867. if (this.form.fBusinessType === "1" || this.form.fBusinessType === "2") {
  8868. this.isrequired = 1;
  8869. this.isrequired2 = 2;
  8870. } else if (
  8871. this.form.fBusinessType === "3" ||
  8872. this.form.fBusinessType === "4"
  8873. ) {
  8874. this.isrequired2 = 1;
  8875. this.isrequired = 2;
  8876. } else {
  8877. this.isrequired = 2;
  8878. this.isrequired2 = 2;
  8879. }
  8880. },
  8881. //打印
  8882. addprint(status) {
  8883. // if (status == "zyd") {
  8884. // if (this.CntrTable.length > 0) {
  8885. // let arr = [];
  8886. // this.CntrTable.map((e) => {
  8887. // this.cntrList.map((item) => {
  8888. // if (item.fId == e.fCntrid) {
  8889. // arr.push(item.fName + "X" + e.fCntrcount);
  8890. // }
  8891. // });
  8892. // });
  8893. // arr = [...new Set(arr)];
  8894. // this.form.fCntval = arr.join(",");
  8895. // } else {
  8896. // this.form.fCntval = null;
  8897. // }
  8898. // if (this.detailList.length > 0) {
  8899. // let arr = [];
  8900. // this.detailList.map((e) => {
  8901. // this.goodsOptions.map((item) => {
  8902. // if (e.fGoodsid == item.fId) {
  8903. // arr.push(item.fName);
  8904. // }
  8905. // });
  8906. // });
  8907. // arr = [...new Set(arr)];
  8908. // this.form.fProductName = arr.join(",");
  8909. // } else {
  8910. // this.form.fProductName = "";
  8911. // }
  8912. // if (this.detailList.length > 0) {
  8913. // let arr = [];
  8914. // this.detailList.map((e) => {
  8915. // arr.push(e.fMarks);
  8916. // });
  8917. // arr = [...new Set(arr)];
  8918. // this.form.fMarks = arr.join(",");
  8919. // } else {
  8920. // this.form.fMarks = "";
  8921. // }
  8922. // this.form.fBillingway = this.form.fFeetUnit;
  8923. // if (this.detailList.length == 0) {
  8924. // this.form.fNetweight = 0;
  8925. // this.form.fPlanvolumn = 0;
  8926. // this.form.fGrossweight = 0;
  8927. // } else {
  8928. // this.form.fNetweight = this.fNetweight;
  8929. // this.form.fPlanvolumn = this.fPlanvolumn;
  8930. // this.form.fGrossweight = this.fGrossweight;
  8931. // }
  8932. // let formData = new window.FormData();
  8933. // formData.append("warehouseBills", JSON.stringify(this.form));
  8934. // formData.append(
  8935. // "warehousebillsitems",
  8936. // JSON.stringify(this.Printinglist)
  8937. // );
  8938. // formData.append(
  8939. // "warehousebillsfeesDr",
  8940. // JSON.stringify(this.warehouseDrList)
  8941. // );
  8942. // formData.append(
  8943. // "warehousebillsfeesCr",
  8944. // JSON.stringify(this.warehouseCrList)
  8945. // );
  8946. // formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  8947. // formData.append("tCntr", JSON.stringify(this.CntrTable));
  8948. // addJoblist(formData).then((response) => {
  8949. // if (response.code == 200) {
  8950. // this.detailList.map((e, index) => {
  8951. // response.data.warehousebillsitems.map((item) => {
  8952. // if (e.fId == item.fId) {
  8953. // e = item;
  8954. // this.$set(this.detailList, index, e);
  8955. // }
  8956. // });
  8957. // });
  8958. // this.$set(this.form, "fItemsStatus", 2);
  8959. // }
  8960. // });
  8961. // }
  8962. const style =
  8963. "@page { } " +
  8964. "@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;}";
  8965. switch (status) {
  8966. case 'zyd':
  8967. if (this.CntrTable.length > 0) {
  8968. let arr = [];
  8969. this.CntrTable.map((e) => {
  8970. this.cntrList.map((item) => {
  8971. if (item.fId == e.fCntrid) {
  8972. arr.push(item.fName + "X" + e.fCntrcount);
  8973. }
  8974. });
  8975. });
  8976. arr = [...new Set(arr)];
  8977. this.form.fCntval = arr.join(",");
  8978. } else {
  8979. this.form.fCntval = null;
  8980. }
  8981. if (this.detailList.length > 0) {
  8982. let arr = [];
  8983. this.detailList.map((e) => {
  8984. this.goodsOptions.map((item) => {
  8985. if (e.fGoodsid == item.fId) {
  8986. arr.push(item.fName);
  8987. }
  8988. });
  8989. });
  8990. arr = [...new Set(arr)];
  8991. this.form.fProductName = arr.join(",");
  8992. } else {
  8993. this.form.fProductName = "";
  8994. }
  8995. if (this.detailList.length > 0) {
  8996. let arr = [];
  8997. this.detailList.map((e) => {
  8998. arr.push(e.fMarks);
  8999. });
  9000. arr = [...new Set(arr)];
  9001. this.form.fMarks = arr.join(",");
  9002. } else {
  9003. this.form.fMarks = "";
  9004. }
  9005. this.form.fBillingway = this.form.fFeetUnit;
  9006. if (this.detailList.length == 0) {
  9007. this.form.fNetweight = 0;
  9008. this.form.fPlanvolumn = 0;
  9009. this.form.fGrossweight = 0;
  9010. } else {
  9011. this.form.fNetweight = this.fNetweight;
  9012. this.form.fPlanvolumn = this.fPlanvolumn;
  9013. this.form.fGrossweight = this.fGrossweight;
  9014. }
  9015. let formData = new window.FormData();
  9016. formData.append("warehouseBills", JSON.stringify(this.form));
  9017. formData.append("warehousebillsitems", JSON.stringify(this.Printinglist));
  9018. formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  9019. formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  9020. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  9021. formData.append("tCntr", JSON.stringify(this.CntrTable));
  9022. addJoblist(formData).then((response) => {
  9023. if (response.code == 200) {
  9024. this.$set(this.form, "fDateChanged", response.data.fDateChanged);
  9025. this.detailList.map((e, index) => {
  9026. response.data.warehousebillsitems.map((item) => {
  9027. if (e.fId == item.fId) {
  9028. e = item;
  9029. this.$set(this.detailList, index, e);
  9030. }
  9031. });
  9032. });
  9033. this.$set(this.form, "fItemsStatus", 2);
  9034. }
  9035. });
  9036. print({
  9037. printable: "print_area1",
  9038. type: "html",
  9039. style: style, // 亦可使用引入的外部css;
  9040. scanStyles: false,
  9041. });
  9042. break
  9043. case 'ccdzrkd':
  9044. let stylEe =
  9045. "@page { } " +
  9046. "@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;}";
  9047. print({
  9048. printable: "print_area8",
  9049. type: "html",
  9050. style: stylEe, // 亦可使用引入的外部css;
  9051. scanStyles: false,
  9052. });
  9053. break
  9054. case 'fxdkrkd':
  9055. print({
  9056. printable: "print_area9",
  9057. type: "html",
  9058. style: style, // 亦可使用引入的外部css;
  9059. scanStyles: false,
  9060. });
  9061. break
  9062. case 'khrkd':
  9063. print({
  9064. printable: "print_area10",
  9065. type: "html",
  9066. style: style, // 亦可使用引入的外部css;
  9067. scanStyles: false,
  9068. });
  9069. break
  9070. case 'xhcdrkd':
  9071. print({
  9072. printable: "print_area11",
  9073. type: "html",
  9074. style: style, // 亦可使用引入的外部css;
  9075. scanStyles: false,
  9076. });
  9077. break
  9078. case 'zpdkrkd':
  9079. print({
  9080. printable: "print_area12",
  9081. type: "html",
  9082. style: style, // 亦可使用引入的外部css;
  9083. scanStyles: false,
  9084. });
  9085. break
  9086. case 'bzrkd_js':
  9087. print({
  9088. printable: "print_area15",
  9089. type: "html",
  9090. style: style, // 亦可使用引入的外部css;
  9091. scanStyles: false,
  9092. });
  9093. break
  9094. case 'bzrkd_xq':
  9095. print({
  9096. printable: "print_area16",
  9097. type: "html",
  9098. style: style, // 亦可使用引入的外部css;
  9099. scanStyles: false,
  9100. });
  9101. break
  9102. case 'bzrkd_qt':
  9103. print({
  9104. printable: "print_area17",
  9105. type: "html",
  9106. style: style, // 亦可使用引入的外部css;
  9107. scanStyles: false,
  9108. });
  9109. break
  9110. case 'jcd':
  9111. print({
  9112. printable: "print_area18",
  9113. type: "html",
  9114. style: style, // 亦可使用引入的外部css;
  9115. scanStyles: false,
  9116. });
  9117. break
  9118. case '001':
  9119. print({
  9120. printable: "print_area001",
  9121. type: "html",
  9122. style: style, // 亦可使用引入的外部css;
  9123. scanStyles: false,
  9124. });
  9125. break
  9126. default:
  9127. print({
  9128. printable: "print_area4",
  9129. type: "html",
  9130. style: style, // 亦可使用引入的外部css;
  9131. scanStyles: false,
  9132. });
  9133. }
  9134. },
  9135. cancel() {
  9136. if (this.$route.query.id) {
  9137. this.$router.push({query: {}});
  9138. }
  9139. this.form.fId = ''
  9140. this.resetForm("form");
  9141. this.resetForm("importList");
  9142. this.detailList = [];
  9143. this.relevantAttachments = [];
  9144. this.warehouseCrList = [];
  9145. this.warehouseDrList = [];
  9146. this.CntrTable = [];
  9147. this.$emit("changeShow", "true");
  9148. },
  9149. goBack() {
  9150. this.$confirm("是否确定返回列表?", "提示", {
  9151. confirmButtonText: "保存",
  9152. cancelButtonText: "取消",
  9153. type: "warning",
  9154. }).then(() => {
  9155. this.saveForm("goBack");
  9156. }).catch(() => {
  9157. this.cancel();
  9158. });
  9159. },
  9160. openUploadExcel() {
  9161. this.uploadExcel = !this.uploadExcel;
  9162. this.$refs.upexcel.init(this.form, this.detailList);
  9163. },
  9164. // 监听 子组件弹窗关闭后触发,有子组件调用
  9165. showAddOrUpdate(data) {
  9166. if (data === "false") {
  9167. this.addOrUpdateVisible = false;
  9168. this.disabled = false;
  9169. } else {
  9170. this.addOrUpdateVisible = true;
  9171. }
  9172. },
  9173. showAddOrUpdate2(data) {
  9174. this.uploadExcel = data;
  9175. },
  9176. adddetailList(rows) {
  9177. rows.map((e) => {
  9178. e.fMblno = this.form.fMblno;
  9179. e.fBillstatus = 10;
  9180. });
  9181. this.detailList.push(...rows);
  9182. },
  9183. downloadExcel() {
  9184. window.location.href = "http://121.36.212.131:8080/file/入库模板.xlsx";
  9185. },
  9186. // 付款信息请核
  9187. checkRow(index, rows) {
  9188. if (!rows[index].fQty) {
  9189. this.$message.error("请维护数量")
  9190. return false
  9191. }
  9192. if (!rows[index].fUnitprice) {
  9193. this.$message.error("请维护单价")
  9194. return false
  9195. }
  9196. if (!rows[index].fAmount) {
  9197. this.$message.error("请维护金额")
  9198. return false
  9199. }
  9200. rows[index].fBillstatus = 6
  9201. let formData = new window.FormData();
  9202. formData.append("tWarehouseBills", JSON.stringify(this.form));
  9203. // 库存明细
  9204. formData.append("tWarehousebillsitems",JSON.stringify(this.detailList));
  9205. // 附件数据
  9206. formData.append("tEnclosure",JSON.stringify(this.relevantAttachments));
  9207. // 费用明细付款
  9208. formData.append("tWarehousebillsfeesCr",JSON.stringify(this.warehouseCrList));
  9209. // 收款
  9210. formData.append("tWarehousebillsfeesDr",JSON.stringify(this.warehouseDrList));
  9211. formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
  9212. formData.append("tCntr", JSON.stringify(this.CntrTable));
  9213. addWarehousebills(formData).then(res => {
  9214. this.msgSuccess("请核成功");
  9215. })
  9216. },
  9217. revokeRow(index, rows) {
  9218. rows[index].fBillstatus = 2
  9219. let formData = new window.FormData();
  9220. formData.append("tWarehouseBills", JSON.stringify(this.form));
  9221. // 库存明细
  9222. formData.append("tWarehousebillsitems",JSON.stringify(this.detailList));
  9223. // 附件数据
  9224. formData.append("tEnclosure",JSON.stringify(this.relevantAttachments));
  9225. // 费用明细付款
  9226. formData.append("tWarehousebillsfeesCr",JSON.stringify(this.warehouseCrList));
  9227. // 收款
  9228. formData.append("tWarehousebillsfeesDr",JSON.stringify(this.warehouseDrList));
  9229. formData.append("mblnoStatus", JSON.stringify(this.mblnoStatus));
  9230. formData.append("tCntr", JSON.stringify(this.CntrTable));
  9231. addWarehousebills(formData).then(res => {
  9232. this.msgSuccess("撤销成功");
  9233. })
  9234. },
  9235. changePlannetWeight() {
  9236. console.log(this.bring)
  9237. if (this.bring == '0') {
  9238. this.$set(this.form, 'fPlangrossweight', this.form.fPlannetweight)
  9239. }
  9240. },
  9241. // 费用明细撤销请核
  9242. revokeListCheck() {},
  9243. // 费用明细请核
  9244. listCheck() {
  9245. feesCheck().then(res => {})
  9246. },
  9247. feeChange(fDC) {
  9248. let data = {
  9249. form: this.form,
  9250. warehousebillsfeesCr: [],
  9251. warehousebillsfeesDr: [],
  9252. billType: 'inStock',
  9253. fDc: fDC
  9254. }
  9255. if (fDC == 'C') {
  9256. data.warehousebillsfeesCr = this.warehouseCrList
  9257. } else {
  9258. data.warehousebillsfeesDr = this.warehouseDrList
  9259. }
  9260. this.$router.push({
  9261. path: "/business/costModify",
  9262. query: { data: data},
  9263. });
  9264. },
  9265. // 获取仓库信息
  9266. warehouseChange() {
  9267. getDept(this.form.fWarehouseid).then(res => {
  9268. this.$set(this.form, 'fContacts', res.data.fContacts)
  9269. this.$set(this.form, 'fTel', res.data.fTel)
  9270. })
  9271. },
  9272. },
  9273. watch: {
  9274. // 监听 addOrUpdateVisible 改变
  9275. addOrUpdateVisible(oldVal, newVal) {
  9276. this.showDialog = this.addOrUpdateVisible;
  9277. },
  9278. },
  9279. };
  9280. </script>
  9281. <style lang="scss" scoped>
  9282. .tag-hover:hover {
  9283. background-color: #d9ebfb;
  9284. }
  9285. .tag-hover {
  9286. border-top-left-radius: 0;
  9287. border-bottom-left-radius: 0;
  9288. height: 15px;
  9289. padding: 0px 1px;
  9290. line-height: 12px;
  9291. }
  9292. .print-div {
  9293. color: #000;
  9294. }
  9295. .print_table {
  9296. table {
  9297. border-right: 1px solid #000;
  9298. border-bottom: 1px solid #000;
  9299. font-size: 12px;
  9300. margin-bottom: 5px;
  9301. }
  9302. table td {
  9303. border-left: 1px solid #000;
  9304. border-top: 1px solid #000;
  9305. vertical-align: middle;
  9306. padding: 2px;
  9307. text-align: center;
  9308. }
  9309. }
  9310. .print_form {
  9311. font-size: 12px;
  9312. }
  9313. </style>