AddOrUpdate.vue 192 KB

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