AddOrUpdate.vue 170 KB

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