oYeTransResult.vue 166 KB

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