清道夫系统原型_完整版_V21_SOP.html 579 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908
  1. <!DOCTYPE html><html lang="zh-CN">
  2. <head>
  3. <meta charset="UTF-8">
  4. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  5. <title>清道夫系统 - 完整版 V21-SOP增强版</title>
  6. <script src="https://cdn.tailwindcss.com"></script>
  7. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  8. <style>
  9. * {
  10. -webkit-tap-highlight-color: transparent;
  11. box-sizing: border-box;
  12. }
  13. body {
  14. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  15. background: #f5f5f5;
  16. min-height: 100vh;
  17. margin: 0;
  18. padding: 0;
  19. }
  20. /* 页面容器 */
  21. .app-container {
  22. max-width: 430px;
  23. margin: 0 auto;
  24. min-height: 100vh;
  25. background: #f5f5f5;
  26. position: relative;
  27. }
  28. /* 页面内容区域 */
  29. .page {
  30. display: none;
  31. min-height: 100vh;
  32. padding-bottom: 70px;
  33. }
  34. .page.active {
  35. display: block;
  36. }
  37. /* 底部导航栏 */
  38. .bottom-nav {
  39. position: fixed;
  40. bottom: 0;
  41. left: 50%;
  42. transform: translateX(-50%);
  43. width: 100%;
  44. max-width: 430px;
  45. background: white;
  46. box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  47. z-index: 100;
  48. }
  49. .nav-item.active {
  50. color: #3b82f6;
  51. }
  52. .nav-item.active .nav-icon {
  53. background: #eff6ff;
  54. }
  55. .card {
  56. background: white;
  57. border-radius: 12px;
  58. box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  59. }
  60. .project-card {
  61. transition: transform 0.2s, box-shadow 0.2s;
  62. }
  63. .project-card:active {
  64. transform: scale(0.98);
  65. box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  66. }
  67. .disabled-card {
  68. opacity: 0.5;
  69. cursor: not-allowed;
  70. pointer-events: none;
  71. }
  72. .role-tab {
  73. transition: all 0.3s;
  74. }
  75. .role-tab.active {
  76. background: #3b82f6;
  77. color: white;
  78. border-color: #3b82f6;
  79. }
  80. /* 销售端统计卡片样式 */
  81. #salesApp .stat-card {
  82. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  83. }
  84. #salesApp .stat-card:nth-child(2) {
  85. background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  86. }
  87. #salesApp .stat-card:nth-child(3) {
  88. background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  89. }
  90. .news-img {
  91. width: 60px;
  92. height: 60px;
  93. border-radius: 8px;
  94. background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  95. display: flex;
  96. align-items: center;
  97. justify-content: center;
  98. }
  99. .login-btn {
  100. background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  101. transition: all 0.3s;
  102. }
  103. .login-btn:active {
  104. transform: scale(0.98);
  105. opacity: 0.9;
  106. }
  107. .btn {
  108. display: inline-flex;
  109. align-items: center;
  110. justify-content: center;
  111. padding: 10px 20px;
  112. border-radius: 8px;
  113. font-size: 14px;
  114. font-weight: 500;
  115. cursor: pointer;
  116. transition: all 0.2s;
  117. }
  118. .btn:active {
  119. transform: scale(0.98);
  120. }
  121. .btn-danger {
  122. background: #ef4444;
  123. color: white;
  124. }
  125. .btn-danger:active {
  126. background: #dc2626;
  127. }
  128. .add-btn {
  129. background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  130. }
  131. .quick-entry-card {
  132. transition: all 0.2s;
  133. }
  134. .quick-entry-card:active {
  135. transform: scale(0.95);
  136. }
  137. .quick-entry-card.disabled {
  138. opacity: 0.5;
  139. cursor: not-allowed;
  140. }
  141. .quick-entry-card.disabled:active {
  142. transform: none;
  143. }
  144. /* 详情页样式 */
  145. .detail-section {
  146. background: white;
  147. border-radius: 12px;
  148. margin-bottom: 12px;
  149. overflow: hidden;
  150. }
  151. .detail-section-title {
  152. padding: 12px 16px;
  153. font-size: 14px;
  154. font-weight: 600;
  155. color: #333;
  156. border-bottom: 1px solid #f0f0f0;
  157. display: flex;
  158. align-items: center;
  159. gap: 8px;
  160. }
  161. .detail-row {
  162. padding: 12px 16px;
  163. display: flex;
  164. justify-content: space-between;
  165. align-items: flex-start;
  166. border-bottom: 1px solid #f5f5f5;
  167. }
  168. .detail-row:last-child {
  169. border-bottom: none;
  170. }
  171. .detail-label {
  172. color: #666;
  173. font-size: 14px;
  174. flex-shrink: 0;
  175. }
  176. .detail-value {
  177. color: #333;
  178. font-size: 14px;
  179. text-align: right;
  180. flex: 1;
  181. margin-left: 12px;
  182. }
  183. .tag {
  184. display: inline-block;
  185. padding: 2px 8px;
  186. border-radius: 4px;
  187. font-size: 12px;
  188. font-weight: 500;
  189. }
  190. .tag-blue {
  191. background: #e6f0ff;
  192. color: #2563eb;
  193. }
  194. .tag-green {
  195. background: #e6f7f1;
  196. color: #059669;
  197. }
  198. .tag-purple {
  199. background: #f3e8ff;
  200. color: #7c3aed;
  201. }
  202. .tag-orange {
  203. background: #fff7ed;
  204. color: #ea580c;
  205. }
  206. .service-point-item {
  207. padding: 12px 16px;
  208. background: #fafafa;
  209. border-radius: 8px;
  210. margin: 8px 16px;
  211. }
  212. .contact-item {
  213. display: flex;
  214. align-items: center;
  215. padding: 10px 0;
  216. border-bottom: 1px solid #f5f5f5;
  217. }
  218. .contact-item:last-child {
  219. border-bottom: none;
  220. }
  221. /* 表单样式 */
  222. .form-group {
  223. margin-bottom: 16px;
  224. }
  225. .form-label {
  226. display: block;
  227. font-size: 14px;
  228. color: #666;
  229. margin-bottom: 8px;
  230. }
  231. .form-input {
  232. width: 100%;
  233. padding: 12px 16px;
  234. border: 1px solid #e5e7eb;
  235. border-radius: 8px;
  236. font-size: 14px;
  237. color: #333;
  238. background: #fff;
  239. }
  240. .form-input:focus {
  241. outline: none;
  242. border-color: #3b82f6;
  243. box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
  244. }
  245. .form-select {
  246. width: 100%;
  247. padding: 12px 16px;
  248. border: 1px solid #e5e7eb;
  249. border-radius: 8px;
  250. font-size: 14px;
  251. color: #333;
  252. background: #fff;
  253. appearance: none;
  254. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  255. background-repeat: no-repeat;
  256. background-position: right 16px center;
  257. }
  258. .form-select:focus {
  259. outline: none;
  260. border-color: #3b82f6;
  261. }
  262. .form-textarea {
  263. width: 100%;
  264. padding: 12px 16px;
  265. border: 1px solid #e5e7eb;
  266. border-radius: 8px;
  267. font-size: 14px;
  268. color: #333;
  269. background: #fff;
  270. resize: vertical;
  271. min-height: 100px;
  272. }
  273. .form-textarea:focus {
  274. outline: none;
  275. border-color: #3b82f6;
  276. box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
  277. }
  278. /* 列表项样式 */
  279. .list-item {
  280. background: white;
  281. padding: 16px;
  282. border-bottom: 1px solid #f0f0f0;
  283. cursor: pointer;
  284. transition: background 0.2s;
  285. }
  286. .list-item:active {
  287. background: #f9fafb;
  288. }
  289. .list-item:last-child {
  290. border-bottom: none;
  291. }
  292. /* 公告样式 */
  293. .notice-item {
  294. background: white;
  295. padding: 16px;
  296. border-bottom: 1px solid #f0f0f0;
  297. cursor: pointer;
  298. }
  299. .notice-item:active {
  300. background: #f9fafb;
  301. }
  302. /* 知识卡片样式 */
  303. .knowledge-card {
  304. background: white;
  305. padding: 12px;
  306. border-radius: 12px;
  307. margin-bottom: 12px;
  308. cursor: pointer;
  309. box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  310. }
  311. .knowledge-card:active {
  312. transform: scale(0.98);
  313. }
  314. /* Toast样式 */
  315. #toast {
  316. position: fixed;
  317. top: 50%;
  318. left: 50%;
  319. transform: translate(-50%, -50%);
  320. background: rgba(0,0,0,0.8);
  321. color: white;
  322. padding: 16px 32px;
  323. border-radius: 8px;
  324. z-index: 9999;
  325. font-size: 14px;
  326. }
  327. #toast.hidden {
  328. display: none;
  329. }
  330. /* 隐藏底部导航的页面 */
  331. .page.hide-nav {
  332. padding-bottom: 0;
  333. }
  334. .page.hide-nav .bottom-nav {
  335. display: none;
  336. }
  337. /* 筛选标签样式 */
  338. .filter-tabs {
  339. display: flex;
  340. gap: 8px;
  341. padding: 12px 16px;
  342. background: white;
  343. overflow-x: auto;
  344. -webkit-overflow-scrolling: touch;
  345. }
  346. .filter-tabs::-webkit-scrollbar {
  347. display: none;
  348. }
  349. .filter-tab {
  350. flex-shrink: 0;
  351. padding: 6px 16px;
  352. border-radius: 20px;
  353. font-size: 13px;
  354. color: #666;
  355. background: #f5f5f5;
  356. border: 1px solid #e5e7eb;
  357. transition: all 0.2s;
  358. cursor: pointer;
  359. }
  360. .filter-tab:active {
  361. transform: scale(0.95);
  362. }
  363. .filter-tab.active {
  364. background: #3b82f6;
  365. color: white;
  366. border-color: #3b82f6;
  367. }
  368. /* 动态列表隐藏 */
  369. .project-item[data-type] {
  370. display: block;
  371. }
  372. .project-item.hidden {
  373. display: none !important;
  374. }
  375. /* 联系人卡片样式 */
  376. .contact-card {
  377. background: #f9fafb;
  378. border-radius: 8px;
  379. padding: 12px;
  380. margin-bottom: 8px;
  381. }
  382. .contact-card:last-child {
  383. margin-bottom: 0;
  384. }
  385. /* 子服务项样式 */
  386. .service-item {
  387. background: #f9fafb;
  388. border-radius: 8px;
  389. padding: 12px;
  390. margin-bottom: 8px;
  391. }
  392. .service-item:last-child {
  393. margin-bottom: 0;
  394. }
  395. .service-item .delete-btn {
  396. color: #ef4444;
  397. cursor: pointer;
  398. }
  399. /* 服务点样式 */
  400. .point-item {
  401. background: #f9fafb;
  402. border-radius: 8px;
  403. padding: 12px;
  404. margin-bottom: 8px;
  405. }
  406. .point-item:last-child {
  407. margin-bottom: 0;
  408. }
  409. .point-item .delete-btn {
  410. color: #ef4444;
  411. cursor: pointer;
  412. }
  413. /* 添加按钮样式 */
  414. .add-item-btn {
  415. width: 100%;
  416. padding: 12px;
  417. border: 2px dashed #d1d5db;
  418. border-radius: 8px;
  419. background: transparent;
  420. color: #6b7280;
  421. font-size: 14px;
  422. cursor: pointer;
  423. transition: all 0.2s;
  424. display: flex;
  425. align-items: center;
  426. justify-content: center;
  427. gap: 6px;
  428. }
  429. .add-item-btn:active {
  430. background: #f3f4f6;
  431. border-color: #9ca3af;
  432. }
  433. /* 空状态样式 */
  434. .empty-state {
  435. text-align: center;
  436. padding: 60px 20px;
  437. }
  438. .empty-state i {
  439. font-size: 48px;
  440. color: #d1d5db;
  441. margin-bottom: 16px;
  442. }
  443. .empty-state p {
  444. color: #9ca3af;
  445. font-size: 14px;
  446. }
  447. /* 任务卡片样式 */
  448. .task-card {
  449. background: white;
  450. border-radius: 12px;
  451. padding: 16px;
  452. margin-bottom: 12px;
  453. box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  454. cursor: pointer;
  455. transition: transform 0.2s, box-shadow 0.2s;
  456. }
  457. .task-card:active {
  458. transform: scale(0.98);
  459. box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  460. }
  461. .task-card .header {
  462. display: flex;
  463. justify-content: space-between;
  464. align-items: center;
  465. margin-bottom: 10px;
  466. }
  467. .task-card .task-name {
  468. font-size: 15px;
  469. font-weight: 600;
  470. color: #333;
  471. }
  472. .task-card .task-info {
  473. font-size: 13px;
  474. color: #666;
  475. margin-bottom: 6px;
  476. }
  477. .task-card .task-info i {
  478. width: 20px;
  479. color: #999;
  480. }
  481. /* 进度条样式(底部进度条) */
  482. .progress-bar-container {
  483. margin-top: 8px;
  484. padding: 0 4px;
  485. }
  486. .progress-bar-track {
  487. height: 4px;
  488. background: #e5e7eb;
  489. border-radius: 2px;
  490. position: relative;
  491. display: flex;
  492. justify-content: space-between;
  493. align-items: center;
  494. }
  495. .progress-bar-fill {
  496. position: absolute;
  497. left: 0;
  498. top: 0;
  499. height: 100%;
  500. background: #3b82f6;
  501. border-radius: 2px;
  502. transition: width 0.3s ease;
  503. }
  504. .progress-bar-step {
  505. width: 12px;
  506. height: 12px;
  507. border-radius: 50%;
  508. background: #e5e7eb;
  509. border: 2px solid #fff;
  510. position: relative;
  511. z-index: 1;
  512. flex-shrink: 0;
  513. }
  514. .progress-bar-step.completed {
  515. background: #3b82f6;
  516. }
  517. .progress-bar-step.active {
  518. background: #3b82f6;
  519. box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  520. }
  521. .progress-bar-labels {
  522. display: flex;
  523. justify-content: space-between;
  524. margin-top: 4px;
  525. }
  526. .progress-bar-labels span {
  527. font-size: 10px;
  528. color: #999;
  529. }
  530. .progress-bar-labels span.active {
  531. color: #3b82f6;
  532. font-weight: 500;
  533. }
  534. /* 任务卡片颜色区分 */
  535. .task-card {
  536. background: white;
  537. border-radius: 12px;
  538. padding: 16px;
  539. margin-bottom: 12px;
  540. box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  541. cursor: pointer;
  542. transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  543. position: relative;
  544. overflow: hidden;
  545. }
  546. .task-card:active {
  547. transform: scale(0.98);
  548. box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  549. }
  550. /* 应急/加急 - 左侧红色边框 */
  551. .task-card.emergency {
  552. border-left: 4px solid #ef4444;
  553. }
  554. /* 超时/即将超时 - 淡红色背景 */
  555. .task-card.timeout {
  556. background: #fef2f2;
  557. }
  558. /* 已完成 - 淡绿色背景 */
  559. .task-card.completed {
  560. background: #f0fdf4;
  561. }
  562. .task-card .header {
  563. display: flex;
  564. justify-content: space-between;
  565. align-items: center;
  566. margin-bottom: 10px;
  567. }
  568. .task-card .task-name {
  569. font-size: 15px;
  570. font-weight: 600;
  571. color: #333;
  572. }
  573. .task-card .task-info {
  574. font-size: 13px;
  575. color: #666;
  576. margin-bottom: 6px;
  577. }
  578. .task-card .task-info i {
  579. width: 20px;
  580. color: #999;
  581. }
  582. /* 状态标签 */
  583. .status-tag {
  584. display: inline-block;
  585. padding: 3px 10px;
  586. border-radius: 4px;
  587. font-size: 12px;
  588. font-weight: 500;
  589. }
  590. .status-scheduling {
  591. background: #fff7ed;
  592. color: #ea580c;
  593. }
  594. .status-constructing {
  595. background: #eff6ff;
  596. color: #2563eb;
  597. }
  598. .status-completed {
  599. background: #ecfdf5;
  600. color: #059669;
  601. }
  602. .status-emergency {
  603. background: #fef2f2;
  604. color: #dc2626;
  605. }
  606. .status-pending-cancel {
  607. background: #fef3c7;
  608. color: #d97706;
  609. }
  610. /* 紧急程度 */
  611. .urgent-tag {
  612. display: inline-block;
  613. padding: 2px 6px;
  614. border-radius: 3px;
  615. font-size: 11px;
  616. margin-right: 6px;
  617. }
  618. .urgent-high {
  619. background: #fef2f2;
  620. color: #dc2626;
  621. }
  622. .urgent-normal {
  623. background: #f3f4f6;
  624. color: #6b7280;
  625. }
  626. /* 详情页优化样式 */
  627. /* 项目信息区块 */
  628. .detail-block {
  629. background: white;
  630. border-radius: 12px;
  631. margin-bottom: 12px;
  632. overflow: hidden;
  633. }
  634. .detail-block-header {
  635. padding: 12px 16px;
  636. font-size: 14px;
  637. font-weight: 600;
  638. color: #333;
  639. border-bottom: 1px solid #f0f0f0;
  640. display: flex;
  641. align-items: center;
  642. gap: 8px;
  643. }
  644. /* 处理记录时间线样式优化 */
  645. .timeline-record {
  646. display: flex;
  647. padding: 12px 16px;
  648. position: relative;
  649. }
  650. .timeline-record:not(:last-child)::after {
  651. content: '';
  652. position: absolute;
  653. left: 38px;
  654. top: 44px;
  655. bottom: 0;
  656. width: 2px;
  657. background: #e5e7eb;
  658. }
  659. .timeline-record:last-child::after {
  660. display: none;
  661. }
  662. .timeline-avatar {
  663. width: 32px;
  664. height: 32px;
  665. border-radius: 50%;
  666. display: flex;
  667. align-items: center;
  668. justify-content: center;
  669. margin-right: 12px;
  670. flex-shrink: 0;
  671. font-size: 14px;
  672. color: white;
  673. }
  674. .timeline-avatar.sales {
  675. background: #3b82f6;
  676. }
  677. .timeline-avatar.dispatch {
  678. background: #f97316;
  679. }
  680. .timeline-avatar.worker {
  681. background: #10b981;
  682. }
  683. .timeline-record.current {
  684. background: #eff6ff;
  685. border-radius: 8px;
  686. margin: 0 8px;
  687. border-left: 3px solid #3b82f6;
  688. }
  689. .timeline-record.current::after {
  690. display: none;
  691. }
  692. .timeline-content {
  693. flex: 1;
  694. }
  695. .timeline-time {
  696. font-size: 12px;
  697. color: #999;
  698. margin-bottom: 4px;
  699. }
  700. .timeline-action {
  701. font-size: 14px;
  702. color: #333;
  703. line-height: 1.5;
  704. }
  705. .timeline-operator {
  706. font-size: 12px;
  707. color: #666;
  708. margin-top: 4px;
  709. }
  710. .timeline-record.current .timeline-time {
  711. color: #3b82f6;
  712. font-weight: 500;
  713. }
  714. .timeline-record.current .timeline-action {
  715. color: #1e40af;
  716. font-weight: 500;
  717. }
  718. /* 子服务项卡片样式 */
  719. .service-point-card {
  720. background: #f9fafb;
  721. border-radius: 12px;
  722. padding: 14px;
  723. margin-bottom: 10px;
  724. border: 2px solid transparent;
  725. cursor: pointer;
  726. transition: all 0.2s;
  727. }
  728. .service-point-card:active {
  729. transform: scale(0.98);
  730. }
  731. .service-point-card.selected {
  732. border-color: #3b82f6;
  733. background: #eff6ff;
  734. }
  735. .service-point-card .card-header {
  736. display: flex;
  737. justify-content: space-between;
  738. align-items: center;
  739. margin-bottom: 8px;
  740. }
  741. .service-point-card .point-name {
  742. font-size: 15px;
  743. font-weight: 600;
  744. color: #333;
  745. }
  746. .service-point-card .service-tag {
  747. background: #e6f0ff;
  748. color: #2563eb;
  749. padding: 3px 10px;
  750. border-radius: 12px;
  751. font-size: 12px;
  752. font-weight: 500;
  753. }
  754. .service-point-card .point-location {
  755. font-size: 13px;
  756. color: #666;
  757. display: flex;
  758. align-items: center;
  759. gap: 6px;
  760. }
  761. .service-point-card .point-location i {
  762. color: #999;
  763. width: 14px;
  764. }
  765. /* 日期时间选择器 */
  766. .datetime-input {
  767. display: flex;
  768. gap: 8px;
  769. }
  770. .datetime-input input {
  771. flex: 1;
  772. }
  773. /* 已填充信息样式 */
  774. .auto-filled {
  775. background: #f0f9ff !important;
  776. border-color: #3b82f6 !important;
  777. }
  778. .auto-filled-label {
  779. color: #3b82f6;
  780. font-size: 11px;
  781. font-weight: 500;
  782. margin-bottom: 4px;
  783. }
  784. /* 选择提示 */
  785. .select-hint {
  786. text-align: center;
  787. padding: 40px 20px;
  788. color: #9ca3af;
  789. }
  790. .select-hint i {
  791. font-size: 48px;
  792. margin-bottom: 12px;
  793. color: #d1d5db;
  794. }
  795. .select-hint p {
  796. font-size: 14px;
  797. }
  798. /* 合并选择器样式 */
  799. .inline-selector {
  800. display: flex;
  801. gap: 10px;
  802. }
  803. .inline-selector .form-group {
  804. flex: 1;
  805. margin-bottom: 0;
  806. }
  807. .inline-selector .form-select {
  808. padding-right: 32px;
  809. }
  810. /* 联系人列表样式 */
  811. .contact-list-item {
  812. display: flex;
  813. align-items: center;
  814. background: #f0f9ff;
  815. border-radius: 8px;
  816. padding: 10px 12px;
  817. margin-bottom: 8px;
  818. border: 1px solid #e0efff;
  819. }
  820. .contact-list-item .contact-info {
  821. flex: 1;
  822. display: flex;
  823. flex-direction: column;
  824. }
  825. .contact-list-item .contact-name {
  826. font-size: 14px;
  827. color: #333;
  828. font-weight: 500;
  829. }
  830. .contact-list-item .contact-phone {
  831. font-size: 12px;
  832. color: #666;
  833. margin-top: 2px;
  834. }
  835. .contact-list-item .delete-btn {
  836. width: 28px;
  837. height: 28px;
  838. display: flex;
  839. align-items: center;
  840. justify-content: center;
  841. color: #ef4444;
  842. cursor: pointer;
  843. }
  844. /* 可折叠区块样式 */
  845. .collapsible-section .detail-section-title {
  846. cursor: pointer;
  847. user-select: none;
  848. }
  849. .collapsible-section .detail-section-title .toggle-icon {
  850. transition: transform 0.2s;
  851. margin-left: auto;
  852. }
  853. .collapsible-section.collapsed .detail-section-title .toggle-icon {
  854. transform: rotate(-90deg);
  855. }
  856. .collapsible-section.collapsed .section-content {
  857. display: none;
  858. }
  859. /* 取消任务模态框样式 */
  860. .modal-overlay {
  861. position: fixed;
  862. top: 0;
  863. left: 0;
  864. right: 0;
  865. bottom: 0;
  866. background: rgba(0,0,0,0.5);
  867. z-index: 1000;
  868. display: flex;
  869. align-items: center;
  870. justify-content: center;
  871. padding: 20px;
  872. }
  873. .modal-overlay.hidden {
  874. display: none;
  875. }
  876. .modal-content {
  877. background: white;
  878. border-radius: 16px;
  879. width: 100%;
  880. max-width: 360px;
  881. overflow: hidden;
  882. }
  883. .modal-header {
  884. padding: 16px 20px;
  885. border-bottom: 1px solid #f0f0f0;
  886. font-size: 16px;
  887. font-weight: 600;
  888. color: #333;
  889. text-align: center;
  890. }
  891. .modal-body {
  892. padding: 20px;
  893. }
  894. .modal-footer {
  895. padding: 16px 20px;
  896. border-top: 1px solid #f0f0f0;
  897. display: flex;
  898. gap: 12px;
  899. }
  900. .modal-footer button {
  901. flex: 1;
  902. padding: 12px;
  903. border-radius: 8px;
  904. font-size: 15px;
  905. font-weight: 500;
  906. cursor: pointer;
  907. transition: all 0.2s;
  908. }
  909. .modal-footer .btn-cancel {
  910. background: #f5f5f5;
  911. color: #666;
  912. border: none;
  913. }
  914. .modal-footer .btn-confirm {
  915. background: #ef4444;
  916. color: white;
  917. border: none;
  918. }
  919. /* 添加联系人模态框 */
  920. .add-contact-modal .modal-body {
  921. padding: 16px 20px 20px;
  922. }
  923. .add-contact-modal .form-group {
  924. margin-bottom: 12px;
  925. }
  926. .add-contact-modal .form-group:last-child {
  927. margin-bottom: 0;
  928. }
  929. /* 处理记录样式 */
  930. .record-item {
  931. display: flex;
  932. padding: 12px 0;
  933. border-bottom: 1px solid #f5f5f5;
  934. }
  935. .record-item:last-child {
  936. border-bottom: none;
  937. }
  938. .record-item .record-time {
  939. width: 70px;
  940. flex-shrink: 0;
  941. font-size: 11px;
  942. color: #999;
  943. }
  944. .record-item .record-dot {
  945. width: 8px;
  946. height: 8px;
  947. border-radius: 50%;
  948. background: #d1d5db;
  949. margin: 0 10px;
  950. margin-top: 4px;
  951. flex-shrink: 0;
  952. }
  953. .record-item .record-dot.latest {
  954. background: #3b82f6;
  955. }
  956. .record-item .record-content {
  957. flex: 1;
  958. }
  959. .record-item .record-action {
  960. font-size: 13px;
  961. color: #333;
  962. }
  963. .record-item .record-operator {
  964. font-size: 11px;
  965. color: #999;
  966. margin-top: 2px;
  967. }
  968. /* 调度端额外样式 */
  969. #dispatchApp .home-stats-container {
  970. display: grid;
  971. grid-template-columns: repeat(3, 1fr);
  972. gap: 12px;
  973. }
  974. #dispatchApp .home-stats-container .stat-card {
  975. background: white;
  976. border-radius: 12px;
  977. padding: 16px 12px;
  978. text-align: center;
  979. cursor: pointer;
  980. transition: transform 0.2s;
  981. }
  982. #dispatchApp .home-stats-container .stat-card:active {
  983. transform: scale(0.98);
  984. }
  985. .stat-icon {
  986. width: 40px;
  987. height: 40px;
  988. border-radius: 50%;
  989. display: flex;
  990. align-items: center;
  991. justify-content: center;
  992. margin: 0 auto 8px;
  993. }
  994. .stat-value {
  995. font-size: 24px;
  996. font-weight: bold;
  997. color: #1f2937;
  998. }
  999. .stat-label {
  1000. font-size: 12px;
  1001. color: #6b7280;
  1002. margin-top: 4px;
  1003. }
  1004. #dispatchApp .resource-card {
  1005. background: white;
  1006. border-radius: 12px;
  1007. padding: 16px;
  1008. cursor: pointer;
  1009. transition: transform 0.2s;
  1010. }
  1011. #dispatchApp .resource-card:active {
  1012. transform: scale(0.98);
  1013. }
  1014. #dispatchApp .quick-item {
  1015. background: white;
  1016. border-radius: 12px;
  1017. padding: 16px;
  1018. display: flex;
  1019. align-items: center;
  1020. cursor: pointer;
  1021. }
  1022. #dispatchApp .quick-item:active {
  1023. background: #f9fafb;
  1024. }
  1025. /* ==================== 调度端样式 ==================== */
  1026. * {
  1027. -webkit-tap-highlight-color: transparent;
  1028. box-sizing: border-box;
  1029. }
  1030. body {
  1031. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  1032. background: #f5f5f5;
  1033. min-height: 100vh;
  1034. margin: 0;
  1035. padding: 0;
  1036. }
  1037. .app-container {
  1038. max-width: 430px;
  1039. margin: 0 auto;
  1040. min-height: 100vh;
  1041. background: #f5f5f5;
  1042. position: relative;
  1043. }
  1044. .page {
  1045. display: none;
  1046. min-height: 100vh;
  1047. padding-bottom: 70px;
  1048. }
  1049. .page.active {
  1050. display: block;
  1051. }
  1052. .bottom-nav {
  1053. position: fixed;
  1054. bottom: 0;
  1055. left: 50%;
  1056. transform: translateX(-50%);
  1057. width: 100%;
  1058. max-width: 430px;
  1059. background: white;
  1060. box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  1061. z-index: 100;
  1062. }
  1063. .nav-item.active {
  1064. color: #3b82f6;
  1065. }
  1066. .nav-item.active .nav-icon {
  1067. background: #eff6ff;
  1068. }
  1069. .card {
  1070. background: white;
  1071. border-radius: 12px;
  1072. box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  1073. }
  1074. .role-tab {
  1075. transition: all 0.3s;
  1076. }
  1077. .role-tab.active {
  1078. background: #3b82f6;
  1079. color: white;
  1080. border-color: #3b82f6;
  1081. }
  1082. .login-btn {
  1083. background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  1084. transition: all 0.3s;
  1085. }
  1086. .login-btn:active {
  1087. transform: scale(0.98);
  1088. opacity: 0.9;
  1089. }
  1090. .btn {
  1091. display: inline-flex;
  1092. align-items: center;
  1093. justify-content: center;
  1094. padding: 10px 20px;
  1095. border-radius: 8px;
  1096. font-size: 14px;
  1097. font-weight: 500;
  1098. cursor: pointer;
  1099. transition: all 0.2s;
  1100. }
  1101. .btn:active {
  1102. transform: scale(0.98);
  1103. }
  1104. .btn-primary {
  1105. background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  1106. color: white;
  1107. }
  1108. .btn-outline {
  1109. background: white;
  1110. border: 1px solid #e5e7eb;
  1111. color: #666;
  1112. }
  1113. .btn-success {
  1114. background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  1115. color: white;
  1116. }
  1117. .btn-danger {
  1118. background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  1119. color: white;
  1120. }
  1121. .add-btn {
  1122. background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  1123. color: white;
  1124. text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  1125. }
  1126. .add-btn:active {
  1127. opacity: 0.9;
  1128. }
  1129. #toast {
  1130. position: fixed;
  1131. top: 50%;
  1132. left: 50%;
  1133. transform: translate(-50%, -50%);
  1134. background: rgba(0,0,0,0.8);
  1135. color: white;
  1136. padding: 16px 32px;
  1137. border-radius: 8px;
  1138. z-index: 9999;
  1139. font-size: 14px;
  1140. }
  1141. #toast.hidden {
  1142. display: none;
  1143. }
  1144. .page.hide-nav {
  1145. padding-bottom: 0;
  1146. }
  1147. .page.hide-nav .bottom-nav {
  1148. display: none;
  1149. }
  1150. .tag {
  1151. display: inline-block;
  1152. padding: 2px 8px;
  1153. border-radius: 4px;
  1154. font-size: 12px;
  1155. font-weight: 500;
  1156. }
  1157. .tag-blue {
  1158. background: #e6f0ff;
  1159. color: #2563eb;
  1160. }
  1161. .tag-orange {
  1162. background: #fff7ed;
  1163. color: #ea580c;
  1164. }
  1165. .tag-green {
  1166. background: #e6f7f1;
  1167. color: #059669;
  1168. }
  1169. .tag-red {
  1170. background: #fef2f2;
  1171. color: #dc2626;
  1172. }
  1173. .tag-yellow {
  1174. background: #fef9c3;
  1175. color: #a16207;
  1176. }
  1177. .form-group {
  1178. margin-bottom: 16px;
  1179. }
  1180. .form-label {
  1181. display: block;
  1182. font-size: 14px;
  1183. color: #666;
  1184. margin-bottom: 8px;
  1185. }
  1186. .form-select {
  1187. width: 100%;
  1188. padding: 12px 16px;
  1189. border: 1px solid #e5e7eb;
  1190. border-radius: 8px;
  1191. font-size: 14px;
  1192. color: #333;
  1193. background: #fff;
  1194. appearance: none;
  1195. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  1196. background-repeat: no-repeat;
  1197. background-position: right 16px center;
  1198. }
  1199. .form-select:focus {
  1200. outline: none;
  1201. border-color: #3b82f6;
  1202. }
  1203. .form-textarea {
  1204. width: 100%;
  1205. padding: 12px 16px;
  1206. border: 1px solid #e5e7eb;
  1207. border-radius: 8px;
  1208. font-size: 14px;
  1209. color: #333;
  1210. background: #fff;
  1211. resize: vertical;
  1212. min-height: 80px;
  1213. }
  1214. .form-textarea:focus {
  1215. outline: none;
  1216. border-color: #3b82f6;
  1217. }
  1218. #dispatchApp .calendar-container {
  1219. background: white;
  1220. border-radius: 12px;
  1221. padding: 16px;
  1222. margin: 16px;
  1223. box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  1224. }
  1225. #dispatchApp .calendar-header {
  1226. display: flex;
  1227. align-items: center;
  1228. justify-content: space-between;
  1229. margin-bottom: 16px;
  1230. }
  1231. #dispatchApp .calendar-title {
  1232. font-size: 16px;
  1233. font-weight: 600;
  1234. color: #333;
  1235. }
  1236. #dispatchApp .calendar-nav {
  1237. display: flex;
  1238. gap: 8px;
  1239. }
  1240. #dispatchApp .calendar-nav button {
  1241. width: 32px;
  1242. height: 32px;
  1243. border-radius: 8px;
  1244. border: none;
  1245. background: #f5f5f5;
  1246. color: #666;
  1247. cursor: pointer;
  1248. display: flex;
  1249. align-items: center;
  1250. justify-content: center;
  1251. transition: all 0.2s;
  1252. }
  1253. #dispatchApp .calendar-nav button:active {
  1254. background: #e5e7eb;
  1255. }
  1256. #dispatchApp .calendar-weekdays {
  1257. display: grid;
  1258. grid-template-columns: repeat(7, 1fr);
  1259. gap: 4px;
  1260. margin-bottom: 8px;
  1261. }
  1262. #dispatchApp .calendar-weekday {
  1263. text-align: center;
  1264. font-size: 12px;
  1265. color: #999;
  1266. padding: 8px 0;
  1267. }
  1268. #dispatchApp .calendar-days {
  1269. display: grid;
  1270. grid-template-columns: repeat(7, 1fr);
  1271. gap: 4px;
  1272. }
  1273. #dispatchApp .calendar-day {
  1274. height: 40px;
  1275. min-height: 40px;
  1276. display: flex;
  1277. flex-direction: column;
  1278. align-items: center;
  1279. justify-content: center;
  1280. border-radius: 8px;
  1281. cursor: pointer;
  1282. transition: all 0.2s;
  1283. position: relative;
  1284. font-size: 14px;
  1285. color: #333;
  1286. padding: 4px;
  1287. }
  1288. #dispatchApp .calendar-day:active {
  1289. background: #f0f0f0;
  1290. }
  1291. #dispatchApp .calendar-day.other-month {
  1292. color: #ccc;
  1293. }
  1294. #dispatchApp .calendar-day.today {
  1295. background: #eff6ff;
  1296. color: #3b82f6;
  1297. font-weight: 600;
  1298. }
  1299. #dispatchApp .calendar-day.today .day-number {
  1300. background: #3b82f6;
  1301. color: white;
  1302. border-radius: 50%;
  1303. width: 28px;
  1304. height: 28px;
  1305. display: flex;
  1306. align-items: center;
  1307. justify-content: center;
  1308. }
  1309. #dispatchApp .calendar-day.selected {
  1310. background: #3b82f6;
  1311. color: white;
  1312. }
  1313. #dispatchApp .calendar-day.selected .day-dots {
  1314. display: none;
  1315. }
  1316. .day-dots {
  1317. display: flex;
  1318. gap: 2px;
  1319. justify-content: center;
  1320. height: 6px;
  1321. margin-top: 2px;
  1322. }
  1323. .day-dot {
  1324. width: 6px;
  1325. height: 6px;
  1326. border-radius: 50%;
  1327. flex-shrink: 0;
  1328. }
  1329. .day-dot.monthly {
  1330. background: #3b82f6;
  1331. }
  1332. .day-dot.emergency {
  1333. background: #f97316;
  1334. }
  1335. #dispatchApp .schedule-card {
  1336. background: white;
  1337. border-radius: 12px;
  1338. padding: 16px;
  1339. margin-bottom: 12px;
  1340. box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  1341. display: flex;
  1342. align-items: center;
  1343. gap: 12px;
  1344. }
  1345. #dispatchApp .schedule-card:active {
  1346. transform: scale(0.98);
  1347. }
  1348. .schedule-icon {
  1349. width: 48px;
  1350. height: 48px;
  1351. border-radius: 12px;
  1352. display: flex;
  1353. align-items: center;
  1354. justify-content: center;
  1355. font-size: 20px;
  1356. flex-shrink: 0;
  1357. }
  1358. .schedule-icon.monthly {
  1359. background: #eff6ff;
  1360. color: #3b82f6;
  1361. }
  1362. .schedule-icon.emergency {
  1363. background: #fff7ed;
  1364. color: #f97316;
  1365. }
  1366. .schedule-info {
  1367. flex: 1;
  1368. min-width: 0;
  1369. }
  1370. .schedule-team {
  1371. font-size: 15px;
  1372. font-weight: 600;
  1373. color: #333;
  1374. margin-bottom: 4px;
  1375. }
  1376. .schedule-vehicle {
  1377. font-size: 13px;
  1378. color: #666;
  1379. display: flex;
  1380. align-items: center;
  1381. gap: 6px;
  1382. }
  1383. .schedule-vehicle i {
  1384. color: #999;
  1385. width: 16px;
  1386. }
  1387. .schedule-time {
  1388. font-size: 12px;
  1389. color: #999;
  1390. margin-top: 4px;
  1391. }
  1392. /* 资源卡片可点击 */
  1393. #dispatchApp .resource-card {
  1394. background: white;
  1395. border-radius: 12px;
  1396. padding: 16px;
  1397. flex: 1;
  1398. text-align: center;
  1399. box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  1400. cursor: pointer;
  1401. transition: all 0.2s;
  1402. }
  1403. #dispatchApp .resource-card:active {
  1404. transform: scale(0.98);
  1405. opacity: 0.9;
  1406. }
  1407. #dispatchApp .resource-card:nth-child(1) {
  1408. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  1409. color: white;
  1410. }
  1411. #dispatchApp .resource-card:nth-child(2) {
  1412. background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  1413. color: white;
  1414. }
  1415. #dispatchApp .resource-card:nth-child(3) {
  1416. background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  1417. color: white;
  1418. }
  1419. .resource-icon {
  1420. width: 40px;
  1421. height: 40px;
  1422. background: rgba(255,255,255,0.2);
  1423. border-radius: 10px;
  1424. display: flex;
  1425. align-items: center;
  1426. justify-content: center;
  1427. margin: 0 auto 8px;
  1428. font-size: 18px;
  1429. }
  1430. .resource-value {
  1431. font-size: 24px;
  1432. font-weight: 700;
  1433. }
  1434. .resource-label {
  1435. font-size: 12px;
  1436. opacity: 0.9;
  1437. }
  1438. .modal-overlay {
  1439. position: fixed;
  1440. top: 0;
  1441. left: 0;
  1442. right: 0;
  1443. bottom: 0;
  1444. background: rgba(0,0,0,0.5);
  1445. z-index: 1000;
  1446. display: none;
  1447. align-items: flex-end;
  1448. justify-content: center;
  1449. }
  1450. .modal-overlay.active {
  1451. display: flex;
  1452. }
  1453. .modal-content {
  1454. background: white;
  1455. border-radius: 16px 16px 0 0;
  1456. width: 100%;
  1457. max-width: 430px;
  1458. max-height: 80vh;
  1459. overflow-y: auto;
  1460. animation: slideUp 0.3s ease;
  1461. }
  1462. @keyframes slideUp {
  1463. from {
  1464. transform: translateY(100%);
  1465. }
  1466. to {
  1467. transform: translateY(0);
  1468. }
  1469. }
  1470. .modal-header {
  1471. padding: 16px 20px;
  1472. border-bottom: 1px solid #f0f0f0;
  1473. display: flex;
  1474. align-items: center;
  1475. justify-content: space-between;
  1476. }
  1477. .modal-title {
  1478. font-size: 16px;
  1479. font-weight: 600;
  1480. color: #333;
  1481. }
  1482. .modal-close {
  1483. width: 32px;
  1484. height: 32px;
  1485. border-radius: 50%;
  1486. border: none;
  1487. background: #f5f5f5;
  1488. color: #666;
  1489. cursor: pointer;
  1490. display: flex;
  1491. align-items: center;
  1492. justify-content: center;
  1493. }
  1494. .modal-body {
  1495. padding: 20px;
  1496. }
  1497. .modal-footer {
  1498. padding: 16px 20px;
  1499. border-top: 1px solid #f0f0f0;
  1500. display: flex;
  1501. gap: 12px;
  1502. }
  1503. .modal-footer button {
  1504. flex: 1;
  1505. }
  1506. .type-selector {
  1507. display: flex;
  1508. gap: 12px;
  1509. }
  1510. .type-option {
  1511. flex: 1;
  1512. padding: 12px;
  1513. border: 2px solid #e5e7eb;
  1514. border-radius: 8px;
  1515. text-align: center;
  1516. cursor: pointer;
  1517. transition: all 0.2s;
  1518. }
  1519. .type-option:active {
  1520. transform: scale(0.98);
  1521. }
  1522. .type-option.selected {
  1523. border-color: #3b82f6;
  1524. background: #eff6ff;
  1525. }
  1526. .type-option.selected.emergency {
  1527. border-color: #f97316;
  1528. background: #fff7ed;
  1529. }
  1530. .type-option i {
  1531. font-size: 20px;
  1532. margin-bottom: 4px;
  1533. }
  1534. .type-option.monthly i {
  1535. color: #3b82f6;
  1536. }
  1537. .type-option.emergency i {
  1538. color: #f97316;
  1539. }
  1540. .type-option span {
  1541. display: block;
  1542. font-size: 13px;
  1543. color: #666;
  1544. margin-top: 4px;
  1545. }
  1546. .type-option.selected span {
  1547. color: #333;
  1548. font-weight: 500;
  1549. }
  1550. .empty-state {
  1551. text-align: center;
  1552. padding: 40px 20px;
  1553. }
  1554. .empty-state i {
  1555. font-size: 48px;
  1556. color: #d1d5db;
  1557. margin-bottom: 16px;
  1558. }
  1559. .empty-state p {
  1560. color: #9ca3af;
  1561. font-size: 14px;
  1562. }
  1563. /* 统计卡片样式 */
  1564. #dispatchApp .stat-card {
  1565. background: white;
  1566. border-radius: 12px;
  1567. padding: 16px;
  1568. text-align: center;
  1569. box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  1570. display: flex;
  1571. flex-direction: column;
  1572. align-items: center;
  1573. cursor: pointer;
  1574. transition: all 0.2s;
  1575. }
  1576. #dispatchApp .stat-card:active {
  1577. transform: scale(0.98);
  1578. opacity: 0.9;
  1579. }
  1580. #dispatchApp .stat-card .stat-icon {
  1581. width: 44px;
  1582. height: 44px;
  1583. border-radius: 12px;
  1584. display: flex;
  1585. align-items: center;
  1586. justify-content: center;
  1587. margin-bottom: 8px;
  1588. font-size: 18px;
  1589. }
  1590. #dispatchApp .stat-card .stat-value {
  1591. font-size: 28px;
  1592. font-weight: 700;
  1593. color: #333;
  1594. line-height: 1.2;
  1595. }
  1596. #dispatchApp .stat-card .stat-label {
  1597. font-size: 12px;
  1598. color: #666;
  1599. margin-top: 4px;
  1600. }
  1601. /* 首页统计区域样式 */
  1602. #dispatchApp .home-stats-container {
  1603. display: flex;
  1604. gap: 12px;
  1605. }
  1606. #dispatchApp .home-stats-container .stat-card {
  1607. flex: 1;
  1608. min-width: 0;
  1609. }
  1610. /* 快捷入口样式 */
  1611. #dispatchApp .quick-entry {
  1612. background: white;
  1613. border-radius: 12px;
  1614. padding: 16px;
  1615. display: flex;
  1616. justify-content: space-around;
  1617. box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  1618. }
  1619. #dispatchApp .quick-item {
  1620. display: flex;
  1621. flex-direction: column;
  1622. align-items: center;
  1623. cursor: pointer;
  1624. }
  1625. #dispatchApp .quick-item:active {
  1626. transform: scale(0.95);
  1627. }
  1628. #dispatchApp .quick-item .quick-icon {
  1629. width: 48px;
  1630. height: 48px;
  1631. border-radius: 12px;
  1632. display: flex;
  1633. align-items: center;
  1634. justify-content: center;
  1635. font-size: 20px;
  1636. margin-bottom: 8px;
  1637. }
  1638. #dispatchApp .quick-item .quick-text {
  1639. font-size: 12px;
  1640. color: #666;
  1641. }
  1642. /* 任务卡片样式 */
  1643. #dispatchApp .task-card {
  1644. background: white;
  1645. border-radius: 12px;
  1646. padding: 16px;
  1647. margin-bottom: 12px;
  1648. box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  1649. }
  1650. #dispatchApp .task-card:active {
  1651. transform: scale(0.98);
  1652. }
  1653. #dispatchApp .task-card .task-header {
  1654. display: flex;
  1655. justify-content: space-between;
  1656. align-items: center;
  1657. margin-bottom: 12px;
  1658. }
  1659. #dispatchApp .task-card .task-title {
  1660. font-size: 15px;
  1661. font-weight: 600;
  1662. color: #333;
  1663. }
  1664. #dispatchApp .task-card .task-info {
  1665. font-size: 13px;
  1666. color: #666;
  1667. margin-bottom: 8px;
  1668. }
  1669. #dispatchApp .task-card .task-actions {
  1670. display: flex;
  1671. gap: 8px;
  1672. margin-top: 12px;
  1673. }
  1674. #dispatchApp .task-card .task-actions button {
  1675. flex: 1;
  1676. padding: 8px 12px;
  1677. border-radius: 6px;
  1678. font-size: 13px;
  1679. border: none;
  1680. cursor: pointer;
  1681. }
  1682. /* 待审核徽章 */
  1683. #dispatchApp .pending-badge {
  1684. position: absolute;
  1685. top: -4px;
  1686. right: -4px;
  1687. width: 18px;
  1688. height: 18px;
  1689. background: #ef4444;
  1690. color: white;
  1691. border-radius: 50%;
  1692. font-size: 10px;
  1693. display: flex;
  1694. align-items: center;
  1695. justify-content: center;
  1696. }
  1697. /* 发布任务页样式 */
  1698. #dispatchApp .contact-list-item {
  1699. background: #f9fafb;
  1700. border-radius: 8px;
  1701. padding: 10px;
  1702. margin-bottom: 8px;
  1703. display: flex;
  1704. align-items: center;
  1705. gap: 10px;
  1706. }
  1707. #dispatchApp .contact-list-item .delete-btn {
  1708. width: 24px;
  1709. height: 24px;
  1710. background: #fee2e2;
  1711. border-radius: 50%;
  1712. display: flex;
  1713. align-items: center;
  1714. justify-content: center;
  1715. cursor: pointer;
  1716. color: #ef4444;
  1717. flex-shrink: 0;
  1718. }
  1719. #dispatchApp .contact-list-item .delete-btn:hover {
  1720. background: #fecaca;
  1721. }
  1722. #dispatchApp .add-item-btn {
  1723. width: 100%;
  1724. padding: 10px;
  1725. border: 1px dashed #d1d5db;
  1726. border-radius: 8px;
  1727. background: transparent;
  1728. color: #6b7280;
  1729. font-size: 14px;
  1730. cursor: pointer;
  1731. transition: all 0.2s;
  1732. }
  1733. #dispatchApp .add-item-btn:hover {
  1734. border-color: #3b82f6;
  1735. color: #3b82f6;
  1736. background: #eff6ff;
  1737. }
  1738. #dispatchApp .auto-filled-label {
  1739. font-size: 12px;
  1740. color: #10b981;
  1741. margin-bottom: 4px;
  1742. }
  1743. #dispatchApp .datetime-input {
  1744. display: flex;
  1745. gap: 10px;
  1746. }
  1747. #dispatchApp .datetime-input .form-input {
  1748. flex: 1;
  1749. }
  1750. #dispatchApp .auto-filled {
  1751. background: #ecfdf5 !important;
  1752. border-color: #10b981 !important;
  1753. }
  1754. /* ==================== 施工端样式 ==================== */
  1755. /* 施工流程步骤卡片样式 */
  1756. #constructionApp .step-number {
  1757. flex-shrink: 0;
  1758. }
  1759. #constructionApp .upload-area-mini {
  1760. transition: all 0.2s;
  1761. }
  1762. #constructionApp .upload-area-mini:active {
  1763. border-color: #10b981;
  1764. background: #f0fdf4;
  1765. }
  1766. #constructionApp .nav-item.active {
  1767. color: #3b82f6;
  1768. }
  1769. #constructionApp .nav-item.active .nav-icon {
  1770. background: #eff6ff;
  1771. }
  1772. #constructionApp .role-tab.active {
  1773. background: #3b82f6;
  1774. border-color: #3b82f6;
  1775. }
  1776. #constructionApp .login-btn {
  1777. background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  1778. }
  1779. /* 施工端统计卡片样式 */
  1780. #constructionApp .stat-card {
  1781. background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  1782. }
  1783. #constructionApp .stat-card:nth-child(2) {
  1784. background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  1785. }
  1786. #constructionApp .stat-card:nth-child(3) {
  1787. background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
  1788. }
  1789. /* 施工端任务卡片 */
  1790. #constructionApp .task-card {
  1791. background: white;
  1792. border-radius: 12px;
  1793. padding: 16px;
  1794. margin-bottom: 12px;
  1795. box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  1796. }
  1797. #constructionApp .task-card:active {
  1798. transform: scale(0.98);
  1799. }
  1800. /* 施工端流程进度条 */
  1801. #constructionApp .flow-progress {
  1802. display: flex;
  1803. justify-content: space-between;
  1804. position: relative;
  1805. padding: 0 10px;
  1806. }
  1807. #constructionApp .flow-progress::before {
  1808. content: '';
  1809. position: absolute;
  1810. top: 15px;
  1811. left: 30px;
  1812. right: 30px;
  1813. height: 3px;
  1814. background: #e5e7eb;
  1815. }
  1816. #constructionApp .flow-step {
  1817. display: flex;
  1818. flex-direction: column;
  1819. align-items: center;
  1820. z-index: 1;
  1821. position: relative;
  1822. }
  1823. #constructionApp .flow-step .step-icon {
  1824. width: 30px;
  1825. height: 30px;
  1826. border-radius: 50%;
  1827. background: #e5e7eb;
  1828. display: flex;
  1829. align-items: center;
  1830. justify-content: center;
  1831. margin-bottom: 8px;
  1832. }
  1833. #constructionApp .flow-step.completed .step-icon {
  1834. background: #3b82f6;
  1835. color: white;
  1836. }
  1837. #constructionApp .flow-step.active .step-icon {
  1838. background: #3b82f6;
  1839. color: white;
  1840. box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
  1841. }
  1842. #constructionApp .flow-step .step-label {
  1843. font-size: 10px;
  1844. color: #999;
  1845. text-align: center;
  1846. }
  1847. #constructionApp .flow-step.completed .step-label,
  1848. #constructionApp .flow-step.active .step-label {
  1849. color: #10b981;
  1850. font-weight: 500;
  1851. }
  1852. /* 施工端按钮 */
  1853. #constructionApp .btn-primary {
  1854. background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  1855. color: white;
  1856. }
  1857. #constructionApp .btn-outline {
  1858. background: white;
  1859. border: 1px solid #e5e7eb;
  1860. color: #666;
  1861. }
  1862. #constructionApp .btn-success {
  1863. background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  1864. color: white;
  1865. }
  1866. #constructionApp .btn-danger {
  1867. background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  1868. color: white;
  1869. }
  1870. /* 施工端模态框样式 */
  1871. #constructionApp .modal-overlay {
  1872. position: fixed;
  1873. top: 0;
  1874. left: 0;
  1875. right: 0;
  1876. bottom: 0;
  1877. background: rgba(0,0,0,0.5);
  1878. z-index: 1000;
  1879. display: flex;
  1880. align-items: center;
  1881. justify-content: center;
  1882. padding: 20px;
  1883. }
  1884. #constructionApp .modal-overlay.hidden {
  1885. display: none;
  1886. }
  1887. #constructionApp .modal-content {
  1888. background: white;
  1889. border-radius: 16px;
  1890. width: 100%;
  1891. max-width: 360px;
  1892. overflow: hidden;
  1893. }
  1894. #constructionApp .modal-header {
  1895. padding: 16px 20px;
  1896. border-bottom: 1px solid #f0f0f0;
  1897. font-size: 16px;
  1898. font-weight: 600;
  1899. color: #333;
  1900. display: flex;
  1901. justify-content: space-between;
  1902. align-items: center;
  1903. }
  1904. #constructionApp .modal-body {
  1905. padding: 20px;
  1906. }
  1907. #constructionApp .modal-footer {
  1908. padding: 16px 20px;
  1909. border-top: 1px solid #f0f0f0;
  1910. display: flex;
  1911. gap: 12px;
  1912. }
  1913. #constructionApp .modal-footer button {
  1914. flex: 1;
  1915. padding: 12px;
  1916. border-radius: 8px;
  1917. font-size: 15px;
  1918. font-weight: 500;
  1919. cursor: pointer;
  1920. transition: all 0.2s;
  1921. border: none;
  1922. }
  1923. #constructionApp .modal-close {
  1924. background: none;
  1925. border: none;
  1926. color: #999;
  1927. font-size: 18px;
  1928. cursor: pointer;
  1929. padding: 4px;
  1930. }
  1931. #constructionApp .modal-close:hover {
  1932. color: #666;
  1933. }
  1934. /* 施工端标签 */
  1935. #constructionApp .tag-green {
  1936. background: #ecfdf5;
  1937. color: #10b981;
  1938. }
  1939. #constructionApp .tag-blue {
  1940. background: #eff6ff;
  1941. color: #3b82f6;
  1942. }
  1943. #constructionApp .tag-orange {
  1944. background: #fff7ed;
  1945. color: #ea580c;
  1946. }
  1947. /* 施工端检查项卡片 */
  1948. #constructionApp .check-item {
  1949. background: white;
  1950. border-radius: 12px;
  1951. padding: 16px;
  1952. margin-bottom: 12px;
  1953. box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  1954. }
  1955. #constructionApp .check-item .check-header {
  1956. display: flex;
  1957. justify-content: space-between;
  1958. align-items: center;
  1959. margin-bottom: 12px;
  1960. }
  1961. #constructionApp .check-item .check-title {
  1962. font-size: 15px;
  1963. font-weight: 600;
  1964. color: #333;
  1965. }
  1966. #constructionApp .check-item .check-status {
  1967. font-size: 12px;
  1968. color: #999;
  1969. }
  1970. #constructionApp .check-item .check-status.completed {
  1971. color: #10b981;
  1972. }
  1973. #constructionApp .upload-area {
  1974. border: 2px dashed #e5e7eb;
  1975. border-radius: 8px;
  1976. padding: 20px;
  1977. text-align: center;
  1978. cursor: pointer;
  1979. }
  1980. #constructionApp .upload-area:active {
  1981. border-color: #10b981;
  1982. background: #ecfdf5;
  1983. }
  1984. #constructionApp .upload-area i {
  1985. font-size: 24px;
  1986. color: #d1d5db;
  1987. margin-bottom: 8px;
  1988. }
  1989. #constructionApp .upload-area p {
  1990. font-size: 13px;
  1991. color: #999;
  1992. }
  1993. /* 容器控制 */
  1994. #loginContainer {
  1995. max-width: 430px;
  1996. margin: 0 auto;
  1997. height: 100vh;
  1998. background: #f5f5f5;
  1999. position: relative;
  2000. }
  2001. #loginContainer .page {
  2002. height: 100vh;
  2003. padding-bottom: 0;
  2004. }
  2005. #salesApp, #dispatchApp, #constructionApp {
  2006. display: none;
  2007. }
  2008. /* 施工流程进度条样式 */
  2009. .construction-flow-bar {
  2010. display: flex;
  2011. justify-content: space-between;
  2012. align-items: center;
  2013. padding: 16px 8px;
  2014. background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  2015. border-radius: 12px;
  2016. margin-bottom: 16px;
  2017. position: relative;
  2018. overflow: hidden;
  2019. }
  2020. .construction-flow-bar::before {
  2021. content: '';
  2022. position: absolute;
  2023. top: 0;
  2024. left: 0;
  2025. right: 0;
  2026. bottom: 0;
  2027. background: repeating-linear-gradient(
  2028. 90deg,
  2029. transparent,
  2030. transparent 10px,
  2031. rgba(16, 185, 129, 0.03) 10px,
  2032. rgba(16, 185, 129, 0.03) 20px
  2033. );
  2034. }
  2035. .construction-flow-step {
  2036. display: flex;
  2037. flex-direction: column;
  2038. align-items: center;
  2039. position: relative;
  2040. z-index: 1;
  2041. flex: 1;
  2042. }
  2043. .construction-flow-step .step-dot {
  2044. width: 28px;
  2045. height: 28px;
  2046. border-radius: 50%;
  2047. display: flex;
  2048. align-items: center;
  2049. justify-content: center;
  2050. font-size: 12px;
  2051. margin-bottom: 6px;
  2052. transition: all 0.3s;
  2053. }
  2054. .construction-flow-step .step-dot.pending {
  2055. background: #e5e7eb;
  2056. color: #9ca3af;
  2057. }
  2058. .construction-flow-step .step-dot.completed {
  2059. background: #10b981;
  2060. color: white;
  2061. }
  2062. .construction-flow-step .step-dot.active {
  2063. background: #059669;
  2064. color: white;
  2065. box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  2066. animation: pulse 2s infinite;
  2067. }
  2068. @keyframes pulse {
  2069. 0%, 100% { transform: scale(1); }
  2070. 50% { transform: scale(1.1); }
  2071. }
  2072. .construction-flow-step .step-name {
  2073. font-size: 11px;
  2074. color: #9ca3af;
  2075. text-align: center;
  2076. }
  2077. .construction-flow-step.completed .step-name,
  2078. .construction-flow-step.active .step-name {
  2079. color: #059669;
  2080. font-weight: 500;
  2081. }
  2082. .construction-flow-line {
  2083. position: absolute;
  2084. top: 30px;
  2085. left: 10%;
  2086. right: 10%;
  2087. height: 2px;
  2088. background: #e5e7eb;
  2089. z-index: 0;
  2090. }
  2091. .construction-flow-line-fill {
  2092. position: absolute;
  2093. top: 0;
  2094. left: 0;
  2095. height: 100%;
  2096. background: #10b981;
  2097. transition: width 0.5s ease;
  2098. }
  2099. /* 拍照上传区域样式 */
  2100. .photo-upload-grid {
  2101. display: grid;
  2102. grid-template-columns: repeat(3, 1fr);
  2103. gap: 8px;
  2104. margin-bottom: 12px;
  2105. }
  2106. .photo-upload-item {
  2107. aspect-ratio: 1;
  2108. background: #f9fafb;
  2109. border-radius: 8px;
  2110. border: 2px dashed #d1d5db;
  2111. display: flex;
  2112. flex-direction: column;
  2113. align-items: center;
  2114. justify-content: center;
  2115. cursor: pointer;
  2116. transition: all 0.2s;
  2117. overflow: hidden;
  2118. position: relative;
  2119. }
  2120. .photo-upload-item:active {
  2121. transform: scale(0.95);
  2122. border-color: #10b981;
  2123. }
  2124. .photo-upload-item i {
  2125. font-size: 24px;
  2126. color: #9ca3af;
  2127. margin-bottom: 4px;
  2128. }
  2129. .photo-upload-item span {
  2130. font-size: 11px;
  2131. color: #9ca3af;
  2132. }
  2133. .photo-upload-item.uploaded {
  2134. border-style: solid;
  2135. border-color: #10b981;
  2136. background: #f0fdf4;
  2137. }
  2138. .photo-upload-item.uploaded i {
  2139. color: #10b981;
  2140. }
  2141. .photo-upload-item .delete-photo {
  2142. position: absolute;
  2143. top: 4px;
  2144. right: 4px;
  2145. width: 20px;
  2146. height: 20px;
  2147. background: rgba(0,0,0,0.5);
  2148. border-radius: 50%;
  2149. display: flex;
  2150. align-items: center;
  2151. justify-content: center;
  2152. color: white;
  2153. font-size: 10px;
  2154. }
  2155. /* V13 施工端新增样式 */
  2156. /* 大上传区域 */
  2157. .upload-area-large {
  2158. border: 2px dashed #d1d5db;
  2159. border-radius: 12px;
  2160. padding: 32px 20px;
  2161. text-align: center;
  2162. cursor: pointer;
  2163. transition: all 0.2s;
  2164. background: #fafafa;
  2165. }
  2166. .upload-area-large:active {
  2167. transform: scale(0.98);
  2168. border-color: #10b981;
  2169. background: #f0fdf4;
  2170. }
  2171. /* 操作区域切换 */
  2172. .action-content {
  2173. display: block;
  2174. }
  2175. .action-content.hidden {
  2176. display: none;
  2177. }
  2178. /* 可折叠区块 */
  2179. .detail-section-title {
  2180. padding: 14px 16px;
  2181. background: white;
  2182. cursor: pointer;
  2183. user-select: none;
  2184. }
  2185. .detail-section-title .toggle-icon {
  2186. transition: transform 0.2s;
  2187. }
  2188. .detail-section-title.collapsed .toggle-icon {
  2189. transform: rotate(-90deg);
  2190. }
  2191. .section-content {
  2192. transition: all 0.3s;
  2193. }
  2194. /* 状态标签 */
  2195. .status-tag {
  2196. display: inline-block;
  2197. padding: 3px 10px;
  2198. border-radius: 4px;
  2199. font-size: 12px;
  2200. font-weight: 500;
  2201. }
  2202. .status-scheduling {
  2203. background: #fff7ed;
  2204. color: #ea580c;
  2205. }
  2206. /* 进度条步骤名对齐 */
  2207. .construction-flow-step .step-name {
  2208. font-size: 10px !important;
  2209. white-space: nowrap;
  2210. }
  2211. /* 上传区域样式 */
  2212. #constructionApp .upload-area-normal {
  2213. border: 2px dashed #d1d5db;
  2214. border-radius: 12px;
  2215. padding: 20px;
  2216. text-align: center;
  2217. cursor: pointer;
  2218. transition: all 0.2s;
  2219. }
  2220. #constructionApp .upload-area-normal:active {
  2221. border-color: #10b981;
  2222. background: #f0fdf4;
  2223. }
  2224. /* SOP新增样式 - 标签选择器 */
  2225. .tag-selector {
  2226. display: flex;
  2227. flex-wrap: wrap;
  2228. gap: 8px;
  2229. padding: 8px;
  2230. background: #f9fafb;
  2231. border-radius: 8px;
  2232. }
  2233. .tag-option {
  2234. padding: 6px 12px;
  2235. border: 1px solid #e5e7eb;
  2236. border-radius: 16px;
  2237. font-size: 13px;
  2238. cursor: pointer;
  2239. transition: all 0.2s;
  2240. background: white;
  2241. }
  2242. .tag-option.selected {
  2243. background: #3b82f6;
  2244. color: white;
  2245. border-color: #3b82f6;
  2246. }
  2247. .tag-option:active {
  2248. transform: scale(0.95);
  2249. }
  2250. /* SOP新增样式 - 条件显示 */
  2251. .conditional-show {
  2252. display: none;
  2253. }
  2254. .conditional-show.visible {
  2255. display: block;
  2256. }
  2257. /* SOP新增样式 - 开关 */
  2258. .toggle-switch {
  2259. position: relative;
  2260. width: 44px;
  2261. height: 24px;
  2262. background: #ccc;
  2263. border-radius: 12px;
  2264. cursor: pointer;
  2265. transition: background 0.3s;
  2266. }
  2267. .toggle-switch.active {
  2268. background: #10b981;
  2269. }
  2270. .toggle-switch::after {
  2271. content: '';
  2272. position: absolute;
  2273. width: 20px;
  2274. height: 20px;
  2275. background: white;
  2276. border-radius: 50%;
  2277. top: 2px;
  2278. left: 2px;
  2279. transition: transform 0.3s;
  2280. }
  2281. .toggle-switch.active::after {
  2282. transform: translateX(20px);
  2283. }
  2284. /* SOP新增样式 - 勾选列表 */
  2285. .checklist-item {
  2286. display: flex;
  2287. align-items: center;
  2288. padding: 8px 0;
  2289. border-bottom: 1px solid #f1f5f9;
  2290. }
  2291. .checklist-item:last-child {
  2292. border-bottom: none;
  2293. }
  2294. .checklist-checkbox {
  2295. width: 20px;
  2296. height: 20px;
  2297. border: 2px solid #d1d5db;
  2298. border-radius: 4px;
  2299. margin-right: 10px;
  2300. cursor: pointer;
  2301. display: flex;
  2302. align-items: center;
  2303. justify-content: center;
  2304. transition: all 0.2s;
  2305. }
  2306. .checklist-checkbox.checked {
  2307. background: #10b981;
  2308. border-color: #10b981;
  2309. color: white;
  2310. }
  2311. /* SOP新增样式 - 照片分组 */
  2312. .photo-group {
  2313. margin-bottom: 12px;
  2314. }
  2315. .photo-group-title {
  2316. font-size: 12px;
  2317. color: #64748b;
  2318. margin-bottom: 6px;
  2319. font-weight: 500;
  2320. }
  2321. /* SOP新增样式 - 数据卡片扩展 */
  2322. .detail-extended-row {
  2323. display: flex;
  2324. justify-content: space-between;
  2325. padding: 10px 0;
  2326. border-bottom: 1px solid #f1f5f9;
  2327. }
  2328. .detail-extended-row:last-child {
  2329. border-bottom: none;
  2330. }
  2331. /* SOP新增样式 - 车辆/人员详情扩展 */
  2332. .info-expansion {
  2333. background: #f8fafc;
  2334. border-radius: 8px;
  2335. padding: 12px;
  2336. margin-top: 10px;
  2337. }
  2338. .info-expansion-item {
  2339. display: flex;
  2340. justify-content: space-between;
  2341. padding: 6px 0;
  2342. font-size: 13px;
  2343. }
  2344. .info-expansion-item .label {
  2345. color: #64748b;
  2346. }
  2347. .info-expansion-item .value {
  2348. color: #334155;
  2349. font-weight: 500;
  2350. }
  2351. /* SOP新增样式 - 资质标签 */
  2352. .qualification-tag {
  2353. display: inline-block;
  2354. padding: 2px 8px;
  2355. background: #e0f2fe;
  2356. color: #0369a1;
  2357. border-radius: 4px;
  2358. font-size: 11px;
  2359. margin-right: 4px;
  2360. margin-bottom: 4px;
  2361. }
  2362. </style>
  2363. </head>
  2364. <body>
  2365. <!-- 登录页(独立) -->
  2366. <div id="loginContainer">
  2367. <div id="loginPage" class="page active">
  2368. <div class="min-h-full bg-gradient-to-b from-blue-500 to-blue-600 flex flex-col">
  2369. <!-- Logo区域 -->
  2370. <div class="flex-1 flex flex-col items-center justify-center px-8">
  2371. <div class="w-24 h-24 bg-white rounded-2xl shadow-lg flex items-center justify-center mb-6">
  2372. <i class="fas fa-broom text-blue-500 text-4xl"></i>
  2373. </div>
  2374. <h1 class="text-white text-2xl font-bold mb-2">清道夫系统</h1>
  2375. <p class="text-blue-100 text-sm mb-12">智能清洁管理平台</p>
  2376. <!-- 角色选择 -->
  2377. <div class="w-full bg-white/20 backdrop-blur rounded-xl p-2 mb-8">
  2378. <div class="flex">
  2379. <button class="role-tab active flex-1 py-3 rounded-lg text-sm font-medium border-2 border-transparent" data-role="sales">
  2380. <i class="fas fa-user-tie mr-1"></i>销售
  2381. </button>
  2382. <button class="role-tab flex-1 py-3 rounded-lg text-sm font-medium border-2 border-transparent text-white/80" data-role="dispatch">
  2383. <i class="fas fa-clipboard-list mr-1"></i>调度
  2384. </button>
  2385. <button class="role-tab flex-1 py-3 rounded-lg text-sm font-medium border-2 border-transparent text-white/80" data-role="worker">
  2386. <i class="fas fa-hard-hat mr-1"></i>施工
  2387. </button>
  2388. </div>
  2389. </div>
  2390. <!-- 登录表单 -->
  2391. <div class="w-full space-y-4">
  2392. <div class="bg-white/20 backdrop-blur rounded-xl px-4 py-3 flex items-center">
  2393. <i class="fas fa-user text-white/70 mr-3"></i>
  2394. <input type="text" placeholder="请输入账号" value="sales001" class="bg-transparent text-white placeholder-white/50 outline-none flex-1 text-sm">
  2395. </div>
  2396. <div class="bg-white/20 backdrop-blur rounded-xl px-4 py-3 flex items-center">
  2397. <i class="fas fa-lock text-white/70 mr-3"></i>
  2398. <input type="password" placeholder="请输入密码" value="123456" class="bg-transparent text-white placeholder-white/50 outline-none flex-1 text-sm">
  2399. </div>
  2400. <button id="loginBtn" class="login-btn w-full py-4 rounded-xl text-white font-medium text-lg shadow-lg mt-6">
  2401. 登录
  2402. </button>
  2403. </div>
  2404. </div>
  2405. <!-- 底部信息 -->
  2406. <div class="text-center pb-8">
  2407. <p class="text-white/60 text-xs">v1.0.0 · 清道夫科技</p>
  2408. </div>
  2409. </div>
  2410. </div>
  2411. </div><!-- loginContainer结束 -->
  2412. <!-- 销售端容器 -->
  2413. <div class="app-container" id="salesApp">
  2414. <!-- 销售端页面 -->
  2415. <div id="salesPage" class="page">
  2416. <!-- 顶部区域 -->
  2417. <div class="bg-gradient-to-r from-blue-500 to-blue-600 px-4 pt-8 pb-6">
  2418. <div class="flex items-center justify-between mb-4">
  2419. <div class="flex items-center">
  2420. <div class="w-12 h-12 bg-white rounded-full flex items-center justify-center mr-3">
  2421. <i class="fas fa-user text-blue-500 text-lg"></i>
  2422. </div>
  2423. <div>
  2424. <p class="text-blue-100 text-xs">您好,欢迎回来</p>
  2425. <p class="text-white font-medium">张销售</p>
  2426. </div>
  2427. </div>
  2428. <button class="w-10 h-10 bg-white/20 rounded-full flex items-center justify-center relative" onclick="goToPage('sales_notificationPage')">
  2429. <i class="fas fa-bell text-white"></i>
  2430. <span class="absolute -top-1 -right-1 w-5 h-5 bg-red-500 rounded-full text-white text-xs flex items-center justify-center">3</span>
  2431. </button>
  2432. </div>
  2433. </div>
  2434. <!-- 主内容区域 -->
  2435. <div class="px-4 -mt-4 space-y-4">
  2436. <!-- 快捷入口区块 -->
  2437. <div class="card p-4">
  2438. <div class="grid grid-cols-3 gap-3">
  2439. <!-- 项目库 -->
  2440. <div class="quick-entry-card flex flex-col items-center py-4 px-2 bg-blue-50 rounded-xl cursor-pointer" onclick="goToPage('projectListPage')">
  2441. <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mb-2">
  2442. <i class="fas fa-folder-open text-blue-500"></i>
  2443. </div>
  2444. <span class="text-blue-600 text-xs text-center font-medium">项目库</span>
  2445. </div>
  2446. <!-- 客户管理 -->
  2447. <div class="quick-entry-card disabled flex flex-col items-center py-4 px-2 bg-gray-100 rounded-xl">
  2448. <div class="w-12 h-12 bg-gray-200 rounded-full flex items-center justify-center mb-2">
  2449. <i class="fas fa-users text-gray-400"></i>
  2450. </div>
  2451. <span class="text-gray-400 text-xs text-center">客户管理</span>
  2452. </div>
  2453. <!-- 合同管理 -->
  2454. <div class="quick-entry-card disabled flex flex-col items-center py-4 px-2 bg-gray-100 rounded-xl">
  2455. <div class="w-12 h-12 bg-gray-200 rounded-full flex items-center justify-center mb-2">
  2456. <i class="fas fa-file-contract text-gray-400"></i>
  2457. </div>
  2458. <span class="text-gray-400 text-xs text-center">合同管理</span>
  2459. </div>
  2460. </div>
  2461. </div>
  2462. <!-- 数据统计区块 -->
  2463. <div class="card p-4">
  2464. <div class="flex items-center justify-between mb-4">
  2465. <h2 class="font-bold text-gray-800 flex items-center">
  2466. <i class="fas fa-chart-bar text-blue-500 mr-2"></i>
  2467. 数据统计
  2468. </h2>
  2469. </div>
  2470. <div class="grid grid-cols-3 gap-3">
  2471. <div class="stat-card rounded-xl p-3 text-center text-white cursor-pointer" onclick="goToPage('projectListPage')">
  2472. <p class="text-2xl font-bold">12</p>
  2473. <p class="text-xs opacity-80">本月项目</p>
  2474. </div>
  2475. <div class="stat-card rounded-xl p-3 text-center text-white cursor-pointer" onclick="goToPage('taskPage')">
  2476. <p class="text-2xl font-bold">3</p>
  2477. <p class="text-xs opacity-80">待确认</p>
  2478. </div>
  2479. <div class="stat-card rounded-xl p-3 text-center text-white cursor-pointer" onclick="goToPage('taskPage')">
  2480. <p class="text-2xl font-bold">8</p>
  2481. <p class="text-xs opacity-80">进行中</p>
  2482. </div>
  2483. </div>
  2484. <button class="w-full mt-4 py-3 bg-blue-50 text-blue-600 rounded-xl text-sm font-medium flex items-center justify-center cursor-pointer" onclick="goToPage('sales_taskReminderPage')">
  2485. <i class="fas fa-bell mr-2"></i>
  2486. 任务提醒 (2)
  2487. </button>
  2488. </div>
  2489. <!-- 通知公告区块 - 可点击 -->
  2490. <div class="card p-4">
  2491. <div class="flex items-center justify-between mb-4 cursor-pointer" onclick="goToPage('noticeListPage')">
  2492. <h2 class="font-bold text-gray-800 flex items-center">
  2493. <i class="fas fa-bullhorn text-blue-500 mr-2"></i>
  2494. 通知公告
  2495. </h2>
  2496. <span class="text-gray-400 text-xs">更多 <i class="fas fa-chevron-right"></i></span>
  2497. </div>
  2498. <div class="space-y-3">
  2499. <div class="pb-3 border-b border-gray-100 cursor-pointer" onclick="goToPage('noticeDetailPage')">
  2500. <p class="text-gray-800 text-sm mb-1">关于2024年第一季度销售激励方案的通知</p>
  2501. <p class="text-gray-400 text-xs">2024-01-15</p>
  2502. </div>
  2503. <div class="cursor-pointer" onclick="goToPage('noticeDetailPage')">
  2504. <p class="text-gray-800 text-sm mb-1">春节期间服务安排调整公告</p>
  2505. <p class="text-gray-400 text-xs">2024-01-10</p>
  2506. </div>
  2507. </div>
  2508. </div>
  2509. <!-- 行业知识区块 - 可点击 -->
  2510. <div class="card p-4 mb-4">
  2511. <div class="flex items-center justify-between mb-4 cursor-pointer" onclick="goToPage('knowledgeListPage')">
  2512. <h2 class="font-bold text-gray-800 flex items-center">
  2513. <i class="fas fa-book text-blue-500 mr-2"></i>
  2514. 行业知识
  2515. </h2>
  2516. <span class="text-gray-400 text-xs">更多 <i class="fas fa-chevron-right"></i></span>
  2517. </div>
  2518. <div class="space-y-3">
  2519. <div class="flex items-start cursor-pointer" onclick="goToPage('knowledgeDetailPage')">
  2520. <div class="news-img mr-3 flex-shrink-0">
  2521. <i class="fas fa-chart-pie text-blue-400 text-xl"></i>
  2522. </div>
  2523. <div class="flex-1">
  2524. <p class="text-gray-800 text-sm mb-1">2024年清洁行业市场分析报告</p>
  2525. <p class="text-gray-400 text-xs line-clamp-2">全面解读清洁行业发展趋势、市场规模及竞争格局...</p>
  2526. </div>
  2527. </div>
  2528. <div class="flex items-start cursor-pointer" onclick="goToPage('knowledgeDetailPage')">
  2529. <div class="news-img mr-3 flex-shrink-0">
  2530. <i class="fas fa-lightbulb text-yellow-500 text-xl"></i>
  2531. </div>
  2532. <div class="flex-1">
  2533. <p class="text-gray-800 text-sm mb-1">客户开发技巧与话术指南</p>
  2534. <p class="text-gray-400 text-xs line-clamp-2">提升销售业绩的实战技巧,有效沟通方法汇总...</p>
  2535. </div>
  2536. </div>
  2537. </div>
  2538. </div>
  2539. </div>
  2540. <!-- 底部导航栏 -->
  2541. <div class="bottom-nav">
  2542. <div class="flex justify-around py-2">
  2543. <button class="nav-item active flex flex-col items-center py-1 px-4" onclick="goToPage('salesPage')">
  2544. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all">
  2545. <i class="fas fa-home text-lg"></i>
  2546. </div>
  2547. <span class="text-xs">首页</span>
  2548. </button>
  2549. <button class="nav-item flex flex-col items-center py-1 px-4" onclick="goToPage('taskPage')">
  2550. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all bg-gray-100">
  2551. <i class="fas fa-tasks text-gray-400 text-lg"></i>
  2552. </div>
  2553. <span class="text-xs text-gray-400">任务</span>
  2554. </button>
  2555. <button class="nav-item flex flex-col items-center py-1 px-4" onclick="goToPage('profilePage')">
  2556. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all bg-gray-100">
  2557. <i class="fas fa-user text-gray-400 text-lg"></i>
  2558. </div>
  2559. <span class="text-xs text-gray-400">我的</span>
  2560. </button>
  2561. </div>
  2562. </div>
  2563. </div>
  2564. <!-- 任务页 -->
  2565. <div id="taskPage" class="page">
  2566. <div class="bg-white px-4 pt-8 pb-4 shadow-sm sticky top-0 z-10">
  2567. <div class="flex items-center justify-between">
  2568. <h1 class="text-xl font-bold text-gray-800">我的任务</h1>
  2569. <button class="add-btn px-4 py-2 rounded-lg text-white text-sm flex items-center" onclick="goToPage('publishTaskPage')">
  2570. <i class="fas fa-plus mr-1"></i>
  2571. 发布
  2572. </button>
  2573. </div>
  2574. </div>
  2575. <!-- 筛选标签 -->
  2576. <div class="filter-tabs">
  2577. <button class="filter-tab active" data-status="all" onclick="filterTasks('all')">全部</button>
  2578. <button class="filter-tab" data-status="调度中" onclick="filterTasks('调度中')">调度中</button>
  2579. <button class="filter-tab" data-status="施工中" onclick="filterTasks('施工中')">施工中</button>
  2580. <button class="filter-tab" data-status="已完成" onclick="filterTasks('已完成')">已完成</button>
  2581. <button class="filter-tab" data-status="应急" onclick="filterTasks('应急')">应急</button>
  2582. </div>
  2583. <!-- 任务列表 -->
  2584. <div class="px-4 py-4 space-y-3" id="taskListContainer">
  2585. <!-- 任务卡片1 - 调度中 -->
  2586. <div class="task-card" data-status="调度中" data-id="task001" onclick="goToTaskDetail('task001')">
  2587. <div class="header">
  2588. <div class="flex items-center">
  2589. <span class="status-tag status-scheduling">调度中</span>
  2590. <span class="urgent-tag urgent-normal">普通</span>
  2591. </div>
  2592. <span class="text-gray-400 text-xs">2024-01-20 14:30</span>
  2593. </div>
  2594. <div class="task-name mb-2">积丹白鹭 - 油污管疏通</div>
  2595. <div class="task-info"><i class="fas fa-users"></i>施工班组:班组A</div>
  2596. <div class="task-info"><i class="fas fa-map-marker-alt"></i>位置:积丹白鹭小区地下停车场</div>
  2597. <div class="task-info"><i class="fas fa-clipboard-check"></i>验收:签署验收计量单</div>
  2598. <!-- 底部进度条 -->
  2599. <div class="progress-bar-container">
  2600. <div class="progress-bar-track">
  2601. <div class="progress-bar-fill" style="width: 25%"></div>
  2602. <div class="progress-bar-step completed"></div>
  2603. <div class="progress-bar-step active"></div>
  2604. <div class="progress-bar-step"></div>
  2605. <div class="progress-bar-step"></div>
  2606. </div>
  2607. <div class="progress-bar-labels">
  2608. <span class="active">发布</span>
  2609. <span class="active">调度确认</span>
  2610. <span>施工中</span>
  2611. <span>完成</span>
  2612. </div>
  2613. </div>
  2614. </div>
  2615. <!-- 任务卡片2 - 施工中 -->
  2616. <div class="task-card emergency" data-status="施工中" data-id="task002" onclick="goToTaskDetail('task002')">
  2617. <div class="header">
  2618. <div class="flex items-center">
  2619. <span class="status-tag status-constructing">施工中</span>
  2620. <span class="urgent-tag urgent-high">紧急</span>
  2621. </div>
  2622. <span class="text-gray-400 text-xs">2024-01-20 10:15</span>
  2623. </div>
  2624. <div class="task-name mb-2">富源同坐 - 化粪池清掏</div>
  2625. <div class="task-info"><i class="fas fa-users"></i>施工班组:班组B</div>
  2626. <div class="task-info"><i class="fas fa-map-marker-alt"></i>位置:富源同坐商业广场南门</div>
  2627. <div class="task-info"><i class="fas fa-clipboard-check"></i>验收:累计自动计费</div>
  2628. <!-- 底部进度条 -->
  2629. <div class="progress-bar-container">
  2630. <div class="progress-bar-track">
  2631. <div class="progress-bar-fill" style="width: 58%"></div>
  2632. <div class="progress-bar-step completed"></div>
  2633. <div class="progress-bar-step completed"></div>
  2634. <div class="progress-bar-step active"></div>
  2635. <div class="progress-bar-step"></div>
  2636. </div>
  2637. <div class="progress-bar-labels">
  2638. <span class="active">发布</span>
  2639. <span class="active">调度确认</span>
  2640. <span class="active">施工中</span>
  2641. <span>完成</span>
  2642. </div>
  2643. </div>
  2644. </div>
  2645. <!-- 任务卡片3 - 已完成 -->
  2646. <div class="task-card completed" data-status="已完成" data-id="task003" onclick="goToTaskDetail('task003')">
  2647. <div class="header">
  2648. <div class="flex items-center">
  2649. <span class="status-tag status-completed">已完成</span>
  2650. <span class="urgent-tag urgent-normal">普通</span>
  2651. </div>
  2652. <span class="text-gray-400 text-xs">2024-01-19 16:45</span>
  2653. </div>
  2654. <div class="task-name mb-2">俊发城 - PVC管道维修</div>
  2655. <div class="task-info"><i class="fas fa-users"></i>施工班组:班组C</div>
  2656. <div class="task-info"><i class="fas fa-map-marker-alt"></i>位置:俊发城住宅区3号楼</div>
  2657. <div class="task-info"><i class="fas fa-clipboard-check"></i>验收:签署验收计量单</div>
  2658. <!-- 底部进度条 -->
  2659. <div class="progress-bar-container">
  2660. <div class="progress-bar-track">
  2661. <div class="progress-bar-fill" style="width: 100%"></div>
  2662. <div class="progress-bar-step completed"></div>
  2663. <div class="progress-bar-step completed"></div>
  2664. <div class="progress-bar-step completed"></div>
  2665. <div class="progress-bar-step completed"></div>
  2666. </div>
  2667. <div class="progress-bar-labels">
  2668. <span class="active">发布</span>
  2669. <span class="active">调度确认</span>
  2670. <span class="active">施工中</span>
  2671. <span class="active">完成</span>
  2672. </div>
  2673. </div>
  2674. </div>
  2675. <!-- 任务卡片4 - 应急 -->
  2676. <div class="task-card emergency" data-status="应急" data-id="task004" onclick="goToTaskDetail('task004')">
  2677. <div class="header">
  2678. <div class="flex items-center">
  2679. <span class="status-tag status-emergency">应急</span>
  2680. <span class="urgent-tag urgent-high">紧急</span>
  2681. </div>
  2682. <span class="text-gray-400 text-xs">2024-01-20 08:30</span>
  2683. </div>
  2684. <div class="task-name mb-2">逸安新城A区 - 管道堵塞疏通</div>
  2685. <div class="task-info"><i class="fas fa-users"></i>施工班组:应急班组</div>
  2686. <div class="task-info"><i class="fas fa-map-marker-alt"></i>位置:逸安新城A区地下车库入口</div>
  2687. <div class="task-info"><i class="fas fa-clipboard-check"></i>验收:签署验收计量单</div>
  2688. <!-- 底部进度条 -->
  2689. <div class="progress-bar-container">
  2690. <div class="progress-bar-track">
  2691. <div class="progress-bar-fill" style="width: 58%"></div>
  2692. <div class="progress-bar-step completed"></div>
  2693. <div class="progress-bar-step completed"></div>
  2694. <div class="progress-bar-step active"></div>
  2695. <div class="progress-bar-step"></div>
  2696. </div>
  2697. <div class="progress-bar-labels">
  2698. <span class="active">发布</span>
  2699. <span class="active">调度确认</span>
  2700. <span class="active">施工中</span>
  2701. <span>完成</span>
  2702. </div>
  2703. </div>
  2704. </div>
  2705. <!-- 任务卡片5 - 调度中 -->
  2706. <div class="task-card timeout" data-status="调度中" data-id="task005" onclick="goToTaskDetail('task005')">
  2707. <div class="header">
  2708. <div class="flex items-center">
  2709. <span class="status-tag status-scheduling">调度中</span>
  2710. <span class="urgent-tag urgent-normal">普通</span>
  2711. <span class="urgent-tag urgent-high" style="background: #fef2f2; color: #dc2626;">即将超时</span>
  2712. </div>
  2713. <span class="text-gray-400 text-xs">2024-01-21 09:00</span>
  2714. </div>
  2715. <div class="task-name mb-2">逸安新城B区 - 隔油池清理</div>
  2716. <div class="task-info"><i class="fas fa-users"></i>施工班组:待分配</div>
  2717. <div class="task-info"><i class="fas fa-map-marker-alt"></i>位置:逸安新城B区餐饮一条街</div>
  2718. <div class="task-info"><i class="fas fa-clipboard-check"></i>验收:累计自动计费</div>
  2719. <!-- 底部进度条 -->
  2720. <div class="progress-bar-container">
  2721. <div class="progress-bar-track">
  2722. <div class="progress-bar-fill" style="width: 8%"></div>
  2723. <div class="progress-bar-step completed"></div>
  2724. <div class="progress-bar-step"></div>
  2725. <div class="progress-bar-step"></div>
  2726. <div class="progress-bar-step"></div>
  2727. </div>
  2728. <div class="progress-bar-labels">
  2729. <span class="active">发布</span>
  2730. <span>调度确认</span>
  2731. <span>施工中</span>
  2732. <span>完成</span>
  2733. </div>
  2734. </div>
  2735. </div>
  2736. </div>
  2737. <!-- 空状态 -->
  2738. <div class="empty-state" id="taskEmptyState" style="display: none;">
  2739. <i class="fas fa-clipboard-list"></i>
  2740. <p>暂无符合条件的任务</p>
  2741. </div>
  2742. <div class="bottom-nav">
  2743. <div class="flex justify-around py-2">
  2744. <button class="nav-item flex flex-col items-center py-1 px-4" onclick="goToPage('salesPage')">
  2745. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all bg-gray-100">
  2746. <i class="fas fa-home text-gray-400 text-lg"></i>
  2747. </div>
  2748. <span class="text-xs text-gray-400">首页</span>
  2749. </button>
  2750. <button class="nav-item active flex flex-col items-center py-1 px-4" onclick="goToPage('taskPage')">
  2751. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all">
  2752. <i class="fas fa-tasks text-lg"></i>
  2753. </div>
  2754. <span class="text-xs">任务</span>
  2755. </button>
  2756. <button class="nav-item flex flex-col items-center py-1 px-4" onclick="goToPage('profilePage')">
  2757. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all bg-gray-100">
  2758. <i class="fas fa-user text-gray-400 text-lg"></i>
  2759. </div>
  2760. <span class="text-xs text-gray-400">我的</span>
  2761. </button>
  2762. </div>
  2763. </div>
  2764. </div>
  2765. <!-- 我的页面 -->
  2766. <div id="profilePage" class="page">
  2767. <!-- 顶部用户信息区域 - Kimi风格深蓝色渐变 -->
  2768. <div class="bg-gradient-to-br from-blue-900 to-blue-800 text-white pt-10 pb-6 px-5">
  2769. <div class="flex items-center gap-4">
  2770. <div class="w-14 h-14 bg-white/20 rounded-full flex items-center justify-center text-2xl">
  2771. <i class="fas fa-user"></i>
  2772. </div>
  2773. <div>
  2774. <h2 class="text-lg font-bold">李明</h2>
  2775. <p class="text-blue-200 text-xs">销售部 · 工号 EMP001</p>
  2776. </div>
  2777. </div>
  2778. </div>
  2779. <!-- 功能列表 - 优化间距和内边距 -->
  2780. <div class="px-4 -mt-3 space-y-4 pb-4">
  2781. <!-- 基本信息卡片 -->
  2782. <div class="bg-white rounded-xl p-4 shadow-sm">
  2783. <div class="flex justify-between items-center py-2 border-b border-gray-100 cursor-pointer" onclick="showToast('查看基本信息')">
  2784. <span class="text-gray-500 text-sm"><i class="fas fa-building w-5 text-blue-400"></i>部门</span>
  2785. <span class="text-sm">销售一部</span>
  2786. </div>
  2787. <div class="flex justify-between items-center py-2 border-b border-gray-100">
  2788. <span class="text-gray-500 text-sm"><i class="fas fa-id-badge w-5 text-blue-400"></i>职位</span>
  2789. <span class="text-sm">销售经理</span>
  2790. </div>
  2791. <div class="flex justify-between items-center py-2">
  2792. <span class="text-gray-500 text-sm"><i class="fas fa-phone w-5 text-blue-400"></i>电话</span>
  2793. <span class="text-sm">138****8888</span>
  2794. </div>
  2795. </div>
  2796. <!-- 功能入口卡片 -->
  2797. <div class="bg-white rounded-xl p-4 shadow-sm">
  2798. <div class="flex justify-between items-center py-3 border-b border-gray-100 cursor-pointer" onclick="goToPage('sales_basicInfoPage')">
  2799. <span class="text-sm text-gray-700"><i class="fas fa-user-circle text-gray-400 w-6"></i>基本信息</span>
  2800. <i class="fas fa-chevron-right text-gray-300 text-xs"></i>
  2801. </div>
  2802. <div class="flex justify-between items-center py-3 border-b border-gray-100 cursor-pointer" onclick="goToPage('sales_changePasswordPage')">
  2803. <span class="text-sm text-gray-700"><i class="fas fa-lock text-gray-400 w-6"></i>修改密码</span>
  2804. <i class="fas fa-chevron-right text-gray-300 text-xs"></i>
  2805. </div>
  2806. <div class="flex justify-between items-center py-3 border-b border-gray-100 cursor-pointer" onclick="goToPage('sales_notificationPage')">
  2807. <span class="text-sm text-gray-700"><i class="fas fa-bell text-gray-400 w-6"></i>消息通知</span>
  2808. <div class="flex items-center">
  2809. <span class="w-2 h-2 bg-red-500 rounded-full mr-2"></span>
  2810. <i class="fas fa-chevron-right text-gray-300 text-xs"></i>
  2811. </div>
  2812. </div>
  2813. <div class="flex justify-between items-center py-3 cursor-pointer" onclick="goToPage('sales_helpCenterPage')">
  2814. <span class="text-sm text-gray-700"><i class="fas fa-question-circle text-gray-400 w-6"></i>帮助中心</span>
  2815. <i class="fas fa-chevron-right text-gray-300 text-xs"></i>
  2816. </div>
  2817. </div>
  2818. <!-- 退出登录按钮 -->
  2819. <button class="w-full py-3 mt-4 bg-red-500 text-white rounded-xl font-medium cursor-pointer active:bg-red-600 transition-colors" onclick="backToLogin()">
  2820. 退出登录
  2821. </button>
  2822. </div>
  2823. <!-- 底部导航 -->
  2824. <div class="bottom-nav">
  2825. <div class="flex justify-around py-2">
  2826. <button class="nav-item flex flex-col items-center py-1 px-4" onclick="goToPage('salesPage')">
  2827. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all bg-gray-100">
  2828. <i class="fas fa-home text-gray-400 text-lg"></i>
  2829. </div>
  2830. <span class="text-xs text-gray-400">首页</span>
  2831. </button>
  2832. <button class="nav-item flex flex-col items-center py-1 px-4" onclick="goToPage('taskPage')">
  2833. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all bg-gray-100">
  2834. <i class="fas fa-tasks text-gray-400 text-lg"></i>
  2835. </div>
  2836. <span class="text-xs text-gray-400">任务</span>
  2837. </button>
  2838. <button class="nav-item active flex flex-col items-center py-1 px-4" onclick="goToPage('profilePage')">
  2839. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all">
  2840. <i class="fas fa-user text-lg"></i>
  2841. </div>
  2842. <span class="text-xs">我的</span>
  2843. </button>
  2844. </div>
  2845. </div>
  2846. </div>
  2847. <!-- ========== 基本信息页 ========== -->
  2848. <div id="sales_basicInfoPage" class="page hide-nav">
  2849. <!-- 顶部导航 -->
  2850. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  2851. <div class="flex items-center">
  2852. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('profilePage')">
  2853. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  2854. </button>
  2855. <h1 class="text-lg font-bold text-gray-800">基本信息</h1>
  2856. </div>
  2857. </div>
  2858. <!-- 基本信息内容 -->
  2859. <div class="px-4 py-4">
  2860. <div class="bg-white rounded-xl p-4 shadow-sm">
  2861. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  2862. <span class="text-gray-500 text-sm"><i class="fas fa-user w-5 text-blue-400"></i>姓名</span>
  2863. <span class="text-sm text-gray-800">李明</span>
  2864. </div>
  2865. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  2866. <span class="text-gray-500 text-sm"><i class="fas fa-building w-5 text-blue-400"></i>部门</span>
  2867. <span class="text-sm text-gray-800">销售一部</span>
  2868. </div>
  2869. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  2870. <span class="text-gray-500 text-sm"><i class="fas fa-id-badge w-5 text-blue-400"></i>职位</span>
  2871. <span class="text-sm text-gray-800">销售经理</span>
  2872. </div>
  2873. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  2874. <span class="text-gray-500 text-sm"><i class="fas fa-id-card w-5 text-blue-400"></i>工号</span>
  2875. <span class="text-sm text-gray-800">EMP001</span>
  2876. </div>
  2877. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  2878. <span class="text-gray-500 text-sm"><i class="fas fa-phone w-5 text-blue-400"></i>电话</span>
  2879. <span class="text-sm text-gray-800">138****8888</span>
  2880. </div>
  2881. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  2882. <span class="text-gray-500 text-sm"><i class="fas fa-envelope w-5 text-blue-400"></i>邮箱</span>
  2883. <span class="text-sm text-gray-800">liming@qingdaofu.com</span>
  2884. </div>
  2885. <div class="flex items-center justify-between py-3">
  2886. <span class="text-gray-500 text-sm"><i class="fas fa-calendar w-5 text-blue-400"></i>入职日期</span>
  2887. <span class="text-sm text-gray-800">2021-06-01</span>
  2888. </div>
  2889. </div>
  2890. <div class="mt-4">
  2891. <button class="w-full py-3 bg-blue-500 text-white rounded-xl font-medium" onclick="showToast('编辑功能开发中')">
  2892. <i class="fas fa-edit mr-2"></i>编辑信息
  2893. </button>
  2894. </div>
  2895. </div>
  2896. </div>
  2897. <!-- ========== 修改密码页 ========== -->
  2898. <div id="sales_changePasswordPage" class="page hide-nav">
  2899. <!-- 顶部导航 -->
  2900. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  2901. <div class="flex items-center">
  2902. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('profilePage')">
  2903. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  2904. </button>
  2905. <h1 class="text-lg font-bold text-gray-800">修改密码</h1>
  2906. </div>
  2907. </div>
  2908. <!-- 修改密码表单 -->
  2909. <div class="px-4 py-4">
  2910. <div class="bg-white rounded-xl p-4 shadow-sm">
  2911. <div class="form-group">
  2912. <label class="form-label"><span class="text-red-500">*</span>当前密码</label>
  2913. <input type="password" class="form-input" placeholder="请输入当前密码">
  2914. </div>
  2915. <div class="form-group">
  2916. <label class="form-label"><span class="text-red-500">*</span>新密码</label>
  2917. <input type="password" class="form-input" placeholder="请输入新密码(6-20位)">
  2918. </div>
  2919. <div class="form-group mb-0">
  2920. <label class="form-label"><span class="text-red-500">*</span>确认新密码</label>
  2921. <input type="password" class="form-input" placeholder="请再次输入新密码">
  2922. </div>
  2923. <div class="mt-4">
  2924. <div class="bg-blue-50 rounded-lg p-3 mb-4">
  2925. <p class="text-blue-600 text-sm"><i class="fas fa-info-circle mr-1"></i>密码要求:</p>
  2926. <ul class="text-gray-500 text-xs mt-2 space-y-1">
  2927. <li>• 长度6-20位</li>
  2928. <li>• 必须包含字母和数字</li>
  2929. <li>• 不能与当前密码相同</li>
  2930. </ul>
  2931. </div>
  2932. <button class="w-full py-3 bg-blue-500 text-white rounded-xl font-medium" onclick="showToast('密码修改成功')">
  2933. 确认修改
  2934. </button>
  2935. </div>
  2936. </div>
  2937. </div>
  2938. </div>
  2939. <!-- ========== 消息通知页 ========== -->
  2940. <div id="sales_notificationPage" class="page">
  2941. <!-- 顶部导航 -->
  2942. <div class="bg-white px-4 pt-8 pb-4 shadow-sm">
  2943. <div class="flex items-center justify-between">
  2944. <div class="flex items-center">
  2945. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('salesPage')">
  2946. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  2947. </button>
  2948. <h1 class="text-lg font-bold text-gray-800">消息通知</h1>
  2949. </div>
  2950. <button class="px-3 py-1.5 text-blue-500 text-sm">全部已读</button>
  2951. </div>
  2952. <!-- 筛选标签 -->
  2953. <div class="flex gap-2 mt-4" id="salesNotificationTabs">
  2954. <button class="sales-notification-tab px-4 py-2 bg-blue-500 text-white rounded-full text-sm" onclick="filterSalesNotifications('all', this)">全部</button>
  2955. <button class="sales-notification-tab px-4 py-2 bg-gray-100 text-gray-600 rounded-full text-sm" onclick="filterSalesNotifications('task', this)">任务通知</button>
  2956. <button class="sales-notification-tab px-4 py-2 bg-gray-100 text-gray-600 rounded-full text-sm" onclick="filterSalesNotifications('system', this)">系统消息</button>
  2957. </div>
  2958. </div>
  2959. <!-- 通知列表 -->
  2960. <div class="px-4 py-4 space-y-3" id="salesNotificationList">
  2961. <div class="notification-item bg-white rounded-xl p-4 shadow-sm border-l-4 border-red-400" data-type="task">
  2962. <div class="flex items-center justify-between mb-2">
  2963. <span class="text-sm font-medium text-gray-800">任务分配通知</span>
  2964. <span class="text-xs text-gray-400">刚刚</span>
  2965. </div>
  2966. <p class="text-sm text-gray-600 mb-2">您有一个新的任务待确认:积丹白鹭小区疏通任务</p>
  2967. <p class="text-xs text-gray-400">任务编号:TASK20240120001</p>
  2968. </div>
  2969. <div class="notification-item bg-white rounded-xl p-4 shadow-sm border-l-4 border-blue-400" data-type="task">
  2970. <div class="flex items-center justify-between mb-2">
  2971. <span class="text-sm font-medium text-gray-800">施工进度更新</span>
  2972. <span class="text-xs text-gray-400">10分钟前</span>
  2973. </div>
  2974. <p class="text-sm text-gray-600 mb-2">俊发城住宅区任务已完成施工</p>
  2975. <p class="text-xs text-gray-400">请及时确认验收</p>
  2976. </div>
  2977. <div class="notification-item bg-white rounded-xl p-4 shadow-sm border-l-4 border-green-400" data-type="task">
  2978. <div class="flex items-center justify-between mb-2">
  2979. <span class="text-sm font-medium text-gray-800">任务验收通过</span>
  2980. <span class="text-xs text-gray-400">2小时前</span>
  2981. </div>
  2982. <p class="text-sm text-gray-600 mb-2">富源同坐商业广场任务已验收通过</p>
  2983. <p class="text-xs text-gray-400">客户评价:满意</p>
  2984. </div>
  2985. <div class="notification-item bg-white rounded-xl p-4 shadow-sm border-l-4 border-gray-400" data-type="system">
  2986. <div class="flex items-center justify-between mb-2">
  2987. <span class="text-sm font-medium text-gray-800">系统公告</span>
  2988. <span class="text-xs text-gray-400">1天前</span>
  2989. </div>
  2990. <p class="text-sm text-gray-600 mb-2">关于2024年第一季度销售激励方案的通知</p>
  2991. <p class="text-xs text-gray-400">点击查看详情</p>
  2992. </div>
  2993. </div>
  2994. </div>
  2995. <!-- ========== 帮助中心页 ========== -->
  2996. <div id="sales_helpCenterPage" class="page hide-nav">
  2997. <!-- 顶部导航 -->
  2998. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  2999. <div class="flex items-center">
  3000. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('profilePage')">
  3001. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  3002. </button>
  3003. <h1 class="text-lg font-bold text-gray-800">帮助中心</h1>
  3004. </div>
  3005. </div>
  3006. <!-- 帮助中心内容 -->
  3007. <div class="px-4 py-4">
  3008. <!-- 常见问题 -->
  3009. <div class="bg-white rounded-xl p-4 mb-4 shadow-sm">
  3010. <h3 class="text-base font-semibold text-gray-800 mb-4"><i class="fas fa-question-circle text-blue-500 mr-2"></i>常见问题</h3>
  3011. <div class="space-y-3">
  3012. <div class="border-b border-gray-100 pb-3">
  3013. <div class="flex justify-between items-center cursor-pointer" onclick="this.nextElementSibling.classList.toggle('hidden'); this.querySelector('i').classList.toggle('fa-chevron-up')">
  3014. <span class="text-sm text-gray-700">如何提交新的任务工单?</span>
  3015. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  3016. </div>
  3017. <div class="hidden mt-2 text-gray-500 text-sm">
  3018. 在首页点击右下角的"+"按钮,选择"发布任务",填写项目信息和服务信息后提交即可。
  3019. </div>
  3020. </div>
  3021. <div class="border-b border-gray-100 pb-3">
  3022. <div class="flex justify-between items-center cursor-pointer" onclick="this.nextElementSibling.classList.toggle('hidden'); this.querySelector('i').classList.toggle('fa-chevron-up')">
  3023. <span class="text-sm text-gray-700">如何查看任务进度?</span>
  3024. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  3025. </div>
  3026. <div class="hidden mt-2 text-gray-500 text-sm">
  3027. 进入"任务"页面,点击相应任务卡片即可查看任务详情和当前进度。
  3028. </div>
  3029. </div>
  3030. <div class="border-b border-gray-100 pb-3">
  3031. <div class="flex justify-between items-center cursor-pointer" onclick="this.nextElementSibling.classList.toggle('hidden'); this.querySelector('i').classList.toggle('fa-chevron-up')">
  3032. <span class="text-sm text-gray-700">如何修改个人信息?</span>
  3033. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  3034. </div>
  3035. <div class="hidden mt-2 text-gray-500 text-sm">
  3036. 进入"我的"页面,点击"基本信息"即可查看和修改个人信息。
  3037. </div>
  3038. </div>
  3039. <div>
  3040. <div class="flex justify-between items-center cursor-pointer" onclick="this.nextElementSibling.classList.toggle('hidden'); this.querySelector('i').classList.toggle('fa-chevron-up')">
  3041. <span class="text-sm text-gray-700">如何联系客服?</span>
  3042. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  3043. </div>
  3044. <div class="hidden mt-2 text-gray-500 text-sm">
  3045. 可以在"我的"页面点击"联系客服",或拨打客服热线:400-888-8888。
  3046. </div>
  3047. </div>
  3048. </div>
  3049. </div>
  3050. <!-- 联系客服 -->
  3051. <div class="bg-white rounded-xl p-4 shadow-sm">
  3052. <h3 class="text-base font-semibold text-gray-800 mb-4"><i class="fas fa-headset text-green-500 mr-2"></i>联系客服</h3>
  3053. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  3054. <div class="flex items-center">
  3055. <i class="fas fa-phone text-blue-500 mr-3"></i>
  3056. <span class="text-sm text-gray-700">客服热线</span>
  3057. </div>
  3058. <span class="text-blue-500 text-sm">400-888-8888</span>
  3059. </div>
  3060. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  3061. <div class="flex items-center">
  3062. <i class="fas fa-envelope text-blue-500 mr-3"></i>
  3063. <span class="text-sm text-gray-700">电子邮箱</span>
  3064. </div>
  3065. <span class="text-gray-600 text-sm">service@qingdaofu.com</span>
  3066. </div>
  3067. <div class="flex items-center justify-between py-3">
  3068. <div class="flex items-center">
  3069. <i class="fas fa-clock text-blue-500 mr-3"></i>
  3070. <span class="text-sm text-gray-700">服务时间</span>
  3071. </div>
  3072. <span class="text-gray-600 text-sm">周一至周五 9:00-18:00</span>
  3073. </div>
  3074. </div>
  3075. </div>
  3076. </div>
  3077. <!-- ========== 任务提醒页 ========== -->
  3078. <div id="sales_taskReminderPage" class="page hide-nav">
  3079. <!-- 顶部导航 -->
  3080. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  3081. <div class="flex items-center">
  3082. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('salesPage')">
  3083. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  3084. </button>
  3085. <h1 class="text-lg font-bold text-gray-800">任务提醒</h1>
  3086. </div>
  3087. </div>
  3088. <!-- 提醒列表 -->
  3089. <div class="px-4 py-4 space-y-3">
  3090. <div class="bg-white rounded-xl p-4 shadow-sm border-l-4 border-orange-400">
  3091. <div class="flex items-center justify-between mb-2">
  3092. <span class="text-sm font-medium text-gray-800">待确认任务</span>
  3093. <span class="text-xs text-gray-400">2小时前</span>
  3094. </div>
  3095. <p class="text-sm text-gray-600">积丹白鹭小区疏通任务等待您的确认</p>
  3096. <button class="mt-3 px-4 py-2 bg-orange-50 text-orange-600 rounded-lg text-sm" onclick="goToPage('taskPage')">
  3097. 立即处理
  3098. </button>
  3099. </div>
  3100. <div class="bg-white rounded-xl p-4 shadow-sm border-l-4 border-blue-400">
  3101. <div class="flex items-center justify-between mb-2">
  3102. <span class="text-sm font-medium text-gray-800">施工进度更新</span>
  3103. <span class="text-xs text-gray-400">5小时前</span>
  3104. </div>
  3105. <p class="text-sm text-gray-600">俊发城住宅区任务已完成施工</p>
  3106. <button class="mt-3 px-4 py-2 bg-blue-50 text-blue-600 rounded-lg text-sm" onclick="goToPage('taskPage')">
  3107. 查看详情
  3108. </button>
  3109. </div>
  3110. </div>
  3111. </div>
  3112. <!-- 项目库列表页 - 二级页面,隐藏底部导航 -->
  3113. <div id="projectListPage" class="page hide-nav">
  3114. <!-- 顶部导航 -->
  3115. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  3116. <div class="flex items-center justify-between">
  3117. <div class="flex items-center">
  3118. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('salesPage')">
  3119. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  3120. </button>
  3121. <h1 class="text-lg font-bold text-gray-800">项目库</h1>
  3122. </div>
  3123. <button class="add-btn px-4 py-2 rounded-lg text-white text-sm flex items-center" onclick="goToPage('addProjectPage')">
  3124. <i class="fas fa-plus mr-1"></i>
  3125. 新增
  3126. </button>
  3127. </div>
  3128. </div>
  3129. <!-- 筛选标签 -->
  3130. <div class="filter-tabs">
  3131. <button class="filter-tab active" data-type="all" onclick="filterProjects('all')">全部</button>
  3132. <button class="filter-tab" data-type="包年" onclick="filterProjects('包年')">包年</button>
  3133. <button class="filter-tab" data-type="单次" onclick="filterProjects('单次')">单次</button>
  3134. <button class="filter-tab" data-type="季度" onclick="filterProjects('季度')">季度</button>
  3135. <button class="filter-tab" data-type="月付" onclick="filterProjects('月付')">月付</button>
  3136. </div>
  3137. <!-- 项目列表内容 -->
  3138. <div class="px-4 py-4 space-y-3" id="projectListContainer">
  3139. <!-- 项目卡片1 - 积丹白鹭 -->
  3140. <div class="project-card card p-4 cursor-pointer" data-type="包年" onclick="goToPage('projectDetailPage')">
  3141. <div class="flex justify-between items-start mb-3">
  3142. <h3 class="font-medium text-gray-800">积丹白鹭</h3>
  3143. <span class="bg-blue-100 text-blue-600 text-xs px-2 py-0.5 rounded">包年</span>
  3144. </div>
  3145. <div class="space-y-2 text-sm text-gray-500">
  3146. <p><i class="fas fa-tools w-5 text-gray-400"></i> 油污管、化粪池</p>
  3147. <p><i class="fas fa-map-marker-alt w-5 text-gray-400"></i> 积丹白鹭小区</p>
  3148. <p><i class="fas fa-map-pin w-5 text-gray-400"></i> 服务点数:<span class="text-blue-500 font-medium">3个</span></p>
  3149. <p><i class="fas fa-user w-5 text-gray-400"></i> 陈物业 · 138****8888</p>
  3150. </div>
  3151. </div>
  3152. <!-- 项目卡片2 - 富源同坐 -->
  3153. <div class="project-card card p-4 cursor-pointer" data-type="单次" onclick="goToPage('projectDetailPage')">
  3154. <div class="flex justify-between items-start mb-3">
  3155. <h3 class="font-medium text-gray-800">富源同坐</h3>
  3156. <span class="bg-green-100 text-green-600 text-xs px-2 py-0.5 rounded">单次</span>
  3157. </div>
  3158. <div class="space-y-2 text-sm text-gray-500">
  3159. <p><i class="fas fa-tools w-5 text-gray-400"></i> PVC管道</p>
  3160. <p><i class="fas fa-map-marker-alt w-5 text-gray-400"></i> 富源同坐商业广场</p>
  3161. <p><i class="fas fa-map-pin w-5 text-gray-400"></i> 服务点数:<span class="text-blue-500 font-medium">2个</span></p>
  3162. <p><i class="fas fa-user w-5 text-gray-400"></i> 王主管 · 139****6666</p>
  3163. </div>
  3164. </div>
  3165. <!-- 项目卡片3 - 俊发城 -->
  3166. <div class="project-card card p-4 cursor-pointer" data-type="季度" onclick="goToPage('projectDetailPage')">
  3167. <div class="flex justify-between items-start mb-3">
  3168. <h3 class="font-medium text-gray-800">俊发城</h3>
  3169. <span class="bg-purple-100 text-purple-600 text-xs px-2 py-0.5 rounded">季度</span>
  3170. </div>
  3171. <div class="space-y-2 text-sm text-gray-500">
  3172. <p><i class="fas fa-tools w-5 text-gray-400"></i> 化粪池、直抽直排</p>
  3173. <p><i class="fas fa-map-marker-alt w-5 text-gray-400"></i> 俊发城住宅区</p>
  3174. <p><i class="fas fa-map-pin w-5 text-gray-400"></i> 服务点数:<span class="text-blue-500 font-medium">4个</span></p>
  3175. <p><i class="fas fa-user w-5 text-gray-400"></i> 张经理 · 158****2222</p>
  3176. </div>
  3177. </div>
  3178. <!-- 项目卡片4 - 逸安新城A区 -->
  3179. <div class="project-card card p-4 cursor-pointer" data-type="包年" onclick="goToPage('projectDetailPage')">
  3180. <div class="flex justify-between items-start mb-3">
  3181. <h3 class="font-medium text-gray-800">逸安新城A区</h3>
  3182. <span class="bg-blue-100 text-blue-600 text-xs px-2 py-0.5 rounded">包年</span>
  3183. </div>
  3184. <div class="space-y-2 text-sm text-gray-500">
  3185. <p><i class="fas fa-tools w-5 text-gray-400"></i> 油污管</p>
  3186. <p><i class="fas fa-map-marker-alt w-5 text-gray-400"></i> 逸安新城A区</p>
  3187. <p><i class="fas fa-map-pin w-5 text-gray-400"></i> 服务点数:<span class="text-blue-500 font-medium">2个</span></p>
  3188. <p><i class="fas fa-user w-5 text-gray-400"></i> 李总 · 136****5555</p>
  3189. </div>
  3190. </div>
  3191. <!-- 项目卡片5 - 逸安新城B区 -->
  3192. <div class="project-card card p-4 cursor-pointer" data-type="月付" onclick="goToPage('projectDetailPage')">
  3193. <div class="flex justify-between items-start mb-3">
  3194. <h3 class="font-medium text-gray-800">逸安新城B区</h3>
  3195. <span class="bg-orange-100 text-orange-600 text-xs px-2 py-0.5 rounded">月付</span>
  3196. </div>
  3197. <div class="space-y-2 text-sm text-gray-500">
  3198. <p><i class="fas fa-tools w-5 text-gray-400"></i> PVC、化粪池</p>
  3199. <p><i class="fas fa-map-marker-alt w-5 text-gray-400"></i> 逸安新城B区</p>
  3200. <p><i class="fas fa-map-pin w-5 text-gray-400"></i> 服务点数:<span class="text-blue-500 font-medium">5个</span></p>
  3201. <p><i class="fas fa-user w-5 text-gray-400"></i> 赵师傅 · 158****3333</p>
  3202. </div>
  3203. </div>
  3204. <!-- 空状态 -->
  3205. <div class="empty-state" id="emptyState" style="display: none;">
  3206. <i class="fas fa-inbox"></i>
  3207. <p>暂无符合条件的项目</p>
  3208. </div>
  3209. </div>
  3210. </div>
  3211. <!-- 新增项目页 - 二级页面,隐藏底部导航 -->
  3212. <div id="addProjectPage" class="page hide-nav">
  3213. <!-- 顶部导航 -->
  3214. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  3215. <div class="flex items-center justify-between">
  3216. <div class="flex items-center">
  3217. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('projectListPage')">
  3218. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  3219. </button>
  3220. <h1 class="text-lg font-bold text-gray-800">新增项目</h1>
  3221. </div>
  3222. </div>
  3223. </div>
  3224. <!-- 表单内容 -->
  3225. <div class="px-4 py-4">
  3226. <div class="card p-4">
  3227. <!-- 项目名称 -->
  3228. <div class="form-group">
  3229. <label class="form-label"><span class="text-red-500">*</span>项目名称</label>
  3230. <input type="text" id="projectName" class="form-input" placeholder="请输入项目名称">
  3231. </div>
  3232. <!-- 合作类型 -->
  3233. <div class="form-group">
  3234. <label class="form-label"><span class="text-red-500">*</span>合作类型</label>
  3235. <select id="cooperationType" class="form-select">
  3236. <option value="">请选择合作类型</option>
  3237. <option value="包年">包年</option>
  3238. <option value="单次">单次</option>
  3239. <option value="季度">季度</option>
  3240. <option value="月付">月付</option>
  3241. </select>
  3242. </div>
  3243. <!-- 设施类型 -->
  3244. <div class="form-group">
  3245. <label class="form-label"><span class="text-red-500">*</span>设施类型</label>
  3246. <select id="facilityType" class="form-select">
  3247. <option value="">请选择设施类型</option>
  3248. <option value="油污管">油污管</option>
  3249. <option value="PVC">PVC</option>
  3250. <option value="化粪池">化粪池</option>
  3251. <option value="直抽直排">直抽直排</option>
  3252. <option value="油污管+化粪池">油污管+化粪池</option>
  3253. <option value="PVC+化粪池">PVC+化粪池</option>
  3254. </select>
  3255. </div>
  3256. <!-- 省/市/区 -->
  3257. <div class="form-group">
  3258. <label class="form-label"><span class="text-red-500">*</span>项目地址</label>
  3259. <div class="flex gap-2">
  3260. <select id="province" class="form-select" style="flex:1" onchange="onProvinceChange()">
  3261. <option value="">省</option>
  3262. <option value="云南省">云南省</option>
  3263. <option value="贵州省">贵州省</option>
  3264. <option value="四川省">四川省</option>
  3265. </select>
  3266. <select id="city" class="form-select" style="flex:1" onchange="onCityChange()">
  3267. <option value="">市</option>
  3268. <option value="昆明市">昆明市</option>
  3269. <option value="贵阳市">贵阳市</option>
  3270. <option value="成都市">成都市</option>
  3271. </select>
  3272. <select id="district" class="form-select" style="flex:1">
  3273. <option value="">区</option>
  3274. <option value="五华区">五华区</option>
  3275. <option value="盘龙区">盘龙区</option>
  3276. <option value="官渡区">官渡区</option>
  3277. <option value="西山区">西山区</option>
  3278. </select>
  3279. </div>
  3280. </div>
  3281. <!-- 街道/路名 -->
  3282. <div class="form-group">
  3283. <label class="form-label">街道/路名</label>
  3284. <input type="text" id="streetRoad" class="form-input" placeholder="请输入街道或路名">
  3285. </div>
  3286. <!-- 详细地址 -->
  3287. <div class="form-group">
  3288. <label class="form-label">详细地址</label>
  3289. <input type="text" id="projectAddress" class="form-input" placeholder="请输入详细地址">
  3290. </div>
  3291. <!-- 地图定位 -->
  3292. <div class="form-group">
  3293. <label class="form-label">地图定位</label>
  3294. <div class="bg-gray-100 rounded-xl h-24 flex items-center justify-center border border-gray-200">
  3295. <div class="text-center">
  3296. <i class="fas fa-map-marked-alt text-gray-400 text-2xl mb-1"></i>
  3297. <p class="text-gray-400 text-xs">点击设置定位</p>
  3298. </div>
  3299. </div>
  3300. </div>
  3301. <!-- 主联系人 -->
  3302. <div class="form-group">
  3303. <label class="form-label"><i class="fas fa-user text-blue-500 mr-1"></i>主联系人</label>
  3304. <div class="bg-blue-50 rounded-lg p-3">
  3305. <div class="flex gap-2 mb-2">
  3306. <input type="text" id="primaryContactName" class="form-input" placeholder="姓名" style="flex:1">
  3307. <input type="text" id="primaryContactPosition" class="form-input" placeholder="职务" style="flex:1">
  3308. </div>
  3309. <div class="flex gap-2 mb-2">
  3310. <input type="tel" id="primaryContactPhone" class="form-input" placeholder="手机号" style="flex:1">
  3311. <div class="flex items-center gap-2" style="flex:1">
  3312. <span class="text-sm text-gray-500">已验证</span>
  3313. <div id="primaryContactVerified" class="toggle-switch" onclick="toggleSwitch(this)"></div>
  3314. </div>
  3315. </div>
  3316. </div>
  3317. </div>
  3318. <!-- 备用联系人 -->
  3319. <div class="form-group">
  3320. <label class="form-label"><i class="fas fa-user-alt text-gray-400 mr-1"></i>备用联系人</label>
  3321. <div class="bg-gray-50 rounded-lg p-3">
  3322. <div class="flex gap-2 mb-2">
  3323. <input type="text" id="backupContactName" class="form-input" placeholder="姓名" style="flex:1">
  3324. <input type="text" id="backupContactPosition" class="form-input" placeholder="职务" style="flex:1">
  3325. </div>
  3326. <div class="flex gap-2">
  3327. <input type="tel" id="backupContactPhone" class="form-input" placeholder="手机号" style="flex:1">
  3328. <div class="flex items-center gap-2" style="flex:1">
  3329. <span class="text-sm text-gray-500">已验证</span>
  3330. <div id="backupContactVerified" class="toggle-switch" onclick="toggleSwitch(this)"></div>
  3331. </div>
  3332. </div>
  3333. </div>
  3334. </div>
  3335. <!-- 特殊联系要求 -->
  3336. <div class="form-group">
  3337. <label class="form-label">特殊联系要求</label>
  3338. <textarea id="specialContactReq" class="form-textarea" placeholder="如:仅工作时间联系、需提前预约等..."></textarea>
  3339. </div>
  3340. <!-- 所属行业 -->
  3341. <div class="form-group">
  3342. <label class="form-label">所属行业</label>
  3343. <select id="industryType" class="form-select">
  3344. <option value="">请选择所属行业</option>
  3345. <option value="住宅">住宅</option>
  3346. <option value="商业">商业</option>
  3347. <option value="工业">工业</option>
  3348. <option value="市政">市政</option>
  3349. <option value="医疗">医疗</option>
  3350. <option value="教育">教育</option>
  3351. <option value="餐饮">餐饮</option>
  3352. </select>
  3353. </div>
  3354. <!-- 项目入住率 -->
  3355. <div class="form-group">
  3356. <label class="form-label">项目入住率</label>
  3357. <div class="flex items-center gap-2">
  3358. <input type="number" id="occupancyRate" class="form-input" placeholder="请输入" min="0" max="100">
  3359. <span class="text-gray-500">%</span>
  3360. </div>
  3361. </div>
  3362. <!-- 建筑面积 -->
  3363. <div class="form-group">
  3364. <label class="form-label">建筑面积</label>
  3365. <div class="flex items-center gap-2">
  3366. <input type="number" id="buildingArea" class="form-input" placeholder="请输入" min="0">
  3367. <span class="text-gray-500">㎡</span>
  3368. </div>
  3369. </div>
  3370. <!-- 合同有效期 -->
  3371. <div class="form-group">
  3372. <label class="form-label">合同有效期</label>
  3373. <div class="datetime-input">
  3374. <input type="date" id="contractStartDate" class="form-input">
  3375. <span class="text-gray-400 px-2">至</span>
  3376. <input type="date" id="contractEndDate" class="form-input">
  3377. </div>
  3378. </div>
  3379. <!-- 项目情况介绍 -->
  3380. <div class="form-group">
  3381. <label class="form-label">项目情况介绍</label>
  3382. <textarea id="projectDesc" class="form-textarea" placeholder="请详细描述项目情况,包括服务范围、特殊要求等..."></textarea>
  3383. </div>
  3384. <!-- 合同总金额 -->
  3385. <div class="form-group">
  3386. <label class="form-label">合同总金额(元)</label>
  3387. <input type="number" id="totalAmount" class="form-input" placeholder="请输入合同总金额">
  3388. </div>
  3389. <!-- 服务点列表 -->
  3390. <div class="form-group">
  3391. <label class="form-label">服务点列表</label>
  3392. <div id="pointsContainer">
  3393. <div class="point-item">
  3394. <div class="flex items-center justify-between mb-2">
  3395. <span class="text-gray-600 text-xs font-medium">服务点 1</span>
  3396. <i class="fas fa-trash-alt text-red-400 ml-2 cursor-pointer" onclick="this.parentElement.parentElement.remove()"></i>
  3397. </div>
  3398. <input type="text" class="form-input point-name mb-2" placeholder="服务点名称(如:1号化粪池)">
  3399. <input type="text" class="form-input point-location mb-2" placeholder="位置(如:南门地下车库)">
  3400. <input type="text" class="form-input point-service" placeholder="对应服务项(如:清掏)">
  3401. </div>
  3402. </div>
  3403. <button type="button" class="add-item-btn mt-2" onclick="addPoint()">
  3404. <i class="fas fa-plus"></i> 添加服务点
  3405. </button>
  3406. </div>
  3407. <button class="w-full py-3 bg-blue-500 text-white rounded-xl font-medium mt-4" onclick="submitProject()">
  3408. 提交项目
  3409. </button>
  3410. </div>
  3411. </div>
  3412. </div>
  3413. <!-- 项目详情页 - 二级页面,隐藏底部导航 -->
  3414. <div id="projectDetailPage" class="page hide-nav">
  3415. <!-- 顶部导航 -->
  3416. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  3417. <div class="flex items-center justify-between">
  3418. <div class="flex items-center">
  3419. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('projectListPage')">
  3420. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  3421. </button>
  3422. <h1 class="text-lg font-bold text-gray-800">项目详情</h1>
  3423. </div>
  3424. <button class="text-blue-500 text-sm">
  3425. <i class="fas fa-ellipsis-h"></i>
  3426. </button>
  3427. </div>
  3428. </div>
  3429. <!-- 详情内容 -->
  3430. <div class="px-4 py-4 space-y-3">
  3431. <!-- 基本信息区块 -->
  3432. <div class="detail-section">
  3433. <div class="detail-section-title">
  3434. <i class="fas fa-info-circle text-blue-500"></i>
  3435. 基本信息
  3436. </div>
  3437. <div class="detail-row">
  3438. <span class="detail-label">项目名称</span>
  3439. <span class="detail-value font-medium" id="detailProjectName">积丹白鹭</span>
  3440. </div>
  3441. <div class="detail-row">
  3442. <span class="detail-label">合作类型</span>
  3443. <span class="detail-value" id="detailCoopType"><span class="tag tag-blue">包年</span></span>
  3444. </div>
  3445. <div class="detail-row">
  3446. <span class="detail-label">设施类型</span>
  3447. <span class="detail-value" id="detailFacilityType">油污管、化粪池</span>
  3448. </div>
  3449. <div class="detail-row">
  3450. <span class="detail-label">项目地址</span>
  3451. <span class="detail-value" id="detailAddress">积丹白鹭小区</span>
  3452. </div>
  3453. <div class="detail-row">
  3454. <span class="detail-label">累计服务</span>
  3455. <span class="detail-value"><span class="text-blue-500 font-bold">24</span> 次</span>
  3456. </div>
  3457. </div>
  3458. <!-- 地图定位区块 -->
  3459. <div class="detail-section">
  3460. <div class="detail-section-title">
  3461. <i class="fas fa-map-marked-alt text-green-500"></i>
  3462. 位置定位
  3463. </div>
  3464. <div class="mx-4 mb-4">
  3465. <div class="bg-gray-100 rounded-xl h-36 flex items-center justify-center">
  3466. <div class="text-center">
  3467. <i class="fas fa-map text-gray-400 text-3xl mb-2"></i>
  3468. <p class="text-gray-400 text-sm">地图定位区域</p>
  3469. <p class="text-gray-300 text-xs">39.9088° N, 116.3974° E</p>
  3470. </div>
  3471. </div>
  3472. </div>
  3473. </div>
  3474. <!-- 项目介绍区块 -->
  3475. <div class="detail-section">
  3476. <div class="detail-section-title">
  3477. <i class="fas fa-file-alt text-purple-500"></i>
  3478. 项目情况介绍
  3479. </div>
  3480. <div class="px-4 py-3">
  3481. <p class="text-gray-600 text-sm leading-relaxed" id="detailDesc">
  3482. 本项目为积丹白鹭小区提供全年日常清洁服务,主要包括:<br>
  3483. 1. 每月对小区内所有油污管道进行专业疏通清洁<br>
  3484. 2. 每季度对化粪池进行清理维护<br>
  3485. 3. 24小时应急响应服务<br>
  3486. 4. 定期出具服务报告
  3487. </p>
  3488. </div>
  3489. </div>
  3490. <!-- 位置联系人区块 -->
  3491. <div class="detail-section">
  3492. <div class="detail-section-title">
  3493. <i class="fas fa-address-book text-orange-500"></i>
  3494. 位置联系人
  3495. </div>
  3496. <div class="px-4 py-2" id="detailContacts">
  3497. <div class="contact-item">
  3498. <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3">
  3499. <i class="fas fa-user text-blue-500"></i>
  3500. </div>
  3501. <div class="flex-1">
  3502. <p class="text-gray-800 font-medium">陈物业</p>
  3503. <p class="text-gray-400 text-sm">138****8888</p>
  3504. </div>
  3505. <button class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center">
  3506. <i class="fas fa-phone text-green-500"></i>
  3507. </button>
  3508. </div>
  3509. </div>
  3510. </div>
  3511. <!-- 费用信息区块 -->
  3512. <div class="detail-section">
  3513. <div class="detail-section-title">
  3514. <i class="fas fa-coins text-yellow-500"></i>
  3515. 费用信息
  3516. </div>
  3517. <div class="detail-row">
  3518. <span class="detail-label">合同总金额</span>
  3519. <span class="detail-value text-xl font-bold text-orange-500" id="detailTotalAmount">¥ 128,000.00</span>
  3520. </div>
  3521. <div class="detail-row">
  3522. <span class="detail-label">付款方式</span>
  3523. <span class="detail-value" id="detailPayType">年付</span>
  3524. </div>
  3525. <div class="detail-row">
  3526. <span class="detail-label">合同状态</span>
  3527. <span class="detail-value"><span class="tag tag-green">进行中</span></span>
  3528. </div>
  3529. </div>
  3530. <!-- 服务点与服务项合并展示区块 -->
  3531. <div class="detail-section">
  3532. <div class="detail-section-title">
  3533. <i class="fas fa-map-marker-alt text-red-500"></i>
  3534. 服务点与对应服务项
  3535. </div>
  3536. <div class="pb-3" id="detailPoints">
  3537. <div class="service-point-item">
  3538. <div class="flex items-center justify-between mb-2">
  3539. <span class="font-medium text-gray-800">服务点1:1号化粪池</span>
  3540. <span class="tag tag-blue">主服务点</span>
  3541. </div>
  3542. <p class="text-gray-500 text-xs mb-1"><i class="fas fa-map-pin mr-1"></i>位置:地下停车场B1层</p>
  3543. <p class="text-gray-500 text-xs"><i class="fas fa-tools mr-1"></i>服务项:<span class="text-blue-600">清掏</span></p>
  3544. <p class="text-gray-400 text-xs mt-1"><i class="fas fa-history mr-1"></i>最近服务:2024-01-10</p>
  3545. </div>
  3546. <div class="service-point-item">
  3547. <div class="flex items-center justify-between mb-2">
  3548. <span class="font-medium text-gray-800">服务点2:2号隔油池</span>
  3549. <span class="tag tag-green">正常</span>
  3550. </div>
  3551. <p class="text-gray-500 text-xs mb-1"><i class="fas fa-map-pin mr-1"></i>位置:地下停车场B2层</p>
  3552. <p class="text-gray-500 text-xs"><i class="fas fa-tools mr-1"></i>服务项:<span class="text-blue-600">清掏</span></p>
  3553. <p class="text-gray-400 text-xs mt-1"><i class="fas fa-history mr-1"></i>最近服务:2024-01-08</p>
  3554. </div>
  3555. <div class="service-point-item">
  3556. <div class="flex items-center justify-between mb-2">
  3557. <span class="font-medium text-gray-800">服务点3:3号油污管道</span>
  3558. <span class="tag tag-green">正常</span>
  3559. </div>
  3560. <p class="text-gray-500 text-xs mb-1"><i class="fas fa-map-pin mr-1"></i>位置:裙楼餐饮区</p>
  3561. <p class="text-gray-500 text-xs"><i class="fas fa-tools mr-1"></i>服务项:<span class="text-blue-600">疏通</span></p>
  3562. <p class="text-gray-400 text-xs mt-1"><i class="fas fa-history mr-1"></i>最近服务:2024-01-05</p>
  3563. </div>
  3564. </div>
  3565. </div>
  3566. <!-- 操作按钮 -->
  3567. <div class="pt-4 pb-6 space-y-3">
  3568. <button class="w-full py-3 bg-blue-500 text-white rounded-xl font-medium">
  3569. <i class="fas fa-edit mr-2"></i>编辑项目
  3570. </button>
  3571. <button class="w-full py-3 bg-white border border-gray-200 text-gray-600 rounded-xl font-medium">
  3572. <i class="fas fa-file-alt mr-2"></i>查看合同
  3573. </button>
  3574. </div>
  3575. </div>
  3576. </div>
  3577. <!-- 消息通知列表页 - 二级页面,隐藏底部导航 -->
  3578. <div id="messageListPage" class="page hide-nav">
  3579. <!-- 顶部导航 -->
  3580. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  3581. <div class="flex items-center justify-between">
  3582. <div class="flex items-center">
  3583. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('profilePage')">
  3584. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  3585. </button>
  3586. <h1 class="text-lg font-bold text-gray-800">消息通知</h1>
  3587. </div>
  3588. <button class="px-3 py-1.5 text-blue-500 text-sm" onclick="markAllMessagesRead()">全部已读</button>
  3589. </div>
  3590. <!-- 筛选标签 -->
  3591. <div class="flex gap-2 mt-4 overflow-x-auto">
  3592. <button class="px-4 py-2 bg-blue-500 text-white rounded-full text-sm whitespace-nowrap" onclick="filterMessages('all')">全部</button>
  3593. <button class="px-4 py-2 bg-gray-100 text-gray-600 rounded-full text-sm whitespace-nowrap" onclick="filterMessages('task')">任务消息</button>
  3594. <button class="px-4 py-2 bg-gray-100 text-gray-600 rounded-full text-sm whitespace-nowrap" onclick="filterMessages('system')">系统消息</button>
  3595. </div>
  3596. </div>
  3597. <!-- 消息列表 -->
  3598. <div class="bg-white">
  3599. <div class="notice-item" onclick="goToPage('messageDetailPage')">
  3600. <div class="flex justify-between items-start mb-2">
  3601. <div class="flex items-center">
  3602. <span class="w-2 h-2 bg-red-500 rounded-full mr-2"></span>
  3603. <h3 class="font-medium text-gray-800">任务已派发:积丹白鹭小区疏通</h3>
  3604. </div>
  3605. <span class="text-gray-400 text-xs whitespace-nowrap">刚刚</span>
  3606. </div>
  3607. <p class="text-gray-500 text-sm line-clamp-2">您提交的任务"积丹白鹭小区疏通"已派发给张师傅组,预计09:30到达现场...</p>
  3608. </div>
  3609. <div class="notice-item" onclick="goToPage('messageDetailPage')">
  3610. <div class="flex justify-between items-start mb-2">
  3611. <div class="flex items-center">
  3612. <span class="w-2 h-2 bg-red-500 rounded-full mr-2"></span>
  3613. <h3 class="font-medium text-gray-800">任务状态更新</h3>
  3614. </div>
  3615. <span class="text-gray-400 text-xs whitespace-nowrap">10分钟前</span>
  3616. </div>
  3617. <p class="text-gray-500 text-sm line-clamp-2">您关注的"俊发城应急疏通"任务已进入施工阶段,施工班组已到达现场...</p>
  3618. </div>
  3619. <div class="notice-item" onclick="goToPage('messageDetailPage')">
  3620. <div class="flex justify-between items-start mb-2">
  3621. <div class="flex items-center">
  3622. <span class="w-2 h-2 rounded-full mr-2"></span>
  3623. <h3 class="font-medium text-gray-600">系统维护通知</h3>
  3624. </div>
  3625. <span class="text-gray-400 text-xs whitespace-nowrap">昨天</span>
  3626. </div>
  3627. <p class="text-gray-500 text-sm line-clamp-2">系统将于本周六凌晨2:00-6:00进行升级维护,届时部分功能可能暂时无法使用...</p>
  3628. </div>
  3629. <div class="notice-item" onclick="goToPage('messageDetailPage')">
  3630. <div class="flex justify-between items-start mb-2">
  3631. <div class="flex items-center">
  3632. <span class="w-2 h-2 rounded-full mr-2"></span>
  3633. <h3 class="font-medium text-gray-600">任务已完成</h3>
  3634. </div>
  3635. <span class="text-gray-400 text-xs whitespace-nowrap">2天前</span>
  3636. </div>
  3637. <p class="text-gray-500 text-sm line-clamp-2">您提交的任务"逸安新城日常维护"已顺利完成,施工单位已上传完工照片...</p>
  3638. </div>
  3639. <div class="notice-item" onclick="goToPage('messageDetailPage')">
  3640. <div class="flex justify-between items-start mb-2">
  3641. <div class="flex items-center">
  3642. <span class="w-2 h-2 rounded-full mr-2"></span>
  3643. <h3 class="font-medium text-gray-600">催单已处理</h3>
  3644. </div>
  3645. <span class="text-gray-400 text-xs whitespace-nowrap">3天前</span>
  3646. </div>
  3647. <p class="text-gray-500 text-sm line-clamp-2">您催单的任务"富源同坐管道检修"已安排加急处理,施工班组正在赶往现场...</p>
  3648. </div>
  3649. </div>
  3650. </div>
  3651. <!-- 消息详情页 -->
  3652. <div id="messageDetailPage" class="page hide-nav">
  3653. <!-- 顶部导航 -->
  3654. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  3655. <div class="flex items-center">
  3656. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_notificationPage')">
  3657. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  3658. </button>
  3659. <h1 class="text-lg font-bold text-gray-800">消息详情</h1>
  3660. </div>
  3661. </div>
  3662. <!-- 详情内容 -->
  3663. <div class="px-4 py-4">
  3664. <div class="card p-4">
  3665. <div class="flex items-center justify-between mb-3">
  3666. <h2 class="text-base font-bold text-gray-800">任务已派发:积丹白鹭小区疏通</h2>
  3667. </div>
  3668. <p class="text-gray-400 text-sm mb-4"><i class="far fa-clock mr-1"></i>刚刚</p>
  3669. <div class="border-t border-gray-100 pt-4">
  3670. <p class="text-gray-600 text-sm leading-relaxed mb-4">
  3671. 您提交的任务"积丹白鹭小区疏通"已成功派发,现将任务详情通知如下:
  3672. </p>
  3673. <div class="bg-gray-50 rounded-lg p-4 mb-4">
  3674. <div class="flex justify-between text-sm mb-2">
  3675. <span class="text-gray-500">任务名称:</span>
  3676. <span class="text-gray-700">积丹白鹭小区疏通</span>
  3677. </div>
  3678. <div class="flex justify-between text-sm mb-2">
  3679. <span class="text-gray-500">执行班组:</span>
  3680. <span class="text-gray-700">张师傅组</span>
  3681. </div>
  3682. <div class="flex justify-between text-sm mb-2">
  3683. <span class="text-gray-500">预计到达:</span>
  3684. <span class="text-gray-700">09:30</span>
  3685. </div>
  3686. <div class="flex justify-between text-sm">
  3687. <span class="text-gray-500">联系电话:</span>
  3688. <span class="text-gray-700">139****6666</span>
  3689. </div>
  3690. </div>
  3691. <p class="text-gray-600 text-sm leading-relaxed">
  3692. 施工过程中如有任何问题,请及时联系调度中心。服务完成后,请及时验收确认。
  3693. </p>
  3694. </div>
  3695. </div>
  3696. </div>
  3697. </div>
  3698. <!-- 修改密码页 -->
  3699. <div id="changePasswordPage" class="page hide-nav">
  3700. <!-- 顶部导航 -->
  3701. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  3702. <div class="flex items-center">
  3703. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('profilePage')">
  3704. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  3705. </button>
  3706. <h1 class="text-lg font-bold text-gray-800">修改密码</h1>
  3707. </div>
  3708. </div>
  3709. <!-- 修改密码表单 -->
  3710. <div class="px-4 py-4">
  3711. <div class="card p-4">
  3712. <div class="form-group">
  3713. <label class="form-label"><span class="text-red-500">*</span>当前密码</label>
  3714. <input type="password" id="currentPassword" class="form-input" placeholder="请输入当前密码">
  3715. </div>
  3716. <div class="form-group">
  3717. <label class="form-label"><span class="text-red-500">*</span>新密码</label>
  3718. <input type="password" id="newPassword" class="form-input" placeholder="请输入新密码(6-20位)">
  3719. </div>
  3720. <div class="form-group">
  3721. <label class="form-label"><span class="text-red-500">*</span>确认新密码</label>
  3722. <input type="password" id="confirmNewPassword" class="form-input" placeholder="请再次输入新密码">
  3723. </div>
  3724. <div class="mt-4">
  3725. <div class="bg-blue-50 rounded-lg p-3 mb-4">
  3726. <p class="text-blue-600 text-sm"><i class="fas fa-info-circle mr-1"></i>密码要求:</p>
  3727. <ul class="text-gray-500 text-xs mt-2 space-y-1">
  3728. <li>• 长度6-20位</li>
  3729. <li>• 必须包含字母和数字</li>
  3730. <li>• 不能与当前密码相同</li>
  3731. </ul>
  3732. </div>
  3733. <button class="w-full py-3 bg-blue-500 text-white rounded-xl font-medium" onclick="submitChangePassword()">
  3734. 确认修改
  3735. </button>
  3736. </div>
  3737. </div>
  3738. </div>
  3739. </div>
  3740. <!-- 帮助中心页 -->
  3741. <div id="helpCenterPage" class="page hide-nav">
  3742. <!-- 顶部导航 -->
  3743. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  3744. <div class="flex items-center">
  3745. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('profilePage')">
  3746. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  3747. </button>
  3748. <h1 class="text-lg font-bold text-gray-800">帮助中心</h1>
  3749. </div>
  3750. </div>
  3751. <!-- 帮助中心内容 -->
  3752. <div class="px-4 py-4">
  3753. <!-- 常见问题 -->
  3754. <div class="bg-white rounded-xl p-4 mb-4 shadow-sm">
  3755. <h3 class="text-base font-semibold text-gray-800 mb-4"><i class="fas fa-question-circle text-blue-500 mr-2"></i>常见问题</h3>
  3756. <div class="space-y-3">
  3757. <div class="border-b border-gray-100 pb-3">
  3758. <div class="flex justify-between items-center cursor-pointer" onclick="toggleFaq(this)">
  3759. <span class="text-sm text-gray-700">如何提交新的任务工单?</span>
  3760. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  3761. </div>
  3762. <div class="hidden mt-2 text-gray-500 text-sm">
  3763. 在首页点击右下角的"+"按钮,选择"发布任务",填写项目信息和服务信息后提交即可。
  3764. </div>
  3765. </div>
  3766. <div class="border-b border-gray-100 pb-3">
  3767. <div class="flex justify-between items-center cursor-pointer" onclick="toggleFaq(this)">
  3768. <span class="text-sm text-gray-700">如何查看任务进度?</span>
  3769. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  3770. </div>
  3771. <div class="hidden mt-2 text-gray-500 text-sm">
  3772. 进入"任务"页面,点击相应任务卡片即可查看任务详情和当前进度。
  3773. </div>
  3774. </div>
  3775. <div class="border-b border-gray-100 pb-3">
  3776. <div class="flex justify-between items-center cursor-pointer" onclick="toggleFaq(this)">
  3777. <span class="text-sm text-gray-700">如何修改个人信息?</span>
  3778. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  3779. </div>
  3780. <div class="hidden mt-2 text-gray-500 text-sm">
  3781. 进入"我的"页面,点击相应的信息项即可进行修改。
  3782. </div>
  3783. </div>
  3784. <div class="border-b border-gray-100 pb-3">
  3785. <div class="flex justify-between items-center cursor-pointer" onclick="toggleFaq(this)">
  3786. <span class="text-sm text-gray-700">任务被驳回怎么办?</span>
  3787. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  3788. </div>
  3789. <div class="hidden mt-2 text-gray-500 text-sm">
  3790. 您可以查看驳回原因,修改任务信息后重新提交,或联系调度中心咨询。
  3791. </div>
  3792. </div>
  3793. <div>
  3794. <div class="flex justify-between items-center cursor-pointer" onclick="toggleFaq(this)">
  3795. <span class="text-sm text-gray-700">如何联系客服?</span>
  3796. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  3797. </div>
  3798. <div class="hidden mt-2 text-gray-500 text-sm">
  3799. 可以在"我的"页面点击"联系客服",或拨打客服热线:400-888-8888。
  3800. </div>
  3801. </div>
  3802. </div>
  3803. </div>
  3804. <!-- 联系客服 -->
  3805. <div class="bg-white rounded-xl p-4 shadow-sm">
  3806. <h3 class="text-base font-semibold text-gray-800 mb-4"><i class="fas fa-headset text-green-500 mr-2"></i>联系客服</h3>
  3807. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  3808. <div class="flex items-center">
  3809. <i class="fas fa-phone text-blue-500 mr-3"></i>
  3810. <span class="text-sm text-gray-700">客服热线</span>
  3811. </div>
  3812. <span class="text-blue-500 text-sm">400-888-8888</span>
  3813. </div>
  3814. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  3815. <div class="flex items-center">
  3816. <i class="fas fa-envelope text-blue-500 mr-3"></i>
  3817. <span class="text-sm text-gray-700">电子邮箱</span>
  3818. </div>
  3819. <span class="text-gray-600 text-sm">service@qingdaofu.com</span>
  3820. </div>
  3821. <div class="flex items-center justify-between py-3">
  3822. <div class="flex items-center">
  3823. <i class="fas fa-clock text-blue-500 mr-3"></i>
  3824. <span class="text-sm text-gray-700">服务时间</span>
  3825. </div>
  3826. <span class="text-gray-600 text-sm">9:00-18:00</span>
  3827. </div>
  3828. </div>
  3829. </div>
  3830. </div>
  3831. <!-- 通知公告列表页 - 二级页面,隐藏底部导航 -->
  3832. <div id="noticeListPage" class="page hide-nav">
  3833. <!-- 顶部导航 -->
  3834. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  3835. <div class="flex items-center">
  3836. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('salesPage')">
  3837. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  3838. </button>
  3839. <h1 class="text-lg font-bold text-gray-800">通知公告</h1>
  3840. </div>
  3841. </div>
  3842. <!-- 公告列表 -->
  3843. <div class="bg-white">
  3844. <div class="notice-item" onclick="goToPage('noticeDetailPage')">
  3845. <div class="flex justify-between items-start mb-2">
  3846. <h3 class="font-medium text-gray-800 flex-1 pr-2">关于2024年第一季度销售激励方案的通知</h3>
  3847. <span class="text-gray-400 text-xs whitespace-nowrap">01-15</span>
  3848. </div>
  3849. <p class="text-gray-500 text-sm line-clamp-2">为激励销售团队积极性,公司决定对2024年第一季度表现优秀的销售人员给予额外奖励...</p>
  3850. </div>
  3851. <div class="notice-item" onclick="goToPage('noticeDetailPage')">
  3852. <div class="flex justify-between items-start mb-2">
  3853. <h3 class="font-medium text-gray-800 flex-1 pr-2">春节期间服务安排调整公告</h3>
  3854. <span class="text-gray-400 text-xs whitespace-nowrap">01-10</span>
  3855. </div>
  3856. <p class="text-gray-500 text-sm line-clamp-2">根据国家法定节假日安排,结合公司实际情况,现对春节期间的服务工作进行如下调整...</p>
  3857. </div>
  3858. <div class="notice-item" onclick="goToPage('noticeDetailPage')">
  3859. <div class="flex justify-between items-start mb-2">
  3860. <h3 class="font-medium text-gray-800 flex-1 pr-2">新增设施类型服务标准说明</h3>
  3861. <span class="text-gray-400 text-xs whitespace-nowrap">01-05</span>
  3862. </div>
  3863. <p class="text-gray-500 text-sm line-clamp-2">为更好地满足客户需求,公司新增了高压水射流清洗和CCTV管道检测两项服务...</p>
  3864. </div>
  3865. <div class="notice-item" onclick="goToPage('noticeDetailPage')">
  3866. <div class="flex justify-between items-start mb-2">
  3867. <h3 class="font-medium text-gray-800 flex-1 pr-2">2023年度优秀员工表彰名单</h3>
  3868. <span class="text-gray-400 text-xs whitespace-nowrap">12-28</span>
  3869. </div>
  3870. <p class="text-gray-500 text-sm line-clamp-2">经公司研究决定,对在2023年度工作中表现突出的员工进行表彰...</p>
  3871. </div>
  3872. <div class="notice-item" onclick="goToPage('noticeDetailPage')">
  3873. <div class="flex justify-between items-start mb-2">
  3874. <h3 class="font-medium text-gray-800 flex-1 pr-2">系统升级维护通知</h3>
  3875. <span class="text-gray-400 text-xs whitespace-nowrap">12-20</span>
  3876. </div>
  3877. <p class="text-gray-500 text-sm line-clamp-2">为提升系统性能和服务稳定性,计划于12月25日凌晨进行系统升级维护...</p>
  3878. </div>
  3879. </div>
  3880. </div>
  3881. <!-- 通知公告详情页 - 二级页面,隐藏底部导航 -->
  3882. <div id="noticeDetailPage" class="page hide-nav">
  3883. <!-- 顶部导航 -->
  3884. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  3885. <div class="flex items-center">
  3886. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('noticeListPage')">
  3887. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  3888. </button>
  3889. <h1 class="text-lg font-bold text-gray-800">公告详情</h1>
  3890. </div>
  3891. </div>
  3892. <!-- 详情内容 -->
  3893. <div class="px-4 py-4">
  3894. <div class="card p-4">
  3895. <h2 class="text-lg font-bold text-gray-800 mb-2">关于2024年第一季度销售激励方案的通知</h2>
  3896. <p class="text-gray-400 text-sm mb-4"><i class="far fa-clock mr-1"></i>2024-01-15 10:30</p>
  3897. <div class="border-t border-gray-100 pt-4">
  3898. <p class="text-gray-600 text-sm leading-relaxed mb-4">
  3899. 各位销售同事:
  3900. </p>
  3901. <p class="text-gray-600 text-sm leading-relaxed mb-4">
  3902. 为激励销售团队积极性,完成公司年度销售目标,经管理层研究决定,对2024年第一季度表现优秀的销售人员给予额外奖励,具体方案如下:
  3903. </p>
  3904. <p class="text-gray-600 text-sm leading-relaxed mb-4">
  3905. <strong>一、激励对象</strong><br>
  3906. 所有在册销售人员
  3907. </p>
  3908. <p class="text-gray-600 text-sm leading-relaxed mb-4">
  3909. <strong>二、激励措施</strong><br>
  3910. 1. 完成季度指标的120%以上,奖励5000元<br>
  3911. 2. 完成季度指标的100%-120%,奖励3000元<br>
  3912. 3. 完成季度指标的80%-100%,奖励1000元
  3913. </p>
  3914. <p class="text-gray-600 text-sm leading-relaxed mb-4">
  3915. <strong>三、发放时间</strong><br>
  3916. 奖金将于次季度首月随工资发放
  3917. </p>
  3918. <p class="text-gray-600 text-sm leading-relaxed">
  3919. 希望各位同事积极开拓市场,争取佳绩!
  3920. </p>
  3921. <p class="text-gray-500 text-sm leading-relaxed mt-4 text-right">
  3922. 清道夫科技有限公司<br>
  3923. 2024年1月15日
  3924. </p>
  3925. </div>
  3926. </div>
  3927. </div>
  3928. </div>
  3929. <!-- 行业知识列表页 - 二级页面,隐藏底部导航 -->
  3930. <div id="knowledgeListPage" class="page hide-nav">
  3931. <!-- 顶部导航 -->
  3932. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  3933. <div class="flex items-center">
  3934. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('salesPage')">
  3935. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  3936. </button>
  3937. <h1 class="text-lg font-bold text-gray-800">行业知识</h1>
  3938. </div>
  3939. </div>
  3940. <!-- 知识列表 -->
  3941. <div class="px-4 py-4">
  3942. <div class="knowledge-card flex" onclick="goToPage('knowledgeDetailPage')">
  3943. <div class="w-24 h-24 bg-gradient-to-br from-blue-400 to-blue-600 rounded-xl flex items-center justify-center mr-3 flex-shrink-0">
  3944. <i class="fas fa-chart-pie text-white text-2xl"></i>
  3945. </div>
  3946. <div class="flex-1 flex flex-col justify-center">
  3947. <h3 class="font-medium text-gray-800 mb-1">2024年清洁行业市场分析报告</h3>
  3948. <p class="text-gray-400 text-xs line-clamp-2">全面解读清洁行业发展趋势、市场规模及竞争格局,为企业战略规划提供数据支撑...</p>
  3949. <p class="text-gray-300 text-xs mt-1">2024-01-12</p>
  3950. </div>
  3951. </div>
  3952. <div class="knowledge-card flex" onclick="goToPage('knowledgeDetailPage')">
  3953. <div class="w-24 h-24 bg-gradient-to-br from-yellow-400 to-orange-500 rounded-xl flex items-center justify-center mr-3 flex-shrink-0">
  3954. <i class="fas fa-lightbulb text-white text-2xl"></i>
  3955. </div>
  3956. <div class="flex-1 flex flex-col justify-center">
  3957. <h3 class="font-medium text-gray-800 mb-1">客户开发技巧与话术指南</h3>
  3958. <p class="text-gray-400 text-xs line-clamp-2">提升销售业绩的实战技巧,有效沟通方法汇总,助你快速成交...</p>
  3959. <p class="text-gray-300 text-xs mt-1">2024-01-08</p>
  3960. </div>
  3961. </div>
  3962. <div class="knowledge-card flex" onclick="goToPage('knowledgeDetailPage')">
  3963. <div class="w-24 h-24 bg-gradient-to-br from-green-400 to-emerald-600 rounded-xl flex items-center justify-center mr-3 flex-shrink-0">
  3964. <i class="fas fa-handshake text-white text-2xl"></i>
  3965. </div>
  3966. <div class="flex-1 flex flex-col justify-center">
  3967. <h3 class="font-medium text-gray-800 mb-1">大客户维护策略</h3>
  3968. <p class="text-gray-400 text-xs line-clamp-2">深度解析大客户维护技巧,建立长期稳定合作关系,提升客户续约率...</p>
  3969. <p class="text-gray-300 text-xs mt-1">2024-01-05</p>
  3970. </div>
  3971. </div>
  3972. <div class="knowledge-card flex" onclick="goToPage('knowledgeDetailPage')">
  3973. <div class="w-24 h-24 bg-gradient-to-br from-purple-400 to-violet-600 rounded-xl flex items-center justify-center mr-3 flex-shrink-0">
  3974. <i class="fas fa-clipboard-check text-white text-2xl"></i>
  3975. </div>
  3976. <div class="flex-1 flex flex-col justify-center">
  3977. <h3 class="font-medium text-gray-800 mb-1">项目报价方案设计要点</h3>
  3978. <p class="text-gray-400 text-xs line-clamp-2">专业报价方案设计指南,包含成本核算、利润空间把控及竞品分析...</p>
  3979. <p class="text-gray-300 text-xs mt-1">2023-12-28</p>
  3980. </div>
  3981. </div>
  3982. <div class="knowledge-card flex" onclick="goToPage('knowledgeDetailPage')">
  3983. <div class="w-24 h-24 bg-gradient-to-br from-red-400 to-rose-600 rounded-xl flex items-center justify-center mr-3 flex-shrink-0">
  3984. <i class="fas fa-file-contract text-white text-2xl"></i>
  3985. </div>
  3986. <div class="flex-1 flex flex-col justify-center">
  3987. <h3 class="font-medium text-gray-800 mb-1">合同签订注意事项</h3>
  3988. <p class="text-gray-400 text-xs line-clamp-2">销售合同签订全流程解析,规避法律风险,确保企业利益...</p>
  3989. <p class="text-gray-300 text-xs mt-1">2023-12-20</p>
  3990. </div>
  3991. </div>
  3992. </div>
  3993. </div>
  3994. <!-- 行业知识详情页 - 二级页面,隐藏底部导航 -->
  3995. <div id="knowledgeDetailPage" class="page hide-nav">
  3996. <!-- 顶部导航 -->
  3997. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  3998. <div class="flex items-center">
  3999. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('knowledgeListPage')">
  4000. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  4001. </button>
  4002. <h1 class="text-lg font-bold text-gray-800">知识详情</h1>
  4003. </div>
  4004. </div>
  4005. <!-- 详情内容 -->
  4006. <div class="px-4 py-4">
  4007. <div class="card overflow-hidden">
  4008. <!-- 封面图 -->
  4009. <div class="h-48 bg-gradient-to-br from-blue-400 to-blue-600 flex items-center justify-center">
  4010. <i class="fas fa-chart-pie text-white text-5xl"></i>
  4011. </div>
  4012. <div class="p-4">
  4013. <h2 class="text-lg font-bold text-gray-800 mb-2">2024年清洁行业市场分析报告</h2>
  4014. <p class="text-gray-400 text-sm mb-4"><i class="far fa-clock mr-1"></i>2024-01-12</p>
  4015. <div class="border-t border-gray-100 pt-4 space-y-4">
  4016. <div class="bg-blue-50 rounded-xl p-4">
  4017. <h3 class="font-medium text-blue-600 mb-2"><i class="fas fa-chart-line mr-2"></i>市场规模</h3>
  4018. <p class="text-gray-600 text-sm">2024年中国清洁服务市场规模预计达到2000亿元,同比增长15%。其中,商业清洁占比45%,工业清洁占比30%,家庭清洁占比25%。</p>
  4019. </div>
  4020. <div class="bg-green-50 rounded-xl p-4">
  4021. <h3 class="font-medium text-green-600 mb-2"><i class="fas fa-users mr-2"></i>市场格局</h3>
  4022. <p class="text-gray-600 text-sm">行业集中度较低,TOP10企业市场份额不足20%。未来3-5年将进入整合期,具有品牌优势和规模效应的企业将获得更大发展空间。</p>
  4023. </div>
  4024. <div class="bg-purple-50 rounded-xl p-4">
  4025. <h3 class="font-medium text-purple-600 mb-2"><i class="fas fa-rocket mr-2"></i>发展趋势</h3>
  4026. <p class="text-gray-600 text-sm">
  4027. 1. <strong>智能化升级</strong>:智能清洁设备渗透率将提升至30%<br>
  4028. 2. <strong>专业化分工</strong>:细分领域专业服务商崛起<br>
  4029. 3. <strong>服务标准化</strong>:行业服务标准体系逐步完善<br>
  4030. 4. <strong>品牌化运营</strong>:客户对品牌认知度不断提升
  4031. </p>
  4032. </div>
  4033. <div class="bg-orange-50 rounded-xl p-4">
  4034. <h3 class="font-medium text-orange-600 mb-2"><i class="fas fa-bullseye mr-2"></i>业务机会</h3>
  4035. <p class="text-gray-600 text-sm">
  4036. • 工业园区和写字楼的物业清洁外包需求增长<br>
  4037. • 医疗机构和食品工厂的专业清洁服务需求旺盛<br>
  4038. • 老旧小区改造带来的清洁服务增量市场
  4039. </p>
  4040. </div>
  4041. </div>
  4042. </div>
  4043. </div>
  4044. </div>
  4045. </div>
  4046. <!-- 发布任务页 - 单页面两板块结构 -->
  4047. <div id="publishTaskPage" class="page hide-nav">
  4048. <!-- 顶部导航 -->
  4049. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  4050. <div class="flex items-center justify-between">
  4051. <div class="flex items-center">
  4052. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('taskPage')">
  4053. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  4054. </button>
  4055. <h1 class="text-lg font-bold text-gray-800">发布任务</h1>
  4056. </div>
  4057. </div>
  4058. </div>
  4059. <!-- 页面内容 -->
  4060. <div class="px-4 py-4 pb-24">
  4061. <!-- 板块一:项目基本信息 -->
  4062. <div class="card p-4 mb-4" id="sectionProject">
  4063. <!-- 板块标题 -->
  4064. <div class="flex items-center mb-4">
  4065. <div class="w-8 h-8 bg-blue-100 rounded-lg flex items-center justify-center mr-3">
  4066. <i class="fas fa-building text-blue-500"></i>
  4067. </div>
  4068. <h2 class="text-base font-semibold text-gray-800">项目基本信息</h2>
  4069. </div>
  4070. <!-- 项目选择提示 -->
  4071. <div id="projectSelectHint" class="bg-blue-50 rounded-lg px-3 py-2 mb-4 flex items-center">
  4072. <i class="fas fa-info-circle text-blue-500 mr-2 text-sm"></i>
  4073. <span class="text-blue-600 text-sm" id="projectHintText">请从项目库选择或新增项目</span>
  4074. </div>
  4075. <!-- 项目选择 -->
  4076. <div class="form-group">
  4077. <label class="form-label"><span class="text-red-500">*</span>选择项目</label>
  4078. <select id="projectSelect" class="form-select" onchange="onProjectSelectChange()">
  4079. <option value="">请选择项目</option>
  4080. <option value="积丹白鹭">积丹白鹭</option>
  4081. <option value="富源同坐">富源同坐</option>
  4082. <option value="俊发城">俊发城</option>
  4083. <option value="逸安新城A区">逸安新城A区</option>
  4084. <option value="逸安新城B区">逸安新城B区</option>
  4085. <option value="new">+ 新增项目</option>
  4086. </select>
  4087. </div>
  4088. <!-- 已选项目信息(自动带出) -->
  4089. <div id="projectAutoInfo" class="bg-green-50 rounded-xl p-3" style="display: none;">
  4090. <div class="flex items-center justify-between mb-3">
  4091. <span class="text-green-600 text-sm font-medium">
  4092. <i class="fas fa-check-circle mr-1"></i>已选择:<span id="selectedProjectName"></span>
  4093. </span>
  4094. <button class="text-green-500 text-xs" onclick="resetProjectSelection()">重新选择</button>
  4095. </div>
  4096. <div class="space-y-2">
  4097. <div class="flex justify-between text-sm">
  4098. <span class="text-gray-500">合作类型:</span>
  4099. <span class="text-gray-700" id="autoCoopType">-</span>
  4100. </div>
  4101. <div class="flex justify-between text-sm">
  4102. <span class="text-gray-500">设施类型:</span>
  4103. <span class="text-gray-700" id="autoFacilityType">-</span>
  4104. </div>
  4105. <div class="flex justify-between text-sm">
  4106. <span class="text-gray-500">项目地址:</span>
  4107. <span class="text-gray-700" id="autoProjectAddress">-</span>
  4108. </div>
  4109. </div>
  4110. </div>
  4111. <!-- 新增项目表单 -->
  4112. <div id="newProjectForm" style="display: none;">
  4113. <div class="bg-orange-50 rounded-lg px-3 py-2 mb-4 flex items-center">
  4114. <i class="fas fa-edit text-orange-500 mr-2 text-sm"></i>
  4115. <span class="text-orange-600 text-sm">新增项目 - 请填写以下信息</span>
  4116. </div>
  4117. <div class="form-group">
  4118. <label class="form-label"><span class="text-red-500">*</span>项目名称</label>
  4119. <input type="text" id="newProjectName" class="form-input" placeholder="请输入项目名称">
  4120. </div>
  4121. <div class="inline-selector mb-4">
  4122. <div class="form-group">
  4123. <label class="form-label"><span class="text-red-500">*</span>合作类型</label>
  4124. <select id="newCoopType" class="form-select">
  4125. <option value="">请选择</option>
  4126. <option value="包年">包年</option>
  4127. <option value="单次">单次</option>
  4128. <option value="季度">季度</option>
  4129. <option value="月付">月付</option>
  4130. </select>
  4131. </div>
  4132. <div class="form-group">
  4133. <label class="form-label"><span class="text-red-500">*</span>设施类型</label>
  4134. <select id="newFacilityType" class="form-select">
  4135. <option value="">请选择</option>
  4136. <option value="住宅">住宅</option>
  4137. <option value="商业">商业</option>
  4138. <option value="工业">工业</option>
  4139. <option value="市政">市政</option>
  4140. </select>
  4141. </div>
  4142. </div>
  4143. <div class="form-group">
  4144. <label class="form-label"><span class="text-red-500">*</span>项目地址</label>
  4145. <input type="text" id="newProjectAddress" class="form-input" placeholder="请输入项目地址">
  4146. </div>
  4147. </div>
  4148. <!-- 联系人列表 -->
  4149. <div class="form-group mb-0">
  4150. <label class="form-label">联系人</label>
  4151. <div id="contactListContainer">
  4152. <!-- 联系人列表动态生成 -->
  4153. </div>
  4154. <button type="button" class="add-item-btn mt-2" onclick="addContactItem()">
  4155. <i class="fas fa-plus"></i> 添加联系人
  4156. </button>
  4157. </div>
  4158. </div>
  4159. <!-- 板块二:服务信息 -->
  4160. <div class="card p-4" id="sectionService">
  4161. <!-- 板块标题 -->
  4162. <div class="flex items-center mb-4">
  4163. <div class="w-8 h-8 bg-purple-100 rounded-lg flex items-center justify-center mr-3">
  4164. <i class="fas fa-tools text-purple-500"></i>
  4165. </div>
  4166. <h2 class="text-base font-semibold text-gray-800">服务信息</h2>
  4167. </div>
  4168. <!-- 服务时间 -->
  4169. <div class="form-group">
  4170. <label class="form-label"><span class="text-red-500">*</span>服务时间</label>
  4171. <div class="datetime-input">
  4172. <input type="date" id="serviceDate" class="form-input">
  4173. <input type="time" id="serviceTime" class="form-input" style="flex: 0.6;">
  4174. </div>
  4175. </div>
  4176. <!-- 故障位置 -->
  4177. <div class="form-group">
  4178. <div class="auto-filled-label" id="faultLocationLabel" style="display: none;">
  4179. <i class="fas fa-magic mr-1"></i>已自动填充
  4180. </div>
  4181. <label class="form-label"><span class="text-red-500">*</span>故障位置</label>
  4182. <input type="text" id="faultLocation" class="form-input" placeholder="请输入故障位置">
  4183. </div>
  4184. <!-- 地理位置(地图) -->
  4185. <div class="form-group">
  4186. <label class="form-label">地理位置</label>
  4187. <div class="bg-gray-100 rounded-xl h-24 flex items-center justify-center border border-gray-200 cursor-pointer" onclick="showToast('地图定位功能开发中')">
  4188. <div class="text-center">
  4189. <i class="fas fa-map-marked-alt text-gray-400 text-2xl mb-1"></i>
  4190. <p class="text-gray-400 text-xs">点击获取当前位置</p>
  4191. </div>
  4192. </div>
  4193. </div>
  4194. <!-- 故障类型 -->
  4195. <div class="form-group">
  4196. <label class="form-label"><span class="text-red-500">*</span>故障类型</label>
  4197. <div class="tag-selector">
  4198. <div class="tag-option" onclick="toggleTag(this)">堵塞</div>
  4199. <div class="tag-option" onclick="toggleTag(this)">满溢</div>
  4200. <div class="tag-option" onclick="toggleTag(this)">排水慢</div>
  4201. <div class="tag-option" onclick="toggleTag(this)">异味</div>
  4202. <div class="tag-option" onclick="toggleTag(this)">其他</div>
  4203. </div>
  4204. </div>
  4205. <!-- 故障描述 - 客户原话 -->
  4206. <div class="form-group">
  4207. <label class="form-label">客户原话</label>
  4208. <textarea id="customerOriginalWords" class="form-textarea" placeholder="请记录客户原话描述..."></textarea>
  4209. </div>
  4210. <!-- 故障描述 - 客服转译 -->
  4211. <div class="form-group">
  4212. <label class="form-label"><span class="text-red-500">*</span>故障描述</label>
  4213. <textarea id="faultDesc" class="form-textarea" placeholder="请详细描述故障情况..."></textarea>
  4214. </div>
  4215. <!-- 发生时间和反复情况 -->
  4216. <div class="inline-selector mb-4">
  4217. <div class="form-group">
  4218. <label class="form-label">首次出现时间</label>
  4219. <input type="date" id="firstOccurrenceTime" class="form-input">
  4220. </div>
  4221. <div class="form-group">
  4222. <label class="form-label">近期反复情况</label>
  4223. <select id="recurrenceFrequency" class="form-select">
  4224. <option value="">请选择</option>
  4225. <option value="无">无</option>
  4226. <option value="偶尔">偶尔</option>
  4227. <option value="频繁">频繁</option>
  4228. </select>
  4229. </div>
  4230. </div>
  4231. <!-- 影响范围 -->
  4232. <div class="form-group">
  4233. <label class="form-label">影响范围</label>
  4234. <div class="tag-selector">
  4235. <div class="tag-option" onclick="toggleTag(this)">单户</div>
  4236. <div class="tag-option" onclick="toggleTag(this)">楼栋</div>
  4237. <div class="tag-option" onclick="toggleTag(this)">小区主干道</div>
  4238. <div class="tag-option" onclick="toggleTag(this)">商铺门口</div>
  4239. </div>
  4240. </div>
  4241. <!-- 故障图片/视频 -->
  4242. <div class="form-group">
  4243. <label class="form-label">故障图片/视频</label>
  4244. <div class="border-2 border-dashed border-gray-200 rounded-xl p-6 text-center cursor-pointer" onclick="showToast('上传功能开发中')">
  4245. <i class="fas fa-cloud-upload-alt text-gray-300 text-2xl mb-2"></i>
  4246. <p class="text-gray-400 text-sm">点击上传图片或视频</p>
  4247. <p class="text-gray-300 text-xs mt-1">支持 JPG、PNG、MP4 格式</p>
  4248. </div>
  4249. </div>
  4250. <!-- 施工类型 & 施工设施(一行) -->
  4251. <div class="inline-selector mb-4">
  4252. <div class="form-group">
  4253. <label class="form-label"><span class="text-red-500">*</span>施工类型</label>
  4254. <select id="serviceType" class="form-select">
  4255. <option value="">请选择</option>
  4256. <option value="疏通">疏通</option>
  4257. <option value="清淤">清淤</option>
  4258. <option value="排查">排查</option>
  4259. </select>
  4260. </div>
  4261. </div>
  4262. <!-- 服务与结算数据区 -->
  4263. <div class="card p-4 mb-4" style="background:#fef3c7;">
  4264. <div class="detail-section-title cursor-pointer">
  4265. <i class="fas fa-yen-sign text-yellow-600"></i>
  4266. <span>服务与结算数据</span>
  4267. <i class="fas fa-chevron-down toggle-icon ml-auto"></i>
  4268. </div>
  4269. <div class="section-content p-4">
  4270. <div class="inline-selector">
  4271. <div class="form-group">
  4272. <label class="form-label">期望到达时间</label>
  4273. <input type="datetime-local" id="dispatchExpectTime" class="form-input">
  4274. </div>
  4275. <div class="form-group">
  4276. <label class="form-label">最晚处理时限</label>
  4277. <input type="datetime-local" id="dispatchDeadline" class="form-input">
  4278. </div>
  4279. </div>
  4280. <div class="form-group">
  4281. <label class="form-label">验收标准</label>
  4282. <select id="dispatchAcceptStandard" class="form-select">
  4283. <option value="">请选择</option>
  4284. <option value="客户自定义">客户自定义</option>
  4285. <option value="公司标准">公司标准</option>
  4286. </select>
  4287. </div>
  4288. <div class="form-group">
  4289. <label class="form-label">结算方式</label>
  4290. <div class="tag-selector">
  4291. <div class="tag-option" onclick="toggleTag(this)">签单</div>
  4292. <div class="tag-option" onclick="toggleTag(this)">现结</div>
  4293. <div class="tag-option" onclick="toggleTag(this)">对公转账</div>
  4294. <div class="tag-option" onclick="toggleTag(this)">二维码</div>
  4295. </div>
  4296. </div>
  4297. <div class="inline-selector">
  4298. <div class="form-group">
  4299. <label class="form-label">堵点个数</label>
  4300. <input type="number" id="dispatchBlockageCount" class="form-input" placeholder="个">
  4301. </div>
  4302. <div class="form-group">
  4303. <label class="form-label">清淤方量</label>
  4304. <div class="flex items-center gap-2">
  4305. <input type="number" id="dispatchDredgeVolume" class="form-input" placeholder="0" step="0.1">
  4306. <span class="text-gray-500">m³</span>
  4307. </div>
  4308. </div>
  4309. </div>
  4310. </div>
  4311. </div>
  4312. <!-- 工单生成数据区 -->
  4313. <div class="card p-4 mb-4" style="background:#ede9fe;">
  4314. <div class="detail-section-title cursor-pointer">
  4315. <i class="fas fa-file-alt text-purple-600"></i>
  4316. <span>工单生成数据</span>
  4317. <i class="fas fa-chevron-down toggle-icon ml-auto"></i>
  4318. </div>
  4319. <div class="section-content p-4">
  4320. <div class="form-group">
  4321. <label class="form-label">施工指令</label>
  4322. <textarea id="dispatchConstructionInstruction" class="form-textarea" placeholder="请输入施工指令..."></textarea>
  4323. </div>
  4324. <div class="form-group">
  4325. <label class="form-label">风险提示</label>
  4326. <div class="bg-yellow-50 rounded-lg p-3 text-sm text-yellow-700">
  4327. <i class="fas fa-exclamation-circle mr-1"></i>有限空间作业,需通风检测后方可进入
  4328. </div>
  4329. </div>
  4330. </div>
  4331. </div>
  4332. <!-- 派单结果判定区 -->
  4333. <div class="card p-4 mb-4" style="background:#dcfce7;">
  4334. <div class="detail-section-title cursor-pointer">
  4335. <i class="fas fa-check-circle text-green-600"></i>
  4336. <span>派单结果判定</span>
  4337. <i class="fas fa-chevron-down toggle-icon ml-auto"></i>
  4338. </div>
  4339. <div class="section-content p-4">
  4340. <div class="form-group">
  4341. <label class="form-label">派单结果</label>
  4342. <div class="tag-selector">
  4343. <div class="tag-option selected" onclick="toggleTag(this)">派单成功</div>
  4344. <div class="tag-option" onclick="toggleTag(this)">暂缓派单</div>
  4345. <div class="tag-option" onclick="toggleTag(this)">拒绝派单</div>
  4346. </div>
  4347. </div>
  4348. </div>
  4349. </div>
  4350. <div class="form-group">
  4351. <label class="form-label"><span class="text-red-500">*</span>施工设施</label>
  4352. <select id="serviceFacilityType" class="form-select">
  4353. <option value="">请选择</option>
  4354. <option value="PVC">PVC</option>
  4355. <option value="直抽直排">直抽直排</option>
  4356. <option value="油污">油污</option>
  4357. <option value="排污">排污</option>
  4358. <option value="油污管">油污管</option>
  4359. <option value="化粪池">化粪池</option>
  4360. </select>
  4361. </div>
  4362. </div>
  4363. <!-- 服务方式 & 建议出车(一行) -->
  4364. <div class="inline-selector mb-4">
  4365. <div class="form-group">
  4366. <label class="form-label"><span class="text-red-500">*</span>服务方式</label>
  4367. <select id="serviceMode" class="form-select">
  4368. <option value="">请选择</option>
  4369. <option value="应急">应急</option>
  4370. <option value="月计划">月计划</option>
  4371. </select>
  4372. </div>
  4373. <div class="form-group">
  4374. <label class="form-label"><span class="text-red-500">*</span>建议出车</label>
  4375. <select id="vehicleType" class="form-select">
  4376. <option value="">请选择</option>
  4377. <option value="疏通车">疏通车</option>
  4378. <option value="吸污车">吸污车</option>
  4379. <option value="高压清洗车">高压清洗车</option>
  4380. </select>
  4381. </div>
  4382. </div>
  4383. <!-- 取水距离 & 化粪池排口是否正常(一行) -->
  4384. <div class="inline-selector mb-4">
  4385. <div class="form-group">
  4386. <label class="form-label">取水距离</label>
  4387. <select id="waterSource" class="form-select">
  4388. <option value="">请选择</option>
  4389. <option value="有消防水">有消防水</option>
  4390. <option value="无消防水">无消防水</option>
  4391. </select>
  4392. </div>
  4393. <div class="form-group">
  4394. <label class="form-label">化粪池排口是否正常</label>
  4395. <select id="septicTank" class="form-select">
  4396. <option value="">请选择</option>
  4397. <option value="是">是</option>
  4398. <option value="否">否</option>
  4399. </select>
  4400. </div>
  4401. </div>
  4402. <!-- 施工助力信息(非必填,多行文本) -->
  4403. <div class="form-group">
  4404. <label class="form-label">施工助力信息</label>
  4405. <textarea id="constructionHelp" class="form-textarea" placeholder="如地库限高、需搭脚手架、登高作业等"></textarea>
  4406. </div>
  4407. <!-- 预计作业量 & 预计工时(一行) -->
  4408. <div class="inline-selector mb-4">
  4409. <div class="form-group">
  4410. <label class="form-label">预计作业量</label>
  4411. <input type="text" id="estimatedQuantity" class="form-input" placeholder="如 2个堵点">
  4412. </div>
  4413. <div class="form-group">
  4414. <label class="form-label">预计工时</label>
  4415. <input type="text" id="estimatedHours" class="form-input" placeholder="如 2小时">
  4416. </div>
  4417. </div>
  4418. <!-- 验收要求 & 是否有前期施工关联(一行) -->
  4419. <div class="inline-selector mb-4">
  4420. <div class="form-group">
  4421. <label class="form-label">验收要求</label>
  4422. <input type="text" id="acceptanceReq" class="form-input" placeholder="如 正常走水">
  4423. </div>
  4424. <div class="form-group">
  4425. <label class="form-label">是否有前期施工关联</label>
  4426. <select id="previousConstruction" class="form-select">
  4427. <option value="">请选择</option>
  4428. <option value="是">是</option>
  4429. <option value="否">否</option>
  4430. </select>
  4431. </div>
  4432. </div>
  4433. <!-- 验收方式 -->
  4434. <div class="form-group">
  4435. <label class="form-label"><span class="text-red-500">*</span>验收方式</label>
  4436. <select id="acceptType" class="form-select">
  4437. <option value="">请选择</option>
  4438. <option value="签署验收计量单">签署验收计量单</option>
  4439. <option value="累计自动计费">累计自动计费</option>
  4440. </select>
  4441. </div>
  4442. <!-- 甲方当事人 -->
  4443. <div class="form-group">
  4444. <label class="form-label"><span class="text-red-500">*</span>甲方当事人</label>
  4445. <div id="partyAContactList">
  4446. <!-- 联系人列表动态生成 -->
  4447. </div>
  4448. <button type="button" class="add-item-btn mt-2" onclick="addPartyAContact()">
  4449. <i class="fas fa-plus"></i> 添加甲方当事人
  4450. </button>
  4451. </div>
  4452. <!-- 备注 -->
  4453. <div class="form-group mb-0">
  4454. <label class="form-label">备注</label>
  4455. <textarea id="remark" class="form-textarea" placeholder="如有其他要求请备注..."></textarea>
  4456. </div>
  4457. </div>
  4458. </div>
  4459. <!-- 底部固定提交按钮 -->
  4460. <div class="fixed bottom-0 left-1/2 transform -translate-x-1/2 w-full max-w-[430px] bg-white border-t border-gray-100 p-4 z-20">
  4461. <button class="w-full py-3 bg-blue-500 text-white rounded-xl font-medium text-base" onclick="submitTask()">
  4462. <i class="fas fa-paper-plane mr-2"></i>提交任务
  4463. </button>
  4464. </div>
  4465. </div>
  4466. <!-- 任务详情页 - 二级页面,隐藏底部导航 -->
  4467. <div id="taskDetailPage" class="page hide-nav">
  4468. <!-- 顶部导航 -->
  4469. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  4470. <div class="flex items-center justify-between">
  4471. <div class="flex items-center">
  4472. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToPage('taskPage')">
  4473. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  4474. </button>
  4475. <h1 class="text-lg font-bold text-gray-800">任务详情</h1>
  4476. </div>
  4477. <button class="text-blue-500 text-sm">
  4478. <i class="fas fa-ellipsis-h"></i>
  4479. </button>
  4480. </div>
  4481. </div>
  4482. <!-- 详情内容 -->
  4483. <div class="px-4 space-y-3 pb-20">
  4484. <!-- 状态标签 -->
  4485. <div class="pt-3 pb-1">
  4486. <span class="status-tag status-scheduling" id="detailStatusTag">调度中</span>
  4487. </div>
  4488. <!-- 项目信息区块 -->
  4489. <div class="detail-block" id="projectBlock">
  4490. <div class="detail-block-header">
  4491. <i class="fas fa-building text-blue-500"></i>
  4492. 项目信息
  4493. </div>
  4494. <div class="detail-row">
  4495. <span class="detail-label">项目名称</span>
  4496. <span class="detail-value font-medium" id="detailProjectName">积丹白鹭</span>
  4497. </div>
  4498. <div class="detail-row">
  4499. <span class="detail-label">合作类型</span>
  4500. <span class="detail-value" id="detailCoopType"><span class="tag tag-blue">包年</span></span>
  4501. </div>
  4502. <div class="detail-row">
  4503. <span class="detail-label">设施类型</span>
  4504. <span class="detail-value" id="detailFacilityType">油污管</span>
  4505. </div>
  4506. <div class="detail-row">
  4507. <span class="detail-label">项目地址</span>
  4508. <span class="detail-value" id="detailAddress">积丹白鹭小区</span>
  4509. </div>
  4510. <div class="detail-row" style="flex-direction: column; align-items: flex-start;">
  4511. <span class="detail-label mb-2">联系人列表</span>
  4512. <div class="w-full" id="detailProjectContacts">
  4513. <!-- 联系人列表动态生成 -->
  4514. </div>
  4515. </div>
  4516. </div>
  4517. <!-- 施工信息区块 -->
  4518. <div class="detail-block" id="constructionBlock">
  4519. <div class="detail-block-header">
  4520. <i class="fas fa-tools text-green-500"></i>
  4521. 施工信息
  4522. </div>
  4523. <div class="detail-row">
  4524. <span class="detail-label">服务时间</span>
  4525. <span class="detail-value" id="detailServiceTime">2024-01-21 09:00</span>
  4526. </div>
  4527. <div class="detail-row">
  4528. <span class="detail-label">故障位置</span>
  4529. <span class="detail-value" id="detailFaultLocation">积丹白鹭小区地下停车场B1层</span>
  4530. </div>
  4531. <div class="detail-row">
  4532. <span class="detail-label">地理位置</span>
  4533. <span class="detail-value text-blue-500" id="detailGeoLocation">
  4534. <i class="fas fa-map-marker-alt mr-1"></i>点击查看地图
  4535. </span>
  4536. </div>
  4537. <div class="detail-row" style="flex-direction: column; align-items: flex-start;">
  4538. <span class="detail-label mb-1">故障描述</span>
  4539. <span class="detail-value text-gray-600 text-sm" id="detailFaultDesc">管道堵塞,污水溢出,需要紧急疏通处理</span>
  4540. </div>
  4541. <div class="detail-row" style="flex-direction: column; align-items: flex-start;">
  4542. <span class="detail-label mb-2">故障图片/视频</span>
  4543. <div class="flex gap-2" id="detailMedia">
  4544. <div class="w-16 h-16 bg-gray-100 rounded-lg flex items-center justify-center">
  4545. <i class="fas fa-image text-gray-400"></i>
  4546. </div>
  4547. </div>
  4548. </div>
  4549. <div class="detail-row">
  4550. <span class="detail-label">施工类型</span>
  4551. <span class="detail-value" id="detailServiceType">疏通</span>
  4552. </div>
  4553. <div class="detail-row">
  4554. <span class="detail-label">施工设施</span>
  4555. <span class="detail-value" id="detailFacility">油污管</span>
  4556. </div>
  4557. <div class="detail-row">
  4558. <span class="detail-label">服务方式</span>
  4559. <span class="detail-value" id="detailServiceMode">应急</span>
  4560. </div>
  4561. <div class="detail-row">
  4562. <span class="detail-label">建议出车</span>
  4563. <span class="detail-value" id="detailVehicle">疏通车</span>
  4564. </div>
  4565. <div class="detail-row">
  4566. <span class="detail-label">取水距离</span>
  4567. <span class="detail-value" id="detailWaterSource">有消防水</span>
  4568. </div>
  4569. <div class="detail-row">
  4570. <span class="detail-label">化粪池排口</span>
  4571. <span class="detail-value" id="detailSepticTank">正常</span>
  4572. </div>
  4573. <div class="detail-row" style="flex-direction: column; align-items: flex-start;">
  4574. <span class="detail-label mb-1">施工助力信息</span>
  4575. <span class="detail-value text-gray-600 text-sm" id="detailConstructionHelp">地库限高2.2米,需注意</span>
  4576. </div>
  4577. <div class="detail-row">
  4578. <span class="detail-label">预计作业量</span>
  4579. <span class="detail-value" id="detailEstimatedQuantity">2个堵点</span>
  4580. </div>
  4581. <div class="detail-row">
  4582. <span class="detail-label">预计工时</span>
  4583. <span class="detail-value" id="detailEstimatedHours">2小时</span>
  4584. </div>
  4585. <div class="detail-row">
  4586. <span class="detail-label">验收要求</span>
  4587. <span class="detail-value" id="detailAcceptRequirement">正常走水</span>
  4588. </div>
  4589. <div class="detail-row">
  4590. <span class="detail-label">前期施工关联</span>
  4591. <span class="detail-value" id="detailPreviousConstruction">否</span>
  4592. </div>
  4593. <div class="detail-row">
  4594. <span class="detail-label">验收方式</span>
  4595. <span class="detail-value" id="detailAcceptType">签署验收计量单</span>
  4596. </div>
  4597. <div class="detail-row" style="flex-direction: column; align-items: flex-start;">
  4598. <span class="detail-label mb-2">甲方当事人</span>
  4599. <div class="w-full" id="detailPartyAContacts">
  4600. <!-- 甲方当事人列表动态生成 -->
  4601. </div>
  4602. </div>
  4603. <div class="detail-row" style="flex-direction: column; align-items: flex-start;">
  4604. <span class="detail-label mb-1">备注</span>
  4605. <span class="detail-value text-gray-600 text-sm" id="detailRemark">-</span>
  4606. </div>
  4607. </div>
  4608. <!-- 任务进度区块 -->
  4609. <div class="detail-block">
  4610. <div class="detail-block-header">
  4611. <i class="fas fa-tasks text-purple-500"></i>
  4612. 任务进度
  4613. </div>
  4614. <div class="p-4">
  4615. <div class="flex justify-between items-center mb-2">
  4616. <span class="text-gray-500 text-xs">发布</span>
  4617. <span class="text-gray-500 text-xs">调度确认</span>
  4618. <span class="text-gray-500 text-xs">施工</span>
  4619. <span class="text-gray-500 text-xs">完成</span>
  4620. </div>
  4621. <div class="progress-bar-track" style="height: 6px;">
  4622. <div class="progress-bar-fill" id="detailProgressFill" style="width: 25%"></div>
  4623. <div class="progress-bar-step" id="detailStep1" style="width: 16px; height: 16px;"></div>
  4624. <div class="progress-bar-step" id="detailStep2" style="width: 16px; height: 16px;"></div>
  4625. <div class="progress-bar-step" id="detailStep3" style="width: 16px; height: 16px;"></div>
  4626. <div class="progress-bar-step" id="detailStep4" style="width: 16px; height: 16px;"></div>
  4627. </div>
  4628. </div>
  4629. </div>
  4630. <!-- 处理记录区块 -->
  4631. <div class="detail-block" id="recordBlock">
  4632. <div class="detail-block-header">
  4633. <i class="fas fa-history text-orange-500"></i>
  4634. 处理记录
  4635. </div>
  4636. <div id="timelineRecords">
  4637. <!-- 时间线记录动态生成 -->
  4638. </div>
  4639. </div>
  4640. <!-- 操作日志 -->
  4641. <div class="detail-block">
  4642. <div class="detail-block-header">
  4643. <i class="fas fa-list-alt text-green-500"></i>
  4644. 操作日志
  4645. </div>
  4646. <div class="p-4 space-y-3" id="sales_taskLogList">
  4647. <div class="flex items-start text-sm">
  4648. <span class="text-gray-400 w-20 flex-shrink-0">04-21 09:30</span>
  4649. <div class="flex-1">
  4650. <span class="text-gray-800">销售 李明</span>
  4651. <span class="text-gray-500">发布了任务</span>
  4652. </div>
  4653. </div>
  4654. <div class="flex items-start text-sm">
  4655. <span class="text-gray-400 w-20 flex-shrink-0">04-21 10:15</span>
  4656. <div class="flex-1">
  4657. <span class="text-gray-800">调度 张调度</span>
  4658. <span class="text-gray-500">已安排班组:工程一班</span>
  4659. </div>
  4660. </div>
  4661. </div>
  4662. </div>
  4663. <!-- 补充信息按钮 -->
  4664. <button class="w-full py-3 bg-white border border-gray-200 text-gray-600 rounded-xl font-medium flex items-center justify-center" onclick="showSupplementModal()">
  4665. <i class="fas fa-plus mr-2"></i>补充信息
  4666. </button>
  4667. </div>
  4668. <!-- 底部操作按钮 -->
  4669. <div class="fixed bottom-0 left-1/2 transform -translate-x-1/2 w-full max-w-[430px] bg-white border-t border-gray-100 p-4 z-20">
  4670. <div class="flex gap-3" id="detailActions">
  4671. <button class="flex-1 py-3 bg-white border border-gray-200 text-gray-600 rounded-xl font-medium" onclick="showCancelModal()">
  4672. 取消任务
  4673. </button>
  4674. <button class="flex-1 py-3 bg-blue-500 text-white rounded-xl font-medium" onclick="showToast('催单成功')">
  4675. <i class="fas fa-bell mr-1"></i>催单
  4676. </button>
  4677. </div>
  4678. </div>
  4679. </div>
  4680. <!-- 取消任务模态框 -->
  4681. <div id="cancelModal" class="modal-overlay hidden">
  4682. <div class="modal-content">
  4683. <div class="modal-header">
  4684. <i class="fas fa-exclamation-triangle text-orange-500 mr-2"></i>取消任务
  4685. </div>
  4686. <div class="modal-body">
  4687. <div class="form-group">
  4688. <label class="form-label"><span class="text-red-500">*</span>取消原因(必填)</label>
  4689. <textarea id="cancelReason" class="form-textarea" placeholder="请输入取消原因..."></textarea>
  4690. </div>
  4691. </div>
  4692. <div class="modal-footer">
  4693. <button class="btn-cancel" onclick="hideCancelModal()">取消</button>
  4694. <button class="btn-confirm" onclick="confirmCancel()">确认取消</button>
  4695. </div>
  4696. </div>
  4697. </div>
  4698. <!-- 添加联系人模态框 -->
  4699. <div id="addContactModal" class="modal-overlay hidden add-contact-modal">
  4700. <div class="modal-content">
  4701. <div class="modal-header">
  4702. <i class="fas fa-user-plus text-blue-500 mr-2"></i>添加联系人
  4703. </div>
  4704. <div class="modal-body">
  4705. <div class="form-group">
  4706. <label class="form-label"><span class="text-red-500">*</span>姓名</label>
  4707. <input type="text" id="newContactName" class="form-input" placeholder="请输入联系人姓名">
  4708. </div>
  4709. <div class="form-group">
  4710. <label class="form-label"><span class="text-red-500">*</span>电话</label>
  4711. <input type="tel" id="newContactPhone" class="form-input" placeholder="请输入联系电话">
  4712. </div>
  4713. </div>
  4714. <div class="modal-footer">
  4715. <button class="btn-cancel" onclick="hideAddContactModal()">取消</button>
  4716. <button class="btn-confirm" style="background: #3b82f6;" onclick="confirmAddContact()">添加</button>
  4717. </div>
  4718. </div>
  4719. </div>
  4720. <!-- Toast提示 -->
  4721. <div id="toast" class="hidden"></div>
  4722. </div><!-- salesApp结束 -->
  4723. <!-- 调度端页面 -->
  4724. <div class="app-container" id="dispatchApp">
  4725. <div id="dispatch_homePage" class="page">
  4726. <!-- 顶部欢迎区域 -->
  4727. <div class="bg-gradient-to-r from-blue-500 to-blue-600 px-4 pt-8 pb-6">
  4728. <div class="flex items-center justify-between mb-4">
  4729. <div class="flex items-center">
  4730. <div class="w-12 h-12 bg-white rounded-full flex items-center justify-center mr-3">
  4731. <i class="fas fa-clipboard-list text-blue-500 text-lg"></i>
  4732. </div>
  4733. <div>
  4734. <p class="text-blue-100 text-xs">您好,欢迎回来</p>
  4735. <p class="text-white font-medium">调度中心</p>
  4736. </div>
  4737. </div>
  4738. <button class="w-10 h-10 bg-white/20 rounded-full flex items-center justify-center relative" onclick="goToDispatchPage('dispatch_notificationPage')">
  4739. <i class="fas fa-bell text-white"></i>
  4740. <span class="absolute -top-1 -right-1 w-5 h-5 bg-red-500 rounded-full text-white text-xs flex items-center justify-center">3</span>
  4741. </button>
  4742. </div>
  4743. </div>
  4744. <!-- 主内容区域 -->
  4745. <div class="px-4 -mt-4">
  4746. <!-- 今日任务统计 -->
  4747. <div class="bg-white rounded-xl p-4 mb-4 shadow-sm">
  4748. <h3 class="text-base font-semibold text-gray-800 mb-4">今日任务统计</h3>
  4749. <div class="home-stats-container">
  4750. <div class="stat-card" onclick="goToTaskListFiltered('today')">
  4751. <div class="stat-icon" style="background: #eff6ff; color: #3b82f6;">
  4752. <i class="fas fa-tasks"></i>
  4753. </div>
  4754. <div class="stat-value">15</div>
  4755. <div class="stat-label">今日任务</div>
  4756. </div>
  4757. <div class="stat-card" onclick="goToTaskListFiltered('confirmed')">
  4758. <div class="stat-icon" style="background: #fef9c3; color: #a16207;">
  4759. <i class="fas fa-clock"></i>
  4760. </div>
  4761. <div class="stat-value">5</div>
  4762. <div class="stat-label">待排班</div>
  4763. </div>
  4764. <div class="stat-card" onclick="goToTaskListFiltered('processing')">
  4765. <div class="stat-icon" style="background: #fef2f2; color: #ef4444;">
  4766. <i class="fas fa-exclamation-triangle"></i>
  4767. </div>
  4768. <div class="stat-value">2</div>
  4769. <div class="stat-label">应急中</div>
  4770. </div>
  4771. </div>
  4772. </div>
  4773. <!-- 快捷操作入口 -->
  4774. <div class="quick-entry mb-4">
  4775. <div class="quick-item" onclick="goToDispatchPage('dispatch_schedulePage')">
  4776. <div class="quick-icon" style="background: #eff6ff; color: #3b82f6;">
  4777. <i class="fas fa-calendar-alt"></i>
  4778. </div>
  4779. <span class="quick-text">排班管理</span>
  4780. </div>
  4781. <div class="quick-item" onclick="goToDispatchPage('dispatch_taskPage')">
  4782. <div class="quick-icon" style="background: #fef3c7; color: #f59e0b;">
  4783. <i class="fas fa-tasks"></i>
  4784. </div>
  4785. <span class="quick-text">任务列表</span>
  4786. </div>
  4787. <div class="quick-item" onclick="goToDispatchPage('dispatch_vehicleListPage')">
  4788. <div class="quick-icon" style="background: #d1fae5; color: #10b981;">
  4789. <i class="fas fa-truck"></i>
  4790. </div>
  4791. <span class="quick-text">车辆管理</span>
  4792. </div>
  4793. <div class="quick-item" onclick="goToDispatchPage('dispatch_visualizationPage')">
  4794. <div class="quick-icon" style="background: #fce7f3; color: #ec4899;">
  4795. <i class="fas fa-chart-line"></i>
  4796. </div>
  4797. <span class="quick-text">可视化</span>
  4798. </div>
  4799. </div>
  4800. <!-- 通知公告区块 -->
  4801. <div class="card p-4 mb-4">
  4802. <div class="flex items-center justify-between mb-4 cursor-pointer" onclick="goToDispatchPage('dispatch_noticeListPage')">
  4803. <h2 class="font-bold text-gray-800 flex items-center">
  4804. <i class="fas fa-bullhorn text-blue-500 mr-2"></i>
  4805. 通知公告
  4806. </h2>
  4807. <span class="text-gray-400 text-xs">更多 <i class="fas fa-chevron-right"></i></span>
  4808. </div>
  4809. <div class="space-y-3">
  4810. <div class="pb-3 border-b border-gray-100 cursor-pointer" onclick="goToDispatchPage('dispatch_noticeDetailPage')">
  4811. <p class="text-gray-800 text-sm mb-1">关于调度系统升级的通知</p>
  4812. <p class="text-gray-400 text-xs">2024-01-20</p>
  4813. </div>
  4814. <div class="cursor-pointer" onclick="goToDispatchPage('dispatch_noticeDetailPage')">
  4815. <p class="text-gray-800 text-sm mb-1">春节期间值班安排公告</p>
  4816. <p class="text-gray-400 text-xs">2024-01-15</p>
  4817. </div>
  4818. </div>
  4819. </div>
  4820. <!-- 待审核任务列表 -->
  4821. <div class="bg-white rounded-xl p-4 mb-4 shadow-sm">
  4822. <div class="flex items-center justify-between mb-4">
  4823. <h3 class="text-base font-semibold text-gray-800">待审核任务</h3>
  4824. <span class="text-xs text-blue-500 cursor-pointer" onclick="goToDispatchPage('dispatch_taskPage')">查看全部 <i class="fas fa-chevron-right"></i></span>
  4825. </div>
  4826. <div id="pendingTaskList">
  4827. <!-- 待审核任务卡片 -->
  4828. <div class="task-card border-l-4 border-orange-400 cursor-pointer" onclick="openTaskDetail('T001')">
  4829. <div class="task-header">
  4830. <span class="task-title">积丹白鹭小区疏通</span>
  4831. <span class="tag tag-orange">待审核</span>
  4832. </div>
  4833. <div class="task-info">
  4834. <i class="fas fa-map-marker-alt w-5"></i> 积丹白鹭小区
  4835. </div>
  4836. <div class="task-info">
  4837. <i class="fas fa-clock w-5"></i> 申请时间:今天 09:30
  4838. </div>
  4839. </div>
  4840. <div class="task-card border-l-4 border-orange-400 cursor-pointer" onclick="openTaskDetail('T002')">
  4841. <div class="task-header">
  4842. <span class="task-title">俊发城应急疏通</span>
  4843. <span class="tag tag-orange">待审核</span>
  4844. </div>
  4845. <div class="task-info">
  4846. <i class="fas fa-map-marker-alt w-5"></i> 俊发城住宅区
  4847. </div>
  4848. <div class="task-info">
  4849. <i class="fas fa-clock w-5"></i> 申请时间:今天 10:15
  4850. </div>
  4851. </div>
  4852. </div>
  4853. </div>
  4854. </div>
  4855. </div>
  4856. <!-- ========== 排班页面 ========== -->
  4857. <div id="dispatch_schedulePage" class="page">
  4858. <!-- 顶部区域 - 简洁版 -->
  4859. <div class="bg-white px-4 pt-8 pb-4 shadow-sm">
  4860. <div class="flex items-center justify-between">
  4861. <h1 class="text-xl font-bold text-gray-800">排班管理</h1>
  4862. <div class="flex items-center gap-2">
  4863. <button class="add-btn px-4 py-2 rounded-lg text-sm font-medium" onclick="openAddScheduleModal()">
  4864. <i class="fas fa-plus mr-1"></i>新增
  4865. </button>
  4866. </div>
  4867. </div>
  4868. <div class="flex items-center justify-between mt-4">
  4869. <div class="calendar-nav">
  4870. <button onclick="changeMonth(-1)"><i class="fas fa-chevron-left"></i></button>
  4871. <button onclick="changeMonth(1)"><i class="fas fa-chevron-right"></i></button>
  4872. </div>
  4873. <span class="calendar-title" id="calendarTitle2">2026年4月</span>
  4874. <div style="width: 64px;"></div>
  4875. </div>
  4876. </div>
  4877. <!-- 主内容区域 -->
  4878. <div class="px-4 -mt-2">
  4879. <!-- 资源状态卡片 -->
  4880. <div class="flex gap-3 mb-4 mt-4">
  4881. <div class="resource-card" onclick="goToDispatchPage('dispatch_onDutyStaffPage')">
  4882. <div class="resource-icon">
  4883. <i class="fas fa-users"></i>
  4884. </div>
  4885. <div class="resource-value">12</div>
  4886. <div class="resource-label">在岗人员</div>
  4887. </div>
  4888. <div class="resource-card" onclick="goToDispatchPage('dispatch_availableVehiclesPage')">
  4889. <div class="resource-icon">
  4890. <i class="fas fa-truck"></i>
  4891. </div>
  4892. <div class="resource-value">8</div>
  4893. <div class="resource-label">可用车辆</div>
  4894. </div>
  4895. <div class="resource-card" onclick="goToDispatchPage('dispatch_emergencyStandbyPage')">
  4896. <div class="resource-icon">
  4897. <i class="fas fa-phone-volume"></i>
  4898. </div>
  4899. <div class="resource-value">3</div>
  4900. <div class="resource-label">应急待命</div>
  4901. </div>
  4902. </div>
  4903. <!-- 日历区域 -->
  4904. <div class="calendar-container" style="margin: 0 0 16px 0;">
  4905. <div class="calendar-weekdays">
  4906. <div class="calendar-weekday">一</div>
  4907. <div class="calendar-weekday">二</div>
  4908. <div class="calendar-weekday">三</div>
  4909. <div class="calendar-weekday">四</div>
  4910. <div class="calendar-weekday">五</div>
  4911. <div class="calendar-weekday">六</div>
  4912. <div class="calendar-weekday">日</div>
  4913. </div>
  4914. <div class="calendar-days" id="calendarDays2">
  4915. <!-- JS生成 -->
  4916. </div>
  4917. </div>
  4918. <!-- 当日排班列表 -->
  4919. <div class="pb-4">
  4920. <div class="flex items-center justify-between mb-3">
  4921. <h3 class="text-base font-semibold text-gray-800" id="scheduleListTitle">4月21日 排班</h3>
  4922. <button class="add-btn px-4 py-2 rounded-lg text-sm font-medium" onclick="openAddScheduleModal()">
  4923. <i class="fas fa-plus mr-1"></i>新增
  4924. </button>
  4925. </div>
  4926. <div id="scheduleList">
  4927. <!-- JS生成 -->
  4928. </div>
  4929. </div>
  4930. </div>
  4931. </div>
  4932. <!-- ========== 任务页面 ========== -->
  4933. <div id="dispatch_taskPage" class="page">
  4934. <!-- 顶部区域 -->
  4935. <div class="bg-white px-4 pt-8 pb-4 shadow-sm">
  4936. <div class="flex items-center justify-between">
  4937. <h1 class="text-xl font-bold text-gray-800">任务管理</h1>
  4938. <button class="add-btn px-4 py-2 rounded-lg text-sm font-medium" onclick="goToDispatchPage('dispatch_publishTaskPage')">
  4939. <i class="fas fa-plus mr-1"></i>新增
  4940. </button>
  4941. </div>
  4942. <!-- 任务状态筛选 -->
  4943. <div class="flex gap-2 mt-4 overflow-x-auto pb-2">
  4944. <button class="task-filter active px-4 py-2 rounded-full text-sm whitespace-nowrap bg-blue-500 text-white" onclick="filterTasks('all')">全部</button>
  4945. <button class="task-filter px-4 py-2 rounded-full text-sm whitespace-nowrap bg-gray-100 text-gray-600" onclick="filterTasks('pending')">待审核</button>
  4946. <button class="task-filter px-4 py-2 rounded-full text-sm whitespace-nowrap bg-gray-100 text-gray-600" onclick="filterTasks('confirmed')">待排班</button>
  4947. <button class="task-filter px-4 py-2 rounded-full text-sm whitespace-nowrap bg-gray-100 text-gray-600" onclick="filterTasks('processing')">进行中</button>
  4948. <button class="task-filter px-4 py-2 rounded-full text-sm whitespace-nowrap bg-gray-100 text-gray-600" onclick="filterTasks('completed')">已完成</button>
  4949. <button class="task-filter px-4 py-2 rounded-full text-sm whitespace-nowrap bg-gray-100 text-gray-600" onclick="filterTasks('rejected')">已驳回</button>
  4950. </div>
  4951. </div>
  4952. <!-- 任务列表 -->
  4953. <div class="px-4 py-4" id="taskListContainer">
  4954. <!-- 待审核任务 -->
  4955. <div class="task-card border-l-4 border-orange-400" data-status="pending" onclick="openTaskDetail('T001')">
  4956. <div class="task-header">
  4957. <span class="task-title">积丹白鹭小区疏通</span>
  4958. <span class="tag tag-orange">待审核</span>
  4959. </div>
  4960. <div class="task-info">
  4961. <i class="fas fa-map-marker-alt w-5 text-gray-400"></i> 积丹白鹭小区A栋
  4962. </div>
  4963. <div class="task-info">
  4964. <i class="fas fa-tools w-5 text-gray-400"></i> 油污管疏通
  4965. </div>
  4966. <div class="task-info">
  4967. <i class="fas fa-clock w-5 text-gray-400"></i> 今天 09:30
  4968. </div>
  4969. <div class="flex justify-between items-center mt-2 pt-2 border-t border-gray-100">
  4970. <span class="text-xs text-gray-400">申请人:李明</span>
  4971. <span class="text-xs text-orange-500">需调度安排</span>
  4972. </div>
  4973. </div>
  4974. <div class="task-card border-l-4 border-orange-400" data-status="pending" onclick="openTaskDetail('T002')">
  4975. <div class="task-header">
  4976. <span class="task-title">俊发城应急疏通</span>
  4977. <span class="tag tag-orange">待审核</span>
  4978. </div>
  4979. <div class="task-info">
  4980. <i class="fas fa-map-marker-alt w-5 text-gray-400"></i> 俊发城住宅区
  4981. </div>
  4982. <div class="task-info">
  4983. <i class="fas fa-tools w-5 text-gray-400"></i> 化粪池清理
  4984. </div>
  4985. <div class="task-info">
  4986. <i class="fas fa-clock w-5 text-gray-400"></i> 今天 10:15
  4987. </div>
  4988. <div class="flex justify-between items-center mt-2 pt-2 border-t border-gray-100">
  4989. <span class="text-xs text-gray-400">申请人:王芳</span>
  4990. <span class="text-xs text-orange-500">需调度安排</span>
  4991. </div>
  4992. </div>
  4993. <!-- 进行中任务 -->
  4994. <div class="task-card border-l-4 border-blue-400" data-status="processing" onclick="openTaskDetail('T003')">
  4995. <div class="task-header">
  4996. <span class="task-title">逸安新城日常维护</span>
  4997. <span class="tag tag-blue">进行中</span>
  4998. </div>
  4999. <div class="task-info">
  5000. <i class="fas fa-map-marker-alt w-5 text-gray-400"></i> 逸安新城A区
  5001. </div>
  5002. <div class="task-info">
  5003. <i class="fas fa-users w-5 text-gray-400"></i> 张师傅组 · 疏通车01
  5004. </div>
  5005. <div class="task-info">
  5006. <i class="fas fa-play-circle w-5 text-gray-400"></i> 开始时间:今天 08:00
  5007. </div>
  5008. </div>
  5009. <!-- 已完成任务 -->
  5010. <div class="task-card border-l-4 border-green-400" data-status="completed" onclick="openTaskDetail('T004')">
  5011. <div class="task-header">
  5012. <span class="task-title">富源同坐管道检修</span>
  5013. <span class="tag tag-green">已完成</span>
  5014. </div>
  5015. <div class="task-info">
  5016. <i class="fas fa-map-marker-alt w-5 text-gray-400"></i> 富源同坐商业广场
  5017. </div>
  5018. <div class="task-info">
  5019. <i class="fas fa-users w-5 text-gray-400"></i> 王师傅组 · 吸污车03
  5020. </div>
  5021. <div class="task-info">
  5022. <i class="fas fa-check-circle w-5 text-gray-400"></i> 完成时间:昨天 16:30
  5023. </div>
  5024. </div>
  5025. <!-- 已驳回任务 -->
  5026. <div class="task-card border-l-4 border-red-400" data-status="rejected" onclick="openTaskDetail('T005')">
  5027. <div class="task-header">
  5028. <span class="task-title">云岩大厦排污</span>
  5029. <span class="tag tag-red">已驳回</span>
  5030. </div>
  5031. <div class="task-info">
  5032. <i class="fas fa-map-marker-alt w-5 text-gray-400"></i> 云岩大厦
  5033. </div>
  5034. <div class="task-info">
  5035. <i class="fas fa-clock w-5 text-gray-400"></i> 申请时间:昨天 14:20
  5036. </div>
  5037. <div class="task-info text-red-500">
  5038. <i class="fas fa-info-circle w-5"></i> 驳回原因:设备临时故障
  5039. </div>
  5040. </div>
  5041. <!-- 待排班任务 -->
  5042. <div class="task-card border-l-4 border-yellow-400" data-status="confirmed" onclick="openTaskDetail('T006')">
  5043. <div class="task-header">
  5044. <span class="task-title">新都国际管道维修</span>
  5045. <span class="tag tag-yellow">待排班</span>
  5046. </div>
  5047. <div class="task-info">
  5048. <i class="fas fa-map-marker-alt w-5 text-gray-400"></i> 新都国际小区
  5049. </div>
  5050. <div class="task-info">
  5051. <i class="fas fa-tools w-5 text-gray-400"></i> 管道维修
  5052. </div>
  5053. <div class="task-info">
  5054. <i class="fas fa-clock w-5 text-gray-400"></i> 今天 11:00
  5055. </div>
  5056. <div class="flex justify-between items-center mt-2 pt-2 border-t border-gray-100">
  5057. <span class="text-xs text-gray-400">申请人:周经理</span>
  5058. <span class="text-xs text-yellow-600">待安排班组</span>
  5059. </div>
  5060. </div>
  5061. </div>
  5062. </div>
  5063. <!-- ========== 我的页面 ========== -->
  5064. <div id="dispatch_myPage" class="page">
  5065. <!-- 顶部用户信息区域 -->
  5066. <div class="bg-gradient-to-br from-blue-900 to-blue-800 text-white pt-10 pb-6 px-5">
  5067. <div class="flex items-center gap-4">
  5068. <div class="w-14 h-14 bg-white/20 rounded-full flex items-center justify-center text-2xl">
  5069. <i class="fas fa-user"></i>
  5070. </div>
  5071. <div>
  5072. <h2 class="text-lg font-bold">张调度</h2>
  5073. <p class="text-blue-200 text-xs">调度中心 · 工号 DIS001</p>
  5074. </div>
  5075. </div>
  5076. </div>
  5077. <!-- 功能列表 -->
  5078. <div class="px-4 -mt-3 space-y-4 pb-4">
  5079. <!-- 基本信息卡片 -->
  5080. <div class="bg-white rounded-xl p-4 shadow-sm">
  5081. <div class="flex justify-between items-center py-2 border-b border-gray-100 cursor-pointer" onclick="showToast('查看基本信息')">
  5082. <span class="text-gray-500 text-sm"><i class="fas fa-building w-5 text-blue-400"></i>部门</span>
  5083. <span class="text-sm">调度中心</span>
  5084. </div>
  5085. <div class="flex justify-between items-center py-2 border-b border-gray-100">
  5086. <span class="text-gray-500 text-sm"><i class="fas fa-id-badge w-5 text-blue-400"></i>职位</span>
  5087. <span class="text-sm">调度主管</span>
  5088. </div>
  5089. <div class="flex justify-between items-center py-2">
  5090. <span class="text-gray-500 text-sm"><i class="fas fa-phone w-5 text-blue-400"></i>电话</span>
  5091. <span class="text-sm">139****6666</span>
  5092. </div>
  5093. </div>
  5094. <!-- 功能入口卡片 -->
  5095. <div class="bg-white rounded-xl p-4 shadow-sm">
  5096. <div class="flex justify-between items-center py-3 border-b border-gray-100 cursor-pointer" onclick="goToDispatchPage('dispatch_basicInfoPage')">
  5097. <span class="text-sm text-gray-700"><i class="fas fa-user-circle text-gray-400 w-6"></i>基本信息</span>
  5098. <i class="fas fa-chevron-right text-gray-300 text-xs"></i>
  5099. </div>
  5100. <div class="flex justify-between items-center py-3 border-b border-gray-100 cursor-pointer" onclick="goToDispatchPage('dispatch_changePasswordPage')">
  5101. <span class="text-sm text-gray-700"><i class="fas fa-lock text-gray-400 w-6"></i>修改密码</span>
  5102. <i class="fas fa-chevron-right text-gray-300 text-xs"></i>
  5103. </div>
  5104. <div class="flex justify-between items-center py-3 border-b border-gray-100 cursor-pointer" onclick="goToDispatchPage('dispatch_notificationPage')">
  5105. <span class="text-sm text-gray-700"><i class="fas fa-bell text-gray-400 w-6"></i>消息通知</span>
  5106. <div class="flex items-center">
  5107. <span class="w-2 h-2 bg-red-500 rounded-full mr-2"></span>
  5108. <i class="fas fa-chevron-right text-gray-300 text-xs"></i>
  5109. </div>
  5110. </div>
  5111. <div class="flex justify-between items-center py-3 cursor-pointer" onclick="goToDispatchPage('dispatch_helpCenterPage')">
  5112. <span class="text-sm text-gray-700"><i class="fas fa-question-circle text-gray-400 w-6"></i>帮助中心</span>
  5113. <i class="fas fa-chevron-right text-gray-300 text-xs"></i>
  5114. </div>
  5115. </div>
  5116. <!-- 退出登录按钮 -->
  5117. <button class="w-full py-3 mt-4 bg-red-500 text-white rounded-xl font-medium cursor-pointer active:bg-red-600 transition-colors" onclick="backToLogin()">
  5118. 退出登录
  5119. </button>
  5120. </div>
  5121. </div>
  5122. <!-- ========== 基本信息页 ========== -->
  5123. <div id="dispatch_basicInfoPage" class="page hide-nav">
  5124. <!-- 顶部导航 -->
  5125. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  5126. <div class="flex items-center">
  5127. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_myPage')">
  5128. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  5129. </button>
  5130. <h1 class="text-lg font-bold text-gray-800">基本信息</h1>
  5131. </div>
  5132. </div>
  5133. <!-- 基本信息内容 -->
  5134. <div class="px-4 py-4">
  5135. <div class="bg-white rounded-xl p-4 shadow-sm">
  5136. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  5137. <span class="text-gray-500 text-sm"><i class="fas fa-user w-5 text-blue-400"></i>姓名</span>
  5138. <span class="text-sm text-gray-800">张调度</span>
  5139. </div>
  5140. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  5141. <span class="text-gray-500 text-sm"><i class="fas fa-building w-5 text-blue-400"></i>部门</span>
  5142. <span class="text-sm text-gray-800">调度中心</span>
  5143. </div>
  5144. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  5145. <span class="text-gray-500 text-sm"><i class="fas fa-id-badge w-5 text-blue-400"></i>职位</span>
  5146. <span class="text-sm text-gray-800">调度主管</span>
  5147. </div>
  5148. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  5149. <span class="text-gray-500 text-sm"><i class="fas fa-id-card w-5 text-blue-400"></i>工号</span>
  5150. <span class="text-sm text-gray-800">DIS001</span>
  5151. </div>
  5152. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  5153. <span class="text-gray-500 text-sm"><i class="fas fa-phone w-5 text-blue-400"></i>电话</span>
  5154. <span class="text-sm text-gray-800">139****6666</span>
  5155. </div>
  5156. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  5157. <span class="text-gray-500 text-sm"><i class="fas fa-envelope w-5 text-blue-400"></i>邮箱</span>
  5158. <span class="text-sm text-gray-800">zhang@qingdaofu.com</span>
  5159. </div>
  5160. <div class="flex items-center justify-between py-3">
  5161. <span class="text-gray-500 text-sm"><i class="fas fa-calendar w-5 text-blue-400"></i>入职日期</span>
  5162. <span class="text-sm text-gray-800">2022-03-15</span>
  5163. </div>
  5164. </div>
  5165. <div class="mt-4">
  5166. <button class="w-full py-3 bg-blue-500 text-white rounded-xl font-medium" onclick="showToast('编辑功能开发中')">
  5167. <i class="fas fa-edit mr-2"></i>编辑信息
  5168. </button>
  5169. </div>
  5170. </div>
  5171. </div>
  5172. <!-- ========== 修改密码页 ========== -->
  5173. <div id="dispatch_changePasswordPage" class="page hide-nav">
  5174. <!-- 顶部导航 -->
  5175. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  5176. <div class="flex items-center">
  5177. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_myPage')">
  5178. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  5179. </button>
  5180. <h1 class="text-lg font-bold text-gray-800">修改密码</h1>
  5181. </div>
  5182. </div>
  5183. <!-- 修改密码表单 -->
  5184. <div class="px-4 py-4">
  5185. <div class="bg-white rounded-xl p-4 shadow-sm">
  5186. <div class="form-group">
  5187. <label class="form-label"><span class="text-red-500">*</span>当前密码</label>
  5188. <input type="password" id="dispatchCurrentPassword" class="form-input" placeholder="请输入当前密码">
  5189. </div>
  5190. <div class="form-group">
  5191. <label class="form-label"><span class="text-red-500">*</span>新密码</label>
  5192. <input type="password" id="dispatchNewPassword" class="form-input" placeholder="请输入新密码(6-20位)">
  5193. </div>
  5194. <div class="form-group mb-0">
  5195. <label class="form-label"><span class="text-red-500">*</span>确认新密码</label>
  5196. <input type="password" id="dispatchConfirmNewPassword" class="form-input" placeholder="请再次输入新密码">
  5197. </div>
  5198. <div class="mt-4">
  5199. <div class="bg-blue-50 rounded-lg p-3 mb-4">
  5200. <p class="text-blue-600 text-sm"><i class="fas fa-info-circle mr-1"></i>密码要求:</p>
  5201. <ul class="text-gray-500 text-xs mt-2 space-y-1">
  5202. <li>• 长度6-20位</li>
  5203. <li>• 必须包含字母和数字</li>
  5204. <li>• 不能与当前密码相同</li>
  5205. </ul>
  5206. </div>
  5207. <button class="w-full py-3 bg-blue-500 text-white rounded-xl font-medium" onclick="submitDispatchChangePassword()">
  5208. 确认修改
  5209. </button>
  5210. </div>
  5211. </div>
  5212. </div>
  5213. </div>
  5214. <!-- ========== 帮助中心页 ========== -->
  5215. <div id="dispatch_helpCenterPage" class="page hide-nav">
  5216. <!-- 顶部导航 -->
  5217. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  5218. <div class="flex items-center">
  5219. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_myPage')">
  5220. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  5221. </button>
  5222. <h1 class="text-lg font-bold text-gray-800">帮助中心</h1>
  5223. </div>
  5224. </div>
  5225. <!-- 帮助中心内容 -->
  5226. <div class="px-4 py-4">
  5227. <!-- 常见问题 -->
  5228. <div class="bg-white rounded-xl p-4 mb-4 shadow-sm">
  5229. <h3 class="text-base font-semibold text-gray-800 mb-4"><i class="fas fa-question-circle text-blue-500 mr-2"></i>常见问题</h3>
  5230. <div class="space-y-3">
  5231. <div class="border-b border-gray-100 pb-3">
  5232. <div class="flex justify-between items-center cursor-pointer" onclick="toggleDispatchFaq(this)">
  5233. <span class="text-sm text-gray-700">如何审核任务工单?</span>
  5234. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  5235. </div>
  5236. <div class="hidden mt-2 text-gray-500 text-sm">
  5237. 进入"任务"页面,点击待审核任务卡片,查看详情后点击"确认"或"驳回"按钮即可。
  5238. </div>
  5239. </div>
  5240. <div class="border-b border-gray-100 pb-3">
  5241. <div class="flex justify-between items-center cursor-pointer" onclick="toggleDispatchFaq(this)">
  5242. <span class="text-sm text-gray-700">如何安排班组和车辆?</span>
  5243. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  5244. </div>
  5245. <div class="hidden mt-2 text-gray-500 text-sm">
  5246. 在任务详情页确认任务后,选择可用的班组和车辆进行分配。
  5247. </div>
  5248. </div>
  5249. <div class="border-b border-gray-100 pb-3">
  5250. <div class="flex justify-between items-center cursor-pointer" onclick="toggleDispatchFaq(this)">
  5251. <span class="text-sm text-gray-700">如何查看资源状态?</span>
  5252. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  5253. </div>
  5254. <div class="hidden mt-2 text-gray-500 text-sm">
  5255. 在首页或"排班"页面可以查看人员、车辆的实时状态和可用情况。
  5256. </div>
  5257. </div>
  5258. <div class="border-b border-gray-100 pb-3">
  5259. <div class="flex justify-between items-center cursor-pointer" onclick="toggleDispatchFaq(this)">
  5260. <span class="text-sm text-gray-700">如何创建月计划排班?</span>
  5261. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  5262. </div>
  5263. <div class="hidden mt-2 text-gray-500 text-sm">
  5264. 在"排班"页面点击"添加排班",选择日期和班组车辆,设置为"月计划"类型即可。
  5265. </div>
  5266. </div>
  5267. <div>
  5268. <div class="flex justify-between items-center cursor-pointer" onclick="toggleDispatchFaq(this)">
  5269. <span class="text-sm text-gray-700">如何联系相关人员?</span>
  5270. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  5271. </div>
  5272. <div class="hidden mt-2 text-gray-500 text-sm">
  5273. 可以在任务详情中查看申请人联系方式,或通过调度中心电话联系施工班组。
  5274. </div>
  5275. </div>
  5276. </div>
  5277. </div>
  5278. <!-- 联系客服 -->
  5279. <div class="bg-white rounded-xl p-4 shadow-sm">
  5280. <h3 class="text-base font-semibold text-gray-800 mb-4"><i class="fas fa-headset text-green-500 mr-2"></i>联系支持</h3>
  5281. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  5282. <div class="flex items-center">
  5283. <i class="fas fa-phone text-blue-500 mr-3"></i>
  5284. <span class="text-sm text-gray-700">技术支持</span>
  5285. </div>
  5286. <span class="text-blue-500 text-sm">400-888-8888</span>
  5287. </div>
  5288. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  5289. <div class="flex items-center">
  5290. <i class="fas fa-envelope text-blue-500 mr-3"></i>
  5291. <span class="text-sm text-gray-700">电子邮箱</span>
  5292. </div>
  5293. <span class="text-gray-600 text-sm">support@qingdaofu.com</span>
  5294. </div>
  5295. <div class="flex items-center justify-between py-3">
  5296. <div class="flex items-center">
  5297. <i class="fas fa-clock text-blue-500 mr-3"></i>
  5298. <span class="text-sm text-gray-700">服务时间</span>
  5299. </div>
  5300. <span class="text-gray-600 text-sm">7×24小时</span>
  5301. </div>
  5302. </div>
  5303. </div>
  5304. </div>
  5305. <!-- ========== 通知公告列表页 ========== -->
  5306. <div id="dispatch_noticeListPage" class="page hide-nav">
  5307. <!-- 顶部导航 -->
  5308. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  5309. <div class="flex items-center">
  5310. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_homePage')">
  5311. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  5312. </button>
  5313. <h1 class="text-lg font-bold text-gray-800">通知公告</h1>
  5314. </div>
  5315. </div>
  5316. <!-- 公告列表 -->
  5317. <div class="bg-white">
  5318. <div class="notice-item" onclick="goToDispatchPage('dispatch_noticeDetailPage')">
  5319. <div class="flex justify-between items-start mb-2">
  5320. <h3 class="font-medium text-gray-800 flex-1 pr-2">关于调度系统升级的通知</h3>
  5321. <span class="text-gray-400 text-xs whitespace-nowrap">01-20</span>
  5322. </div>
  5323. <p class="text-gray-500 text-sm line-clamp-2">为提升系统性能和服务稳定性,计划于近期进行系统升级...</p>
  5324. </div>
  5325. <div class="notice-item" onclick="goToDispatchPage('dispatch_noticeDetailPage')">
  5326. <div class="flex justify-between items-start mb-2">
  5327. <h3 class="font-medium text-gray-800 flex-1 pr-2">春节期间值班安排公告</h3>
  5328. <span class="text-gray-400 text-xs whitespace-nowrap">01-15</span>
  5329. </div>
  5330. <p class="text-gray-500 text-sm line-clamp-2">根据国家法定节假日安排,结合公司实际情况,现对春节期间的服务工作进行如下调整...</p>
  5331. </div>
  5332. <div class="notice-item" onclick="goToDispatchPage('dispatch_noticeDetailPage')">
  5333. <div class="flex justify-between items-start mb-2">
  5334. <h3 class="font-medium text-gray-800 flex-1 pr-2">新增服务类型标准说明</h3>
  5335. <span class="text-gray-400 text-xs whitespace-nowrap">01-10</span>
  5336. </div>
  5337. <p class="text-gray-500 text-sm line-clamp-2">为更好地满足客户需求,公司新增了高压水射流清洗和CCTV管道检测两项服务...</p>
  5338. </div>
  5339. </div>
  5340. </div>
  5341. <!-- ========== 通知公告详情页 ========== -->
  5342. <div id="dispatch_noticeDetailPage" class="page hide-nav">
  5343. <!-- 顶部导航 -->
  5344. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  5345. <div class="flex items-center">
  5346. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_noticeListPage')">
  5347. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  5348. </button>
  5349. <h1 class="text-lg font-bold text-gray-800">公告详情</h1>
  5350. </div>
  5351. </div>
  5352. <!-- 详情内容 -->
  5353. <div class="px-4 py-4">
  5354. <div class="card p-4">
  5355. <h2 class="text-lg font-bold text-gray-800 mb-2">关于调度系统升级的通知</h2>
  5356. <p class="text-gray-400 text-sm mb-4"><i class="far fa-clock mr-1"></i>2024-01-20 10:30</p>
  5357. <div class="border-t border-gray-100 pt-4">
  5358. <p class="text-gray-600 text-sm leading-relaxed mb-4">
  5359. 各位调度同事:
  5360. </p>
  5361. <p class="text-gray-600 text-sm leading-relaxed mb-4">
  5362. 为提升系统性能和服务稳定性,计划于近期进行系统升级。现将有关事项通知如下:
  5363. </p>
  5364. <p class="text-gray-600 text-sm leading-relaxed mb-4">
  5365. <strong>一、升级时间</strong><br>
  5366. 预计升级时间:2024年1月25日 凌晨00:00-06:00
  5367. </p>
  5368. <p class="text-gray-600 text-sm leading-relaxed mb-4">
  5369. <strong>二、升级内容</strong><br>
  5370. 1. 优化任务调度算法<br>
  5371. 2. 新增排班管理功能<br>
  5372. 3. 完善消息通知系统
  5373. </p>
  5374. <p class="text-gray-600 text-sm leading-relaxed mb-4">
  5375. <strong>三、注意事项</strong><br>
  5376. 升级期间系统暂停服务,请提前做好相关工作安排。
  5377. </p>
  5378. <p class="text-gray-600 text-sm leading-relaxed">
  5379. 如有疑问,请联系技术支持。
  5380. </p>
  5381. <p class="text-gray-500 text-sm leading-relaxed mt-4 text-right">
  5382. 调度管理中心<br>
  5383. 2024年1月20日
  5384. </p>
  5385. </div>
  5386. </div>
  5387. </div>
  5388. </div>
  5389. <!-- ========== 在岗人员页 ========== -->
  5390. <div id="dispatch_onDutyStaffPage" class="page hide-nav">
  5391. <!-- 顶部导航 -->
  5392. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  5393. <div class="flex items-center">
  5394. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_schedulePage')">
  5395. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  5396. </button>
  5397. <h1 class="text-lg font-bold text-gray-800">在岗人员</h1>
  5398. </div>
  5399. </div>
  5400. <!-- 人员列表 -->
  5401. <div class="px-4 py-4">
  5402. <div class="space-y-3">
  5403. <div class="card p-4">
  5404. <div class="flex items-center justify-between">
  5405. <div class="flex items-center">
  5406. <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mr-3">
  5407. <i class="fas fa-user text-blue-500"></i>
  5408. </div>
  5409. <div>
  5410. <p class="font-medium text-gray-800">张三</p>
  5411. <p class="text-sm text-gray-500">工程一班 · 班组长</p>
  5412. </div>
  5413. </div>
  5414. <span class="tag tag-green">在岗</span>
  5415. </div>
  5416. <div class="info-expansion">
  5417. <div class="info-expansion-item">
  5418. <span class="label">班组成员</span>
  5419. <span class="value">张三(组长)、李四、王五</span>
  5420. </div>
  5421. <div class="info-expansion-item">
  5422. <span class="label">技能等级</span>
  5423. <span class="value"><span class="tag tag-green text-xs">高级</span></span>
  5424. </div>
  5425. <div class="info-expansion-item">
  5426. <span class="label">持有资质</span>
  5427. <span class="value"><span class="qualification-tag">高压电工</span><span class="qualification-tag">有限空间</span></span>
  5428. </div>
  5429. </div>
  5430. </div>
  5431. <div class="card p-4">
  5432. <div class="flex items-center justify-between">
  5433. <div class="flex items-center">
  5434. <div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mr-3">
  5435. <i class="fas fa-user text-green-500"></i>
  5436. </div>
  5437. <div>
  5438. <p class="font-medium text-gray-800">李四</p>
  5439. <p class="text-sm text-gray-500">工程一班 · 队员</p>
  5440. </div>
  5441. </div>
  5442. <span class="tag tag-green">在岗</span>
  5443. </div>
  5444. </div>
  5445. <div class="card p-4">
  5446. <div class="flex items-center justify-between">
  5447. <div class="flex items-center">
  5448. <div class="w-12 h-12 bg-purple-100 rounded-full flex items-center justify-center mr-3">
  5449. <i class="fas fa-user text-purple-500"></i>
  5450. </div>
  5451. <div>
  5452. <p class="font-medium text-gray-800">王五</p>
  5453. <p class="text-sm text-gray-500">工程二班 · 班组长</p>
  5454. </div>
  5455. </div>
  5456. <span class="tag tag-green">在岗</span>
  5457. </div>
  5458. </div>
  5459. <div class="card p-4">
  5460. <div class="flex items-center justify-between">
  5461. <div class="flex items-center">
  5462. <div class="w-12 h-12 bg-orange-100 rounded-full flex items-center justify-center mr-3">
  5463. <i class="fas fa-user text-orange-500"></i>
  5464. </div>
  5465. <div>
  5466. <p class="font-medium text-gray-800">赵六</p>
  5467. <p class="text-sm text-gray-500">工程二班 · 队员</p>
  5468. </div>
  5469. </div>
  5470. <span class="tag tag-green">在岗</span>
  5471. </div>
  5472. </div>
  5473. <div class="card p-4">
  5474. <div class="flex items-center justify-between">
  5475. <div class="flex items-center">
  5476. <div class="w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mr-3">
  5477. <i class="fas fa-user text-red-500"></i>
  5478. </div>
  5479. <div>
  5480. <p class="font-medium text-gray-800">刘七</p>
  5481. <p class="text-sm text-gray-500">工程三班 · 班组长</p>
  5482. </div>
  5483. </div>
  5484. <span class="tag tag-blue">休息</span>
  5485. </div>
  5486. </div>
  5487. </div>
  5488. </div>
  5489. </div>
  5490. <!-- ========== 可用车辆页 ========== -->
  5491. <div id="dispatch_availableVehiclesPage" class="page hide-nav">
  5492. <!-- 顶部导航 -->
  5493. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  5494. <div class="flex items-center">
  5495. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_schedulePage')">
  5496. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  5497. </button>
  5498. <h1 class="text-lg font-bold text-gray-800">可用车辆</h1>
  5499. </div>
  5500. </div>
  5501. <!-- 车辆列表 -->
  5502. <div class="px-4 py-4">
  5503. <div class="space-y-3">
  5504. <div class="card p-4">
  5505. <div class="flex items-center justify-between">
  5506. <div class="flex items-center">
  5507. <div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mr-3">
  5508. <i class="fas fa-truck text-green-500"></i>
  5509. </div>
  5510. <div>
  5511. <p class="font-medium text-gray-800">疏通车01</p>
  5512. <p class="text-sm text-gray-500">贵A81356</p>
  5513. </div>
  5514. </div>
  5515. <span class="tag tag-green">空闲</span>
  5516. </div>
  5517. <div class="info-expansion">
  5518. <div class="info-expansion-item">
  5519. <span class="label">车辆类型</span>
  5520. <span class="value">联合疏通车</span>
  5521. </div>
  5522. <div class="info-expansion-item">
  5523. <span class="label">车辆尺寸</span>
  5524. <span class="value">7.2×2.3×2.8m</span>
  5525. </div>
  5526. <div class="info-expansion-item">
  5527. <span class="label">空载/满载</span>
  5528. <span class="value">6.5t / 12t</span>
  5529. </div>
  5530. <div class="info-expansion-item">
  5531. <span class="label">驾驶员</span>
  5532. <span class="value">张师傅</span>
  5533. </div>
  5534. </div>
  5535. </div>
  5536. <div class="card p-4">
  5537. <div class="flex items-center justify-between">
  5538. <div class="flex items-center">
  5539. <div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mr-3">
  5540. <i class="fas fa-truck text-green-500"></i>
  5541. </div>
  5542. <div>
  5543. <p class="font-medium text-gray-800">疏通车02</p>
  5544. <p class="text-sm text-gray-500">贵A82345</p>
  5545. </div>
  5546. </div>
  5547. <span class="tag tag-green">空闲</span>
  5548. </div>
  5549. </div>
  5550. <div class="card p-4">
  5551. <div class="flex items-center justify-between">
  5552. <div class="flex items-center">
  5553. <div class="w-12 h-12 bg-orange-100 rounded-full flex items-center justify-center mr-3">
  5554. <i class="fas fa-truck text-orange-500"></i>
  5555. </div>
  5556. <div>
  5557. <p class="font-medium text-gray-800">吸污车03</p>
  5558. <p class="text-sm text-gray-500">贵A83456</p>
  5559. </div>
  5560. </div>
  5561. <span class="tag tag-orange">使用中</span>
  5562. </div>
  5563. </div>
  5564. <div class="card p-4">
  5565. <div class="flex items-center justify-between">
  5566. <div class="flex items-center">
  5567. <div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mr-3">
  5568. <i class="fas fa-truck text-green-500"></i>
  5569. </div>
  5570. <div>
  5571. <p class="font-medium text-gray-800">吸污车04</p>
  5572. <p class="text-sm text-gray-500">贵A84567</p>
  5573. </div>
  5574. </div>
  5575. <span class="tag tag-green">空闲</span>
  5576. </div>
  5577. </div>
  5578. <div class="card p-4">
  5579. <div class="flex items-center justify-between">
  5580. <div class="flex items-center">
  5581. <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mr-3">
  5582. <i class="fas fa-truck text-blue-500"></i>
  5583. </div>
  5584. <div>
  5585. <p class="font-medium text-gray-800">高压清洗车05</p>
  5586. <p class="text-sm text-gray-500">贵A85678</p>
  5587. </div>
  5588. </div>
  5589. <span class="tag tag-green">空闲</span>
  5590. </div>
  5591. </div>
  5592. </div>
  5593. </div>
  5594. </div>
  5595. <!-- ========== 应急待命页 ========== -->
  5596. <div id="dispatch_emergencyStandbyPage" class="page hide-nav">
  5597. <!-- 顶部导航 -->
  5598. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  5599. <div class="flex items-center">
  5600. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_schedulePage')">
  5601. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  5602. </button>
  5603. <h1 class="text-lg font-bold text-gray-800">应急待命</h1>
  5604. </div>
  5605. </div>
  5606. <!-- 应急待命信息 -->
  5607. <div class="px-4 py-4">
  5608. <div class="card p-4 mb-4">
  5609. <div class="flex items-center mb-3">
  5610. <div class="w-10 h-10 bg-red-100 rounded-full flex items-center justify-center mr-3">
  5611. <i class="fas fa-phone-volume text-red-500"></i>
  5612. </div>
  5613. <div>
  5614. <p class="font-medium text-gray-800">应急调度热线</p>
  5615. <p class="text-sm text-gray-500">24小时畅通</p>
  5616. </div>
  5617. </div>
  5618. <p class="text-gray-600 text-sm">紧急情况下,请立即拨打应急热线:400-888-8888</p>
  5619. </div>
  5620. <h3 class="text-base font-semibold text-gray-800 mb-3">待命班组</h3>
  5621. <div class="space-y-3">
  5622. <div class="card p-4">
  5623. <div class="flex items-center justify-between">
  5624. <div class="flex items-center">
  5625. <div class="w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mr-3">
  5626. <i class="fas fa-users text-red-500"></i>
  5627. </div>
  5628. <div>
  5629. <p class="font-medium text-gray-800">应急一班</p>
  5630. <p class="text-sm text-gray-500">组长:陈师傅</p>
  5631. </div>
  5632. </div>
  5633. <span class="tag tag-orange">待命</span>
  5634. </div>
  5635. <div class="mt-3 pt-3 border-t border-gray-100 flex justify-between items-center">
  5636. <span class="text-sm text-gray-500"><i class="fas fa-truck w-4 inline-block"></i>疏通车03 · 贵A89999</span>
  5637. <button class="px-3 py-1 bg-green-500 text-white rounded-lg text-xs">
  5638. <i class="fas fa-phone-alt mr-1"></i>联系
  5639. </button>
  5640. </div>
  5641. </div>
  5642. <div class="card p-4">
  5643. <div class="flex items-center justify-between">
  5644. <div class="flex items-center">
  5645. <div class="w-12 h-12 bg-orange-100 rounded-full flex items-center justify-center mr-3">
  5646. <i class="fas fa-users text-orange-500"></i>
  5647. </div>
  5648. <div>
  5649. <p class="font-medium text-gray-800">应急二班</p>
  5650. <p class="text-sm text-gray-500">组长:周师傅</p>
  5651. </div>
  5652. </div>
  5653. <span class="tag tag-orange">待命</span>
  5654. </div>
  5655. <div class="mt-3 pt-3 border-t border-gray-100 flex justify-between items-center">
  5656. <span class="text-sm text-gray-500"><i class="fas fa-truck w-4 inline-block"></i>高压清洗车02 · 贵A87777</span>
  5657. <button class="px-3 py-1 bg-green-500 text-white rounded-lg text-xs">
  5658. <i class="fas fa-phone-alt mr-1"></i>联系
  5659. </button>
  5660. </div>
  5661. </div>
  5662. <div class="card p-4">
  5663. <div class="flex items-center justify-between">
  5664. <div class="flex items-center">
  5665. <div class="w-12 h-12 bg-yellow-100 rounded-full flex items-center justify-center mr-3">
  5666. <i class="fas fa-users text-yellow-600"></i>
  5667. </div>
  5668. <div>
  5669. <p class="font-medium text-gray-800">应急三班</p>
  5670. <p class="text-sm text-gray-500">组长:吴师傅</p>
  5671. </div>
  5672. </div>
  5673. <span class="tag tag-orange">待命</span>
  5674. </div>
  5675. <div class="mt-3 pt-3 border-t border-gray-100 flex justify-between items-center">
  5676. <span class="text-sm text-gray-500"><i class="fas fa-truck w-4 inline-block"></i>吸污车05 · 贵A86666</span>
  5677. <button class="px-3 py-1 bg-green-500 text-white rounded-lg text-xs">
  5678. <i class="fas fa-phone-alt mr-1"></i>联系
  5679. </button>
  5680. </div>
  5681. </div>
  5682. </div>
  5683. </div>
  5684. </div>
  5685. <!-- ========== 发布任务页 ========== -->
  5686. <div id="dispatch_publishTaskPage" class="page hide-nav">
  5687. <!-- 顶部导航 -->
  5688. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  5689. <div class="flex items-center justify-between">
  5690. <div class="flex items-center">
  5691. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_taskPage')">
  5692. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  5693. </button>
  5694. <h1 class="text-lg font-bold text-gray-800">发布任务</h1>
  5695. </div>
  5696. </div>
  5697. </div>
  5698. <!-- 页面内容 -->
  5699. <div class="px-4 py-4 pb-24">
  5700. <!-- 板块一:项目基本信息 -->
  5701. <div class="card p-4 mb-4" id="dispatchSectionProject">
  5702. <!-- 板块标题 -->
  5703. <div class="flex items-center mb-4">
  5704. <div class="w-8 h-8 bg-blue-100 rounded-lg flex items-center justify-center mr-3">
  5705. <i class="fas fa-building text-blue-500"></i>
  5706. </div>
  5707. <h2 class="text-base font-semibold text-gray-800">项目基本信息</h2>
  5708. </div>
  5709. <!-- 项目选择提示 -->
  5710. <div id="dispatchProjectSelectHint" class="bg-blue-50 rounded-lg px-3 py-2 mb-4 flex items-center">
  5711. <i class="fas fa-info-circle text-blue-500 mr-2 text-sm"></i>
  5712. <span class="text-blue-600 text-sm" id="dispatchProjectHintText">请从项目库选择或新增项目</span>
  5713. </div>
  5714. <!-- 项目选择 -->
  5715. <div class="form-group">
  5716. <label class="form-label"><span class="text-red-500">*</span>选择项目</label>
  5717. <select id="dispatchProjectSelect" class="form-select" onchange="dispatchOnProjectSelectChange()">
  5718. <option value="">请选择项目</option>
  5719. <option value="积丹白鹭">积丹白鹭</option>
  5720. <option value="富源同坐">富源同坐</option>
  5721. <option value="俊发城">俊发城</option>
  5722. <option value="逸安新城A区">逸安新城A区</option>
  5723. <option value="逸安新城B区">逸安新城B区</option>
  5724. <option value="new">+ 新增项目</option>
  5725. </select>
  5726. </div>
  5727. <!-- 已选项目信息(自动带出) -->
  5728. <div id="dispatchProjectAutoInfo" class="bg-green-50 rounded-xl p-3" style="display: none;">
  5729. <div class="flex items-center justify-between mb-3">
  5730. <span class="text-green-600 text-sm font-medium">
  5731. <i class="fas fa-check-circle mr-1"></i>已选择:<span id="dispatchSelectedProjectName"></span>
  5732. </span>
  5733. <button class="text-green-500 text-xs" onclick="dispatchResetProjectSelection()">重新选择</button>
  5734. </div>
  5735. <div class="space-y-2">
  5736. <div class="flex justify-between text-sm">
  5737. <span class="text-gray-500">合作类型:</span>
  5738. <span class="text-gray-700" id="dispatchAutoCoopType">-</span>
  5739. </div>
  5740. <div class="flex justify-between text-sm">
  5741. <span class="text-gray-500">设施类型:</span>
  5742. <span class="text-gray-700" id="dispatchAutoFacilityType">-</span>
  5743. </div>
  5744. <div class="flex justify-between text-sm">
  5745. <span class="text-gray-500">项目地址:</span>
  5746. <span class="text-gray-700" id="dispatchAutoProjectAddress">-</span>
  5747. </div>
  5748. </div>
  5749. </div>
  5750. <!-- 新增项目表单 -->
  5751. <div id="dispatchNewProjectForm" style="display: none;">
  5752. <div class="bg-orange-50 rounded-lg px-3 py-2 mb-4 flex items-center">
  5753. <i class="fas fa-edit text-orange-500 mr-2 text-sm"></i>
  5754. <span class="text-orange-600 text-sm">新增项目 - 请填写以下信息</span>
  5755. </div>
  5756. <div class="form-group">
  5757. <label class="form-label"><span class="text-red-500">*</span>项目名称</label>
  5758. <input type="text" id="dispatchNewProjectName" class="form-input" placeholder="请输入项目名称">
  5759. </div>
  5760. <div class="inline-selector mb-4">
  5761. <div class="form-group">
  5762. <label class="form-label"><span class="text-red-500">*</span>合作类型</label>
  5763. <select id="dispatchNewCoopType" class="form-select">
  5764. <option value="">请选择</option>
  5765. <option value="包年">包年</option>
  5766. <option value="单次">单次</option>
  5767. <option value="季度">季度</option>
  5768. <option value="月付">月付</option>
  5769. </select>
  5770. </div>
  5771. <div class="form-group">
  5772. <label class="form-label"><span class="text-red-500">*</span>设施类型</label>
  5773. <select id="dispatchNewFacilityType" class="form-select">
  5774. <option value="">请选择</option>
  5775. <option value="住宅">住宅</option>
  5776. <option value="商业">商业</option>
  5777. <option value="工业">工业</option>
  5778. <option value="市政">市政</option>
  5779. </select>
  5780. </div>
  5781. </div>
  5782. <div class="form-group">
  5783. <label class="form-label"><span class="text-red-500">*</span>项目地址</label>
  5784. <input type="text" id="dispatchNewProjectAddress" class="form-input" placeholder="请输入项目地址">
  5785. </div>
  5786. </div>
  5787. <!-- 联系人列表 -->
  5788. <div class="form-group mb-0">
  5789. <label class="form-label">联系人</label>
  5790. <div id="dispatchContactListContainer">
  5791. <!-- 联系人列表动态生成 -->
  5792. </div>
  5793. <button type="button" class="add-item-btn mt-2" onclick="dispatchAddContactItem()">
  5794. <i class="fas fa-plus"></i> 添加联系人
  5795. </button>
  5796. </div>
  5797. </div>
  5798. <!-- 板块二:服务信息 -->
  5799. <div class="card p-4" id="dispatchSectionService">
  5800. <!-- 板块标题 -->
  5801. <div class="flex items-center mb-4">
  5802. <div class="w-8 h-8 bg-purple-100 rounded-lg flex items-center justify-center mr-3">
  5803. <i class="fas fa-tools text-purple-500"></i>
  5804. </div>
  5805. <h2 class="text-base font-semibold text-gray-800">服务信息</h2>
  5806. </div>
  5807. <!-- 服务时间 -->
  5808. <div class="form-group">
  5809. <label class="form-label"><span class="text-red-500">*</span>服务时间</label>
  5810. <div class="datetime-input">
  5811. <input type="date" id="dispatchServiceDate" class="form-input">
  5812. <input type="time" id="dispatchServiceTime" class="form-input" style="flex: 0.6;">
  5813. </div>
  5814. </div>
  5815. <!-- 故障位置 -->
  5816. <div class="form-group">
  5817. <div class="auto-filled-label" id="dispatchFaultLocationLabel" style="display: none;">
  5818. <i class="fas fa-magic mr-1"></i>已自动填充
  5819. </div>
  5820. <label class="form-label"><span class="text-red-500">*</span>故障位置</label>
  5821. <input type="text" id="dispatchFaultLocation" class="form-input" placeholder="请输入故障位置">
  5822. </div>
  5823. <!-- 地理位置(地图) -->
  5824. <div class="form-group">
  5825. <label class="form-label">地理位置</label>
  5826. <div class="bg-gray-100 rounded-xl h-24 flex items-center justify-center border border-gray-200 cursor-pointer" onclick="showToast('地图定位功能开发中')">
  5827. <div class="text-center">
  5828. <i class="fas fa-map-marked-alt text-gray-400 text-2xl mb-1"></i>
  5829. <p class="text-gray-400 text-xs">点击获取当前位置</p>
  5830. </div>
  5831. </div>
  5832. </div>
  5833. <!-- 故障描述 -->
  5834. <div class="form-group">
  5835. <label class="form-label"><span class="text-red-500">*</span>故障描述</label>
  5836. <textarea id="dispatchFaultDesc" class="form-textarea" placeholder="请详细描述故障情况..."></textarea>
  5837. </div>
  5838. <!-- 故障图片/视频 -->
  5839. <div class="form-group">
  5840. <label class="form-label">故障图片/视频</label>
  5841. <div class="border-2 border-dashed border-gray-200 rounded-xl p-6 text-center cursor-pointer" onclick="showToast('上传功能开发中')">
  5842. <i class="fas fa-cloud-upload-alt text-gray-300 text-2xl mb-2"></i>
  5843. <p class="text-gray-400 text-sm">点击上传图片或视频</p>
  5844. <p class="text-gray-300 text-xs mt-1">支持 JPG、PNG、MP4 格式</p>
  5845. </div>
  5846. </div>
  5847. <!-- 施工类型 & 施工设施(一行) -->
  5848. <div class="inline-selector mb-4">
  5849. <div class="form-group">
  5850. <label class="form-label"><span class="text-red-500">*</span>施工类型</label>
  5851. <select id="dispatchServiceType" class="form-select">
  5852. <option value="">请选择</option>
  5853. <option value="疏通">疏通</option>
  5854. <option value="清淤">清淤</option>
  5855. <option value="排查">排查</option>
  5856. </select>
  5857. </div>
  5858. <div class="form-group">
  5859. <label class="form-label"><span class="text-red-500">*</span>施工设施</label>
  5860. <select id="dispatchServiceFacilityType" class="form-select">
  5861. <option value="">请选择</option>
  5862. <option value="PVC">PVC</option>
  5863. <option value="直抽直排">直抽直排</option>
  5864. <option value="油污">油污</option>
  5865. <option value="排污">排污</option>
  5866. <option value="油污管">油污管</option>
  5867. <option value="化粪池">化粪池</option>
  5868. </select>
  5869. </div>
  5870. </div>
  5871. <!-- 服务方式 & 建议出车(一行) -->
  5872. <div class="inline-selector mb-4">
  5873. <div class="form-group">
  5874. <label class="form-label"><span class="text-red-500">*</span>服务方式</label>
  5875. <select id="dispatchServiceMode" class="form-select">
  5876. <option value="">请选择</option>
  5877. <option value="应急">应急</option>
  5878. <option value="月计划">月计划</option>
  5879. </select>
  5880. </div>
  5881. <div class="form-group">
  5882. <label class="form-label"><span class="text-red-500">*</span>建议出车</label>
  5883. <select id="dispatchVehicleType" class="form-select">
  5884. <option value="">请选择</option>
  5885. <option value="疏通车">疏通车</option>
  5886. <option value="吸污车">吸污车</option>
  5887. <option value="高压清洗车">高压清洗车</option>
  5888. </select>
  5889. </div>
  5890. </div>
  5891. <!-- 取水距离 & 化粪池排口是否正常(一行) -->
  5892. <div class="inline-selector mb-4">
  5893. <div class="form-group">
  5894. <label class="form-label">取水距离</label>
  5895. <select id="dispatchWaterSource" class="form-select">
  5896. <option value="">请选择</option>
  5897. <option value="有消防水">有消防水</option>
  5898. <option value="无消防水">无消防水</option>
  5899. </select>
  5900. </div>
  5901. <div class="form-group">
  5902. <label class="form-label">化粪池排口是否正常</label>
  5903. <select id="dispatchSepticTank" class="form-select">
  5904. <option value="">请选择</option>
  5905. <option value="是">是</option>
  5906. <option value="否">否</option>
  5907. </select>
  5908. </div>
  5909. </div>
  5910. <!-- 施工助力信息(非必填,多行文本) -->
  5911. <div class="form-group">
  5912. <label class="form-label">施工助力信息</label>
  5913. <textarea id="dispatchConstructionHelp" class="form-textarea" placeholder="如地库限高、需搭脚手架、登高作业等"></textarea>
  5914. </div>
  5915. <!-- 预计作业量 & 预计工时(一行) -->
  5916. <div class="inline-selector mb-4">
  5917. <div class="form-group">
  5918. <label class="form-label">预计作业量</label>
  5919. <input type="text" id="dispatchEstimatedQuantity" class="form-input" placeholder="如 2个堵点">
  5920. </div>
  5921. <div class="form-group">
  5922. <label class="form-label">预计工时</label>
  5923. <input type="text" id="dispatchEstimatedHours" class="form-input" placeholder="如 2小时">
  5924. </div>
  5925. </div>
  5926. <!-- 验收要求 & 是否有前期施工关联(一行) -->
  5927. <div class="inline-selector mb-4">
  5928. <div class="form-group">
  5929. <label class="form-label">验收要求</label>
  5930. <input type="text" id="dispatchAcceptanceReq" class="form-input" placeholder="如 正常走水">
  5931. </div>
  5932. <div class="form-group">
  5933. <label class="form-label">是否有前期施工关联</label>
  5934. <select id="dispatchPreviousConstruction" class="form-select">
  5935. <option value="">请选择</option>
  5936. <option value="是">是</option>
  5937. <option value="否">否</option>
  5938. </select>
  5939. </div>
  5940. </div>
  5941. <!-- 验收方式 -->
  5942. <div class="form-group">
  5943. <label class="form-label"><span class="text-red-500">*</span>验收方式</label>
  5944. <select id="dispatchAcceptType" class="form-select">
  5945. <option value="">请选择</option>
  5946. <option value="签署验收计量单">签署验收计量单</option>
  5947. <option value="累计自动计费">累计自动计费</option>
  5948. </select>
  5949. </div>
  5950. <!-- 甲方当事人 -->
  5951. <div class="form-group">
  5952. <label class="form-label"><span class="text-red-500">*</span>甲方当事人</label>
  5953. <div id="dispatchPartyAContactList">
  5954. <!-- 联系人列表动态生成 -->
  5955. </div>
  5956. <button type="button" class="add-item-btn mt-2" onclick="dispatchAddPartyAContact()">
  5957. <i class="fas fa-plus"></i> 添加甲方当事人
  5958. </button>
  5959. </div>
  5960. <!-- 备注 -->
  5961. <div class="form-group mb-0">
  5962. <label class="form-label">备注</label>
  5963. <textarea id="dispatchRemark" class="form-textarea" placeholder="如有其他要求请备注..."></textarea>
  5964. </div>
  5965. </div>
  5966. </div>
  5967. <!-- 底部固定提交按钮 -->
  5968. <div class="fixed bottom-0 left-1/2 transform -translate-x-1/2 w-full max-w-[430px] bg-white border-t border-gray-100 p-4 z-20">
  5969. <button class="w-full py-3 bg-blue-500 text-white rounded-xl font-medium text-base" onclick="dispatchSubmitTask()">
  5970. <i class="fas fa-paper-plane mr-2"></i>提交任务
  5971. </button>
  5972. </div>
  5973. </div>
  5974. <!-- ========== 任务详情页 ========== -->
  5975. <div id="dispatch_taskDetailPage" class="page hide-nav">
  5976. <!-- 顶部导航 -->
  5977. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  5978. <div class="flex items-center justify-between">
  5979. <div class="flex items-center">
  5980. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_taskPage')">
  5981. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  5982. </button>
  5983. <h1 class="text-lg font-bold text-gray-800">任务详情</h1>
  5984. </div>
  5985. </div>
  5986. </div>
  5987. <!-- 任务详情内容 -->
  5988. <div class="px-4 py-4 pb-32">
  5989. <!-- 基本信息卡片 -->
  5990. <div class="bg-white rounded-xl p-4 shadow-sm mb-4">
  5991. <div class="flex items-center justify-between mb-4">
  5992. <h3 class="text-base font-semibold text-gray-800">基本信息</h3>
  5993. <span class="tag tag-orange" id="taskDetailStatus">待审核</span>
  5994. </div>
  5995. <div class="space-y-3">
  5996. <div class="flex items-start">
  5997. <span class="text-gray-500 text-sm w-24"><i class="fas fa-tasks w-5 text-gray-400"></i>任务名称</span>
  5998. <span class="text-sm text-gray-800 flex-1" id="taskDetailTitle">积丹白鹭小区疏通</span>
  5999. </div>
  6000. <div class="flex items-start">
  6001. <span class="text-gray-500 text-sm w-24"><i class="fas fa-map-marker-alt w-5 text-gray-400"></i>故障位置</span>
  6002. <span class="text-sm text-gray-800 flex-1" id="taskDetailAddress">积丹白鹭小区A栋地下停车场B1层</span>
  6003. </div>
  6004. <div class="flex items-start">
  6005. <span class="text-gray-500 text-sm w-24"><i class="fas fa-tools w-5 text-gray-400"></i>施工类型</span>
  6006. <span class="text-sm text-gray-800 flex-1" id="taskDetailType">疏通</span>
  6007. </div>
  6008. <div class="flex items-start">
  6009. <span class="text-gray-500 text-sm w-24"><i class="fas fa-clock w-5 text-gray-400"></i>服务时间</span>
  6010. <span class="text-sm text-gray-800 flex-1" id="taskDetailTime">2026-04-21 09:30</span>
  6011. </div>
  6012. <div class="flex items-start">
  6013. <span class="text-gray-500 text-sm w-24"><i class="fas fa-user w-5 text-gray-400"></i>申请人</span>
  6014. <span class="text-sm text-gray-800 flex-1" id="taskDetailApplicant">李明</span>
  6015. </div>
  6016. </div>
  6017. </div>
  6018. <!-- 项目信息卡片(新增) -->
  6019. <div class="bg-white rounded-xl p-4 shadow-sm mb-4">
  6020. <h3 class="text-base font-semibold text-gray-800 mb-4"><i class="fas fa-building text-blue-500 mr-2"></i>项目信息</h3>
  6021. <div class="space-y-3">
  6022. <div class="flex items-start">
  6023. <span class="text-gray-500 text-sm w-24"><i class="fas fa-building w-5 text-gray-400"></i>项目名称</span>
  6024. <span class="text-sm text-gray-800 flex-1" id="taskDetailProjectName">积丹白鹭</span>
  6025. </div>
  6026. <div class="flex items-start">
  6027. <span class="text-gray-500 text-sm w-24"><i class="fas fa-handshake w-5 text-gray-400"></i>合作类型</span>
  6028. <span class="text-sm"><span class="tag tag-blue" id="taskDetailCoopType">包年</span></span>
  6029. </div>
  6030. <div class="flex items-start">
  6031. <span class="text-gray-500 text-sm w-24"><i class="fas fa-map-marker-alt w-5 text-gray-400"></i>项目地址</span>
  6032. <span class="text-sm text-gray-800 flex-1" id="taskDetailProjectAddress">昆明市五华区积丹白鹭小区</span>
  6033. </div>
  6034. <div class="flex items-start">
  6035. <span class="text-gray-500 text-sm w-24"><i class="fas fa-users w-5 text-gray-400"></i>联系人</span>
  6036. <span class="text-sm text-gray-800 flex-1" id="taskDetailProjectContacts">张经理 138****1234</span>
  6037. </div>
  6038. </div>
  6039. </div>
  6040. <!-- 故障详情卡片(新增) -->
  6041. <div class="bg-white rounded-xl p-4 shadow-sm mb-4">
  6042. <h3 class="text-base font-semibold text-gray-800 mb-4"><i class="fas fa-map-marker-alt text-red-500 mr-2"></i>故障详情</h3>
  6043. <div class="space-y-3">
  6044. <div class="flex items-start">
  6045. <span class="text-gray-500 text-sm w-24"><i class="fas fa-map-pin w-5 text-gray-400"></i>地理位置</span>
  6046. <span class="text-sm text-blue-500 flex-1 cursor-pointer" id="taskDetailGeoLocation">
  6047. <i class="fas fa-external-link-alt mr-1"></i>点击查看地图
  6048. </span>
  6049. </div>
  6050. <div class="flex items-start" style="flex-direction: column;">
  6051. <span class="text-gray-500 text-sm w-24 mb-1"><i class="fas fa-image w-5 text-gray-400"></i>故障图片/视频</span>
  6052. <div class="flex gap-2 ml-6" id="taskDetailMedia">
  6053. <div class="w-16 h-16 bg-gray-100 rounded-lg flex items-center justify-center cursor-pointer">
  6054. <i class="fas fa-image text-gray-400"></i>
  6055. </div>
  6056. <div class="w-16 h-16 bg-gray-100 rounded-lg flex items-center justify-center cursor-pointer">
  6057. <i class="fas fa-image text-gray-400"></i>
  6058. </div>
  6059. </div>
  6060. </div>
  6061. </div>
  6062. </div>
  6063. <!-- 施工信息卡片 -->
  6064. <div class="bg-white rounded-xl p-4 shadow-sm mb-4">
  6065. <h3 class="text-base font-semibold text-gray-800 mb-4">施工信息</h3>
  6066. <div class="space-y-3">
  6067. <div class="flex items-start">
  6068. <span class="text-gray-500 text-sm w-24">故障描述</span>
  6069. <span class="text-sm text-gray-800 flex-1" id="taskDetailFaultDesc">管道堵塞,污水溢出,需要紧急疏通处理</span>
  6070. </div>
  6071. <div class="flex items-start">
  6072. <span class="text-gray-500 text-sm w-24">施工设施</span>
  6073. <span class="text-sm text-gray-800 flex-1" id="taskDetailFacility">油污管</span>
  6074. </div>
  6075. <div class="flex items-start">
  6076. <span class="text-gray-500 text-sm w-24">服务方式</span>
  6077. <span class="text-sm text-gray-800 flex-1" id="taskDetailServiceMode">应急</span>
  6078. </div>
  6079. <div class="flex items-start">
  6080. <span class="text-gray-500 text-sm w-24">建议出车</span>
  6081. <span class="text-sm text-gray-800 flex-1" id="taskDetailVehicle">疏通车</span>
  6082. </div>
  6083. <div class="flex items-start">
  6084. <span class="text-gray-500 text-sm w-24">取水距离</span>
  6085. <span class="text-sm text-gray-800 flex-1" id="taskDetailWaterSource">有消防水</span>
  6086. </div>
  6087. <div class="flex items-start">
  6088. <span class="text-gray-500 text-sm w-24">化粪池排口</span>
  6089. <span class="text-sm text-gray-800 flex-1" id="taskDetailSepticTank">正常</span>
  6090. </div>
  6091. <div class="flex items-start">
  6092. <span class="text-gray-500 text-sm w-24">施工助力</span>
  6093. <span class="text-sm text-gray-800 flex-1" id="taskDetailConstructionHelp">地库限高2.2米,需注意</span>
  6094. </div>
  6095. <div class="flex items-start">
  6096. <span class="text-gray-500 text-sm w-24">预计作业量</span>
  6097. <span class="text-sm text-gray-800 flex-1" id="taskDetailQuantity">2个堵点</span>
  6098. </div>
  6099. <div class="flex items-start">
  6100. <span class="text-gray-500 text-sm w-24">预计工时</span>
  6101. <span class="text-sm text-gray-800 flex-1" id="taskDetailHours">2小时</span>
  6102. </div>
  6103. <div class="flex items-start">
  6104. <span class="text-gray-500 text-sm w-24">验收要求</span>
  6105. <span class="text-sm text-gray-800 flex-1" id="taskDetailAcceptReq">正常走水</span>
  6106. </div>
  6107. <div class="flex items-start">
  6108. <span class="text-gray-500 text-sm w-24">验收方式</span>
  6109. <span class="text-sm text-gray-800 flex-1" id="taskDetailAcceptType">签署验收计量单</span>
  6110. </div>
  6111. <div class="flex items-start">
  6112. <span class="text-gray-500 text-sm w-24">甲方当事人</span>
  6113. <span class="text-sm text-gray-800 flex-1" id="taskDetailPartyA">张经理 138****1234</span>
  6114. </div>
  6115. <div class="flex items-start">
  6116. <span class="text-gray-500 text-sm w-24">备注</span>
  6117. <span class="text-sm text-gray-800 flex-1 text-red-500" id="taskDetailRemark">A栋厨房管道堵塞,需紧急处理</span>
  6118. </div>
  6119. </div>
  6120. </div>
  6121. <!-- 审核操作卡片(待审核状态显示) -->
  6122. <div class="bg-white rounded-xl p-4 shadow-sm mb-4" id="taskAuditSection">
  6123. <h3 class="text-base font-semibold text-gray-800 mb-4">审核操作</h3>
  6124. <!-- 第一步:确认/驳回按钮 -->
  6125. <div id="auditStep1">
  6126. <p class="text-sm text-gray-500 mb-4">请确认该任务是否可以执行,然后进行后续安排。</p>
  6127. <div class="flex gap-3">
  6128. <button class="btn btn-danger flex-1" onclick="rejectTaskFromDetail()">
  6129. <i class="fas fa-times mr-1"></i>驳回
  6130. </button>
  6131. <button class="btn btn-success flex-1" onclick="confirmTaskStep1()">
  6132. <i class="fas fa-check mr-1"></i>确认
  6133. </button>
  6134. </div>
  6135. </div>
  6136. <!-- 第二步:安排班组(确认后才显示) -->
  6137. <div id="auditStep2" style="display: none;">
  6138. <p class="text-sm text-yellow-600 mb-4">
  6139. <i class="fas fa-info-circle mr-1"></i>任务已确认,请安排班组和车辆
  6140. </p>
  6141. <div class="form-group">
  6142. <label class="form-label">调度班组</label>
  6143. <select class="form-select" id="dispatchTeam">
  6144. <option value="">请选择班组</option>
  6145. <option value="zhang">张师傅组(张三、李四)</option>
  6146. <option value="wang">王师傅组(王五、赵六)</option>
  6147. <option value="liu">刘师傅组(刘七、陈八)</option>
  6148. </select>
  6149. </div>
  6150. <div class="form-group">
  6151. <label class="form-label">调度车辆</label>
  6152. <select class="form-select" id="dispatchVehicle">
  6153. <option value="">请选择车辆</option>
  6154. <option value="v1">疏通车01(贵A81356)</option>
  6155. <option value="v2">疏通车02(贵A82345)</option>
  6156. <option value="v3">吸污车03(贵A83456)</option>
  6157. <option value="v4">吸污车04(贵A84567)</option>
  6158. <option value="v5">高压清洗车05(贵A85678)</option>
  6159. </select>
  6160. </div>
  6161. <div class="form-group">
  6162. <label class="form-label">审核备注(可选)</label>
  6163. <textarea class="form-textarea" id="auditRemark" placeholder="请输入审核备注..."></textarea>
  6164. </div>
  6165. <div class="flex gap-3 mt-4">
  6166. <button class="btn btn-outline flex-1" onclick="cancelConfirmStep()">
  6167. <i class="fas fa-arrow-left mr-1"></i>返回
  6168. </button>
  6169. <button class="btn btn-primary flex-1" onclick="arrangeTeamStep2()">
  6170. <i class="fas fa-check mr-1"></i>安排
  6171. </button>
  6172. </div>
  6173. </div>
  6174. </div>
  6175. <!-- 驳回原因(已驳回状态显示) -->
  6176. <div class="bg-white rounded-xl p-4 shadow-sm mb-4" id="taskRejectSection" style="display: none;">
  6177. <h3 class="text-base font-semibold text-gray-800 mb-4">驳回原因</h3>
  6178. <div class="p-3 bg-red-50 rounded-lg">
  6179. <p class="text-sm text-red-600" id="rejectReason">设备临时故障</p>
  6180. </div>
  6181. </div>
  6182. <!-- 待排班操作卡片(confirmed状态显示) -->
  6183. <div class="bg-white rounded-xl p-4 shadow-sm mb-4" id="taskConfirmSection" style="display: none;">
  6184. <h3 class="text-base font-semibold text-gray-800 mb-4">安排班组</h3>
  6185. <p class="text-sm text-yellow-600 mb-4">
  6186. <i class="fas fa-info-circle mr-1"></i>任务已确认,请安排班组和车辆
  6187. </p>
  6188. <div class="form-group">
  6189. <label class="form-label">调度班组</label>
  6190. <select class="form-select" id="confirmDispatchTeam">
  6191. <option value="">请选择班组</option>
  6192. <option value="zhang">张师傅组(张三、李四)</option>
  6193. <option value="wang">王师傅组(王五、赵六)</option>
  6194. <option value="liu">刘师傅组(刘七、陈八)</option>
  6195. </select>
  6196. </div>
  6197. <div class="form-group">
  6198. <label class="form-label">调度车辆</label>
  6199. <select class="form-select" id="confirmDispatchVehicle">
  6200. <option value="">请选择车辆</option>
  6201. <option value="v1">疏通车01(贵A81356)</option>
  6202. <option value="v2">疏通车02(贵A82345)</option>
  6203. <option value="v3">吸污车03(贵A83456)</option>
  6204. <option value="v4">吸污车04(贵A84567)</option>
  6205. <option value="v5">高压清洗车05(贵A85678)</option>
  6206. </select>
  6207. </div>
  6208. <div class="form-group">
  6209. <label class="form-label">审核备注(可选)</label>
  6210. <textarea class="form-textarea" id="confirmAuditRemark" placeholder="请输入审核备注..."></textarea>
  6211. </div>
  6212. <div class="flex gap-3 mt-4">
  6213. <button class="btn btn-primary flex-1" onclick="arrangeTeamForConfirmed()">
  6214. <i class="fas fa-check mr-1"></i>安排
  6215. </button>
  6216. </div>
  6217. </div>
  6218. <!-- 调度信息(已通过状态显示) -->
  6219. <div class="bg-white rounded-xl p-4 shadow-sm mb-4" id="taskDispatchSection" style="display: none;">
  6220. <h3 class="text-base font-semibold text-gray-800 mb-4">调度信息</h3>
  6221. <div class="space-y-3">
  6222. <div class="flex items-center">
  6223. <span class="text-gray-500 text-sm w-20"><i class="fas fa-users w-5 text-gray-400"></i>执行班组</span>
  6224. <span class="text-sm text-gray-800 flex-1" id="dispatchedTeam">张师傅组</span>
  6225. </div>
  6226. <div class="flex items-center">
  6227. <span class="text-gray-500 text-sm w-20"><i class="fas fa-truck w-5 text-gray-400"></i>调度车辆</span>
  6228. <span class="text-sm text-gray-800 flex-1" id="dispatchedVehicle">疏通车01(贵A81356)</span>
  6229. </div>
  6230. <div class="flex items-center">
  6231. <span class="text-gray-500 text-sm w-20"><i class="fas fa-user w-5 text-gray-400"></i>审核人</span>
  6232. <span class="text-sm text-gray-800 flex-1">张调度</span>
  6233. </div>
  6234. </div>
  6235. </div>
  6236. <!-- 操作日志 -->
  6237. <div class="bg-white rounded-xl p-4 shadow-sm mb-4">
  6238. <h3 class="text-base font-semibold text-gray-800 mb-4"><i class="fas fa-history text-green-500 mr-2"></i>操作日志</h3>
  6239. <div class="space-y-3" id="dispatch_taskLogList">
  6240. <div class="flex items-start text-sm">
  6241. <span class="text-gray-400 w-20 flex-shrink-0">04-21 09:30</span>
  6242. <div class="flex-1">
  6243. <span class="text-gray-800">销售 李明</span>
  6244. <span class="text-gray-500">发布了任务</span>
  6245. </div>
  6246. </div>
  6247. <div class="flex items-start text-sm">
  6248. <span class="text-gray-400 w-20 flex-shrink-0">04-21 10:15</span>
  6249. <div class="flex-1">
  6250. <span class="text-gray-800">调度 张调度</span>
  6251. <span class="text-gray-500">已安排班组:工程一班</span>
  6252. </div>
  6253. </div>
  6254. </div>
  6255. </div>
  6256. </div>
  6257. </div>
  6258. <!-- ========== 人员列表页 ========== -->
  6259. <div id="dispatch_personnelPage" class="page">
  6260. <!-- 顶部导航 -->
  6261. <div class="bg-white px-4 pt-8 pb-4 shadow-sm">
  6262. <div class="flex items-center justify-between">
  6263. <div class="flex items-center">
  6264. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_schedulePage')">
  6265. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  6266. </button>
  6267. <h1 class="text-lg font-bold text-gray-800">人员列表</h1>
  6268. </div>
  6269. <div class="flex items-center gap-2">
  6270. <button class="px-3 py-1.5 bg-blue-500 text-white rounded-lg text-sm" onclick="filterPersonnel('all')">全部</button>
  6271. <button class="px-3 py-1.5 bg-gray-100 rounded-lg text-sm" onclick="filterPersonnel('working')">施工中</button>
  6272. <button class="px-3 py-1.5 bg-gray-100 rounded-lg text-sm" onclick="filterPersonnel('free')">空闲</button>
  6273. </div>
  6274. </div>
  6275. <!-- 统计信息 -->
  6276. <div class="flex justify-around mt-4 py-2 bg-gray-50 rounded-lg">
  6277. <div class="text-center">
  6278. <div class="text-lg font-bold text-blue-600" id="personnelTotal">12</div>
  6279. <div class="text-xs text-gray-500">总人数</div>
  6280. </div>
  6281. <div class="text-center">
  6282. <div class="text-lg font-bold text-orange-500" id="personnelWorking">8</div>
  6283. <div class="text-xs text-gray-500">施工中</div>
  6284. </div>
  6285. <div class="text-center">
  6286. <div class="text-lg font-bold text-green-500" id="personnelFree">4</div>
  6287. <div class="text-xs text-gray-500">空闲</div>
  6288. </div>
  6289. </div>
  6290. </div>
  6291. <!-- 人员列表 -->
  6292. <div class="px-4 py-4" id="personnelList">
  6293. <!-- JS生成 -->
  6294. </div>
  6295. </div>
  6296. <!-- ========== 车辆列表页 ========== -->
  6297. <div id="dispatch_vehicleListPage" class="page">
  6298. <!-- 顶部导航 -->
  6299. <div class="bg-white px-4 pt-8 pb-4 shadow-sm">
  6300. <div class="flex items-center justify-between">
  6301. <div class="flex items-center">
  6302. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_schedulePage')">
  6303. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  6304. </button>
  6305. <h1 class="text-lg font-bold text-gray-800">车辆列表</h1>
  6306. </div>
  6307. <div class="flex items-center gap-2">
  6308. <button class="px-3 py-1.5 bg-blue-500 text-white rounded-lg text-sm" onclick="filterVehicle('all')">全部</button>
  6309. <button class="px-3 py-1.5 bg-gray-100 rounded-lg text-sm" onclick="filterVehicle('working')">施工中</button>
  6310. <button class="px-3 py-1.5 bg-gray-100 rounded-lg text-sm" onclick="filterVehicle('free')">空闲</button>
  6311. </div>
  6312. </div>
  6313. <!-- 统计信息 -->
  6314. <div class="flex justify-around mt-4 py-2 bg-gray-50 rounded-lg">
  6315. <div class="text-center">
  6316. <div class="text-lg font-bold text-blue-600" id="vehicleTotal">10</div>
  6317. <div class="text-xs text-gray-500">总车辆</div>
  6318. </div>
  6319. <div class="text-center">
  6320. <div class="text-lg font-bold text-orange-500" id="vehicleWorking">6</div>
  6321. <div class="text-xs text-gray-500">施工中</div>
  6322. </div>
  6323. <div class="text-center">
  6324. <div class="text-lg font-bold text-green-500" id="vehicleFree">4</div>
  6325. <div class="text-xs text-gray-500">空闲</div>
  6326. </div>
  6327. </div>
  6328. </div>
  6329. <!-- 车辆列表 -->
  6330. <div class="px-4 py-4" id="vehicleList">
  6331. <!-- JS生成 -->
  6332. </div>
  6333. </div>
  6334. <!-- ========== 应急班组页 ========== -->
  6335. <div id="dispatch_emergencyTeamPage" class="page">
  6336. <!-- 顶部导航 -->
  6337. <div class="bg-white px-4 pt-8 pb-4 shadow-sm">
  6338. <div class="flex items-center justify-between">
  6339. <div class="flex items-center">
  6340. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_schedulePage')">
  6341. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  6342. </button>
  6343. <h1 class="text-lg font-bold text-gray-800">应急班组</h1>
  6344. </div>
  6345. </div>
  6346. <!-- 应急状态说明 -->
  6347. <div class="mt-4 p-3 bg-orange-50 rounded-lg flex items-center">
  6348. <i class="fas fa-info-circle text-orange-500 mr-2"></i>
  6349. <span class="text-sm text-orange-600">应急班组处于待命状态,可随时响应紧急任务</span>
  6350. </div>
  6351. </div>
  6352. <!-- 应急班组列表 -->
  6353. <div class="px-4 py-4" id="emergencyTeamList">
  6354. <!-- JS生成 -->
  6355. </div>
  6356. </div>
  6357. <!-- ========== 消息通知页 ========== -->
  6358. <div id="dispatch_notificationPage" class="page">
  6359. <!-- 顶部导航 -->
  6360. <div class="bg-white px-4 pt-8 pb-4 shadow-sm">
  6361. <div class="flex items-center justify-between">
  6362. <div class="flex items-center">
  6363. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_homePage')">
  6364. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  6365. </button>
  6366. <h1 class="text-lg font-bold text-gray-800">消息通知</h1>
  6367. </div>
  6368. <button class="px-3 py-1.5 text-blue-500 text-sm" onclick="markAllRead()">全部已读</button>
  6369. </div>
  6370. <!-- 筛选标签 -->
  6371. <div class="flex gap-2 mt-4">
  6372. <button class="dispatch-notification-tab px-4 py-2 bg-blue-500 text-white rounded-full text-sm" onclick="filterDispatchNotifications('all', this)">全部</button>
  6373. <button class="dispatch-notification-tab px-4 py-2 bg-gray-100 text-gray-600 rounded-full text-sm" onclick="filterDispatchNotifications('task', this)">任务分配</button>
  6374. <button class="dispatch-notification-tab px-4 py-2 bg-gray-100 text-gray-600 rounded-full text-sm" onclick="filterDispatchNotifications('audit', this)">审核结果</button>
  6375. <button class="dispatch-notification-tab px-4 py-2 bg-gray-100 text-gray-600 rounded-full text-sm" onclick="filterDispatchNotifications('system', this)">系统消息</button>
  6376. </div>
  6377. </div>
  6378. <!-- 通知列表 -->
  6379. <div class="px-4 py-4" id="dispatchNotificationList">
  6380. <!-- JS生成 -->
  6381. </div>
  6382. </div>
  6383. <!-- ========== 可视化大屏页 ========== -->
  6384. <div id="dispatch_visualizationPage" class="page">
  6385. <!-- 顶部导航 -->
  6386. <div class="bg-gradient-to-r from-purple-600 to-pink-500 px-4 pt-8 pb-4">
  6387. <div class="flex items-center justify-between">
  6388. <div class="flex items-center">
  6389. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToDispatchPage('dispatch_homePage')">
  6390. <i class="fas fa-arrow-left text-white text-lg"></i>
  6391. </button>
  6392. <h1 class="text-lg font-bold text-white">可视化大屏</h1>
  6393. </div>
  6394. <span class="text-white/80 text-sm" id="vizDate"></span>
  6395. </div>
  6396. </div>
  6397. <!-- 可视化内容 -->
  6398. <div class="px-4 py-4">
  6399. <!-- 今日任务总数 -->
  6400. <div class="bg-white rounded-xl p-4 mb-4 shadow-sm">
  6401. <h3 class="text-sm text-gray-500 mb-2"><i class="fas fa-tasks mr-1 text-blue-500"></i>今日任务</h3>
  6402. <div class="flex items-end">
  6403. <span class="text-4xl font-bold text-gray-800" id="vizTaskTotal">15</span>
  6404. <span class="text-gray-400 ml-2 mb-1">个任务</span>
  6405. </div>
  6406. <div class="flex gap-4 mt-3 pt-3 border-t border-gray-100">
  6407. <div class="text-center flex-1">
  6408. <div class="text-lg font-bold text-orange-500">5</div>
  6409. <div class="text-xs text-gray-400">待排班</div>
  6410. </div>
  6411. <div class="text-center flex-1">
  6412. <div class="text-lg font-bold text-blue-500">8</div>
  6413. <div class="text-xs text-gray-400">进行中</div>
  6414. </div>
  6415. <div class="text-center flex-1">
  6416. <div class="text-lg font-bold text-green-500">2</div>
  6417. <div class="text-xs text-gray-400">已完成</div>
  6418. </div>
  6419. </div>
  6420. </div>
  6421. <!-- 车辆状态 -->
  6422. <div class="bg-white rounded-xl p-4 mb-4 shadow-sm">
  6423. <h3 class="text-sm text-gray-500 mb-3"><i class="fas fa-truck mr-1 text-blue-500"></i>施工车辆状态</h3>
  6424. <div class="flex items-center gap-4">
  6425. <div class="w-20 h-20 rounded-full border-8 border-orange-400 flex items-center justify-center">
  6426. <span class="text-2xl font-bold text-orange-500">6</span>
  6427. </div>
  6428. <div class="flex-1">
  6429. <div class="flex justify-between items-center mb-2">
  6430. <span class="text-sm text-gray-600"><i class="fas fa-circle text-orange-400 text-xs mr-1"></i>施工中</span>
  6431. <span class="text-lg font-bold">6</span>
  6432. </div>
  6433. <div class="flex justify-between items-center">
  6434. <span class="text-sm text-gray-600"><i class="fas fa-circle text-green-400 text-xs mr-1"></i>空闲</span>
  6435. <span class="text-lg font-bold">4</span>
  6436. </div>
  6437. </div>
  6438. </div>
  6439. <div class="mt-3 pt-3 border-t border-gray-100">
  6440. <div class="flex gap-2 overflow-x-auto">
  6441. <span class="px-2 py-1 bg-orange-50 text-orange-600 rounded text-xs whitespace-nowrap">疏通车01 施工中</span>
  6442. <span class="px-2 py-1 bg-orange-50 text-orange-600 rounded text-xs whitespace-nowrap">疏通车02 施工中</span>
  6443. <span class="px-2 py-1 bg-green-50 text-green-600 rounded text-xs whitespace-nowrap">疏通车03 空闲</span>
  6444. <span class="px-2 py-1 bg-orange-50 text-orange-600 rounded text-xs whitespace-nowrap">吸污车01 施工中</span>
  6445. <span class="px-2 py-1 bg-green-50 text-green-600 rounded text-xs whitespace-nowrap">吸污车02 空闲</span>
  6446. </div>
  6447. </div>
  6448. </div>
  6449. <!-- 人员状态 -->
  6450. <div class="bg-white rounded-xl p-4 mb-4 shadow-sm">
  6451. <h3 class="text-sm text-gray-500 mb-3"><i class="fas fa-users mr-1 text-purple-500"></i>人员状态</h3>
  6452. <div class="flex items-center gap-4">
  6453. <div class="w-20 h-20 rounded-full border-8 border-orange-400 flex items-center justify-center">
  6454. <span class="text-2xl font-bold text-orange-500">8</span>
  6455. </div>
  6456. <div class="flex-1">
  6457. <div class="flex justify-between items-center mb-2">
  6458. <span class="text-sm text-gray-600"><i class="fas fa-circle text-orange-400 text-xs mr-1"></i>施工中</span>
  6459. <span class="text-lg font-bold">8</span>
  6460. </div>
  6461. <div class="flex justify-between items-center">
  6462. <span class="text-sm text-gray-600"><i class="fas fa-circle text-green-400 text-xs mr-1"></i>空闲</span>
  6463. <span class="text-lg font-bold">4</span>
  6464. </div>
  6465. </div>
  6466. </div>
  6467. <div class="mt-3 pt-3 border-t border-gray-100">
  6468. <div class="flex gap-2 overflow-x-auto">
  6469. <span class="px-2 py-1 bg-orange-50 text-orange-600 rounded text-xs whitespace-nowrap">张三 施工中</span>
  6470. <span class="px-2 py-1 bg-orange-50 text-orange-600 rounded text-xs whitespace-nowrap">李四 施工中</span>
  6471. <span class="px-2 py-1 bg-green-50 text-green-600 rounded text-xs whitespace-nowrap">王五 空闲</span>
  6472. <span class="px-2 py-1 bg-orange-50 text-orange-600 rounded text-xs whitespace-nowrap">赵六 施工中</span>
  6473. </div>
  6474. </div>
  6475. </div>
  6476. <!-- 应急待命状态 -->
  6477. <div class="bg-white rounded-xl p-4 shadow-sm">
  6478. <h3 class="text-sm text-gray-500 mb-3"><i class="fas fa-phone-volume mr-1 text-red-500"></i>应急待命</h3>
  6479. <div class="flex items-center gap-3">
  6480. <div class="w-12 h-12 bg-red-100 rounded-lg flex items-center justify-center">
  6481. <i class="fas fa-bolt text-red-500 text-xl"></i>
  6482. </div>
  6483. <div class="flex-1">
  6484. <div class="text-xl font-bold text-gray-800">3</div>
  6485. <div class="text-xs text-gray-400">个应急班组待命</div>
  6486. </div>
  6487. <div class="px-3 py-1 bg-green-100 text-green-600 rounded-full text-xs">
  6488. 就绪
  6489. </div>
  6490. </div>
  6491. </div>
  6492. </div>
  6493. </div>
  6494. <!-- ========== 底部导航栏 ========== -->
  6495. <div class="bottom-nav">
  6496. <div class="flex justify-around items-center py-2">
  6497. <div class="nav-item flex flex-col items-center py-1 px-4 cursor-pointer" onclick="goToDispatchPage('dispatch_homePage')" data-page="dispatch_homePage">
  6498. <div class="nav-icon w-10 h-10 rounded-xl flex items-center justify-center mb-1 transition-all">
  6499. <i class="fas fa-home text-lg"></i>
  6500. </div>
  6501. <span class="text-xs">首页</span>
  6502. </div>
  6503. <div class="nav-item flex flex-col items-center py-1 px-4 cursor-pointer" onclick="goToDispatchPage('dispatch_schedulePage')" data-page="dispatch_schedulePage">
  6504. <div class="nav-icon w-10 h-10 rounded-xl flex items-center justify-center mb-1 transition-all">
  6505. <i class="fas fa-calendar-alt text-lg"></i>
  6506. </div>
  6507. <span class="text-xs">排班</span>
  6508. </div>
  6509. <div class="nav-item flex flex-col items-center py-1 px-4 cursor-pointer" onclick="goToDispatchPage('dispatch_taskPage')" data-page="dispatch_taskPage" style="position: relative;">
  6510. <div class="nav-icon w-10 h-10 rounded-xl flex items-center justify-center mb-1 transition-all">
  6511. <i class="fas fa-tasks text-lg"></i>
  6512. </div>
  6513. <span class="text-xs">任务</span>
  6514. <span class="pending-badge" id="pendingBadge">2</span>
  6515. </div>
  6516. <div class="nav-item flex flex-col items-center py-1 px-4 cursor-pointer" onclick="goToDispatchPage('dispatch_myPage')" data-page="dispatch_myPage">
  6517. <div class="nav-icon w-10 h-10 rounded-xl flex items-center justify-center mb-1 transition-all">
  6518. <i class="fas fa-user text-lg"></i>
  6519. </div>
  6520. <span class="text-xs">我的</span>
  6521. </div>
  6522. </div>
  6523. </div>
  6524. <!-- 新增排班弹窗 -->
  6525. <div class="modal-overlay hidden" id="addScheduleModal">
  6526. <div class="modal-content">
  6527. <div class="modal-header">
  6528. <span class="modal-title">新增排班</span>
  6529. <button class="modal-close" onclick="closeAddScheduleModal()">
  6530. <i class="fas fa-times"></i>
  6531. </button>
  6532. </div>
  6533. <div class="modal-body">
  6534. <div class="form-group">
  6535. <label class="form-label">选择班组</label>
  6536. <select class="form-select" id="teamSelect">
  6537. <option value="">请选择班组</option>
  6538. <option value="zhang">张师傅组(张三、李四)</option>
  6539. <option value="wang">王师傅组(王五、赵六)</option>
  6540. <option value="liu">刘师傅组(刘七、陈八)</option>
  6541. </select>
  6542. </div>
  6543. <div class="form-group">
  6544. <label class="form-label">选择车辆</label>
  6545. <select class="form-select" id="vehicleSelect">
  6546. <option value="">请选择车辆</option>
  6547. <option value="v1">疏通车01(贵A81356)</option>
  6548. <option value="v2">疏通车02(贵A82345)</option>
  6549. <option value="v3">吸污车03(贵A83456)</option>
  6550. <option value="v4">吸污车04(贵A84567)</option>
  6551. <option value="v5">高压清洗车05(贵A85678)</option>
  6552. </select>
  6553. </div>
  6554. <div class="form-group">
  6555. <label class="form-label">排班类型</label>
  6556. <div class="type-selector">
  6557. <div class="type-option monthly selected" onclick="selectType('monthly')">
  6558. <i class="fas fa-calendar-check"></i>
  6559. <span>月计划</span>
  6560. </div>
  6561. <div class="type-option emergency" onclick="selectType('emergency')">
  6562. <i class="fas fa-bolt"></i>
  6563. <span>应急</span>
  6564. </div>
  6565. </div>
  6566. </div>
  6567. <div class="form-group">
  6568. <label class="form-label">备注(可选)</label>
  6569. <textarea class="form-textarea" id="scheduleRemark" placeholder="请输入备注信息..."></textarea>
  6570. </div>
  6571. </div>
  6572. <div class="modal-footer">
  6573. <button class="btn btn-outline" onclick="closeAddScheduleModal()">取消</button>
  6574. <button class="btn btn-primary" onclick="confirmAddSchedule()">确认</button>
  6575. </div>
  6576. </div>
  6577. </div>
  6578. <!-- 日期详情弹窗 -->
  6579. <div class="modal-overlay hidden" id="dateDetailModal">
  6580. <div class="modal-content">
  6581. <div class="modal-header">
  6582. <span class="modal-title" id="dateDetailTitle">4月21日 排班详情</span>
  6583. <button class="modal-close" onclick="closeDateDetailModal()">
  6584. <i class="fas fa-times"></i>
  6585. </button>
  6586. </div>
  6587. <div class="modal-body" id="dateDetailList">
  6588. <!-- JS生成 -->
  6589. </div>
  6590. <div class="modal-footer">
  6591. <button class="btn btn-outline" onclick="closeDateDetailModal()">关闭</button>
  6592. <button class="btn btn-primary" onclick="addScheduleForDate()">
  6593. <i class="fas fa-plus mr-1"></i>新增排班
  6594. </button>
  6595. </div>
  6596. </div>
  6597. </div>
  6598. </div><!-- dispatchApp结束 -->
  6599. <!-- 施工端容器 -->
  6600. <div class="app-container" id="constructionApp">
  6601. <!-- ========== 施工端首页 ========== -->
  6602. <div id="construction_homePage" class="page">
  6603. <!-- 顶部欢迎区域 -->
  6604. <div class="bg-gradient-to-r from-blue-500 to-blue-600 px-4 pt-8 pb-6">
  6605. <div class="flex items-center justify-between mb-4">
  6606. <div class="flex items-center">
  6607. <div class="w-12 h-12 bg-white rounded-full flex items-center justify-center mr-3">
  6608. <i class="fas fa-hard-hat text-blue-500 text-lg"></i>
  6609. </div>
  6610. <div>
  6611. <p class="text-blue-100 text-xs">您好,欢迎回来</p>
  6612. <p class="text-white font-medium">张师傅</p>
  6613. </div>
  6614. </div>
  6615. <button class="w-10 h-10 bg-white/20 rounded-full flex items-center justify-center relative" onclick="goToConstructionPage('construction_notificationPage')">
  6616. <i class="fas fa-bell text-white"></i>
  6617. <span class="absolute -top-1 -right-1 w-5 h-5 bg-red-500 rounded-full text-white text-xs flex items-center justify-center">2</span>
  6618. </button>
  6619. </div>
  6620. <div class="bg-white/20 backdrop-blur rounded-xl p-3">
  6621. <p class="text-white text-sm"><i class="fas fa-users mr-2"></i>班组:工程一班</p>
  6622. </div>
  6623. </div>
  6624. <!-- 主内容区域 -->
  6625. <div class="px-4 -mt-4 space-y-4">
  6626. <!-- 数据统计卡片 -->
  6627. <div class="grid grid-cols-3 gap-3">
  6628. <div class="rounded-xl p-3 text-center text-white cursor-pointer" style="background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);" onclick="goToConstructionPage('construction_historyTaskPage')">
  6629. <p class="text-2xl font-bold">156</p>
  6630. <p class="text-xs opacity-90">历史完成</p>
  6631. </div>
  6632. <div class="rounded-xl p-3 text-center text-white cursor-pointer" style="background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);" onclick="goToConstructionPage('construction_taskPage')">
  6633. <p class="text-2xl font-bold">3</p>
  6634. <p class="text-xs opacity-90">当前任务</p>
  6635. </div>
  6636. <div class="rounded-xl p-3 text-center text-white cursor-pointer" style="background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);" onclick="goToConstructionPage('construction_tomorrowTaskPage')">
  6637. <p class="text-2xl font-bold">2</p>
  6638. <p class="text-xs opacity-90">明日任务</p>
  6639. </div>
  6640. </div>
  6641. <!-- 每日任务卡片 -->
  6642. <div class="card p-4 cursor-pointer" onclick="goToConstructionPage('construction_dailyTaskPage')">
  6643. <div class="flex items-center justify-between">
  6644. <div class="flex items-center">
  6645. <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mr-3">
  6646. <i class="fas fa-clipboard-check text-blue-500"></i>
  6647. </div>
  6648. <div>
  6649. <p class="font-semibold text-gray-800">每日任务</p>
  6650. <p class="text-sm text-gray-500">今日检查待完成</p>
  6651. </div>
  6652. </div>
  6653. <div class="flex items-center">
  6654. <span class="w-2 h-2 bg-red-500 rounded-full mr-2"></span>
  6655. <i class="fas fa-chevron-right text-gray-400"></i>
  6656. </div>
  6657. </div>
  6658. </div>
  6659. <!-- 快捷入口 -->
  6660. <div class="card p-4">
  6661. <div class="grid grid-cols-3 gap-3">
  6662. <div class="flex flex-col items-center py-3 cursor-pointer" onclick="goToConstructionPage('construction_taskPage')">
  6663. <div class="w-12 h-12 bg-blue-50 rounded-full flex items-center justify-center mb-2">
  6664. <i class="fas fa-tasks text-blue-500"></i>
  6665. </div>
  6666. <span class="text-sm text-gray-600">我的任务</span>
  6667. </div>
  6668. <div class="flex flex-col items-center py-3 cursor-pointer" onclick="goToConstructionPage('construction_dailyTaskPage')">
  6669. <div class="w-12 h-12 bg-blue-50 rounded-full flex items-center justify-center mb-2">
  6670. <i class="fas fa-truck text-blue-500"></i>
  6671. </div>
  6672. <span class="text-sm text-gray-600">车辆检查</span>
  6673. </div>
  6674. <div class="flex flex-col items-center py-3 cursor-pointer" onclick="goToConstructionPage('construction_helpCenterPage')">
  6675. <div class="w-12 h-12 bg-blue-50 rounded-full flex items-center justify-center mb-2">
  6676. <i class="fas fa-question-circle text-blue-500"></i>
  6677. </div>
  6678. <span class="text-sm text-gray-600">帮助中心</span>
  6679. </div>
  6680. </div>
  6681. </div>
  6682. <!-- 通知公告 -->
  6683. <div class="card p-4">
  6684. <div class="flex items-center justify-between mb-3">
  6685. <h3 class="font-semibold text-gray-800 flex items-center">
  6686. <i class="fas fa-bullhorn text-blue-500 mr-2"></i>
  6687. 通知公告
  6688. </h3>
  6689. <span class="text-xs text-blue-500 cursor-pointer" onclick="goToConstructionPage('construction_noticeListPage')">查看全部 <i class="fas fa-chevron-right"></i></span>
  6690. </div>
  6691. <div class="space-y-3">
  6692. <div class="flex items-start py-2 border-b border-gray-50 cursor-pointer" onclick="goToConstructionPage('construction_noticeDetailPage')">
  6693. <div class="flex-1">
  6694. <p class="text-sm text-gray-800 font-medium">关于规范施工现场安全管理的通知</p>
  6695. <p class="text-xs text-gray-400 mt-1">2026-04-20</p>
  6696. </div>
  6697. <span class="px-2 py-0.5 bg-red-50 text-red-500 text-xs rounded">重要</span>
  6698. </div>
  6699. <div class="flex items-start py-2 border-b border-gray-50 cursor-pointer" onclick="goToConstructionPage('construction_noticeDetailPage')">
  6700. <div class="flex-1">
  6701. <p class="text-sm text-gray-800 font-medium">下周安全培训会议安排</p>
  6702. <p class="text-xs text-gray-400 mt-1">2026-04-18</p>
  6703. </div>
  6704. </div>
  6705. <div class="flex items-start py-2 cursor-pointer" onclick="goToConstructionPage('construction_noticeDetailPage')">
  6706. <div class="flex-1">
  6707. <p class="text-sm text-gray-800 font-medium">设备维护保养规范更新</p>
  6708. <p class="text-xs text-gray-400 mt-1">2026-04-15</p>
  6709. </div>
  6710. </div>
  6711. </div>
  6712. </div>
  6713. <!-- 当前任务预览 -->
  6714. <div class="card p-4">
  6715. <div class="flex items-center justify-between mb-4">
  6716. <h3 class="font-semibold text-gray-800 flex items-center">
  6717. <i class="fas fa-list-alt text-blue-500 mr-2"></i>
  6718. 当前任务
  6719. </h3>
  6720. <span class="text-xs text-blue-500 cursor-pointer" onclick="goToConstructionPage('construction_taskPage')">查看全部 <i class="fas fa-chevron-right"></i></span>
  6721. </div>
  6722. <div class="space-y-3">
  6723. <div class="p-3 bg-gray-50 rounded-lg cursor-pointer" onclick="goToConstructionPage('construction_taskDetailPage')">
  6724. <div class="flex justify-between items-center mb-2">
  6725. <span class="font-medium text-gray-800">积丹白鹭 - 油污管疏通</span>
  6726. <span class="tag tag-orange text-xs">进行中</span>
  6727. </div>
  6728. <p class="text-sm text-gray-500"><i class="fas fa-map-marker-alt w-4"></i>积丹白鹭小区</p>
  6729. </div>
  6730. <div class="p-3 bg-gray-50 rounded-lg cursor-pointer" onclick="goToConstructionPage('construction_taskDetailPage')">
  6731. <div class="flex justify-between items-center mb-2">
  6732. <span class="font-medium text-gray-800">俊发城 - 化粪池清掏</span>
  6733. <span class="tag tag-blue text-xs">待确认</span>
  6734. </div>
  6735. <p class="text-sm text-gray-500"><i class="fas fa-map-marker-alt w-4"></i>俊发城住宅区</p>
  6736. </div>
  6737. </div>
  6738. </div>
  6739. </div>
  6740. <!-- 底部导航 -->
  6741. <div class="bottom-nav">
  6742. <div class="flex justify-around py-2">
  6743. <button class="nav-item active flex flex-col items-center py-1 px-4" onclick="goToConstructionPage('construction_homePage')">
  6744. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all">
  6745. <i class="fas fa-home text-lg"></i>
  6746. </div>
  6747. <span class="text-xs">首页</span>
  6748. </button>
  6749. <button class="nav-item flex flex-col items-center py-1 px-4" onclick="goToConstructionPage('construction_taskPage')">
  6750. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all bg-gray-100">
  6751. <i class="fas fa-tasks text-gray-400 text-lg"></i>
  6752. </div>
  6753. <span class="text-xs text-gray-400">任务</span>
  6754. </button>
  6755. <button class="nav-item flex flex-col items-center py-1 px-4" onclick="goToConstructionPage('construction_myPage')">
  6756. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all bg-gray-100">
  6757. <i class="fas fa-user text-gray-400 text-lg"></i>
  6758. </div>
  6759. <span class="text-xs text-gray-400">我的</span>
  6760. </button>
  6761. </div>
  6762. </div>
  6763. </div>
  6764. <!-- ========== 每日任务页 ========== -->
  6765. <div id="construction_dailyTaskPage" class="page hide-nav">
  6766. <!-- 顶部导航 -->
  6767. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  6768. <div class="flex items-center justify-between">
  6769. <div class="flex items-center">
  6770. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToConstructionPage('construction_homePage')">
  6771. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  6772. </button>
  6773. <h1 class="text-lg font-bold text-gray-800">每日任务</h1>
  6774. </div>
  6775. <span class="text-sm text-green-500">2024-01-21</span>
  6776. </div>
  6777. </div>
  6778. <!-- 检查项目列表 -->
  6779. <div class="px-4 py-4 space-y-4">
  6780. <p class="text-sm text-gray-500 mb-2">请完成以下每日检查项目</p>
  6781. <!-- 车辆检查 -->
  6782. <div class="check-item">
  6783. <div class="check-header">
  6784. <div class="flex items-center">
  6785. <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3">
  6786. <i class="fas fa-truck text-blue-500"></i>
  6787. </div>
  6788. <div>
  6789. <span class="check-title">车辆检查</span>
  6790. <p class="text-xs text-gray-400">检查车辆外观、设备状态</p>
  6791. </div>
  6792. </div>
  6793. <span class="check-status" id="vehicleCheckStatus">未完成</span>
  6794. </div>
  6795. <div class="upload-area" onclick="showToast('拍照上传功能开发中')">
  6796. <i class="fas fa-camera"></i>
  6797. <p>点击拍照上传</p>
  6798. </div>
  6799. </div>
  6800. <!-- 设备检查 -->
  6801. <div class="check-item">
  6802. <div class="check-header">
  6803. <div class="flex items-center">
  6804. <div class="w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center mr-3">
  6805. <i class="fas fa-tools text-orange-500"></i>
  6806. </div>
  6807. <div>
  6808. <span class="check-title">设备检查</span>
  6809. <p class="text-xs text-gray-400">检查施工设备是否齐全</p>
  6810. </div>
  6811. </div>
  6812. <span class="check-status" id="equipmentCheckStatus">未完成</span>
  6813. </div>
  6814. <div class="upload-area" onclick="showToast('拍照上传功能开发中')">
  6815. <i class="fas fa-camera"></i>
  6816. <p>点击拍照上传</p>
  6817. </div>
  6818. </div>
  6819. <!-- 三大系统检查 -->
  6820. <div class="check-item">
  6821. <div class="check-header">
  6822. <div class="flex items-center">
  6823. <div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center mr-3">
  6824. <i class="fas fa-cogs text-green-500"></i>
  6825. </div>
  6826. <div>
  6827. <span class="check-title">三大系统检查</span>
  6828. <p class="text-xs text-gray-400">检查核心系统运行状态</p>
  6829. </div>
  6830. </div>
  6831. <span class="check-status" id="systemCheckStatus">未完成</span>
  6832. </div>
  6833. <div class="space-y-3">
  6834. <div class="upload-area" onclick="showToast('拍照上传功能开发中')">
  6835. <i class="fas fa-camera"></i>
  6836. <p>点击拍照上传</p>
  6837. </div>
  6838. <div class="upload-area" onclick="showToast('视频上传功能开发中')">
  6839. <i class="fas fa-video"></i>
  6840. <p>点击录制视频上传</p>
  6841. </div>
  6842. </div>
  6843. </div>
  6844. <!-- 备注输入 -->
  6845. <div class="mt-4">
  6846. <label class="text-sm text-gray-600 mb-2 block">备注</label>
  6847. <textarea class="w-full border rounded-lg p-3 text-sm" rows="3" id="dailyTaskRemark" placeholder="请输入备注信息(选填)"></textarea>
  6848. </div>
  6849. <!-- 提交按钮 -->
  6850. <button class="w-full py-3 bg-green-500 text-white rounded-xl font-medium mt-4" onclick="submitDailyTask()">
  6851. 提交检查结果
  6852. </button>
  6853. </div>
  6854. </div>
  6855. <!-- ========== 任务页 ========== -->
  6856. <div id="construction_taskPage" class="page">
  6857. <!-- 顶部区域 -->
  6858. <div class="bg-white px-4 pt-8 pb-4 shadow-sm sticky top-0 z-10">
  6859. <div class="flex items-center justify-between">
  6860. <h1 class="text-xl font-bold text-gray-800">我的任务</h1>
  6861. <span class="text-sm text-blue-500">共 <span id="constructionTaskCount">5</span> 个任务</span>
  6862. </div>
  6863. <!-- 筛选标签 -->
  6864. <div class="filter-tabs mt-3">
  6865. <button class="filter-tab active" data-status="all" onclick="filterConstructionTasks('all', this)">全部</button>
  6866. <button class="filter-tab" data-status="待确认" onclick="filterConstructionTasks('待确认', this)">待确认</button>
  6867. <button class="filter-tab" data-status="待出车" onclick="filterConstructionTasks('待出车', this)">待出车</button>
  6868. <button class="filter-tab" data-status="已出车" onclick="filterConstructionTasks('已出车', this)">已出车</button>
  6869. <button class="filter-tab" data-status="施工中" onclick="filterConstructionTasks('施工中', this)">施工中</button>
  6870. <button class="filter-tab" data-status="已到达" onclick="filterConstructionTasks('待验收', this)">待验收</button>
  6871. </div>
  6872. </div>
  6873. <!-- 任务列表 -->
  6874. <div class="px-4 py-4 space-y-3" id="constructionTaskList">
  6875. <!-- 任务卡片1 - 待确认 -->
  6876. <div class="task-card" data-status="待确认" data-step="待确认" onclick="goToConstructionPage('construction_taskDetailPage'); setDetailStatus('待确认')">
  6877. <div class="flex justify-between items-center mb-3">
  6878. <div>
  6879. <span class="font-semibold text-gray-800">俊发城住宅区</span>
  6880. <span class="ml-2 text-xs bg-purple-100 text-purple-600 px-2 py-0.5 rounded">包年</span>
  6881. </div>
  6882. <span class="tag tag-blue">待确认</span>
  6883. </div>
  6884. <div class="text-sm text-gray-600 mb-2">
  6885. <i class="fas fa-tools w-5 text-gray-400"></i>
  6886. <span>化粪池清掏</span>
  6887. </div>
  6888. <div class="text-sm text-gray-500 mb-2">
  6889. <i class="fas fa-clock w-5 text-gray-400"></i>
  6890. <span>服务时间:明天 14:00</span>
  6891. </div>
  6892. <div class="text-sm text-gray-500 mb-3">
  6893. <i class="fas fa-map-marker-alt w-5 text-gray-400"></i>
  6894. <span>俊发城3号楼</span>
  6895. </div>
  6896. <div class="bg-blue-50 rounded-lg p-3">
  6897. <div class="flex justify-between items-center mb-2">
  6898. <span class="text-xs text-gray-500">当前步骤</span>
  6899. <span class="text-xs text-blue-600 font-medium">待确认</span>
  6900. </div>
  6901. <div class="flow-progress">
  6902. <div class="flow-step active">
  6903. <div class="step-icon"><i class="fas fa-spinner text-xs"></i></div>
  6904. <span class="step-label">确认</span>
  6905. </div>
  6906. <div class="flow-step">
  6907. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  6908. <span class="step-label">出车</span>
  6909. </div>
  6910. <div class="flow-step">
  6911. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  6912. <span class="step-label">到达</span>
  6913. </div>
  6914. <div class="flow-step">
  6915. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  6916. <span class="step-label">施工</span>
  6917. </div>
  6918. <div class="flow-step">
  6919. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  6920. <span class="step-label">完成</span>
  6921. </div>
  6922. <div class="flow-step">
  6923. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  6924. <span class="step-label">清洗</span>
  6925. </div>
  6926. <div class="flow-step">
  6927. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  6928. <span class="step-label">验收</span>
  6929. </div>
  6930. </div>
  6931. </div>
  6932. </div>
  6933. <!-- 任务卡片2 - 待出车 -->
  6934. <div class="task-card" data-status="待出车" data-step="待出车" onclick="goToConstructionPage('construction_taskDetailPage'); setDetailStatus('待出车')">
  6935. <div class="flex justify-between items-center mb-3">
  6936. <div>
  6937. <span class="font-semibold text-gray-800">星光商业广场</span>
  6938. <span class="ml-2 text-xs bg-orange-100 text-orange-600 px-2 py-0.5 rounded">加急</span>
  6939. </div>
  6940. <span class="tag tag-orange">待出车</span>
  6941. </div>
  6942. <div class="text-sm text-gray-600 mb-2">
  6943. <i class="fas fa-tools w-5 text-gray-400"></i>
  6944. <span>管道高压清洗</span>
  6945. </div>
  6946. <div class="text-sm text-gray-500 mb-2">
  6947. <i class="fas fa-clock w-5 text-gray-400"></i>
  6948. <span>服务时间:今天 15:00</span>
  6949. </div>
  6950. <div class="text-sm text-gray-500 mb-3">
  6951. <i class="fas fa-map-marker-alt w-5 text-gray-400"></i>
  6952. <span>星光商业广场地下管网</span>
  6953. </div>
  6954. <div class="bg-orange-50 rounded-lg p-3">
  6955. <div class="flex justify-between items-center mb-2">
  6956. <span class="text-xs text-gray-500">当前步骤</span>
  6957. <span class="text-xs text-orange-600 font-medium">待出车</span>
  6958. </div>
  6959. <div class="flow-progress">
  6960. <div class="flow-step completed">
  6961. <div class="step-icon"><i class="fas fa-check text-xs"></i></div>
  6962. <span class="step-label">确认</span>
  6963. </div>
  6964. <div class="flow-step active">
  6965. <div class="step-icon"><i class="fas fa-spinner text-xs"></i></div>
  6966. <span class="step-label">出车</span>
  6967. </div>
  6968. <div class="flow-step">
  6969. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  6970. <span class="step-label">到达</span>
  6971. </div>
  6972. <div class="flow-step">
  6973. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  6974. <span class="step-label">施工</span>
  6975. </div>
  6976. <div class="flow-step">
  6977. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  6978. <span class="step-label">完成</span>
  6979. </div>
  6980. <div class="flow-step">
  6981. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  6982. <span class="step-label">清洗</span>
  6983. </div>
  6984. <div class="flow-step">
  6985. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  6986. <span class="step-label">验收</span>
  6987. </div>
  6988. </div>
  6989. </div>
  6990. </div>
  6991. <!-- 任务卡片3 - 已出车 -->
  6992. <div class="task-card" data-status="已出车" data-step="已出车" onclick="goToConstructionPage('construction_taskDetailPage'); setDetailStatus('已出车')">
  6993. <div class="flex justify-between items-center mb-3">
  6994. <div>
  6995. <span class="font-semibold text-gray-800">逸安新城A区</span>
  6996. <span class="ml-2 text-xs bg-red-100 text-red-600 px-2 py-0.5 rounded">应急</span>
  6997. </div>
  6998. <span class="tag tag-orange">已出车</span>
  6999. </div>
  7000. <div class="text-sm text-gray-600 mb-2">
  7001. <i class="fas fa-tools w-5 text-gray-400"></i>
  7002. <span>应急疏通</span>
  7003. </div>
  7004. <div class="text-sm text-gray-500 mb-2">
  7005. <i class="fas fa-clock w-5 text-gray-400"></i>
  7006. <span>服务时间:今天 08:00</span>
  7007. </div>
  7008. <div class="text-sm text-gray-500 mb-3">
  7009. <i class="fas fa-map-marker-alt w-5 text-gray-400"></i>
  7010. <span>逸安新城A区地下车库</span>
  7011. </div>
  7012. <div class="bg-orange-50 rounded-lg p-3">
  7013. <div class="flex justify-between items-center mb-2">
  7014. <span class="text-xs text-gray-500">当前步骤</span>
  7015. <span class="text-xs text-orange-600 font-medium">已出车</span>
  7016. </div>
  7017. <div class="flow-progress">
  7018. <div class="flow-step completed">
  7019. <div class="step-icon"><i class="fas fa-check text-xs"></i></div>
  7020. <span class="step-label">确认</span>
  7021. </div>
  7022. <div class="flow-step completed">
  7023. <div class="step-icon"><i class="fas fa-check text-xs"></i></div>
  7024. <span class="step-label">出车</span>
  7025. </div>
  7026. <div class="flow-step active">
  7027. <div class="step-icon"><i class="fas fa-spinner text-xs"></i></div>
  7028. <span class="step-label">到达</span>
  7029. </div>
  7030. <div class="flow-step">
  7031. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  7032. <span class="step-label">施工</span>
  7033. </div>
  7034. <div class="flow-step">
  7035. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  7036. <span class="step-label">完成</span>
  7037. </div>
  7038. <div class="flow-step">
  7039. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  7040. <span class="step-label">清洗</span>
  7041. </div>
  7042. <div class="flow-step">
  7043. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  7044. <span class="step-label">验收</span>
  7045. </div>
  7046. </div>
  7047. </div>
  7048. </div>
  7049. <!-- 任务卡片4 - 施工中 -->
  7050. <div class="task-card" data-status="施工中" data-step="施工中" onclick="goToConstructionPage('construction_taskDetailPage'); setDetailStatus('施工中')">
  7051. <div class="flex justify-between items-center mb-3">
  7052. <div>
  7053. <span class="font-semibold text-gray-800">积丹白鹭小区</span>
  7054. <span class="ml-2 text-xs bg-purple-100 text-purple-600 px-2 py-0.5 rounded">包年</span>
  7055. </div>
  7056. <span class="tag tag-green">施工中</span>
  7057. </div>
  7058. <div class="text-sm text-gray-600 mb-2">
  7059. <i class="fas fa-tools w-5 text-gray-400"></i>
  7060. <span>油污管疏通</span>
  7061. </div>
  7062. <div class="text-sm text-gray-500 mb-2">
  7063. <i class="fas fa-clock w-5 text-gray-400"></i>
  7064. <span>服务时间:09:00-12:00</span>
  7065. </div>
  7066. <div class="text-sm text-gray-500 mb-3">
  7067. <i class="fas fa-map-marker-alt w-5 text-gray-400"></i>
  7068. <span>地下停车场B1层</span>
  7069. </div>
  7070. <div class="bg-green-50 rounded-lg p-3">
  7071. <div class="flex justify-between items-center mb-2">
  7072. <span class="text-xs text-gray-500">当前步骤</span>
  7073. <span class="text-xs text-green-600 font-medium">施工中</span>
  7074. </div>
  7075. <div class="flow-progress">
  7076. <div class="flow-step completed">
  7077. <div class="step-icon"><i class="fas fa-check text-xs"></i></div>
  7078. <span class="step-label">确认</span>
  7079. </div>
  7080. <div class="flow-step completed">
  7081. <div class="step-icon"><i class="fas fa-check text-xs"></i></div>
  7082. <span class="step-label">出车</span>
  7083. </div>
  7084. <div class="flow-step completed">
  7085. <div class="step-icon"><i class="fas fa-check text-xs"></i></div>
  7086. <span class="step-label">到达</span>
  7087. </div>
  7088. <div class="flow-step active">
  7089. <div class="step-icon"><i class="fas fa-spinner text-xs"></i></div>
  7090. <span class="step-label">施工</span>
  7091. </div>
  7092. <div class="flow-step">
  7093. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  7094. <span class="step-label">完成</span>
  7095. </div>
  7096. <div class="flow-step">
  7097. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  7098. <span class="step-label">清洗</span>
  7099. </div>
  7100. <div class="flow-step">
  7101. <div class="step-icon"><i class="fas fa-times text-xs"></i></div>
  7102. <span class="step-label">验收</span>
  7103. </div>
  7104. </div>
  7105. </div>
  7106. </div>
  7107. <!-- 任务卡片5 - 待验收 -->
  7108. <div class="task-card" data-status="已到达" data-step="待验收" onclick="goToConstructionPage('construction_taskDetailPage'); setDetailStatus('待验收')">
  7109. <div class="flex justify-between items-center mb-3">
  7110. <div>
  7111. <span class="font-semibold text-gray-800">云锦华庭小区</span>
  7112. <span class="ml-2 text-xs bg-orange-100 text-orange-600 px-2 py-0.5 rounded">应急</span>
  7113. </div>
  7114. <span class="tag tag-purple">待验收</span>
  7115. </div>
  7116. <div class="text-sm text-gray-600 mb-2">
  7117. <i class="fas fa-tools w-5 text-gray-400"></i>
  7118. <span>排水管道维修</span>
  7119. </div>
  7120. <div class="text-sm text-gray-500 mb-2">
  7121. <i class="fas fa-clock w-5 text-gray-400"></i>
  7122. <span>服务时间:昨天 10:00</span>
  7123. </div>
  7124. <div class="text-sm text-gray-500 mb-3">
  7125. <i class="fas fa-map-marker-alt w-5 text-gray-400"></i>
  7126. <span>云锦华庭3栋地下室</span>
  7127. </div>
  7128. <div class="bg-purple-50 rounded-lg p-3">
  7129. <div class="flex justify-between items-center mb-2">
  7130. <span class="text-xs text-gray-500">当前步骤</span>
  7131. <span class="text-xs text-purple-600 font-medium">待验收</span>
  7132. </div>
  7133. <div class="flow-progress">
  7134. <div class="flow-step completed">
  7135. <div class="step-icon"><i class="fas fa-check text-xs"></i></div>
  7136. <span class="step-label">确认</span>
  7137. </div>
  7138. <div class="flow-step completed">
  7139. <div class="step-icon"><i class="fas fa-check text-xs"></i></div>
  7140. <span class="step-label">出车</span>
  7141. </div>
  7142. <div class="flow-step completed">
  7143. <div class="step-icon"><i class="fas fa-check text-xs"></i></div>
  7144. <span class="step-label">到达</span>
  7145. </div>
  7146. <div class="flow-step completed">
  7147. <div class="step-icon"><i class="fas fa-check text-xs"></i></div>
  7148. <span class="step-label">施工</span>
  7149. </div>
  7150. <div class="flow-step completed">
  7151. <div class="step-icon"><i class="fas fa-check text-xs"></i></div>
  7152. <span class="step-label">完成</span>
  7153. </div>
  7154. <div class="flow-step completed">
  7155. <div class="step-icon"><i class="fas fa-check text-xs"></i></div>
  7156. <span class="step-label">清洗</span>
  7157. </div>
  7158. <div class="flow-step active">
  7159. <div class="step-icon"><i class="fas fa-spinner text-xs"></i></div>
  7160. <span class="step-label">验收</span>
  7161. </div>
  7162. </div>
  7163. </div>
  7164. </div>
  7165. </div>
  7166. <!-- 底部导航 -->
  7167. <div class="bottom-nav">
  7168. <div class="flex justify-around py-2">
  7169. <button class="nav-item flex flex-col items-center py-1 px-4" onclick="goToConstructionPage('construction_homePage')">
  7170. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all bg-gray-100">
  7171. <i class="fas fa-home text-gray-400 text-lg"></i>
  7172. </div>
  7173. <span class="text-xs text-gray-400">首页</span>
  7174. </button>
  7175. <button class="nav-item active flex flex-col items-center py-1 px-4" onclick="goToConstructionPage('construction_taskPage')">
  7176. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all">
  7177. <i class="fas fa-tasks text-lg"></i>
  7178. </div>
  7179. <span class="text-xs">任务</span>
  7180. </button>
  7181. <button class="nav-item flex flex-col items-center py-1 px-4" onclick="goToConstructionPage('construction_myPage')">
  7182. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all bg-gray-100">
  7183. <i class="fas fa-user text-gray-400 text-lg"></i>
  7184. </div>
  7185. <span class="text-xs text-gray-400">我的</span>
  7186. </button>
  7187. </div>
  7188. </div>
  7189. </div>
  7190. <div id="construction_taskDetailPage" class="page hide-nav">
  7191. <!-- 顶部导航 -->
  7192. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  7193. <div class="flex items-center justify-between">
  7194. <div class="flex items-center">
  7195. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToConstructionPage('construction_taskPage')">
  7196. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  7197. </button>
  7198. <h1 class="text-lg font-bold text-gray-800">任务详情</h1>
  7199. </div>
  7200. <button class="text-gray-500"><i class="fas fa-ellipsis-h"></i></button>
  7201. </div>
  7202. </div>
  7203. <!-- 任务内容 -->
  7204. <div class="px-4 py-4 space-y-4">
  7205. <!-- 1. 施工流程进度(最显眼) -->
  7206. <div class="construction-flow-bar" id="detailFlowBar">
  7207. <div class="construction-flow-line">
  7208. <div class="construction-flow-line-fill" id="detailFlowLineFill" style="width: 0%"></div>
  7209. </div>
  7210. <div class="construction-flow-step" id="step-confirm">
  7211. <div class="step-dot pending" id="step-confirm-dot"><i class="fas fa-times"></i></div>
  7212. <span class="step-name">确认</span>
  7213. </div>
  7214. <div class="construction-flow-step" id="step-depart">
  7215. <div class="step-dot pending" id="step-depart-dot"><i class="fas fa-times"></i></div>
  7216. <span class="step-name">出车</span>
  7217. </div>
  7218. <div class="construction-flow-step" id="step-arrive">
  7219. <div class="step-dot pending" id="step-arrive-dot"><i class="fas fa-times"></i></div>
  7220. <span class="step-name">到达</span>
  7221. </div>
  7222. <div class="construction-flow-step" id="step-work">
  7223. <div class="step-dot pending" id="step-work-dot"><i class="fas fa-times"></i></div>
  7224. <span class="step-name">勘验</span>
  7225. </div>
  7226. <div class="construction-flow-step" id="step-work2">
  7227. <div class="step-dot pending" id="step-work2-dot"><i class="fas fa-times"></i></div>
  7228. <span class="step-name">施工</span>
  7229. </div>
  7230. <div class="construction-flow-step" id="step-complete">
  7231. <div class="step-dot pending" id="step-complete-dot"><i class="fas fa-times"></i></div>
  7232. <span class="step-name">完成</span>
  7233. </div>
  7234. <div class="construction-flow-step" id="step-clean">
  7235. <div class="step-dot pending" id="step-clean-dot"><i class="fas fa-times"></i></div>
  7236. <span class="step-name">清洗</span>
  7237. </div>
  7238. <div class="construction-flow-step" id="step-inspect">
  7239. <div class="step-dot pending" id="step-inspect-dot"><i class="fas fa-times"></i></div>
  7240. <span class="step-name">验收</span>
  7241. </div>
  7242. </div>
  7243. <!-- 2. 确认/反馈/拒绝按钮区(待确认状态显示) -->
  7244. <div id="detailActionArea">
  7245. <!-- 待确认状态:三个按钮 -->
  7246. <div id="action-pending-confirm" class="action-content">
  7247. <div class="bg-blue-50 rounded-xl p-4 mb-4">
  7248. <div class="text-center mb-4">
  7249. <i class="fas fa-clipboard-check text-blue-500 text-4xl mb-3"></i>
  7250. <h3 class="text-lg font-semibold text-gray-800">待确认任务</h3>
  7251. <p class="text-gray-500 text-sm mt-1">请查看任务详情,确认是否接受</p>
  7252. </div>
  7253. <div class="bg-white rounded-lg p-3 mb-4">
  7254. <div class="flex justify-between text-sm">
  7255. <span class="text-gray-400">任务类型</span>
  7256. <span class="text-gray-800">油污管疏通</span>
  7257. </div>
  7258. <div class="flex justify-between text-sm mt-2">
  7259. <span class="text-gray-400">服务时间</span>
  7260. <span class="text-gray-800">09:00-12:00</span>
  7261. </div>
  7262. </div>
  7263. </div>
  7264. <div class="space-y-3">
  7265. <button class="w-full py-2.5 bg-green-500 text-white rounded-lg font-medium text-sm flex items-center justify-center gap-2" onclick="confirmTask()">
  7266. <i class="fas fa-check-circle"></i>
  7267. 确认任务
  7268. </button>
  7269. <button class="w-full py-2.5 bg-orange-50 border border-orange-200 text-orange-600 rounded-lg font-medium text-sm flex items-center justify-center gap-2" onclick="openFeedbackModal()">
  7270. <i class="fas fa-comment-dots"></i>
  7271. 反馈问题
  7272. </button>
  7273. <button class="w-full py-2.5 bg-red-50 border border-red-200 text-red-500 rounded-lg font-medium text-sm flex items-center justify-center gap-2" onclick="openRejectModal()">
  7274. <i class="fas fa-times-circle"></i>
  7275. 拒绝任务
  7276. </button>
  7277. </div>
  7278. </div>
  7279. <!-- 待出车状态:出发按钮 -->
  7280. <div id="action-pending-depart" class="action-content hidden">
  7281. <div class="bg-orange-50 rounded-xl p-4 mb-4">
  7282. <div class="text-center mb-4">
  7283. <i class="fas fa-car text-orange-500 text-4xl mb-3"></i>
  7284. <h3 class="text-lg font-semibold text-gray-800">准备出发</h3>
  7285. <p class="text-gray-500 text-sm mt-1">请确认设备准备完毕后出发</p>
  7286. </div>
  7287. <div class="bg-white rounded-lg p-3">
  7288. <div class="flex justify-between text-sm">
  7289. <span class="text-gray-400">目的地</span>
  7290. <span class="text-gray-800">积丹白鹭小区</span>
  7291. </div>
  7292. <div class="flex justify-between text-sm mt-2">
  7293. <span class="text-gray-400">预计时长</span>
  7294. <span class="text-gray-800">约30分钟</span>
  7295. </div>
  7296. </div>
  7297. </div>
  7298. <button class="w-full py-3 bg-gradient-to-r from-orange-500 to-orange-600 text-white rounded-xl font-semibold text-base flex items-center justify-center gap-2" onclick="startDeparture()">
  7299. <i class="fas fa-paper-plane"></i>
  7300. 出发
  7301. </button>
  7302. </div>
  7303. </div>
  7304. <!-- 3. 任务信息区块(可收起/展开) -->
  7305. <div class="bg-white rounded-xl shadow-sm mb-4" id="taskInfoSection">
  7306. <div class="detail-section-title cursor-pointer" onclick="toggleTaskInfo()">
  7307. <i class="fas fa-clipboard-list text-green-500"></i>
  7308. <span id="taskInfoTitle">积丹白鹭小区</span>
  7309. <span class="status-tag status-scheduling ml-2" id="taskInfoStatus">待确认</span>
  7310. <i class="fas fa-chevron-down toggle-icon ml-auto" id="taskInfoToggle"></i>
  7311. </div>
  7312. <div class="section-content" id="taskInfoContent">
  7313. <!-- 项目信息 -->
  7314. <div class="p-4 border-b border-gray-100">
  7315. <h4 class="text-sm font-medium text-gray-500 mb-3 flex items-center">
  7316. <i class="fas fa-building text-green-500 mr-2"></i>项目信息
  7317. </h4>
  7318. <div class="space-y-2 text-sm">
  7319. <div class="flex justify-between">
  7320. <span class="text-gray-400">项目名称</span>
  7321. <span class="text-gray-800" id="detailProjectName">积丹白鹭小区</span>
  7322. </div>
  7323. <div class="flex justify-between">
  7324. <span class="text-gray-400">合作类型</span>
  7325. <span class="tag tag-blue">包年</span>
  7326. </div>
  7327. <div class="flex justify-between">
  7328. <span class="text-gray-400">项目地址</span>
  7329. <span class="text-gray-800">江干区秋涛北路73号</span>
  7330. </div>
  7331. <div class="flex justify-between">
  7332. <span class="text-gray-400">项目联系人</span>
  7333. <span class="text-gray-800">陈物业 138****8888</span>
  7334. </div>
  7335. </div>
  7336. </div>
  7337. <!-- 施工信息 -->
  7338. <div class="p-4 border-b border-gray-100">
  7339. <h4 class="text-sm font-medium text-gray-500 mb-3 flex items-center">
  7340. <i class="fas fa-tools text-blue-500 mr-2"></i>施工信息
  7341. </h4>
  7342. <div class="space-y-2 text-sm">
  7343. <div class="flex justify-between">
  7344. <span class="text-gray-400">施工类型</span>
  7345. <span class="text-gray-800" id="detailWorkType">油污管疏通</span>
  7346. </div>
  7347. <div class="flex justify-between">
  7348. <span class="text-gray-400">设施类型</span>
  7349. <span class="text-gray-800">排污管道</span>
  7350. </div>
  7351. <div class="flex justify-between">
  7352. <span class="text-gray-400">服务方式</span>
  7353. <span class="text-gray-800">带水作业</span>
  7354. </div>
  7355. <div class="flex justify-between">
  7356. <span class="text-gray-400">服务时间</span>
  7357. <span class="text-gray-800 text-xs" id="detailServiceTime">2024-01-21 09:00-12:00</span>
  7358. </div>
  7359. <div class="flex justify-between">
  7360. <span class="text-gray-400">建议出车</span>
  7361. <span class="text-gray-800" id="detailVehicle">疏通车</span>
  7362. </div>
  7363. <div class="flex justify-between">
  7364. <span class="text-gray-400">施工地址</span>
  7365. <span class="text-gray-800" id="detailFaultLocation">地下停车场B1层</span>
  7366. </div>
  7367. <div class="flex justify-between items-center">
  7368. <span class="text-gray-400">地理定位</span>
  7369. <button class="text-blue-500 text-sm flex items-center gap-1" onclick="showToast('打开地图导航')">
  7370. <i class="fas fa-map-marker-alt"></i>点击导航
  7371. </button>
  7372. </div>
  7373. </div>
  7374. </div>
  7375. <!-- 故障信息 -->
  7376. <div class="p-4 border-b border-gray-100">
  7377. <h4 class="text-sm font-medium text-gray-500 mb-3 flex items-center">
  7378. <i class="fas fa-exclamation-triangle text-orange-500 mr-2"></i>故障信息
  7379. </h4>
  7380. <div class="space-y-2 text-sm">
  7381. <div class="flex justify-between">
  7382. <span class="text-gray-400">故障描述</span>
  7383. <span class="text-gray-800">管道堵塞,污水溢出</span>
  7384. </div>
  7385. <div>
  7386. <div class="text-gray-400 mb-2">故障图片/视频</div>
  7387. <div class="grid grid-cols-3 gap-2">
  7388. <div class="aspect-square bg-gray-100 rounded-lg flex items-center justify-center">
  7389. <i class="fas fa-image text-gray-300"></i>
  7390. </div>
  7391. <div class="aspect-square bg-gray-100 rounded-lg flex items-center justify-center">
  7392. <i class="fas fa-image text-gray-300"></i>
  7393. </div>
  7394. <div class="aspect-square bg-gray-100 rounded-lg flex items-center justify-center">
  7395. <i class="fas fa-video text-gray-300"></i>
  7396. </div>
  7397. </div>
  7398. </div>
  7399. <div class="flex justify-between">
  7400. <span class="text-gray-400">设施类型详情</span>
  7401. <span class="text-gray-800">DN200铸铁管</span>
  7402. </div>
  7403. </div>
  7404. </div>
  7405. <!-- 施工要求 -->
  7406. <div class="p-4 border-b border-gray-100">
  7407. <h4 class="text-sm font-medium text-gray-500 mb-3 flex items-center">
  7408. <i class="fas fa-clipboard-check text-blue-500 mr-2"></i>施工要求
  7409. </h4>
  7410. <div class="space-y-2 text-sm">
  7411. <div class="flex justify-between">
  7412. <span class="text-gray-400">水源情况</span>
  7413. <span class="text-gray-800">现场有消防栓</span>
  7414. </div>
  7415. <div class="flex justify-between">
  7416. <span class="text-gray-400">化粪池情况</span>
  7417. <span class="text-gray-800">无</span>
  7418. </div>
  7419. <div class="flex justify-between">
  7420. <span class="text-gray-400">施工协助</span>
  7421. <span class="text-gray-800">无需协助</span>
  7422. </div>
  7423. <div class="flex justify-between">
  7424. <span class="text-gray-400">预估工程量</span>
  7425. <span class="text-gray-800">约30米</span>
  7426. </div>
  7427. <div class="flex justify-between">
  7428. <span class="text-gray-400">预估时长</span>
  7429. <span class="text-gray-800">约3小时</span>
  7430. </div>
  7431. <div class="flex justify-between">
  7432. <span class="text-gray-400">验收要求</span>
  7433. <span class="text-gray-800">管道畅通,无积水</span>
  7434. </div>
  7435. <div class="flex justify-between">
  7436. <span class="text-gray-400">验收方式</span>
  7437. <span class="text-gray-800">签署验收计量单</span>
  7438. </div>
  7439. </div>
  7440. </div>
  7441. <!-- 甲方确认人 -->
  7442. <div class="p-4">
  7443. <h4 class="text-sm font-medium text-gray-500 mb-3 flex items-center">
  7444. <i class="fas fa-user-check text-green-500 mr-2"></i>甲方确认人
  7445. </h4>
  7446. <div class="flex justify-between items-center">
  7447. <div>
  7448. <span class="text-gray-800 text-sm">陈物业</span>
  7449. <span class="text-gray-400 text-sm ml-2">138****8888</span>
  7450. </div>
  7451. <button class="w-8 h-8 bg-green-50 rounded-full flex items-center justify-center" onclick="showToast('拨打 138****8888')">
  7452. <i class="fas fa-phone-alt text-green-500 text-sm"></i>
  7453. </button>
  7454. </div>
  7455. </div>
  7456. </div>
  7457. </div>
  7458. <!-- 4. 出车准备区(SOP新增) -->
  7459. <div class="bg-white rounded-xl p-4 mb-4" id="constructionPrepSection">
  7460. <h3 class="text-base font-semibold text-gray-800 mb-4">
  7461. <i class="fas fa-truck-loading text-orange-500 mr-2"></i>出车准备(SOP)
  7462. </h3>
  7463. <div class="mb-4">
  7464. <div class="text-sm font-medium text-gray-600 mb-2"><i class="fas fa-clipboard-check text-orange-500 mr-1"></i>车辆点检</div>
  7465. <div class="bg-gray-50 rounded-lg p-3">
  7466. <div class="checklist-item">
  7467. <div class="checklist-checkbox" onclick="toggleChecklist(this)"></div>
  7468. <span class="text-sm">机油检查</span>
  7469. </div>
  7470. <div class="checklist-item">
  7471. <div class="checklist-checkbox" onclick="toggleChecklist(this)"></div>
  7472. <span class="text-sm">轮胎检查</span>
  7473. </div>
  7474. <div class="checklist-item">
  7475. <div class="checklist-checkbox" onclick="toggleChecklist(this)"></div>
  7476. <span class="text-sm">灯光/水管/工具</span>
  7477. </div>
  7478. </div>
  7479. </div>
  7480. <div class="inline-selector">
  7481. <div class="form-group">
  7482. <label class="form-label">出发时间</label>
  7483. <input type="time" id="departureTime" class="form-input" value="08:30">
  7484. </div>
  7485. <div class="form-group">
  7486. <label class="form-label">预计到达</label>
  7487. <input type="time" id="estimatedArrival" class="form-input" value="09:00">
  7488. </div>
  7489. </div>
  7490. </div>
  7491. <!-- 5. 现场踏勘区(SOP新增) -->
  7492. <div class="bg-white rounded-xl p-4 mb-4" id="constructionSurveySection">
  7493. <h3 class="text-base font-semibold text-gray-800 mb-4">
  7494. <i class="fas fa-search text-purple-500 mr-2"></i>现场踏勘(SOP)
  7495. </h3>
  7496. <div class="inline-selector">
  7497. <div class="form-group">
  7498. <label class="form-label">到达时间</label>
  7499. <input type="time" id="arrivalTime" class="form-input" value="08:55">
  7500. </div>
  7501. <div class="form-group">
  7502. <label class="form-label">对接人情况</label>
  7503. <select id="contactStatus" class="form-select">
  7504. <option value="到位">已到位</option>
  7505. <option value="未到位">未到位</option>
  7506. </select>
  7507. </div>
  7508. </div>
  7509. <div class="form-group">
  7510. <label class="form-label">踏勘与工单一致性</label>
  7511. <div class="tag-selector">
  7512. <div class="tag-option selected" onclick="toggleTag(this)">一致</div>
  7513. <div class="tag-option" onclick="toggleTag(this)">不一致</div>
  7514. </div>
  7515. </div>
  7516. <div class="form-group">
  7517. <label class="form-label">客户同意情况</label>
  7518. <div class="flex items-center gap-4">
  7519. <span class="text-sm text-gray-500">客户已同意施工</span>
  7520. <div id="customerAgreeToggle" class="toggle-switch active" onclick="toggleSwitch(this)"></div>
  7521. </div>
  7522. </div>
  7523. </div>
  7524. <!-- 6. 施工流程记录 -->
  7525. <div class="bg-white rounded-xl p-4 mb-4">
  7526. <h3 class="text-base font-semibold text-gray-800 mb-4">
  7527. <i class="fas fa-clipboard-list text-blue-500 mr-2"></i>施工流程记录
  7528. </h3>
  7529. <!-- 步骤1:出车 -->
  7530. <div class="step-upload-card mb-3 p-3 bg-gray-50 rounded-lg border border-gray-200">
  7531. <div class="flex items-center justify-between mb-3">
  7532. <div class="flex items-center gap-2">
  7533. <span class="step-number w-6 h-6 bg-orange-500 text-white rounded-full flex items-center justify-center text-xs font-bold">1</span>
  7534. <span class="step-title font-medium text-gray-800">出车</span>
  7535. </div>
  7536. <span class="step-status text-xs px-2 py-1 rounded bg-gray-200 text-gray-600" id="step-status-1">待上传</span>
  7537. </div>
  7538. <div class="upload-area-mini bg-white rounded-lg p-3 border-2 border-dashed border-gray-300 cursor-pointer" onclick="uploadDeparturePhoto()">
  7539. <div class="flex items-center gap-3">
  7540. <i class="fas fa-cloud-upload-alt text-gray-400 text-xl"></i>
  7541. <div>
  7542. <span class="text-sm text-gray-600">拍照上传</span>
  7543. <p class="text-xs text-gray-400">出车前车辆及设备照片</p>
  7544. </div>
  7545. </div>
  7546. </div>
  7547. <div id="preview-1" class="hidden mt-3">
  7548. <div class="flex items-center gap-2 bg-green-50 rounded-lg p-2">
  7549. <i class="fas fa-check-circle text-green-500"></i>
  7550. <span class="text-green-600 text-xs">已上传</span>
  7551. </div>
  7552. </div>
  7553. </div>
  7554. <!-- 步骤2:到达现场 -->
  7555. <div class="step-upload-card mb-3 p-3 bg-gray-50 rounded-lg border border-gray-200">
  7556. <div class="flex items-center justify-between mb-3">
  7557. <div class="flex items-center gap-2">
  7558. <span class="step-number w-6 h-6 bg-orange-400 text-white rounded-full flex items-center justify-center text-xs font-bold">2</span>
  7559. <span class="step-title font-medium text-gray-800">到达现场</span>
  7560. </div>
  7561. <span class="step-status text-xs px-2 py-1 rounded bg-gray-200 text-gray-600" id="step-status-2">待上传</span>
  7562. </div>
  7563. <div class="upload-area-mini bg-white rounded-lg p-3 border-2 border-dashed border-gray-300 cursor-pointer" onclick="uploadArrivePhoto()">
  7564. <div class="flex items-center gap-3">
  7565. <i class="fas fa-parking text-gray-400 text-xl"></i>
  7566. <div>
  7567. <span class="text-sm text-gray-600">上传停车警示牌</span>
  7568. <p class="text-xs text-gray-400">到达现场后停车警示牌照片</p>
  7569. </div>
  7570. </div>
  7571. </div>
  7572. <div id="preview-2" class="hidden mt-3">
  7573. <div class="flex items-center gap-2 bg-green-50 rounded-lg p-2">
  7574. <i class="fas fa-check-circle text-green-500"></i>
  7575. <span class="text-green-600 text-xs">已上传</span>
  7576. </div>
  7577. </div>
  7578. </div>
  7579. <!-- 步骤3:现场勘验 -->
  7580. <div class="step-upload-card mb-3 p-3 bg-gray-50 rounded-lg border border-gray-200">
  7581. <div class="flex items-center justify-between mb-3">
  7582. <div class="flex items-center gap-2">
  7583. <span class="step-number w-6 h-6 bg-blue-500 text-white rounded-full flex items-center justify-center text-xs font-bold">3</span>
  7584. <span class="step-title font-medium text-gray-800">现场勘验</span>
  7585. </div>
  7586. <span class="step-status text-xs px-2 py-1 rounded bg-gray-200 text-gray-600" id="step-status-3">待上传</span>
  7587. </div>
  7588. <div class="upload-area-mini bg-white rounded-lg p-3 border-2 border-dashed border-gray-300 cursor-pointer" onclick="uploadInspectionMedia()">
  7589. <div class="flex items-center gap-3">
  7590. <i class="fas fa-camera text-gray-400 text-xl"></i>
  7591. <div>
  7592. <span class="text-sm text-gray-600">拍照/录像</span>
  7593. <p class="text-xs text-gray-400">现场勘验照片或视频</p>
  7594. </div>
  7595. </div>
  7596. </div>
  7597. <div id="preview-3" class="hidden mt-3">
  7598. <div class="flex items-center gap-2 bg-green-50 rounded-lg p-2">
  7599. <i class="fas fa-check-circle text-green-500"></i>
  7600. <span class="text-green-600 text-xs">已上传</span>
  7601. </div>
  7602. </div>
  7603. </div>
  7604. <!-- 步骤4:施工 -->
  7605. <div class="step-upload-card mb-3 p-3 bg-gray-50 rounded-lg border border-gray-200">
  7606. <div class="flex items-center justify-between mb-3">
  7607. <div class="flex items-center gap-2">
  7608. <span class="step-number w-6 h-6 bg-green-600 text-white rounded-full flex items-center justify-center text-xs font-bold">4</span>
  7609. <span class="step-title font-medium text-gray-800">施工</span>
  7610. </div>
  7611. <span class="step-status text-xs px-2 py-1 rounded bg-gray-200 text-gray-600" id="step-status-4">待上传</span>
  7612. </div>
  7613. <!-- 堵塞物输入 -->
  7614. <div class="mb-3">
  7615. <label class="text-xs text-gray-500 mb-1 block">堵塞物</label>
  7616. <input type="text" class="w-full py-2 px-3 border border-gray-200 rounded-lg text-sm bg-white" placeholder="如:头发、纸巾、油污等">
  7617. </div>
  7618. <div class="upload-area-mini bg-white rounded-lg p-3 border-2 border-dashed border-gray-300 cursor-pointer" onclick="uploadConstructionMedia()">
  7619. <div class="flex items-center gap-3">
  7620. <i class="fas fa-hard-hat text-gray-400 text-xl"></i>
  7621. <div>
  7622. <span class="text-sm text-gray-600">拍照/录像</span>
  7623. <p class="text-xs text-gray-400">施工过程照片或视频</p>
  7624. </div>
  7625. </div>
  7626. </div>
  7627. <div id="preview-4" class="hidden mt-3">
  7628. <div class="flex items-center gap-2 bg-green-50 rounded-lg p-2">
  7629. <i class="fas fa-check-circle text-green-500"></i>
  7630. <span class="text-green-600 text-xs">已上传</span>
  7631. </div>
  7632. </div>
  7633. </div>
  7634. <!-- 步骤5:完成 -->
  7635. <div class="step-upload-card mb-3 p-3 bg-gray-50 rounded-lg border border-gray-200">
  7636. <div class="flex items-center justify-between mb-3">
  7637. <div class="flex items-center gap-2">
  7638. <span class="step-number w-6 h-6 bg-cyan-500 text-white rounded-full flex items-center justify-center text-xs font-bold">5</span>
  7639. <span class="step-title font-medium text-gray-800">完成</span>
  7640. </div>
  7641. <span class="step-status text-xs px-2 py-1 rounded bg-gray-200 text-gray-600" id="step-status-5">待上传</span>
  7642. </div>
  7643. <!-- 设施反馈输入 -->
  7644. <div class="mb-3">
  7645. <label class="text-xs text-gray-500 mb-1 block">设施反馈</label>
  7646. <textarea class="w-full py-2 px-3 border border-gray-200 rounded-lg text-sm bg-white" rows="2" placeholder="设施状态、建议等"></textarea>
  7647. </div>
  7648. <div class="upload-area-mini bg-white rounded-lg p-3 border-2 border-dashed border-gray-300 cursor-pointer" onclick="uploadCompleteMedia()">
  7649. <div class="flex items-center gap-3">
  7650. <i class="fas fa-check-circle text-gray-400 text-xl"></i>
  7651. <div>
  7652. <span class="text-sm text-gray-600">拍照上传</span>
  7653. <p class="text-xs text-gray-400">施工完成照片</p>
  7654. </div>
  7655. </div>
  7656. </div>
  7657. <div id="preview-5" class="hidden mt-3">
  7658. <div class="flex items-center gap-2 bg-green-50 rounded-lg p-2">
  7659. <i class="fas fa-check-circle text-green-500"></i>
  7660. <span class="text-green-600 text-xs">已上传</span>
  7661. </div>
  7662. </div>
  7663. </div>
  7664. <!-- 步骤6:清洗 -->
  7665. <div class="step-upload-card mb-3 p-3 bg-gray-50 rounded-lg border border-gray-200">
  7666. <div class="flex items-center justify-between mb-3">
  7667. <div class="flex items-center gap-2">
  7668. <span class="step-number w-6 h-6 bg-blue-400 text-white rounded-full flex items-center justify-center text-xs font-bold">6</span>
  7669. <span class="step-title font-medium text-gray-800">清洗</span>
  7670. </div>
  7671. <span class="step-status text-xs px-2 py-1 rounded bg-gray-200 text-gray-600" id="step-status-6">待上传</span>
  7672. </div>
  7673. <div class="upload-area-mini bg-white rounded-lg p-3 border-2 border-dashed border-gray-300 cursor-pointer" onclick="uploadCleaningMedia()">
  7674. <div class="flex items-center gap-3">
  7675. <i class="fas fa-broom text-gray-400 text-xl"></i>
  7676. <div>
  7677. <span class="text-sm text-gray-600">拍照上传</span>
  7678. <p class="text-xs text-gray-400">现场清洗照片</p>
  7679. </div>
  7680. </div>
  7681. </div>
  7682. <div id="preview-6" class="hidden mt-3">
  7683. <div class="flex items-center gap-2 bg-green-50 rounded-lg p-2">
  7684. <i class="fas fa-check-circle text-green-500"></i>
  7685. <span class="text-green-600 text-xs">已上传</span>
  7686. </div>
  7687. </div>
  7688. </div>
  7689. <!-- 步骤7:验收 -->
  7690. <div class="step-upload-card p-3 bg-gray-50 rounded-lg border border-gray-200">
  7691. <div class="flex items-center justify-between mb-3">
  7692. <div class="flex items-center gap-2">
  7693. <span class="step-number w-6 h-6 bg-purple-500 text-white rounded-full flex items-center justify-center text-xs font-bold">7</span>
  7694. <span class="step-title font-medium text-gray-800">验收</span>
  7695. </div>
  7696. <span class="step-status text-xs px-2 py-1 rounded bg-gray-200 text-gray-600" id="step-status-7">待上传</span>
  7697. </div>
  7698. <div class="upload-area-mini bg-white rounded-lg p-3 border-2 border-dashed border-gray-300 cursor-pointer" onclick="uploadInspectionSign()">
  7699. <div class="flex items-center gap-3">
  7700. <i class="fas fa-file-signature text-gray-400 text-xl"></i>
  7701. <div>
  7702. <span class="text-sm text-gray-600">拍照上传</span>
  7703. <p class="text-xs text-gray-400">验收签字或客户确认照片</p>
  7704. </div>
  7705. </div>
  7706. </div>
  7707. <div id="preview-7" class="hidden mt-3">
  7708. <div class="flex items-center gap-2 bg-green-50 rounded-lg p-2">
  7709. <i class="fas fa-check-circle text-green-500"></i>
  7710. <span class="text-green-600 text-xs">已上传</span>
  7711. </div>
  7712. </div>
  7713. </div>
  7714. </div>
  7715. <!-- 5. 任务日志区块 -->
  7716. <div class="bg-white rounded-xl p-4 shadow-sm mb-4">
  7717. <h3 class="text-base font-semibold text-gray-800 mb-4">
  7718. <i class="fas fa-history text-green-500 mr-2"></i>任务日志
  7719. </h3>
  7720. <div class="space-y-3" id="construction_taskLogList">
  7721. <div class="flex items-start text-sm">
  7722. <span class="text-gray-400 w-20 flex-shrink-0">04-21 09:30</span>
  7723. <div class="flex-1">
  7724. <span class="text-gray-800">销售 李明</span>
  7725. <span class="text-gray-500">发布了任务</span>
  7726. </div>
  7727. </div>
  7728. <div class="flex items-start text-sm">
  7729. <span class="text-gray-400 w-20 flex-shrink-0">04-21 10:15</span>
  7730. <div class="flex-1">
  7731. <span class="text-gray-800">调度 张调度</span>
  7732. <span class="text-gray-500">已安排班组:工程一班</span>
  7733. </div>
  7734. </div>
  7735. <div class="flex items-start text-sm">
  7736. <span class="text-gray-400 w-20 flex-shrink-0">04-21 10:30</span>
  7737. <div class="flex-1">
  7738. <span class="text-gray-800">工人 张师傅</span>
  7739. <span class="text-gray-500">确认任务</span>
  7740. </div>
  7741. </div>
  7742. </div>
  7743. </div>
  7744. </div>
  7745. </div><div id="construction_myPage" class="page">
  7746. <!-- 顶部用户信息区域 -->
  7747. <div class="bg-gradient-to-br from-blue-900 to-blue-800 text-white pt-10 pb-6 px-5">
  7748. <div class="flex items-center gap-4">
  7749. <div class="w-14 h-14 bg-white/20 rounded-full flex items-center justify-center text-2xl">
  7750. <i class="fas fa-user"></i>
  7751. </div>
  7752. <div>
  7753. <h2 class="text-lg font-bold">张师傅</h2>
  7754. <p class="text-blue-200 text-xs">工程一班 · 工号 WRK001</p>
  7755. </div>
  7756. </div>
  7757. </div>
  7758. <!-- 功能列表 -->
  7759. <div class="px-4 -mt-3 space-y-4 pb-4">
  7760. <!-- 基本信息卡片 -->
  7761. <div class="bg-white rounded-xl p-4 shadow-sm">
  7762. <div class="flex justify-between items-center py-2 border-b border-gray-100 cursor-pointer" onclick="showToast('查看所属班组')">
  7763. <span class="text-gray-500 text-sm"><i class="fas fa-users w-5 text-blue-400"></i>班组</span>
  7764. <span class="text-sm">工程一班</span>
  7765. </div>
  7766. <div class="flex justify-between items-center py-2 border-b border-gray-100">
  7767. <span class="text-gray-500 text-sm"><i class="fas fa-id-badge w-5 text-blue-400"></i>职位</span>
  7768. <span class="text-sm">施工员</span>
  7769. </div>
  7770. <div class="flex justify-between items-center py-2">
  7771. <span class="text-gray-500 text-sm"><i class="fas fa-phone w-5 text-blue-400"></i>电话</span>
  7772. <span class="text-sm">139****6666</span>
  7773. </div>
  7774. </div>
  7775. <!-- 功能入口卡片 -->
  7776. <div class="bg-white rounded-xl p-4 shadow-sm">
  7777. <div class="flex justify-between items-center py-3 border-b border-gray-100 cursor-pointer" onclick="goToConstructionPage('construction_basicInfoPage')">
  7778. <span class="text-sm text-gray-700"><i class="fas fa-user-circle text-gray-400 w-6"></i>基本信息</span>
  7779. <i class="fas fa-chevron-right text-gray-300 text-xs"></i>
  7780. </div>
  7781. <div class="flex justify-between items-center py-3 border-b border-gray-100 cursor-pointer" onclick="goToConstructionPage('construction_changePasswordPage')">
  7782. <span class="text-sm text-gray-700"><i class="fas fa-lock text-gray-400 w-6"></i>修改密码</span>
  7783. <i class="fas fa-chevron-right text-gray-300 text-xs"></i>
  7784. </div>
  7785. <div class="flex justify-between items-center py-3 border-b border-gray-100 cursor-pointer" onclick="goToConstructionPage('construction_notificationPage')">
  7786. <span class="text-sm text-gray-700"><i class="fas fa-bell text-gray-400 w-6"></i>消息通知</span>
  7787. <div class="flex items-center">
  7788. <span class="w-2 h-2 bg-red-500 rounded-full mr-2"></span>
  7789. <i class="fas fa-chevron-right text-gray-300 text-xs"></i>
  7790. </div>
  7791. </div>
  7792. <div class="flex justify-between items-center py-3 cursor-pointer" onclick="goToConstructionPage('construction_helpCenterPage')">
  7793. <span class="text-sm text-gray-700"><i class="fas fa-question-circle text-gray-400 w-6"></i>帮助中心</span>
  7794. <i class="fas fa-chevron-right text-gray-300 text-xs"></i>
  7795. </div>
  7796. </div>
  7797. <!-- 退出登录按钮 -->
  7798. <button class="w-full py-3 mt-4 bg-red-500 text-white rounded-xl font-medium cursor-pointer active:bg-red-600 transition-colors" onclick="backToLogin()">
  7799. 退出登录
  7800. </button>
  7801. </div>
  7802. <!-- 底部导航 -->
  7803. <div class="bottom-nav">
  7804. <div class="flex justify-around py-2">
  7805. <button class="nav-item flex flex-col items-center py-1 px-4" onclick="goToConstructionPage('construction_homePage')">
  7806. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all bg-gray-100">
  7807. <i class="fas fa-home text-gray-400 text-lg"></i>
  7808. </div>
  7809. <span class="text-xs text-gray-400">首页</span>
  7810. </button>
  7811. <button class="nav-item flex flex-col items-center py-1 px-4" onclick="goToConstructionPage('construction_taskPage')">
  7812. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all bg-gray-100">
  7813. <i class="fas fa-tasks text-gray-400 text-lg"></i>
  7814. </div>
  7815. <span class="text-xs text-gray-400">任务</span>
  7816. </button>
  7817. <button class="nav-item active flex flex-col items-center py-1 px-4" onclick="goToConstructionPage('construction_myPage')">
  7818. <div class="nav-icon w-10 h-10 rounded-full flex items-center justify-center mb-1 transition-all">
  7819. <i class="fas fa-user text-lg"></i>
  7820. </div>
  7821. <span class="text-xs">我的</span>
  7822. </button>
  7823. </div>
  7824. </div>
  7825. </div>
  7826. <!-- ========== 基本信息页 ========== -->
  7827. <div id="construction_basicInfoPage" class="page hide-nav">
  7828. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  7829. <div class="flex items-center">
  7830. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToConstructionPage('construction_myPage')">
  7831. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  7832. </button>
  7833. <h1 class="text-lg font-bold text-gray-800">个人信息</h1>
  7834. </div>
  7835. </div>
  7836. <div class="px-4 py-4">
  7837. <div class="card p-4">
  7838. <div class="form-group">
  7839. <label class="form-label">姓名</label>
  7840. <input type="text" class="form-input" value="张师傅">
  7841. </div>
  7842. <div class="form-group">
  7843. <label class="form-label">工号</label>
  7844. <input type="text" class="form-input" value="WRK001" disabled>
  7845. </div>
  7846. <div class="form-group">
  7847. <label class="form-label">班组</label>
  7848. <input type="text" class="form-input" value="工程一班">
  7849. </div>
  7850. <div class="form-group">
  7851. <label class="form-label">联系电话</label>
  7852. <input type="tel" class="form-input" value="139****6666">
  7853. </div>
  7854. <button class="w-full py-3 bg-green-500 text-white rounded-xl font-medium mt-4" onclick="showToast('保存成功')">
  7855. 保存修改
  7856. </button>
  7857. </div>
  7858. </div>
  7859. </div>
  7860. <!-- ========== 修改密码页 ========== -->
  7861. <div id="construction_changePasswordPage" class="page hide-nav">
  7862. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  7863. <div class="flex items-center">
  7864. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToConstructionPage('construction_myPage')">
  7865. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  7866. </button>
  7867. <h1 class="text-lg font-bold text-gray-800">修改密码</h1>
  7868. </div>
  7869. </div>
  7870. <div class="px-4 py-4">
  7871. <div class="card p-4">
  7872. <div class="form-group">
  7873. <label class="form-label">当前密码</label>
  7874. <input type="password" class="form-input" placeholder="请输入当前密码">
  7875. </div>
  7876. <div class="form-group">
  7877. <label class="form-label">新密码</label>
  7878. <input type="password" class="form-input" placeholder="请输入新密码">
  7879. </div>
  7880. <div class="form-group">
  7881. <label class="form-label">确认新密码</label>
  7882. <input type="password" class="form-input" placeholder="请再次输入新密码">
  7883. </div>
  7884. <button class="w-full py-3 bg-green-500 text-white rounded-xl font-medium mt-4" onclick="showToast('密码修改成功')">
  7885. 确认修改
  7886. </button>
  7887. </div>
  7888. </div>
  7889. </div>
  7890. <!-- ========== 帮助中心页 ========== -->
  7891. <div id="construction_helpCenterPage" class="page hide-nav">
  7892. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  7893. <div class="flex items-center">
  7894. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToConstructionPage('construction_myPage')">
  7895. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  7896. </button>
  7897. <h1 class="text-lg font-bold text-gray-800">帮助中心</h1>
  7898. </div>
  7899. </div>
  7900. <div class="px-4 py-4">
  7901. <div class="bg-white rounded-xl p-4 mb-4 shadow-sm">
  7902. <h3 class="text-base font-semibold text-gray-800 mb-4"><i class="fas fa-question-circle text-blue-500 mr-2"></i>常见问题</h3>
  7903. <div class="space-y-3">
  7904. <div class="border-b border-gray-100 pb-3">
  7905. <div class="flex justify-between items-center cursor-pointer" onclick="toggleFaq(this)">
  7906. <span class="text-sm text-gray-700">如何确认任务?</span>
  7907. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  7908. </div>
  7909. <div class="hidden mt-2 text-gray-500 text-sm">
  7910. 在任务列表中点击待确认的任务,进入详情页后点击确认按钮即可。
  7911. </div>
  7912. </div>
  7913. <div class="border-b border-gray-100 pb-3">
  7914. <div class="flex justify-between items-center cursor-pointer" onclick="toggleFaq(this)">
  7915. <span class="text-sm text-gray-700">如何完成每日检查?</span>
  7916. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  7917. </div>
  7918. <div class="hidden mt-2 text-gray-500 text-sm">
  7919. 进入每日任务页面,按照要求拍照上传相关检查照片后提交即可。
  7920. </div>
  7921. </div>
  7922. <div class="border-b border-gray-100 pb-3">
  7923. <div class="flex justify-between items-center cursor-pointer" onclick="toggleFaq(this)">
  7924. <span class="text-sm text-gray-700">施工流程有哪些步骤?</span>
  7925. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  7926. </div>
  7927. <div class="hidden mt-2 text-gray-500 text-sm">
  7928. 施工流程包含8个步骤:确认→出车→到达→施工中→施工完成→清洗→验收→完成。
  7929. </div>
  7930. </div>
  7931. <div>
  7932. <div class="flex justify-between items-center cursor-pointer" onclick="toggleFaq(this)">
  7933. <span class="text-sm text-gray-700">如何联系调度?</span>
  7934. <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
  7935. </div>
  7936. <div class="hidden mt-2 text-gray-500 text-sm">
  7937. 可以拨打调度中心热线:400-888-8888,或在系统中留言。
  7938. </div>
  7939. </div>
  7940. </div>
  7941. </div>
  7942. <div class="bg-white rounded-xl p-4 shadow-sm">
  7943. <h3 class="text-base font-semibold text-gray-800 mb-4"><i class="fas fa-headset text-blue-500 mr-2"></i>联系客服</h3>
  7944. <div class="flex items-center justify-between py-3 border-b border-gray-100">
  7945. <div class="flex items-center">
  7946. <i class="fas fa-phone text-blue-500 mr-3"></i>
  7947. <span class="text-sm text-gray-700">客服热线</span>
  7948. </div>
  7949. <span class="text-blue-500 text-sm">400-888-8888</span>
  7950. </div>
  7951. <div class="flex items-center justify-between py-3">
  7952. <div class="flex items-center">
  7953. <i class="fas fa-clock text-blue-500 mr-3"></i>
  7954. <span class="text-sm text-gray-700">服务时间</span>
  7955. </div>
  7956. <span class="text-gray-600 text-sm">9:00-18:00</span>
  7957. </div>
  7958. </div>
  7959. </div>
  7960. </div>
  7961. <!-- ========== 通知公告列表页 ========== -->
  7962. <div id="construction_noticeListPage" class="page hide-nav">
  7963. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  7964. <div class="flex items-center">
  7965. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToConstructionPage('construction_homePage')">
  7966. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  7967. </button>
  7968. <h1 class="text-lg font-bold text-gray-800">通知公告</h1>
  7969. </div>
  7970. </div>
  7971. <div class="px-4 py-4">
  7972. <div class="space-y-3">
  7973. <div class="bg-white rounded-xl p-4 shadow-sm cursor-pointer" onclick="goToConstructionPage('construction_noticeDetailPage')">
  7974. <div class="flex justify-between items-start mb-2">
  7975. <h3 class="text-sm font-semibold text-gray-800">关于规范施工现场安全管理的通知</h3>
  7976. <span class="px-2 py-0.5 bg-red-50 text-red-500 text-xs rounded">重要</span>
  7977. </div>
  7978. <p class="text-xs text-gray-500 mb-2">为进一步规范施工现场安全管理,现就相关事项通知如下...</p>
  7979. <div class="flex items-center text-xs text-gray-400">
  7980. <i class="fas fa-clock mr-1"></i>2026-04-20
  7981. </div>
  7982. </div>
  7983. <div class="bg-white rounded-xl p-4 shadow-sm cursor-pointer" onclick="goToConstructionPage('construction_noticeDetailPage')">
  7984. <div class="flex justify-between items-start mb-2">
  7985. <h3 class="text-sm font-semibold text-gray-800">下周安全培训会议安排</h3>
  7986. </div>
  7987. <p class="text-xs text-gray-500 mb-2">各位同事,下周二将举行安全培训会议,请准时参加...</p>
  7988. <div class="flex items-center text-xs text-gray-400">
  7989. <i class="fas fa-clock mr-1"></i>2026-04-18
  7990. </div>
  7991. </div>
  7992. <div class="bg-white rounded-xl p-4 shadow-sm cursor-pointer" onclick="goToConstructionPage('construction_noticeDetailPage')">
  7993. <div class="flex justify-between items-start mb-2">
  7994. <h3 class="text-sm font-semibold text-gray-800">设备维护保养规范更新</h3>
  7995. </div>
  7996. <p class="text-xs text-gray-500 mb-2">最新设备维护保养规范已更新,请各位同事查阅学习...</p>
  7997. <div class="flex items-center text-xs text-gray-400">
  7998. <i class="fas fa-clock mr-1"></i>2026-04-15
  7999. </div>
  8000. </div>
  8001. </div>
  8002. </div>
  8003. </div>
  8004. <!-- ========== 通知公告详情页 ========== -->
  8005. <div id="construction_noticeDetailPage" class="page hide-nav">
  8006. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  8007. <div class="flex items-center">
  8008. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToConstructionPage('construction_noticeListPage')">
  8009. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  8010. </button>
  8011. <h1 class="text-lg font-bold text-gray-800">公告详情</h1>
  8012. </div>
  8013. </div>
  8014. <div class="px-4 py-4">
  8015. <div class="bg-white rounded-xl p-4 shadow-sm">
  8016. <div class="flex justify-between items-start mb-3">
  8017. <h2 class="text-base font-bold text-gray-800">关于规范施工现场安全管理的通知</h2>
  8018. <span class="px-2 py-0.5 bg-red-50 text-red-500 text-xs rounded">重要</span>
  8019. </div>
  8020. <div class="text-xs text-gray-400 mb-4">
  8021. <i class="fas fa-clock mr-1"></i>2026-04-20
  8022. <span class="mx-2">|</span>
  8023. <i class="fas fa-user mr-1"></i>调度中心
  8024. </div>
  8025. <div class="text-sm text-gray-600 leading-relaxed">
  8026. <p class="mb-3">各位施工同事:</p>
  8027. <p class="mb-3">为进一步规范施工现场安全管理,确保施工人员人身安全和施工质量,现就相关事项通知如下:</p>
  8028. <p class="mb-2">一、进入施工现场必须佩戴安全帽、安全背心等防护用品。</p>
  8029. <p class="mb-2">二、施工前必须进行安全检查,确保设备正常运转。</p>
  8030. <p class="mb-2">三、施工现场必须设置警示标志,做好安全防护措施。</p>
  8031. <p class="mb-2">四、发现安全隐患及时上报,不得隐瞒。</p>
  8032. <p class="mb-3">请各位同事严格遵守以上规定,确保施工安全。</p>
  8033. <p>调度中心</p>
  8034. <p>2026年4月20日</p>
  8035. </div>
  8036. </div>
  8037. </div>
  8038. </div>
  8039. <!-- ========== 消息通知页 ========== -->
  8040. <div id="construction_notificationPage" class="page hide-nav">
  8041. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  8042. <div class="flex items-center">
  8043. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToConstructionPage('construction_myPage')">
  8044. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  8045. </button>
  8046. <h1 class="text-lg font-bold text-gray-800">消息通知</h1>
  8047. </div>
  8048. </div>
  8049. <!-- 消息通知筛选tab -->
  8050. <div class="filter-tabs">
  8051. <span class="filter-tab active" onclick="filterConstructionNotifications('all', this)">全部</span>
  8052. <span class="filter-tab" onclick="filterConstructionNotifications('task', this)">任务</span>
  8053. <span class="filter-tab" onclick="filterConstructionNotifications('system', this)">系统</span>
  8054. </div>
  8055. <div class="px-4 py-4">
  8056. <div class="space-y-3" id="constructionNotificationList">
  8057. <div class="bg-white rounded-xl p-4 shadow-sm cursor-pointer construction-notification-item" data-type="task">
  8058. <div class="flex justify-between items-start mb-2">
  8059. <h3 class="text-sm font-semibold text-gray-800">新任务分配</h3>
  8060. <span class="text-xs text-gray-400">10:30</span>
  8061. </div>
  8062. <p class="text-xs text-gray-500 mb-2">您有一个新任务:积丹白鹭油污管疏通,请及时确认。</p>
  8063. <div class="flex items-center">
  8064. <span class="px-2 py-0.5 bg-blue-50 text-blue-500 text-xs rounded">待处理</span>
  8065. </div>
  8066. </div>
  8067. <div class="bg-white rounded-xl p-4 shadow-sm cursor-pointer construction-notification-item" data-type="system">
  8068. <div class="flex justify-between items-start mb-2">
  8069. <h3 class="text-sm font-semibold text-gray-800">安全培训提醒</h3>
  8070. <span class="text-xs text-gray-400">昨天</span>
  8071. </div>
  8072. <p class="text-xs text-gray-500 mb-2">下周二安全培训会议即将开始,请准时参加。</p>
  8073. <div class="flex items-center">
  8074. <span class="px-2 py-0.5 bg-green-50 text-green-500 text-xs rounded">已读</span>
  8075. </div>
  8076. </div>
  8077. <div class="bg-white rounded-xl p-4 shadow-sm cursor-pointer construction-notification-item" data-type="task">
  8078. <div class="flex justify-between items-start mb-2">
  8079. <h3 class="text-sm font-semibold text-gray-800">任务状态更新</h3>
  8080. <span class="text-xs text-gray-400">昨天</span>
  8081. </div>
  8082. <p class="text-xs text-gray-500 mb-2">您的任务"俊发城化粪池清掏"已被调度确认,请等待安排。</p>
  8083. <div class="flex items-center">
  8084. <span class="px-2 py-0.5 bg-gray-50 text-gray-500 text-xs rounded">已完成</span>
  8085. </div>
  8086. </div>
  8087. </div>
  8088. </div>
  8089. </div>
  8090. <!-- ========== 历史任务页面 ========== -->
  8091. <div id="construction_historyTaskPage" class="page hide-nav">
  8092. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  8093. <div class="flex items-center">
  8094. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToConstructionPage('construction_homePage')">
  8095. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  8096. </button>
  8097. <h1 class="text-lg font-bold text-gray-800">历史任务</h1>
  8098. </div>
  8099. </div>
  8100. <div class="px-4 py-4">
  8101. <div class="space-y-3">
  8102. <div class="bg-white rounded-xl p-4 shadow-sm cursor-pointer" onclick="goToConstructionPage('construction_taskDetailPage')">
  8103. <div class="flex justify-between items-start mb-2">
  8104. <h3 class="text-sm font-semibold text-gray-800">万科城 - 化粪池清掏</h3>
  8105. <span class="tag tag-green text-xs">已完成</span>
  8106. </div>
  8107. <p class="text-xs text-gray-500 mb-2"><i class="fas fa-map-marker-alt w-4"></i>万科城A区</p>
  8108. <div class="flex items-center text-xs text-gray-400">
  8109. <span>完成时间:2026-04-23</span>
  8110. </div>
  8111. </div>
  8112. <div class="bg-white rounded-xl p-4 shadow-sm cursor-pointer" onclick="goToConstructionPage('construction_taskDetailPage')">
  8113. <div class="flex justify-between items-start mb-2">
  8114. <h3 class="text-sm font-semibold text-gray-800">碧桂园 - 油污管疏通</h3>
  8115. <span class="tag tag-green text-xs">已完成</span>
  8116. </div>
  8117. <p class="text-xs text-gray-500 mb-2"><i class="fas fa-map-marker-alt w-4"></i>碧桂园二期</p>
  8118. <div class="flex items-center text-xs text-gray-400">
  8119. <span>完成时间:2026-04-22</span>
  8120. </div>
  8121. </div>
  8122. <div class="bg-white rounded-xl p-4 shadow-sm cursor-pointer" onclick="goToConstructionPage('construction_taskDetailPage')">
  8123. <div class="flex justify-between items-start mb-2">
  8124. <h3 class="text-sm font-semibold text-gray-800">恒大城 - 排水管清洗</h3>
  8125. <span class="tag tag-green text-xs">已完成</span>
  8126. </div>
  8127. <p class="text-xs text-gray-500 mb-2"><i class="fas fa-map-marker-alt w-4"></i>恒大城3栋</p>
  8128. <div class="flex items-center text-xs text-gray-400">
  8129. <span>完成时间:2026-04-21</span>
  8130. </div>
  8131. </div>
  8132. <div class="bg-white rounded-xl p-4 shadow-sm cursor-pointer" onclick="goToConstructionPage('construction_taskDetailPage')">
  8133. <div class="flex justify-between items-start mb-2">
  8134. <h3 class="text-sm font-semibold text-gray-800">中海锦城 - 管道维修</h3>
  8135. <span class="tag tag-green text-xs">已完成</span>
  8136. </div>
  8137. <p class="text-xs text-gray-500 mb-2"><i class="fas fa-map-marker-alt w-4"></i>中海锦城B区</p>
  8138. <div class="flex items-center text-xs text-gray-400">
  8139. <span>完成时间:2026-04-20</span>
  8140. </div>
  8141. </div>
  8142. <div class="bg-white rounded-xl p-4 shadow-sm cursor-pointer" onclick="goToConstructionPage('construction_taskDetailPage')">
  8143. <div class="flex justify-between items-start mb-2">
  8144. <h3 class="text-sm font-semibold text-gray-800">保利香槟 - 化粪池清掏</h3>
  8145. <span class="tag tag-green text-xs">已完成</span>
  8146. </div>
  8147. <p class="text-xs text-gray-500 mb-2"><i class="fas fa-map-marker-alt w-4"></i>保利香槟国际</p>
  8148. <div class="flex items-center text-xs text-gray-400">
  8149. <span>完成时间:2026-04-19</span>
  8150. </div>
  8151. </div>
  8152. </div>
  8153. </div>
  8154. </div>
  8155. <!-- ========== 明日任务页面 ========== -->
  8156. <div id="construction_tomorrowTaskPage" class="page hide-nav">
  8157. <div class="bg-white px-4 pt-8 pb-3 shadow-sm sticky top-0 z-10">
  8158. <div class="flex items-center">
  8159. <button class="w-10 h-10 flex items-center justify-center mr-2" onclick="goToConstructionPage('construction_homePage')">
  8160. <i class="fas fa-arrow-left text-gray-600 text-lg"></i>
  8161. </button>
  8162. <h1 class="text-lg font-bold text-gray-800">明日任务</h1>
  8163. </div>
  8164. </div>
  8165. <div class="px-4 py-4">
  8166. <div class="space-y-3">
  8167. <div class="bg-white rounded-xl p-4 shadow-sm cursor-pointer" onclick="goToConstructionPage('construction_taskDetailPage')">
  8168. <div class="flex justify-between items-start mb-2">
  8169. <h3 class="text-sm font-semibold text-gray-800">绿城花园 - 管道疏通</h3>
  8170. <span class="tag tag-blue text-xs">待执行</span>
  8171. </div>
  8172. <p class="text-xs text-gray-500 mb-2"><i class="fas fa-map-marker-alt w-4"></i>绿城花园小区</p>
  8173. <div class="flex items-center text-xs text-gray-400">
  8174. <span>计划时间:2026-04-25 09:00</span>
  8175. </div>
  8176. </div>
  8177. <div class="bg-white rounded-xl p-4 shadow-sm cursor-pointer" onclick="goToConstructionPage('construction_taskDetailPage')">
  8178. <div class="flex justify-between items-start mb-2">
  8179. <h3 class="text-sm font-semibold text-gray-800">金地名峰 - 化粪池清掏</h3>
  8180. <span class="tag tag-blue text-xs">待执行</span>
  8181. </div>
  8182. <p class="text-xs text-gray-500 mb-2"><i class="fas fa-map-marker-alt w-4"></i>金地名峰1栋</p>
  8183. <div class="flex items-center text-xs text-gray-400">
  8184. <span>计划时间:2026-04-25 14:00</span>
  8185. </div>
  8186. </div>
  8187. </div>
  8188. </div>
  8189. </div>
  8190. <!-- 反馈问题弹窗 -->
  8191. <div class="modal-overlay hidden" id="constructionFeedbackModal">
  8192. <div class="modal-content">
  8193. <div class="modal-header">
  8194. <span class="modal-title">反馈问题</span>
  8195. <button class="modal-close" onclick="closeConstructionFeedbackModal()">
  8196. <i class="fas fa-times"></i>
  8197. </button>
  8198. </div>
  8199. <div class="modal-body">
  8200. <textarea class="w-full border rounded-lg p-3 text-sm" rows="4" id="constructionFeedbackText" placeholder="请描述遇到的问题..."></textarea>
  8201. </div>
  8202. <div class="modal-footer">
  8203. <button class="btn btn-outline" onclick="closeConstructionFeedbackModal()">取消</button>
  8204. <button class="btn btn-primary" style="background: linear-gradient(135deg, #10b981 0%, #059669 100%);" onclick="submitConstructionFeedback()">提交反馈</button>
  8205. </div>
  8206. </div>
  8207. </div>
  8208. <!-- 拒绝原因弹窗 -->
  8209. <div class="modal-overlay hidden" id="constructionRejectModal">
  8210. <div class="modal-content">
  8211. <div class="modal-header">
  8212. <span class="modal-title">拒绝原因</span>
  8213. <button class="modal-close" onclick="closeConstructionRejectModal()">
  8214. <i class="fas fa-times"></i>
  8215. </button>
  8216. </div>
  8217. <div class="modal-body">
  8218. <textarea class="w-full border rounded-lg p-3 text-sm" rows="4" id="constructionRejectText" placeholder="请输入拒绝原因..."></textarea>
  8219. </div>
  8220. <div class="modal-footer">
  8221. <button class="btn btn-outline" onclick="closeConstructionRejectModal()">取消</button>
  8222. <button class="btn btn-danger" onclick="submitConstructionReject()">确认拒绝</button>
  8223. </div>
  8224. </div>
  8225. </div>
  8226. <!-- Toast提示 -->
  8227. <div id="toast" class="hidden"></div>
  8228. </div><!-- constructionApp结束 -->
  8229. <script>
  8230. // ==================== 销售端JavaScript ====================
  8231. // 项目数据结构(含子服务项)
  8232. const projects = {
  8233. '积丹白鹭': {
  8234. name: '积丹白鹭',
  8235. contacts: [{name: '张经理', phone: '138****1234'}],
  8236. servicePoints: [
  8237. {name: '1号化粪池', location: '南门地下车库入口旁', serviceType: '清掏'},
  8238. {name: '2号隔油池', location: '商业区B1层餐饮后厨区', serviceType: '清掏'},
  8239. {name: '3号油污管道', location: '住宅区东侧绿化带', serviceType: '疏通'}
  8240. ]
  8241. },
  8242. '富源同坐': {
  8243. name: '富源同坐',
  8244. contacts: [{name: '李主管', phone: '139****5678'}],
  8245. servicePoints: [
  8246. {name: '主化粪池', location: '小区中心花园北侧', serviceType: '清掏'},
  8247. {name: '东侧管道', location: '东门入口排水沟', serviceType: '疏通'},
  8248. {name: '商业区主管', location: '商业街地下主管', serviceType: '排查'}
  8249. ]
  8250. },
  8251. '俊发城': {
  8252. name: '俊发城',
  8253. contacts: [{name: '王物业', phone: '136****8765'}],
  8254. servicePoints: [
  8255. {name: '1号化粪池', location: '1号楼南侧绿化带', serviceType: '清掏'},
  8256. {name: '2号化粪池', location: '3号楼西侧', serviceType: '清掏'},
  8257. {name: '地下主管', location: '地下停车场主排污管', serviceType: '疏通'},
  8258. {name: '5号楼管道', location: '5号楼单元入口', serviceType: '维修'}
  8259. ]
  8260. },
  8261. '逸安新城A区': {
  8262. name: '逸安新城A区',
  8263. contacts: [{name: '赵经理', phone: '137****4321'}],
  8264. servicePoints: [
  8265. {name: 'A1号隔油池', location: '餐饮街后巷', serviceType: '清掏'},
  8266. {name: 'A2号油污管', location: '美食广场B区', serviceType: '疏通'}
  8267. ]
  8268. },
  8269. '逸安新城B区': {
  8270. name: '逸安新城B区',
  8271. contacts: [{name: '陈师傅', phone: '135****9876'}],
  8272. servicePoints: [
  8273. {name: 'B1号化粪池', location: '小区中庭花园', serviceType: '清掏'},
  8274. {name: 'B2号化粪池', location: '4栋北侧', serviceType: '清掏'},
  8275. {name: 'B区主管', location: '小区主排污口', serviceType: '疏通'},
  8276. {name: 'B区支管', location: '儿童游乐区旁', serviceType: '排查'},
  8277. {name: 'B区PVC管', location: '6栋单元主管', serviceType: '维修'}
  8278. ]
  8279. }
  8280. };
  8281. // 任务数据(模拟)
  8282. const taskData = {
  8283. 'task001': {
  8284. id: 'TASK-20240120-001',
  8285. status: '调度中',
  8286. statusClass: 'status-scheduling',
  8287. urgent: '普通',
  8288. urgentClass: 'urgent-normal',
  8289. projectName: '积丹白鹭',
  8290. coopType: '包年',
  8291. facilityType: '油污管',
  8292. address: '昆明市五华区积丹白鹭小区',
  8293. serviceType: '疏通',
  8294. publishTime: '2024-01-20 14:30',
  8295. serviceTime: '2024-01-21 09:00',
  8296. faultLocation: '积丹白鹭小区地下停车场B1层',
  8297. geoLocation: '积丹白鹭小区地下停车场B1层',
  8298. faultDesc: '管道堵塞,污水溢出,需要紧急疏通处理',
  8299. vehicle: '疏通车',
  8300. serviceMode: '应急',
  8301. facility: '油污管',
  8302. waterSource: '有消防水',
  8303. septicTank: '正常',
  8304. constructionHelp: '地库限高2.2米,需注意',
  8305. estimatedQuantity: '2个堵点',
  8306. estimatedHours: '2小时',
  8307. acceptRequirement: '正常走水',
  8308. previousConstruction: '否',
  8309. acceptType: '签署验收计量单',
  8310. contacts: [{name: '陈物业', phone: '138****8888'}],
  8311. partyAContacts: [{name: '陈物业', phone: '138****8888'}],
  8312. team: '班组A',
  8313. remark: '',
  8314. progressStep: 2,
  8315. records: [
  8316. {time: '2024-01-20 14:35', operator: '调度中心', role: 'dispatch', action: '调度中心已接收,正在分配班组'},
  8317. {time: '2024-01-20 14:30', operator: '张销售', role: 'sales', action: '任务已发布'}
  8318. ]
  8319. },
  8320. 'task002': {
  8321. id: 'TASK-20240120-002',
  8322. status: '施工中',
  8323. statusClass: 'status-constructing',
  8324. urgent: '紧急',
  8325. urgentClass: 'urgent-high',
  8326. projectName: '富源同坐',
  8327. coopType: '季度',
  8328. facilityType: '化粪池',
  8329. address: '昆明市西山区富源同坐商业广场',
  8330. serviceType: '清淤',
  8331. publishTime: '2024-01-20 10:15',
  8332. serviceTime: '2024-01-20 11:00',
  8333. faultLocation: '富源同坐商业广场南门',
  8334. geoLocation: '富源同坐商业广场南门',
  8335. faultDesc: '化粪池满溢,影响正常使用',
  8336. vehicle: '吸污车',
  8337. serviceMode: '应急',
  8338. facility: '化粪池',
  8339. waterSource: '无消防水',
  8340. septicTank: '异常',
  8341. constructionHelp: '需在营业前完成',
  8342. estimatedQuantity: '1个池体',
  8343. estimatedHours: '3小时',
  8344. acceptRequirement: '池体清理干净',
  8345. previousConstruction: '是',
  8346. acceptType: '累计自动计费',
  8347. contacts: [{name: '王主管', phone: '139****6666'}],
  8348. partyAContacts: [{name: '王主管', phone: '139****6666'}],
  8349. team: '班组B',
  8350. remark: '需在营业前完成',
  8351. progressStep: 3,
  8352. records: [
  8353. {time: '2024-01-20 11:00', operator: '班组B', role: 'worker', action: '施工人员已到达现场,开始施工'},
  8354. {time: '2024-01-20 10:45', operator: '调度中心', role: 'dispatch', action: '已分配班组:班组B'},
  8355. {time: '2024-01-20 10:30', operator: '调度中心', role: 'dispatch', action: '调度中心已接收任务'},
  8356. {time: '2024-01-20 10:15', operator: '张销售', role: 'sales', action: '任务已发布(紧急)'}
  8357. ]
  8358. },
  8359. 'task003': {
  8360. id: 'TASK-20240119-003',
  8361. status: '已完成',
  8362. statusClass: 'status-completed',
  8363. urgent: '普通',
  8364. urgentClass: 'urgent-normal',
  8365. projectName: '俊发城',
  8366. coopType: '月付',
  8367. facilityType: 'PVC',
  8368. address: '昆明市盘龙区俊发城住宅区',
  8369. serviceType: '维修',
  8370. publishTime: '2024-01-19 09:00',
  8371. serviceTime: '2024-01-19 10:00',
  8372. faultLocation: '俊发城住宅区3号楼',
  8373. geoLocation: '俊发城住宅区3号楼',
  8374. faultDesc: 'PVC管道破裂漏水',
  8375. vehicle: '疏通车',
  8376. serviceMode: '月计划',
  8377. facility: 'PVC',
  8378. waterSource: '有消防水',
  8379. septicTank: '正常',
  8380. constructionHelp: '',
  8381. estimatedQuantity: '1处',
  8382. estimatedHours: '1小时',
  8383. acceptRequirement: '管道修复完成',
  8384. previousConstruction: '否',
  8385. acceptType: '签署验收计量单',
  8386. contacts: [{name: '张经理', phone: '158****2222'}],
  8387. partyAContacts: [{name: '张经理', phone: '158****2222'}],
  8388. team: '班组C',
  8389. remark: '',
  8390. progressStep: 4,
  8391. records: [
  8392. {time: '2024-01-19 16:45', operator: '班组C', role: 'worker', action: '施工完成,任务已结束'},
  8393. {time: '2024-01-19 10:00', operator: '班组C', role: 'worker', action: '施工人员已到达现场,开始施工'},
  8394. {time: '2024-01-19 09:30', operator: '调度中心', role: 'dispatch', action: '已分配班组:班组C'},
  8395. {time: '2024-01-19 09:15', operator: '调度中心', role: 'dispatch', action: '调度中心已接收任务'},
  8396. {time: '2024-01-19 09:00', operator: '张销售', role: 'sales', action: '任务已发布'}
  8397. ]
  8398. },
  8399. 'task004': {
  8400. id: 'TASK-20240120-004',
  8401. status: '应急',
  8402. statusClass: 'status-emergency',
  8403. urgent: '紧急',
  8404. urgentClass: 'urgent-high',
  8405. projectName: '逸安新城A区',
  8406. coopType: '包年',
  8407. facilityType: '油污管',
  8408. address: '昆明市官渡区逸安新城A区',
  8409. serviceType: '疏通',
  8410. publishTime: '2024-01-20 08:30',
  8411. serviceTime: '2024-01-20 09:00',
  8412. faultLocation: '逸安新城A区地下车库入口',
  8413. geoLocation: '逸安新城A区地下车库入口',
  8414. faultDesc: '管道严重堵塞,污水倒灌',
  8415. vehicle: '高压清洗车',
  8416. serviceMode: '应急',
  8417. facility: '油污管',
  8418. waterSource: '有消防水',
  8419. septicTank: '正常',
  8420. constructionHelp: '高峰期车流量大,请尽快处理',
  8421. estimatedQuantity: '3个堵点',
  8422. estimatedHours: '4小时',
  8423. acceptRequirement: '管道畅通',
  8424. previousConstruction: '是',
  8425. acceptType: '签署验收计量单',
  8426. contacts: [{name: '李总', phone: '136****5555'}],
  8427. partyAContacts: [{name: '李总', phone: '136****5555'}],
  8428. team: '应急班组',
  8429. remark: '高峰期车流量大,请尽快处理',
  8430. progressStep: 3,
  8431. records: [
  8432. {time: '2024-01-20 09:05', operator: '应急班组', role: 'worker', action: '应急班组已到达现场,开始施工'},
  8433. {time: '2024-01-20 08:50', operator: '调度中心', role: 'dispatch', action: '已启动应急响应,分配应急班组'},
  8434. {time: '2024-01-20 08:35', operator: '调度中心', role: 'dispatch', action: '收到应急任务请求'},
  8435. {time: '2024-01-20 08:30', operator: '张销售', role: 'sales', action: '任务已发布(应急)'}
  8436. ]
  8437. },
  8438. 'task005': {
  8439. id: 'TASK-20240121-005',
  8440. status: '调度中',
  8441. statusClass: 'status-scheduling',
  8442. urgent: '普通',
  8443. urgentClass: 'urgent-normal',
  8444. projectName: '逸安新城B区',
  8445. coopType: '单次',
  8446. facilityType: '隔油池',
  8447. address: '昆明市官渡区逸安新城B区',
  8448. serviceType: '清掏',
  8449. publishTime: '2024-01-21 09:00',
  8450. serviceTime: '2024-01-22 14:00',
  8451. faultLocation: '逸安新城B区餐饮一条街',
  8452. geoLocation: '逸安新城B区餐饮一条街',
  8453. faultDesc: '隔油池油脂堆积,需要清理维护',
  8454. vehicle: '吸污车',
  8455. serviceMode: '月计划',
  8456. facility: '隔油池',
  8457. waterSource: '有消防水',
  8458. septicTank: '正常',
  8459. constructionHelp: '',
  8460. estimatedQuantity: '1个池体',
  8461. estimatedHours: '2小时',
  8462. acceptRequirement: '池体清洁',
  8463. previousConstruction: '否',
  8464. acceptType: '累计自动计费',
  8465. contacts: [{name: '赵师傅', phone: '158****3333'}],
  8466. partyAContacts: [{name: '赵师傅', phone: '158****3333'}],
  8467. team: '待分配',
  8468. remark: '',
  8469. progressStep: 1,
  8470. records: [
  8471. {time: '2024-01-21 09:00', operator: '张销售', role: 'sales', action: '任务已发布'}
  8472. ]
  8473. }
  8474. };
  8475. // 当前任务的联系人列表(用于详情页)
  8476. let currentTaskContacts = [];
  8477. let currentPartyAContacts = [];
  8478. // 跳转到任务详情
  8479. function goToTaskDetail(taskId) {
  8480. const task = taskData[taskId];
  8481. if (!task) return;
  8482. // 重置联系人列表
  8483. currentTaskContacts = [...task.contacts];
  8484. currentPartyAContacts = task.partyAContacts ? [...task.partyAContacts] : [...task.contacts];
  8485. // 填充详情页数据 - 项目信息
  8486. document.getElementById('detailStatusTag').className = 'status-tag ' + task.statusClass;
  8487. document.getElementById('detailStatusTag').textContent = task.status;
  8488. document.getElementById('detailProjectName').textContent = task.projectName;
  8489. document.getElementById('detailCoopType').innerHTML = '<span class="tag tag-blue">' + (task.coopType || '包年') + '</span>';
  8490. document.getElementById('detailFacilityType').textContent = task.facilityType || '油污管';
  8491. document.getElementById('detailAddress').textContent = task.address || task.projectName;
  8492. // 填充详情页数据 - 施工信息
  8493. document.getElementById('detailServiceTime').textContent = task.serviceTime;
  8494. document.getElementById('detailFaultLocation').textContent = task.faultLocation;
  8495. document.getElementById('detailGeoLocation').innerHTML = '<i class="fas fa-map-marker-alt mr-1"></i>' + (task.geoLocation || task.faultLocation);
  8496. document.getElementById('detailFaultDesc').textContent = task.faultDesc;
  8497. document.getElementById('detailServiceType').textContent = task.serviceType;
  8498. document.getElementById('detailFacility').textContent = task.facility || '油污管';
  8499. document.getElementById('detailServiceMode').textContent = task.serviceMode || '应急';
  8500. document.getElementById('detailVehicle').textContent = task.vehicle;
  8501. document.getElementById('detailWaterSource').textContent = task.waterSource || '有消防水';
  8502. document.getElementById('detailSepticTank').textContent = task.septicTank || '正常';
  8503. document.getElementById('detailConstructionHelp').textContent = task.constructionHelp || '-';
  8504. document.getElementById('detailEstimatedQuantity').textContent = task.estimatedQuantity || '-';
  8505. document.getElementById('detailEstimatedHours').textContent = task.estimatedHours || '-';
  8506. document.getElementById('detailAcceptRequirement').textContent = task.acceptRequirement || '-';
  8507. document.getElementById('detailPreviousConstruction').textContent = task.previousConstruction || '否';
  8508. document.getElementById('detailAcceptType').textContent = task.acceptType;
  8509. document.getElementById('detailRemark').textContent = task.remark || '-';
  8510. // 更新进度条
  8511. updateDetailProgressBar(task.progressStep);
  8512. // 渲染联系人列表(项目联系人)
  8513. renderProjectContactsList();
  8514. // 渲染甲方当事人列表
  8515. renderPartyAContactsList();
  8516. // 渲染处理记录(带角色颜色)
  8517. renderTimelineRecords(task.records);
  8518. // 根据状态显示不同操作按钮
  8519. updateDetailActions(task.status);
  8520. goToPage('taskDetailPage');
  8521. }
  8522. // 更新详情页进度条
  8523. function updateDetailProgressBar(step) {
  8524. const fill = document.getElementById('detailProgressFill');
  8525. const steps = [
  8526. document.getElementById('detailStep1'),
  8527. document.getElementById('detailStep2'),
  8528. document.getElementById('detailStep3'),
  8529. document.getElementById('detailStep4')
  8530. ];
  8531. // 计算进度条填充宽度
  8532. const widths = ['8%', '33%', '58%', '92%'];
  8533. if (fill) fill.style.width = widths[step - 1] || '8%';
  8534. // 更新步骤点状态
  8535. steps.forEach((stepEl, index) => {
  8536. if (!stepEl) return;
  8537. if (index < step) {
  8538. stepEl.classList.add('completed');
  8539. stepEl.classList.remove('active');
  8540. } else if (index === step - 1) {
  8541. stepEl.classList.add('active');
  8542. stepEl.classList.remove('completed');
  8543. } else {
  8544. stepEl.classList.remove('completed', 'active');
  8545. }
  8546. });
  8547. }
  8548. // 渲染项目联系人列表
  8549. function renderProjectContactsList() {
  8550. const container = document.getElementById('detailProjectContacts');
  8551. let html = '';
  8552. currentTaskContacts.forEach((contact) => {
  8553. html += `
  8554. <div class="contact-list-item" style="margin-bottom: 8px;">
  8555. <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3">
  8556. <i class="fas fa-user text-blue-500"></i>
  8557. </div>
  8558. <div class="contact-info">
  8559. <span class="contact-name">${contact.name}</span>
  8560. <span class="contact-phone">${contact.phone}</span>
  8561. </div>
  8562. <button class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center">
  8563. <i class="fas fa-phone text-green-500 text-xs"></i>
  8564. </button>
  8565. </div>
  8566. `;
  8567. });
  8568. container.innerHTML = html;
  8569. }
  8570. // 渲染甲方当事人列表
  8571. function renderPartyAContactsList() {
  8572. const container = document.getElementById('detailPartyAContacts');
  8573. let html = '';
  8574. currentPartyAContacts.forEach((contact) => {
  8575. html += `
  8576. <div class="contact-list-item" style="margin-bottom: 8px;">
  8577. <div class="w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center mr-3">
  8578. <i class="fas fa-user text-orange-500"></i>
  8579. </div>
  8580. <div class="contact-info">
  8581. <span class="contact-name">${contact.name}</span>
  8582. <span class="contact-phone">${contact.phone}</span>
  8583. </div>
  8584. <button class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center">
  8585. <i class="fas fa-phone text-green-500 text-xs"></i>
  8586. </button>
  8587. </div>
  8588. `;
  8589. });
  8590. container.innerHTML = html;
  8591. }
  8592. // 获取角色图标和颜色类
  8593. function getRoleInfo(operator) {
  8594. if (operator.includes('销售') || operator.includes('张')) {
  8595. return { icon: 'fa-user-tie', colorClass: 'sales', label: '销售' };
  8596. } else if (operator.includes('调度') || operator.includes('中心')) {
  8597. return { icon: 'fa-headset', colorClass: 'dispatch', label: '调度' };
  8598. } else if (operator.includes('班组') || operator.includes('施工') || operator.includes('应急')) {
  8599. return { icon: 'fa-hard-hat', colorClass: 'worker', label: '施工' };
  8600. }
  8601. return { icon: 'fa-user', colorClass: 'sales', label: '未知' };
  8602. }
  8603. // 渲染时间线记录(带角色颜色)
  8604. function renderTimelineRecords(records) {
  8605. const container = document.getElementById('timelineRecords');
  8606. // 按时间倒序排列
  8607. const sortedRecords = [...records].sort((a, b) => b.time.localeCompare(a.time));
  8608. let html = '';
  8609. sortedRecords.forEach((record, index) => {
  8610. const isLatest = index === 0;
  8611. const roleInfo = getRoleInfo(record.operator);
  8612. const currentClass = isLatest ? ' current' : '';
  8613. html += `
  8614. <div class="timeline-record${currentClass}">
  8615. <div class="timeline-avatar ${roleInfo.colorClass}">
  8616. <i class="fas ${roleInfo.icon}"></i>
  8617. </div>
  8618. <div class="timeline-content">
  8619. <div class="timeline-time">${record.time}</div>
  8620. <div class="timeline-action">${record.action}</div>
  8621. <div class="timeline-operator">操作人:${record.operator}</div>
  8622. </div>
  8623. </div>
  8624. `;
  8625. });
  8626. container.innerHTML = html;
  8627. }
  8628. // 更新详情页操作按钮
  8629. function updateDetailActions(status) {
  8630. const actionsDiv = document.getElementById('detailActions');
  8631. if (status === '已完成') {
  8632. actionsDiv.innerHTML = `
  8633. <button class="flex-1 py-3 bg-blue-500 text-white rounded-xl font-medium" onclick="showToast('查看验收单')">
  8634. <i class="fas fa-file-alt mr-1"></i>查看验收单
  8635. </button>
  8636. <button class="flex-1 py-3 bg-white border border-gray-200 text-gray-600 rounded-xl font-medium" onclick="showToast('再次预约')">
  8637. 再次预约
  8638. </button>
  8639. `;
  8640. } else if (status === '施工中') {
  8641. actionsDiv.innerHTML = `
  8642. <button class="flex-1 py-3 bg-white border border-gray-200 text-gray-600 rounded-xl font-medium" onclick="showToast('联系班组')">
  8643. <i class="fas fa-phone mr-1"></i>联系班组
  8644. </button>
  8645. <button class="flex-1 py-3 bg-orange-500 text-white rounded-xl font-medium" onclick="showCancelModal()">
  8646. 申请取消
  8647. </button>
  8648. `;
  8649. } else if (status === '待取消') {
  8650. actionsDiv.innerHTML = `
  8651. <button class="flex-1 py-3 bg-gray-200 text-gray-500 rounded-xl font-medium" disabled>
  8652. 待取消
  8653. </button>
  8654. <button class="flex-1 py-3 bg-blue-500 text-white rounded-xl font-medium" onclick="showToast('催单成功')">
  8655. <i class="fas fa-bell mr-1"></i>催单
  8656. </button>
  8657. `;
  8658. } else {
  8659. actionsDiv.innerHTML = `
  8660. <button class="flex-1 py-3 bg-white border border-gray-200 text-gray-600 rounded-xl font-medium" onclick="showCancelModal()">
  8661. 取消任务
  8662. </button>
  8663. <button class="flex-1 py-3 bg-blue-500 text-white rounded-xl font-medium" onclick="showToast('催单成功')">
  8664. <i class="fas fa-bell mr-1"></i>催单
  8665. </button>
  8666. `;
  8667. }
  8668. }
  8669. // 折叠区块切换
  8670. function toggleSection(sectionId) {
  8671. const section = document.getElementById(sectionId);
  8672. section.classList.toggle('collapsed');
  8673. }
  8674. // 任务筛选功能
  8675. function filterTasks(status) {
  8676. document.querySelectorAll('.filter-tab').forEach(tab => {
  8677. tab.classList.remove('active');
  8678. if (tab.dataset.status === status) {
  8679. tab.classList.add('active');
  8680. }
  8681. });
  8682. const tasks = document.querySelectorAll('.task-card');
  8683. let visibleCount = 0;
  8684. tasks.forEach(card => {
  8685. if (status === 'all' || card.dataset.status === status) {
  8686. card.style.display = 'block';
  8687. visibleCount++;
  8688. } else {
  8689. card.style.display = 'none';
  8690. }
  8691. });
  8692. const emptyState = document.getElementById('taskEmptyState');
  8693. if (visibleCount === 0) {
  8694. emptyState.style.display = 'block';
  8695. } else {
  8696. emptyState.style.display = 'none';
  8697. }
  8698. }
  8699. // 发布任务相关变量
  8700. let selectedProject = null;
  8701. let publishContacts = []; // 项目联系人列表
  8702. let partyAContacts = []; // 甲方当事人列表
  8703. // 项目库扩展信息(用于自动带出)
  8704. const projectExtraInfo = {
  8705. '积丹白鹭': { coopType: '包年', facilityType: '住宅', address: '昆明市五华区积丹白鹭小区' },
  8706. '富源同坐': { coopType: '季度', facilityType: '商业', address: '昆明市西山区富源同坐商业广场' },
  8707. '俊发城': { coopType: '月付', facilityType: '住宅', address: '昆明市盘龙区俊发城小区' },
  8708. '逸安新城A区': { coopType: '包年', facilityType: '住宅', address: '昆明市官渡区逸安新城A区' },
  8709. '逸安新城B区': { coopType: '单次', facilityType: '市政', address: '昆明市官渡区逸安新城B区' }
  8710. };
  8711. // 项目选择变更事件
  8712. function onProjectSelectChange() {
  8713. const projectName = document.getElementById('projectSelect').value;
  8714. const hint = document.getElementById('projectSelectHint');
  8715. const hintText = document.getElementById('projectHintText');
  8716. const autoInfo = document.getElementById('projectAutoInfo');
  8717. const newForm = document.getElementById('newProjectForm');
  8718. // 清空联系人列表
  8719. publishContacts = [];
  8720. partyAContacts = [];
  8721. if (projectName === '') {
  8722. // 未选择
  8723. hint.style.display = 'flex';
  8724. hintText.textContent = '请从项目库选择或新增项目';
  8725. autoInfo.style.display = 'none';
  8726. newForm.style.display = 'none';
  8727. document.getElementById('projectSelectHint').className = 'bg-blue-50 rounded-lg px-3 py-2 mb-4 flex items-center';
  8728. document.querySelector('#projectSelectHint i').className = 'fas fa-info-circle text-blue-500 mr-2 text-sm';
  8729. selectedProject = null;
  8730. } else if (projectName === 'new') {
  8731. // 新增项目
  8732. hint.style.display = 'flex';
  8733. hintText.textContent = '新增项目';
  8734. autoInfo.style.display = 'none';
  8735. newForm.style.display = 'block';
  8736. document.getElementById('projectSelectHint').className = 'bg-orange-50 rounded-lg px-3 py-2 mb-4 flex items-center';
  8737. document.querySelector('#projectSelectHint i').className = 'fas fa-edit text-orange-500 mr-2 text-sm';
  8738. selectedProject = null;
  8739. // 清空新增表单
  8740. document.getElementById('newProjectName').value = '';
  8741. document.getElementById('newCoopType').value = '';
  8742. document.getElementById('newFacilityType').value = '';
  8743. document.getElementById('newProjectAddress').value = '';
  8744. } else {
  8745. // 选择了已有项目
  8746. hint.style.display = 'flex';
  8747. hintText.textContent = '已选择:' + projectName + '项目';
  8748. autoInfo.style.display = 'block';
  8749. newForm.style.display = 'none';
  8750. document.getElementById('projectSelectHint').className = 'bg-green-50 rounded-lg px-3 py-2 mb-4 flex items-center';
  8751. document.querySelector('#projectSelectHint i').className = 'fas fa-check-circle text-green-500 mr-2 text-sm';
  8752. // 显示自动带出的信息
  8753. document.getElementById('selectedProjectName').textContent = projectName;
  8754. const extraInfo = projectExtraInfo[projectName] || { coopType: '-', facilityType: '-', address: '-' };
  8755. document.getElementById('autoCoopType').textContent = extraInfo.coopType;
  8756. document.getElementById('autoFacilityType').textContent = extraInfo.facilityType;
  8757. document.getElementById('autoProjectAddress').textContent = extraInfo.address;
  8758. // 设置选中项目
  8759. selectedProject = projects[projectName] || null;
  8760. // 自动填充联系人(从项目联系人中获取)
  8761. if (selectedProject && selectedProject.contacts && selectedProject.contacts.length > 0) {
  8762. publishContacts = [...selectedProject.contacts];
  8763. partyAContacts = [...selectedProject.contacts];
  8764. }
  8765. // 自动填充故障位置
  8766. if (selectedProject && selectedProject.servicePoints && selectedProject.servicePoints.length > 0) {
  8767. document.getElementById('faultLocation').value = selectedProject.servicePoints[0].location;
  8768. document.getElementById('faultLocation').classList.add('auto-filled');
  8769. document.getElementById('faultLocationLabel').style.display = 'block';
  8770. }
  8771. }
  8772. // 渲染联系人列表
  8773. renderProjectContacts();
  8774. renderPartyAContacts();
  8775. }
  8776. // 重置项目选择
  8777. function resetProjectSelection() {
  8778. document.getElementById('projectSelect').value = '';
  8779. onProjectSelectChange();
  8780. // 清空故障位置
  8781. document.getElementById('faultLocation').value = '';
  8782. document.getElementById('faultLocation').classList.remove('auto-filled');
  8783. document.getElementById('faultLocationLabel').style.display = 'none';
  8784. }
  8785. // 渲染项目联系人列表
  8786. function renderProjectContacts() {
  8787. const container = document.getElementById('contactListContainer');
  8788. if (publishContacts.length === 0) {
  8789. container.innerHTML = '<div class="text-gray-400 text-sm text-center py-2">暂无联系人,请添加</div>';
  8790. return;
  8791. }
  8792. let html = '';
  8793. publishContacts.forEach((contact, index) => {
  8794. html += `
  8795. <div class="contact-list-item" data-index="${index}">
  8796. <div class="contact-info" style="flex-direction: column; align-items: flex-start;">
  8797. <div class="flex gap-2 w-full">
  8798. <input type="text" class="form-input" value="${contact.name}"
  8799. placeholder="姓名" style="flex: 1; padding: 8px 10px; font-size: 13px;"
  8800. onchange="updateProjectContact(${index}, 'name', this.value)">
  8801. <input type="tel" class="form-input" value="${contact.phone}"
  8802. placeholder="电话" style="flex: 1; padding: 8px 10px; font-size: 13px;"
  8803. onchange="updateProjectContact(${index}, 'phone', this.value)">
  8804. </div>
  8805. </div>
  8806. <div class="delete-btn" onclick="removeProjectContact(${index})">
  8807. <i class="fas fa-times"></i>
  8808. </div>
  8809. </div>
  8810. `;
  8811. });
  8812. container.innerHTML = html;
  8813. }
  8814. // 添加项目联系人
  8815. function addContactItem() {
  8816. publishContacts.push({name: '', phone: ''});
  8817. renderProjectContacts();
  8818. }
  8819. // 删除项目联系人
  8820. function removeProjectContact(index) {
  8821. publishContacts.splice(index, 1);
  8822. renderProjectContacts();
  8823. }
  8824. // 更新项目联系人信息
  8825. function updateProjectContact(index, field, value) {
  8826. if (publishContacts[index]) {
  8827. publishContacts[index][field] = value;
  8828. }
  8829. }
  8830. // 渲染甲方当事人列表
  8831. function renderPartyAContacts() {
  8832. const container = document.getElementById('partyAContactList');
  8833. if (partyAContacts.length === 0) {
  8834. container.innerHTML = '<div class="text-gray-400 text-sm text-center py-2">暂无甲方当事人,请添加</div>';
  8835. return;
  8836. }
  8837. let html = '';
  8838. partyAContacts.forEach((contact, index) => {
  8839. html += `
  8840. <div class="contact-list-item" data-index="${index}">
  8841. <div class="contact-info" style="flex-direction: column; align-items: flex-start;">
  8842. <div class="flex gap-2 w-full">
  8843. <input type="text" class="form-input" value="${contact.name}"
  8844. placeholder="姓名" style="flex: 1; padding: 8px 10px; font-size: 13px;"
  8845. onchange="updatePartyAContact(${index}, 'name', this.value)">
  8846. <input type="tel" class="form-input" value="${contact.phone}"
  8847. placeholder="电话" style="flex: 1; padding: 8px 10px; font-size: 13px;"
  8848. onchange="updatePartyAContact(${index}, 'phone', this.value)">
  8849. </div>
  8850. </div>
  8851. <div class="delete-btn" onclick="removePartyAContact(${index})">
  8852. <i class="fas fa-times"></i>
  8853. </div>
  8854. </div>
  8855. `;
  8856. });
  8857. container.innerHTML = html;
  8858. }
  8859. // 添加甲方当事人
  8860. function addPartyAContact() {
  8861. partyAContacts.push({name: '', phone: ''});
  8862. renderPartyAContacts();
  8863. }
  8864. // 删除甲方当事人
  8865. function removePartyAContact(index) {
  8866. partyAContacts.splice(index, 1);
  8867. renderPartyAContacts();
  8868. }
  8869. // 更新甲方当事人信息
  8870. function updatePartyAContact(index, field, value) {
  8871. if (partyAContacts[index]) {
  8872. partyAContacts[index][field] = value;
  8873. }
  8874. }
  8875. // 提交任务
  8876. function submitTask() {
  8877. const projectSelect = document.getElementById('projectSelect').value;
  8878. const serviceDate = document.getElementById('serviceDate').value;
  8879. const serviceTime = document.getElementById('serviceTime').value;
  8880. const faultLocation = document.getElementById('faultLocation').value;
  8881. const faultDesc = document.getElementById('faultDesc').value;
  8882. const serviceType = document.getElementById('serviceType').value;
  8883. const facilityType = document.getElementById('serviceFacilityType').value;
  8884. const serviceMode = document.getElementById('serviceMode').value;
  8885. const vehicleType = document.getElementById('vehicleType').value;
  8886. const acceptType = document.getElementById('acceptType').value;
  8887. // 验证必填项 - 项目选择
  8888. if (!projectSelect) {
  8889. showToast('请选择项目');
  8890. return;
  8891. }
  8892. // 如果选择新增项目,验证新增表单
  8893. if (projectSelect === 'new') {
  8894. const newProjectName = document.getElementById('newProjectName').value;
  8895. const newCoopType = document.getElementById('newCoopType').value;
  8896. const newFacilityType = document.getElementById('newFacilityType').value;
  8897. const newProjectAddress = document.getElementById('newProjectAddress').value;
  8898. if (!newProjectName) {
  8899. showToast('请输入项目名称');
  8900. return;
  8901. }
  8902. if (!newCoopType) {
  8903. showToast('请选择合作类型');
  8904. return;
  8905. }
  8906. if (!newFacilityType) {
  8907. showToast('请选择设施类型');
  8908. return;
  8909. }
  8910. if (!newProjectAddress) {
  8911. showToast('请输入项目地址');
  8912. return;
  8913. }
  8914. }
  8915. // 验证必填项 - 服务信息
  8916. if (!serviceDate || !serviceTime) {
  8917. showToast('请选择服务时间');
  8918. return;
  8919. }
  8920. if (!faultLocation) {
  8921. showToast('请填写故障位置');
  8922. return;
  8923. }
  8924. if (!faultDesc) {
  8925. showToast('请填写故障描述');
  8926. return;
  8927. }
  8928. if (!serviceType) {
  8929. showToast('请选择施工类型');
  8930. return;
  8931. }
  8932. if (!facilityType) {
  8933. showToast('请选择施工设施');
  8934. return;
  8935. }
  8936. if (!serviceMode) {
  8937. showToast('请选择服务方式');
  8938. return;
  8939. }
  8940. if (!vehicleType) {
  8941. showToast('请选择建议出车');
  8942. return;
  8943. }
  8944. if (!acceptType) {
  8945. showToast('请选择验收方式');
  8946. return;
  8947. }
  8948. // 检查甲方当事人
  8949. const validPartyA = partyAContacts.filter(c => c.name && c.phone);
  8950. if (validPartyA.length === 0) {
  8951. showToast('请至少添加一个甲方当事人');
  8952. return;
  8953. }
  8954. showToast('发布成功');
  8955. setTimeout(() => {
  8956. resetPublishForm();
  8957. goToPage('taskPage');
  8958. }, 1500);
  8959. }
  8960. // 重置发布表单
  8961. function resetPublishForm() {
  8962. document.getElementById('projectSelect').value = '';
  8963. selectedProject = null;
  8964. publishContacts = [];
  8965. partyAContacts = [];
  8966. // 重置提示区域
  8967. document.getElementById('projectSelectHint').style.display = 'flex';
  8968. document.getElementById('projectSelectHint').className = 'bg-blue-50 rounded-lg px-3 py-2 mb-4 flex items-center';
  8969. document.querySelector('#projectSelectHint i').className = 'fas fa-info-circle text-blue-500 mr-2 text-sm';
  8970. document.getElementById('projectHintText').textContent = '请从项目库选择或新增项目';
  8971. document.getElementById('projectAutoInfo').style.display = 'none';
  8972. document.getElementById('newProjectForm').style.display = 'none';
  8973. // 清空新增表单
  8974. document.getElementById('newProjectName').value = '';
  8975. document.getElementById('newCoopType').value = '';
  8976. document.getElementById('newFacilityType').value = '';
  8977. document.getElementById('newProjectAddress').value = '';
  8978. // 清空服务信息表单
  8979. document.getElementById('serviceDate').value = '';
  8980. document.getElementById('serviceTime').value = '';
  8981. document.getElementById('faultLocation').value = '';
  8982. document.getElementById('faultLocation').classList.remove('auto-filled');
  8983. document.getElementById('faultLocationLabel').style.display = 'none';
  8984. document.getElementById('faultDesc').value = '';
  8985. document.getElementById('serviceType').value = '';
  8986. document.getElementById('serviceFacilityType').value = '';
  8987. document.getElementById('serviceMode').value = '';
  8988. document.getElementById('vehicleType').value = '';
  8989. document.getElementById('acceptType').value = '';
  8990. document.getElementById('remark').value = '';
  8991. // 清空联系人列表
  8992. renderProjectContacts();
  8993. renderPartyAContacts();
  8994. }
  8995. // 兼容旧函数(保留以防其他地方调用)
  8996. function goToStep(step) {
  8997. // 新版单页面不需要步骤切换
  8998. }
  8999. function onProjectChange() {
  9000. onProjectSelectChange();
  9001. }
  9002. function onServicePointChange() {
  9003. // 新版不需要服务点选择
  9004. }
  9005. function resetSelection() {
  9006. resetProjectSelection();
  9007. }
  9008. function initPublishContacts() {
  9009. renderProjectContacts();
  9010. }
  9011. function fillFormWithServicePoint() {
  9012. // 新版自动填充在onProjectSelectChange中处理
  9013. }
  9014. // Toast提示
  9015. function showToast(message) {
  9016. const toast = document.getElementById('toast');
  9017. toast.textContent = message;
  9018. toast.classList.remove('hidden');
  9019. setTimeout(() => {
  9020. toast.classList.add('hidden');
  9021. }, 2000);
  9022. }
  9023. // 页面跳转
  9024. function goToPage(pageId) {
  9025. document.querySelectorAll('.page').forEach(p => p.classList.remove('active'));
  9026. document.getElementById(pageId).classList.add('active');
  9027. window.scrollTo(0, 0);
  9028. }
  9029. // ========== 销售端消息通知相关 ==========
  9030. function markAllMessagesRead() {
  9031. showToast('全部消息已标记为已读');
  9032. // 重置所有未读标记
  9033. document.querySelectorAll('.notice-item').forEach(item => {
  9034. const dot = item.querySelector('.bg-red-500');
  9035. if (dot) {
  9036. dot.classList.remove('bg-red-500');
  9037. dot.classList.add('bg-gray-200');
  9038. }
  9039. });
  9040. }
  9041. // 销售端消息通知页tab切换
  9042. function filterSalesNotifications(type, element) {
  9043. // 更新按钮样式
  9044. document.querySelectorAll('.sales-notification-tab').forEach(btn => {
  9045. btn.classList.remove('bg-blue-500', 'text-white');
  9046. btn.classList.add('bg-gray-100', 'text-gray-600');
  9047. });
  9048. element.classList.remove('bg-gray-100', 'text-gray-600');
  9049. element.classList.add('bg-blue-500', 'text-white');
  9050. // 筛选通知列表
  9051. const items = document.querySelectorAll('#salesNotificationList .notification-item');
  9052. items.forEach(item => {
  9053. if (type === 'all' || item.dataset.type === type) {
  9054. item.style.display = 'block';
  9055. } else {
  9056. item.style.display = 'none';
  9057. }
  9058. });
  9059. }
  9060. function filterMessages(type) {
  9061. // 更新按钮样式
  9062. event.target.parentElement.querySelectorAll('button').forEach(btn => {
  9063. btn.classList.remove('bg-blue-500', 'text-white');
  9064. btn.classList.add('bg-gray-100', 'text-gray-600');
  9065. });
  9066. event.target.classList.remove('bg-gray-100', 'text-gray-600');
  9067. event.target.classList.add('bg-blue-500', 'text-white');
  9068. showToast('已筛选:' + (type === 'all' ? '全部消息' : type === 'task' ? '任务消息' : '系统消息'));
  9069. }
  9070. function toggleFaq(element) {
  9071. const answer = element.nextElementSibling;
  9072. const icon = element.querySelector('i');
  9073. if (answer.classList.contains('hidden')) {
  9074. answer.classList.remove('hidden');
  9075. icon.classList.remove('fa-chevron-down');
  9076. icon.classList.add('fa-chevron-up');
  9077. } else {
  9078. answer.classList.add('hidden');
  9079. icon.classList.remove('fa-chevron-up');
  9080. icon.classList.add('fa-chevron-down');
  9081. }
  9082. }
  9083. function submitChangePassword() {
  9084. const currentPwd = document.getElementById('currentPassword').value;
  9085. const newPwd = document.getElementById('newPassword').value;
  9086. const confirmPwd = document.getElementById('confirmNewPassword').value;
  9087. if (!currentPwd) {
  9088. showToast('请输入当前密码');
  9089. return;
  9090. }
  9091. if (!newPwd) {
  9092. showToast('请输入新密码');
  9093. return;
  9094. }
  9095. if (newPwd.length < 6 || newPwd.length > 20) {
  9096. showToast('新密码长度需为6-20位');
  9097. return;
  9098. }
  9099. if (!/^(?=.*[a-zA-Z])(?=.*[0-9])/.test(newPwd)) {
  9100. showToast('新密码必须包含字母和数字');
  9101. return;
  9102. }
  9103. if (newPwd !== confirmPwd) {
  9104. showToast('两次输入的密码不一致');
  9105. return;
  9106. }
  9107. if (currentPwd === newPwd) {
  9108. showToast('新密码不能与当前密码相同');
  9109. return;
  9110. }
  9111. showToast('密码修改成功');
  9112. setTimeout(() => {
  9113. goToPage('profilePage');
  9114. }, 1000);
  9115. }
  9116. // 项目筛选功能
  9117. function filterProjects(type) {
  9118. // 更新标签选中状态
  9119. document.querySelectorAll('.filter-tab').forEach(tab => {
  9120. tab.classList.remove('active');
  9121. if (tab.dataset.type === type) {
  9122. tab.classList.add('active');
  9123. }
  9124. });
  9125. // 筛选项目卡片
  9126. const projects = document.querySelectorAll('.project-card');
  9127. let visibleCount = 0;
  9128. projects.forEach(card => {
  9129. if (type === 'all' || card.dataset.type === type) {
  9130. card.classList.remove('hidden');
  9131. visibleCount++;
  9132. } else {
  9133. card.classList.add('hidden');
  9134. }
  9135. });
  9136. // 显示/隐藏空状态
  9137. const emptyState = document.getElementById('emptyState');
  9138. if (visibleCount === 0) {
  9139. emptyState.style.display = 'block';
  9140. } else {
  9141. emptyState.style.display = 'none';
  9142. }
  9143. }
  9144. // 添加联系人
  9145. function addContact() {
  9146. const container = document.getElementById('contactsContainer');
  9147. const newContact = document.createElement('div');
  9148. newContact.className = 'contact-card';
  9149. newContact.innerHTML = `
  9150. <div class="flex gap-2 mb-2">
  9151. <input type="text" class="form-input contact-name" placeholder="联系人姓名" style="flex:1">
  9152. <input type="tel" class="form-input contact-phone" placeholder="联系电话" style="flex:1">
  9153. </div>
  9154. <div class="text-right">
  9155. <span class="text-red-400 text-xs cursor-pointer" onclick="this.parentElement.parentElement.remove()">删除</span>
  9156. </div>
  9157. `;
  9158. container.appendChild(newContact);
  9159. }
  9160. // 添加服务点
  9161. function addPoint() {
  9162. const container = document.getElementById('pointsContainer');
  9163. const pointCount = container.querySelectorAll('.point-item').length + 1;
  9164. const newPoint = document.createElement('div');
  9165. newPoint.className = 'point-item';
  9166. newPoint.innerHTML = `
  9167. <div class="flex items-center justify-between mb-2">
  9168. <span class="text-gray-600 text-xs font-medium">服务点 ${pointCount}</span>
  9169. <i class="fas fa-trash-alt text-red-400 ml-2 cursor-pointer" onclick="this.parentElement.parentElement.remove()"></i>
  9170. </div>
  9171. <input type="text" class="form-input point-name mb-2" placeholder="服务点名称(如:1号化粪池)">
  9172. <input type="text" class="form-input point-location mb-2" placeholder="位置(如:南门地下车库)">
  9173. <input type="text" class="form-input point-service" placeholder="对应服务项(如:清掏)">
  9174. `;
  9175. container.appendChild(newPoint);
  9176. }
  9177. // 提交项目
  9178. function submitProject() {
  9179. const projectName = document.getElementById('projectName').value;
  9180. const cooperationType = document.getElementById('cooperationType').value;
  9181. if (!projectName) {
  9182. showToast('请输入项目名称');
  9183. return;
  9184. }
  9185. if (!cooperationType) {
  9186. showToast('请选择合作类型');
  9187. return;
  9188. }
  9189. showToast('提交成功!');
  9190. setTimeout(() => {
  9191. goToPage('projectListPage');
  9192. }, 2000);
  9193. }
  9194. // 初始化筛选状态
  9195. filterProjects('all');
  9196. // ========== 模态框相关函数 ==========
  9197. // 显示取消任务模态框
  9198. function showCancelModal() {
  9199. document.getElementById('cancelModal').classList.remove('hidden');
  9200. document.getElementById('cancelReason').value = '';
  9201. }
  9202. // 隐藏取消任务模态框
  9203. function hideCancelModal() {
  9204. document.getElementById('cancelModal').classList.add('hidden');
  9205. }
  9206. // 点击模态框背景关闭
  9207. document.addEventListener('click', function(e) {
  9208. if (e.target.classList.contains('modal-overlay')) {
  9209. e.target.classList.add('hidden');
  9210. }
  9211. });
  9212. // 确认取消任务
  9213. function confirmCancel() {
  9214. const reason = document.getElementById('cancelReason').value.trim();
  9215. if (!reason) {
  9216. showToast('请输入取消原因');
  9217. return;
  9218. }
  9219. // 添加取消记录
  9220. const now = new Date();
  9221. const timeStr = now.getFullYear() + '-' +
  9222. String(now.getMonth() + 1).padStart(2, '0') + '-' +
  9223. String(now.getDate()).padStart(2, '0') + ' ' +
  9224. String(now.getHours()).padStart(2, '0') + ':' +
  9225. String(now.getMinutes()).padStart(2, '0');
  9226. // 更新状态标签
  9227. document.getElementById('detailStatusTag').className = 'status-tag';
  9228. document.getElementById('detailStatusTag').style.background = '#fef3c7';
  9229. document.getElementById('detailStatusTag').style.color = '#d97706';
  9230. document.getElementById('detailStatusTag').textContent = '待取消';
  9231. // 更新处理记录 - 使用新的时间线样式
  9232. const timelineRecords = document.getElementById('timelineRecords');
  9233. const roleInfo = getRoleInfo('张销售');
  9234. const newRecordHtml = `
  9235. <div class="timeline-record current">
  9236. <div class="timeline-avatar ${roleInfo.colorClass}">
  9237. <i class="fas ${roleInfo.icon}"></i>
  9238. </div>
  9239. <div class="timeline-content">
  9240. <div class="timeline-time">${timeStr}</div>
  9241. <div class="timeline-action">提交取消申请,取消原因:${reason}</div>
  9242. <div class="timeline-operator">操作人:张销售</div>
  9243. </div>
  9244. </div>
  9245. `;
  9246. // 移除最新记录的高亮
  9247. const currentRecords = timelineRecords.querySelectorAll('.timeline-record');
  9248. currentRecords.forEach(rec => rec.classList.remove('current'));
  9249. // 添加新记录到最前面
  9250. timelineRecords.insertAdjacentHTML('afterbegin', newRecordHtml);
  9251. // 更新底部按钮
  9252. updateDetailActions('待取消');
  9253. // 隐藏模态框
  9254. hideCancelModal();
  9255. // 显示提示
  9256. showToast('已提交取消申请,等待调度中心确认');
  9257. }
  9258. // 显示添加联系人模态框
  9259. function showAddContactModal() {
  9260. document.getElementById('addContactModal').classList.remove('hidden');
  9261. document.getElementById('newContactName').value = '';
  9262. document.getElementById('newContactPhone').value = '';
  9263. }
  9264. // 隐藏添加联系人模态框
  9265. function hideAddContactModal() {
  9266. document.getElementById('addContactModal').classList.add('hidden');
  9267. }
  9268. // 确认添加联系人
  9269. function confirmAddContact() {
  9270. const name = document.getElementById('newContactName').value.trim();
  9271. const phone = document.getElementById('newContactPhone').value.trim();
  9272. if (!name) {
  9273. showToast('请输入联系人姓名');
  9274. return;
  9275. }
  9276. if (!phone) {
  9277. showToast('请输入联系电话');
  9278. return;
  9279. }
  9280. // 添加到联系人列表
  9281. currentTaskContacts.push({name: name, phone: phone});
  9282. currentPartyAContacts.push({name: name, phone: phone});
  9283. renderProjectContactsList();
  9284. renderPartyAContactsList();
  9285. // 添加处理记录 - 使用新的时间线样式
  9286. const now = new Date();
  9287. const timeStr = now.getFullYear() + '-' +
  9288. String(now.getMonth() + 1).padStart(2, '0') + '-' +
  9289. String(now.getDate()).padStart(2, '0') + ' ' +
  9290. String(now.getHours()).padStart(2, '0') + ':' +
  9291. String(now.getMinutes()).padStart(2, '0');
  9292. const timelineRecords = document.getElementById('timelineRecords');
  9293. const roleInfo = getRoleInfo('张销售');
  9294. const newRecordHtml = `
  9295. <div class="timeline-record current">
  9296. <div class="timeline-avatar ${roleInfo.colorClass}">
  9297. <i class="fas ${roleInfo.icon}"></i>
  9298. </div>
  9299. <div class="timeline-content">
  9300. <div class="timeline-time">${timeStr}</div>
  9301. <div class="timeline-action">新增联系人:${name} (${phone})</div>
  9302. <div class="timeline-operator">操作人:张销售</div>
  9303. </div>
  9304. </div>
  9305. `;
  9306. // 移除最新记录的高亮
  9307. const currentRecords = timelineRecords.querySelectorAll('.timeline-record');
  9308. currentRecords.forEach(rec => rec.classList.remove('current'));
  9309. // 添加新记录到最前面
  9310. timelineRecords.insertAdjacentHTML('afterbegin', newRecordHtml);
  9311. // 隐藏模态框
  9312. hideAddContactModal();
  9313. // 显示提示
  9314. showToast('联系人添加成功');
  9315. }
  9316. // 显示补充信息模态框
  9317. function showSupplementModal() {
  9318. showToast('补充信息功能开发中');
  9319. }
  9320. // ==================== 调度端JavaScript ====================
  9321. let currentRole = 'dispatch';
  9322. let currentYear = 2026;
  9323. let currentMonth = 3;
  9324. let selectedDate = 21;
  9325. let selectedScheduleType = 'monthly';
  9326. let currentTaskFilter = 'all';
  9327. const teamsData = {
  9328. 'zhang': { name: '张师傅组', members: ['张三', '李四'] },
  9329. 'wang': { name: '王师傅组', members: ['王五', '赵六'] },
  9330. 'liu': { name: '刘师傅组', members: ['刘七', '陈八'] }
  9331. };
  9332. const vehiclesData = {
  9333. 'v1': { name: '疏通车01', plate: '贵A81356' },
  9334. 'v2': { name: '疏通车02', plate: '贵A82345' },
  9335. 'v3': { name: '吸污车03', plate: '贵A83456' },
  9336. 'v4': { name: '吸污车04', plate: '贵A84567' },
  9337. 'v5': { name: '高压清洗车05', plate: '贵A85678' }
  9338. };
  9339. const schedulesData = {
  9340. '2026-04-21': [
  9341. { id: 1, teamKey: 'zhang', vehicleKey: 'v1', type: 'monthly', remark: '' },
  9342. { id: 2, teamKey: 'wang', vehicleKey: 'v3', type: 'emergency', remark: '应急响应' }
  9343. ],
  9344. '2026-04-22': [
  9345. { id: 3, teamKey: 'wang', vehicleKey: 'v2', type: 'monthly', remark: '' }
  9346. ],
  9347. '2026-04-15': [
  9348. { id: 4, teamKey: 'liu', vehicleKey: 'v5', type: 'monthly', remark: '定期清洗' }
  9349. ],
  9350. '2026-04-18': [
  9351. { id: 5, teamKey: 'zhang', vehicleKey: 'v4', type: 'emergency', remark: '紧急疏通' }
  9352. ]
  9353. };
  9354. // 任务数据
  9355. const tasksData = {
  9356. 'T001': { title: '积丹白鹭小区疏通', address: '积丹白鹭小区A栋', type: '油污管疏通', time: '今天 09:30', applicant: '李明', status: 'pending' },
  9357. 'T002': { title: '俊发城应急疏通', address: '俊发城住宅区', type: '化粪池清理', time: '今天 10:15', applicant: '王芳', status: 'pending' },
  9358. 'T003': { title: '逸安新城日常维护', address: '逸安新城A区', type: '日常维护', time: '今天 08:00', applicant: '系统', status: 'processing', team: '张师傅组', vehicle: '疏通车01' },
  9359. 'T004': { title: '富源同坐管道检修', address: '富源同坐商业广场', type: '管道检修', time: '昨天 16:30', applicant: '赵经理', status: 'completed', team: '王师傅组', vehicle: '吸污车03' },
  9360. 'T005': { title: '云岩大厦排污', address: '云岩大厦', type: '排污处理', time: '昨天 14:20', applicant: '陈主管', status: 'rejected', rejectReason: '设备临时故障' },
  9361. 'T006': { title: '新都国际管道维修', address: '新都国际小区', type: '管道维修', time: '今天 11:00', applicant: '周经理', status: 'confirmed' }
  9362. };
  9363. let currentDetailTaskId = null;
  9364. function goToDispatchPage(pageId) {
  9365. document.querySelectorAll('.page').forEach(p => p.classList.remove('active'));
  9366. document.getElementById(pageId).classList.add('active');
  9367. // 更新导航高亮
  9368. document.querySelectorAll('.nav-item').forEach(item => {
  9369. if (item.dataset.page === pageId) {
  9370. item.classList.add('active');
  9371. } else {
  9372. item.classList.remove('active');
  9373. }
  9374. });
  9375. // 渲染对应页面内容
  9376. if (pageId === 'dispatch_schedulePage') {
  9377. renderScheduleCalendar();
  9378. renderScheduleList();
  9379. } else if (pageId === 'dispatch_taskPage') {
  9380. filterTasks(currentTaskFilter);
  9381. } else if (pageId === 'dispatch_notificationPage') {
  9382. renderDispatchNotificationList();
  9383. }
  9384. }
  9385. // ========== 调度端消息通知相关 ==========
  9386. function markAllRead() {
  9387. showToast('全部消息已标记为已读');
  9388. // 重置所有未读标记
  9389. document.querySelectorAll('.notice-item').forEach(item => {
  9390. const dot = item.querySelector('.bg-red-500');
  9391. if (dot) {
  9392. dot.classList.remove('bg-red-500');
  9393. dot.classList.add('bg-gray-200');
  9394. }
  9395. });
  9396. }
  9397. function filterNotification(type) {
  9398. // 更新按钮样式
  9399. event.target.parentElement.querySelectorAll('button').forEach(btn => {
  9400. btn.classList.remove('bg-blue-500', 'text-white');
  9401. btn.classList.add('bg-gray-100', 'text-gray-600');
  9402. });
  9403. event.target.classList.remove('bg-gray-100', 'text-gray-600');
  9404. event.target.classList.add('bg-blue-500', 'text-white');
  9405. showToast('已筛选:' + (type === 'all' ? '全部' : type === 'task' ? '任务分配' : type === 'audit' ? '审核结果' : '系统消息'));
  9406. }
  9407. function toggleDispatchFaq(element) {
  9408. const answer = element.nextElementSibling;
  9409. const icon = element.querySelector('i');
  9410. if (answer.classList.contains('hidden')) {
  9411. answer.classList.remove('hidden');
  9412. icon.classList.remove('fa-chevron-down');
  9413. icon.classList.add('fa-chevron-up');
  9414. } else {
  9415. answer.classList.add('hidden');
  9416. icon.classList.remove('fa-chevron-up');
  9417. icon.classList.add('fa-chevron-down');
  9418. }
  9419. }
  9420. function submitDispatchChangePassword() {
  9421. const currentPwd = document.getElementById('dispatchCurrentPassword').value;
  9422. const newPwd = document.getElementById('dispatchNewPassword').value;
  9423. const confirmPwd = document.getElementById('dispatchConfirmNewPassword').value;
  9424. if (!currentPwd) {
  9425. showToast('请输入当前密码');
  9426. return;
  9427. }
  9428. if (!newPwd) {
  9429. showToast('请输入新密码');
  9430. return;
  9431. }
  9432. if (newPwd.length < 6 || newPwd.length > 20) {
  9433. showToast('新密码长度需为6-20位');
  9434. return;
  9435. }
  9436. if (!/^(?=.*[a-zA-Z])(?=.*[0-9])/.test(newPwd)) {
  9437. showToast('新密码必须包含字母和数字');
  9438. return;
  9439. }
  9440. if (newPwd !== confirmPwd) {
  9441. showToast('两次输入的密码不一致');
  9442. return;
  9443. }
  9444. if (currentPwd === newPwd) {
  9445. showToast('新密码不能与当前密码相同');
  9446. return;
  9447. }
  9448. showToast('密码修改成功');
  9449. setTimeout(() => {
  9450. goToDispatchPage('dispatch_myPage');
  9451. }, 1000);
  9452. }
  9453. function logout() {
  9454. goToDispatchPage('loginPage');
  9455. showToast('已退出登录');
  9456. }
  9457. // ========== 排班页面相关 ==========
  9458. function renderScheduleCalendar() {
  9459. const calendarTitle = document.getElementById('calendarTitle2');
  9460. if (calendarTitle) {
  9461. calendarTitle.textContent = `${currentYear}年${currentMonth + 1}月`;
  9462. }
  9463. const calendarDays = document.getElementById('calendarDays2');
  9464. if (!calendarDays) return;
  9465. calendarDays.innerHTML = '';
  9466. const firstDay = new Date(currentYear, currentMonth, 1);
  9467. const lastDay = new Date(currentYear, currentMonth + 1, 0);
  9468. const startWeekday = firstDay.getDay() || 7;
  9469. for (let i = 1; i < startWeekday; i++) {
  9470. const emptyDay = document.createElement('div');
  9471. emptyDay.className = 'calendar-day other-month';
  9472. emptyDay.textContent = new Date(currentYear, currentMonth, 1 - startWeekday + i).getDate();
  9473. calendarDays.appendChild(emptyDay);
  9474. }
  9475. const today = new Date();
  9476. for (let day = 1; day <= lastDay.getDate(); day++) {
  9477. const dayElement = document.createElement('div');
  9478. dayElement.className = 'calendar-day';
  9479. const dateStr = `${currentYear}-${String(currentMonth + 1).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
  9480. const isToday = today.getFullYear() === currentYear && today.getMonth() === currentMonth && today.getDate() === day;
  9481. const isSelected = selectedDate === day;
  9482. if (isToday) {
  9483. dayElement.classList.add('today');
  9484. }
  9485. if (isSelected) {
  9486. dayElement.classList.add('selected');
  9487. }
  9488. const dayNumberHtml = isToday ? `<span class="day-number">${day}</span>` : `<span>${day}</span>`;
  9489. dayElement.innerHTML = `
  9490. ${dayNumberHtml}
  9491. ${getDayDotsHtml(dateStr)}
  9492. `;
  9493. dayElement.addEventListener('click', () => selectDate(day, dateStr));
  9494. calendarDays.appendChild(dayElement);
  9495. }
  9496. }
  9497. function getDayDotsHtml(dateStr) {
  9498. const schedules = schedulesData[dateStr];
  9499. if (!schedules || schedules.length === 0) return '';
  9500. let dotsHtml = '<div class="day-dots">';
  9501. schedules.forEach(s => {
  9502. const dotClass = s.type === 'monthly' ? 'monthly' : 'emergency';
  9503. dotsHtml += `<div class="day-dot ${dotClass}"></div>`;
  9504. });
  9505. dotsHtml += '</div>';
  9506. return dotsHtml;
  9507. }
  9508. function selectDate(day, dateStr) {
  9509. selectedDate = day;
  9510. renderScheduleCalendar();
  9511. renderScheduleList();
  9512. openDateDetailModal(dateStr, day);
  9513. }
  9514. function changeMonth(delta) {
  9515. currentMonth += delta;
  9516. if (currentMonth > 11) {
  9517. currentMonth = 0;
  9518. currentYear++;
  9519. } else if (currentMonth < 0) {
  9520. currentMonth = 11;
  9521. currentYear--;
  9522. }
  9523. renderScheduleCalendar();
  9524. }
  9525. function renderScheduleList() {
  9526. const listTitle = document.getElementById('scheduleListTitle');
  9527. if (listTitle) {
  9528. listTitle.textContent = `${currentMonth + 1}月${selectedDate}日 排班`;
  9529. }
  9530. const scheduleList = document.getElementById('scheduleList');
  9531. if (!scheduleList) return;
  9532. const dateStr = `${currentYear}-${String(currentMonth + 1).padStart(2, '0')}-${String(selectedDate).padStart(2, '0')}`;
  9533. const schedules = schedulesData[dateStr] || [];
  9534. if (schedules.length === 0) {
  9535. scheduleList.innerHTML = `
  9536. <div class="empty-state">
  9537. <i class="fas fa-calendar-times"></i>
  9538. <p>暂无排班安排</p>
  9539. </div>
  9540. `;
  9541. return;
  9542. }
  9543. scheduleList.innerHTML = schedules.map(s => {
  9544. const team = teamsData[s.teamKey];
  9545. const vehicle = vehiclesData[s.vehicleKey];
  9546. const iconClass = s.type === 'monthly' ? 'monthly' : 'emergency';
  9547. const tagClass = s.type === 'monthly' ? 'tag-blue' : 'tag-orange';
  9548. const tagText = s.type === 'monthly' ? '月计划' : '应急';
  9549. return `
  9550. <div class="schedule-card">
  9551. <div class="schedule-icon ${iconClass}">
  9552. <i class="fas ${s.type === 'monthly' ? 'fa-calendar-check' : 'fa-bolt'}"></i>
  9553. </div>
  9554. <div class="schedule-info">
  9555. <div class="schedule-team">${team.name}</div>
  9556. <div class="schedule-vehicle">
  9557. <i class="fas fa-truck"></i>
  9558. ${vehicle.name}(${vehicle.plate})
  9559. </div>
  9560. <div class="schedule-time">
  9561. <span class="tag ${tagClass}">${tagText}</span>
  9562. ${s.remark ? `<span style="margin-left: 8px; color: #999;">${s.remark}</span>` : ''}
  9563. </div>
  9564. </div>
  9565. </div>
  9566. `;
  9567. }).join('');
  9568. }
  9569. function openAddScheduleModal() {
  9570. document.getElementById('addScheduleModal').classList.add('active');
  9571. document.getElementById('teamSelect').value = '';
  9572. document.getElementById('vehicleSelect').value = '';
  9573. document.getElementById('scheduleRemark').value = '';
  9574. selectType('monthly');
  9575. }
  9576. function closeAddScheduleModal() {
  9577. document.getElementById('addScheduleModal').classList.remove('active');
  9578. }
  9579. function selectType(type) {
  9580. selectedScheduleType = type;
  9581. document.querySelectorAll('.type-option').forEach(opt => {
  9582. opt.classList.remove('selected');
  9583. });
  9584. document.querySelector(`.type-option.${type}`).classList.add('selected');
  9585. }
  9586. function confirmAddSchedule() {
  9587. const teamKey = document.getElementById('teamSelect').value;
  9588. const vehicleKey = document.getElementById('vehicleSelect').value;
  9589. const remark = document.getElementById('scheduleRemark').value;
  9590. if (!teamKey) {
  9591. showToast('请选择班组');
  9592. return;
  9593. }
  9594. if (!vehicleKey) {
  9595. showToast('请选择车辆');
  9596. return;
  9597. }
  9598. const dateStr = `${currentYear}-${String(currentMonth + 1).padStart(2, '0')}-${String(selectedDate).padStart(2, '0')}`;
  9599. if (!schedulesData[dateStr]) {
  9600. schedulesData[dateStr] = [];
  9601. }
  9602. const newId = Date.now();
  9603. schedulesData[dateStr].push({
  9604. id: newId,
  9605. teamKey: teamKey,
  9606. vehicleKey: vehicleKey,
  9607. type: selectedScheduleType,
  9608. remark: remark
  9609. });
  9610. closeAddScheduleModal();
  9611. renderScheduleCalendar();
  9612. renderScheduleList();
  9613. showToast('排班添加成功');
  9614. }
  9615. function openDateDetailModal(dateStr, day) {
  9616. document.getElementById('dateDetailTitle').textContent = `${currentMonth + 1}月${day}日 排班详情`;
  9617. const detailList = document.getElementById('dateDetailList');
  9618. const schedules = schedulesData[dateStr] || [];
  9619. if (schedules.length === 0) {
  9620. detailList.innerHTML = `
  9621. <div class="empty-state">
  9622. <i class="fas fa-calendar-times"></i>
  9623. <p>暂无排班安排</p>
  9624. <button class="btn btn-primary mt-4" onclick="addScheduleForDate()">
  9625. <i class="fas fa-plus mr-1"></i>新增排班
  9626. </button>
  9627. </div>
  9628. `;
  9629. } else {
  9630. detailList.innerHTML = schedules.map(s => {
  9631. const team = teamsData[s.teamKey];
  9632. const vehicle = vehiclesData[s.vehicleKey];
  9633. const iconClass = s.type === 'monthly' ? 'monthly' : 'emergency';
  9634. const tagClass = s.type === 'monthly' ? 'tag-blue' : 'tag-orange';
  9635. const tagText = s.type === 'monthly' ? '月计划' : '应急';
  9636. return `
  9637. <div class="schedule-card">
  9638. <div class="schedule-icon ${iconClass}">
  9639. <i class="fas ${s.type === 'monthly' ? 'fa-calendar-check' : 'fa-bolt'}"></i>
  9640. </div>
  9641. <div class="schedule-info">
  9642. <div class="schedule-team">${team.name}</div>
  9643. <div class="schedule-vehicle">
  9644. <i class="fas fa-truck"></i>
  9645. ${vehicle.name}(${vehicle.plate})
  9646. </div>
  9647. <div style="margin-top: 4px;">
  9648. <span class="tag ${tagClass}">${tagText}</span>
  9649. </div>
  9650. ${s.remark ? `<div style="font-size: 12px; color: #999; margin-top: 4px;">备注: ${s.remark}</div>` : ''}
  9651. </div>
  9652. <button style="color: #ef4444; padding: 8px;" onclick="deleteSchedule('${dateStr}', ${s.id})">
  9653. <i class="fas fa-trash-alt"></i>
  9654. </button>
  9655. </div>
  9656. `;
  9657. }).join('');
  9658. }
  9659. document.getElementById('dateDetailModal').classList.add('active');
  9660. }
  9661. function closeDateDetailModal() {
  9662. document.getElementById('dateDetailModal').classList.remove('active');
  9663. }
  9664. function addScheduleForDate() {
  9665. closeDateDetailModal();
  9666. setTimeout(() => {
  9667. openAddScheduleModal();
  9668. }, 300);
  9669. }
  9670. function deleteSchedule(dateStr, id) {
  9671. if (schedulesData[dateStr]) {
  9672. schedulesData[dateStr] = schedulesData[dateStr].filter(s => s.id !== id);
  9673. if (schedulesData[dateStr].length === 0) {
  9674. delete schedulesData[dateStr];
  9675. }
  9676. }
  9677. openDateDetailModal(dateStr, selectedDate);
  9678. renderScheduleCalendar();
  9679. renderScheduleList();
  9680. showToast('排班已删除');
  9681. }
  9682. // ========== 任务页面相关 ==========
  9683. function filterTasks(status) {
  9684. currentTaskFilter = status;
  9685. // 更新筛选按钮样式
  9686. document.querySelectorAll('.task-filter').forEach(btn => {
  9687. btn.classList.remove('bg-blue-500', 'text-white');
  9688. btn.classList.add('bg-gray-100', 'text-gray-600');
  9689. });
  9690. // 找到对应的按钮并高亮
  9691. document.querySelectorAll('.task-filter').forEach(btn => {
  9692. const btnText = btn.textContent.trim();
  9693. if ((status === 'all' && btnText === '全部') || btnText === getFilterText(status)) {
  9694. btn.classList.remove('bg-gray-100', 'text-gray-600');
  9695. btn.classList.add('bg-blue-500', 'text-white');
  9696. }
  9697. });
  9698. // 筛选任务卡片
  9699. const cards = document.querySelectorAll('#taskListContainer .task-card');
  9700. cards.forEach(card => {
  9701. const cardStatus = card.dataset.status;
  9702. if (status === 'all' || cardStatus === status) {
  9703. card.style.display = 'block';
  9704. } else {
  9705. card.style.display = 'none';
  9706. }
  9707. });
  9708. }
  9709. function getFilterText(status) {
  9710. const map = {
  9711. 'all': '全部',
  9712. 'pending': '待审核',
  9713. 'confirmed': '待排班',
  9714. 'approved': '已通过',
  9715. 'rejected': '已驳回',
  9716. 'processing': '进行中',
  9717. 'completed': '已完成'
  9718. };
  9719. return map[status] || '全部';
  9720. }
  9721. function openTaskDetail(taskId) {
  9722. const task = tasksData[taskId];
  9723. if (!task) return;
  9724. currentDetailTaskId = taskId;
  9725. // 填充任务详情
  9726. document.getElementById('taskDetailTitle').textContent = task.title;
  9727. document.getElementById('taskDetailAddress').textContent = task.address;
  9728. document.getElementById('taskDetailType').textContent = task.type;
  9729. document.getElementById('taskDetailTime').textContent = task.time;
  9730. document.getElementById('taskDetailApplicant').textContent = task.applicant;
  9731. // 重置审核步骤
  9732. document.getElementById('auditStep1').style.display = 'block';
  9733. document.getElementById('auditStep2').style.display = 'none';
  9734. document.getElementById('dispatchTeam').value = '';
  9735. document.getElementById('dispatchVehicle').value = '';
  9736. document.getElementById('auditRemark').value = '';
  9737. // 重置confirmed状态的表单
  9738. document.getElementById('confirmDispatchTeam').value = '';
  9739. document.getElementById('confirmDispatchVehicle').value = '';
  9740. document.getElementById('confirmAuditRemark').value = '';
  9741. // 更新状态标签
  9742. const statusEl = document.getElementById('taskDetailStatus');
  9743. statusEl.className = 'tag';
  9744. switch(task.status) {
  9745. case 'pending':
  9746. statusEl.classList.add('tag-orange');
  9747. statusEl.textContent = '待审核';
  9748. break;
  9749. case 'confirmed':
  9750. statusEl.classList.add('tag-yellow');
  9751. statusEl.textContent = '待排班';
  9752. break;
  9753. case 'processing':
  9754. statusEl.classList.add('tag-blue');
  9755. statusEl.textContent = '进行中';
  9756. break;
  9757. case 'completed':
  9758. statusEl.classList.add('tag-green');
  9759. statusEl.textContent = '已完成';
  9760. break;
  9761. case 'rejected':
  9762. statusEl.classList.add('tag-red');
  9763. statusEl.textContent = '已驳回';
  9764. break;
  9765. }
  9766. // 显示/隐藏审核区域
  9767. const auditSection = document.getElementById('taskAuditSection');
  9768. const confirmSection = document.getElementById('taskConfirmSection');
  9769. const rejectSection = document.getElementById('taskRejectSection');
  9770. const dispatchSection = document.getElementById('taskDispatchSection');
  9771. auditSection.style.display = task.status === 'pending' ? 'block' : 'none';
  9772. confirmSection.style.display = task.status === 'confirmed' ? 'block' : 'none';
  9773. rejectSection.style.display = task.status === 'rejected' ? 'block' : 'none';
  9774. dispatchSection.style.display = ['processing', 'completed'].includes(task.status) ? 'block' : 'none';
  9775. if (task.status === 'rejected') {
  9776. document.getElementById('rejectReason').textContent = task.rejectReason || '无';
  9777. }
  9778. if (task.team) {
  9779. document.getElementById('dispatchedTeam').textContent = task.team;
  9780. document.getElementById('dispatchedVehicle').textContent = task.vehicle;
  9781. }
  9782. goToDispatchPage('dispatch_taskDetailPage');
  9783. }
  9784. function approveTask(taskId) {
  9785. tasksData[taskId].status = 'confirmed';
  9786. showToast('任务已确认,请安排班组');
  9787. filterTasks(currentTaskFilter);
  9788. updatePendingBadge();
  9789. }
  9790. function rejectTask(taskId) {
  9791. tasksData[taskId].status = 'rejected';
  9792. tasksData[taskId].rejectReason = '审核不通过';
  9793. showToast('任务已驳回');
  9794. filterTasks(currentTaskFilter);
  9795. updatePendingBadge();
  9796. }
  9797. // ========== 任务详情页两步审核 ==========
  9798. // 第一步:确认任务
  9799. function confirmTaskStep1() {
  9800. if (!currentDetailTaskId) return;
  9801. tasksData[currentDetailTaskId].status = 'confirmed';
  9802. showToast('任务已确认,请安排班组');
  9803. // 更新页面显示
  9804. const statusEl = document.getElementById('taskDetailStatus');
  9805. statusEl.className = 'tag tag-yellow';
  9806. statusEl.textContent = '待排班';
  9807. // 切换到第二步
  9808. document.getElementById('auditStep1').style.display = 'none';
  9809. document.getElementById('auditStep2').style.display = 'block';
  9810. updatePendingBadge();
  9811. }
  9812. // 取消确认,返回第一步
  9813. function cancelConfirmStep() {
  9814. if (!currentDetailTaskId) return;
  9815. tasksData[currentDetailTaskId].status = 'pending';
  9816. // 更新页面显示
  9817. const statusEl = document.getElementById('taskDetailStatus');
  9818. statusEl.className = 'tag tag-orange';
  9819. statusEl.textContent = '待审核';
  9820. // 切换回第一步
  9821. document.getElementById('auditStep1').style.display = 'block';
  9822. document.getElementById('auditStep2').style.display = 'none';
  9823. updatePendingBadge();
  9824. }
  9825. // 第二步:安排班组(从审核卡片第二步)
  9826. function arrangeTeamStep2() {
  9827. const team = document.getElementById('dispatchTeam').value;
  9828. const vehicle = document.getElementById('dispatchVehicle').value;
  9829. if (!team) {
  9830. showToast('请选择班组');
  9831. return;
  9832. }
  9833. if (!vehicle) {
  9834. showToast('请选择车辆');
  9835. return;
  9836. }
  9837. if (!currentDetailTaskId) return;
  9838. tasksData[currentDetailTaskId].status = 'processing';
  9839. tasksData[currentDetailTaskId].team = teamsData[team].name;
  9840. tasksData[currentDetailTaskId].vehicle = vehiclesData[vehicle].name + '(' + vehiclesData[vehicle].plate + ')';
  9841. showToast('任务已开始执行');
  9842. updatePendingBadge();
  9843. // 返回任务列表
  9844. setTimeout(() => {
  9845. goToDispatchPage('dispatch_taskPage');
  9846. filterTasks(currentTaskFilter);
  9847. }, 1000);
  9848. }
  9849. // confirmed状态:安排班组
  9850. function arrangeTeamForConfirmed() {
  9851. const team = document.getElementById('confirmDispatchTeam').value;
  9852. const vehicle = document.getElementById('confirmDispatchVehicle').value;
  9853. if (!team) {
  9854. showToast('请选择班组');
  9855. return;
  9856. }
  9857. if (!vehicle) {
  9858. showToast('请选择车辆');
  9859. return;
  9860. }
  9861. if (!currentDetailTaskId) return;
  9862. tasksData[currentDetailTaskId].status = 'processing';
  9863. tasksData[currentDetailTaskId].team = teamsData[team].name;
  9864. tasksData[currentDetailTaskId].vehicle = vehiclesData[vehicle].name + '(' + vehiclesData[vehicle].plate + ')';
  9865. showToast('任务已开始执行');
  9866. updatePendingBadge();
  9867. // 返回任务列表
  9868. setTimeout(() => {
  9869. goToDispatchPage('dispatch_taskPage');
  9870. filterTasks(currentTaskFilter);
  9871. }, 1000);
  9872. }
  9873. function rejectTaskFromDetail() {
  9874. const reason = document.getElementById('auditRemark').value || '审核不通过';
  9875. if (!currentDetailTaskId) return;
  9876. tasksData[currentDetailTaskId].status = 'rejected';
  9877. tasksData[currentDetailTaskId].rejectReason = reason;
  9878. showToast('任务已驳回');
  9879. updatePendingBadge();
  9880. setTimeout(() => {
  9881. goToDispatchPage('dispatch_taskPage');
  9882. filterTasks(currentTaskFilter);
  9883. }, 1000);
  9884. }
  9885. function updatePendingBadge() {
  9886. let pendingCount = 0;
  9887. for (let id in tasksData) {
  9888. if (tasksData[id].status === 'pending') {
  9889. pendingCount++;
  9890. }
  9891. }
  9892. const badge = document.getElementById('pendingBadge');
  9893. if (badge) {
  9894. badge.textContent = pendingCount;
  9895. badge.style.display = pendingCount > 0 ? 'flex' : 'none';
  9896. }
  9897. }
  9898. // 初始化
  9899. document.addEventListener('DOMContentLoaded', function() {
  9900. updatePendingBadge();
  9901. });
  9902. // ========== 发布任务页相关 ==========
  9903. // 项目数据结构(含子服务项)- 调度中心版
  9904. const dispatchProjects = {
  9905. '积丹白鹭': {
  9906. name: '积丹白鹭',
  9907. contacts: [{name: '张经理', phone: '138****1234'}],
  9908. servicePoints: [
  9909. {name: '1号化粪池', location: '南门地下车库入口旁', serviceType: '清掏'},
  9910. {name: '2号隔油池', location: '商业区B1层餐饮后厨区', serviceType: '清掏'},
  9911. {name: '3号油污管道', location: '住宅区东侧绿化带', serviceType: '疏通'}
  9912. ]
  9913. },
  9914. '富源同坐': {
  9915. name: '富源同坐',
  9916. contacts: [{name: '李主管', phone: '139****5678'}],
  9917. servicePoints: [
  9918. {name: '主化粪池', location: '小区中心花园北侧', serviceType: '清掏'},
  9919. {name: '东侧管道', location: '东门入口排水沟', serviceType: '疏通'},
  9920. {name: '商业区主管', location: '商业街地下主管', serviceType: '排查'}
  9921. ]
  9922. },
  9923. '俊发城': {
  9924. name: '俊发城',
  9925. contacts: [{name: '王物业', phone: '136****8765'}],
  9926. servicePoints: [
  9927. {name: '1号化粪池', location: '1号楼南侧绿化带', serviceType: '清掏'},
  9928. {name: '2号化粪池', location: '3号楼西侧', serviceType: '清掏'},
  9929. {name: '地下主管', location: '地下停车场主排污管', serviceType: '疏通'},
  9930. {name: '5号楼管道', location: '5号楼单元入口', serviceType: '维修'}
  9931. ]
  9932. },
  9933. '逸安新城A区': {
  9934. name: '逸安新城A区',
  9935. contacts: [{name: '赵经理', phone: '137****4321'}],
  9936. servicePoints: [
  9937. {name: 'A1号隔油池', location: '餐饮街后巷', serviceType: '清掏'},
  9938. {name: 'A2号油污管', location: '美食广场B区', serviceType: '疏通'}
  9939. ]
  9940. },
  9941. '逸安新城B区': {
  9942. name: '逸安新城B区',
  9943. contacts: [{name: '陈师傅', phone: '135****9876'}],
  9944. servicePoints: [
  9945. {name: 'B1号化粪池', location: '小区中庭花园', serviceType: '清掏'},
  9946. {name: 'B2号化粪池', location: '4栋北侧', serviceType: '清掏'},
  9947. {name: 'B区主管', location: '小区主排污口', serviceType: '疏通'},
  9948. {name: 'B区支管', location: '儿童游乐区旁', serviceType: '排查'},
  9949. {name: 'B区PVC管', location: '6栋单元主管', serviceType: '维修'}
  9950. ]
  9951. }
  9952. };
  9953. // 项目额外信息
  9954. const dispatchProjectExtraInfo = {
  9955. '积丹白鹭': { coopType: '包年', facilityType: '油污管', address: '昆明市五华区积丹白鹭小区' },
  9956. '富源同坐': { coopType: '季度', facilityType: '化粪池', address: '昆明市西山区富源同坐商业广场' },
  9957. '俊发城': { coopType: '月付', facilityType: 'PVC', address: '昆明市盘龙区俊发城住宅区' },
  9958. '逸安新城A区': { coopType: '包年', facilityType: '油污管', address: '昆明市官渡区逸安新城A区' },
  9959. '逸安新城B区': { coopType: '单次', facilityType: '市政', address: '昆明市官渡区逸安新城B区' }
  9960. };
  9961. let dispatchSelectedProject = null;
  9962. let dispatchPublishContacts = []; // 项目联系人列表
  9963. let dispatchPartyAContacts = []; // 甲方当事人列表
  9964. // 项目选择变更事件
  9965. function dispatchOnProjectSelectChange() {
  9966. const projectName = document.getElementById('dispatchProjectSelect').value;
  9967. const hint = document.getElementById('dispatchProjectSelectHint');
  9968. const hintText = document.getElementById('dispatchProjectHintText');
  9969. const autoInfo = document.getElementById('dispatchProjectAutoInfo');
  9970. const newForm = document.getElementById('dispatchNewProjectForm');
  9971. // 清空联系人列表
  9972. dispatchPublishContacts = [];
  9973. dispatchPartyAContacts = [];
  9974. if (projectName === '') {
  9975. // 未选择
  9976. hint.style.display = 'flex';
  9977. hintText.textContent = '请从项目库选择或新增项目';
  9978. autoInfo.style.display = 'none';
  9979. newForm.style.display = 'none';
  9980. document.getElementById('dispatchProjectSelectHint').className = 'bg-blue-50 rounded-lg px-3 py-2 mb-4 flex items-center';
  9981. document.querySelector('#dispatchProjectSelectHint i').className = 'fas fa-info-circle text-blue-500 mr-2 text-sm';
  9982. dispatchSelectedProject = null;
  9983. } else if (projectName === 'new') {
  9984. // 新增项目
  9985. hint.style.display = 'flex';
  9986. hintText.textContent = '新增项目';
  9987. autoInfo.style.display = 'none';
  9988. newForm.style.display = 'block';
  9989. document.getElementById('dispatchProjectSelectHint').className = 'bg-orange-50 rounded-lg px-3 py-2 mb-4 flex items-center';
  9990. document.querySelector('#dispatchProjectSelectHint i').className = 'fas fa-edit text-orange-500 mr-2 text-sm';
  9991. dispatchSelectedProject = null;
  9992. // 清空新增表单
  9993. document.getElementById('dispatchNewProjectName').value = '';
  9994. document.getElementById('dispatchNewCoopType').value = '';
  9995. document.getElementById('dispatchNewFacilityType').value = '';
  9996. document.getElementById('dispatchNewProjectAddress').value = '';
  9997. } else {
  9998. // 选择了已有项目
  9999. hint.style.display = 'flex';
  10000. hintText.textContent = '已选择:' + projectName + '项目';
  10001. autoInfo.style.display = 'block';
  10002. newForm.style.display = 'none';
  10003. document.getElementById('dispatchProjectSelectHint').className = 'bg-green-50 rounded-lg px-3 py-2 mb-4 flex items-center';
  10004. document.querySelector('#dispatchProjectSelectHint i').className = 'fas fa-check-circle text-green-500 mr-2 text-sm';
  10005. // 显示自动带出的信息
  10006. document.getElementById('dispatchSelectedProjectName').textContent = projectName;
  10007. const extraInfo = dispatchProjectExtraInfo[projectName] || { coopType: '-', facilityType: '-', address: '-' };
  10008. document.getElementById('dispatchAutoCoopType').textContent = extraInfo.coopType;
  10009. document.getElementById('dispatchAutoFacilityType').textContent = extraInfo.facilityType;
  10010. document.getElementById('dispatchAutoProjectAddress').textContent = extraInfo.address;
  10011. // 设置选中项目
  10012. dispatchSelectedProject = dispatchProjects[projectName] || null;
  10013. // 自动填充联系人(从项目联系人中获取)
  10014. if (dispatchSelectedProject && dispatchSelectedProject.contacts && dispatchSelectedProject.contacts.length > 0) {
  10015. dispatchPublishContacts = [...dispatchSelectedProject.contacts];
  10016. dispatchPartyAContacts = [...dispatchSelectedProject.contacts];
  10017. }
  10018. // 自动填充故障位置
  10019. if (dispatchSelectedProject && dispatchSelectedProject.servicePoints && dispatchSelectedProject.servicePoints.length > 0) {
  10020. document.getElementById('dispatchFaultLocation').value = dispatchSelectedProject.servicePoints[0].location;
  10021. document.getElementById('dispatchFaultLocation').classList.add('auto-filled');
  10022. document.getElementById('dispatchFaultLocationLabel').style.display = 'block';
  10023. }
  10024. }
  10025. // 渲染联系人列表
  10026. dispatchRenderProjectContacts();
  10027. dispatchRenderPartyAContacts();
  10028. }
  10029. // 重置项目选择
  10030. function dispatchResetProjectSelection() {
  10031. document.getElementById('dispatchProjectSelect').value = '';
  10032. dispatchOnProjectSelectChange();
  10033. // 清空故障位置
  10034. document.getElementById('dispatchFaultLocation').value = '';
  10035. document.getElementById('dispatchFaultLocation').classList.remove('auto-filled');
  10036. document.getElementById('dispatchFaultLocationLabel').style.display = 'none';
  10037. }
  10038. // 渲染项目联系人列表
  10039. function dispatchRenderProjectContacts() {
  10040. const container = document.getElementById('dispatchContactListContainer');
  10041. if (dispatchPublishContacts.length === 0) {
  10042. container.innerHTML = '<div class="text-gray-400 text-sm text-center py-2">暂无联系人,请添加</div>';
  10043. return;
  10044. }
  10045. let html = '';
  10046. dispatchPublishContacts.forEach((contact, index) => {
  10047. html += `
  10048. <div class="contact-list-item" data-index="${index}">
  10049. <div class="contact-info" style="flex-direction: column; align-items: flex-start;">
  10050. <div class="flex gap-2 w-full">
  10051. <input type="text" class="form-input" value="${contact.name}"
  10052. placeholder="姓名" style="flex: 1; padding: 8px 10px; font-size: 13px;"
  10053. onchange="dispatchUpdateProjectContact(${index}, 'name', this.value)">
  10054. <input type="tel" class="form-input" value="${contact.phone}"
  10055. placeholder="电话" style="flex: 1; padding: 8px 10px; font-size: 13px;"
  10056. onchange="dispatchUpdateProjectContact(${index}, 'phone', this.value)">
  10057. </div>
  10058. </div>
  10059. <div class="delete-btn" onclick="dispatchRemoveProjectContact(${index})">
  10060. <i class="fas fa-times"></i>
  10061. </div>
  10062. </div>
  10063. `;
  10064. });
  10065. container.innerHTML = html;
  10066. }
  10067. // 添加项目联系人
  10068. function dispatchAddContactItem() {
  10069. dispatchPublishContacts.push({name: '', phone: ''});
  10070. dispatchRenderProjectContacts();
  10071. }
  10072. // 删除项目联系人
  10073. function dispatchRemoveProjectContact(index) {
  10074. dispatchPublishContacts.splice(index, 1);
  10075. dispatchRenderProjectContacts();
  10076. }
  10077. // 更新项目联系人信息
  10078. function dispatchUpdateProjectContact(index, field, value) {
  10079. if (dispatchPublishContacts[index]) {
  10080. dispatchPublishContacts[index][field] = value;
  10081. }
  10082. }
  10083. // 渲染甲方当事人列表
  10084. function dispatchRenderPartyAContacts() {
  10085. const container = document.getElementById('dispatchPartyAContactList');
  10086. if (dispatchPartyAContacts.length === 0) {
  10087. container.innerHTML = '<div class="text-gray-400 text-sm text-center py-2">暂无甲方当事人,请添加</div>';
  10088. return;
  10089. }
  10090. let html = '';
  10091. dispatchPartyAContacts.forEach((contact, index) => {
  10092. html += `
  10093. <div class="contact-list-item" data-index="${index}">
  10094. <div class="contact-info" style="flex-direction: column; align-items: flex-start;">
  10095. <div class="flex gap-2 w-full">
  10096. <input type="text" class="form-input" value="${contact.name}"
  10097. placeholder="姓名" style="flex: 1; padding: 8px 10px; font-size: 13px;"
  10098. onchange="dispatchUpdatePartyAContact(${index}, 'name', this.value)">
  10099. <input type="tel" class="form-input" value="${contact.phone}"
  10100. placeholder="电话" style="flex: 1; padding: 8px 10px; font-size: 13px;"
  10101. onchange="dispatchUpdatePartyAContact(${index}, 'phone', this.value)">
  10102. </div>
  10103. </div>
  10104. <div class="delete-btn" onclick="dispatchRemovePartyAContact(${index})">
  10105. <i class="fas fa-times"></i>
  10106. </div>
  10107. </div>
  10108. `;
  10109. });
  10110. container.innerHTML = html;
  10111. }
  10112. // 添加甲方当事人
  10113. function dispatchAddPartyAContact() {
  10114. dispatchPartyAContacts.push({name: '', phone: ''});
  10115. dispatchRenderPartyAContacts();
  10116. }
  10117. // 删除甲方当事人
  10118. function dispatchRemovePartyAContact(index) {
  10119. dispatchPartyAContacts.splice(index, 1);
  10120. dispatchRenderPartyAContacts();
  10121. }
  10122. // 更新甲方当事人信息
  10123. function dispatchUpdatePartyAContact(index, field, value) {
  10124. if (dispatchPartyAContacts[index]) {
  10125. dispatchPartyAContacts[index][field] = value;
  10126. }
  10127. }
  10128. // 提交任务
  10129. function dispatchSubmitTask() {
  10130. const projectSelect = document.getElementById('dispatchProjectSelect').value;
  10131. const serviceDate = document.getElementById('dispatchServiceDate').value;
  10132. const serviceTime = document.getElementById('dispatchServiceTime').value;
  10133. const faultLocation = document.getElementById('dispatchFaultLocation').value;
  10134. const faultDesc = document.getElementById('dispatchFaultDesc').value;
  10135. const serviceType = document.getElementById('dispatchServiceType').value;
  10136. const facilityType = document.getElementById('dispatchServiceFacilityType').value;
  10137. const serviceMode = document.getElementById('dispatchServiceMode').value;
  10138. const vehicleType = document.getElementById('dispatchVehicleType').value;
  10139. const acceptType = document.getElementById('dispatchAcceptType').value;
  10140. // 验证必填项 - 项目选择
  10141. if (!projectSelect) {
  10142. showToast('请选择项目');
  10143. return;
  10144. }
  10145. // 如果选择新增项目,验证新增表单
  10146. if (projectSelect === 'new') {
  10147. const newProjectName = document.getElementById('dispatchNewProjectName').value;
  10148. const newCoopType = document.getElementById('dispatchNewCoopType').value;
  10149. const newFacilityType = document.getElementById('dispatchNewFacilityType').value;
  10150. const newProjectAddress = document.getElementById('dispatchNewProjectAddress').value;
  10151. if (!newProjectName) {
  10152. showToast('请输入项目名称');
  10153. return;
  10154. }
  10155. if (!newCoopType) {
  10156. showToast('请选择合作类型');
  10157. return;
  10158. }
  10159. if (!newFacilityType) {
  10160. showToast('请选择设施类型');
  10161. return;
  10162. }
  10163. if (!newProjectAddress) {
  10164. showToast('请输入项目地址');
  10165. return;
  10166. }
  10167. }
  10168. // 验证必填项 - 服务信息
  10169. if (!serviceDate || !serviceTime) {
  10170. showToast('请选择服务时间');
  10171. return;
  10172. }
  10173. if (!faultLocation) {
  10174. showToast('请填写故障位置');
  10175. return;
  10176. }
  10177. if (!faultDesc) {
  10178. showToast('请填写故障描述');
  10179. return;
  10180. }
  10181. if (!serviceType) {
  10182. showToast('请选择施工类型');
  10183. return;
  10184. }
  10185. if (!facilityType) {
  10186. showToast('请选择施工设施');
  10187. return;
  10188. }
  10189. if (!serviceMode) {
  10190. showToast('请选择服务方式');
  10191. return;
  10192. }
  10193. if (!vehicleType) {
  10194. showToast('请选择建议出车');
  10195. return;
  10196. }
  10197. if (!acceptType) {
  10198. showToast('请选择验收方式');
  10199. return;
  10200. }
  10201. // 检查甲方当事人
  10202. const validPartyA = dispatchPartyAContacts.filter(c => c.name && c.phone);
  10203. if (validPartyA.length === 0) {
  10204. showToast('请至少添加一个甲方当事人');
  10205. return;
  10206. }
  10207. showToast('发布成功');
  10208. setTimeout(() => {
  10209. dispatchResetPublishForm();
  10210. goToDispatchPage('dispatch_taskPage');
  10211. }, 1500);
  10212. }
  10213. // 重置发布表单
  10214. function dispatchResetPublishForm() {
  10215. document.getElementById('dispatchProjectSelect').value = '';
  10216. dispatchSelectedProject = null;
  10217. dispatchPublishContacts = [];
  10218. dispatchPartyAContacts = [];
  10219. // 重置提示区域
  10220. document.getElementById('dispatchProjectSelectHint').style.display = 'flex';
  10221. document.getElementById('dispatchProjectSelectHint').className = 'bg-blue-50 rounded-lg px-3 py-2 mb-4 flex items-center';
  10222. document.querySelector('#dispatchProjectSelectHint i').className = 'fas fa-info-circle text-blue-500 mr-2 text-sm';
  10223. document.getElementById('dispatchProjectHintText').textContent = '请从项目库选择或新增项目';
  10224. document.getElementById('dispatchProjectAutoInfo').style.display = 'none';
  10225. document.getElementById('dispatchNewProjectForm').style.display = 'none';
  10226. // 清空新增表单
  10227. document.getElementById('dispatchNewProjectName').value = '';
  10228. document.getElementById('dispatchNewCoopType').value = '';
  10229. document.getElementById('dispatchNewFacilityType').value = '';
  10230. document.getElementById('dispatchNewProjectAddress').value = '';
  10231. // 清空服务信息表单
  10232. document.getElementById('dispatchServiceDate').value = '';
  10233. document.getElementById('dispatchServiceTime').value = '';
  10234. document.getElementById('dispatchFaultLocation').value = '';
  10235. document.getElementById('dispatchFaultLocation').classList.remove('auto-filled');
  10236. document.getElementById('dispatchFaultLocationLabel').style.display = 'none';
  10237. document.getElementById('dispatchFaultDesc').value = '';
  10238. document.getElementById('dispatchServiceType').value = '';
  10239. document.getElementById('dispatchServiceFacilityType').value = '';
  10240. document.getElementById('dispatchServiceMode').value = '';
  10241. document.getElementById('dispatchVehicleType').value = '';
  10242. document.getElementById('dispatchAcceptType').value = '';
  10243. document.getElementById('dispatchRemark').value = '';
  10244. // 清空联系人列表
  10245. dispatchRenderProjectContacts();
  10246. dispatchRenderPartyAContacts();
  10247. }
  10248. // ========== 人员列表页相关 ==========
  10249. // 人员数据
  10250. const personnelData = [
  10251. { id: 1, name: '张三', team: '张师傅组', status: 'working', task: '逸安新城日常维护' },
  10252. { id: 2, name: '李四', team: '张师傅组', status: 'working', task: '逸安新城日常维护' },
  10253. { id: 3, name: '王五', team: '王师傅组', status: 'free', task: '' },
  10254. { id: 4, name: '赵六', team: '王师傅组', status: 'working', task: '积丹白鹭小区疏通' },
  10255. { id: 5, name: '刘七', team: '刘师傅组', status: 'free', task: '' },
  10256. { id: 6, name: '陈八', team: '刘师傅组', status: 'working', task: '俊发城应急疏通' },
  10257. { id: 7, name: '周九', team: '应急一组', status: 'free', task: '', emergency: true },
  10258. { id: 8, name: '吴十', team: '应急二组', status: 'free', task: '', emergency: true },
  10259. { id: 9, name: '郑一', team: '张师傅组', status: 'working', task: '富源同坐管道检修' },
  10260. { id: 10, name: '钱二', team: '王师傅组', status: 'free', task: '' },
  10261. { id: 11, name: '孙三', team: '刘师傅组', status: 'working', task: '新都国际管道维修' },
  10262. { id: 12, name: '李四', team: '应急三组', status: 'free', task: '', emergency: true }
  10263. ];
  10264. let currentPersonnelFilter = 'all';
  10265. function filterPersonnel(filter) {
  10266. currentPersonnelFilter = filter;
  10267. // 更新按钮样式
  10268. document.querySelectorAll('#dispatch_personnelPage .bg-blue-500').forEach(btn => {
  10269. btn.classList.remove('bg-blue-500', 'text-white');
  10270. btn.classList.add('bg-gray-100');
  10271. });
  10272. event.target.classList.remove('bg-gray-100');
  10273. event.target.classList.add('bg-blue-500', 'text-white');
  10274. renderPersonnelList();
  10275. }
  10276. function renderPersonnelList() {
  10277. const container = document.getElementById('personnelList');
  10278. if (!container) return;
  10279. let filteredData = personnelData;
  10280. if (currentPersonnelFilter === 'working') {
  10281. filteredData = personnelData.filter(p => p.status === 'working');
  10282. } else if (currentPersonnelFilter === 'free') {
  10283. filteredData = personnelData.filter(p => p.status === 'free');
  10284. }
  10285. if (filteredData.length === 0) {
  10286. container.innerHTML = `
  10287. <div class="empty-state">
  10288. <i class="fas fa-users"></i>
  10289. <p>暂无人员数据</p>
  10290. </div>
  10291. `;
  10292. return;
  10293. }
  10294. container.innerHTML = filteredData.map(p => `
  10295. <div class="card p-4 mb-3">
  10296. <div class="flex items-center gap-3">
  10297. <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center">
  10298. <i class="fas fa-user text-blue-500"></i>
  10299. </div>
  10300. <div class="flex-1">
  10301. <div class="flex items-center gap-2">
  10302. <span class="font-medium">${p.name}</span>
  10303. ${p.emergency ? '<span class="tag tag-red text-xs">应急</span>' : ''}
  10304. </div>
  10305. <div class="text-sm text-gray-500">${p.team}</div>
  10306. </div>
  10307. <span class="tag ${p.status === 'working' ? 'tag-orange' : 'tag-green'}">
  10308. ${p.status === 'working' ? '施工中' : '空闲'}
  10309. </span>
  10310. </div>
  10311. ${p.task ? `
  10312. <div class="mt-2 pt-2 border-t border-gray-100 text-sm text-gray-500">
  10313. <i class="fas fa-tasks w-4 inline-block"></i> 当前任务:${p.task}
  10314. </div>
  10315. ` : ''}
  10316. </div>
  10317. `).join('');
  10318. }
  10319. // ========== 车辆列表页相关 ==========
  10320. // 车辆数据
  10321. const vehicleListData = [
  10322. { id: 1, name: '疏通车01', plate: '贵A81356', type: '疏通车', status: 'working', task: '逸安新城日常维护' },
  10323. { id: 2, name: '疏通车02', plate: '贵A82345', type: '疏通车', status: 'working', task: '积丹白鹭小区疏通' },
  10324. { id: 3, name: '疏通车03', plate: '贵A83345', type: '疏通车', status: 'free', task: '' },
  10325. { id: 4, name: '吸污车01', plate: '贵A83456', type: '吸污车', status: 'working', task: '俊发城应急疏通' },
  10326. { id: 5, name: '吸污车02', plate: '贵A84456', type: '吸污车', status: 'free', task: '' },
  10327. { id: 6, name: '吸污车03', plate: '贵A85456', type: '吸污车', status: 'working', task: '富源同坐管道检修' },
  10328. { id: 7, name: '高压清洗车01', plate: '贵A86456', type: '高压清洗车', status: 'working', task: '新都国际管道维修' },
  10329. { id: 8, name: '高压清洗车02', plate: '贵A87456', type: '高压清洗车', status: 'free', task: '' },
  10330. { id: 9, name: '疏通车04', plate: '贵A88456', type: '疏通车', status: 'working', task: '云岩大厦排污' },
  10331. { id: 10, name: '吸污车04', plate: '贵A89456', type: '吸污车', status: 'free', task: '' }
  10332. ];
  10333. let currentVehicleFilter = 'all';
  10334. function filterVehicle(filter) {
  10335. currentVehicleFilter = filter;
  10336. // 更新按钮样式
  10337. document.querySelectorAll('#dispatch_vehicleListPage .bg-blue-500').forEach(btn => {
  10338. btn.classList.remove('bg-blue-500', 'text-white');
  10339. btn.classList.add('bg-gray-100');
  10340. });
  10341. event.target.classList.remove('bg-gray-100');
  10342. event.target.classList.add('bg-blue-500', 'text-white');
  10343. renderVehicleList();
  10344. }
  10345. function renderVehicleList() {
  10346. const container = document.getElementById('vehicleList');
  10347. if (!container) return;
  10348. let filteredData = vehicleListData;
  10349. if (currentVehicleFilter === 'working') {
  10350. filteredData = vehicleListData.filter(v => v.status === 'working');
  10351. } else if (currentVehicleFilter === 'free') {
  10352. filteredData = vehicleListData.filter(v => v.status === 'free');
  10353. }
  10354. if (filteredData.length === 0) {
  10355. container.innerHTML = `
  10356. <div class="empty-state">
  10357. <i class="fas fa-truck"></i>
  10358. <p>暂无车辆数据</p>
  10359. </div>
  10360. `;
  10361. return;
  10362. }
  10363. container.innerHTML = filteredData.map(v => `
  10364. <div class="card p-4 mb-3">
  10365. <div class="flex items-center gap-3">
  10366. <div class="w-12 h-12 ${v.type.includes('疏通车') ? 'bg-blue-100' : v.type.includes('吸污车') ? 'bg-purple-100' : 'bg-green-100'} rounded-lg flex items-center justify-center">
  10367. <i class="fas fa-truck ${v.type.includes('疏通车') ? 'text-blue-500' : v.type.includes('吸污车') ? 'text-purple-500' : 'text-green-500'}"></i>
  10368. </div>
  10369. <div class="flex-1">
  10370. <div class="font-medium">${v.name}</div>
  10371. <div class="text-sm text-gray-500">${v.plate} · ${v.type}</div>
  10372. </div>
  10373. <span class="tag ${v.status === 'working' ? 'tag-orange' : 'tag-green'}">
  10374. ${v.status === 'working' ? '施工中' : '空闲'}
  10375. </span>
  10376. </div>
  10377. ${v.task ? `
  10378. <div class="mt-2 pt-2 border-t border-gray-100 text-sm text-gray-500">
  10379. <i class="fas fa-tasks w-4 inline-block"></i> 执行任务:${v.task}
  10380. </div>
  10381. ` : ''}
  10382. </div>
  10383. `).join('');
  10384. }
  10385. // ========== 应急班组页相关 ==========
  10386. const emergencyTeamData = [
  10387. { id: 1, name: '应急一组', leader: '周九', phone: '139****1234', members: ['周九', '李明'], vehicle: '疏通车01', status: 'ready' },
  10388. { id: 2, name: '应急二组', leader: '吴十', phone: '138****5678', members: ['吴十', '王强'], vehicle: '吸污车01', status: 'ready' },
  10389. { id: 3, name: '应急三组', leader: '李四', phone: '137****9012', members: ['李四', '陈东'], vehicle: '高压清洗车01', status: 'ready' }
  10390. ];
  10391. function renderEmergencyTeamList() {
  10392. const container = document.getElementById('emergencyTeamList');
  10393. if (!container) return;
  10394. if (emergencyTeamData.length === 0) {
  10395. container.innerHTML = `
  10396. <div class="empty-state">
  10397. <i class="fas fa-phone-volume"></i>
  10398. <p>暂无应急班组</p>
  10399. </div>
  10400. `;
  10401. return;
  10402. }
  10403. container.innerHTML = emergencyTeamData.map(team => `
  10404. <div class="card p-4 mb-3">
  10405. <div class="flex items-center justify-between mb-3">
  10406. <div class="flex items-center gap-3">
  10407. <div class="w-12 h-12 bg-red-100 rounded-lg flex items-center justify-center">
  10408. <i class="fas fa-bolt text-red-500"></i>
  10409. </div>
  10410. <div>
  10411. <div class="font-medium">${team.name}</div>
  10412. <div class="text-sm text-gray-500">组长:${team.leader}</div>
  10413. </div>
  10414. </div>
  10415. <span class="tag tag-green">待命就绪</span>
  10416. </div>
  10417. <div class="grid grid-cols-2 gap-2 text-sm">
  10418. <div class="bg-gray-50 rounded-lg p-2">
  10419. <div class="text-gray-400 text-xs">成员</div>
  10420. <div class="text-gray-700">${team.members.join('、')}</div>
  10421. </div>
  10422. <div class="bg-gray-50 rounded-lg p-2">
  10423. <div class="text-gray-400 text-xs">应急车辆</div>
  10424. <div class="text-gray-700">${team.vehicle}</div>
  10425. </div>
  10426. </div>
  10427. <div class="mt-2 pt-2 border-t border-gray-100 flex justify-between items-center">
  10428. <span class="text-sm text-gray-500"><i class="fas fa-phone w-4 inline-block"></i> ${team.phone}</span>
  10429. <button class="px-3 py-1 bg-green-500 text-white rounded-lg text-xs">
  10430. <i class="fas fa-phone-alt mr-1"></i>联系组长
  10431. </button>
  10432. </div>
  10433. </div>
  10434. `).join('');
  10435. }
  10436. // ========== 调度端消息通知页相关 ==========
  10437. // 调度端消息通知tab切换
  10438. function filterDispatchNotifications(type, element) {
  10439. document.querySelectorAll('.dispatch-notification-tab').forEach(btn => {
  10440. btn.classList.remove('bg-blue-500', 'text-white');
  10441. btn.classList.add('bg-gray-100', 'text-gray-600');
  10442. });
  10443. element.classList.remove('bg-gray-100', 'text-gray-600');
  10444. element.classList.add('bg-blue-500', 'text-white');
  10445. const items = document.querySelectorAll('#dispatchNotificationList .notification-item');
  10446. items.forEach(item => {
  10447. if (type === 'all' || item.dataset.type === type) {
  10448. item.style.display = 'block';
  10449. } else {
  10450. item.style.display = 'none';
  10451. }
  10452. });
  10453. }
  10454. // ========== 消息通知页相关 ==========
  10455. const notificationData = [
  10456. { id: 1, type: 'task', title: '新任务分配', content: '积丹白鹭小区疏通任务已分配给您,请及时处理', time: '今天 10:30', read: false },
  10457. { id: 2, type: 'audit', title: '审核通过', content: '俊发城应急疏通任务已审核通过,已安排张师傅组执行', time: '今天 09:45', read: false },
  10458. { id: 3, type: 'system', title: '系统通知', content: '明日(4月22日)天气预报有雨,请注意施工安全', time: '今天 08:00', read: true },
  10459. { id: 4, type: 'task', title: '任务变更', content: '新都国际管道维修任务时间调整为明天上午10:00', time: '昨天 17:30', read: true },
  10460. { id: 5, type: 'audit', title: '任务驳回', content: '云岩大厦排污任务因设备临时故障被驳回', time: '昨天 15:20', read: true },
  10461. { id: 6, type: 'system', title: '系统更新', content: '清道夫系统V1.0.1版本已发布,新增可视化大屏功能', time: '昨天 10:00', read: true }
  10462. ];
  10463. let currentNotificationFilter = 'all';
  10464. function filterNotification(filter) {
  10465. currentNotificationFilter = filter;
  10466. // 更新按钮样式
  10467. document.querySelectorAll('#notificationPage button').forEach(btn => {
  10468. if (btn.textContent.includes('全部') || btn.textContent.includes('任务') || btn.textContent.includes('审核') || btn.textContent.includes('系统')) {
  10469. if (btn.classList.contains('bg-blue-500')) {
  10470. btn.classList.remove('bg-blue-500', 'text-white');
  10471. btn.classList.add('bg-gray-100', 'text-gray-600');
  10472. }
  10473. }
  10474. });
  10475. event.target.classList.remove('bg-gray-100', 'text-gray-600');
  10476. event.target.classList.add('bg-blue-500', 'text-white');
  10477. renderNotificationList();
  10478. }
  10479. function renderNotificationList() {
  10480. const container = document.getElementById('notificationList');
  10481. if (!container) return;
  10482. let filteredData = notificationData;
  10483. if (currentNotificationFilter === 'task') {
  10484. filteredData = notificationData.filter(n => n.type === 'task');
  10485. } else if (currentNotificationFilter === 'audit') {
  10486. filteredData = notificationData.filter(n => n.type === 'audit');
  10487. } else if (currentNotificationFilter === 'system') {
  10488. filteredData = notificationData.filter(n => n.type === 'system');
  10489. }
  10490. if (filteredData.length === 0) {
  10491. container.innerHTML = `
  10492. <div class="empty-state">
  10493. <i class="fas fa-bell"></i>
  10494. <p>暂无通知消息</p>
  10495. </div>
  10496. `;
  10497. return;
  10498. }
  10499. container.innerHTML = filteredData.map(n => {
  10500. let iconClass = 'fa-bell text-gray-500';
  10501. let bgClass = 'bg-gray-100';
  10502. if (n.type === 'task') {
  10503. iconClass = 'fa-tasks text-blue-500';
  10504. bgClass = 'bg-blue-100';
  10505. } else if (n.type === 'audit') {
  10506. iconClass = 'fa-check-circle text-green-500';
  10507. bgClass = 'bg-green-100';
  10508. } else if (n.type === 'system') {
  10509. iconClass = 'fa-cog text-purple-500';
  10510. bgClass = 'bg-purple-100';
  10511. }
  10512. return `
  10513. <div class="notification-item card p-4 mb-3 ${n.read ? 'opacity-60' : ''}" data-type="${n.type}">
  10514. <div class="flex items-start gap-3">
  10515. <div class="w-10 h-10 ${bgClass} rounded-lg flex items-center justify-center flex-shrink-0">
  10516. <i class="fas ${iconClass}"></i>
  10517. </div>
  10518. <div class="flex-1">
  10519. <div class="flex items-center justify-between">
  10520. <span class="font-medium text-sm">${n.title}</span>
  10521. ${!n.read ? '<span class="w-2 h-2 bg-blue-500 rounded-full"></span>' : ''}
  10522. </div>
  10523. <p class="text-sm text-gray-500 mt-1">${n.content}</p>
  10524. <span class="text-xs text-gray-400 mt-2 inline-block">${n.time}</span>
  10525. </div>
  10526. </div>
  10527. </div>
  10528. `;
  10529. }).join('');
  10530. }
  10531. // 渲染调度端消息通知列表
  10532. function renderDispatchNotificationList() {
  10533. const container = document.getElementById('dispatchNotificationList');
  10534. if (!container) return;
  10535. if (notificationData.length === 0) {
  10536. container.innerHTML = `
  10537. <div class="empty-state">
  10538. <i class="fas fa-bell"></i>
  10539. <p>暂无通知消息</p>
  10540. </div>
  10541. `;
  10542. return;
  10543. }
  10544. container.innerHTML = notificationData.map(n => {
  10545. let iconClass = 'fa-bell text-gray-500';
  10546. let bgClass = 'bg-gray-100';
  10547. if (n.type === 'task') {
  10548. iconClass = 'fa-tasks text-blue-500';
  10549. bgClass = 'bg-blue-100';
  10550. } else if (n.type === 'audit') {
  10551. iconClass = 'fa-check-circle text-green-500';
  10552. bgClass = 'bg-green-100';
  10553. } else if (n.type === 'system') {
  10554. iconClass = 'fa-cog text-purple-500';
  10555. bgClass = 'bg-purple-100';
  10556. }
  10557. return `
  10558. <div class="notification-item card p-4 mb-3 ${n.read ? 'opacity-60' : ''}" data-type="${n.type}">
  10559. <div class="flex items-start gap-3">
  10560. <div class="w-10 h-10 ${bgClass} rounded-lg flex items-center justify-center flex-shrink-0">
  10561. <i class="fas ${iconClass}"></i>
  10562. </div>
  10563. <div class="flex-1">
  10564. <div class="flex items-center justify-between">
  10565. <span class="font-medium text-sm">${n.title}</span>
  10566. ${!n.read ? '<span class="w-2 h-2 bg-blue-500 rounded-full"></span>' : ''}
  10567. </div>
  10568. <p class="text-sm text-gray-500 mt-1">${n.content}</p>
  10569. <span class="text-xs text-gray-400 mt-2 inline-block">${n.time}</span>
  10570. </div>
  10571. </div>
  10572. </div>
  10573. `;
  10574. }).join('');
  10575. }
  10576. function markAllRead() {
  10577. notificationData.forEach(n => n.read = true);
  10578. renderNotificationList();
  10579. showToast('已全部标记为已读');
  10580. }
  10581. // ========== 可视化大屏页相关 ==========
  10582. function initVisualizationPage() {
  10583. const now = new Date();
  10584. const dateStr = `${now.getFullYear()}年${now.getMonth() + 1}月${now.getDate()}日`;
  10585. document.getElementById('vizDate').textContent = dateStr;
  10586. }
  10587. // ========== 任务列表筛选跳转 ==========
  10588. function goToTaskListFiltered(filter) {
  10589. goToDispatchPage('dispatch_taskPage');
  10590. // 等待页面切换后执行筛选
  10591. setTimeout(() => {
  10592. if (filter === 'today') {
  10593. filterTasks('all');
  10594. } else if (filter === 'confirmed') {
  10595. filterTasks('confirmed');
  10596. } else if (filter === 'processing') {
  10597. filterTasks('processing');
  10598. }
  10599. }, 100);
  10600. }
  10601. // 页面切换时初始化页面数据
  10602. const originalGoToPage = goToPage;
  10603. goToPage = function(pageId) {
  10604. originalGoToPage(pageId);
  10605. // 初始化各页面数据
  10606. if (pageId === 'dispatch_personnelPage') {
  10607. renderPersonnelList();
  10608. } else if (pageId === 'dispatch_vehicleListPage') {
  10609. renderVehicleList();
  10610. } else if (pageId === 'dispatch_emergencyTeamPage') {
  10611. renderEmergencyTeamList();
  10612. } else if (pageId === 'dispatch_notificationPage') {
  10613. renderNotificationList();
  10614. } else if (pageId === 'dispatch_visualizationPage') {
  10615. initVisualizationPage();
  10616. }
  10617. };
  10618. // ==================== 合并登录逻辑 ====================
  10619. // 重写登录按钮事件
  10620. document.getElementById('loginBtn').onclick = function() {
  10621. const account = document.querySelector('input[placeholder="请输入账号"]').value;
  10622. const password = document.querySelector('input[placeholder="请输入密码"]').value;
  10623. if (!account || !password) {
  10624. alert('请输入账号和密码');
  10625. return;
  10626. }
  10627. // 获取当前选中的角色
  10628. let selectedRole = 'sales';
  10629. document.querySelectorAll('.role-tab').forEach(tab => {
  10630. if (tab.classList.contains('active')) {
  10631. selectedRole = tab.dataset.role;
  10632. }
  10633. });
  10634. // 隐藏登录容器
  10635. document.getElementById('loginContainer').style.display = 'none';
  10636. // 根据角色跳转
  10637. if (selectedRole === 'sales') {
  10638. // 显示销售端,隐藏调度端
  10639. document.getElementById('salesApp').style.display = 'block';
  10640. document.getElementById('dispatchApp').style.display = 'none';
  10641. goToPage('salesPage');
  10642. } else if (selectedRole === 'dispatch') {
  10643. // 显示调度端,隐藏销售端
  10644. document.getElementById('salesApp').style.display = 'none';
  10645. document.getElementById('dispatchApp').style.display = 'block';
  10646. goToDispatchPage('dispatch_homePage');
  10647. } else if (selectedRole === 'worker') {
  10648. // 显示施工端,隐藏销售端和调度端
  10649. document.getElementById('salesApp').style.display = 'none';
  10650. document.getElementById('dispatchApp').style.display = 'none';
  10651. document.getElementById('constructionApp').style.display = 'block';
  10652. goToConstructionPage('construction_homePage');
  10653. }
  10654. };
  10655. // 角色切换事件
  10656. document.querySelectorAll('.role-tab').forEach(tab => {
  10657. tab.onclick = function() {
  10658. document.querySelectorAll('.role-tab').forEach(t => {
  10659. t.classList.remove('active');
  10660. t.classList.add('text-white/80');
  10661. });
  10662. this.classList.add('active');
  10663. this.classList.remove('text-white/80');
  10664. };
  10665. });
  10666. // ==================== 统一退出登录 ====================
  10667. function backToLogin() {
  10668. // 隐藏所有容器
  10669. document.getElementById('salesApp').style.display = 'none';
  10670. document.getElementById('dispatchApp').style.display = 'none';
  10671. document.getElementById('constructionApp').style.display = 'none';
  10672. // 显示登录容器
  10673. document.getElementById('loginContainer').style.display = 'block';
  10674. // 重置登录页状态
  10675. document.getElementById('loginPage').classList.add('active');
  10676. }
  10677. // ==================== 施工端函数 ====================
  10678. // 施工端页面跳转
  10679. function goToConstructionPage(pageId) {
  10680. // 隐藏所有施工端页面
  10681. document.querySelectorAll('#constructionApp .page').forEach(page => {
  10682. page.classList.remove('active');
  10683. });
  10684. // 显示目标页面
  10685. const targetPage = document.getElementById(pageId);
  10686. if (targetPage) {
  10687. targetPage.classList.add('active');
  10688. }
  10689. // 更新底部导航状态
  10690. updateConstructionNav(pageId);
  10691. }
  10692. // 更新施工端底部导航状态
  10693. function updateConstructionNav(pageId) {
  10694. const navItems = document.querySelectorAll('#constructionApp .nav-item');
  10695. navItems.forEach(item => {
  10696. item.classList.remove('active');
  10697. const icon = item.querySelector('.nav-icon');
  10698. const text = item.querySelector('span');
  10699. if (pageId === 'construction_homePage' && item.onclick && item.onclick.toString().includes('construction_homePage')) {
  10700. item.classList.add('active');
  10701. } else if (pageId === 'construction_taskPage' && item.onclick && item.onclick.toString().includes('construction_taskPage')) {
  10702. item.classList.add('active');
  10703. } else if (pageId === 'construction_myPage' && item.onclick && item.onclick.toString().includes('construction_myPage')) {
  10704. item.classList.add('active');
  10705. }
  10706. });
  10707. }
  10708. // 筛选施工端任务列表
  10709. function filterConstructionTasks(status, element) {
  10710. // 更新tab激活状态
  10711. document.querySelectorAll('#construction_taskPage .filter-tab').forEach(tab => {
  10712. tab.classList.remove('active');
  10713. });
  10714. element.classList.add('active');
  10715. // 筛选任务卡片
  10716. const cards = document.querySelectorAll('#constructionTaskList .task-card');
  10717. cards.forEach(card => {
  10718. if (status === 'all' || card.dataset.status === status) {
  10719. card.style.display = 'block';
  10720. } else {
  10721. card.style.display = 'none';
  10722. }
  10723. });
  10724. // 更新任务数量
  10725. const visibleCards = document.querySelectorAll('#constructionTaskList .task-card:not([style*="display: none"])');
  10726. document.getElementById('constructionTaskCount').textContent = visibleCards.length;
  10727. }
  10728. // 筛选施工端消息通知
  10729. function filterConstructionNotifications(type, element) {
  10730. // 更新tab激活状态
  10731. element.parentElement.querySelectorAll('.filter-tab').forEach(tab => {
  10732. tab.classList.remove('active');
  10733. });
  10734. element.classList.add('active');
  10735. // 筛选消息项
  10736. const items = document.querySelectorAll('.construction-notification-item');
  10737. items.forEach(item => {
  10738. if (type === 'all' || item.dataset.type === type) {
  10739. item.style.display = 'block';
  10740. } else {
  10741. item.style.display = 'none';
  10742. }
  10743. });
  10744. }
  10745. // ========== 施工端步骤操作函数 V13 ==========
  10746. // 全局当前状态
  10747. let currentTaskStatus = '待确认';
  10748. // 收起/展开任务信息区
  10749. function toggleTaskInfo() {
  10750. const title = document.getElementById('taskInfoTitle');
  10751. const status = document.getElementById('taskInfoStatus');
  10752. const content = document.getElementById('taskInfoContent');
  10753. const toggle = document.getElementById('taskInfoToggle');
  10754. const titleEl = document.querySelector('#taskInfoSection .detail-section-title');
  10755. if (content.classList.contains('hidden')) {
  10756. content.classList.remove('hidden');
  10757. titleEl.classList.remove('collapsed');
  10758. } else {
  10759. content.classList.add('hidden');
  10760. titleEl.classList.add('collapsed');
  10761. }
  10762. }
  10763. // 设置详情页状态
  10764. function setDetailStatus(status) {
  10765. currentTaskStatus = status;
  10766. // 隐藏所有操作区
  10767. const actionContents = document.querySelectorAll('.action-content');
  10768. actionContents.forEach(el => el.classList.add('hidden'));
  10769. // 定义各状态对应的流程步骤
  10770. const statusSteps = {
  10771. '待确认': {
  10772. flowLineWidth: '0%',
  10773. steps: {
  10774. 'step-confirm': 'active',
  10775. 'step-depart': 'pending',
  10776. 'step-arrive': 'pending',
  10777. 'step-work': 'pending',
  10778. 'step-work2': 'pending',
  10779. 'step-complete': 'pending',
  10780. 'step-clean': 'pending',
  10781. 'step-inspect': 'pending'
  10782. },
  10783. actionContent: 'action-pending-confirm'
  10784. },
  10785. '待出车': {
  10786. flowLineWidth: '11.1%',
  10787. steps: {
  10788. 'step-confirm': 'completed',
  10789. 'step-depart': 'active',
  10790. 'step-arrive': 'pending',
  10791. 'step-work': 'pending',
  10792. 'step-work2': 'pending',
  10793. 'step-complete': 'pending',
  10794. 'step-clean': 'pending',
  10795. 'step-inspect': 'pending'
  10796. },
  10797. actionContent: 'action-pending-depart'
  10798. },
  10799. '已出车': {
  10800. flowLineWidth: '22.2%',
  10801. steps: {
  10802. 'step-confirm': 'completed',
  10803. 'step-depart': 'completed',
  10804. 'step-arrive': 'active',
  10805. 'step-work': 'pending',
  10806. 'step-work2': 'pending',
  10807. 'step-complete': 'pending',
  10808. 'step-clean': 'pending',
  10809. 'step-inspect': 'pending'
  10810. },
  10811. actionContent: 'action-departed'
  10812. },
  10813. '已到达': {
  10814. flowLineWidth: '33.3%',
  10815. steps: {
  10816. 'step-confirm': 'completed',
  10817. 'step-depart': 'completed',
  10818. 'step-arrive': 'completed',
  10819. 'step-work': 'active',
  10820. 'step-work2': 'pending',
  10821. 'step-complete': 'pending',
  10822. 'step-clean': 'pending',
  10823. 'step-inspect': 'pending'
  10824. },
  10825. actionContent: 'action-arrived'
  10826. },
  10827. '勘验完成': {
  10828. flowLineWidth: '44.4%',
  10829. steps: {
  10830. 'step-confirm': 'completed',
  10831. 'step-depart': 'completed',
  10832. 'step-arrive': 'completed',
  10833. 'step-work': 'completed',
  10834. 'step-work2': 'active',
  10835. 'step-complete': 'pending',
  10836. 'step-clean': 'pending',
  10837. 'step-inspect': 'pending'
  10838. },
  10839. actionContent: 'action-inspection-done'
  10840. },
  10841. '施工中': {
  10842. flowLineWidth: '55.5%',
  10843. steps: {
  10844. 'step-confirm': 'completed',
  10845. 'step-depart': 'completed',
  10846. 'step-arrive': 'completed',
  10847. 'step-work': 'completed',
  10848. 'step-work2': 'completed',
  10849. 'step-complete': 'active',
  10850. 'step-clean': 'pending',
  10851. 'step-inspect': 'pending'
  10852. },
  10853. actionContent: 'action-constructing'
  10854. },
  10855. '施工完成': {
  10856. flowLineWidth: '66.6%',
  10857. steps: {
  10858. 'step-confirm': 'completed',
  10859. 'step-depart': 'completed',
  10860. 'step-arrive': 'completed',
  10861. 'step-work': 'completed',
  10862. 'step-work2': 'completed',
  10863. 'step-complete': 'completed',
  10864. 'step-clean': 'active',
  10865. 'step-inspect': 'pending'
  10866. },
  10867. actionContent: 'action-work-complete'
  10868. },
  10869. '清洗完成': {
  10870. flowLineWidth: '77.7%',
  10871. steps: {
  10872. 'step-confirm': 'completed',
  10873. 'step-depart': 'completed',
  10874. 'step-arrive': 'completed',
  10875. 'step-work': 'completed',
  10876. 'step-work2': 'completed',
  10877. 'step-complete': 'completed',
  10878. 'step-clean': 'completed',
  10879. 'step-inspect': 'active'
  10880. },
  10881. actionContent: 'action-cleaning-done'
  10882. },
  10883. '已验收': {
  10884. flowLineWidth: '100%',
  10885. steps: {
  10886. 'step-confirm': 'completed',
  10887. 'step-depart': 'completed',
  10888. 'step-arrive': 'completed',
  10889. 'step-work': 'completed',
  10890. 'step-work2': 'completed',
  10891. 'step-complete': 'completed',
  10892. 'step-clean': 'completed',
  10893. 'step-inspect': 'completed'
  10894. },
  10895. actionContent: 'action-completed'
  10896. }
  10897. };
  10898. const config = statusSteps[status] || statusSteps['待确认'];
  10899. // 更新流程进度条
  10900. document.getElementById('detailFlowLineFill').style.width = config.flowLineWidth;
  10901. // 更新每个步骤的状态
  10902. Object.keys(config.steps).forEach(stepId => {
  10903. const stepEl = document.getElementById(stepId);
  10904. const dotEl = document.getElementById(stepId + '-dot');
  10905. const stepStatus = config.steps[stepId];
  10906. if (!stepEl || !dotEl) return;
  10907. stepEl.classList.remove('completed', 'active');
  10908. dotEl.classList.remove('completed', 'active', 'pending');
  10909. if (stepStatus === 'completed') {
  10910. stepEl.classList.add('completed');
  10911. dotEl.classList.add('completed');
  10912. dotEl.innerHTML = '<i class="fas fa-check"></i>';
  10913. } else if (stepStatus === 'active') {
  10914. stepEl.classList.add('active');
  10915. dotEl.classList.add('active');
  10916. dotEl.innerHTML = '<i class="fas fa-spinner"></i>';
  10917. } else {
  10918. dotEl.classList.add('pending');
  10919. dotEl.innerHTML = '<i class="fas fa-times"></i>';
  10920. }
  10921. });
  10922. // 更新任务状态标签
  10923. const statusTag = document.getElementById('taskInfoStatus');
  10924. if (statusTag) {
  10925. statusTag.textContent = status;
  10926. if (status === '已验收') {
  10927. statusTag.className = 'status-tag bg-green-100 text-green-600';
  10928. } else if (status === '待确认' || status === '待出车' || status === '已出车') {
  10929. statusTag.className = 'status-tag bg-orange-100 text-orange-600';
  10930. } else {
  10931. statusTag.className = 'status-tag status-scheduling';
  10932. }
  10933. }
  10934. // 显示对应的操作区
  10935. const actionEl = document.getElementById(config.actionContent);
  10936. if (actionEl) {
  10937. actionEl.classList.remove('hidden');
  10938. }
  10939. }
  10940. // 确认任务
  10941. function confirmTask() {
  10942. showToast('任务已确认,准备出发');
  10943. setDetailStatus('待出车');
  10944. addTaskLog('确认任务');
  10945. }
  10946. // 出发
  10947. function startDeparture() {
  10948. showToast('已出发,开始前往现场');
  10949. setDetailStatus('已出车');
  10950. addTaskLog('已出发');
  10951. }
  10952. // 上传警示牌照片
  10953. function uploadWarningPhoto() {
  10954. showToast('打开相机拍摄警示牌照片');
  10955. setTimeout(() => {
  10956. document.getElementById('warningPhotoPreview').classList.remove('hidden');
  10957. }, 1500);
  10958. }
  10959. // 确认到达
  10960. function confirmArrive() {
  10961. showToast('已到达现场,开始勘验');
  10962. setDetailStatus('已到达');
  10963. addTaskLog('已到达现场');
  10964. }
  10965. // 上传勘验照片/视频
  10966. function uploadInspectionMedia() {
  10967. showToast('打开相机拍摄勘验照片/视频');
  10968. setTimeout(() => {
  10969. document.getElementById('inspectionPreview').classList.remove('hidden');
  10970. }, 1500);
  10971. }
  10972. // 确认勘验完成
  10973. function confirmInspection() {
  10974. const faultLocation = document.getElementById('faultLocationInput').value;
  10975. if (!faultLocation.trim()) {
  10976. showToast('请输入故障点位置描述');
  10977. return;
  10978. }
  10979. showToast('勘验完成,开始施工');
  10980. setDetailStatus('勘验完成');
  10981. addTaskLog('勘验完成,故障点:' + faultLocation);
  10982. }
  10983. // 上传施工照片/视频
  10984. function uploadConstructionMedia() {
  10985. showToast('打开相机拍摄施工照片/视频');
  10986. setTimeout(() => {
  10987. document.getElementById('constructionPreview').classList.remove('hidden');
  10988. }, 1500);
  10989. }
  10990. // 确认开始施工
  10991. function confirmConstructionStart() {
  10992. showToast('开始施工');
  10993. setDetailStatus('施工中');
  10994. addTaskLog('开始施工');
  10995. }
  10996. // 上传完成照片/视频
  10997. function uploadCompleteMedia() {
  10998. showToast('打开相机拍摄完成照片/视频');
  10999. setTimeout(() => {
  11000. document.getElementById('completePreview').classList.remove('hidden');
  11001. }, 1500);
  11002. }
  11003. // 确认施工完成
  11004. function confirmConstructionComplete() {
  11005. showToast('施工完成,开始清洗');
  11006. setDetailStatus('施工完成');
  11007. addTaskLog('施工完成');
  11008. }
  11009. // 上传清洗照片
  11010. function uploadCleaningMedia() {
  11011. showToast('打开相机拍摄清洗照片');
  11012. setTimeout(() => {
  11013. document.getElementById('cleaningPreview').classList.remove('hidden');
  11014. }, 1500);
  11015. }
  11016. // 确认清洗完成
  11017. function confirmCleaningComplete() {
  11018. showToast('清洗完成,等待验收');
  11019. setDetailStatus('清洗完成');
  11020. addTaskLog('清洗完成');
  11021. }
  11022. // 上传验收签字照片
  11023. function uploadInspectionSign() {
  11024. showToast('打开相机拍摄签字照片');
  11025. setTimeout(() => {
  11026. document.getElementById('signPreview').classList.remove('hidden');
  11027. }, 1500);
  11028. }
  11029. // 确认最终验收
  11030. function confirmFinalInspection() {
  11031. showToast('验收完成,任务全部结束');
  11032. setDetailStatus('已验收');
  11033. addTaskLog('客户验收完成');
  11034. // 返回任务列表
  11035. setTimeout(() => {
  11036. goToConstructionPage('construction_taskPage');
  11037. }, 2000);
  11038. }
  11039. // 添加任务日志
  11040. function addTaskLog(action) {
  11041. const logList = document.getElementById('construction_taskLogList');
  11042. if (!logList) return;
  11043. const now = new Date();
  11044. const time = (now.getMonth() + 1).toString().padStart(2, '0') + '-' +
  11045. now.getDate().toString().padStart(2, '0') + ' ' +
  11046. now.getHours().toString().padStart(2, '0') + ':' +
  11047. now.getMinutes().toString().padStart(2, '0');
  11048. const logItem = document.createElement('div');
  11049. logItem.className = 'flex items-start text-sm';
  11050. logItem.innerHTML = '<span class="text-gray-400 w-20 flex-shrink-0">' + time + '</span><div class="flex-1"><span class="text-green-600">工人 张师傅</span><span class="text-gray-500">' + action + '</span></div>';
  11051. logList.insertBefore(logItem, logList.firstChild);
  11052. }
  11053. // 打开反馈弹窗(保留V10设计)
  11054. function openFeedbackModal() {
  11055. document.getElementById('constructionFeedbackModal').classList.remove('hidden');
  11056. }
  11057. // 关闭反馈弹窗
  11058. function closeFeedbackModal() {
  11059. document.getElementById('constructionFeedbackModal').classList.add('hidden');
  11060. document.getElementById('constructionFeedbackText').value = '';
  11061. }
  11062. // 提交反馈
  11063. function submitFeedback() {
  11064. const text = document.getElementById('constructionFeedbackText').value;
  11065. if (!text.trim()) {
  11066. showToast('请输入反馈内容');
  11067. return;
  11068. }
  11069. closeFeedbackModal();
  11070. showToast('反馈已提交');
  11071. addTaskLog('反馈问题:' + text);
  11072. }
  11073. // 打开拒绝弹窗
  11074. function openRejectModal() {
  11075. document.getElementById('constructionRejectModal').classList.remove('hidden');
  11076. }
  11077. // 关闭拒绝弹窗
  11078. function closeRejectModal() {
  11079. document.getElementById('constructionRejectModal').classList.add('hidden');
  11080. document.getElementById('constructionRejectText').value = '';
  11081. }
  11082. // 提交拒绝
  11083. function submitReject() {
  11084. const text = document.getElementById('constructionRejectText').value;
  11085. if (!text.trim()) {
  11086. showToast('请输入拒绝原因');
  11087. return;
  11088. }
  11089. closeRejectModal();
  11090. showToast('任务已拒绝');
  11091. addTaskLog('拒绝任务:' + text);
  11092. setTimeout(() => {
  11093. goToConstructionPage('construction_taskPage');
  11094. }, 1500);
  11095. }
  11096. // 兼容旧函数名
  11097. function openConstructionFeedbackModal() { openFeedbackModal(); }
  11098. function closeConstructionFeedbackModal() { closeFeedbackModal(); }
  11099. function submitConstructionFeedback() { submitFeedback(); }
  11100. function openConstructionRejectModal() { openRejectModal(); }
  11101. function closeConstructionRejectModal() { closeRejectModal(); }
  11102. function submitConstructionReject() { submitReject(); }</script>
  11103. </body>
  11104. </html>