AddOrUpdate.vue 215 KB

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