oYeTransResult.vue 163 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359
  1. //钢材统计报表
  2. <template>
  3. <div class="saleSteelReports">
  4. <div class="tableTop">
  5. <el-form :inline="true">
  6. <el-form-item>
  7. <el-select
  8. v-model="screen"
  9. placeholder="请选择需筛选的内容"
  10. clearable
  11. @change="changeScreen"
  12. style="width:90px"
  13. >
  14. <el-option
  15. v-for="item in options"
  16. :key="item.value"
  17. :label="item.label"
  18. :value="item.value"
  19. >
  20. </el-option>
  21. </el-select>
  22. <el-input
  23. style="width:150px"
  24. v-model="input"
  25. placeholder="请输入查询条件"
  26. clearable
  27. ></el-input>
  28. </el-form-item>
  29. <el-form-item>
  30. <el-select
  31. v-model="screen1"
  32. placeholder="请选择需筛选的内容"
  33. clearable
  34. @change="changeScreen"
  35. style="width:90px"
  36. >
  37. <el-option
  38. v-for="item in options1"
  39. :key="item.value"
  40. :label="item.label"
  41. :value="item.value"
  42. >
  43. </el-option>
  44. </el-select>
  45. <el-input
  46. style="width:150px"
  47. v-model="input1"
  48. placeholder="请输入查询条件"
  49. clearable
  50. ></el-input>
  51. </el-form-item>
  52. <el-form-item>
  53. <label class="el-form-item__label" style="width: auto;"
  54. >计划日期:</label
  55. >
  56. <el-date-picker
  57. v-model="startTime"
  58. type="date"
  59. placeholder="选择日期"
  60. style="width:140px"
  61. :picker-options="pickerOptions"
  62. >
  63. </el-date-picker>
  64. <span>至</span>
  65. <el-date-picker
  66. v-model="endTime"
  67. type="date"
  68. placeholder="选择日期"
  69. style="width:140px"
  70. :picker-options="pickerOptions1"
  71. >
  72. </el-date-picker>
  73. <el-button type="primary" class="btn" @click="onclick(filterMap)">
  74. <i class="el-icon-search"></i>
  75. </el-button>
  76. </el-form-item>
  77. <el-form-item>
  78. <el-button type="primary" @click="exportAllReportToExcel"
  79. >下载Excel</el-button
  80. >
  81. </el-form-item>
  82. <el-form-item>
  83. <el-button type="primary" @click="clearFilter"
  84. >清除所有筛选</el-button
  85. >
  86. </el-form-item>
  87. <el-form-item>
  88. <el-button type="primary" @click="refresh">
  89. <i class="el-icon-refresh"></i>
  90. </el-button>
  91. </el-form-item>
  92. <el-form-item>
  93. <el-button type="primary" @click="checkTrans()"
  94. ><i class="el-icon-truck"></i>轨迹</el-button
  95. >
  96. </el-form-item>
  97. <el-form-item v-if="isShowOperate">
  98. <el-button type="primary" @click="operation()">
  99. <i class="el-icon-edit"></i>更改
  100. <span>
  101. <!-- || orgCode!='chengyunshang' -->
  102. <el-badge
  103. :value="taskAllNum"
  104. :max="99"
  105. :hidden="taskAllNum < 1"
  106. ></el-badge>
  107. </span>
  108. </el-button>
  109. <!-- <el-button type="primary" @click="batchoperation()"
  110. ><i class="el-icon-edit"></i>批量更改</el-button
  111. > -->
  112. <el-button
  113. type="primary"
  114. @click="checkPoint()"
  115. v-if="!notRoutList.includes('checkPoint')"
  116. ><i class="el-icon-map-location"></i>实时路径</el-button
  117. >
  118. </el-form-item>
  119. <el-form-item v-if="isShowOperate">
  120. <el-button type="primary" @click="openReceive()">
  121. <i class="el-icon-document"></i>签收抵达</el-button
  122. >
  123. </el-form-item>
  124. <el-form-item v-if="isShowOperate">
  125. <el-button
  126. type="primary"
  127. @click="batchCarrier()"
  128. v-if="!notRoutList.includes('batchCarrier')"
  129. >
  130. <i class="el-icon-share"></i>批量</el-button
  131. >
  132. </el-form-item>
  133. <el-form-item v-if="isShowOperateYeWuYuan">
  134. <el-button type="primary" @click="mergeSplit()">
  135. <i class="el-icon-pie-chart"></i>
  136. 合并或拆分
  137. </el-button>
  138. </el-form-item>
  139. <el-form-item
  140. ><el-button type="primary" @click="confirmInbound"
  141. ><i class="el-icon-check"></i>出库确认</el-button
  142. ></el-form-item
  143. >
  144. <el-form-item v-if="isShowOperate">
  145. <el-dropdown>
  146. <el-button type="primary">
  147. 更多<i class="el-icon-arrow-down el-icon--right"></i>
  148. </el-button>
  149. <el-dropdown-menu slot="dropdown">
  150. <el-button
  151. type="primary"
  152. @click="mergeSplit()"
  153. v-if="!notRoutList.includes('mergeSplit')"
  154. >
  155. <i class="el-icon-pie-chart"></i>
  156. 合并或拆分
  157. </el-button>
  158. <el-button
  159. type="primary"
  160. @click="showSaleLog()"
  161. v-if="!notRoutList.includes('saleLog')"
  162. >
  163. <i class="el-icon-pie-chart"></i>
  164. 操作日志
  165. </el-button>
  166. <el-button type="primary" @click="ctrlColumnShow">
  167. <i class="el-icon-pie-chart"></i>
  168. 控制列显隐
  169. </el-button>
  170. </el-dropdown-menu>
  171. </el-dropdown>
  172. </el-form-item>
  173. <el-form-item>
  174. <span style="width: auto;font-size: 16px;line-height: auto;"
  175. >车数/件数/磅重/取消: {{ totalCapacity }}/{{ totalNumber }}/{{
  176. totalNetWeight
  177. }}/{{ quxiaoCapacityNum }}
  178. </span>
  179. </el-form-item>
  180. </el-form>
  181. </div>
  182. <div class="table">
  183. <el-table
  184. :data="visibleList"
  185. :span-method="objectSpanMethod"
  186. ref="tableRef"
  187. border
  188. style="width: 100%; margin-top: 20px"
  189. id="salesLogisticsStat_saleSteelReports_table"
  190. :height="maxHeight"
  191. :max-height="maxHeight"
  192. :row-class-name="tableRowClassName"
  193. @cell-click="cellClik"
  194. @cell-mouse-enter="cellMouse1"
  195. @cell-mouse-leave="cellLeave1"
  196. @row-click="rowClick"
  197. :cell-style="cellStyle"
  198. @filter-change="filterChange"
  199. :key="saleSteelKey"
  200. @select="selectOne"
  201. @selection-change="handleSelectionChange()"
  202. :header-cell-style="headCellStyle"
  203. >
  204. <el-table-column
  205. type="selection"
  206. width="50"
  207. label="选择"
  208. align="center"
  209. column-key="select"
  210. key="select"
  211. v-if="
  212. !notRoutList.includes('select') ||
  213. !columnNoRoutList.includes('选择')
  214. "
  215. ></el-table-column>
  216. <el-table-column
  217. width="50"
  218. label="序号"
  219. align="center"
  220. column-key="group"
  221. key="group"
  222. :resizable="false"
  223. v-if="!columnNoRoutList.includes('序号')"
  224. >
  225. <template slot-scope="scope">{{ scope.row.group + 1 }}</template>
  226. </el-table-column>
  227. <el-table-column
  228. prop="orderTime"
  229. label="计划日期"
  230. width="110px"
  231. align="center"
  232. column-key="orderTime"
  233. key="orderTime"
  234. show-overflow-tooltip
  235. v-if="!columnNoRoutList.includes('订单日期')"
  236. >
  237. </el-table-column>
  238. <el-table-column
  239. prop="saleOrderStatus"
  240. column-key="saleOrderStatus"
  241. key="saleOrderStatus"
  242. label="计划状态"
  243. width="110px"
  244. align="center"
  245. :filters="filterSaleOrderStatus"
  246. sortable
  247. v-if="!columnNoRoutList.includes('销售订单状态')"
  248. >
  249. </el-table-column>
  250. <el-table-column
  251. prop="consigneeName"
  252. label="收货单位"
  253. width="250px"
  254. align="center"
  255. column-key="consigneeName"
  256. key="consigneeName"
  257. show-overflow-tooltip
  258. v-if="!columnNoRoutList.includes('客户')"
  259. :render-header="renderHeader"
  260. >
  261. </el-table-column>
  262. <el-table-column
  263. prop="orderStatus"
  264. column-key="orderStatus"
  265. key="orderStatus"
  266. label="运单状态"
  267. align="center"
  268. :filters="filterorderStatus"
  269. v-if="!columnNoRoutList.includes('运单状态')"
  270. >
  271. </el-table-column>
  272. <el-table-column
  273. prop="orderStatusActually"
  274. column-key="orderStatusActually"
  275. key="orderStatusActually"
  276. label="订单实际状态"
  277. align="center"
  278. width="100"
  279. :filters="filterorderStatusActually"
  280. v-if="!columnNoRoutList.includes('运单状态')"
  281. >
  282. </el-table-column>
  283. <el-table-column
  284. prop="carrierName"
  285. label="承运商"
  286. align="center"
  287. width="80px"
  288. column-key="carrierList"
  289. key="carrierList"
  290. sortable
  291. show-overflow-tooltip
  292. :filters="filterCarrierList"
  293. v-if="!columnNoRoutList.includes('承运商')"
  294. >
  295. </el-table-column>
  296. <el-table-column
  297. prop="capacityNo"
  298. column-key="capacityNo"
  299. key="capacityNo"
  300. label="车牌号"
  301. align="center"
  302. width="90px"
  303. show-overflow-tooltip
  304. v-if="!columnNoRoutList.includes('车牌号')"
  305. :render-header="renderHeader"
  306. >
  307. </el-table-column>
  308. <el-table-column
  309. prop="materialName"
  310. column-key="materialNameList"
  311. key="materialNameList"
  312. label="物资名称"
  313. align="center"
  314. width="150px"
  315. v-if="!columnNoRoutList.includes('物资名称')"
  316. :render-header="renderHeader"
  317. >
  318. </el-table-column>
  319. <el-table-column
  320. prop="materialSpe"
  321. label="物资规格"
  322. column-key="materialSpe"
  323. key="materialSpe"
  324. align="center"
  325. width="120px"
  326. v-if="!columnNoRoutList.includes('物资规格')"
  327. :render-header="renderHeader"
  328. >
  329. </el-table-column>
  330. <el-table-column
  331. prop="materialMeter"
  332. column-key="materialMeter"
  333. key="materialMeter"
  334. label="米数"
  335. align="center"
  336. width="50px"
  337. v-if="!columnNoRoutList.includes('物资件数')"
  338. >
  339. </el-table-column>
  340. <el-table-column
  341. prop="singleWeight"
  342. column-key="singleWeight"
  343. key="singleWeight"
  344. label="单重"
  345. align="center"
  346. width="50px"
  347. v-if="!columnNoRoutList.includes('物资件数')"
  348. >
  349. </el-table-column>
  350. <el-table-column
  351. prop="materialNum"
  352. column-key="materialNum"
  353. key="materialNum"
  354. label="物资件数"
  355. align="center"
  356. width="50px"
  357. v-if="!columnNoRoutList.includes('物资件数')"
  358. >
  359. </el-table-column>
  360. <el-table-column
  361. prop="materialThoWeight"
  362. column-key="materialThoWeight"
  363. key="materialThoWeight"
  364. label="理重"
  365. align="center"
  366. width="50px"
  367. v-if="!columnNoRoutList.includes('理重')"
  368. >
  369. </el-table-column>
  370. <el-table-column
  371. prop="addressPlace"
  372. label="收货地址"
  373. width="250px"
  374. column-key="addressPlace"
  375. key="addressPlace"
  376. show-overflow-tooltip
  377. v-if="!columnNoRoutList.includes('收货地址')"
  378. :render-header="renderHeader"
  379. >
  380. <template slot-scope="scope">
  381. <span
  382. v-if="scope.row.addressPlace.indexOf('新地址') >= 0"
  383. style="color:red"
  384. >{{ scope.row.addressPlace }}</span
  385. >
  386. <span v-show="scope.row.addressPlace.indexOf('新地址') < 0">{{
  387. scope.row.addressPlace
  388. }}</span>
  389. </template>
  390. </el-table-column>
  391. <el-table-column
  392. prop="consigneeTel"
  393. column-key="consigneeTel"
  394. key="consigneeTel"
  395. label="收货客户电话"
  396. width="120px"
  397. align="center"
  398. v-if="!columnNoRoutList.includes('收货客户电话')"
  399. >
  400. </el-table-column>
  401. <el-table-column
  402. prop="saleRemark"
  403. column-key="saleRemark"
  404. key="saleRemark"
  405. label="摘要"
  406. width="180px"
  407. show-overflow-tooltip
  408. align="center"
  409. v-if="!columnNoRoutList.includes('摘要')"
  410. :render-header="renderHeader"
  411. >
  412. </el-table-column>
  413. <el-table-column
  414. prop="truckRemark"
  415. column-key="truckRemark"
  416. key="truckRemark"
  417. label="备注"
  418. width="150"
  419. align="center"
  420. :render-header="renderHeader"
  421. show-overflow-tooltip
  422. v-if="!columnNoRoutList.includes('备注')"
  423. >
  424. </el-table-column>
  425. <el-table-column
  426. prop="capacityTel"
  427. column-key="capacityTel"
  428. key="capacityTel"
  429. label="司机电话"
  430. width="120px"
  431. align="center"
  432. v-if="!columnNoRoutList.includes('司机电话')"
  433. >
  434. </el-table-column>
  435. <el-table-column
  436. prop="spellNum"
  437. column-key="spellNum"
  438. key="spellNum"
  439. label="拼数"
  440. width="120px"
  441. align="center"
  442. :filters="filterSpellNum"
  443. v-if="!columnNoRoutList.includes('拼数')"
  444. >
  445. </el-table-column>
  446. <el-table-column
  447. prop="loadTime"
  448. column-key="loadTime"
  449. key="loadTime"
  450. label="装货时间"
  451. width="130px"
  452. show-overflow-tooltip
  453. v-if="!columnNoRoutList.includes('装货时间')"
  454. >
  455. </el-table-column>
  456. <el-table-column
  457. prop="isPrintDelivery"
  458. column-key="isPrintDelivery"
  459. key="isPrintDelivery"
  460. label="送货单打印"
  461. align="center"
  462. width="100px"
  463. show-overflow-tooltip
  464. v-if="!columnNoRoutList.includes('送货单打印')"
  465. >
  466. </el-table-column>
  467. <el-table-column
  468. prop="smsResultId"
  469. column-key="smsResultId"
  470. key="smsResultId"
  471. label="短信发送"
  472. width="100px"
  473. align="center"
  474. show-overflow-tooltip
  475. v-if="!columnNoRoutList.includes('短信发送')"
  476. >
  477. </el-table-column>
  478. <el-table-column
  479. prop="arrivalAddress"
  480. column-key="arrivalAddress"
  481. key="arrivalAddress"
  482. label="抵达地址"
  483. width="280px"
  484. show-overflow-tooltip
  485. v-if="!columnNoRoutList.includes('抵达地址')"
  486. >
  487. </el-table-column>
  488. <el-table-column
  489. prop="arrivalTime"
  490. column-key="arrivalTime"
  491. key="arrivalTime"
  492. label="抵达时间"
  493. width="150px"
  494. v-if="!columnNoRoutList.includes('抵达时间')"
  495. >
  496. </el-table-column>
  497. <el-table-column
  498. prop="receiptAddress"
  499. column-key="receiptAddress"
  500. key="receiptAddress"
  501. label="签收地址"
  502. width="280px"
  503. show-overflow-tooltip
  504. v-if="!columnNoRoutList.includes('签收地址')"
  505. >
  506. </el-table-column>
  507. <el-table-column
  508. prop="receiptTime"
  509. column-key="receiptTime"
  510. key="receiptTime"
  511. label="签收时间"
  512. width="150px"
  513. v-if="!columnNoRoutList.includes('签收时间')"
  514. >
  515. </el-table-column>
  516. <el-table-column
  517. prop="orderNo"
  518. column-key="orderNo"
  519. key="orderNo"
  520. label="运输订单号"
  521. width="180px"
  522. align="center"
  523. v-if="!columnNoRoutList.includes('运输订单号')"
  524. >
  525. </el-table-column>
  526. <el-table-column
  527. prop="saler"
  528. column-key="saler"
  529. key="saler"
  530. label="业务员"
  531. align="center"
  532. v-if="!columnNoRoutList.includes('业务员')"
  533. >
  534. </el-table-column>
  535. <el-table-column
  536. prop="shipperName"
  537. column-key="shipperName"
  538. key="shipperName"
  539. label="发货单位"
  540. width="170px"
  541. align="center"
  542. show-overflow-tooltip
  543. v-if="!columnNoRoutList.includes('发货单位')"
  544. >
  545. </el-table-column>
  546. <el-table-column
  547. prop="isSelfMention"
  548. column-key="isSelfMention"
  549. key="isSelfMention"
  550. label="是否自提"
  551. align="center"
  552. v-if="!columnNoRoutList.includes('是否自提')"
  553. >
  554. </el-table-column>
  555. <el-table-column
  556. prop="saleOrderNo"
  557. column-key="saleOrderNo"
  558. key="saleOrderNo"
  559. label="转运计划号"
  560. width="200px"
  561. align="center"
  562. v-if="!columnNoRoutList.includes('销售订单号')"
  563. >
  564. </el-table-column>
  565. <el-table-column
  566. prop="orderInsertUpdateRemark"
  567. column-key="orderInsertUpdateRemark"
  568. key="orderInsertUpdateRemark"
  569. label="运输订单变更记录"
  570. width="120px"
  571. show-overflow-tooltip
  572. v-if="!columnNoRoutList.includes('运输订单变更记录')"
  573. >
  574. </el-table-column>
  575. <el-table-column
  576. prop="materialPlanNumber"
  577. column-key="materialPlanNumber"
  578. key="materialPlanNumber"
  579. label="理论件数"
  580. align="center"
  581. v-if="!columnNoRoutList.includes('理论件数')"
  582. >
  583. </el-table-column>
  584. </el-table>
  585. </div>
  586. <div>
  587. <vxe-modal
  588. width="80%"
  589. height="80%"
  590. v-model="isShow3"
  591. show-footer
  592. show-zoom
  593. class="vxeModal"
  594. >
  595. <div class="demo-image__preview" v-for="(item, i) in srcList" :key="i">
  596. <span>{{ item.title }}</span>
  597. <el-image
  598. :src="item.src"
  599. fit="fill"
  600. :previewSrcList="previewSrcList"
  601. @click.prevent.right="receiveClick(item.src, '抵达')"
  602. >
  603. <div slot="error" class="image-slot">
  604. <span>司机未上传图片</span>
  605. </div>
  606. </el-image>
  607. </div>
  608. </vxe-modal>
  609. <vxe-modal width="80%" height="80%" v-model="isShow4" show-zoom>
  610. <div class="demo-image__preview" v-for="(item, i) in srcList2" :key="i">
  611. <el-image
  612. :src="item.src"
  613. fit="fill"
  614. :previewSrcList="previewSrcList2"
  615. @click.prevent.right="receiveClick(item.src, '签收')"
  616. >
  617. <div slot="error" class="image-slot">
  618. <span>司机未上传图片</span>
  619. </div>
  620. </el-image>
  621. </div>
  622. </vxe-modal>
  623. </div>
  624. <div class="dialog">
  625. <el-dialog
  626. title="运单详情"
  627. :visible.sync="centerDialogVisible"
  628. width="90%"
  629. center
  630. >
  631. <div class="steelMapClass">
  632. <div class="steelMapClass1">
  633. <div class="steelMapClass12">
  634. <span>转运计划号:</span>
  635. <span>{{ steelMap.saleOrderNo }}</span>
  636. </div>
  637. <div class="steelMapClass12">
  638. <span>订单状态:</span>
  639. <span>{{ steelMap.saleOrderStatus }}</span>
  640. </div>
  641. <div class="steelMapClass12">
  642. <span>业务员:</span>
  643. <span>{{ steelMap.saler }}</span>
  644. </div>
  645. <div class="steelMapClass12">
  646. <span>收货单位:</span>
  647. <span>{{ steelMap.consigneeName }}</span>
  648. </div>
  649. <div
  650. class="steelMapClass13"
  651. v-if="!notRoutList.includes('closeOrder')"
  652. >
  653. <span>车辆备注:</span>
  654. <span
  655. ><el-input
  656. v-model="steelMap.truckRemark"
  657. width="250px"
  658. ></el-input
  659. ></span>
  660. <!-- <span>{{ steelMap.truckRemark }}</span> -->
  661. </div>
  662. </div>
  663. <div class="steelMapClass2">
  664. <div class="steelMapClass22">
  665. <span>收货地址:</span>
  666. <el-select
  667. v-model="steelMap.addressProvince"
  668. filterable
  669. placeholder="请选择"
  670. @change="onchangeProvince"
  671. style="width:120px"
  672. :disabled="notRoutList.includes('province')"
  673. >
  674. <el-option
  675. v-for="item in provinceList"
  676. :key="item.id"
  677. :label="item.addressProvince"
  678. :value="item.id"
  679. ></el-option>
  680. </el-select>
  681. <el-select
  682. v-model="steelMap.addressDistrict"
  683. filterable
  684. placeholder="请选择"
  685. @change="onchangeCity"
  686. style="width:120px"
  687. :disabled="notRoutList.includes('city')"
  688. >
  689. <el-option
  690. v-for="item in cityList"
  691. :key="item.id"
  692. :label="item.addressDistrict"
  693. :value="item.id"
  694. ></el-option>
  695. </el-select>
  696. <el-select
  697. v-model="steelMap.addressTown"
  698. filterable
  699. placeholder="请选择"
  700. @change="onchangeCounty"
  701. style="width:120px"
  702. :disabled="notRoutList.includes('country')"
  703. >
  704. <el-option
  705. v-for="item in countyList"
  706. :key="item.id"
  707. :label="item.addressTown"
  708. :value="item.id"
  709. ></el-option>
  710. </el-select>
  711. <el-autocomplete
  712. class="inline-input"
  713. v-model="steelMap.place"
  714. :fetch-suggestions="querySearch1"
  715. placeholder="请输入具体收货地址"
  716. :trigger-on-focus="false"
  717. @select="handleSelect1"
  718. style="width:250px"
  719. :disabled="notRoutList.includes('place')"
  720. >
  721. </el-autocomplete>
  722. <el-button
  723. type="success"
  724. circle
  725. @click="addAddressClick"
  726. v-if="!notRoutList.includes('addressClick')"
  727. >提交</el-button
  728. >
  729. </div>
  730. <div
  731. class="steelMapClass23"
  732. v-if="
  733. (steelMap.carStatus == 4 ||
  734. steelMap.carStatus == 5 ||
  735. steelMap.carStatus == null) &&
  736. !notRoutList.includes('closeOrder')
  737. "
  738. ></div>
  739. <div
  740. class="steelMapClass23"
  741. v-if="
  742. steelMap.carStatus == 7 && !notRoutList.includes('closeOrder')
  743. "
  744. >
  745. <el-button type="danger" round @click="reverseCloseOrder"
  746. >反关闭运单</el-button
  747. >
  748. </div>
  749. <div v-if="!notRoutList.includes('closeOrder')">
  750. <el-button round @click="resetPrintNumber"
  751. >重置打印次数</el-button
  752. >
  753. </div>
  754. </div>
  755. <div class="steelMapClass3">
  756. <div class="steelMapClass32">
  757. <span>收货客户电话:</span>
  758. <el-input
  759. v-model="steelMap.consigneeTel"
  760. style="width:150px"
  761. :disabled="notRoutList.includes('consigeeTel')"
  762. ></el-input>
  763. <el-button
  764. type="success"
  765. circle
  766. @click="updateconsigneeTel"
  767. v-if="!notRoutList.includes('consigeeTel')"
  768. >提交</el-button
  769. >
  770. </div>
  771. <div class="steelMapClass33">
  772. <span>承运商:</span>
  773. <el-autocomplete
  774. style="width:120px"
  775. v-model="steelMap.carrierName"
  776. :fetch-suggestions="querySearchCarrier"
  777. placeholder="请输入承运商"
  778. @select="handleSelectCarrier"
  779. :disabled="notRoutList.includes('carrierName')"
  780. >
  781. </el-autocomplete>
  782. <el-button
  783. type="success"
  784. circle
  785. @click="updateTruckCarrierDebounce"
  786. v-if="!notRoutList.includes('carrierName')"
  787. >提交</el-button
  788. >
  789. </div>
  790. <div class="steelMapClass33">
  791. <span>车牌号:</span>
  792. <el-autocomplete
  793. style="width:120px"
  794. v-model="steelMap.capacityNo"
  795. :fetch-suggestions="querySearch"
  796. placeholder="请输入车牌号"
  797. @select="handleSelect()"
  798. :disabled="
  799. notRoutList.includes('capacityNo') &&
  800. steelMap.capacityId != null &&
  801. steelMap.capacityNoFlag != null
  802. "
  803. ></el-autocomplete>
  804. <el-button
  805. type="success"
  806. circle
  807. @click="updateCapacityDebounce"
  808. v-if="
  809. !(
  810. notRoutList.includes('capacityNo') &&
  811. steelMap.capacityId != null &&
  812. steelMap.capacityNoFlag != null
  813. )
  814. "
  815. >提交</el-button
  816. >
  817. <span v-show="orgCode != 'chengyunshang'">是否校验GPS:</span>
  818. <el-switch
  819. v-model="isCheckGPS"
  820. v-show="orgCode != 'chengyunshang'"
  821. :disabled="orgCode == 'chengyunshang'"
  822. >
  823. </el-switch>
  824. </div>
  825. <div class="steelMapClass33">
  826. <span>司机电话:</span>
  827. <el-input
  828. style="width:120px"
  829. v-model="steelMap.capacityTel"
  830. placeholder="请输入电话号码"
  831. ></el-input>
  832. <el-button type="success" circle @click="updateDriverTel"
  833. >提交</el-button
  834. >
  835. </div>
  836. </div>
  837. <div class="steelMapClass4">
  838. <div class="steelMapClass42" v-if="steelMap.orderNo != null">
  839. <span>运输订单号:</span>
  840. <span>{{ steelMap.orderNo }}</span>
  841. </div>
  842. <div class="steelMapClass43">
  843. <span>运单状态:</span>
  844. <span>{{ steelMap.orderStatus }}</span>
  845. </div>
  846. <div
  847. class="steelMapClass43"
  848. v-if="steelMap.orderStatusTime != null"
  849. >
  850. <span>状态更新时间:</span>
  851. <span>{{ steelMap.orderStatusTime }}</span>
  852. </div>
  853. </div>
  854. <div class="steelMapClass9">
  855. <div
  856. class="steelMapClass92"
  857. v-if="
  858. steelMap.orderNo != null && !notRoutList.includes('closeOrder')
  859. "
  860. >
  861. <el-form :inline="true">
  862. <el-form-item>
  863. <el-input
  864. v-model="steelMap.remark"
  865. placeholder="填写备注"
  866. class="steelMapClass921"
  867. type="textarea"
  868. autosize
  869. >
  870. <!-- <template slot="prepend">备注</template>
  871. <template slot="prefix">
  872. {{ steelMap.remark }}
  873. </template> -->
  874. </el-input></el-form-item
  875. >
  876. <el-form-item>
  877. <el-button @click="openRemarkPic" type="primary"
  878. >备注图片</el-button
  879. >
  880. </el-form-item>
  881. </el-form>
  882. </div>
  883. </div>
  884. <div class="steelMapClass5">
  885. <div class="steelMapClass52" v-if="steelMap.arrivalAddress != null">
  886. <span>抵达地址:</span>
  887. <span>{{ steelMap.arrivalAddress }}</span>
  888. </div>
  889. </div>
  890. <div class="steelMapClass6">
  891. <div class="steelMapClass62" v-if="steelMap.receiptAddress != null">
  892. <span>签收地址:</span>
  893. <span>{{ steelMap.receiptAddress }}</span>
  894. </div>
  895. </div>
  896. </div>
  897. <div class="table1">
  898. <el-table
  899. :data="steelMap.mapList"
  900. border
  901. style="width: 100%; margin-top: 20px"
  902. :span-method="objectSpanMethod1"
  903. >
  904. <el-table-column
  905. prop="materialName"
  906. label="物资名称"
  907. align="center"
  908. width="150px"
  909. >
  910. </el-table-column>
  911. <el-table-column
  912. prop="materialSpe"
  913. label="物资规格"
  914. align="center"
  915. sortable
  916. >
  917. </el-table-column>
  918. <el-table-column
  919. prop="materialNum"
  920. label="物资件数"
  921. align="center"
  922. width="200px"
  923. >
  924. <template slot-scope="scope">
  925. <button
  926. type="primary"
  927. @click="scope.row.materialNumber--"
  928. style="height:40px"
  929. v-if="!notRoutList.includes('materialNum')"
  930. >
  931. -
  932. </button>
  933. <input
  934. v-model="scope.row.materialNumber"
  935. style="width:40px;height: 40px;font-size:16px;line-height: 40px;text-align: center;"
  936. :disabled="notRoutList.includes('materialNum')"
  937. />
  938. <button
  939. type="primary"
  940. @click="scope.row.materialNumber++"
  941. style="height:40px"
  942. :disabled="scope.row.saleOrderStatus == 4"
  943. v-if="!notRoutList.includes('materialNum')"
  944. >
  945. +
  946. </button>
  947. <el-button
  948. type="primary"
  949. @click="updateBillOrder(scope.row)"
  950. v-if="!notRoutList.includes('materialNum')"
  951. >提交</el-button
  952. >
  953. </template>
  954. </el-table-column>
  955. <el-table-column prop="loadTime" label="装货时间" width="130px">
  956. </el-table-column>
  957. <el-table-column prop="saleRemarkByasm" label="摘要" width="100px">
  958. </el-table-column>
  959. </el-table>
  960. </div>
  961. <span slot="footer" class="dialog-footer">
  962. <el-button @click="centerDialogVisible = false">返 回</el-button>
  963. <el-button @click="submitSteelDebounce(steelMap)">确定</el-button>
  964. </span>
  965. <div>
  966. <vxe-modal
  967. width="549px"
  968. height="731px"
  969. v-model="isShow"
  970. show-zoom
  971. show-footer
  972. class="vxeModal"
  973. title="抵达上传照片"
  974. >
  975. <div class="demo-image__preview">
  976. <div
  977. class="demo-image__preview"
  978. v-for="(item, index) in srcList"
  979. :key="index"
  980. >
  981. <span>{{ item.title }}</span>
  982. <el-image
  983. style="height:731px;text-align:center"
  984. :src="item.src"
  985. >
  986. <div slot="error" class="image-slot">
  987. <span>司机未上传抵达图片</span>
  988. </div>
  989. </el-image>
  990. </div>
  991. </div>
  992. </vxe-modal>
  993. <vxe-modal
  994. width="549px"
  995. height="731px"
  996. v-model="isShow2"
  997. show-zoom
  998. show-footer
  999. title="签收上传照片"
  1000. >
  1001. <div
  1002. class="demo-image__preview"
  1003. v-for="(item, index) in srcList2"
  1004. :key="index"
  1005. >
  1006. <span>{{ item.title }}</span>
  1007. <el-image style="height:731px;text-align:center" :src="item.src">
  1008. <div slot="error" class="image-slot">
  1009. <span>司机未上传签收图片</span>
  1010. </div>
  1011. </el-image>
  1012. </div>
  1013. </vxe-modal>
  1014. </div>
  1015. </el-dialog>
  1016. </div>
  1017. <div style="height: 100%">
  1018. <vxe-modal
  1019. width="1237"
  1020. height="731"
  1021. v-model="value7"
  1022. show-zoom
  1023. resize
  1024. title="轨迹查询"
  1025. >
  1026. <template #default>
  1027. <PathView v-bind.sync="pathOption"></PathView>
  1028. </template>
  1029. </vxe-modal>
  1030. </div>
  1031. <div style="height:100%">
  1032. <vxe-modal
  1033. width="1237"
  1034. height="731"
  1035. v-model="value8"
  1036. show-zoom
  1037. resize
  1038. title="实时路径"
  1039. ><currentLocation :carNumber="carNumber"></currentLocation
  1040. ></vxe-modal>
  1041. </div>
  1042. <el-dialog
  1043. title="抵达签收"
  1044. :visible.sync="arrivalReceiving"
  1045. :before-close="closeUpload"
  1046. >
  1047. <el-form style="margin-left:20%">
  1048. <el-form-item label="车牌号码">
  1049. <el-input
  1050. v-model="capacityNumber"
  1051. disabled
  1052. style="width:300px"
  1053. ></el-input>
  1054. </el-form-item>
  1055. <el-form-item label="签收地址">
  1056. <el-input
  1057. v-model="location"
  1058. style="width:400px"
  1059. :disabled="orgCode != 'wuliuyunshubu'"
  1060. ></el-input>
  1061. </el-form-item>
  1062. <el-form-item label="抵达时间">
  1063. <el-date-picker
  1064. v-model="arrivalTime"
  1065. type="datetime"
  1066. :disabled="orgCode != 'wuliuyunshubu'"
  1067. placeholder="选择日期时间"
  1068. >
  1069. </el-date-picker>
  1070. </el-form-item>
  1071. <el-form-item label="签收时间">
  1072. <el-date-picker
  1073. v-model="receiptTime"
  1074. type="datetime"
  1075. :disabled="orgCode != 'wuliuyunshubu'"
  1076. placeholder="选择日期时间"
  1077. >
  1078. </el-date-picker>
  1079. </el-form-item>
  1080. <el-form-item label="抵达图片(车头、满货箱)" style="">
  1081. <el-upload
  1082. ref="arrival"
  1083. list-type="picture-card"
  1084. :file-list="arriavlList"
  1085. action="/api/v1/otms/addtmstruckArrivalResult"
  1086. :limit="12"
  1087. :on-change="fileChange1"
  1088. :on-remove="fileChange1"
  1089. :on-preview="handlePictureCardPreview"
  1090. :on-exceed="exceed"
  1091. accept=".jpg,.jpeg,.png,.gif,.bmp,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
  1092. :auto-upload="false"
  1093. >
  1094. <i class="el-icon-plus"></i>
  1095. </el-upload>
  1096. </el-form-item>
  1097. <el-form-item label="签收图片(空货箱、质保书、签收单)">
  1098. <el-upload
  1099. ref="receive"
  1100. list-type="picture-card"
  1101. :file-list="receiveList"
  1102. action="null"
  1103. :limit="11"
  1104. :on-change="fileChange2"
  1105. :on-remove="fileChange2"
  1106. :on-preview="handlePictureCardPreview"
  1107. :on-exceed="exceed"
  1108. accept=".jpg,.jpeg,.png,.gif,.bmp,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
  1109. :auto-upload="false"
  1110. >
  1111. <i class="el-icon-plus"></i>
  1112. </el-upload>
  1113. </el-form-item>
  1114. </el-form>
  1115. <el-button
  1116. type="primary"
  1117. @click="arrivalAndReceive"
  1118. :loading="isLoading"
  1119. style="margin-left:40%"
  1120. >确定</el-button
  1121. >
  1122. </el-dialog>
  1123. <el-dialog
  1124. title="备注图片(图片暂存后需要点击全局确定才会保存)"
  1125. :visible.sync="remarkPic"
  1126. :before-close="closeUpload2"
  1127. >
  1128. <el-form style="margin-left:20%">
  1129. <el-form-item>
  1130. <el-upload
  1131. ref="remarkPic"
  1132. list-type="picture-card"
  1133. :file-list="remarkPicList"
  1134. action="null"
  1135. :limit="11"
  1136. :on-change="fileChange3"
  1137. :on-remove="fileChange3"
  1138. :on-preview="handlePictureCardPreview"
  1139. :on-exceed="exceed"
  1140. accept=".jpg,.jpeg,.png,.gif,.bmp,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
  1141. :auto-upload="false"
  1142. >
  1143. <i class="el-icon-plus"></i>
  1144. </el-upload>
  1145. </el-form-item>
  1146. </el-form>
  1147. <el-button
  1148. type="primary"
  1149. @click="uploadRemarkPic"
  1150. :loading="isLoading"
  1151. style="margin-left:40%"
  1152. >暂存</el-button
  1153. >
  1154. </el-dialog>
  1155. <el-dialog :visible.sync="dialogVisible" width="80%">
  1156. <img width="100%" :src="dialogImageUrl" alt="" />
  1157. </el-dialog>
  1158. <el-dialog :visible.sync="batchCarrierVisible" width="55%" center>
  1159. <div class="batchCarrierClass">
  1160. <el-form :inline="true">
  1161. <span>批量授权承运商</span>
  1162. <el-form-item>
  1163. <el-autocomplete
  1164. style="width:250px"
  1165. v-model="batchCarrierName"
  1166. :fetch-suggestions="querySearchCarrier"
  1167. placeholder="请输入承运商"
  1168. @select="handleSelectCarrier"
  1169. >
  1170. </el-autocomplete>
  1171. </el-form-item>
  1172. <el-form-item>
  1173. <el-button @click="batchCarrierVisible = false">取 消</el-button>
  1174. <el-button type="primary" @click="batchCarrierMakeSure"
  1175. >确 定</el-button
  1176. >
  1177. </el-form-item>
  1178. </el-form>
  1179. </div>
  1180. <div class="batchCapacityClass">
  1181. <el-form :inline="true">
  1182. <span>批量修改车牌号</span>
  1183. <el-form-item>
  1184. <el-autocomplete
  1185. style="width:250px"
  1186. v-model="capacityNo"
  1187. :fetch-suggestions="querySearch"
  1188. placeholder="请输入车牌号"
  1189. @select="batchCapacitySelect"
  1190. >
  1191. </el-autocomplete>
  1192. </el-form-item>
  1193. <el-form-item>
  1194. <el-button @click="batchCarrierVisible = false">取 消</el-button>
  1195. <el-button type="primary" @click="batchEditCapacity"
  1196. >确 定</el-button
  1197. >
  1198. </el-form-item>
  1199. </el-form>
  1200. </div>
  1201. <div class="steelMapClass22">
  1202. <span>收货地址:</span>
  1203. <el-select
  1204. v-model="steelMap.addressProvince"
  1205. filterable
  1206. placeholder="请选择"
  1207. @change="onchangeProvince"
  1208. style="width:120px"
  1209. :disabled="notRoutList.includes('province')"
  1210. >
  1211. <el-option
  1212. v-for="item in provinceList"
  1213. :key="item.id"
  1214. :label="item.addressProvince"
  1215. :value="item.id"
  1216. ></el-option>
  1217. </el-select>
  1218. <el-select
  1219. v-model="steelMap.addressDistrict"
  1220. filterable
  1221. placeholder="请选择"
  1222. @change="onchangeCity"
  1223. style="width:120px"
  1224. :disabled="notRoutList.includes('city')"
  1225. >
  1226. <el-option
  1227. v-for="item in cityList"
  1228. :key="item.id"
  1229. :label="item.addressDistrict"
  1230. :value="item.id"
  1231. ></el-option>
  1232. </el-select>
  1233. <el-select
  1234. v-model="steelMap.addressTown"
  1235. filterable
  1236. placeholder="请选择"
  1237. @change="onchangeCounty"
  1238. style="width:120px"
  1239. :disabled="notRoutList.includes('country')"
  1240. >
  1241. <el-option
  1242. v-for="item in countyList"
  1243. :key="item.id"
  1244. :label="item.addressTown"
  1245. :value="item.id"
  1246. ></el-option>
  1247. </el-select>
  1248. <el-autocomplete
  1249. class="inline-input"
  1250. v-model="steelMap.place"
  1251. :fetch-suggestions="querySearch1"
  1252. placeholder="请输入具体收货地址"
  1253. :trigger-on-focus="false"
  1254. @select="handleSelect1"
  1255. style="width:250px"
  1256. :disabled="notRoutList.includes('place')"
  1257. >
  1258. </el-autocomplete>
  1259. <el-button
  1260. type="success"
  1261. circle
  1262. @click="batchUpdateCarAddress"
  1263. v-if="!notRoutList.includes('addressClick')"
  1264. >提交</el-button
  1265. >
  1266. </div>
  1267. <div class="batchCapacityClass" style="margin:30px">
  1268. <el-form :inline="true">
  1269. <el-form-item>
  1270. <span>批量修改收货客户电话:</span>
  1271. <el-input
  1272. v-model="consigneeTel"
  1273. style="width:150px"
  1274. :disabled="notRoutList.includes('consigeeTel')"
  1275. ></el-input>
  1276. <el-button
  1277. type="success"
  1278. circle
  1279. @click="batchUpdateconsigneeTel"
  1280. v-if="!notRoutList.includes('consigeeTel')"
  1281. >提交</el-button
  1282. >
  1283. </el-form-item>
  1284. </el-form>
  1285. </div>
  1286. </el-dialog>
  1287. <el-dialog
  1288. title="切换列的显示与隐藏"
  1289. :visible.sync="columnShowDialog"
  1290. width="50%"
  1291. center
  1292. class="columnShowDialogClass"
  1293. >
  1294. <el-tabs
  1295. v-model="schemeMap.activeName"
  1296. type="card"
  1297. editable
  1298. @edit="handleTabsEdit"
  1299. @tab-click="columnShowTabClick"
  1300. tab-position="left"
  1301. >
  1302. <el-tab-pane
  1303. :key="index"
  1304. v-for="(item, index) in schemeMap.schemeList"
  1305. :label="item.title"
  1306. :name="item.name"
  1307. >
  1308. <el-form :inline="true">
  1309. <el-form-item>
  1310. <div style="border:2px,solid,green">
  1311. <div
  1312. style="margin-left: 50%;margin-bottom: 15px;font-size: 16px;"
  1313. >
  1314. {{ schemeMap.activeName }}
  1315. </div>
  1316. <el-transfer
  1317. style="text-align: left; display: inline-block"
  1318. v-model="item.columnHiddenData"
  1319. :data="item.columnAllData"
  1320. :titles="['显示的列', '隐藏的列']"
  1321. :button-texts="['至显示列', '至隐藏列']"
  1322. ></el-transfer>
  1323. </div>
  1324. </el-form-item>
  1325. </el-form>
  1326. <el-form :inline="true">
  1327. <el-form-item>
  1328. <el-button @click="columnShowDialog = false">取 消</el-button>
  1329. <el-button type="primary" @click="columnShowOperation(item)"
  1330. >启用</el-button
  1331. >
  1332. </el-form-item>
  1333. </el-form>
  1334. </el-tab-pane>
  1335. </el-tabs>
  1336. </el-dialog>
  1337. <div class="cofirmInbound">
  1338. <el-dialog :visible.sync="confireInboundVisible" width="90%">
  1339. <div
  1340. style="font-size: 20px;font-weight:500;display: flex;justify-content: center;align-items: center;"
  1341. >
  1342. <span>出库确认</span>
  1343. </div>
  1344. <div class="steelMapClass">
  1345. <div class="steelMapClass1">
  1346. <div
  1347. class="steelMapClass12"
  1348. style="font-size: 16px;font-weight:500"
  1349. >
  1350. <span>转运计划号:</span>
  1351. <span>{{ steelMap.saleOrderNo }}</span>
  1352. </div>
  1353. <div
  1354. class="steelMapClass12"
  1355. style="font-size: 18px;font-weight:500"
  1356. >
  1357. <span>订单状态:</span>
  1358. <span>{{ steelMap.saleOrderStatus }}</span>
  1359. </div>
  1360. <div
  1361. class="steelMapClass12"
  1362. style="font-size: 16px;font-weight:500"
  1363. >
  1364. <span>业务员:</span>
  1365. <span>{{ steelMap.saler }}</span>
  1366. </div>
  1367. <div
  1368. class="steelMapClass12"
  1369. style="font-size: 16px;font-weight:500"
  1370. >
  1371. <span>收货单位:</span>
  1372. <span>{{ steelMap.consigneeName }}</span>
  1373. </div>
  1374. </div>
  1375. <div class="steelMapClass2">
  1376. <div
  1377. class="steelMapClass22"
  1378. style="font-size: 16px;font-weight:500"
  1379. >
  1380. <span>收货地址:</span>
  1381. <span>{{ steelMap.addressProvince }}</span>
  1382. <span>{{ steelMap.addressDistrict }}</span>
  1383. <span>{{ steelMap.addressTown }}</span>
  1384. <span>{{ steelMap.place }}</span>
  1385. </div>
  1386. </div>
  1387. <div class="steelMapClass3">
  1388. <div
  1389. class="steelMapClass33"
  1390. style="font-size: 16px;font-weight:500"
  1391. >
  1392. <span>承运商:</span>
  1393. <span>{{ steelMap.carrierName }}</span>
  1394. </div>
  1395. <div
  1396. class="steelMapClass33"
  1397. style="font-size: 16px;font-weight:500"
  1398. >
  1399. <span>车牌号:</span>
  1400. <span>{{ steelMap.capacityNo }}</span>
  1401. </div>
  1402. <div
  1403. class="steelMapClass33"
  1404. style="font-size: 16px;font-weight:500"
  1405. >
  1406. <span>司机电话:</span>
  1407. <span>{{ steelMap.capacityTel }}</span>
  1408. </div>
  1409. </div>
  1410. <div class="steelMapClass4">
  1411. <div
  1412. class="steelMapClass42"
  1413. v-if="steelMap.orderNo != null"
  1414. style="font-size: 16px;font-weight:500"
  1415. >
  1416. <span>运输订单号:</span>
  1417. <span>{{ steelMap.orderNo }}</span>
  1418. </div>
  1419. <div
  1420. class="steelMapClass43"
  1421. style="font-size: 16px;font-weight:500"
  1422. >
  1423. <span>运单状态:</span>
  1424. <span>{{ steelMap.orderStatus }}</span>
  1425. </div>
  1426. <div
  1427. class="steelMapClass43"
  1428. style="font-size: 16px;font-weight:500"
  1429. >
  1430. <span>厂外库</span>
  1431. <span>欧冶库</span>
  1432. </div>
  1433. </div>
  1434. </div>
  1435. <div class="table1">
  1436. <el-table
  1437. :data="steelMap.mapList"
  1438. border
  1439. style="width: 100%; margin-top: 20px"
  1440. :span-method="objectSpanMethod1"
  1441. >
  1442. <el-table-column
  1443. prop="materialName"
  1444. label="物资名称"
  1445. align="center"
  1446. width="150px"
  1447. >
  1448. </el-table-column>
  1449. <el-table-column
  1450. prop="materialSpe"
  1451. label="物资规格"
  1452. align="center"
  1453. sortable
  1454. >
  1455. </el-table-column>
  1456. <el-table-column prop="materialNum" label="物资件数" align="center">
  1457. </el-table-column>
  1458. <el-table-column prop="meter" label="米数" align="center">
  1459. </el-table-column>
  1460. <el-table-column prop="singleWeight" label="单重" align="center">
  1461. </el-table-column>
  1462. <el-table-column
  1463. prop="saleRemarkByasm"
  1464. label="摘要"
  1465. width="180px"
  1466. align="center"
  1467. >
  1468. </el-table-column>
  1469. <el-table-column label="具体仓库名称">
  1470. <template slot-scope="scope">
  1471. <el-select v-model="scope.row.inboundWarehouse">
  1472. <el-option
  1473. v-for="(item, index) in oYeWarehouseList"
  1474. :label="item.label"
  1475. :value="item.value"
  1476. :key="index"
  1477. ></el-option
  1478. ></el-select>
  1479. </template>
  1480. </el-table-column>
  1481. <el-table-column label="出库净重">
  1482. <template slot-scope="scope">
  1483. <el-input
  1484. v-model.number="scope.row.inboundNetWeight"
  1485. type="number"
  1486. ></el-input>
  1487. </template>
  1488. </el-table-column>
  1489. </el-table>
  1490. </div>
  1491. <span
  1492. slot="footer"
  1493. class="dialog-footer"
  1494. style="display: flex;justify-content: center;align-items: center;"
  1495. >
  1496. <el-button @click="confireInboundVisible = false">返 回</el-button>
  1497. <el-button @click="confireInboundTo(steelMap)">确定</el-button>
  1498. </span>
  1499. </el-dialog>
  1500. </div>
  1501. </div>
  1502. </template>
  1503. <script>
  1504. import { sjTime, isVehicleNumber } from '@/utils/sharedJsFile'
  1505. import { getCookie } from '@/utils/util.js'
  1506. import PathView from './mapTest.vue'
  1507. import currentLocation from './currentLocation.vue'
  1508. import { downloadFile, creatImageFile } from '@/utils/base64ToBlob.js'
  1509. export default {
  1510. components: {
  1511. PathView,
  1512. currentLocation
  1513. },
  1514. data() {
  1515. const generateStartDate = _ => {
  1516. let startDate = new Date()
  1517. console.log(startDate, 'generateStartDate')
  1518. if (
  1519. new Date(startDate.getTime() - 86400000).getMonth() ===
  1520. new Date(startDate.getTime() - 8 * 60 * 60 * 1000).getMonth() &&
  1521. new Date(startDate.getTime() - 86400000).getDate() ===
  1522. new Date(startDate.getTime() - 8 * 60 * 60 * 1000).getDate()
  1523. ) {
  1524. startDate = new Date(startDate.getTime() - 86400000)
  1525. }
  1526. return startDate
  1527. }
  1528. return {
  1529. confireInboundVisible: false,
  1530. toggleRowIds: [],
  1531. capacityNo: null,
  1532. capacityId: null,
  1533. consigneeTel: null,
  1534. batchCapacityList: [],
  1535. batchCapacityVisible: false,
  1536. isShowSaleLog: false,
  1537. optionSaleLog: {
  1538. maxHeight: 400,
  1539. requestUrl: '/api/v1/ams/selectAllLog?apiId=522',
  1540. requestQuery: {
  1541. con: null
  1542. }
  1543. },
  1544. isCheckGPS: true,
  1545. userId: null,
  1546. orgCode: null,
  1547. taskAllNum: 0,
  1548. noticeInterval: null,
  1549. exceptionHandleVisible: false,
  1550. batchCarrierName: null,
  1551. batchCarrierVisible: false,
  1552. visibleList: [],
  1553. itemHeight: 30,
  1554. scrollTop: 0,
  1555. debounceS: false,
  1556. carNumber: '',
  1557. //弹出框
  1558. centerDialogVisible: false,
  1559. //根据车序号查询的值
  1560. steelMap: {},
  1561. //钢材子表数据
  1562. drawer: false,
  1563. isShow3: false,
  1564. isShow4: false,
  1565. input: null,
  1566. screen: '',
  1567. options: [
  1568. {
  1569. value: '客户',
  1570. lable: '客户'
  1571. },
  1572. {
  1573. value: '承运商',
  1574. lable: '承运商'
  1575. },
  1576. {
  1577. value: '车牌号',
  1578. lable: '车牌号'
  1579. },
  1580. {
  1581. value: '收货地址',
  1582. lable: '收货地址'
  1583. },
  1584. {
  1585. value: '转运计划号',
  1586. lable: '转运计划号'
  1587. }
  1588. ],
  1589. input1: null,
  1590. screen1: '',
  1591. options1: [
  1592. {
  1593. value: '客户',
  1594. lable: '客户'
  1595. },
  1596. {
  1597. value: '承运商',
  1598. lable: '承运商'
  1599. },
  1600. {
  1601. value: '车牌号',
  1602. lable: '车牌号'
  1603. },
  1604. {
  1605. value: '收货地址',
  1606. lable: '收货地址'
  1607. },
  1608. {
  1609. value: '转运计划号',
  1610. lable: '转运计划号'
  1611. }
  1612. ],
  1613. pickerOptions: {
  1614. disabledDate(time) {
  1615. return time.getTime() > Date.now()
  1616. },
  1617. shortcuts: [
  1618. {
  1619. text: '今天',
  1620. onClick(picker) {
  1621. picker.$emit('pick', new Date())
  1622. }
  1623. },
  1624. {
  1625. text: '昨天',
  1626. onClick(picker) {
  1627. const date = new Date()
  1628. date.setTime(date.getTime() - 3600 * 1000 * 24)
  1629. picker.$emit('pick', date)
  1630. }
  1631. },
  1632. {
  1633. text: '一周前',
  1634. onClick(picker) {
  1635. const date = new Date()
  1636. date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)
  1637. picker.$emit('pick', date)
  1638. }
  1639. },
  1640. {
  1641. text: '元年',
  1642. onClick(picker) {
  1643. const date = new Date()
  1644. date.setTime(0)
  1645. picker.$emit('pick', date)
  1646. }
  1647. }
  1648. ]
  1649. },
  1650. pickerOptions1: {
  1651. disabledDate(time) {
  1652. return time.getTime() > Date.now()
  1653. },
  1654. shortcuts: [
  1655. {
  1656. text: '今天',
  1657. onClick(picker) {
  1658. picker.$emit('pick', new Date())
  1659. }
  1660. },
  1661. {
  1662. text: '昨天',
  1663. onClick(picker) {
  1664. const date = new Date()
  1665. date.setTime(date.getTime() - 3600 * 1000 * 24)
  1666. picker.$emit('pick', date)
  1667. }
  1668. },
  1669. {
  1670. text: '一周前',
  1671. onClick(picker) {
  1672. const date = new Date()
  1673. date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)
  1674. picker.$emit('pick', date)
  1675. }
  1676. },
  1677. {
  1678. text: '元年',
  1679. onClick(picker) {
  1680. const date = new Date()
  1681. date.setTime(0)
  1682. picker.$emit('pick', date)
  1683. }
  1684. }
  1685. ]
  1686. },
  1687. startTime: generateStartDate(),
  1688. endTime: generateStartDate(),
  1689. //合计净重
  1690. totalNumber: 0,
  1691. //合计车数
  1692. totalCapacity: 0,
  1693. //取消车数
  1694. quxiaoCapacityNum: 0,
  1695. //合计吨位
  1696. totalNetWeight: 0,
  1697. tableTitle: '销售统计报表',
  1698. capacityList: [],
  1699. carrierList: [],
  1700. tableData: [],
  1701. spanArr: [],
  1702. pos: 0,
  1703. spanArr1: [],
  1704. spanArr2: [],
  1705. spanArr3: [],
  1706. mergeListBatch: [
  1707. '净重',
  1708. '皮重时间',
  1709. '皮重',
  1710. '毛重时间',
  1711. '毛重',
  1712. '异常操作',
  1713. '具体仓库名称'
  1714. ],
  1715. pos2: 0,
  1716. pos3: 0,
  1717. pos1: 0,
  1718. //需要合并列的名称
  1719. mergeList: [
  1720. '选择',
  1721. '序号',
  1722. '整车操作',
  1723. '销售订单状态',
  1724. '销售订单号',
  1725. '发货单位',
  1726. '司机电话',
  1727. '运输订单号',
  1728. '签收地址',
  1729. '签收时间',
  1730. '抵达地址',
  1731. '抵达时间',
  1732. '出厂时间',
  1733. '进厂时间',
  1734. '运单状态',
  1735. '订单实际状态',
  1736. '车牌号',
  1737. '承运商',
  1738. '客户',
  1739. '收货地址',
  1740. '业务员',
  1741. '送货单打印',
  1742. '收货客户电话',
  1743. '是否自提',
  1744. '订单日期',
  1745. '短信发送',
  1746. '销售片区',
  1747. '抵达时间',
  1748. '签收时间',
  1749. // '摘要',
  1750. '排队开始时间',
  1751. '钢材科放行时间',
  1752. '备注',
  1753. '订单变更时间',
  1754. '异地库接收标志',
  1755. '销售订单变更记录',
  1756. '运输订单变更记录',
  1757. '拼数',
  1758. '是否继续装',
  1759. '订单上传时间',
  1760. '收款公司'
  1761. ],
  1762. //钢材多拼车辆线路ID
  1763. //索引从1-10为1-10拼路线ID
  1764. lineSpelling: [
  1765. 0,
  1766. 279973,
  1767. 279974,
  1768. 279975,
  1769. 279976,
  1770. 279977,
  1771. 279978,
  1772. 279979,
  1773. 279980,
  1774. 279981,
  1775. 279982,
  1776. 279983
  1777. ],
  1778. tableTitle: '销售钢材统计报表',
  1779. //所有省
  1780. provinceList: [],
  1781. //选中的省
  1782. province: '',
  1783. //所有市
  1784. cityList: [],
  1785. //选中的市
  1786. city: '',
  1787. //所有的县(区)
  1788. countyList: [],
  1789. //选中的县
  1790. county: '',
  1791. //地址输入框的值
  1792. addresText: '',
  1793. //已选中省市县
  1794. //具体地址
  1795. //省市县Id
  1796. addressId: null,
  1797. addressRow: {},
  1798. srcList: [],
  1799. previewSrcList2: [],
  1800. src: '',
  1801. isShow: false,
  1802. srcList2: [],
  1803. previewSrcList2: [],
  1804. isShow2: false,
  1805. maxHeight: 700,
  1806. //轨迹窗口
  1807. value7: false,
  1808. //实时路径窗口
  1809. value8: false,
  1810. pathOption: {
  1811. orderNumber: '',
  1812. capacityNumber: '',
  1813. startPointName: '',
  1814. endPointName: '',
  1815. statusCode: '位置'
  1816. },
  1817. saleSteelKey: false,
  1818. tableRowIndex: '',
  1819. isRowClick: 0,
  1820. orgCodeList: [
  1821. 'wuliuyunshubu',
  1822. 'dagangadmin',
  1823. 'zidonghuabu',
  1824. 'chengyunshang'
  1825. ],
  1826. isShowOperate: false,
  1827. filterConsigneeList: [],
  1828. filterCarrierList: [],
  1829. filterCapacityList: [],
  1830. filtermaterialNameList: [],
  1831. filterorderStatusActually: [],
  1832. filterorderStatus: [
  1833. { text: '未派发', value: '未派发' },
  1834. { text: '已派单', value: '已派单' },
  1835. { text: '已接单', value: '已接单' },
  1836. { text: '排队中', value: '排队中' },
  1837. { text: '已完成', value: '已完成' },
  1838. { text: '已关闭', value: '已关闭' }
  1839. ],
  1840. filterIsContinue: [
  1841. { text: '是', value: '是' },
  1842. { text: '否', value: '否' }
  1843. ],
  1844. filterUploadTime: [],
  1845. filterSpellNum: [
  1846. { text: '0', value: '0' },
  1847. { text: '1', value: '1' },
  1848. { text: '2', value: '2' },
  1849. { text: '3', value: '3' },
  1850. { text: '4', value: '4' },
  1851. { text: '5', value: '5' },
  1852. { text: '6', value: '6' },
  1853. { text: '7', value: '7' },
  1854. { text: '8', value: '8' },
  1855. { text: '9', value: '9' }
  1856. ],
  1857. filteraddressPlace: [],
  1858. filtermaterialSpe: [],
  1859. filterSaleRemark: [],
  1860. filterTruckRemark: [],
  1861. filterSaleOrderStatus: [
  1862. { text: '待审核', value: '待审核' },
  1863. { text: '已审核', value: '已审核' }
  1864. ],
  1865. filterFlStatus: [
  1866. {
  1867. text: '关闭',
  1868. value: '关闭'
  1869. },
  1870. {
  1871. text: '正常',
  1872. value: '正常'
  1873. }
  1874. ],
  1875. filterMap: {
  1876. consigneeNameList: [],
  1877. truckRemarkList: [],
  1878. saleRemarkList: [],
  1879. saleOrderStatusList: [],
  1880. materialSpeList: [],
  1881. addressPlaceList: [],
  1882. orderStatusList: [],
  1883. saleAreaList: [],
  1884. materialNameList: [],
  1885. carrierList: [],
  1886. capacityList: [],
  1887. orderStatusActuallyList: []
  1888. },
  1889. //权限控制
  1890. notRoutList: [],
  1891. remarkPic: false,
  1892. remarkPicList: [],
  1893. location: null,
  1894. orderNumber: null,
  1895. capacityNumber: null,
  1896. arrivalReceiving: false,
  1897. arriavlList: [],
  1898. receiveList: [],
  1899. fileListArrival: [],
  1900. fileListReceive: [],
  1901. dialogImageUrl: '',
  1902. dialogVisible: false,
  1903. isLoading: false,
  1904. arrivalTime: null,
  1905. receiptTime: null,
  1906. dialogFormVisible: false,
  1907. addresText: null,
  1908. originalPriceValue: null,
  1909. originalAddress: null,
  1910. aaadrawer: false,
  1911. downloadCapacityNo: null,
  1912. batchCarrierList: [],
  1913. columnNoRoutList: [],
  1914. salerExportExcelList: [
  1915. '订单日期',
  1916. '客户',
  1917. '物资名称',
  1918. '物资规格',
  1919. '物资件数',
  1920. '理重',
  1921. '净重',
  1922. '收货地址',
  1923. '收货客户电话',
  1924. '摘要',
  1925. '备注',
  1926. '车牌号',
  1927. '司机电话',
  1928. '制单日期',
  1929. '销售订单状态',
  1930. '运单状态',
  1931. '承运商',
  1932. '排队开始时间',
  1933. '钢材科放行时间',
  1934. '进厂时间',
  1935. '皮重时间',
  1936. '皮重',
  1937. '装货时间',
  1938. '毛重时间',
  1939. '毛重',
  1940. '送货单打印',
  1941. '出厂时间',
  1942. '短信发送',
  1943. '抵达地址',
  1944. '抵达时间',
  1945. '签收地址',
  1946. '签收时间',
  1947. '实际运价',
  1948. '实际运费',
  1949. '异地库接收标志',
  1950. '运输订单号',
  1951. '业务员',
  1952. '发货单位',
  1953. '是否自提',
  1954. '销售订单号',
  1955. '金蝶分录ID',
  1956. '订单变更时间',
  1957. '销售订单变更记录',
  1958. '运输订单变更记录',
  1959. '收款公司',
  1960. '理论件数'
  1961. ],
  1962. scrollUpdateSelectFlag: 0,
  1963. scrollLeft: 0,
  1964. scrollLeftFlag: 0,
  1965. isShowOperateYeWuYuan: false,
  1966. headColumnList: [],
  1967. columnAllData: [],
  1968. columnHiddenData: [],
  1969. consigneeCheckList: [],
  1970. showPopover: false,
  1971. schemeMap: {},
  1972. statusNumData: [],
  1973. oYeWarehouseList: [],
  1974. columnShowDialog: false
  1975. }
  1976. },
  1977. created() {
  1978. if (this.$route.query.str) {
  1979. let filterMap = JSON.parse(this.$route.query.str)
  1980. if (filterMap) {
  1981. this.filterMap = filterMap
  1982. this.startTime = filterMap.startTime
  1983. this.endTime = filterMap.endTime
  1984. }
  1985. }
  1986. this.getSteelReport = this.debounce(() => {
  1987. this.getSteelReportDebounce()
  1988. }, 100)
  1989. this.orgCode = getCookie('orgCode')
  1990. this.userId = getCookie('userId')
  1991. if (this.orgCodeList.includes(getCookie('orgCode'))) {
  1992. this.isShowOperate = true
  1993. }
  1994. if (getCookie('orgCode') == 'chengyunshang') {
  1995. this.notRoutList = [
  1996. 'checkPoint',
  1997. 'checkTrans',
  1998. 'carrierName',
  1999. 'consigeeTel',
  2000. 'province',
  2001. 'city',
  2002. 'country',
  2003. 'place',
  2004. 'addressClick',
  2005. 'closeOrder',
  2006. 'materialNum',
  2007. 'closeEntry',
  2008. 'capacityNo',
  2009. 'batchCarrier',
  2010. 'select',
  2011. 'exceptionHandle',
  2012. 'mergeSplit',
  2013. 'saleLog',
  2014. 'batchCapacity'
  2015. ]
  2016. this.noticeInterval = setInterval(() => {
  2017. this.getinformation()
  2018. }, 1000 * 180)
  2019. }
  2020. this.getSteelReport()
  2021. if (getCookie('orgCode') == 'shouhuokehu') {
  2022. //如果是收货客户,则查询
  2023. this.axios
  2024. .post('/api/v1/uc/getColumnNoRoutList', {
  2025. orgCode: getCookie('orgCode'),
  2026. userName: getCookie('loginName'),
  2027. tableName: '销售钢材报表'
  2028. })
  2029. .then(res => {
  2030. this.columnNoRoutList = res.data
  2031. })
  2032. this.notRoutList = ['select']
  2033. } else {
  2034. this.getColumShowHideScheme()
  2035. }
  2036. if (getCookie('orgCode') == 'xiaoshouyewuyuan') {
  2037. this.isShowOperateYeWuYuan = true
  2038. }
  2039. //只要涉及提交即必须设计防抖,在初始化时绑定防抖函数
  2040. this.updateCapacityDebounce = this.debounce(() => {
  2041. this.updateCapacity()
  2042. }, 1500)
  2043. this.updateTruckCarrierDebounce = this.debounce(() => {
  2044. this.updateTruckCarrier()
  2045. }, 1500)
  2046. this.cellMouse1 = this.debounce((row, column, cell) => {
  2047. this.cellMouse(row, column, cell)
  2048. }, 200)
  2049. this.cellLeave1 = this.debounce((row, column, cell) => {
  2050. this.cellLeave(row, column, cell)
  2051. }, 200)
  2052. this.exceptionHandleMakeSure = this.debounce(() => {
  2053. this.exceptionHandleMakeSure1()
  2054. }, 500)
  2055. this.submitSteelDebounce = this.debounce(obj => {
  2056. this.submitSteel(obj)
  2057. })
  2058. },
  2059. watch: {
  2060. visibleList: {
  2061. deep: true,
  2062. immediate: true,
  2063. handler(val) {
  2064. let standList = this.$store.state.saleSteelToggleIds
  2065. this.$nextTick(() => {
  2066. this.visibleList.forEach(e => {
  2067. if (standList.includes(e.saleOrderMaterialId))
  2068. this.$refs.tableRef.toggleRowSelection(e, true)
  2069. })
  2070. })
  2071. }
  2072. },
  2073. maxHeight() {
  2074. this.visibleList = this.tableData.slice(
  2075. 0,
  2076. Math.floor(this.maxHeight / 30)
  2077. )
  2078. this.getSpanArr(this.visibleList)
  2079. document.querySelector(
  2080. '.el-table__body-wrapper .el-table__body'
  2081. ).style.transform = `translateY(${0}px)`
  2082. },
  2083. scrollTop: {
  2084. immediate: true,
  2085. deep: true,
  2086. handler(val) {
  2087. this.$nextTick(() => {
  2088. if (
  2089. val >=
  2090. this.tableData.length * 30 -
  2091. document.querySelector('.el-table__body-wrapper').offsetHeight -
  2092. 20
  2093. ) {
  2094. val =
  2095. this.tableData.length * 30 -
  2096. document.querySelector('.el-table__body-wrapper').offsetHeight
  2097. }
  2098. if (val <= 0) {
  2099. val = 0
  2100. }
  2101. const start = Math.floor(val / 30)
  2102. this.visibleList = this.tableData.slice(
  2103. start,
  2104. start + Math.floor(this.maxHeight / 30)
  2105. )
  2106. this.getSpanArr(this.visibleList)
  2107. document.querySelector(
  2108. '.el-table__body-wrapper .el-table__body'
  2109. ).style.transform = `translateY(${val}px)`
  2110. this.debounceS = false
  2111. })
  2112. }
  2113. },
  2114. scrollLeft: {
  2115. immediate: true,
  2116. deep: true,
  2117. handler(val) {
  2118. this.scrollLeftFlag = 1
  2119. }
  2120. }
  2121. },
  2122. destroyed() {
  2123. clearInterval(this.noticeInterval)
  2124. },
  2125. computed: {},
  2126. mounted() {
  2127. this.$nextTick(() => {
  2128. const that = this
  2129. window.onresize = () => {
  2130. return (() => {
  2131. console.log('我触发了表格分辨率变化的时间')
  2132. that.$nextTick(() => {
  2133. that.maxHeight =
  2134. window.innerHeight -
  2135. document.querySelector('.tableTop').offsetHeight -
  2136. 40
  2137. })
  2138. })()
  2139. }
  2140. })
  2141. this.$refs.tableRef.bodyWrapper.addEventListener('scroll', e => {
  2142. if (this.scrollLeftFlag == 1 && this.debounceS == true) {
  2143. this.debounceS = false
  2144. }
  2145. if (this.debounceS) return
  2146. this.debounceS = true
  2147. this.scrollTop = e.target.scrollTop
  2148. this.scrollLeft = e.target.scrollLeft
  2149. this.scrollUpdateSelectFlag = 1
  2150. })
  2151. //基础数据查询
  2152. this.getAllProvince()
  2153. //欧冶仓库
  2154. this.getOyeWarehouse()
  2155. },
  2156. activated() {
  2157. this.maxHeight =
  2158. window.innerHeight - document.querySelector('.tableTop').offsetHeight - 40
  2159. },
  2160. methods: {
  2161. getOyeWarehouse() {
  2162. this.axios
  2163. .post(
  2164. '/api/v1/ams/getOyeWarehouse?apiId=532&pageNum=1&pageSize=100&i=' +
  2165. new Date()
  2166. )
  2167. .then(res => {
  2168. this.oYeWarehouseList = res.data.data.list.map(item => {
  2169. let map = {}
  2170. map.label = item.warehouseName
  2171. map.value = item.warehouseName
  2172. return map
  2173. })
  2174. if (getCookie('orgCode') == 'chengyunshang') {
  2175. this.oYeWarehouseList = this.oYeWarehouseList.filter(item => {
  2176. return item.remark == JSON.parse(getCookie('userInfo')).userName
  2177. })
  2178. }
  2179. })
  2180. },
  2181. confireInboundTo(item) {
  2182. console.log(item, 'item')
  2183. let flag = 1
  2184. let arr = item.mapList.map(e => {
  2185. let map = {}
  2186. map.capacityId = item.capacityId
  2187. map.capacityNumber = item.capacityNo
  2188. map.consigneeId = e.consigneeId
  2189. map.saleNo = item.saleOrderNo
  2190. map.inboundWarehouse = e.inboundWarehouse
  2191. map.inboundArea = '欧冶库'
  2192. map.orderId = item.orderId
  2193. map.meter = e.meter
  2194. map.netWeight = e.inboundNetWeight
  2195. map.materialNumber = e.materialNumber
  2196. map.theoryWeight = e.materialThoWeight
  2197. map.materialId = e.materialId
  2198. map.saleMaterialId = e.saleMaterialId
  2199. map.saleArea = e.saleRemarkByasm
  2200. console.log(map.saleRemarkByasm, 'map.saleRemarkByasm ')
  2201. map.userName = getCookie('loginName')
  2202. map.isPoundSale = e.isPoundSale
  2203. if (map.isPoundSale == 0) {
  2204. //为0则为磅重销售,则将净重转为理重
  2205. map.theoryWeight = e.inboundNetWeight
  2206. }
  2207. return map
  2208. })
  2209. console.log(arr, 'arr')
  2210. this.confireInboundToWms(arr)
  2211. },
  2212. confireInboundToWms(data) {
  2213. this.axios
  2214. .post('/api/v1/wms/insertOyeOutboundResult', {
  2215. mapList: data
  2216. })
  2217. .then(res => {
  2218. if (res.data.status == 'succeed') {
  2219. this.$message({
  2220. type: 'success',
  2221. message: res.data.data
  2222. })
  2223. this.confireInboundVisible = false
  2224. this.onclick(this.filterMap)
  2225. } else {
  2226. this.$message({
  2227. type: 'error',
  2228. message: res.data.data
  2229. })
  2230. }
  2231. })
  2232. },
  2233. confirmInbound() {
  2234. if (Object.values(this.steelMap).length == 0) {
  2235. this.$message.error('请点击需要执行更改操作的行!')
  2236. return
  2237. }
  2238. // 将中文逗号替换为英文逗号
  2239. if (Object.keys(this.steelMap).length > 0) {
  2240. this.axios
  2241. .post(
  2242. '/api/v1/tms/getOyeSteelReportDetailsBySmId?saleOrderMaterialId=' +
  2243. this.steelMap.saleOrderMaterialId
  2244. )
  2245. .then(res => {
  2246. this.steelMap = res.data.data
  2247. this.steelMap.userName = getCookie('loginName')
  2248. this.confireInboundVisible = true
  2249. this.getSpanArr1(res.data.data.mapList)
  2250. })
  2251. }
  2252. },
  2253. openBlank() {
  2254. let page = this.$router.resolve({
  2255. name: 'saleSteelReports',
  2256. query: { id: 0, e: 0 },
  2257. meta: {
  2258. title: '销售钢材报表'
  2259. }
  2260. })
  2261. window.open(page.href, '_blank')
  2262. },
  2263. getColumShowHideScheme() {
  2264. this.axios
  2265. .post('/api/v1/uc/getColumShowHideScheme', {
  2266. userName: getCookie('loginName'),
  2267. orgCode: getCookie('orgCode'),
  2268. tableName: '销售钢材报表'
  2269. })
  2270. .then(res => {
  2271. this.schemeMap = res.data.data
  2272. this.columnNoRoutList = this.schemeMap.columnHiddenData
  2273. })
  2274. .catch(() => {
  2275. this.columnNoRoutList = []
  2276. })
  2277. },
  2278. columnShowTabClick(e) {
  2279. this.schemeMap.activeName = e.paneName
  2280. },
  2281. //动态渲染列的显示方案
  2282. handleTabsEdit(targetName, action) {
  2283. if (action === 'add') {
  2284. this.$confirm('请输入方案名称', '提示', {
  2285. confirmButtonText: '确定',
  2286. cancelButtonText: '取消',
  2287. type: 'info',
  2288. showInput: true,
  2289. center: true
  2290. })
  2291. .then(mes => {
  2292. let newTabName = mes.value
  2293. this.schemeMap.schemeList.push({
  2294. title: newTabName,
  2295. name: newTabName,
  2296. columnAllData: this.schemeMap.columnAllData,
  2297. columnHiddenData: []
  2298. })
  2299. this.schemeMap.activeName = newTabName
  2300. })
  2301. .catch(() => {
  2302. this.$message({
  2303. type: 'info',
  2304. message: '用户取消操作'
  2305. })
  2306. })
  2307. }
  2308. if (action === 'remove') {
  2309. let map = {}
  2310. map.columnHiddenData = []
  2311. map.name = targetName || this.schemeMap.activeName
  2312. this.columnShowOperation(map)
  2313. }
  2314. },
  2315. //动态渲染表头
  2316. renderHeader(h, { column }) {
  2317. let renderColumnFilterList = []
  2318. let filterVal = ''
  2319. let optionList = []
  2320. if (column.label === '客户') {
  2321. filterVal = 'consigneeNameList'
  2322. renderColumnFilterList = this.filterConsigneeList
  2323. } else if (column.label === '车牌号') {
  2324. filterVal = 'capacityList'
  2325. renderColumnFilterList = this.filterCapacityList
  2326. } else if (column.label === '收货地址') {
  2327. filterVal = 'addressPlaceList'
  2328. renderColumnFilterList = this.filteraddressPlace
  2329. } else if (column.label === '摘要') {
  2330. filterVal = 'saleRemarkList'
  2331. renderColumnFilterList = this.filterSaleRemark
  2332. } else if (column.label === '备注') {
  2333. filterVal = 'truckRemarkList'
  2334. renderColumnFilterList = this.filterTruckRemark
  2335. } else if (column.label === '物资名称') {
  2336. filterVal = 'materialNameList'
  2337. renderColumnFilterList = this.filtermaterialNameList
  2338. } else if (column.label === '物资规格') {
  2339. filterVal = 'materialSpeList'
  2340. renderColumnFilterList = this.filtermaterialSpe
  2341. }
  2342. if (filterVal == '') {
  2343. return h('div', column.label, {})
  2344. }
  2345. return h(
  2346. 'div',
  2347. {
  2348. style: {
  2349. height: 'auto',
  2350. color: this.filterMap[filterVal].length > 0 ? '#409EFF' : '#ffff',
  2351. fontWeight: this.filterMap[filterVal].length > 0 ? '700' : '400',
  2352. fontSize: '12px'
  2353. }
  2354. },
  2355. [
  2356. h(
  2357. 'el-popover',
  2358. {
  2359. props: {
  2360. placement: 'bottom',
  2361. trigger: 'click',
  2362. value: this.showPopover
  2363. },
  2364. style: {
  2365. width: 'auto'
  2366. },
  2367. on: {
  2368. show: _ => {
  2369. this.$nextTick(() => {
  2370. this.$refs.filterSelectRef.focus()
  2371. })
  2372. }
  2373. }
  2374. },
  2375. [
  2376. h('span', {
  2377. slot: 'reference',
  2378. style: 'margin-top:20px',
  2379. domProps: {
  2380. innerHTML:
  2381. column.label + ' ' + '<i class="el-icon-search""/>'
  2382. }
  2383. }),
  2384. this.$createElement(
  2385. 'el-select',
  2386. {
  2387. ref: `filterSelectRef`,
  2388. style: {
  2389. 'margin-bottom': '10px',
  2390. 'border-bottom': '1px solid #efefef',
  2391. 'padding-bottom': '10px',
  2392. width: '250px'
  2393. },
  2394. props: {
  2395. placeholder: '请输入查询',
  2396. reserveKeyword: true,
  2397. filterable: true,
  2398. filterMethod: e => {
  2399. this.filterMethodChange(
  2400. e,
  2401. filterVal,
  2402. renderColumnFilterList
  2403. )
  2404. },
  2405. multiple: true,
  2406. collapseTags: true,
  2407. value: this.filterMap[filterVal]
  2408. },
  2409. on: {
  2410. change: val => {
  2411. if (val) {
  2412. this.filterMap[filterVal] = [...new Set(val)]
  2413. } else {
  2414. let i = this.filterMap[filterVal].findIndex(
  2415. row => row == val
  2416. )
  2417. this.filterMap[filterVal].splice(i, 1)
  2418. }
  2419. }
  2420. }
  2421. },
  2422. [
  2423. renderColumnFilterList.map((item, index) => {
  2424. return h('el-option', {
  2425. props: {
  2426. label: item.text,
  2427. value: item.text,
  2428. key: item.text
  2429. }
  2430. })
  2431. })
  2432. ]
  2433. ),
  2434. h('el-button', {
  2435. props: {
  2436. size: 'mini'
  2437. },
  2438. on: {
  2439. click: e => {
  2440. this.filterMap[filterVal] = []
  2441. this.onclick(this.filterMap)
  2442. }
  2443. },
  2444. domProps: {
  2445. innerHTML: '重置'
  2446. }
  2447. }),
  2448. h('el-button', {
  2449. props: {
  2450. size: 'mini',
  2451. type: 'primary'
  2452. },
  2453. on: {
  2454. click: _ => {
  2455. this.onclick(this.filterMap)
  2456. }
  2457. },
  2458. domProps: {
  2459. innerHTML: '筛选'
  2460. }
  2461. })
  2462. ]
  2463. )
  2464. ]
  2465. )
  2466. },
  2467. filterMethodChange(e, filterVal, renderColumnFilterList) {
  2468. this.filterMap[filterVal] = [e]
  2469. },
  2470. ctrlColumnShow() {
  2471. this.columnShowDialog = true
  2472. },
  2473. columnShowOperation(item) {
  2474. this.axios
  2475. .post('/api/v1/uc/updateColumnShowHidden', {
  2476. userName: getCookie('loginName'),
  2477. orgCode: getCookie('orgCode'),
  2478. tableName: '销售钢材报表',
  2479. columnHiddenData: item.columnHiddenData,
  2480. schemeName: item.name
  2481. })
  2482. .then(res => {
  2483. this.$message({
  2484. type: 'success',
  2485. message: '切换成功',
  2486. offset: '250'
  2487. })
  2488. this.$router.go(0)
  2489. })
  2490. this.columnShowDialog = false
  2491. },
  2492. headCellStyle({ row, column, rowIndex, columnIndex }) {
  2493. // console.log(row, 'row')
  2494. // console.log('headCellStyle column.property: ', column.property)
  2495. if (column.property && this.headColumnList.includes(column.property)) {
  2496. return { fontWeight: 700, fontSize: '15px' }
  2497. //return {}
  2498. }
  2499. return {}
  2500. },
  2501. clearFilter() {
  2502. this.$refs.tableRef.clearFilter()
  2503. this.headColumnList = []
  2504. this.filterMap = {
  2505. consigneeNameList: [],
  2506. truckRemarkList: [],
  2507. saleRemarkList: [],
  2508. saleOrderStatusList: [],
  2509. materialSpeList: [],
  2510. addressPlaceList: [],
  2511. orderStatusList: [],
  2512. saleAreaList: [],
  2513. materialNameList: [],
  2514. carrierList: [],
  2515. capacityList: [],
  2516. isContinueList: [],
  2517. spellNumList: []
  2518. }
  2519. this.onclick(this.filterMap)
  2520. },
  2521. submitSteel(obj) {
  2522. this.$confirm('该操作会修改全部改动的内容,请确认核实后点击!', '提醒', {
  2523. cancelButtonText: '取消',
  2524. confirmButtonText: '确认',
  2525. center: true
  2526. }).then(() => {
  2527. let map = obj
  2528. map.userName = getCookie('loginName')
  2529. map.shipperAddressId = this.addressId
  2530. this.axios.post('/api/v1/uc/submitSteel', this.steelMap).then(res => {
  2531. let _this = this
  2532. if (res.data.responseMapFailed.length > 0) {
  2533. let responseFailTitle = res.data.responseMapFailed.join(';')
  2534. this.$message({
  2535. type: 'error',
  2536. duration: 2500,
  2537. offset: '250',
  2538. message: responseFailTitle
  2539. })
  2540. }
  2541. if (res.data.response.length == 0) {
  2542. setTimeout(() => {
  2543. _this.$message({
  2544. type: 'success',
  2545. duration: 1500,
  2546. offset: '250',
  2547. message: '未发现任何修改成功的记录!'
  2548. })
  2549. }, 2500)
  2550. } else {
  2551. let responseTitle = res.data.response.join(';')
  2552. setTimeout(() => {
  2553. _this.$message({
  2554. type: 'success',
  2555. duration: 2500,
  2556. offset: '250',
  2557. message: responseTitle
  2558. })
  2559. }, 2500)
  2560. }
  2561. this.operation(this.steelMap)
  2562. this.onclick(this.filterMap)
  2563. })
  2564. })
  2565. },
  2566. resetPrintNumber() {
  2567. this.axios
  2568. .post('/api/v1/bp/resetPrintNumber', this.steelMap)
  2569. .then(res => {
  2570. if (res.data.status == 'succeed') {
  2571. this.$message.success('重置成功!')
  2572. } else {
  2573. this.$message.error('重置失败!')
  2574. }
  2575. })
  2576. },
  2577. showBatchCapacity() {
  2578. this.capacityNo = null
  2579. this.capacityId = null
  2580. this.batchCapacityList = []
  2581. console.log(this.$refs.tableRef.selection)
  2582. //按照saleOrderMaterialId查询物资数量size,用于确定派车的线路ID
  2583. this.$refs.tableRef.selection.forEach(item1 => {
  2584. item1.size = this.visibleList.filter(item2 => {
  2585. return item1.saleOrderMaterialId == item2.saleOrderMaterialId
  2586. }).length
  2587. })
  2588. this.batchCapacityList = this.$refs.tableRef.selection
  2589. console.log(this.batchCapacityList)
  2590. // if (this.batchCapacityList.length > 0) {
  2591. // this.batchCapacityVisible = true
  2592. // } else {
  2593. // this.$message({
  2594. // type: 'warning',
  2595. // message: '请选择要批量更改车牌号的订单',
  2596. // offset: '250',
  2597. // duration: '2500'
  2598. // })
  2599. // }
  2600. },
  2601. batchCapacitySelect(selection) {
  2602. this.capacityNo = selection.capacityNumber
  2603. this.capacityId = selection.capacityId
  2604. },
  2605. //批量修改车牌号
  2606. batchEditCapacity() {
  2607. if (this.capacityId && this.capacityNo) {
  2608. if (
  2609. !(
  2610. isVehicleNumber(this.capacityNo) ||
  2611. this.capacityNo == '取消' ||
  2612. this.capacityNo == '待定' ||
  2613. this.capacityNo == '空白'
  2614. )
  2615. ) {
  2616. this.$message.error('请输入正确格式的车牌号!')
  2617. return
  2618. }
  2619. console.log('this.batchCapacityList', this.batchCapacityList)
  2620. this.batchCapacityList.forEach(row => {
  2621. row.capacityId = this.capacityId
  2622. row.capacityNumber = this.capacityNo
  2623. row.capacityNo = this.capacityNo
  2624. //是否校验GPS
  2625. row.isCheckGPS = this.isCheckGPS
  2626. row.userId = getCookie('userId')
  2627. if (row.carrierIds == 0) {
  2628. this.$message.error('请先授权承运商!')
  2629. return
  2630. }
  2631. if (row.capacityIds == 0) {
  2632. row.lineId = this.lineSpelling[row.size]
  2633. }
  2634. })
  2635. let map = {
  2636. list: this.batchCapacityList
  2637. }
  2638. this.axios.post('/api/v1/ams/batchUpdateCapacity', map).then(res => {
  2639. if (res.data.code == '200') {
  2640. this.$message.success('派车成功!')
  2641. } else {
  2642. this.$message.error(res.data.data)
  2643. }
  2644. })
  2645. this.batchCarrierVisible = false
  2646. this.onclick(this.filterMap)
  2647. } else {
  2648. this.$message.warning('请先注册车牌号或者选中弹出后再提交!')
  2649. }
  2650. },
  2651. showSaleLog() {
  2652. this.isShowSaleLog = true
  2653. if (this.steelMap) {
  2654. this.optionSaleLog.requestQuery.con = this.steelMap.orderNo
  2655. }
  2656. },
  2657. //删除计量实绩
  2658. linkageDeleteTransportOrder(row, steelMap) {
  2659. console.log(row, 'row')
  2660. debugger
  2661. if (row.netWeight != null && row.netWeight != '') {
  2662. //如果净重不为空
  2663. let arr = []
  2664. let map = {
  2665. orderNumber: row.orderNo,
  2666. good: row.materialName,
  2667. goodspa: `${row.materialSpecification}(${row.materialModel})`,
  2668. resultCrossWeightTime: row.grossWeightTime,
  2669. saleMaterialId: row.saleMaterialId,
  2670. weightBatchId: row.weightBatchId,
  2671. userName: getCookie('loginName')
  2672. }
  2673. arr.push(map)
  2674. this.axios
  2675. .post('/api/v1/uc/linkageDeleteTransportOrder', arr)
  2676. .then(res => {
  2677. this.$message({
  2678. message: '删除计量实绩成功',
  2679. type: 'success',
  2680. offset: '250',
  2681. duration: '2500'
  2682. })
  2683. this.exceptionHandleVisible = false
  2684. this.onclick(this.filterMap)
  2685. })
  2686. }
  2687. },
  2688. mergeSplit() {
  2689. if (this.$refs.tableRef.selection.length == 1) {
  2690. this.$confirm(
  2691. `尊敬的用户${getCookie(
  2692. 'loginName'
  2693. )},系统温馨提示您进行拆分操作前,请确认所拆分的订单将不会在金蝶进行提交,审核等操作!`,
  2694. '提醒',
  2695. {
  2696. confirmButtonText: '我已确认',
  2697. cancelButtonText: '我再想想',
  2698. center: true,
  2699. type: 'warning'
  2700. }
  2701. )
  2702. .then(() => {
  2703. this.splitOrder()
  2704. })
  2705. .catch(() => {
  2706. this.$message({
  2707. type: 'info',
  2708. duration: '2500',
  2709. message: '操作取消',
  2710. offset: '250'
  2711. })
  2712. })
  2713. } else if (this.$refs.tableRef.selection.length > 1) {
  2714. this.$confirm(
  2715. `尊敬的用户${getCookie(
  2716. 'loginName'
  2717. )},系统温馨提示您进行合并操作前,请确认所合并的订单将不会在金蝶进行提交,审核等操作!`,
  2718. '提醒',
  2719. {
  2720. confirmButtonText: '我已确认',
  2721. cancelButtonText: '我再想想',
  2722. center: true,
  2723. type: 'warning'
  2724. }
  2725. )
  2726. .then(() => {
  2727. this.mergeOrder()
  2728. })
  2729. .catch(() => {
  2730. this.$message({
  2731. type: 'info',
  2732. duration: '2500',
  2733. message: '操作取消',
  2734. offset: '250'
  2735. })
  2736. })
  2737. } else {
  2738. this.$message({
  2739. type: 'warning',
  2740. message: '请勾选/点击需要操作的行',
  2741. offset: '250',
  2742. duration: '2300'
  2743. })
  2744. }
  2745. },
  2746. splitOrder() {
  2747. this.$confirm(
  2748. `勾选了${this.$refs.tableRef.selection.length}条运单将执行拆分操作`,
  2749. '提醒',
  2750. {
  2751. confirmButtonText: '确定',
  2752. cancelButtonText: '取消',
  2753. center: true
  2754. }
  2755. )
  2756. .then(() => {
  2757. let mapList = this.$refs.tableRef.selection.map(e => {
  2758. let map = {}
  2759. map.saleOrderMaterialId = e.saleOrderMaterialId
  2760. return map
  2761. })
  2762. let map = {
  2763. mapList: mapList,
  2764. userName: getCookie('loginName')
  2765. }
  2766. this.axios
  2767. .post('/api/v1/ams/splitOrder', map)
  2768. .then(res => {
  2769. if (res.data.code == '200') {
  2770. this.onclick(this.filterMap)
  2771. this.$message({
  2772. type: 'success',
  2773. message: '拆分成功',
  2774. offset: '250',
  2775. duration: '2500'
  2776. })
  2777. } else {
  2778. this.$message({
  2779. type: 'error',
  2780. message: res.data.data,
  2781. offset: '250',
  2782. duration: '2500'
  2783. })
  2784. }
  2785. })
  2786. .catch(() => {
  2787. this.$message({
  2788. type: 'error',
  2789. message: '拆分失败',
  2790. offset: '250',
  2791. duration: '2500'
  2792. })
  2793. })
  2794. })
  2795. .catch(() => {
  2796. this.$message({
  2797. type: 'info',
  2798. duration: '2500',
  2799. message: '操作取消',
  2800. offset: '250'
  2801. })
  2802. })
  2803. },
  2804. mergeOrder() {
  2805. this.$confirm(
  2806. `勾选了${this.$refs.tableRef.selection.length}条运单将执行合并操作,此操作不可逆!`,
  2807. '提醒',
  2808. {
  2809. confirmButtonText: '确定',
  2810. cancelButtonText: '取消',
  2811. center: true
  2812. }
  2813. )
  2814. .then(() => {
  2815. let mapList = this.$refs.tableRef.selection.map(e => {
  2816. let map = {}
  2817. map.saleOrderMaterialId = e.saleOrderMaterialId
  2818. map.orderId = e.orderId
  2819. map.saleOrderId = e.saleOrderId
  2820. map.orderNo = e.orderNo
  2821. map.capacityNo = e.capacityNo
  2822. map.userName = getCookie('loginName')
  2823. return map
  2824. })
  2825. let map = {
  2826. mapList: mapList,
  2827. userName: getCookie('loginName')
  2828. }
  2829. this.axios
  2830. .post('/api/v1/ams/mergeOrder', map)
  2831. .then(res => {
  2832. if (res.data.code == '200') {
  2833. this.onclick(this.filterMap)
  2834. this.$message({
  2835. type: 'success',
  2836. message: '合并成功,请提醒驾驶员!',
  2837. offset: '250',
  2838. duration: '3000'
  2839. })
  2840. } else {
  2841. this.$message({
  2842. type: 'error',
  2843. message: res.data.data,
  2844. offset: '250',
  2845. duration: '2500'
  2846. })
  2847. }
  2848. })
  2849. .catch(() => {
  2850. this.$message({
  2851. type: 'error',
  2852. message: '合并失败',
  2853. offset: '250',
  2854. duration: '2500'
  2855. })
  2856. })
  2857. })
  2858. .catch(() => {
  2859. this.$message({
  2860. type: 'info',
  2861. duration: '2500',
  2862. message: '操作取消',
  2863. offset: '250'
  2864. })
  2865. })
  2866. },
  2867. //获取通知数量
  2868. getinformation() {
  2869. this.axios
  2870. .post('/api/v1/ams/getNoticeAll', { userId: this.userId })
  2871. .then(res => {
  2872. let taskAllNum = 0
  2873. res.data.data.forEach(e => {
  2874. if (e.insertusername == '销售审核' && e.status == 0) {
  2875. taskAllNum++
  2876. }
  2877. })
  2878. this.taskAllNum = taskAllNum
  2879. console.log('未接收数目:', this.taskAllNum)
  2880. })
  2881. },
  2882. readAll() {
  2883. this.axios
  2884. .post('/api/v1/ams/readAll', {
  2885. userId: this.userId,
  2886. insertUserName: '销售审核'
  2887. })
  2888. .then(res => {
  2889. this.taskAllNum = 0
  2890. })
  2891. },
  2892. deleteRow(index, rows) {
  2893. if (rows.length > 1) {
  2894. rows.splice(index, 1)
  2895. }
  2896. },
  2897. copyRowflu(index, row) {
  2898. console.log(index)
  2899. let copyRowflu = new Object()
  2900. Object.keys(row).forEach(key => {
  2901. copyRowflu[key] = row[key]
  2902. })
  2903. delete copyRowflu.materialId
  2904. delete copyRowflu.netWeight
  2905. delete copyRowflu.grossWeight
  2906. delete copyRowflu.grossWeightTime
  2907. delete copyRowflu.tareWeight
  2908. delete copyRowflu.tareWeightTime
  2909. delete copyRowflu.loadTime
  2910. delete copyRowflu.closeEntryId
  2911. this.steelMap.mapList.splice(index + 1, 0, copyRowflu)
  2912. },
  2913. exceptionHandleMakeSure1() {
  2914. console.log(this.steelMap)
  2915. this.$confirm(
  2916. `该操作会将${this.steelMap.capacityNo}下未出净重的分录关闭,并重新上传金蝶,确认操作?`,
  2917. '提示',
  2918. {
  2919. cancelButtonText: '取消',
  2920. confirmButtonText: '确定',
  2921. center: true
  2922. }
  2923. )
  2924. .then(() => {
  2925. let saleDateOfReceipt = null
  2926. let loadTime1 = new Date(
  2927. new Date(new Date().toLocaleDateString()).getTime() +
  2928. (3600 * 1000 * 8 - 1)
  2929. ) // 当天8点前
  2930. let loadTime2 = new Date(
  2931. new Date(new Date().toLocaleDateString()).getTime() +
  2932. (3600 * 1000 * 32 - 1)
  2933. ) // 次天8点前
  2934. if (new Date().getTime() - loadTime1 > 0) {
  2935. saleDateOfReceipt = loadTime2
  2936. } else {
  2937. saleDateOfReceipt = loadTime1
  2938. }
  2939. let closeEntryList = []
  2940. let map = this.steelMap
  2941. map.mapList.forEach(e => {
  2942. let map = {}
  2943. e.saleDateOfReceipt = sjTime(saleDateOfReceipt)
  2944. map.saleMaterialId = e.saleMaterialId
  2945. map.closeEntryId = e.closeEntryId
  2946. map.number = e.saleOrderNo
  2947. closeEntryList.push(map)
  2948. })
  2949. let mapList = map.mapList.filter(e => {
  2950. if (typeof e.netWeight == 'undefined' || e.netWeight == null) {
  2951. return e
  2952. }
  2953. })
  2954. if (mapList.length == 0) {
  2955. this.$message({
  2956. type: 'info',
  2957. message: '所有分录包含净重,退出!',
  2958. offset: '250',
  2959. duration: '2500'
  2960. })
  2961. return
  2962. }
  2963. map.mapList = mapList
  2964. map.isUploadEas = 1
  2965. this.axios
  2966. .post('/api/v1/ams/addSteelSaleOrder', map, {
  2967. timeout: 3 * 60 * 1000
  2968. })
  2969. .then(res => {
  2970. if (res.data.code == '200') {
  2971. this.axios
  2972. .post('/api/v1/ams/closingEntries', closeEntryList, {
  2973. timeout: 3 * 60 * 1000
  2974. })
  2975. .then(res => {
  2976. if (res.data.code == '200') {
  2977. this.onclick(this.filterMap)
  2978. this.$message({
  2979. type: 'success',
  2980. offset: '250',
  2981. message: '生成订单成功,关闭分录成功',
  2982. duration: 2000
  2983. })
  2984. this.exceptionHandleVisible = false
  2985. }
  2986. })
  2987. .catch(e => {})
  2988. } else {
  2989. this.$message({
  2990. type: 'error',
  2991. offset: '250',
  2992. duration: '2500',
  2993. message: '新增失败'
  2994. })
  2995. }
  2996. })
  2997. })
  2998. .catch(e => {
  2999. this.$message({
  3000. type: 'info',
  3001. message: '取消操作',
  3002. offset: '200',
  3003. duration: 2500
  3004. })
  3005. })
  3006. },
  3007. exceptionHandle() {
  3008. if (this.$refs.tableRef.selection.length == 1) {
  3009. console.log(this.$refs.tableRef.selection[0])
  3010. this.axios
  3011. .post(
  3012. '/api/v1/tms/getOyeSteelReportDetailsBySmId?saleOrderMaterialId=' +
  3013. this.$refs.tableRef.selection[0].saleOrderMaterialId
  3014. )
  3015. .then(res => {
  3016. this.steelMap = res.data.data
  3017. this.exceptionHandleVisible = true
  3018. this.getSpanArr1(this.steelMap.mapList)
  3019. })
  3020. } else {
  3021. this.$message({
  3022. message: '异常处理单次仅能勾选一辆车',
  3023. offset: '250',
  3024. duration: '2500',
  3025. type: 'warning'
  3026. })
  3027. }
  3028. },
  3029. batchCarrierMakeSure() {
  3030. let batchCarrierId = null
  3031. this.carrierList.forEach(item => {
  3032. if (item.carrierName == this.batchCarrierName) {
  3033. batchCarrierId = item.carrierId
  3034. }
  3035. })
  3036. this.batchCarrierList.forEach(e => {
  3037. e.carrierId = batchCarrierId
  3038. })
  3039. const loading = this.$loading({
  3040. lock: true,
  3041. text: '正在批量授权承运商',
  3042. spinner: 'el-icon-loading',
  3043. background: 'rgba(0, 0, 0, 0.7)'
  3044. })
  3045. this.axios
  3046. .post('/api/v1/ams/dispatchToCarrier', this.batchCarrierList)
  3047. .then(res => {
  3048. if (res.data.code == '0') {
  3049. this.$message.success('授权承运商成功')
  3050. this.batchCarrierList = []
  3051. this.batchCarrierVisible = false
  3052. this.batchCarrierName = null
  3053. this.onclick(this.filterMap)
  3054. loading.close()
  3055. } else {
  3056. this.$message.error('授权失败,请联系管理员')
  3057. this.batchCarrierList = []
  3058. this.batchCarrierVisible = false
  3059. this.batchCarrierName = null
  3060. this.onclick(this.filterMap)
  3061. loading.close()
  3062. }
  3063. })
  3064. .catch(() => {
  3065. this.$message.error('授权失败,请联系管理员')
  3066. this.batchCarrierList = []
  3067. this.batchCarrierVisible = false
  3068. this.onclick(this.filterMap)
  3069. loading.close()
  3070. })
  3071. },
  3072. batchCarrier() {
  3073. if (this.batchCarrierList.length > 0) {
  3074. this.batchCarrierVisible = true
  3075. this.showBatchCapacity()
  3076. this.onchangeProvince()
  3077. this.onchangeCity()
  3078. this.addressId = this.steelMap.shipperAddressId
  3079. this.consigneeTel = this.steelMap.consigneeTel
  3080. } else {
  3081. this.$message({
  3082. type: 'warning',
  3083. message: '请选择要批量授权的订单',
  3084. offset: '250',
  3085. duration: '2500'
  3086. })
  3087. }
  3088. },
  3089. selectOne(selection, row) {
  3090. console.log('selection:', row)
  3091. this.rowClick(row)
  3092. },
  3093. handleSelectionChange() {
  3094. console.log(this.$refs.tableRef.selection, 'selection')
  3095. this.batchCarrierList = []
  3096. this.batchCarrierList = this.$refs.tableRef.selection.map(e => {
  3097. let map = {}
  3098. map.saleOrderMaterialId = e.saleOrderMaterialId
  3099. return map
  3100. })
  3101. console.log(this.scrollUpdateSelectFlag)
  3102. if (this.scrollUpdateSelectFlag == 0) {
  3103. let arr = []
  3104. arr = Array.from(
  3105. this.$refs.tableRef.selection.map(e => {
  3106. return e.saleOrderMaterialId
  3107. })
  3108. )
  3109. let [...arr2] = arr
  3110. this.toggleRowIds = arr2
  3111. this.$store.commit('updateSaleSteelToggleIds', {
  3112. saleSteelToggleIds: arr
  3113. })
  3114. }
  3115. },
  3116. receiveClick(src, title) {
  3117. // this.dialogImageUrl = src
  3118. downloadFile(src, `${this.downloadCapacityNo}${title}照片`, 'jpg')
  3119. // this.dialogVisible = true
  3120. },
  3121. openRemarkPic() {
  3122. //获取图片到本地
  3123. this.axios.post('/api/v1/uc/getPicture', this.steelMap).then(res => {
  3124. console.log(res)
  3125. if (res.data) {
  3126. let remarkPicList = []
  3127. res.data.forEach((e, index) => {
  3128. creatImageFile(e, 'file2-' + index).then(res => {
  3129. remarkPicList.push({
  3130. name: 'file' + index,
  3131. raw: res,
  3132. url: e
  3133. })
  3134. })
  3135. })
  3136. this.remarkPicList = remarkPicList
  3137. } else {
  3138. this.remarkPicList = []
  3139. }
  3140. this.remarkPic = true
  3141. })
  3142. },
  3143. uploadRemarkPic() {
  3144. if (this.remarkPicList.length <= 0) {
  3145. this.$message.error('请上传图片!')
  3146. return
  3147. }
  3148. //上传备注图片
  3149. let formData = new window.FormData()
  3150. this.remarkPicList.forEach((item, index) => {
  3151. formData.append('file' + index, item.raw)
  3152. })
  3153. let options = {
  3154. url: '/api/v1/uc/uploadPic',
  3155. data: formData,
  3156. method: 'post',
  3157. headers: {
  3158. 'Content-Type': 'multipart/form-data'
  3159. }
  3160. }
  3161. this.axios(options).then(res => {
  3162. console.log(res)
  3163. this.$message.success('暂存成功!')
  3164. this.remarkPic = false
  3165. this.steelMap.urls = res.data
  3166. this.closeUpload2()
  3167. })
  3168. },
  3169. closeUpload2() {
  3170. this.remarkPic = false
  3171. this.isLoading = false
  3172. this.$refs.remarkPic.clearFiles()
  3173. },
  3174. openReceive() {
  3175. this.fileListArrival = []
  3176. this.fileListReceive = []
  3177. if (Object.values(this.steelMap).length == 0) {
  3178. this.$message.warning('请选择需要补录的实绩')
  3179. return
  3180. }
  3181. let row = this.steelMap
  3182. if (!row.outGateTime) {
  3183. this.$message.warning('该车未出厂,不允许签收')
  3184. return
  3185. }
  3186. if (row.arrivalAddress) {
  3187. //优先获取抵达地址
  3188. this.location = row.arrivalAddress
  3189. } else {
  3190. //其次获取车辆定位
  3191. this.axios
  3192. .get(
  3193. '/api/v1/otms/getCurrentLocation?capcityNumber=' + row.newCapacityNo
  3194. )
  3195. .then(res => {
  3196. if (
  3197. res.data.status == 'succeed' &&
  3198. res.data.data.result.status != 1001
  3199. ) {
  3200. this.location = res.data.data.result.adr
  3201. } else {
  3202. this.location = null
  3203. this.$message.warning('获取不到车辆定位!请联系销售公司上传!')
  3204. }
  3205. })
  3206. }
  3207. this.orderNumber = row.orderNo
  3208. this.capacityNumber = row.capacityNo
  3209. this.arrivalTime = row.arrivalTime
  3210. this.receiptTime = row.receiptTime
  3211. this.arrivalReceiving = true
  3212. //抵达图片
  3213. this.axios
  3214. .post('/api/v1/otms/getArrivalPhoto?orderNumber=' + row.orderNo)
  3215. .then(res => {
  3216. console.log('arrivalPhoto:', res)
  3217. if (res.data) {
  3218. this.arriavlList = []
  3219. res.data.forEach((e, index) => {
  3220. creatImageFile(e, 'file1-' + index).then(res => {
  3221. this.arriavlList.push({
  3222. name: 'file' + index,
  3223. raw: res,
  3224. url: e
  3225. })
  3226. })
  3227. })
  3228. this.fileListArrival = this.arriavlList
  3229. }
  3230. })
  3231. //签收图片
  3232. this.axios
  3233. .post('/api/v1/otms/getReceivingPhotoByUrl?orderNumber=' + row.orderNo)
  3234. .then(res => {
  3235. if (res.data) {
  3236. this.receiveList = []
  3237. res.data.forEach((e, index) => {
  3238. creatImageFile(e, 'file2-' + index).then(res => {
  3239. this.receiveList.push({
  3240. name: 'file' + index,
  3241. raw: res,
  3242. url: e
  3243. })
  3244. })
  3245. })
  3246. this.fileListReceive = this.receiveList
  3247. }
  3248. })
  3249. },
  3250. arrivalAndReceive() {
  3251. console.log(this.fileListReceive, 'fileListReceive')
  3252. if (!this.location) {
  3253. this.$message.warning(
  3254. '签收地址必须取车辆定位!若取不到请联系销售公司上传!'
  3255. )
  3256. return
  3257. }
  3258. if (this.fileListArrival.length < 3) {
  3259. this.$message.warning('抵达图至少三张')
  3260. return
  3261. }
  3262. if (this.fileListReceive.length < 2) {
  3263. this.$message.warning('签收图最少两张')
  3264. return
  3265. }
  3266. this.isLoading = true
  3267. //上传抵达
  3268. let formData = new window.FormData()
  3269. this.fileListArrival.forEach((item, index) => {
  3270. formData.append('file' + index, item.raw)
  3271. })
  3272. formData.append('orderNumber', this.orderNumber)
  3273. formData.append('resultArrivalAddress', this.location)
  3274. if (this.arrivalTime) {
  3275. formData.append('arrivalTime', sjTime(this.arrivalTime))
  3276. }
  3277. formData.append('userName', getCookie('loginName'))
  3278. let options = {
  3279. // 设置axios的参数
  3280. url: '/api/v1/otms/addtmstruckArrivalResult',
  3281. data: formData,
  3282. method: 'post',
  3283. headers: {
  3284. 'Content-Type': 'multipart/form-data'
  3285. }
  3286. }
  3287. this.axios(options).then(res => {
  3288. this.fileListArrival = []
  3289. console.log('arrivalRes:', res)
  3290. //上传签收
  3291. let formData = new window.FormData()
  3292. let request = ''
  3293. this.fileListReceive.forEach((item, index) => {
  3294. formData.append('file' + index, item.raw)
  3295. })
  3296. formData.append('orderNumber', this.orderNumber)
  3297. formData.append('resultArrivalAddress', this.location)
  3298. if (this.receiptTime) {
  3299. formData.append('receiptTime', sjTime(this.receiptTime))
  3300. }
  3301. formData.append('num', request.length)
  3302. let options = {
  3303. url: '/api/v1/otms/addTmstruckReceiptResultForWeb',
  3304. data: formData,
  3305. method: 'post',
  3306. headers: {
  3307. 'Content-Type': 'multipart/form-data'
  3308. }
  3309. }
  3310. this.axios(options).then(res => {
  3311. console.log('receiveRes:', res)
  3312. this.$message.success('上传成功!')
  3313. this.steelMap.arrivalAddress = this.location
  3314. this.closeUpload()
  3315. this.refresh()
  3316. this.tableRowIndex = ''
  3317. this.fileListReceive = []
  3318. })
  3319. })
  3320. },
  3321. fileChange1(file, fileList) {
  3322. this.fileListArrival = fileList
  3323. },
  3324. fileChange2(file, fileList) {
  3325. this.fileListReceive = fileList
  3326. },
  3327. fileChange3(file, fileList) {
  3328. this.remarkPicList = fileList
  3329. },
  3330. exceed() {
  3331. this.$message.warning('超出上传数量!')
  3332. },
  3333. handlePictureCardPreview(file) {
  3334. this.dialogImageUrl = file.url
  3335. this.dialogVisible = true
  3336. },
  3337. closeUpload() {
  3338. this.location = null
  3339. this.arrivalTime = null
  3340. this.receiptTime = null
  3341. this.arrivalReceiving = false
  3342. this.isLoading = false
  3343. this.$refs.arrival.clearFiles()
  3344. this.$refs.receive.clearFiles()
  3345. },
  3346. //防抖函数--防止用户重复点击
  3347. debounce(func, delay) {
  3348. let timer = null
  3349. return function(...args) {
  3350. if (timer !== null) {
  3351. clearTimeout(timer)
  3352. }
  3353. timer = setTimeout(function() {
  3354. func.apply(this, args)
  3355. }, delay)
  3356. }
  3357. },
  3358. //筛选
  3359. filterChange(obj) {
  3360. //承运商筛选,后续有待优化
  3361. console.log(obj, 'filterChange obj', arguments)
  3362. if (typeof obj.carrierList != 'undefined' && obj.carrierList.length > 0) {
  3363. this.headColumnList.push('carrierName')
  3364. this.filterMap.carrierList = obj.carrierList
  3365. }
  3366. if (
  3367. typeof obj.carrierList != 'undefined' &&
  3368. obj.carrierList.length == 0
  3369. ) {
  3370. this.headColumnList.splice(
  3371. this.headColumnList.indexOf('carrierName'),
  3372. 1
  3373. )
  3374. delete this.filterMap.carrierList
  3375. }
  3376. //物资名称筛选,后续有待优化
  3377. if (
  3378. typeof obj.materialNameList != 'undefined' &&
  3379. obj.materialNameList.length > 0
  3380. ) {
  3381. this.headColumnList.push('materialName')
  3382. this.filterMap.materialNameList = obj.materialNameList
  3383. }
  3384. if (
  3385. typeof obj.materialNameList != 'undefined' &&
  3386. obj.materialNameList.length == 0
  3387. ) {
  3388. this.headColumnList.splice(
  3389. this.headColumnList.indexOf('materialName'),
  3390. 1
  3391. )
  3392. delete this.filterMap.materialNameList
  3393. }
  3394. //车牌号筛选,后续有待优化
  3395. if (typeof obj.capacityNo != 'undefined' && obj.capacityNo.length > 0) {
  3396. this.filterMap.capacityList = obj.capacityNo
  3397. this.headColumnList.push('capacityNo')
  3398. }
  3399. if (typeof obj.capacityNo != 'undefined' && obj.capacityNo.length == 0) {
  3400. this.headColumnList.splice(this.headColumnList.indexOf('capacityNo'), 1)
  3401. delete this.filterMap.capacityList
  3402. }
  3403. //客户筛选,后续有待优化
  3404. if (
  3405. typeof obj.consigneeName != 'undefined' &&
  3406. obj.consigneeName.length > 0
  3407. ) {
  3408. this.headColumnList.push('consigneeName')
  3409. this.filterMap.consigneeNameList = obj.consigneeName
  3410. }
  3411. if (
  3412. typeof obj.consigneeName != 'undefined' &&
  3413. obj.consigneeName.length == 0
  3414. ) {
  3415. this.headColumnList.splice(
  3416. this.headColumnList.indexOf('consigneeName'),
  3417. 1
  3418. )
  3419. delete this.filterMap.consigneeNameList
  3420. }
  3421. //销售片区筛选,后续有待优化
  3422. if (
  3423. typeof obj.saleAreaList != 'undefined' &&
  3424. obj.saleAreaList.length > 0
  3425. ) {
  3426. this.filterMap.saleAreaList = obj.saleAreaList
  3427. }
  3428. if (
  3429. typeof obj.saleAreaList != 'undefined' &&
  3430. obj.saleAreaList.length == 0
  3431. ) {
  3432. delete this.filterMap.saleAreaList
  3433. }
  3434. //物资规格筛选
  3435. if (typeof obj.materialSpe != 'undefined' && obj.materialSpe.length > 0) {
  3436. this.headColumnList.push('materialSpe')
  3437. this.filterMap.materialSpeList = obj.materialSpe
  3438. }
  3439. if (
  3440. typeof obj.materialSpe != 'undefined' &&
  3441. obj.materialSpe.length == 0
  3442. ) {
  3443. this.headColumnList.splice(
  3444. this.headColumnList.indexOf('materialSpe'),
  3445. 1
  3446. )
  3447. delete this.filterMap.materialSpeList
  3448. }
  3449. //收货地址筛选
  3450. if (
  3451. typeof obj.addressPlace != 'undefined' &&
  3452. obj.addressPlace.length > 0
  3453. ) {
  3454. this.headColumnList.push('addressPlace')
  3455. this.filterMap.addressPlaceList = obj.addressPlace
  3456. }
  3457. if (
  3458. typeof obj.addressPlace != 'undefined' &&
  3459. obj.addressPlace.length == 0
  3460. ) {
  3461. this.headColumnList.splice(
  3462. this.headColumnList.indexOf('addressPlace'),
  3463. 1
  3464. )
  3465. delete this.filterMap.addressPlaceList
  3466. }
  3467. if (typeof obj.orderStatus != 'undefined' && obj.orderStatus.length > 0) {
  3468. this.headColumnList.push('orderStatus')
  3469. // this.reset()
  3470. this.filterMap.orderStatusList = obj.orderStatus
  3471. }
  3472. if (
  3473. typeof obj.orderStatus != 'undefined' &&
  3474. obj.orderStatus.length == 0
  3475. ) {
  3476. this.headColumnList.splice(
  3477. this.headColumnList.indexOf('orderStatus'),
  3478. 1
  3479. )
  3480. delete this.filterMap.orderStatusList
  3481. }
  3482. if (
  3483. typeof obj.saleOrderStatus != 'undefined' &&
  3484. obj.saleOrderStatus.length > 0
  3485. ) {
  3486. this.headColumnList.push('saleOrderStatus')
  3487. this.filterMap.saleOrderStatusList = obj.saleOrderStatus
  3488. }
  3489. if (
  3490. typeof obj.saleOrderStatus != 'undefined' &&
  3491. obj.saleOrderStatus.length == 0
  3492. ) {
  3493. this.headColumnList.splice(
  3494. this.headColumnList.indexOf('saleOrderStatus'),
  3495. 1
  3496. )
  3497. delete this.filterMap.saleOrderStatusList
  3498. }
  3499. if (typeof obj.saleRemark != 'undefined' && obj.saleRemark.length > 0) {
  3500. this.headColumnList.push('saleRemark')
  3501. this.filterMap.saleRemarkList = obj.saleRemark
  3502. }
  3503. if (typeof obj.saleRemark != 'undefined' && obj.saleRemark.length == 0) {
  3504. this.headColumnList.splice(this.headColumnList.indexOf('saleRemark'), 1)
  3505. delete this.filterMap.saleRemarkList
  3506. }
  3507. if (typeof obj.truckRemark != 'undefined' && obj.truckRemark.length > 0) {
  3508. this.headColumnList.push('truckRemark')
  3509. this.filterMap.truckRemarkList = obj.truckRemark
  3510. }
  3511. if (
  3512. typeof obj.truckRemark != 'undefined' &&
  3513. obj.truckRemark.length == 0
  3514. ) {
  3515. this.headColumnList.splice(
  3516. this.headColumnList.indexOf('truckRemark'),
  3517. 1
  3518. )
  3519. delete this.filterMap.truckRemarkList
  3520. }
  3521. if (typeof obj.isContinue != 'undefined' && obj.isContinue.length > 0) {
  3522. this.headColumnList.push('isContinue')
  3523. this.filterMap.isContinueList = obj.isContinue
  3524. }
  3525. if (typeof obj.isContinue != 'undefined' && obj.isContinue.length == 0) {
  3526. this.headColumnList.splice(this.headColumnList.indexOf('isContinue'), 1)
  3527. delete this.filterMap.isContinueList
  3528. }
  3529. if (typeof obj.spellNum != 'undefined' && obj.spellNum.length > 0) {
  3530. this.headColumnList.push('spellNum')
  3531. this.filterMap.spellNumList = obj.spellNum
  3532. }
  3533. if (typeof obj.spellNum != 'undefined' && obj.spellNum.length == 0) {
  3534. this.headColumnList.splice(this.headColumnList.indexOf('spellNum'), 1)
  3535. delete this.filterMap.spellNumList
  3536. }
  3537. if (typeof obj.flStatus != 'undefined' && obj.flStatus.length > 0) {
  3538. this.headColumnList.push('flStatus')
  3539. this.filterMap.flStatusList = obj.flStatus
  3540. }
  3541. if (typeof obj.flStatus != 'undefined' && obj.flStatus.length == 0) {
  3542. this.headColumnList.splice(this.headColumnList.indexOf('flStatus'), 1)
  3543. delete this.filterMap.flStatusList
  3544. }
  3545. if (
  3546. typeof obj.orderStatusActually != 'undefined' &&
  3547. obj.orderStatusActually.length > 0
  3548. ) {
  3549. this.headColumnList.push('orderStatusActually')
  3550. this.filterMap.orderStatusActuallyList = obj.orderStatusActually
  3551. }
  3552. if (
  3553. typeof obj.orderStatusActually != 'undefined' &&
  3554. obj.orderStatusActually.length == 0
  3555. ) {
  3556. this.headColumnList.splice(
  3557. this.headColumnList.indexOf('orderStatusActually'),
  3558. 1
  3559. )
  3560. delete this.filterMap.orderStatusActuallyList
  3561. }
  3562. // if (obj)
  3563. this.onclick(this.filterMap)
  3564. },
  3565. //控制筛选数组变化
  3566. // filterListChange() {
  3567. // //客户筛选数组
  3568. // // let consigneeNameList = this.tableData
  3569. // // .map(e => {
  3570. // // return e.consigneeName
  3571. // // })
  3572. // // .sort()
  3573. // //承运商筛选数组
  3574. // // let carrierNameList = this.tableData
  3575. // // .map(e => {
  3576. // // return e.carrierName
  3577. // // })
  3578. // // .sort()
  3579. // //车牌号筛选数组
  3580. // // let capacityList = this.tableData
  3581. // // .map(e => {
  3582. // // return e.newCapacityNo
  3583. // // })
  3584. // // .sort()
  3585. // //物资筛选数组
  3586. // // let materialNameList = this.tableData
  3587. // // .map(e => {
  3588. // // return e.materialName
  3589. // // })
  3590. // // .filter(e => {
  3591. // // return e != null
  3592. // // })
  3593. // // .sort()
  3594. // //销售片区筛选数组
  3595. // let saleAreaList = this.tableData
  3596. // .map(e => {
  3597. // return e.areaName
  3598. // })
  3599. // .filter(e => {
  3600. // return e != null
  3601. // })
  3602. // let addressPlaceList = this.tableData
  3603. // .map(e => {
  3604. // return e.addressPlace
  3605. // })
  3606. // .filter(e => {
  3607. // return e != null
  3608. // })
  3609. // .sort()
  3610. // let orderStatusList = this.tableData
  3611. // .map(e => {
  3612. // return e.orderStatus
  3613. // })
  3614. // .filter(e => {
  3615. // return e != null
  3616. // })
  3617. // let materialSpeList = this.tableData
  3618. // .map(e => {
  3619. // return e.materialSpe
  3620. // })
  3621. // .filter(e => {
  3622. // return e != null
  3623. // })
  3624. // .sort()
  3625. // let saleOrderStatusList = this.tableData.map(e => {
  3626. // return e.saleOrderStatus
  3627. // })
  3628. // let saleRemarkList = this.tableData
  3629. // .map(e => {
  3630. // return e.saleRemark
  3631. // })
  3632. // .sort()
  3633. // // this.filterConsigneeList = []
  3634. // // this.filterCarrierList = []
  3635. // // this.filterCapacityList = []
  3636. // // this.filtermaterialNameList = []
  3637. // this.filterSaleAreaList = []
  3638. // this.filterorderStatus = []
  3639. // this.filteraddressPlace = []
  3640. // this.filtermaterialSpe = []
  3641. // this.filterSaleOrderStatus = []
  3642. // this.filterSaleRemark = []
  3643. // // Array.from(new Set(consigneeNameList)).forEach(e => {
  3644. // // let map = {}
  3645. // // map.text = e
  3646. // // map.value = e
  3647. // // this.filterConsigneeList.push(map)
  3648. // // })
  3649. // Array.from(new Set(carrierNameList)).forEach(e => {
  3650. // let map = {}
  3651. // map.text = e
  3652. // map.value = e
  3653. // this.filterCarrierList.push(map)
  3654. // })
  3655. // Array.from(new Set(capacityList)).forEach(e => {
  3656. // let map = {}
  3657. // map.text = e
  3658. // map.value = e
  3659. // this.filterCapacityList.push(map)
  3660. // })
  3661. // Array.from(new Set(materialNameList)).forEach(e => {
  3662. // let map = {}
  3663. // map.text = e
  3664. // map.value = e
  3665. // this.filtermaterialNameList.push(map)
  3666. // })
  3667. // Array.from(new Set(saleAreaList)).forEach(e => {
  3668. // let map = {}
  3669. // map.text = e
  3670. // map.value = e
  3671. // this.filterSaleAreaList.push(map)
  3672. // })
  3673. // Array.from(new Set(addressPlaceList)).forEach(e => {
  3674. // let map = {}
  3675. // map.text = e
  3676. // map.value = e
  3677. // this.filteraddressPlace.push(map)
  3678. // })
  3679. // Array.from(new Set(orderStatusList)).forEach(e => {
  3680. // let map = {}
  3681. // map.text = e
  3682. // map.value = e
  3683. // this.filterorderStatus.push(map)
  3684. // })
  3685. // Array.from(new Set(materialSpeList)).forEach(e => {
  3686. // let map = {}
  3687. // map.text = e
  3688. // map.value = e
  3689. // this.filtermaterialSpe.push(map)
  3690. // })
  3691. // Array.from(new Set(saleOrderStatusList)).forEach(e => {
  3692. // let map = {}
  3693. // map.text = e
  3694. // map.value = e
  3695. // this.filterSaleOrderStatus.push(map)
  3696. // })
  3697. // Array.from(new Set(saleRemarkList)).forEach(e => {
  3698. // let map = {}
  3699. // map.text = e
  3700. // map.value = e
  3701. // this.filterSaleRemark.push(map)
  3702. // })
  3703. // },
  3704. cellStyle({ row, column, rowIndex, columnIndex }) {
  3705. if (
  3706. column.property == 'arrivalAddress' ||
  3707. column.property == 'receiptAddress'
  3708. ) {
  3709. return { color: 'blue', height: '30px' }
  3710. } else {
  3711. return { height: '30px' }
  3712. }
  3713. },
  3714. rowClick(row, column, event) {
  3715. this.steelMap = {}
  3716. this.tableRowIndex = row.group
  3717. this.isRowClick = 1
  3718. this.steelMap = row
  3719. },
  3720. tableRowClassName({ row, rowIndex }) {
  3721. if (row.group == this.tableRowIndex && this.tableRowIndex !== '') {
  3722. return 'warning-row'
  3723. }
  3724. },
  3725. cellMouse(row, column, cell, event) {
  3726. if (this.isRowClick == 0) {
  3727. this.tableRowIndex = row.group
  3728. }
  3729. },
  3730. cellLeave(row, column, cell, event) {
  3731. if (this.isRowClick == 0) {
  3732. this.tableRowIndex = ''
  3733. }
  3734. },
  3735. reset() {
  3736. var that = this
  3737. that.$nextTick(() => {
  3738. that.saleSteelKey = !that.saleSteelKey
  3739. })
  3740. },
  3741. checkTrans(row) {
  3742. this.isRowClick = 0
  3743. if (Object.values(this.steelMap).length == 0) {
  3744. this.$message.error('请点击需要查看轨迹的行!')
  3745. return
  3746. }
  3747. if (typeof row === 'undefined') {
  3748. row = this.steelMap
  3749. }
  3750. if (row.outGateTime == null) {
  3751. this.$message.error('该车还未出厂,暂无轨迹')
  3752. return
  3753. }
  3754. let that = this
  3755. that.axios
  3756. .post('/api/v1/otms/fullPath?orderNumber=' + row.orderNo)
  3757. .then(res => {
  3758. console.log(res.data)
  3759. if (res.data.data == '-1') {
  3760. this.$message.error('运输订单未关闭的自提车辆无权查看!')
  3761. } else if (res.data.data.startAndEndRoutes != null) {
  3762. that.pathOption.orderNumber = row.orderNo
  3763. that.pathOption.capacityNumber = row.capacityNo
  3764. that.pathOption.startPointName = '达钢集团小东门'
  3765. that.pathOption.endPointName = row.receiptAddress
  3766. that.value7 = true
  3767. if (row.orderStatus == '已完成') {
  3768. that.pathOption.statusCode = '位置'
  3769. } else {
  3770. that.pathOption.statusCode = '当前位置'
  3771. }
  3772. } else {
  3773. this.$message.error('车辆没有开启GPS')
  3774. }
  3775. })
  3776. },
  3777. cellClik(row, column, cell, event) {
  3778. if (column.property == 'arrivalAddress') {
  3779. if (row.orderNo && row.arrivalAddress) {
  3780. this.downloadCapacityNo = `${row.orderTime}-${row.capacityNo}`
  3781. this.toPhotoClick(row.orderNo, 1)
  3782. }
  3783. }
  3784. if (column.property == 'receiptAddress') {
  3785. if (row.orderNo && row.receiptAddress) {
  3786. this.downloadCapacityNo = `${row.orderTime}-${row.capacityNo}`
  3787. this.receipctPhotoClick(row.orderNo, 1)
  3788. }
  3789. }
  3790. },
  3791. //反关闭运单
  3792. reverseCloseOrder() {
  3793. this.steelMap.oYeFlag = 1
  3794. this.axios
  3795. .post('/api/v1/ams/reverseCloseOrder', this.steelMap)
  3796. .then(res => {
  3797. this.operation(this.steelMap)
  3798. this.onclick(this.filterMap)
  3799. })
  3800. },
  3801. //筛选
  3802. //筛选客户
  3803. //点击操作弹出框
  3804. operation(row) {
  3805. // this.isRowClick = 0
  3806. this.isCheckGPS = true
  3807. if (Object.values(this.steelMap).length == 0) {
  3808. this.$message.error('请点击需要执行更改操作的行!')
  3809. return
  3810. }
  3811. if (typeof row === 'undefined') {
  3812. row = this.steelMap
  3813. }
  3814. this.axios
  3815. .post(
  3816. '/api/v1/tms/getOyeSteelReportDetailsBySmId?saleOrderMaterialId=' +
  3817. row.saleOrderMaterialId
  3818. )
  3819. .then(res => {
  3820. this.steelMap = res.data.data
  3821. this.steelMap.userName = getCookie('loginName')
  3822. this.addressId = row.shipperAddressId
  3823. this.getAllProvince()
  3824. this.onchangeProvince()
  3825. this.onchangeCity()
  3826. this.centerDialogVisible = true
  3827. this.getSpanArr1(res.data.data.mapList)
  3828. })
  3829. },
  3830. //查看抵达图
  3831. toPhotoClick(orderNo, num) {
  3832. this.axios
  3833. .post('/api/v1/otms/getArrivalPhoto?orderNumber=' + orderNo)
  3834. .then(res => {
  3835. this.srcList = []
  3836. this.previewSrcList = res.data
  3837. console.log(res.data, 'sd')
  3838. res.data.forEach(e => {
  3839. this.srcList.push({
  3840. title: '',
  3841. src: e
  3842. })
  3843. })
  3844. // this.srcList.push({
  3845. // title: '车头照片',
  3846. // src: res.data[0]
  3847. // })
  3848. // this.srcList.push({
  3849. // title: '满货箱照片',
  3850. // src: res.data[1]
  3851. // })
  3852. if (num == 1) {
  3853. this.isShow3 = true
  3854. } else {
  3855. this.isShow = true
  3856. }
  3857. })
  3858. },
  3859. //查看实时路径
  3860. checkPoint() {
  3861. if (this.input || this.input1 || this.steelMap.capacityNo) {
  3862. this.carNumber = this.input || this.input1 || this.steelMap.capacityNo
  3863. this.value8 = true
  3864. } else {
  3865. this.$message.error('请输入或者点击有车牌号的行查询车牌号的实时路径')
  3866. }
  3867. },
  3868. //查看签收图
  3869. receipctPhotoClick(orderNo, num) {
  3870. this.axios
  3871. .post('/api/v1/otms/getReceivingPhotoByUrl?orderNumber=' + orderNo)
  3872. .then(res => {
  3873. console.log(res.data)
  3874. if (num == 1) {
  3875. this.isShow4 = true
  3876. } else {
  3877. this.isShow2 = true
  3878. }
  3879. this.srcList2 = []
  3880. this.previewSrcList2 = res.data
  3881. if (res.data && res.data.length > 0) {
  3882. res.data.forEach(item => {
  3883. this.srcList2.push({
  3884. title: '',
  3885. src: item
  3886. })
  3887. })
  3888. }
  3889. })
  3890. },
  3891. //销售钢材报表导出excel
  3892. exportAllReportToExcel() {
  3893. const loading = this.$loading({
  3894. lock: true,
  3895. text: '正在导出Excel',
  3896. spinner: 'el-icon-loading',
  3897. background: 'rgba(0, 0, 0, 0.7)'
  3898. })
  3899. var title = this.tableTitle
  3900. let tHeader = []
  3901. let filterVal = []
  3902. if (
  3903. getCookie('orgCode') == 'shouhuokehu' ||
  3904. getCookie('orgCode') == 'xiaoshouyewuyuan'
  3905. ) {
  3906. tHeader = []
  3907. filterVal = []
  3908. let tHeader1 = this.salerExportExcelList.filter(e => {
  3909. if (this.columnNoRoutList.indexOf(e) == -1) {
  3910. return e
  3911. }
  3912. })
  3913. console.log(tHeader1)
  3914. let arr = this.$refs.tableRef.$children
  3915. for (var i = 0; i < tHeader1.length; i++) {
  3916. for (var j = 0; j < arr.length; j++) {
  3917. if (arr[j].label === tHeader1[i]) {
  3918. if (tHeader.indexOf(arr[j].label) === -1) {
  3919. tHeader.push(arr[j].label)
  3920. }
  3921. if (filterVal.indexOf(arr[j].prop) === -1) {
  3922. filterVal.push(arr[j].prop)
  3923. }
  3924. }
  3925. }
  3926. }
  3927. } else {
  3928. this.$refs.tableRef.$children.forEach(item => {
  3929. if (item.label != undefined && item.prop != undefined) {
  3930. if (tHeader.indexOf(item.label) === -1) {
  3931. tHeader.push(item.label)
  3932. }
  3933. if (filterVal.indexOf(item.prop) === -1) {
  3934. filterVal.push(item.prop)
  3935. }
  3936. }
  3937. })
  3938. }
  3939. this.downloadLoading = true
  3940. tHeader.unshift('车序号')
  3941. filterVal.unshift('saleOrderMaterialId')
  3942. require.ensure([], () => {
  3943. const {
  3944. export_json_to_excel
  3945. } = require('@/assets/excel/Export2Excel.js') //这里必须使用绝对路径,使用@/+存放export2Excel的路径
  3946. let data = this.disposeDataToExcel(this.tableData).map(v =>
  3947. filterVal.map(j => v[j])
  3948. ) //3.formatJson格式转换
  3949. export_json_to_excel(tHeader, data, title) // (title)导出的表格名称
  3950. })
  3951. loading.close()
  3952. },
  3953. disposeDataToExcel(data) {
  3954. //如果批次相同,只允许一条磅重和运费置为0
  3955. //首先找出批次相同的数组元素
  3956. data.reduce((prev, item) => {
  3957. if (item.weightBatchId) {
  3958. //如果有批次则走这个方法
  3959. if (prev.length > 0) {
  3960. let hash = prev[prev.length - 1]
  3961. //如果处理后的数组长度大于0,那么判断处理后的数组的最后一个元素里面的批次是否与当前批次相等,如果相等
  3962. if (
  3963. item.weightBatchId &&
  3964. hash.weightBatchId &&
  3965. item.weightBatchId == hash.weightBatchId
  3966. ) {
  3967. prev[prev.length - 1].netWeight = 0
  3968. prev[prev.length - 1].detailsAmount = 0
  3969. }
  3970. }
  3971. prev.push(item)
  3972. return prev
  3973. } else {
  3974. prev.push(item)
  3975. return prev
  3976. }
  3977. }, [])
  3978. return data
  3979. },
  3980. changeScreen() {},
  3981. //承运商弹出层
  3982. handleSelectCarrier() {
  3983. this.carrierList.forEach(item => {
  3984. if (item.carrierName == this.steelMap.carrierName) {
  3985. this.steelMap.newCarrierId = item.carrierId
  3986. this.steelMap.carrierId = item.carrierId
  3987. }
  3988. })
  3989. },
  3990. //承运商边输边查
  3991. querySearchCarrier(queryString, cb) {
  3992. if (queryString != null && queryString != '' && queryString.length > 1) {
  3993. this.axios
  3994. .post('/api/v1/uc/getCarrierMesByLike?index=' + queryString)
  3995. .then(res => {
  3996. if (res.data.code == '200') {
  3997. this.carrierList = []
  3998. if (res.data.data.length == 0) {
  3999. this.$message.info('承运商不存在,请前往注册')
  4000. return
  4001. }
  4002. var restaurants = res.data.data
  4003. this.carrierList = res.data.data
  4004. var results = queryString
  4005. ? restaurants.filter(this.createFilterCarrier(queryString))
  4006. : restaurants
  4007. cb(results)
  4008. }
  4009. })
  4010. }
  4011. },
  4012. createFilterCarrier(queryString) {
  4013. return restaurants => {
  4014. return (
  4015. restaurants.value1.toLowerCase().indexOf(queryString.toLowerCase()) >
  4016. -1
  4017. )
  4018. }
  4019. },
  4020. //以下是车牌号边输边查搜索
  4021. querySearch(queryString, cb) {
  4022. console.log(queryString)
  4023. if (
  4024. (queryString != null && queryString != '' && queryString.length > 3) ||
  4025. queryString == '取消' ||
  4026. queryString == '待定' ||
  4027. queryString == '空白'
  4028. ) {
  4029. this.axios
  4030. .post('/api/v1/uc/getCapacityByLike?index=' + queryString)
  4031. .then(res => {
  4032. this.capacityList = []
  4033. if (res.data.code == '200') {
  4034. if (res.data.data.length == 0) {
  4035. this.$message.info('车牌号不存在,请前往注册')
  4036. return
  4037. }
  4038. var restaurants = res.data.data
  4039. this.capacityList = res.data.data
  4040. var results = queryString
  4041. ? restaurants.filter(this.createFilter(queryString))
  4042. : restaurants
  4043. // 调用 callback 返回建议列表的数据
  4044. cb(results)
  4045. }
  4046. })
  4047. }
  4048. },
  4049. createFilter(queryString) {
  4050. return restaurants => {
  4051. return (
  4052. restaurants.value.toLowerCase().indexOf(queryString.toLowerCase()) >
  4053. -1
  4054. )
  4055. }
  4056. },
  4057. //车牌号弹出层
  4058. handleSelect() {
  4059. this.capacityList.forEach(item => {
  4060. if (item.capacityNumber === this.steelMap.capacityNo) {
  4061. this.steelMap.newsCapacityId = item.capacityId
  4062. }
  4063. })
  4064. },
  4065. updateCapacity() {
  4066. console.log('我只想测')
  4067. this.steelMap.capacityId = this.steelMap.newsCapacityId
  4068. this.steelMap.driverTel = this.steelMap.capacityTel
  4069. this.steelMap.userId = getCookie('userId')
  4070. if (this.steelMap.newsCapacityId == null) {
  4071. this.$message.warning('请先注册车牌号或者选中弹出后再提交!')
  4072. return
  4073. }
  4074. if (
  4075. !(
  4076. isVehicleNumber(this.steelMap.capacityNo) ||
  4077. this.steelMap.capacityNo == '取消' ||
  4078. this.steelMap.capacityNo == '待定' ||
  4079. this.steelMap.capacityNo == '空白'
  4080. )
  4081. ) {
  4082. this.$message.error('请输入正确格式的车牌号!')
  4083. return
  4084. }
  4085. //是否校验GPS
  4086. this.steelMap.isCheckGPS = this.isCheckGPS
  4087. if (this.steelMap.capacityIds != 0) {
  4088. const loading = this.$loading({
  4089. lock: true,
  4090. text: '正在变更车牌号',
  4091. spinner: 'el-icon-loading',
  4092. background: 'rgba(0, 0, 0, 0.7)'
  4093. })
  4094. this.steelMap.oYeFlag = 1
  4095. this.axios
  4096. .post('/api/v1/ams/updateCapacityNumberInFactory', this.steelMap)
  4097. .then(res => {
  4098. if (res.data.code == 200) {
  4099. this.$message({
  4100. type: 'success',
  4101. message: '变更车号成功,请通知驾驶员',
  4102. duration: 2500,
  4103. offset: '250'
  4104. })
  4105. this.operation(this.steelMap)
  4106. this.onclick(this.filterMap)
  4107. loading.close()
  4108. } else {
  4109. this.$alert(res.data.data, '提示', {
  4110. confirmButtonText: '确定',
  4111. center: true,
  4112. type: 'warning',
  4113. callback: action => {
  4114. this.onclick(this.filterMap)
  4115. this.operation(this.steelMap)
  4116. }
  4117. })
  4118. loading.close()
  4119. }
  4120. })
  4121. .catch(() => {
  4122. this.$message.success('变更失败,请联系管理员')
  4123. loading.close()
  4124. })
  4125. } else {
  4126. if (this.steelMap.carrierIds == 0) {
  4127. this.$message.error('请先选择承运商!')
  4128. return
  4129. }
  4130. this.steelMap.lineId = this.lineSpelling[this.steelMap.mapList.length]
  4131. this.steelMap.driverTel = this.steelMap.capacityTel
  4132. this.steelMap.capacityNumber = this.steelMap.capacityNo
  4133. this.steelMap.oYeFlag = 1
  4134. let arr = []
  4135. arr.push(this.steelMap)
  4136. const loading = this.$loading({
  4137. lock: true,
  4138. text: '正在派车,请稍候',
  4139. spinner: 'el-icon-loading',
  4140. background: 'rgba(0, 0, 0, 0.7)'
  4141. })
  4142. this.axios
  4143. .post('/api/v1/ams/dispatchSteelOrder', arr)
  4144. .then(res => {
  4145. if (res.data.code == '200') {
  4146. this.$message.success('派车成功!')
  4147. this.operation(this.steelMap)
  4148. this.axios
  4149. .post(
  4150. '/api/v1/ams/matchingDriverTelRecently?capacityNumber=' +
  4151. this.steelMap.capacityNo
  4152. )
  4153. .then(res => {
  4154. // if (res.data.data != null) {
  4155. // this.steelMap.capacityTel = res.data.data
  4156. // this.updateDriverTel()
  4157. // }
  4158. })
  4159. this.onclick(this.filterMap)
  4160. loading.close()
  4161. } else {
  4162. loading.close()
  4163. this.$alert(res.data.data, '提示', {
  4164. confirmButtonText: '确定',
  4165. center: true,
  4166. callback: action => {
  4167. this.onclick(this.filterMap)
  4168. this.operation(this.steelMap)
  4169. }
  4170. })
  4171. }
  4172. })
  4173. .catch(() => {
  4174. this.$message.error(res.data.data)
  4175. this.operation(this.steelMap)
  4176. this.onclick(this.filterMap)
  4177. loading.close()
  4178. })
  4179. }
  4180. },
  4181. //修改司机电话号码
  4182. updateDriverTel() {
  4183. const loading = this.$loading({
  4184. lock: true,
  4185. text: '修改电话号码中',
  4186. spinner: 'el-icon-loading',
  4187. background: 'rgba(0, 0, 0, 0.7)'
  4188. })
  4189. if (
  4190. this.steelMap.capacityTel == null ||
  4191. this.steelMap.capacityTel == ''
  4192. ) {
  4193. this.$message.error('电话号码不能为空')
  4194. loading.close()
  4195. return
  4196. }
  4197. var regex = /^[1][2,3,4,5,6,7,8,9][0-9]{9}$/
  4198. if (!regex.test(this.steelMap.capacityTel)) {
  4199. this.$message.error('电话号码不符合规则')
  4200. loading.close()
  4201. return
  4202. }
  4203. this.axios
  4204. .post('/api/v1/uc/updateDriverTel', {
  4205. orderId: parseInt(this.steelMap.orderId),
  4206. saleOrderMaterialId: parseInt(this.steelMap.saleOrderMaterialId),
  4207. driverTel: this.steelMap.capacityTel,
  4208. oYeFlag: 1
  4209. })
  4210. .then(res => {
  4211. if (res.data.code == '200') {
  4212. this.$message({
  4213. type: 'success',
  4214. duration: 2000,
  4215. message: '修改电话号码成功',
  4216. offset: 250
  4217. })
  4218. this.operation(this.steelMap)
  4219. this.onclick(this.filterMap)
  4220. loading.close()
  4221. } else {
  4222. this.$message.error('修改失败')
  4223. this.operation(this.steelMap)
  4224. this.onclick(this.filterMap)
  4225. loading.close()
  4226. }
  4227. })
  4228. .catch(() => {
  4229. this.$message.error('修改失败')
  4230. this.operation(this.steelMap)
  4231. this.onclick(this.filterMap)
  4232. loading.close()
  4233. })
  4234. },
  4235. //修改收货客户电话
  4236. updateconsigneeTel() {
  4237. const loading = this.$loading({
  4238. lock: true,
  4239. text: '修改电话号码中',
  4240. spinner: 'el-icon-loading',
  4241. background: 'rgba(0, 0, 0, 0.7)'
  4242. })
  4243. if (
  4244. this.steelMap.consigneeTel == null ||
  4245. this.steelMap.consigneeTel == ''
  4246. ) {
  4247. this.$message.error('电话号码不能为空')
  4248. return
  4249. }
  4250. this.axios
  4251. .post('/api/v1/ams/updateConsigneeTel', {
  4252. saleOrderNo: this.steelMap.saleOrderNo,
  4253. saleOrderMaterialId: this.steelMap.saleOrderMaterialId,
  4254. consigneeTel: this.steelMap.consigneeTel
  4255. })
  4256. .then(res => {
  4257. if (res.data.code == '200') {
  4258. this.$message.success('修改成功')
  4259. this.operation(this.steelMap)
  4260. this.onclick(this.filterMap)
  4261. loading.close()
  4262. } else {
  4263. this.$message.error('修改失败')
  4264. this.operation(this.steelMap)
  4265. this.onclick(this.filterMap)
  4266. loading.close()
  4267. }
  4268. })
  4269. .catch(() => {
  4270. this.$message.error('修改失败')
  4271. this.operation(this.steelMap)
  4272. this.onclick(this.filterMap)
  4273. loading.close()
  4274. })
  4275. },
  4276. //批量修改收货客户电话
  4277. batchUpdateconsigneeTel() {
  4278. const loading = this.$loading({
  4279. lock: true,
  4280. text: '修改电话号码中',
  4281. spinner: 'el-icon-loading',
  4282. background: 'rgba(0, 0, 0, 0.7)'
  4283. })
  4284. if (!this.consigneeTel) {
  4285. this.$message.error('电话号码不能为空')
  4286. loading.close()
  4287. return
  4288. }
  4289. this.batchCapacityList.forEach(row => {
  4290. this.axios
  4291. .post('/api/v1/ams/updateConsigneeTel', {
  4292. saleOrderNo: row.saleOrderNo,
  4293. saleOrderMaterialId: row.saleOrderMaterialId,
  4294. consigneeTel: this.consigneeTel,
  4295. oYeFlag: 1
  4296. })
  4297. .then(res => {
  4298. if (res.data.code == '200') {
  4299. this.$message.success('修改成功')
  4300. } else {
  4301. this.$message.error('修改失败')
  4302. }
  4303. })
  4304. .catch(() => {
  4305. this.$message.error('修改失败')
  4306. })
  4307. })
  4308. this.onclick(this.filterMap)
  4309. loading.close()
  4310. this.batchCarrierVisible = false
  4311. },
  4312. //修改承运商授权
  4313. updateTruckCarrier() {
  4314. if (this.steelMap.newCarrierId == null) {
  4315. this.$message.warning('请注册承运商或者选中弹出层之后再提交!')
  4316. this.onclick(this.filterMap)
  4317. return
  4318. }
  4319. if (this.steelMap.carrierIds != 0) {
  4320. const loading = this.$loading({
  4321. lock: true,
  4322. text: '正在修改承运商授权',
  4323. spinner: 'el-icon-loading',
  4324. background: 'rgba(0, 0, 0, 0.7)'
  4325. })
  4326. this.steelMap.oYeFlag = 1
  4327. this.axios
  4328. .post('/api/v1/ams/updateTruckNoCarrier', this.steelMap)
  4329. .then(res => {
  4330. if (res.data.code == '200') {
  4331. this.$message.success('修改承运商授权成功')
  4332. this.operation(this.steelMap)
  4333. this.onclick(this.filterMap)
  4334. loading.close()
  4335. } else {
  4336. this.$message.error('修改失败,请联系管理员!')
  4337. this.operation(this.steelMap)
  4338. this.onclick(this.filterMap)
  4339. loading.close()
  4340. }
  4341. })
  4342. .catch(() => {
  4343. this.$message.error('修改失败,请联系管理员!')
  4344. this.operation(this.steelMap)
  4345. this.onclick(this.filterMap)
  4346. loading.close()
  4347. })
  4348. } else {
  4349. //授权承运商
  4350. let arr = []
  4351. this.steelMap.oYeFlag = 1
  4352. arr.push(this.steelMap)
  4353. const loading = this.$loading({
  4354. lock: true,
  4355. text: '正在授权承运商',
  4356. spinner: 'el-icon-loading',
  4357. background: 'rgba(0, 0, 0, 0.7)'
  4358. })
  4359. this.axios
  4360. .post('/api/v1/ams/dispatchToCarrier', arr)
  4361. .then(res => {
  4362. if (res.data.code == '0') {
  4363. this.$message.success('授权承运商成功')
  4364. this.operation(this.steelMap)
  4365. this.onclick(this.filterMap)
  4366. loading.close()
  4367. } else {
  4368. this.$message.error('授权失败,请联系管理员')
  4369. this.operation(this.steelMap)
  4370. this.onclick(this.filterMap)
  4371. loading.close()
  4372. }
  4373. })
  4374. .catch(() => {
  4375. this.$message.error('授权失败,请联系管理员')
  4376. this.operation(this.steelMap)
  4377. this.onclick(this.filterMap)
  4378. loading.close()
  4379. })
  4380. }
  4381. },
  4382. updateAddress(row) {
  4383. this.drawer = true
  4384. this.addressRow = row
  4385. this.province = row.addressProvince
  4386. this.city = row.addressDistrict
  4387. this.county = row.addressTown
  4388. this.addressId = row.shipperAddressId
  4389. this.getAllProvince()
  4390. this.onchangeProvince()
  4391. this.onchangeCity()
  4392. },
  4393. //获取所有省数据
  4394. getAllProvince() {
  4395. // this.provinceList = []
  4396. // return
  4397. this.axios
  4398. .post('/api/v1/uc/getAllProvince')
  4399. .then(res => {
  4400. // console.log(res.data.data)
  4401. this.provinceList = res.data.data
  4402. })
  4403. .catch(e => {
  4404. console.log(e)
  4405. })
  4406. },
  4407. //省改变
  4408. onchangeProvince() {
  4409. this.axios
  4410. .post(
  4411. '/api/v1/uc/getDistrictByProvince?addressProvince=' +
  4412. this.steelMap.addressProvince +
  4413. '&i=' +
  4414. new Date()
  4415. )
  4416. .then(res => {
  4417. this.cityList = res.data.data
  4418. // this.city = "";
  4419. // this.county = "";
  4420. })
  4421. },
  4422. //市改变
  4423. onchangeCity() {
  4424. this.axios
  4425. .post(
  4426. '/api/v1/uc/getTownByDistrict?addressDistrict=' +
  4427. this.steelMap.addressDistrict +
  4428. '&i=' +
  4429. new Date()
  4430. )
  4431. .then(res => {
  4432. this.countyList = res.data.data
  4433. })
  4434. },
  4435. //县(区)改变
  4436. onchangeCounty() {
  4437. let mapValue = {
  4438. addressProvince: this.steelMap.addressProvince,
  4439. addressDistrict: this.steelMap.addressDistrict,
  4440. addressTown: this.steelMap.addressTown
  4441. }
  4442. this.axios.post('/api/v1/uc/getPlaceByAllAddress', mapValue).then(res => {
  4443. this.addressId = res.data.data[0].addressId
  4444. })
  4445. },
  4446. //收货地址弹出层
  4447. handleSelect1(item) {
  4448. console.log('获取所有下拉值!')
  4449. },
  4450. //以下是收货地址边输边查搜索
  4451. querySearch1(queryString, cb) {
  4452. this.axios
  4453. .post(
  4454. '/api/v1/ams/getRealAddressByLike?addressId=' +
  4455. this.addressId +
  4456. '&index=' +
  4457. queryString
  4458. )
  4459. .then(res => {
  4460. if (res.data.code == '200') {
  4461. var restaurants = res.data.data
  4462. var results = queryString
  4463. ? restaurants.filter(this.createFilter1(queryString))
  4464. : restaurants
  4465. // 调用 callback 返回建议列表的数据
  4466. cb(results)
  4467. }
  4468. })
  4469. },
  4470. createFilter1(queryString) {
  4471. return restaurants => {
  4472. return (
  4473. restaurants.value.toLowerCase().indexOf(queryString.toLowerCase()) >
  4474. -1
  4475. )
  4476. }
  4477. },
  4478. //修改收货地址
  4479. addAddressClick() {
  4480. const loading = this.$loading({
  4481. lock: true,
  4482. text: '正在修改收货地址',
  4483. spinner: 'el-icon-loading',
  4484. background: 'rgba(0, 0, 0, 0.7)'
  4485. })
  4486. let map = this.steelMap
  4487. map.isCloseEas = Number(1)
  4488. map.isNewCar = Number(1)
  4489. map.userName = getCookie('loginName')
  4490. map.shipperAddressId = this.addressId
  4491. map.oYeFlag = 1
  4492. this.axios
  4493. .post('/api/v1/ams/updateCarAddress', map)
  4494. .then(res => {
  4495. if (res.data.code == '200') {
  4496. // this.$message.success('修改收货地址成功!')
  4497. this.$message({
  4498. type: 'success',
  4499. message:
  4500. '修改收货地址成功,请提醒相关人员核对单价及详单数据是否生成正确',
  4501. offset: '250',
  4502. duration: 2500
  4503. })
  4504. this.operation(this.steelMap)
  4505. this.onclick(this.filterMap)
  4506. loading.close()
  4507. } else {
  4508. this.$message.error('修改失败,请联系管理员!')
  4509. this.operation(this.steelMap)
  4510. this.onclick(this.filterMap)
  4511. loading.close()
  4512. }
  4513. })
  4514. .catch(() => {
  4515. this.$message.error('修改失败,请联系管理员!')
  4516. this.operation(this.steelMap)
  4517. this.onclick(this.filterMap)
  4518. loading.close()
  4519. })
  4520. },
  4521. //批量修改收货地址
  4522. batchUpdateCarAddress() {
  4523. const loading = this.$loading({
  4524. lock: true,
  4525. text: '正在修改收货地址',
  4526. spinner: 'el-icon-loading',
  4527. background: 'rgba(0, 0, 0, 0.7)'
  4528. })
  4529. this.batchCapacityList.forEach(row => {
  4530. let map = row
  4531. map.place = this.steelMap.place
  4532. map.isCloseEas = Number(1)
  4533. map.isNewCar = Number(1)
  4534. map.shipperAddressId = this.addressId
  4535. map.userName = getCookie('loginName')
  4536. map.oYeFlag = 1
  4537. this.axios
  4538. .post('/api/v1/ams/updateCarAddress', map)
  4539. .then(res => {
  4540. if (res.data.code == '200') {
  4541. this.$message({
  4542. type: 'success',
  4543. message:
  4544. '修改收货地址成功,请提醒相关人员核对单价及详单数据是否生成正确',
  4545. offset: '250',
  4546. duration: 2500
  4547. })
  4548. } else {
  4549. this.$message.error('修改失败,请联系管理员!')
  4550. }
  4551. })
  4552. .catch(() => {
  4553. this.$message.error('修改失败,请联系管理员!')
  4554. })
  4555. })
  4556. this.onclick(this.filterMap)
  4557. loading.close()
  4558. this.batchCarrierVisible = false
  4559. },
  4560. //将序号确定下来
  4561. // getNodeNum(data) {
  4562. // for (var i = 0; i < data.length; i++) {
  4563. // if (i === 0) {
  4564. // data[i].group = i
  4565. // data[i].rowKey = i
  4566. // } else {
  4567. // // 判断当前元素与上一个元素是否相同
  4568. // if (data[i].saleOrderMaterialId === data[i - 1].saleOrderMaterialId) {
  4569. // data[i].group = data[i - 1].group
  4570. // data[i].rowKey = i
  4571. // } else {
  4572. // data[i].group = data[i - 1].group + 1
  4573. // data[i].rowKey = i
  4574. // }
  4575. // }
  4576. // }
  4577. // },
  4578. //记录每一行的合并数
  4579. getSpanArr(data) {
  4580. //每次调用方法初始化
  4581. this.spanArr = []
  4582. this.spanArr2 = []
  4583. for (var i = 0; i < data.length; i++) {
  4584. if (i === 0) {
  4585. this.spanArr.push(1)
  4586. this.spanArr2.push(1)
  4587. // data[i].group = i
  4588. this.pos = 0
  4589. this.pos2 = 0
  4590. } else {
  4591. // 判断当前元素与上一个元素是否相同
  4592. if (data[i].saleOrderMaterialId === data[i - 1].saleOrderMaterialId) {
  4593. this.spanArr[this.pos] += 1
  4594. // data[i].group = data[i - 1].group
  4595. this.spanArr.push(0)
  4596. if (
  4597. data[i].weightBatchId &&
  4598. data[i].weightBatchId === data[i - 1].weightBatchId
  4599. ) {
  4600. //批次合并
  4601. this.spanArr2[this.pos2] += 1
  4602. this.spanArr2.push(0)
  4603. } else {
  4604. this.spanArr2.push(1)
  4605. this.pos2 = i
  4606. }
  4607. } else {
  4608. this.spanArr.push(1)
  4609. this.pos = i
  4610. // data[i].group = data[i - 1].group + 1
  4611. this.spanArr2.push(1)
  4612. this.pos2 = i
  4613. }
  4614. }
  4615. }
  4616. },
  4617. getSpanArr1(data) {
  4618. //每次调用方法初始化
  4619. this.spanArr1 = []
  4620. this.spanArr3 = []
  4621. for (var i = 0; i < data.length; i++) {
  4622. if (i === 0) {
  4623. this.spanArr1.push(1)
  4624. this.spanArr3.push(1)
  4625. // data[i].group = i
  4626. this.pos1 = 0
  4627. this.pos3 = 0
  4628. } else {
  4629. // 判断当前元素与上一个元素是否相同
  4630. if (data[i].saleOrderMaterialId === data[i - 1].saleOrderMaterialId) {
  4631. this.spanArr1[this.pos] += 1
  4632. // data[i].group = data[i - 1].group
  4633. this.spanArr1.push(0)
  4634. if (
  4635. data[i].weightBatchId &&
  4636. data[i].weightBatchId === data[i - 1].weightBatchId
  4637. ) {
  4638. //批次合并
  4639. this.spanArr3[this.pos3] += 1
  4640. this.spanArr3.push(0)
  4641. } else {
  4642. this.spanArr3.push(1)
  4643. this.pos3 = i
  4644. }
  4645. } else {
  4646. this.spanArr1.push(1)
  4647. this.pos1 = i
  4648. this.spanArr3.push(1)
  4649. this.pos3 = i
  4650. // data[i].group = data[i - 1].group + 1
  4651. }
  4652. }
  4653. }
  4654. },
  4655. objectSpanMethod({ row, column, rowIndex, columnIndex }) {
  4656. if (this.mergeList.indexOf(column.label) != -1) {
  4657. const _row = this.spanArr[rowIndex]
  4658. const _col = _row > 0 ? 1 : 0
  4659. return {
  4660. rowspan: _row,
  4661. colspan: _col
  4662. }
  4663. } else if (this.mergeListBatch.indexOf(column.label) != -1) {
  4664. const _row = this.spanArr2[rowIndex]
  4665. const _col = _row > 0 ? 1 : 0
  4666. return {
  4667. rowspan: _row,
  4668. colspan: _col
  4669. }
  4670. }
  4671. },
  4672. objectSpanMethod1({ row, column, rowIndex, columnIndex }) {
  4673. if (this.mergeList.indexOf(column.label) != -1) {
  4674. const _row = this.spanArr1[rowIndex]
  4675. const _col = _row > 0 ? 1 : 0
  4676. return {
  4677. rowspan: _row,
  4678. colspan: _col
  4679. }
  4680. } else if (this.mergeListBatch.indexOf(column.label) != -1) {
  4681. const _row = this.spanArr3[rowIndex]
  4682. const _col = _row > 0 ? 1 : 0
  4683. return {
  4684. rowspan: _row,
  4685. colspan: _col
  4686. }
  4687. }
  4688. },
  4689. objectSpanMethod2({ row, column, rowIndex, columnIndex }) {
  4690. if (this.mergeList.indexOf(column.label) != -1) {
  4691. const _row = this.spanArr1[rowIndex]
  4692. const _col = _row > 0 ? 1 : 0
  4693. return {
  4694. rowspan: _row,
  4695. colspan: _col
  4696. }
  4697. } else if (this.mergeListBatch.indexOf(column.label) != -1) {
  4698. const _row = this.spanArr3[rowIndex]
  4699. const _col = _row > 0 ? 1 : 0
  4700. return {
  4701. rowspan: _row,
  4702. colspan: _col
  4703. }
  4704. }
  4705. },
  4706. //计算总件数和总车数
  4707. // getTotalNum(data) {
  4708. // //通过车序号的个数来计算车数
  4709. // let arr = []
  4710. // arr = data.map(e => {
  4711. // if (
  4712. // e.capacityNo != '取消' &&
  4713. // e.saleOrderStatus != '反审批' &&
  4714. // e.orderStatus != '已关闭'
  4715. // ) {
  4716. // return e.saleOrderMaterialId
  4717. // }
  4718. // })
  4719. // this.totalCapacity = Array.from(new Set(arr)).length
  4720. // this.totalNumber = data.reduce(function(prev, item) {
  4721. // return prev + item.materialNum
  4722. // }, 0)
  4723. // },
  4724. //减少物资件数
  4725. updateBillOrder(row) {
  4726. const loading = this.$loading({
  4727. lock: true,
  4728. text: '修改物资件数中',
  4729. spinner: 'el-icon-loading',
  4730. background: 'rgba(0, 0, 0, 0.7)'
  4731. })
  4732. let map = {
  4733. materialId: row.materialId,
  4734. materialNum: row.materialNumber,
  4735. oYeFlag: 1
  4736. }
  4737. let arr = []
  4738. arr.push(map)
  4739. let updateMap = {
  4740. orderId: this.steelMap.orderId,
  4741. saleOrderId: this.steelMap.saleOrderId,
  4742. saleOrderMaterialId: this.steelMap.saleOrderMaterialId,
  4743. mapList: arr,
  4744. oYeFlag: 1
  4745. }
  4746. this.axios
  4747. .post('/api/v1/oms/updateMaterialMes', updateMap)
  4748. .then(res => {
  4749. if (res.data.code == '200') {
  4750. this.$message.success('修改物资数量成功')
  4751. this.onclick(this.filterMap)
  4752. loading.close()
  4753. } else {
  4754. this.$message.error('修改物资数量失败,请联系管理员')
  4755. this.onclick(this.filterMap)
  4756. loading.close()
  4757. }
  4758. })
  4759. .catch(() => {
  4760. this.$message.error('修改物资数量失败,请联系管理员')
  4761. this.onclick(this.filterMap)
  4762. loading.close()
  4763. })
  4764. },
  4765. getStatusNum(data) {
  4766. //未派发、取消
  4767. },
  4768. //查询,输入查询条件
  4769. onclick(obj) {
  4770. this.$store.commit('updateSaleSteelToggleIds', { isClear: 1 })
  4771. this.isRowClick = 0
  4772. this.showPopover = false
  4773. const loading = this.$loading({
  4774. lock: true,
  4775. text: '正在获取数据',
  4776. spinner: 'el-icon-loading',
  4777. background: 'rgba(0, 0, 0, 0.7)'
  4778. })
  4779. let startTime = null
  4780. let endTime = null
  4781. let carrierSsoId = null
  4782. let carrierName = null
  4783. let consigneeName = null
  4784. let capacityNo = null
  4785. let remark = null
  4786. let saler = null
  4787. let easPrimaryId = null
  4788. let consigneeLoginName = null
  4789. let receiveAddress = null
  4790. obj.receiveAddress = null
  4791. obj.saleNo = null
  4792. obj.receiveCustomer = null
  4793. if (this.startTime && this.endTime) {
  4794. startTime = sjTime(this.startTime)
  4795. endTime = sjTime(this.endTime)
  4796. }
  4797. if (getCookie('orgCode') == 'chengyunshang') {
  4798. carrierSsoId = getCookie('userId')
  4799. }
  4800. if (getCookie('orgCode') == 'xiaoshouyewuyuan') {
  4801. saler = getCookie('loginName')
  4802. }
  4803. if (getCookie('orgCode') == 'shouhuokehu') {
  4804. consigneeLoginName =
  4805. JSON.parse(getCookie('userInfo')).userCode || getCookie('loginName')
  4806. obj.consigneeLoginName = consigneeLoginName
  4807. }
  4808. if (this.screen == '客户') {
  4809. consigneeName = this.input
  4810. } else if (this.screen == '承运商') {
  4811. carrierName = this.input
  4812. } else if (this.screen == '车牌号') {
  4813. capacityNo = this.input
  4814. } else if (this.screen == '分录ID') {
  4815. easPrimaryId = this.input
  4816. } else if (this.screen == '收货地址') {
  4817. receiveAddress = this.input
  4818. obj.receiveAddress = receiveAddress
  4819. } else if (this.screen == '销售订单号') {
  4820. obj.saleNo = this.input
  4821. } else if (this.screen == '收款公司') {
  4822. obj.receiveCustomer = this.input
  4823. } else {
  4824. remark = this.input
  4825. }
  4826. if (this.screen1 == '客户' && this.input1 != null && this.input1 != '') {
  4827. consigneeName = this.input1
  4828. } else if (
  4829. this.screen1 == '承运商' &&
  4830. this.input1 != null &&
  4831. this.input1 != ''
  4832. ) {
  4833. carrierName = this.input1
  4834. } else if (
  4835. this.screen1 == '车牌号' &&
  4836. this.input1 != null &&
  4837. this.input1 != ''
  4838. ) {
  4839. capacityNo = this.input1
  4840. } else if (
  4841. this.screen1 == '分录ID' &&
  4842. this.input1 != null &&
  4843. this.input1 != ''
  4844. ) {
  4845. easPrimaryId = this.input1
  4846. } else if (
  4847. this.screen1 == '收货地址' &&
  4848. this.input1 != null &&
  4849. this.input1 != ''
  4850. ) {
  4851. receiveAddress = this.input1
  4852. obj.receiveAddress = receiveAddress
  4853. } else if (
  4854. this.screen1 == '销售订单号' &&
  4855. this.input1 != null &&
  4856. this.input1 != ''
  4857. ) {
  4858. obj.saleNo = this.input1
  4859. } else if (this.screen1 == '收款公司') {
  4860. obj.receiveCustomer = this.input1
  4861. } else if (this.input1 != null && this.input1 != '') {
  4862. remark = this.input1
  4863. }
  4864. this.axios
  4865. .post(
  4866. '/api/v1/tms/getOyeSteelReport?startTime=' +
  4867. startTime +
  4868. '&endTime=' +
  4869. endTime +
  4870. '&carrierSsoId=' +
  4871. carrierSsoId +
  4872. '&i=' +
  4873. new Date() +
  4874. '&remark=' +
  4875. remark +
  4876. '&consigneeName=' +
  4877. consigneeName +
  4878. '&carrierName=' +
  4879. carrierName +
  4880. '&capacityNo=' +
  4881. capacityNo +
  4882. '&saler=' +
  4883. saler +
  4884. '&easPrimaryId=' +
  4885. encodeURIComponent(easPrimaryId),
  4886. obj,
  4887. {
  4888. timeout: 10 * 60 * 1000
  4889. }
  4890. )
  4891. .then(res => {
  4892. this.tableData = res.data.data
  4893. if (res.data.data.length > 0) {
  4894. this.totalNumber = `${res.data.data[0].totalNumber}件`
  4895. this.totalCapacity = `${res.data.data[0].totalCapacity}车`
  4896. this.quxiaoCapacityNum = `${res.data.data[0].quxiaoCapacityNum}车`
  4897. this.totalNetWeight = `${res.data.data[0].totalNetWeight}吨`
  4898. console.log(obj, 'obj')
  4899. if (this.filterMap) {
  4900. this.filterRefreshCtrl(res.data.data, this.filterMap)
  4901. }
  4902. }
  4903. this.maxHeight =
  4904. window.innerHeight -
  4905. document.querySelector('.tableTop').offsetHeight -
  4906. 40
  4907. let a = 1
  4908. if (
  4909. this.visibleList.length > 0 &&
  4910. this.visibleList.length < this.tableData.length
  4911. ) {
  4912. a = this.visibleList[0].rowKey
  4913. }
  4914. this.visibleList = []
  4915. this.visibleList = this.tableData.slice(
  4916. 0,
  4917. Math.floor(this.maxHeight / this.itemHeight) + 1
  4918. )
  4919. this.getSpanArr(this.visibleList)
  4920. this.$refs.tableRef.bodyWrapper.scrollTop = 30 * (a - 1)
  4921. // this.getTotalNum(this.tableData)
  4922. loading.close()
  4923. })
  4924. .catch(() => {
  4925. loading.close()
  4926. this.maxHeight =
  4927. window.innerHeight -
  4928. document.querySelector('.tableTop').offsetHeight -
  4929. 40
  4930. this.$message.error('查询失败')
  4931. })
  4932. },
  4933. filterRefreshCtrl(data, obj) {
  4934. if (!obj.truckRemarkList || obj.truckRemarkList.length === 0) {
  4935. this.filterTruckRemark = data[0].filterTruckRemark
  4936. }
  4937. if (!obj.saleRemarkList || obj.saleRemarkList.length === 0) {
  4938. this.filterSaleRemark = data[0].filterSaleRemark
  4939. }
  4940. if (!obj.consigneeNameList || obj.consigneeNameList.length === 0) {
  4941. this.filterConsigneeList = data[0].filterConsigneeList
  4942. }
  4943. if (!obj.addressPlaceList || obj.addressPlaceList.length === 0) {
  4944. this.filteraddressPlace = data[0].filteraddressPlace
  4945. }
  4946. if (!obj.materialSpeList || obj.materialSpeList.length === 0) {
  4947. this.filtermaterialSpe = data[0].filtermaterialSpe
  4948. }
  4949. if (!obj.capacityList || obj.capacityList.length === 0) {
  4950. this.filterCapacityList = data[0].filterCapacityList
  4951. }
  4952. if (!obj.materialNameList || obj.materialNameList.length === 0) {
  4953. this.filtermaterialNameList = data[0].filtermaterialNameList
  4954. }
  4955. if (!obj.carrierList || obj.carrierList.length === 0) {
  4956. this.filterCarrierList = data[0].filterCarrierList
  4957. }
  4958. if (!obj.orderStatusList || obj.orderStatusList.length === 0) {
  4959. this.filterorderStatus = data[0].filterorderStatus
  4960. }
  4961. if (!obj.areaNameList || obj.areaNameList.length === 0) {
  4962. this.filterAreaName = data[0].filterAreaName
  4963. }
  4964. if (
  4965. !obj.orderStatusActuallyList ||
  4966. obj.orderStatusActuallyList.length === 0
  4967. ) {
  4968. this.filterorderStatusActually = data[0].filterorderStatusActually
  4969. }
  4970. },
  4971. //重新获取表格数据
  4972. refresh() {
  4973. this.filterMap = {
  4974. consigneeNameList: [],
  4975. truckRemarkList: [],
  4976. saleRemarkList: [],
  4977. saleOrderStatusList: [],
  4978. materialSpeList: [],
  4979. addressPlaceList: [],
  4980. orderStatusList: [],
  4981. saleAreaList: [],
  4982. materialNameList: [],
  4983. carrierList: [],
  4984. capacityList: []
  4985. }
  4986. this.visibleList = []
  4987. this.getSteelReport()
  4988. },
  4989. //获取钢材统计报表
  4990. getSteelReportDebounce() {
  4991. this.$store.commit('updateSaleSteelToggleIds', { isClear: 1 })
  4992. console.log('---------------------------1111')
  4993. const loading = this.$loading({
  4994. lock: true,
  4995. text: '正在获取数据,请稍候',
  4996. spinner: 'el-icon-loading',
  4997. background: 'rgba(0, 0, 0, 0.7)'
  4998. })
  4999. // this.isRowClick = 0
  5000. let startTime = null
  5001. let endTime = null
  5002. let carrierSsoId = null
  5003. let carrierName = null
  5004. let consigneeName = null
  5005. let consigneeLoginName = null
  5006. let capacityNo = null
  5007. let remark = null
  5008. let saler = null
  5009. if (this.startTime && this.endTime) {
  5010. startTime = sjTime(this.startTime)
  5011. endTime = sjTime(this.endTime)
  5012. }
  5013. if (getCookie('orgCode') == 'chengyunshang') {
  5014. carrierSsoId = getCookie('userId')
  5015. }
  5016. if (getCookie('orgCode') == 'xiaoshouyewuyuan') {
  5017. saler = getCookie('loginName')
  5018. }
  5019. if (getCookie('orgCode') == 'shouhuokehu') {
  5020. consigneeLoginName =
  5021. JSON.parse(getCookie('userInfo')).userCode || getCookie('loginName')
  5022. // console.log('userinfo')
  5023. // JSON.parse(getCookie('userInfo')).userCode
  5024. this.filterMap.consigneeLoginName = consigneeLoginName
  5025. }
  5026. if (this.screen == '客户') {
  5027. consigneeName = this.input
  5028. } else if (this.screen == '承运商') {
  5029. carrierName = this.input
  5030. } else if (this.screen == '车牌号') {
  5031. capacityNo = this.input
  5032. } else {
  5033. remark = this.input
  5034. }
  5035. if (this.screen1 == '客户') {
  5036. consigneeName = this.input1
  5037. } else if (this.screen1 == '承运商') {
  5038. carrierName = this.input1
  5039. } else if (this.screen1 == '车牌号') {
  5040. capacityNo = this.input1
  5041. } else {
  5042. remark = this.input1
  5043. }
  5044. if (getCookie('orgCode') == 'chengyunshang') {
  5045. carrierSsoId = getCookie('userId')
  5046. }
  5047. if (getCookie('orgCode') == 'xiaoshouyewuyuan') {
  5048. saler = getCookie('loginName')
  5049. }
  5050. this.axios
  5051. .post(
  5052. '/api/v1/tms/getOyeSteelReport?startTime=' +
  5053. startTime +
  5054. '&endTime=' +
  5055. endTime +
  5056. '&carrierSsoId=' +
  5057. carrierSsoId +
  5058. '&saler=' +
  5059. saler +
  5060. '&i=' +
  5061. new Date() +
  5062. '&remark=' +
  5063. remark +
  5064. '&consigneeName=' +
  5065. consigneeName +
  5066. '&carrierName=' +
  5067. carrierName +
  5068. '&capacityNo=' +
  5069. capacityNo,
  5070. this.filterMap,
  5071. { timeout: 6000000 }
  5072. )
  5073. .then(res => {
  5074. this.tableData = res.data.data
  5075. if (res.data.data.length > 0) {
  5076. this.totalNumber = `${res.data.data[0].totalNumber}件`
  5077. this.totalCapacity = `${res.data.data[0].totalCapacity}车`
  5078. this.quxiaoCapacityNum = `${res.data.data[0].quxiaoCapacityNum}车`
  5079. this.totalNetWeight = `${res.data.data[0].totalNetWeight}吨`
  5080. this.filterConsigneeList = res.data.data[0].filterConsigneeList
  5081. this.filterCarrierList = res.data.data[0].filterCarrierList
  5082. this.filterCapacityList = res.data.data[0].filterCapacityList
  5083. this.filtermaterialNameList =
  5084. res.data.data[0].filtermaterialNameList
  5085. // this.filterorderStatus = res.data.data[0].filterorderStatus
  5086. this.filteraddressPlace = res.data.data[0].filteraddressPlace
  5087. this.filtermaterialSpe = res.data.data[0].filtermaterialSpe
  5088. this.filterSaleRemark = res.data.data[0].filterSaleRemark
  5089. this.filterTruckRemark = res.data.data[0].filterTruckRemark
  5090. this.filterorderStatusActually =
  5091. res.data.data[0].filterorderStatusActually
  5092. }
  5093. this.maxHeight =
  5094. window.innerHeight -
  5095. document.querySelector('.tableTop').offsetHeight -
  5096. 40
  5097. let a = 1
  5098. if (
  5099. this.visibleList.length > 0 &&
  5100. this.visibleList.length < this.tableData.length
  5101. ) {
  5102. a = this.visibleList[0].rowKey
  5103. }
  5104. this.visibleList = []
  5105. // this.getNodeLNum(this.tableData)
  5106. this.visibleList = this.tableData.slice(
  5107. 0,
  5108. Math.floor(this.maxHeight / this.itemHeight) + 1
  5109. )
  5110. this.getSpanArr(this.visibleList)
  5111. this.$refs.tableRef.bodyWrapper.scrollTop = 30 * (a - 1)
  5112. loading.close()
  5113. })
  5114. .catch(() => {
  5115. this.maxHeight =
  5116. window.innerHeight -
  5117. document.querySelector('.tableTop').offsetHeight -
  5118. 40
  5119. loading.close()
  5120. })
  5121. }
  5122. }
  5123. }
  5124. </script>
  5125. <style lang="scss" scoped>
  5126. .saleSteelReports {
  5127. .tableTop {
  5128. margin-left: 20px;
  5129. margin-top: 20px;
  5130. // height: ;
  5131. }
  5132. .table {
  5133. margin-left: 20px;
  5134. margin-top: 20px;
  5135. /deep/ .el-tooltip {
  5136. width: auto !important;
  5137. }
  5138. /deep/ .el-table__body {
  5139. overflow-y: auto;
  5140. position: absolute !important;
  5141. tr:hover > td {
  5142. background-color: #fff;
  5143. }
  5144. }
  5145. ::-webkit-scrollbar {
  5146. height: 20px;
  5147. width: 10px;
  5148. background-color: transparent;
  5149. }
  5150. /deep/ .scrollBarClass {
  5151. max-height: 200px;
  5152. width: 220px;
  5153. }
  5154. }
  5155. /deep/ .el-tabs__new-tab {
  5156. font-size: 20px;
  5157. line-height: 20px;
  5158. font-weight: 700 !important;
  5159. color: #000;
  5160. }
  5161. .batchCarrierClass {
  5162. display: flex;
  5163. justify-content: center;
  5164. align-items: center;
  5165. }
  5166. .batchCapacityClass {
  5167. display: flex;
  5168. justify-content: center;
  5169. align-items: center;
  5170. }
  5171. .dialog {
  5172. .exceptionHandleClass {
  5173. display: flex;
  5174. justify-content: center;
  5175. align-items: center;
  5176. font-size: 20px;
  5177. margin-top: 20px;
  5178. margin-bottom: 20px;
  5179. }
  5180. .steelMapClass {
  5181. .steelMapClass1 {
  5182. display: flex;
  5183. flex-direction: row;
  5184. justify-content: flex-start;
  5185. align-items: flex-start;
  5186. font-size: 16px;
  5187. .steelMapClass12 {
  5188. margin-left: 50px;
  5189. margin-right: 10px;
  5190. }
  5191. .steelMapClass13 {
  5192. display: flex;
  5193. margin-left: 50px;
  5194. margin-right: 10px;
  5195. }
  5196. }
  5197. .steelMapClass2 {
  5198. margin-top: 20px;
  5199. display: flex;
  5200. flex-direction: row;
  5201. justify-content: flex-start;
  5202. align-items: flex-start;
  5203. font-size: 16px;
  5204. .steelMapClass22 {
  5205. margin-left: 50px;
  5206. margin-right: 10px;
  5207. .el-select {
  5208. .el-input .el-input--suffix {
  5209. .el-input__inner {
  5210. border: 0px solid !important;
  5211. }
  5212. }
  5213. }
  5214. }
  5215. }
  5216. .steelMapClass3 {
  5217. margin-top: 20px;
  5218. display: flex;
  5219. flex-direction: row;
  5220. justify-content: flex-start;
  5221. align-items: flex-start;
  5222. font-size: 16px;
  5223. .steelMapClass32 {
  5224. margin-left: 50px;
  5225. // margin-right: 10px;
  5226. }
  5227. .steelMapClass33 {
  5228. margin-left: 20px;
  5229. // margin-right: 10px;
  5230. }
  5231. }
  5232. .steelMapClass4 {
  5233. margin-top: 20px;
  5234. display: flex;
  5235. flex-direction: row;
  5236. justify-content: flex-start;
  5237. align-items: flex-start;
  5238. font-size: 16px;
  5239. .steelMapClass42 {
  5240. margin-left: 50px;
  5241. margin-right: 10px;
  5242. }
  5243. .steelMapClass43 {
  5244. margin-left: 50px;
  5245. margin-right: 10px;
  5246. }
  5247. .steelMapClass44 {
  5248. margin-left: 50px;
  5249. margin-right: 10px;
  5250. }
  5251. }
  5252. .steelMapClass5 {
  5253. margin-top: 20px;
  5254. display: flex;
  5255. flex-direction: row;
  5256. justify-content: flex-start;
  5257. align-items: flex-start;
  5258. font-size: 16px;
  5259. .steelMapClass52 {
  5260. margin-left: 50px;
  5261. margin-right: 10px;
  5262. .steelMapClass521 {
  5263. margin-left: 20px;
  5264. }
  5265. }
  5266. }
  5267. .steelMapClass9 {
  5268. margin-top: 20px;
  5269. display: flex;
  5270. flex-direction: row;
  5271. justify-content: flex-start;
  5272. align-items: flex-start;
  5273. font-size: 16px;
  5274. .steelMapClass92 {
  5275. margin-left: 50px;
  5276. margin-right: 10px;
  5277. .steelMapClass921 {
  5278. text-align: start;
  5279. min-width: 350px;
  5280. .el-textarea {
  5281. width: auto;
  5282. }
  5283. // /deep/ .el-input__prefix {
  5284. // display: inline-block;
  5285. // position: relative;
  5286. // border: 1px solid #dcdfe6;
  5287. // box-sizing: border-box;
  5288. // color: #606266;
  5289. // font-size: inherit;
  5290. // height: 40px;
  5291. // line-height: 40px;
  5292. // padding: 0 30px;
  5293. // transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  5294. // padding-left: 30px;
  5295. // left: 0;
  5296. // visibility: hidden;
  5297. // }
  5298. // /deep/ .el-textarea__inner {
  5299. // position: absolute;
  5300. // }
  5301. }
  5302. }
  5303. }
  5304. .steelMapClass6 {
  5305. margin-top: 20px;
  5306. display: flex;
  5307. flex-direction: row;
  5308. justify-content: flex-start;
  5309. align-items: flex-start;
  5310. font-size: 16px;
  5311. .steelMapClass62 {
  5312. margin-left: 50px;
  5313. margin-right: 10px;
  5314. }
  5315. }
  5316. .steelMapClass7 {
  5317. margin-top: 20px;
  5318. display: flex;
  5319. flex-direction: row;
  5320. justify-content: flex-start;
  5321. align-items: flex-start;
  5322. font-size: 16px;
  5323. .steelMapClass72 {
  5324. margin-left: 50px;
  5325. margin-right: 10px;
  5326. }
  5327. }
  5328. }
  5329. .table1 {
  5330. margin-left: 20px;
  5331. margin-top: 20px;
  5332. .el-tooltip {
  5333. width: auto !important;
  5334. }
  5335. }
  5336. .columnShowDialogClass {
  5337. display: flex;
  5338. justify-content: center;
  5339. align-items: center;
  5340. }
  5341. }
  5342. }
  5343. </style>