AddOrUpdate.vue 192 KB

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