AddOrUpdate.vue 285 KB

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