AddOrUpdate.vue 190 KB

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