addStoreVisit.vue 348 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686
  1. <template>
  2. <div class="addStoreVisit">
  3. <!-- 顶部条-->
  4. <div class="navBarTOP">
  5. <van-nav-bar class="navBar" left-arrow title="拜访任务" @click-left="onClickLeft">
  6. <!-- right-text="保存" @click-right="onSubmit"-->
  7. <template #right>
  8. <span
  9. v-if="processKey && isEditSDHCL"
  10. @click="onSubmit"
  11. style="
  12. color: white;
  13. background: rgb(0, 87, 186);
  14. display: block;
  15. padding: 6px 10px;
  16. border-radius: 6px;
  17. "
  18. >保存</span
  19. >
  20. </template>
  21. </van-nav-bar>
  22. </div>
  23. <div class="lineGrey"></div>
  24. <div class="lineGrey"></div>
  25. <div class="lineGrey"></div>
  26. <div class="lineGrey"></div>
  27. <div class="lineGrey"></div>
  28. <div class="lineGrey"></div>
  29. <div class="deviceCode" v-if="inspectionType">
  30. <div class="vertical"></div>
  31. <div class="codeData">
  32. <p>设备编号:{{ deviceCode }}</p>
  33. <p>投放编号:{{ putInCode }}</p>
  34. <p v-if="inspectionType == 'place'">资产编号:{{ equipmentCode }}</p>
  35. </div>
  36. </div>
  37. <div class="lineGrey" v-if="inspectionType"></div>
  38. <div
  39. v-if="taskType == 3"
  40. class="container"
  41. style="width: 100%; margin: 0 auto; padding: 0 10px">
  42. <div v-if="insert" style="margin: 10px; display: flex; justify-content: space-between">
  43. <van-radio-group v-model="wuliaoMust" direction="horizontal">
  44. <van-radio :name="false">不需要物料</van-radio>
  45. <van-radio :name="true">需要物料</van-radio>
  46. </van-radio-group>
  47. <div class="containerRight" style="padding-top: 7px">
  48. <span class="van-f-red" v-if="needIssuePhoto == '1'" style="position: absolute">*</span>
  49. <uploadWLImg
  50. :imgArr="wuliaoPhotoImg"
  51. @uploadWLImgClick="uploadWLImgClick"
  52. :visitsId="visitId"
  53. :taskId="taskId"
  54. :storeGroupId="storeGroupId"></uploadWLImg>
  55. </div>
  56. </div>
  57. <el-table
  58. v-if="wuliaoMust"
  59. :data="tableData1"
  60. border
  61. class="table-headermd"
  62. style="width: 100%"
  63. :span-method="objectSpanMethod">
  64. <el-table-column label="物料类型" prop="signDictype" align="center"
  65. ><template slot-scope="scope"
  66. ><span class="tipTitle" @click="tipTitle(scope.row.signDictype)">{{
  67. scope.row.signDictype
  68. }}</span></template
  69. ></el-table-column
  70. >
  71. <el-table-column label="物料名称" prop="collectionName" align="center"
  72. ><template slot-scope="scope"
  73. ><span class="tipTitle" @click="tipTitle(scope.row.collectionName)">{{
  74. scope.row.collectionName
  75. }}</span></template
  76. ></el-table-column
  77. >
  78. <el-table-column label="库存" prop="inventoryNum" align="center" />
  79. <el-table-column
  80. label="应发本数"
  81. prop="yfNum"
  82. align="center"
  83. key="yfNum"
  84. width="200"
  85. v-if="yfNumFlage" />
  86. <el-table-column class="t-center" prop="value" align="center" width="60">
  87. <template slot="header" class="t-center">
  88. <span>发放量</span><span class="xing">*</span>
  89. </template>
  90. <template slot-scope="scope"
  91. ><van-field
  92. v-model="scope.row.value"
  93. placeholder="请输入"
  94. type="digit"
  95. @blur="inputbluwl(scope.row.value, scope.$index, '2')"
  96. /></template>
  97. </el-table-column>
  98. </el-table>
  99. <div class="wuliaoPhotoImg" style="margin-top: 10px" v-if="wuliaoMust">
  100. <deleteUploadImg :imgs="wuliaoPhotoImg" :types="insert ? 'yes' : 'edit'"></deleteUploadImg>
  101. </div>
  102. </div>
  103. <div
  104. v-if="taskType == 2"
  105. class="container"
  106. style="width: 100%; margin: 0 auto; padding: 10px 0">
  107. <p v-if="infoShow == 0 && unManage != 0" class="isTableMust">
  108. <van-icon name="info-o" />&nbsp;以下产品列表全部必填!
  109. </p>
  110. <p v-if="infoShow == 2 && unManage != 0" class="isTableMust">
  111. <van-icon name="info-o" />&nbsp;以下产品列表至少填一条!
  112. </p>
  113. <p v-if="unManage == 0" class="isTableMust">
  114. <van-icon name="info-o" />&nbsp;请根据本店实际经营的竞品产品,反馈价格信息!
  115. </p>
  116. <el-table
  117. :data="competitortableData"
  118. border
  119. class="table-headermd"
  120. style="width: 100%"
  121. v-if="productTitles">
  122. <el-table-column label="品类" prop="level1" />
  123. <el-table-column label="档次" prop="grade" />
  124. <el-table-column label="品牌" prop="brandName" />
  125. <el-table-column label="规格" prop="spec" />
  126. <el-table-column
  127. v-for="(item, index) in productTitles"
  128. :key="index"
  129. :prop="item.titleValue">
  130. <template slot="header">
  131. <span>{{ item.titleName }}</span
  132. ><span class="xing">*</span>
  133. </template>
  134. <template slot-scope="scope"
  135. ><van-field
  136. v-model="scope.row[item.titleValue]"
  137. placeholder="请输入"
  138. type="number"
  139. @blur="inputblur(item.titleValue, scope.$index, '0')"
  140. /></template>
  141. </el-table-column>
  142. </el-table>
  143. <el-table :data="tableData1" border class="table-headermd" style="width: 100%">
  144. <el-table-column label="产品名称" prop="collectionName">
  145. <template slot-scope="scope">
  146. <span class="tipTitle" @click="tipTitle(scope.row.collectionName)">
  147. {{ scope.row.collectionName }}
  148. </span>
  149. </template>
  150. </el-table-column>
  151. <el-table-column prop="name">
  152. <template slot="header"> <span>进货原价</span><span class="xing">*</span> </template>
  153. <template slot-scope="scope"
  154. ><van-field
  155. v-model="scope.row.xdjhyj"
  156. placeholder="请输入"
  157. type="number"
  158. @blur="inputblur(scope.row.xdjhyj, scope.$index, '0')"
  159. /></template>
  160. </el-table-column>
  161. <el-table-column class="t-center" prop="address">
  162. <template slot="header"> <span>促后净价</span><span class="xing">*</span> </template>
  163. <template slot-scope="scope">
  164. <van-field
  165. v-model="scope.row.xdjhchjj"
  166. placeholder="请输入"
  167. type="number"
  168. @blur="inputblurs(scope.row.xdjhchjj, scope.$index, '1')" />
  169. </template>
  170. </el-table-column>
  171. <el-table-column class="t-center" prop="address">
  172. <template slot="header" class="t-center">
  173. <span>油工拿货价</span><span class="xing">*</span>
  174. </template>
  175. <template slot-scope="scope"
  176. ><van-field
  177. v-model="scope.row.ygnhj"
  178. placeholder="请输入"
  179. type="number"
  180. @blur="inputblur(scope.row.ygnhj, scope.$index, '2')"
  181. /></template>
  182. </el-table-column>
  183. </el-table>
  184. <div v-if="unManage == 0" style="margin: 10px">
  185. <van-checkbox v-model="checked" shape="square">全部不经营</van-checkbox>
  186. </div>
  187. </div>
  188. <div
  189. v-if="taskType == 1 || taskType == 4"
  190. class="container"
  191. style="width: 94%; margin: 0 auto; border-radius: 6px; padding: 10px 10px 10px 0">
  192. <van-form ref="tabstoreVal">
  193. <div v-for="(item, index) in collectionItemList" :key="index">
  194. <div v-if="item.answerType == 'tel_send_code'" class="formLabel z-cell">
  195. <van-cell>
  196. <template #title>
  197. <span v-if="item.isMust == 0" class="van-f-red">*</span>
  198. <span>{{ 1 + index + '.' }}</span>
  199. {{ item.collectionName }}
  200. <!-- 操作说明图片和电话 -->
  201. <taskTips
  202. v-if="item.contactPhone || item.examplePhoto"
  203. :contactPhone="item.contactPhone"
  204. :examplePhoto="item.examplePhoto">
  205. </taskTips>
  206. </template>
  207. </van-cell>
  208. <van-field
  209. class="sendCode"
  210. v-model="item.answerValue"
  211. :placeholder="item.collectionOptionList[0].collectionOption"
  212. type="tel"
  213. @blur="sendCodeTelFn(item, index, 'A')">
  214. <template #button v-if="!verifyMobile">
  215. <van-button
  216. size="small"
  217. style="color: white; background: rgb(0, 87, 186); border-radius: 6px"
  218. @click="sendCode(item, index)"
  219. :disabled="time != null">
  220. <span v-if="time">已发送({{ timeNum }})</span>
  221. <span v-else>发送验证码</span>
  222. </van-button>
  223. </template>
  224. </van-field>
  225. </div>
  226. <div v-if="item.answerType == 'tel_confirm'" class="formLabel z-cell">
  227. <van-cell>
  228. <template #title>
  229. <span v-if="item.isMust == 0" class="van-f-red">*</span>
  230. <span>{{ 1 + index + '.' }}</span>
  231. {{ item.collectionName }}
  232. <!-- 操作说明图片和电话 -->
  233. <taskTips
  234. v-if="item.contactPhone || item.examplePhoto"
  235. :contactPhone="item.contactPhone"
  236. :examplePhoto="item.examplePhoto">
  237. </taskTips>
  238. </template>
  239. </van-cell>
  240. <van-field
  241. class="sendCode"
  242. v-model="item.answerValue"
  243. type="tel"
  244. @blur="telConfirmBlur(item, index, 'A')">
  245. <template #button v-if="!verifyMobile">
  246. <van-button
  247. size="small"
  248. style="color: white; background: rgb(0, 87, 186); border-radius: 6px"
  249. @click="telConfirm(item, index)"
  250. :disabled="confirmed">
  251. <span v-if="confirmed">已确认</span>
  252. <span v-else>确认真实</span>
  253. </van-button>
  254. </template>
  255. </van-field>
  256. <p
  257. style="color: red; font-size: 14px; margin: 0; padding: 10px 0"
  258. v-if="item.collectionOptionList[0].collectionOption">
  259. {{ item.collectionOptionList[0].collectionOption }}
  260. </p>
  261. </div>
  262. <div v-if="item.answerType == 'check_code' && !verifyMobile" class="formLabel z-cell">
  263. <van-cell>
  264. <template #title>
  265. <span v-if="item.isMust == 0" class="van-f-red">*</span>
  266. <span>{{ 1 + index + '.' }}</span>
  267. {{ item.collectionName }}
  268. </template>
  269. </van-cell>
  270. <van-field
  271. v-model="item.answerValue"
  272. :placeholder="item.collectionOptionList[0].collectionOption"
  273. type="number"
  274. @blur="verification(item, collectionItemList)"
  275. @input="numberFn(item, index, 'A')"></van-field>
  276. </div>
  277. <div v-if="item.answerType == 'nyr'" class="formLabel z-cell">
  278. <van-cell>
  279. <template #title>
  280. <span v-if="item.isMust == 0" class="van-f-red">*</span>
  281. <span>{{ 1 + index + '.' }}</span>
  282. {{ item.collectionName }}
  283. </template>
  284. </van-cell>
  285. <van-field
  286. v-model="item.answerValue"
  287. :placeholder="item.text"
  288. readonly
  289. @click="getNyr(item, item.answerValue)"></van-field>
  290. <p
  291. style="color: red; font-size: 14px; margin: 0; padding: 10px 0; text-align: right"
  292. v-if="item.collectionOptionList[0].collectionOption">
  293. {{ item.collectionOptionList[0].collectionOption }}
  294. </p>
  295. </div>
  296. <div v-if="item.answerType == 'sz'" class="formLabel z-cell">
  297. <van-cell>
  298. <template #title
  299. ><span v-if="item.isMust == 0" class="van-f-red">*</span>
  300. <span>{{ 1 + index + '.' }}</span>
  301. {{ item.collectionName }}
  302. <!-- 操作说明图片和电话 -->
  303. <taskTips
  304. v-if="item.contactPhone || item.examplePhoto"
  305. :contactPhone="item.contactPhone"
  306. :examplePhoto="item.examplePhoto">
  307. </taskTips
  308. ></template>
  309. <template #right-icon>
  310. <span v-if="item.isMustPicture == '0'" class="van-f-red">*</span>
  311. <van-icon
  312. v-if="item.isPicture == '0'"
  313. color="#666"
  314. name="photograph"
  315. size="24"
  316. @click="imgClick(item, 'A', index)" />
  317. </template>
  318. </van-cell>
  319. <van-field
  320. v-model="item.answerValue"
  321. :placeholder="item.collectionOptionList[0].collectionOption"
  322. @blur="SZsizeComparison(item, 'A')"
  323. :error-message="item.ruleMessage"></van-field>
  324. <deleteUploadImg
  325. :photoIdentifyType="photoIdentifyType"
  326. :imgs="item.fileInfoList"></deleteUploadImg>
  327. </div>
  328. <div v-if="item.answerType == 'date'" class="formLabel z-cell">
  329. <van-cell>
  330. <template #title
  331. ><span v-if="item.isMust == 0" class="van-f-red">*</span>
  332. <span>{{ 1 + index + '.' }}</span>
  333. {{ item.collectionName }}
  334. <!-- 操作说明图片和电话 -->
  335. <taskTips
  336. v-if="item.contactPhone || item.examplePhoto"
  337. :contactPhone="item.contactPhone"
  338. :examplePhoto="item.examplePhoto">
  339. </taskTips
  340. ></template>
  341. <template #right-icon>
  342. <span v-if="item.isMustPicture == '0'" class="van-f-red">*</span>
  343. <van-icon
  344. v-if="item.isPicture == '0'"
  345. color="#666"
  346. name="photograph"
  347. size="24"
  348. @click="imgClick(item, 'A', index)" />
  349. </template>
  350. </van-cell>
  351. <van-field
  352. readonly
  353. clickable
  354. :value="item.answerValue"
  355. @click="showPickerTimeFn(index, 'A')" />
  356. <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
  357. <van-field
  358. class="mobile-input"
  359. v-model="item.collectionOptionList[0].collectionOption"
  360. autosize
  361. readonly
  362. type="textarea" />
  363. </p>
  364. <deleteUploadImg
  365. :photoIdentifyType="photoIdentifyType"
  366. :imgs="item.fileInfoList"></deleteUploadImg>
  367. </div>
  368. <div v-if="item.answerType == 'tel'" class="formLabel z-cell">
  369. <van-cell>
  370. <template #title
  371. ><span v-if="item.isMust == 0" class="van-f-red">*</span>
  372. <span>{{ 1 + index + '.' }}</span>
  373. {{ item.collectionName }}
  374. <!-- 操作说明图片和电话 -->
  375. <taskTips
  376. v-if="item.contactPhone || item.examplePhoto"
  377. :contactPhone="item.contactPhone"
  378. :examplePhoto="item.examplePhoto">
  379. </taskTips
  380. ></template>
  381. <template #right-icon>
  382. <span v-if="item.isMustPicture == '0'" class="van-f-red">*</span>
  383. <van-icon
  384. v-if="item.isPicture == '0'"
  385. color="#666"
  386. name="photograph"
  387. size="24"
  388. @click="imgClick(item, 'A', index)" />
  389. </template>
  390. </van-cell>
  391. <van-field
  392. v-model="item.answerValue"
  393. :placeholder="item.collectionOptionList[0].collectionOption"
  394. type="tel"
  395. @blur="telFn(item, index, 'A')"></van-field>
  396. <deleteUploadImg
  397. :photoIdentifyType="photoIdentifyType"
  398. :imgs="item.fileInfoList"></deleteUploadImg>
  399. </div>
  400. <div v-if="item.answerType == 'zp'" class="formLabel z-cell">
  401. <van-cell>
  402. <template #title>
  403. <span v-if="item.isMust == 0" class="van-f-red">*</span>
  404. <span>{{ 1 + index + '.' }}</span>
  405. {{ item.collectionName }}
  406. <!-- 操作说明图片和电话 -->
  407. <taskTips
  408. v-if="item.contactPhone || item.examplePhoto"
  409. :contactPhone="item.contactPhone"
  410. :examplePhoto="item.examplePhoto">
  411. </taskTips>
  412. </template>
  413. <template #right-icon>
  414. <template v-if="isEditSDHCL && processKey">
  415. <span v-if="item.isMustPicture == '0'" class="van-f-red">*</span>
  416. <van-icon
  417. v-if="item.isPicture == 0"
  418. color="#666"
  419. name="photograph"
  420. size="24"
  421. @click="imgClick(item, 'A', index)" />
  422. </template>
  423. </template>
  424. </van-cell>
  425. <!-- 生动化陈列备注 只能有一层采集项 -->
  426. <div
  427. class="sdhclTips"
  428. v-if="item.collectionName == '生动化陈列'"
  429. style="color: red; font-size: 14px">
  430. 请补充拍摄除陈列奖励案产品外,本店经营的其他立邦产品,以便准确识别SKU数量
  431. </div>
  432. <deleteUploadImg
  433. :photoIdentifyType="photoIdentifyType"
  434. :types="$route.query.types"
  435. :imgs="item.fileInfoList"></deleteUploadImg>
  436. </div>
  437. <div v-if="item.answerType == 'wb'" class="formLabel z-cell">
  438. <van-cell>
  439. <template #title
  440. ><span v-if="item.isMust == 0" class="van-f-red">*</span>
  441. <span>{{ 1 + index + '.' }}</span>
  442. {{ item.collectionName }}
  443. <!-- 操作说明图片和电话 -->
  444. <taskTips
  445. v-if="item.contactPhone || item.examplePhoto"
  446. :contactPhone="item.contactPhone"
  447. :examplePhoto="item.examplePhoto">
  448. </taskTips
  449. ></template>
  450. <template #right-icon>
  451. <span v-if="item.isMustPicture == '0'" class="van-f-red">*</span>
  452. <van-icon
  453. v-if="item.isPicture == 0"
  454. color="#666"
  455. name="photograph"
  456. size="24"
  457. @click="imgClick(item, 'A', index)" />
  458. </template>
  459. </van-cell>
  460. <van-field
  461. v-model="item.answerValue"
  462. :formatter="formatter"
  463. autosize
  464. type="textarea"
  465. :placeholder="item.collectionOptionList[0].collectionOption"></van-field>
  466. <p
  467. style="
  468. color: #444;
  469. font-size: 12px;
  470. margin: 0;
  471. text-align: right;
  472. position: relative;
  473. ">
  474. <span
  475. style="color: #00afff; position: absolute; top: 8px; right: 0px"
  476. v-if="item.showHistory == 1"
  477. @click="getCollectionShowHistory(item)"
  478. >回显历史</span
  479. >
  480. </p>
  481. <deleteUploadImg
  482. :photoIdentifyType="photoIdentifyType"
  483. :imgs="item.fileInfoList"></deleteUploadImg>
  484. </div>
  485. <div v-if="item.answerType == 'dhwb'" class="formLabel z-cell">
  486. <van-cell>
  487. <template #title
  488. ><span v-if="item.isMust == 0" class="van-f-red">*</span>
  489. <span>{{ 1 + index + '.' }}</span>
  490. {{ item.collectionName }}
  491. <!-- 操作说明图片和电话 -->
  492. <taskTips
  493. v-if="item.contactPhone || item.examplePhoto"
  494. :contactPhone="item.contactPhone"
  495. :examplePhoto="item.examplePhoto">
  496. </taskTips
  497. ></template>
  498. <template #right-icon>
  499. <span v-if="item.isMustPicture == '0'" class="van-f-red">*</span>
  500. <van-icon
  501. v-if="item.isPicture == 0"
  502. color="#666"
  503. name="photograph"
  504. size="24"
  505. @click="imgClick(item, 'A', index)" />
  506. </template>
  507. </van-cell>
  508. <van-field
  509. v-model="item.answerValue"
  510. :formatter="dhwbFormatter"
  511. @blur="DHWBsizeComparison(item, 'A')"
  512. :placeholder="item.collectionOptionList[0].collectionOption"
  513. :error-message="item.ruleMessage"></van-field>
  514. <p
  515. style="color: #444; font-size: 12px; margin: 0; text-align: right; position: relative"
  516. v-if="item.showHistory == 1">
  517. <span
  518. style="color: #00afff; position: absolute; top: 8px; right: 0px"
  519. @click="getCollectionShowHistory(item)"
  520. >回显历史</span
  521. >
  522. </p>
  523. <deleteUploadImg
  524. :photoIdentifyType="photoIdentifyType"
  525. :imgs="item.fileInfoList"></deleteUploadImg>
  526. </div>
  527. <div v-if="item.answerType == 'xm'" class="formLabel z-cell">
  528. <van-cell>
  529. <template #title
  530. ><span v-if="item.isMust == 0" class="van-f-red">*</span>
  531. <span>{{ 1 + index + '.' }}</span>
  532. {{ item.collectionName }}
  533. <!-- 操作说明图片和电话 -->
  534. <taskTips
  535. v-if="item.contactPhone || item.examplePhoto"
  536. :contactPhone="item.contactPhone"
  537. :examplePhoto="item.examplePhoto">
  538. </taskTips
  539. ></template>
  540. <template #right-icon>
  541. <span v-if="item.isMustPicture == '0'" class="van-f-red">*</span>
  542. <van-icon
  543. v-if="item.isPicture == 0"
  544. color="#666"
  545. name="photograph"
  546. size="24"
  547. @click="imgClick(item, 'A', index)" />
  548. </template>
  549. </van-cell>
  550. <van-field
  551. v-model="item.answerValue"
  552. :formatter="xmFormatter"
  553. @blur="XMsizeComparison(item, 'A')"
  554. :placeholder="item.collectionOptionList[0].collectionOption"
  555. :error-message="item.ruleMessage"></van-field>
  556. <p
  557. style="color: #444; font-size: 12px; margin: 0; text-align: right; position: relative"
  558. v-if="item.showHistory == 1">
  559. <span
  560. style="color: #00afff; position: absolute; top: 8px; right: 0px"
  561. @click="getCollectionShowHistory(item)"
  562. >回显历史</span
  563. >
  564. </p>
  565. <deleteUploadImg
  566. :photoIdentifyType="photoIdentifyType"
  567. :imgs="item.fileInfoList"></deleteUploadImg>
  568. </div>
  569. <div v-if="item.answerType == 'duox'" class="formLabel z-cell">
  570. <van-cell>
  571. <template #title
  572. ><span v-if="item.isMust == 0" class="van-f-red">*</span>
  573. <span>{{ 1 + index + '.' }}</span>
  574. {{ item.collectionName }}
  575. <!-- 操作说明图片和电话 -->
  576. <taskTips
  577. v-if="item.contactPhone || item.examplePhoto"
  578. :contactPhone="item.contactPhone"
  579. :examplePhoto="item.examplePhoto">
  580. </taskTips
  581. ></template>
  582. <template #right-icon>
  583. <span v-if="item.isMustPicture == '0'" class="van-f-red">*</span>
  584. <van-icon
  585. v-if="item.isPicture == 0"
  586. color="#666"
  587. name="photograph"
  588. size="24"
  589. @click="imgClick(item, 'A', index)" />
  590. </template>
  591. </van-cell>
  592. <z-checkbox
  593. :answerType="item.answerType"
  594. :checkboxval="item.answerValue"
  595. :collectionType="item.collectionType"
  596. :textc="item.collectionCode"
  597. :childindex="index"
  598. level="A"
  599. :zCheckboxcolumns="item.collectionOptionList"
  600. @zSelectVal="zSelectVal"></z-checkbox>
  601. <deleteUploadImg
  602. :photoIdentifyType="photoIdentifyType"
  603. :imgs="item.fileInfoList"></deleteUploadImg>
  604. </div>
  605. <div v-if="item.answerType == 'sm'" class="formLabel z-cell">
  606. <van-cell>
  607. <template #title>
  608. <p style="margin: 0">
  609. <span v-if="item.isMust == 0" class="van-f-red">*</span>
  610. <span>{{ 1 + index + '.' }}</span>
  611. {{ item.collectionName }}
  612. <!-- 操作说明图片和电话 -->
  613. <taskTips
  614. v-if="item.contactPhone || item.examplePhoto"
  615. :contactPhone="item.contactPhone"
  616. :examplePhoto="item.examplePhoto">
  617. </taskTips>
  618. </p>
  619. <p @click="viewSM" style="font-size: 14px; margin: 0">
  620. 如何寻找调色机资产编码或投放编号&nbsp;<van-icon name="question-o" />
  621. </p>
  622. </template>
  623. <template #right-icon>
  624. <storeCode
  625. :tid="taskId"
  626. :cid="item.collectionId"
  627. :insert="insert"
  628. :code="equipmentCode"
  629. type="A"
  630. :index="index"
  631. @newcode="newcode"></storeCode>
  632. </template>
  633. </van-cell>
  634. <div style="font-size: 14px" v-if="item.answerValue">
  635. <div v-if="item.success" style="color: green">
  636. <p v-if="equipmentCode">系统资产或投放编码:{{ equipmentCode }}</p>
  637. <p v-if="item.equipmentCode2">
  638. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{ item.equipmentCode2 }}
  639. </p>
  640. <span style="float: right; margin-top: -48px"
  641. ><van-icon name="passed" size="16" />&nbsp;一致</span
  642. >
  643. </div>
  644. <div v-if="!item.success" style="color: red">
  645. <p v-if="equipmentCode">系统资产或投放编码:{{ equipmentCode }}</p>
  646. <p v-if="item.equipmentCode2">
  647. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{ item.equipmentCode2 }}
  648. </p>
  649. <span style="float: right; margin-top: -48px"
  650. ><van-icon name="close" size="16" />&nbsp;不一致</span
  651. >
  652. </div>
  653. </div>
  654. <deleteUploadImg
  655. :photoIdentifyType="photoIdentifyType"
  656. :imgs="item.fileInfoList"></deleteUploadImg>
  657. </div>
  658. <div v-if="item.answerType == 'dx'" class="formLabel z-cell">
  659. <div>
  660. <van-cell>
  661. <template #title
  662. ><span v-if="item.isMust == 0" class="van-f-red">*</span>
  663. <span>{{ 1 + index + '.' }}</span>
  664. {{ item.collectionName }}
  665. <!-- 操作说明图片和电话 -->
  666. <taskTips
  667. v-if="item.contactPhone || item.examplePhoto"
  668. :contactPhone="item.contactPhone"
  669. :examplePhoto="item.examplePhoto">
  670. </taskTips
  671. ></template>
  672. <template #right-icon>
  673. <span v-if="item.isMustPicture == '0'" class="van-f-red">*</span>
  674. <van-icon
  675. v-if="item.isPicture == 0"
  676. color="#666"
  677. name="photograph"
  678. size="24"
  679. @click="imgClick(item, 'A', index)" />
  680. </template>
  681. </van-cell>
  682. <z-radio
  683. :answerType="item.answerType"
  684. :collectionType="item.collectionType"
  685. :radio="item.answerValue"
  686. v-model="item.answerValue"
  687. :textc="item.collectionCode"
  688. childIndex4="B"
  689. :zRadiocolumns="item.collectionOptionList"
  690. :childindex="index"
  691. @zSelectVal="zSelectVal"
  692. :relevancyItem="item.relevancyItem"></z-radio>
  693. <deleteUploadImg
  694. :photoIdentifyType="photoIdentifyType"
  695. :imgs="item.fileInfoList"></deleteUploadImg>
  696. <div v-for="(child, indexc) in item.collectionOptionList" :key="indexc">
  697. <div v-if="child.isCheck == 1">
  698. <div v-for="(childitem, childIndex) in child.collectionItems" :key="childIndex">
  699. <div v-if="childitem.answerType == 'tel_send_code'" class="formLabel z-cell">
  700. <van-cell>
  701. <template #title>
  702. <span v-if="childitem.isMust == 0" class="van-f-red">*</span>
  703. <span>{{ 1 + index + '.' }}</span>
  704. <span>{{ 1 + childIndex + '.' }}</span>
  705. {{ childitem.collectionName }}
  706. <!-- 操作说明图片和电话 -->
  707. <taskTips
  708. v-if="childitem.contactPhone || childitem.examplePhoto"
  709. :contactPhone="childitem.contactPhone"
  710. :examplePhoto="childitem.examplePhoto">
  711. </taskTips>
  712. </template>
  713. </van-cell>
  714. <van-field
  715. class="sendCode"
  716. v-model="childitem.collectionOptionList[0].answerValue"
  717. :placeholder="childitem.collectionOptionList[0].collectionOption"
  718. type="tel"
  719. @blur="sendCodeTelFn(childitem, index)">
  720. <template #button v-if="!verifyMobile">
  721. <van-button
  722. size="small"
  723. style="color: white; background: rgb(0, 87, 186); border-radius: 6px"
  724. @click="sendCode(childitem, index)"
  725. :disabled="time != null">
  726. <span v-if="time">已发送({{ timeNum }})</span>
  727. <span v-else>发送验证码</span>
  728. </van-button>
  729. </template>
  730. </van-field>
  731. </div>
  732. <div v-if="childitem.answerType == 'tel_confirm'" class="formLabel z-cell">
  733. <van-cell>
  734. <template #title>
  735. <span v-if="childitem.isMust == 0" class="van-f-red">*</span>
  736. <span>{{ 1 + index + '.' }}</span>
  737. <span>{{ 1 + childIndex + '.' }}</span>
  738. {{ childitem.collectionName }}
  739. <!-- 操作说明图片和电话 -->
  740. <taskTips
  741. v-if="childitem.contactPhone || childitem.examplePhoto"
  742. :contactPhone="childitem.contactPhone"
  743. :examplePhoto="childitem.examplePhoto">
  744. </taskTips>
  745. </template>
  746. </van-cell>
  747. <van-field
  748. class="sendCode"
  749. v-model="childitem.collectionOptionList[0].answerValue"
  750. type="tel"
  751. @blur="telConfirmBlur(childitem, index)">
  752. <template #button v-if="!verifyMobile">
  753. <van-button
  754. size="small"
  755. style="color: white; background: rgb(0, 87, 186); border-radius: 6px"
  756. @click="telConfirm(childitem, index)"
  757. :disabled="confirmed">
  758. <span v-if="confirmed">已确认</span>
  759. <span v-else>确认真实</span>
  760. </van-button>
  761. </template>
  762. </van-field>
  763. <p
  764. style="color: red; font-size: 14px; margin: 0; padding: 10px 0"
  765. v-if="childitem.collectionOptionList[0].collectionOption">
  766. {{ childitem.collectionOptionList[0].collectionOption }}
  767. </p>
  768. </div>
  769. <div
  770. v-if="childitem.answerType == 'check_code' && !verifyMobile"
  771. class="formLabel z-cell">
  772. <van-cell>
  773. <template #title>
  774. <span v-if="childitem.isMust == 0" class="van-f-red">*</span>
  775. <span>{{ 1 + index + '.' }}</span>
  776. <span>{{ 1 + childIndex + '.' }}</span>
  777. {{ childitem.collectionName }}
  778. </template>
  779. </van-cell>
  780. <van-field
  781. v-model="childitem.collectionOptionList[0].answerValue"
  782. :placeholder="childitem.collectionOptionList[0].collectionOption"
  783. type="number"
  784. @blur="verification(childitem, child.collectionItems)"
  785. @input="numberFn(childitem, index)"></van-field>
  786. </div>
  787. <div v-if="childitem.answerType == 'nyr'" class="formLabel z-cell">
  788. <van-cell>
  789. <template #title>
  790. <span v-if="childitem.isMust == 0" class="van-f-red">*</span>
  791. <span>{{ 1 + index + '.' }}</span>
  792. <span>{{ 1 + childIndex + '.' }}</span>
  793. {{ childitem.collectionName }}
  794. </template>
  795. </van-cell>
  796. <van-field
  797. v-model="childitem.collectionOptionList[0].answerValue"
  798. :placeholder="childitem.text"
  799. readonly
  800. @click="
  801. getNyr(
  802. childitem.collectionOptionList[0],
  803. childitem.collectionOptionList[0].answerValue,
  804. )
  805. "></van-field>
  806. <p
  807. style="
  808. color: red;
  809. font-size: 14px;
  810. margin: 0;
  811. padding: 10px 0;
  812. text-align: right;
  813. "
  814. v-if="childitem.collectionOptionList[0].collectionOption">
  815. {{ childitem.collectionOptionList[0].collectionOption }}
  816. </p>
  817. </div>
  818. <div v-if="childitem.answerType == 'wb'" class="formLabel z-cell">
  819. <van-cell>
  820. <template #title>
  821. <span v-if="childitem.isMust == 0" class="van-f-red">*</span>
  822. <span>{{ 1 + index + '.' }}</span>
  823. <span>{{ 1 + childIndex + '.' }}</span>
  824. {{ childitem.collectionName }}
  825. <!-- 操作说明图片和电话 -->
  826. <taskTips
  827. v-if="childitem.contactPhone || childitem.examplePhoto"
  828. :contactPhone="childitem.contactPhone"
  829. :examplePhoto="childitem.examplePhoto">
  830. </taskTips>
  831. </template>
  832. <template #right-icon>
  833. <span v-if="childitem.isMustPicture == '0'" class="van-f-red">*</span>
  834. <van-icon
  835. v-if="childitem.isPicture == 0"
  836. color="#666"
  837. name="photograph"
  838. size="24"
  839. @click="imgClick(childitem, 'B', index, childIndex)" />
  840. </template>
  841. </van-cell>
  842. <van-field
  843. v-model="childitem.collectionOptionList[0].answerValue"
  844. :formatter="formatter"
  845. autosize
  846. type="textarea"
  847. :placeholder="
  848. childitem.collectionOptionList[0].collectionOption
  849. "></van-field>
  850. <p
  851. style="
  852. color: #444;
  853. font-size: 12px;
  854. margin: 0;
  855. text-align: right;
  856. position: relative;
  857. ">
  858. <span
  859. style="color: #00afff; position: absolute; top: 8px; right: 0px"
  860. v-if="childitem.showHistory == 1"
  861. @click="getCollectionShowHistory(childitem)"
  862. >回显历史</span
  863. >
  864. </p>
  865. <deleteUploadImg
  866. :photoIdentifyType="photoIdentifyType"
  867. :imgs="childitem.fileInfoList"></deleteUploadImg>
  868. </div>
  869. <div v-if="childitem.answerType == 'dhwb'" class="formLabel z-cell">
  870. <van-cell>
  871. <template #title>
  872. <span v-if="childitem.isMust == 0" class="van-f-red">*</span>
  873. <span>{{ 1 + index + '.' }}</span>
  874. <span>{{ 1 + childIndex + '.' }}</span>
  875. {{ childitem.collectionName }}
  876. <!-- 操作说明图片和电话 -->
  877. <taskTips
  878. v-if="childitem.contactPhone || childitem.examplePhoto"
  879. :contactPhone="childitem.contactPhone"
  880. :examplePhoto="childitem.examplePhoto">
  881. </taskTips>
  882. </template>
  883. <template #right-icon>
  884. <span v-if="childitem.isMustPicture == '0'" class="van-f-red">*</span>
  885. <van-icon
  886. v-if="childitem.isPicture == 0"
  887. color="#666"
  888. name="photograph"
  889. size="24"
  890. @click="imgClick(childitem, 'B', index, childIndex)" />
  891. </template>
  892. </van-cell>
  893. <van-field
  894. v-model="childitem.collectionOptionList[0].answerValue"
  895. :formatter="dhwbFormatter"
  896. @blur="DHWBsizeComparison(childitem)"
  897. :placeholder="childitem.collectionOptionList[0].collectionOption"
  898. :error-message="childitem.collectionOptionList[0].ruleMessage"></van-field>
  899. <p
  900. style="
  901. color: #444;
  902. font-size: 12px;
  903. margin: 0;
  904. text-align: right;
  905. position: relative;
  906. "
  907. v-if="childitem.showHistory == 1">
  908. <span
  909. style="color: #00afff; position: absolute; top: 8px; right: 0px"
  910. @click="getCollectionShowHistory(childitem)"
  911. >回显历史</span
  912. >
  913. </p>
  914. <deleteUploadImg
  915. :photoIdentifyType="photoIdentifyType"
  916. :imgs="childitem.fileInfoList"></deleteUploadImg>
  917. </div>
  918. <div v-if="childitem.answerType == 'xm'" class="formLabel z-cell">
  919. <van-cell>
  920. <template #title>
  921. <span v-if="childitem.isMust == 0" class="van-f-red">*</span>
  922. <span>{{ 1 + index + '.' }}</span>
  923. <span>{{ 1 + childIndex + '.' }}</span>
  924. {{ childitem.collectionName }}
  925. <!-- 操作说明图片和电话 -->
  926. <taskTips
  927. v-if="childitem.contactPhone || childitem.examplePhoto"
  928. :contactPhone="childitem.contactPhone"
  929. :examplePhoto="childitem.examplePhoto">
  930. </taskTips>
  931. </template>
  932. <template #right-icon>
  933. <span v-if="childitem.isMustPicture == '0'" class="van-f-red">*</span>
  934. <van-icon
  935. v-if="childitem.isPicture == 0"
  936. color="#666"
  937. name="photograph"
  938. size="24"
  939. @click="imgClick(childitem, 'B', index, childIndex)" />
  940. </template>
  941. </van-cell>
  942. <van-field
  943. v-model="childitem.collectionOptionList[0].answerValue"
  944. :formatter="xmFormatter"
  945. @blur="XMsizeComparison(childitem)"
  946. :placeholder="childitem.collectionOptionList[0].collectionOption"
  947. :error-message="childitem.collectionOptionList[0].ruleMessage"></van-field>
  948. <p
  949. style="
  950. color: #444;
  951. font-size: 12px;
  952. margin: 0;
  953. text-align: right;
  954. position: relative;
  955. "
  956. v-if="childitem.showHistory == 1">
  957. <span
  958. style="color: #00afff; position: absolute; top: 8px; right: 0px"
  959. @click="getCollectionShowHistory(childitem)"
  960. >回显历史</span
  961. >
  962. </p>
  963. <deleteUploadImg
  964. :photoIdentifyType="photoIdentifyType"
  965. :imgs="childitem.fileInfoList"></deleteUploadImg>
  966. </div>
  967. <div v-if="childitem.answerType == 'sz'" class="formLabel z-cell">
  968. <van-cell>
  969. <template #title>
  970. <span v-if="childitem.isMust == 0" class="van-f-red">*</span>
  971. <span>{{ 1 + index + '.' }}</span>
  972. <span>{{ 1 + childIndex + '.' }}</span>
  973. {{ childitem.collectionName }}
  974. <!-- 操作说明图片和电话 -->
  975. <taskTips
  976. v-if="childitem.contactPhone || childitem.examplePhoto"
  977. :contactPhone="childitem.contactPhone"
  978. :examplePhoto="childitem.examplePhoto">
  979. </taskTips
  980. ></template>
  981. <template #right-icon>
  982. <span v-if="childitem.isMustPicture == '0'" class="van-f-red">*</span>
  983. <van-icon
  984. v-if="childitem.isPicture == '0'"
  985. color="#666"
  986. name="photograph"
  987. size="24"
  988. @click="imgClick(childitem, 'B', index, childIndex)" />
  989. </template>
  990. </van-cell>
  991. <van-field
  992. v-model="childitem.collectionOptionList[0].answerValue"
  993. :placeholder="childitem.collectionOptionList[0].collectionOption"
  994. @blur="SZsizeComparison(childitem)"
  995. :error-message="childitem.collectionOptionList[0].ruleMessage"></van-field>
  996. <deleteUploadImg
  997. :photoIdentifyType="photoIdentifyType"
  998. :imgs="childitem.fileInfoList"></deleteUploadImg>
  999. </div>
  1000. <div v-if="childitem.answerType == 'date'" class="formLabel z-cell">
  1001. <van-cell>
  1002. <template #title>
  1003. <span v-if="childitem.isMust == 0" class="van-f-red">*</span>
  1004. <span>{{ 1 + index + '.' }}</span>
  1005. <span>{{ 1 + childIndex + '.' }}</span>
  1006. {{ childitem.collectionName }}
  1007. <!-- 操作说明图片和电话 -->
  1008. <taskTips
  1009. v-if="childitem.contactPhone || childitem.examplePhoto"
  1010. :contactPhone="childitem.contactPhone"
  1011. :examplePhoto="childitem.examplePhoto">
  1012. </taskTips
  1013. ></template>
  1014. <template #right-icon>
  1015. <span v-if="childitem.isMustPicture == '0'" class="van-f-red">*</span>
  1016. <van-icon
  1017. v-if="childitem.isPicture == '0'"
  1018. color="#666"
  1019. name="photograph"
  1020. size="24"
  1021. @click="imgClick(childitem, 'B', index, childIndex)" />
  1022. </template>
  1023. </van-cell>
  1024. <van-field
  1025. readonly
  1026. clickable
  1027. :value="childitem.collectionOptionList[0].answerValue"
  1028. :placeholder="childitem.text"
  1029. @click="showPickerTimeFn(index, 'B', indexc, childIndex)" />
  1030. <p
  1031. style="
  1032. color: #444;
  1033. font-size: 12px;
  1034. margin: 0;
  1035. padding: 10px 0;
  1036. text-align: right;
  1037. "
  1038. v-if="childitem.collectionOptionList[0].collectionOption"
  1039. v-html="childitem.collectionOptionList[0].collectionOption"></p>
  1040. <deleteUploadImg
  1041. :photoIdentifyType="photoIdentifyType"
  1042. :imgs="childitem.fileInfoList"></deleteUploadImg>
  1043. </div>
  1044. <div v-if="childitem.answerType == 'tel'" class="formLabel z-cell">
  1045. <van-cell>
  1046. <template #title>
  1047. <span v-if="childitem.isMust == 0" class="van-f-red">*</span>
  1048. <span>{{ 1 + index + '.' }}</span>
  1049. <span>{{ 1 + childIndex + '.' }}</span>
  1050. {{ childitem.collectionName }}
  1051. <!-- 操作说明图片和电话 -->
  1052. <taskTips
  1053. v-if="childitem.contactPhone || childitem.examplePhoto"
  1054. :contactPhone="childitem.contactPhone"
  1055. :examplePhoto="childitem.examplePhoto">
  1056. </taskTips>
  1057. </template>
  1058. <template #right-icon>
  1059. <span v-if="childitem.isMustPicture == '0'" class="van-f-red">*</span>
  1060. <van-icon
  1061. v-if="childitem.isPicture == '0'"
  1062. color="#666"
  1063. name="photograph"
  1064. size="24"
  1065. @click="imgClick(childitem, 'B', index, childIndex)" />
  1066. </template>
  1067. </van-cell>
  1068. <van-field
  1069. v-model="childitem.collectionOptionList[0].answerValue"
  1070. :placeholder="childitem.collectionOptionList[0].collectionOption"
  1071. type="tel"
  1072. @input="telFn(childitem, index)"></van-field>
  1073. <deleteUploadImg
  1074. :photoIdentifyType="photoIdentifyType"
  1075. :imgs="childitem.fileInfoList"></deleteUploadImg>
  1076. </div>
  1077. <div v-if="childitem.answerType == 'zp'" class="formLabel z-cell">
  1078. <van-cell>
  1079. <template #title>
  1080. <span v-if="childitem.isMust == 0" class="van-f-red">*</span>
  1081. <span>{{ 1 + index + '.' }}</span>
  1082. <span>{{ 1 + childIndex + '.' }}</span>
  1083. {{ childitem.collectionName }}
  1084. <!-- 操作说明图片和电话 -->
  1085. <taskTips
  1086. v-if="childitem.contactPhone || childitem.examplePhoto"
  1087. :contactPhone="childitem.contactPhone"
  1088. :examplePhoto="childitem.examplePhoto">
  1089. </taskTips
  1090. ></template>
  1091. <template #right-icon>
  1092. <template v-if="processKey">
  1093. <span v-if="childitem.isMustPicture == '0'" class="van-f-red">*</span>
  1094. <van-icon
  1095. v-if="childitem.isPicture == 0"
  1096. color="#666"
  1097. name="photograph"
  1098. size="24"
  1099. @click="imgClick(childitem, 'B', index, childIndex)" />
  1100. </template>
  1101. </template>
  1102. </van-cell>
  1103. <!-- 生动化陈列备注 只能有一层采集项 -->
  1104. <div
  1105. class="sdhclTips"
  1106. v-if="childitem.collectionName == '生动化陈列'"
  1107. style="color: red; font-size: 14px">
  1108. 请补充拍摄除陈列奖励案产品外,本店经营的其他立邦产品,以便准确识别SKU数量
  1109. </div>
  1110. <deleteUploadImg
  1111. :photoIdentifyType="photoIdentifyType"
  1112. :types="$route.query.types"
  1113. :imgs="childitem.fileInfoList"></deleteUploadImg>
  1114. </div>
  1115. <div v-if="childitem.answerType == 'duox'" class="formLabel z-cell">
  1116. <van-cell>
  1117. <template #title>
  1118. <span v-if="childitem.isMust == 0" class="van-f-red">*</span>
  1119. <span>{{ 1 + index + '.' }}</span>
  1120. <span>{{ 1 + childIndex + '.' }}</span>
  1121. {{ childitem.collectionName }}
  1122. <!-- 操作说明图片和电话 -->
  1123. <taskTips
  1124. v-if="childitem.contactPhone || childitem.examplePhoto"
  1125. :contactPhone="childitem.contactPhone"
  1126. :examplePhoto="childitem.examplePhoto">
  1127. </taskTips
  1128. ></template>
  1129. <template #right-icon>
  1130. <span v-if="childitem.isMustPicture == '0'" class="van-f-red">*</span>
  1131. <van-icon
  1132. v-if="childitem.isPicture == 0"
  1133. color="#666"
  1134. name="photograph"
  1135. size="24"
  1136. @click="imgClick(childitem, 'B', index, childIndex)" />
  1137. </template>
  1138. </van-cell>
  1139. <z-checkbox
  1140. :answerType="childitem.answerType"
  1141. :checkboxval="childitem.answerValue"
  1142. :collectionType="childitem.collectionType"
  1143. :textc="childitem.collectionCode"
  1144. :zCheckboxcolumns="childitem.collectionOptionList"
  1145. :childindex="index"
  1146. :childindex1="indexc"
  1147. :childindex2="childIndex"
  1148. level="B"
  1149. @zSelectVal="zSelectVal"></z-checkbox>
  1150. <deleteUploadImg
  1151. :photoIdentifyType="photoIdentifyType"
  1152. :imgs="childitem.fileInfoList"></deleteUploadImg>
  1153. </div>
  1154. <div v-if="childitem.answerType == 'sm'" class="formLabel z-cell">
  1155. <van-cell>
  1156. <template #title>
  1157. <p style="margin: 0">
  1158. <span v-if="childitem.isMust == 0" class="van-f-red">*</span>
  1159. <span>{{ 1 + index + '.' }}</span>
  1160. <span>{{ 1 + childIndex + '.' }}</span>
  1161. {{ childitem.collectionName }}
  1162. <!-- 操作说明图片和电话 -->
  1163. <taskTips
  1164. v-if="childitem.contactPhone || childitem.examplePhoto"
  1165. :contactPhone="childitem.contactPhone"
  1166. :examplePhoto="childitem.examplePhoto">
  1167. </taskTips>
  1168. </p>
  1169. <p @click="viewSM" style="font-size: 14px; margin: 0">
  1170. 如何寻找调色机资产编码&nbsp;<van-icon name="question-o" />
  1171. </p>
  1172. </template>
  1173. <template #right-icon>
  1174. <storeCode
  1175. :insert="insert"
  1176. :code="equipmentCode"
  1177. type="B"
  1178. :index="index"
  1179. :index1="indexc"
  1180. :index2="childIndex"
  1181. @newcode="newcode"></storeCode>
  1182. </template>
  1183. </van-cell>
  1184. <div
  1185. style="font-size: 14px"
  1186. v-if="childitem.collectionOptionList[0].answerValue">
  1187. <div v-if="childitem.success" style="color: green">
  1188. <p v-if="equipmentCode">系统资产编码:{{ equipmentCode }}</p>
  1189. <p v-if="childitem.equipmentCode2">
  1190. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{ childitem.equipmentCode2 }}
  1191. </p>
  1192. <span style="float: right; margin-top: -48px"
  1193. ><van-icon name="passed" size="16" />&nbsp;一致</span
  1194. >
  1195. </div>
  1196. <div v-if="!childitem.success" style="color: red">
  1197. <p v-if="equipmentCode">系统资产编码:{{ equipmentCode }}</p>
  1198. <p v-if="childitem.equipmentCode2">
  1199. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{ childitem.equipmentCode2 }}
  1200. </p>
  1201. <span style="float: right; margin-top: -48px"
  1202. ><van-icon name="close" size="16" />&nbsp;不一致</span
  1203. >
  1204. </div>
  1205. </div>
  1206. <deleteUploadImg
  1207. :photoIdentifyType="photoIdentifyType"
  1208. :imgs="childitem.fileInfoList"></deleteUploadImg>
  1209. </div>
  1210. <div v-if="childitem.answerType == 'dx'" class="formLabel z-cell">
  1211. <div>
  1212. <van-cell>
  1213. <template #title>
  1214. <span v-if="childitem.isMust == 0" class="van-f-red">*</span>
  1215. <span>{{ 1 + index + '.' }}</span>
  1216. <span>{{ 1 + childIndex + '.' }}</span>
  1217. {{ childitem.collectionName }}
  1218. <!-- 操作说明图片和电话 -->
  1219. <taskTips
  1220. v-if="childitem.contactPhone || childitem.examplePhoto"
  1221. :contactPhone="childitem.contactPhone"
  1222. :examplePhoto="childitem.examplePhoto">
  1223. </taskTips>
  1224. </template>
  1225. <template #right-icon>
  1226. <span v-if="childitem.isMustPicture == '0'" class="van-f-red">*</span>
  1227. <van-icon
  1228. v-if="childitem.isPicture == 0"
  1229. color="#666"
  1230. name="photograph"
  1231. size="24"
  1232. @click="imgClick(childitem, 'B', index, childIndex)" />
  1233. </template>
  1234. </van-cell>
  1235. <z-radio
  1236. :answerType="childitem.answerType"
  1237. :collectionType="childitem.collectionType"
  1238. :radio="childitem.answerValue"
  1239. :textc="childitem.collectionCode"
  1240. v-model="childitem.answerValue"
  1241. :childindex="index"
  1242. :childindex1="indexc"
  1243. childIndex4="A"
  1244. :childindex2="childIndex"
  1245. :zRadiocolumns="childitem.collectionOptionList"
  1246. @zSelectVal="zSelectVal"
  1247. :relevancyItem="childitem.relevancyItem"></z-radio>
  1248. <deleteUploadImg
  1249. :photoIdentifyType="photoIdentifyType"
  1250. :imgs="childitem.fileInfoList"></deleteUploadImg>
  1251. <div
  1252. v-for="(child1, indexc1) in childitem.collectionOptionList"
  1253. :key="indexc1">
  1254. <div v-if="child1.isCheck == 1">
  1255. <div
  1256. v-for="(childitem1, childIndex1) in child1.collectionItems"
  1257. :key="childIndex1">
  1258. <div v-if="childitem1.answerType == 'wb'" class="formLabel z-cell">
  1259. <van-cell>
  1260. <template #title
  1261. ><span v-if="childitem1.isMust == 0" class="van-f-red">*</span>
  1262. <span>{{ 1 + index + '.' }}</span>
  1263. <span>{{ 1 + childIndex + '.' }}</span>
  1264. <span>{{ 1 + childIndex1 + '.' }}</span>
  1265. {{ childitem1.collectionName }}
  1266. <!-- 操作说明图片和电话 -->
  1267. <taskTips
  1268. v-if="childitem1.contactPhone || childitem1.examplePhoto"
  1269. :contactPhone="childitem1.contactPhone"
  1270. :examplePhoto="childitem1.examplePhoto">
  1271. </taskTips
  1272. ></template>
  1273. <template #right-icon>
  1274. <span v-if="childitem1.isMustPicture == '0'" class="van-f-red"
  1275. >*</span
  1276. >
  1277. <van-icon
  1278. v-if="childitem1.isPicture == 0"
  1279. color="#666"
  1280. name="photograph"
  1281. size="24"
  1282. @click="
  1283. imgClick(
  1284. childitem1,
  1285. 'C',
  1286. index,
  1287. childIndex,
  1288. indexc,
  1289. indexc1,
  1290. childIndex1,
  1291. )
  1292. " />
  1293. </template>
  1294. </van-cell>
  1295. <van-field
  1296. v-model="childitem1.collectionOptionList[0].answerValue"
  1297. :formatter="formatter"
  1298. autosize
  1299. type="textarea"
  1300. :placeholder="
  1301. childitem1.collectionOptionList[0].collectionOption
  1302. "></van-field>
  1303. <p
  1304. style="
  1305. color: #444;
  1306. font-size: 12px;
  1307. margin: 0;
  1308. text-align: right;
  1309. position: relative;
  1310. ">
  1311. <span
  1312. style="color: #00afff; position: absolute; top: 8px; right: 0px"
  1313. v-if="childitem1.showHistory == 1"
  1314. @click="getCollectionShowHistory(childitem1)"
  1315. >回显历史</span
  1316. >
  1317. </p>
  1318. <deleteUploadImg
  1319. :photoIdentifyType="photoIdentifyType"
  1320. :imgs="childitem1.fileInfoList"></deleteUploadImg>
  1321. </div>
  1322. <div v-if="childitem1.answerType == 'dhwb'" class="formLabel z-cell">
  1323. <van-cell>
  1324. <template #title
  1325. ><span v-if="childitem1.isMust == 0" class="van-f-red">*</span>
  1326. <span>{{ 1 + index + '.' }}</span>
  1327. <span>{{ 1 + childIndex + '.' }}</span>
  1328. <span>{{ 1 + childIndex1 + '.' }}</span>
  1329. {{ childitem1.collectionName }}
  1330. <!-- 操作说明图片和电话 -->
  1331. <taskTips
  1332. v-if="childitem1.contactPhone || childitem1.examplePhoto"
  1333. :contactPhone="childitem1.contactPhone"
  1334. :examplePhoto="childitem1.examplePhoto">
  1335. </taskTips
  1336. ></template>
  1337. <template #right-icon>
  1338. <span v-if="childitem1.isMustPicture == '0'" class="van-f-red"
  1339. >*</span
  1340. >
  1341. <van-icon
  1342. v-if="childitem1.isPicture == 0"
  1343. color="#666"
  1344. name="photograph"
  1345. size="24"
  1346. @click="
  1347. imgClick(
  1348. childitem1,
  1349. 'C',
  1350. index,
  1351. childIndex,
  1352. indexc,
  1353. indexc1,
  1354. childIndex1,
  1355. )
  1356. " />
  1357. </template>
  1358. </van-cell>
  1359. <van-field
  1360. v-model="childitem1.collectionOptionList[0].answerValue"
  1361. :formatter="dhwbFormatter"
  1362. @blur="DHWBsizeComparison(childitem1)"
  1363. :placeholder="childitem1.collectionOptionList[0].collectionOption"
  1364. :error-message="
  1365. childitem1.collectionOptionList[0].ruleMessage
  1366. "></van-field>
  1367. <p
  1368. style="
  1369. color: #444;
  1370. font-size: 12px;
  1371. margin: 0;
  1372. text-align: right;
  1373. position: relative;
  1374. "
  1375. v-if="childitem1.showHistory == 1">
  1376. <span
  1377. style="color: #00afff; position: absolute; top: 8px; right: 0px"
  1378. @click="getCollectionShowHistory(childitem1)"
  1379. >回显历史</span
  1380. >
  1381. </p>
  1382. <deleteUploadImg
  1383. :photoIdentifyType="photoIdentifyType"
  1384. :imgs="childitem1.fileInfoList"></deleteUploadImg>
  1385. </div>
  1386. <div v-if="childitem1.answerType == 'xm'" class="formLabel z-cell">
  1387. <van-cell>
  1388. <template #title
  1389. ><span v-if="childitem1.isMust == 0" class="van-f-red">*</span>
  1390. <span>{{ 1 + index + '.' }}</span>
  1391. <span>{{ 1 + childIndex + '.' }}</span>
  1392. <span>{{ 1 + childIndex1 + '.' }}</span>
  1393. {{ childitem1.collectionName }}
  1394. <!-- 操作说明图片和电话 -->
  1395. <taskTips
  1396. v-if="childitem1.contactPhone || childitem1.examplePhoto"
  1397. :contactPhone="childitem1.contactPhone"
  1398. :examplePhoto="childitem1.examplePhoto">
  1399. </taskTips
  1400. ></template>
  1401. <template #right-icon>
  1402. <span v-if="childitem1.isMustPicture == '0'" class="van-f-red"
  1403. >*</span
  1404. >
  1405. <van-icon
  1406. v-if="childitem1.isPicture == 0"
  1407. color="#666"
  1408. name="photograph"
  1409. size="24"
  1410. @click="
  1411. imgClick(
  1412. childitem1,
  1413. 'C',
  1414. index,
  1415. childIndex,
  1416. indexc,
  1417. indexc1,
  1418. childIndex1,
  1419. )
  1420. " />
  1421. </template>
  1422. </van-cell>
  1423. <van-field
  1424. v-model="childitem1.collectionOptionList[0].answerValue"
  1425. :formatter="xmFormatter"
  1426. @blur="XMsizeComparison(childitem1)"
  1427. :placeholder="childitem1.collectionOptionList[0].collectionOption"
  1428. :error-message="
  1429. childitem1.collectionOptionList[0].ruleMessage
  1430. "></van-field>
  1431. <p
  1432. style="
  1433. color: #444;
  1434. font-size: 12px;
  1435. margin: 0;
  1436. text-align: right;
  1437. position: relative;
  1438. "
  1439. v-if="childitem1.showHistory == 1">
  1440. <span
  1441. style="color: #00afff; position: absolute; top: 8px; right: 0px"
  1442. @click="getCollectionShowHistory(childitem1)"
  1443. >回显历史</span
  1444. >
  1445. </p>
  1446. <deleteUploadImg
  1447. :photoIdentifyType="photoIdentifyType"
  1448. :imgs="childitem1.fileInfoList"></deleteUploadImg>
  1449. </div>
  1450. <div v-if="childitem1.answerType == 'date'" class="formLabel z-cell">
  1451. <van-cell>
  1452. <template #title>
  1453. <span v-if="childitem1.isMust == 0" class="van-f-red">*</span>
  1454. <span>{{ 1 + index + '.' }}</span>
  1455. <span>{{ 1 + childIndex + '.' }}</span>
  1456. <span>{{ 1 + childIndex1 + '.' }}</span>
  1457. {{ childitem1.collectionName }}
  1458. <!-- 操作说明图片和电话 -->
  1459. <taskTips
  1460. v-if="childitem1.contactPhone || childitem1.examplePhoto"
  1461. :contactPhone="childitem1.contactPhone"
  1462. :examplePhoto="childitem1.examplePhoto">
  1463. </taskTips
  1464. ></template>
  1465. <template #right-icon>
  1466. <span v-if="childitem1.isMustPicture == '0'" class="van-f-red"
  1467. >*</span
  1468. >
  1469. <van-icon
  1470. v-if="childitem1.isPicture == 0"
  1471. color="#666"
  1472. name="photograph"
  1473. size="24"
  1474. @click="
  1475. imgClick(
  1476. childitem1,
  1477. 'C',
  1478. index,
  1479. childIndex,
  1480. indexc,
  1481. indexc1,
  1482. childIndex1,
  1483. )
  1484. " />
  1485. </template>
  1486. </van-cell>
  1487. <van-field
  1488. readonly
  1489. clickable
  1490. :value="childitem1.collectionOptionList[0].answerValue"
  1491. :placeholder="childitem1.text"
  1492. @click="
  1493. showPickerTimeFn(
  1494. index,
  1495. 'C',
  1496. indexc,
  1497. childIndex,
  1498. indexc1,
  1499. childIndex1,
  1500. )
  1501. " />
  1502. <p
  1503. style="
  1504. color: #444;
  1505. font-size: 12px;
  1506. margin: 0;
  1507. text-align: right;
  1508. position: relative;
  1509. ">
  1510. <van-field
  1511. class="mobile-input"
  1512. v-model="childitem1.collectionOptionList[0].collectionOption"
  1513. autosize
  1514. readonly
  1515. type="textarea" />
  1516. <span
  1517. style="color: #00afff; position: absolute; top: 8px; right: 0px"
  1518. v-if="childitem1.showHistory == 1"
  1519. @click="getCollectionShowHistory(childitem1)"
  1520. >回显历史</span
  1521. >
  1522. </p>
  1523. <deleteUploadImg
  1524. :photoIdentifyType="photoIdentifyType"
  1525. :imgs="childitem1.fileInfoList"></deleteUploadImg>
  1526. </div>
  1527. <div v-if="childitem1.answerType == 'sm'" class="formLabel z-cell">
  1528. <van-cell>
  1529. <template #title>
  1530. <p style="margin: 0">
  1531. <span v-if="childitem1.isMust == 0" class="van-f-red">*</span>
  1532. <span>{{ 1 + index + '.' }}</span>
  1533. <span>{{ 1 + childIndex + '.' }}</span>
  1534. <span>{{ 1 + childIndex1 + '.' }}</span>
  1535. {{ childitem1.collectionName }}
  1536. <!-- 操作说明图片和电话 -->
  1537. <taskTips
  1538. v-if="childitem1.contactPhone || childitem1.examplePhoto"
  1539. :contactPhone="childitem1.contactPhone"
  1540. :examplePhoto="childitem1.examplePhoto">
  1541. </taskTips>
  1542. </p>
  1543. <p @click="viewSM" style="font-size: 14px; margin: 0">
  1544. 如何寻找调色机资产编码&nbsp;<van-icon name="question-o" />
  1545. </p>
  1546. </template>
  1547. <template #right-icon>
  1548. <storeCode
  1549. :insert="insert"
  1550. :code="equipmentCode"
  1551. type="C"
  1552. :index="index"
  1553. :index1="indexc"
  1554. :index2="childIndex"
  1555. :index3="indexc1"
  1556. :index4="childIndex1"
  1557. @newcode="newcode"></storeCode>
  1558. </template>
  1559. </van-cell>
  1560. <div
  1561. style="font-size: 14px"
  1562. v-if="childitem1.collectionOptionList[0].answerValue">
  1563. <div v-if="childitem1.success" style="color: green">
  1564. <p v-if="equipmentCode">系统资产编码:{{ equipmentCode }}</p>
  1565. <p v-if="childitem1.equipmentCode2">
  1566. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{
  1567. childitem1.equipmentCode2
  1568. }}
  1569. </p>
  1570. <span style="float: right; margin-top: -48px"
  1571. ><van-icon name="passed" size="16" />&nbsp;一致</span
  1572. >
  1573. </div>
  1574. <div v-if="!childitem1.success" style="color: red">
  1575. <p v-if="equipmentCode">系统资产编码:{{ equipmentCode }}</p>
  1576. <p v-if="childitem1.equipmentCode2">
  1577. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{
  1578. childitem1.equipmentCode2
  1579. }}
  1580. </p>
  1581. <span style="float: right; margin-top: -48px"
  1582. ><van-icon name="close" size="16" />&nbsp;不一致</span
  1583. >
  1584. </div>
  1585. </div>
  1586. <deleteUploadImg
  1587. :photoIdentifyType="photoIdentifyType"
  1588. :imgs="childitem1.fileInfoList"></deleteUploadImg>
  1589. </div>
  1590. <div v-if="childitem1.answerType == 'duox'" class="formLabel z-cell">
  1591. <van-cell>
  1592. <template #title>
  1593. <span v-if="childitem1.isMust == 0" class="van-f-red">*</span>
  1594. <span>{{ 1 + index + '.' }}</span>
  1595. <span>{{ 1 + childIndex + '.' }}</span>
  1596. <span>{{ 1 + childIndex1 + '.' }}</span>
  1597. {{ childitem1.collectionName }}
  1598. <!-- 操作说明图片和电话 -->
  1599. <taskTips
  1600. v-if="childitem1.contactPhone || childitem1.examplePhoto"
  1601. :contactPhone="childitem1.contactPhone"
  1602. :examplePhoto="childitem1.examplePhoto">
  1603. </taskTips
  1604. ></template>
  1605. <template #right-icon>
  1606. <span v-if="childitem1.isMustPicture == '0'" class="van-f-red"
  1607. >*</span
  1608. >
  1609. <van-icon
  1610. v-if="childitem1.isPicture == 0"
  1611. color="#666"
  1612. name="photograph"
  1613. size="24"
  1614. @click="
  1615. imgClick(
  1616. childitem1,
  1617. 'C',
  1618. index,
  1619. childIndex,
  1620. indexc,
  1621. indexc1,
  1622. childIndex1,
  1623. )
  1624. " />
  1625. </template>
  1626. </van-cell>
  1627. <z-checkbox
  1628. :answerType="childitem1.answerType"
  1629. :checkboxval="childitem1.answerValue"
  1630. :collectionType="childitem1.collectionType"
  1631. :textc="childitem1.collectionCode"
  1632. :childindex="index"
  1633. :childindex1="indexc"
  1634. :childindex2="childIndex"
  1635. :childindex3="indexc1"
  1636. :childindex4="childIndex1"
  1637. level="C"
  1638. :zCheckboxcolumns="childitem1.collectionOptionList"
  1639. @zSelectVal="zSelectVal"></z-checkbox>
  1640. <deleteUploadImg
  1641. :photoIdentifyType="photoIdentifyType"
  1642. :imgs="childitem1.fileInfoList"></deleteUploadImg>
  1643. </div>
  1644. <div v-if="childitem1.answerType == 'dx'" class="formLabel z-cell">
  1645. <div>
  1646. <van-cell>
  1647. <template #title>
  1648. <span v-if="childitem1.isMust == 0" class="van-f-red">*</span>
  1649. <span>{{ 1 + index + '.' }}</span>
  1650. <span>{{ 1 + childIndex + '.' }}</span>
  1651. <span>{{ 1 + childIndex1 + '.' }}</span>
  1652. {{ childitem1.collectionName }}
  1653. <!-- 操作说明图片和电话 -->
  1654. <taskTips
  1655. v-if="childitem1.contactPhone || childitem1.examplePhoto"
  1656. :contactPhone="childitem1.contactPhone"
  1657. :examplePhoto="childitem1.examplePhoto">
  1658. </taskTips
  1659. ></template>
  1660. <template #right-icon>
  1661. <span v-if="childitem1.isMustPicture == '0'" class="van-f-red"
  1662. >*</span
  1663. >
  1664. <van-icon
  1665. v-if="childitem1.isPicture == 0"
  1666. color="#666"
  1667. name="photograph"
  1668. size="24"
  1669. @click="
  1670. imgClick(
  1671. childitem1,
  1672. 'C',
  1673. index,
  1674. childIndex,
  1675. indexc,
  1676. indexc1,
  1677. childIndex1,
  1678. )
  1679. " />
  1680. </template>
  1681. </van-cell>
  1682. <z-radio
  1683. :answerType="childitem1.answerType"
  1684. :collectionType="childitem1.collectionType"
  1685. :radio="childitem1.answerValue"
  1686. v-model="childitem1.answerValue"
  1687. :textc="childitem1.collectionCode"
  1688. :childindex="index"
  1689. :childindex1="indexc"
  1690. :childindex2="childIndex"
  1691. :childindex3="indexc1"
  1692. :childindex5="childIndex1"
  1693. childIndex4="D"
  1694. :zRadiocolumns="childitem1.collectionOptionList"
  1695. @zSelectVal="zSelectVal"
  1696. :relevancyItem="childitem1.relevancyItem"></z-radio>
  1697. <deleteUploadImg
  1698. :photoIdentifyType="photoIdentifyType"
  1699. :imgs="childitem1.fileInfoList"></deleteUploadImg>
  1700. <div
  1701. v-for="(child33, indexc33) in childitem1.collectionOptionList"
  1702. :key="indexc33">
  1703. <div v-if="child33.isCheck == 1">
  1704. <div
  1705. v-for="(
  1706. child33item1, child33Index1
  1707. ) in child33.collectionItems"
  1708. :key="child33Index1">
  1709. <div
  1710. v-if="child33item1.answerType == 'wb'"
  1711. class="formLabel z-cell">
  1712. <van-cell>
  1713. <template #title>
  1714. <span
  1715. v-if="child33item1.isMust == 0"
  1716. class="van-f-red"
  1717. >*</span
  1718. >
  1719. <span>{{ 1 + index + '.' }}</span>
  1720. <span>{{ 1 + childIndex + '.' }}</span>
  1721. <span>{{ 1 + childIndex1 + '.' }}</span>
  1722. <span>{{ 1 + child33Index1 + '.' }}</span>
  1723. {{ child33item1.collectionName }}
  1724. <!-- 操作说明图片和电话 -->
  1725. <taskTips
  1726. v-if="
  1727. child33item1.contactPhone ||
  1728. child33item1.examplePhoto
  1729. "
  1730. :contactPhone="child33item1.contactPhone"
  1731. :examplePhoto="child33item1.examplePhoto">
  1732. </taskTips
  1733. ></template>
  1734. <template #right-icon>
  1735. <span
  1736. v-if="child33item1.isMustPicture == '0'"
  1737. class="van-f-red"
  1738. >*</span
  1739. >
  1740. <van-icon
  1741. v-if="child33item1.isPicture == 0"
  1742. color="#666"
  1743. name="photograph"
  1744. size="24"
  1745. @click="
  1746. imgClick(
  1747. child33item1,
  1748. 'D',
  1749. index,
  1750. childIndex,
  1751. indexc,
  1752. indexc1,
  1753. childIndex1,
  1754. indexc33,
  1755. child33Index1,
  1756. )
  1757. " />
  1758. </template>
  1759. </van-cell>
  1760. <van-field
  1761. v-model="
  1762. child33item1.collectionOptionList[0].answerValue
  1763. "
  1764. :formatter="formatter"
  1765. autosize
  1766. type="textarea"
  1767. :placeholder="
  1768. child33item1.collectionOptionList[0].collectionOption
  1769. "></van-field>
  1770. <p
  1771. style="
  1772. color: #444;
  1773. font-size: 12px;
  1774. margin: 0;
  1775. text-align: right;
  1776. position: relative;
  1777. ">
  1778. <span
  1779. style="
  1780. color: #00afff;
  1781. position: absolute;
  1782. top: 8px;
  1783. right: 0px;
  1784. "
  1785. v-if="child33item1.showHistory == 1"
  1786. @click="getCollectionShowHistory(child33item1)"
  1787. >回显历史</span
  1788. >
  1789. </p>
  1790. <deleteUploadImg
  1791. :photoIdentifyType="photoIdentifyType"
  1792. :imgs="child33item1.fileInfoList"></deleteUploadImg>
  1793. </div>
  1794. <div
  1795. v-if="child33item1.answerType == 'dhwb'"
  1796. class="formLabel z-cell">
  1797. <van-cell>
  1798. <template #title>
  1799. <span
  1800. v-if="child33item1.isMust == 0"
  1801. class="van-f-red"
  1802. >*</span
  1803. >
  1804. <span>{{ 1 + index + '.' }}</span>
  1805. <span>{{ 1 + childIndex + '.' }}</span>
  1806. <span>{{ 1 + childIndex1 + '.' }}</span>
  1807. <span>{{ 1 + child33Index1 + '.' }}</span>
  1808. {{ child33item1.collectionName }}
  1809. <!-- 操作说明图片和电话 -->
  1810. <taskTips
  1811. v-if="
  1812. child33item1.contactPhone ||
  1813. child33item1.examplePhoto
  1814. "
  1815. :contactPhone="child33item1.contactPhone"
  1816. :examplePhoto="child33item1.examplePhoto">
  1817. </taskTips
  1818. ></template>
  1819. <template #right-icon>
  1820. <span
  1821. v-if="child33item1.isMustPicture == '0'"
  1822. class="van-f-red"
  1823. >*</span
  1824. >
  1825. <van-icon
  1826. v-if="child33item1.isPicture == 0"
  1827. color="#666"
  1828. name="photograph"
  1829. size="24"
  1830. @click="
  1831. imgClick(
  1832. child33item1,
  1833. 'D',
  1834. index,
  1835. childIndex,
  1836. indexc,
  1837. indexc1,
  1838. childIndex1,
  1839. indexc33,
  1840. child33Index1,
  1841. )
  1842. " />
  1843. </template>
  1844. </van-cell>
  1845. <van-field
  1846. v-model="
  1847. child33item1.collectionOptionList[0].answerValue
  1848. "
  1849. :formatter="dhwbFormatter"
  1850. @blur="DHWBsizeComparison(child33item1)"
  1851. :placeholder="
  1852. child33item1.collectionOptionList[0].collectionOption
  1853. "
  1854. :error-message="
  1855. child33item1.collectionOptionList[0].ruleMessage
  1856. "></van-field>
  1857. <p
  1858. style="
  1859. color: #444;
  1860. font-size: 12px;
  1861. margin: 0;
  1862. text-align: right;
  1863. position: relative;
  1864. "
  1865. v-if="child33item1.showHistory == 1">
  1866. <span
  1867. style="
  1868. color: #00afff;
  1869. position: absolute;
  1870. top: 8px;
  1871. right: 0px;
  1872. "
  1873. v-if="child33item1.showHistory == 1"
  1874. @click="getCollectionShowHistory(child33item1)"
  1875. >回显历史</span
  1876. >
  1877. </p>
  1878. <deleteUploadImg
  1879. :photoIdentifyType="photoIdentifyType"
  1880. :imgs="child33item1.fileInfoList"></deleteUploadImg>
  1881. </div>
  1882. <div
  1883. v-if="child33item1.answerType == 'xm'"
  1884. class="formLabel z-cell">
  1885. <van-cell>
  1886. <template #title>
  1887. <span
  1888. v-if="child33item1.isMust == 0"
  1889. class="van-f-red"
  1890. >*</span
  1891. >
  1892. <span>{{ 1 + index + '.' }}</span>
  1893. <span>{{ 1 + childIndex + '.' }}</span>
  1894. <span>{{ 1 + childIndex1 + '.' }}</span>
  1895. <span>{{ 1 + child33Index1 + '.' }}</span>
  1896. {{ child33item1.collectionName }}
  1897. <!-- 操作说明图片和电话 -->
  1898. <taskTips
  1899. v-if="
  1900. child33item1.contactPhone ||
  1901. child33item1.examplePhoto
  1902. "
  1903. :contactPhone="child33item1.contactPhone"
  1904. :examplePhoto="child33item1.examplePhoto">
  1905. </taskTips
  1906. ></template>
  1907. <template #right-icon>
  1908. <span
  1909. v-if="child33item1.isMustPicture == '0'"
  1910. class="van-f-red"
  1911. >*</span
  1912. >
  1913. <van-icon
  1914. v-if="child33item1.isPicture == 0"
  1915. color="#666"
  1916. name="photograph"
  1917. size="24"
  1918. @click="
  1919. imgClick(
  1920. child33item1,
  1921. 'D',
  1922. index,
  1923. childIndex,
  1924. indexc,
  1925. indexc1,
  1926. childIndex1,
  1927. indexc33,
  1928. child33Index1,
  1929. )
  1930. " />
  1931. </template>
  1932. </van-cell>
  1933. <van-field
  1934. v-model="
  1935. child33item1.collectionOptionList[0].answerValue
  1936. "
  1937. :formatter="xmFormatter"
  1938. @blur="XMsizeComparison(child33item1)"
  1939. :placeholder="
  1940. child33item1.collectionOptionList[0].collectionOption
  1941. "
  1942. :error-message="
  1943. child33item1.collectionOptionList[0].ruleMessage
  1944. "></van-field>
  1945. <p
  1946. style="
  1947. color: #444;
  1948. font-size: 12px;
  1949. margin: 0;
  1950. text-align: right;
  1951. position: relative;
  1952. "
  1953. v-if="child33item1.showHistory == 1">
  1954. <span
  1955. style="
  1956. color: #00afff;
  1957. position: absolute;
  1958. top: 8px;
  1959. right: 0px;
  1960. "
  1961. v-if="child33item1.showHistory == 1"
  1962. @click="getCollectionShowHistory(child33item1)"
  1963. >回显历史</span
  1964. >
  1965. </p>
  1966. <deleteUploadImg
  1967. :photoIdentifyType="photoIdentifyType"
  1968. :imgs="child33item1.fileInfoList"></deleteUploadImg>
  1969. </div>
  1970. <div
  1971. v-if="child33item1.answerType == 'date'"
  1972. class="formLabel z-cell">
  1973. <van-cell>
  1974. <template #title>
  1975. <span
  1976. v-if="child33item1.isMust == 0"
  1977. class="van-f-red"
  1978. >*</span
  1979. >
  1980. <span>{{ 1 + index + '.' }}</span>
  1981. <span>{{ 1 + childIndex + '.' }}</span>
  1982. <span>{{ 1 + childIndex1 + '.' }}</span>
  1983. <span>{{ 1 + child33Index1 + '.' }}</span>
  1984. {{ child33item1.collectionName }}
  1985. <!-- 操作说明图片和电话 -->
  1986. <taskTips
  1987. v-if="
  1988. child33item1.contactPhone ||
  1989. child33item1.examplePhoto
  1990. "
  1991. :contactPhone="child33item1.contactPhone"
  1992. :examplePhoto="child33item1.examplePhoto">
  1993. </taskTips
  1994. ></template>
  1995. <template #right-icon>
  1996. <span
  1997. v-if="child33item1.isMustPicture == '0'"
  1998. class="van-f-red"
  1999. >*</span
  2000. >
  2001. <van-icon
  2002. v-if="child33item1.isPicture == 0"
  2003. color="#666"
  2004. name="photograph"
  2005. size="24"
  2006. @click="
  2007. imgClick(
  2008. child33item1,
  2009. 'D',
  2010. index,
  2011. childIndex,
  2012. indexc,
  2013. indexc1,
  2014. childIndex1,
  2015. indexc33,
  2016. child33Index1,
  2017. )
  2018. " />
  2019. </template>
  2020. </van-cell>
  2021. <van-field
  2022. readonly
  2023. clickable
  2024. :value="
  2025. child33item1.collectionOptionList[0].answerValue
  2026. "
  2027. :placeholder="child33item1.text"
  2028. @click="
  2029. showPickerTimeFn(
  2030. index,
  2031. 'D',
  2032. indexc,
  2033. childIndex,
  2034. indexc1,
  2035. childIndex1,
  2036. indexc33,
  2037. child33Index1,
  2038. )
  2039. " />
  2040. <p
  2041. style="
  2042. color: #444;
  2043. font-size: 12px;
  2044. margin: 0;
  2045. text-align: right;
  2046. position: relative;
  2047. ">
  2048. <van-field
  2049. class="mobile-input"
  2050. v-model="
  2051. child33item1.collectionOptionList[0]
  2052. .collectionOption
  2053. "
  2054. autosize
  2055. readonly
  2056. type="textarea" />
  2057. <span
  2058. style="
  2059. color: #00afff;
  2060. position: absolute;
  2061. top: 8px;
  2062. right: 0px;
  2063. "
  2064. v-if="child33item1.showHistory == 1"
  2065. @click="getCollectionShowHistory(child33item1)"
  2066. >回显历史</span
  2067. >
  2068. </p>
  2069. <deleteUploadImg
  2070. :photoIdentifyType="photoIdentifyType"
  2071. :imgs="child33item1.fileInfoList"></deleteUploadImg>
  2072. </div>
  2073. <div
  2074. v-if="child33item1.answerType == 'duox'"
  2075. class="formLabel z-cell">
  2076. <van-cell>
  2077. <template #title>
  2078. <span
  2079. v-if="child33item1.isMust == 0"
  2080. class="van-f-red"
  2081. >*</span
  2082. >
  2083. <span>{{ 1 + index + '.' }}</span>
  2084. <span>{{ 1 + childIndex + '.' }}</span>
  2085. <span>{{ 1 + childIndex1 + '.' }}</span>
  2086. <span>{{ 1 + child33Index1 + '.' }}</span>
  2087. {{ child33item1.collectionName }}
  2088. <!-- 操作说明图片和电话 -->
  2089. <taskTips
  2090. v-if="
  2091. child33item1.contactPhone ||
  2092. child33item1.examplePhoto
  2093. "
  2094. :contactPhone="child33item1.contactPhone"
  2095. :examplePhoto="child33item1.examplePhoto">
  2096. </taskTips
  2097. ></template>
  2098. <template #right-icon>
  2099. <span
  2100. v-if="child33item1.isMustPicture == '0'"
  2101. class="van-f-red"
  2102. >*</span
  2103. >
  2104. <van-icon
  2105. v-if="child33item1.isPicture == 0"
  2106. color="#666"
  2107. name="photograph"
  2108. size="24"
  2109. @click="
  2110. imgClick(
  2111. child33item1,
  2112. 'D',
  2113. index,
  2114. childIndex,
  2115. indexc,
  2116. indexc1,
  2117. childIndex1,
  2118. indexc33,
  2119. child33Index1,
  2120. )
  2121. " />
  2122. </template>
  2123. </van-cell>
  2124. <z-checkbox
  2125. :answerType="child33item1.answerType"
  2126. :checkboxval="child33item1.answerValue"
  2127. :collectionType="child33item1.collectionType"
  2128. :textc="child33item1.collectionCode"
  2129. :childindex="index"
  2130. :childindex1="indexc"
  2131. :childindex2="childIndex"
  2132. :childindex3="indexc1"
  2133. :childindex4="childIndex1"
  2134. :childindex5="indexc33"
  2135. :childindex6="child33Index1"
  2136. level="D"
  2137. :zCheckboxcolumns="child33item1.collectionOptionList"
  2138. @zSelectVal="zSelectVal"></z-checkbox>
  2139. <deleteUploadImg
  2140. :photoIdentifyType="photoIdentifyType"
  2141. :imgs="child33item1.fileInfoList"></deleteUploadImg>
  2142. </div>
  2143. <div
  2144. v-if="child33item1.answerType == 'nyr'"
  2145. class="formLabel z-cell">
  2146. <van-cell>
  2147. <template #title>
  2148. <span
  2149. v-if="child33item1.isMust == 0"
  2150. class="van-f-red"
  2151. >*</span
  2152. >
  2153. <span>{{ 1 + index + '.' }}</span>
  2154. <span>{{ 1 + childIndex + '.' }}</span>
  2155. <span>{{ 1 + childIndex1 + '.' }}</span>
  2156. <span>{{ 1 + child33Index1 + '.' }}</span>
  2157. {{ child33item1.collectionName }}
  2158. </template>
  2159. </van-cell>
  2160. <van-field
  2161. v-model="
  2162. child33item1.collectionOptionList[0].answerValue
  2163. "
  2164. :placeholder="child33item1.text"
  2165. readonly
  2166. @click="
  2167. getNyr(
  2168. child33item1.collectionOptionList[0],
  2169. child33item1.collectionOptionList[0].answerValue,
  2170. )
  2171. "></van-field>
  2172. <p
  2173. style="
  2174. color: red;
  2175. font-size: 14px;
  2176. margin: 0;
  2177. padding: 10px 0;
  2178. text-align: right;
  2179. "
  2180. v-if="
  2181. child33item1.collectionOptionList[0].collectionOption
  2182. ">
  2183. {{
  2184. child33item1.collectionOptionList[0].collectionOption
  2185. }}
  2186. </p>
  2187. </div>
  2188. <div
  2189. v-if="child33item1.answerType == 'sz'"
  2190. class="formLabel z-cell">
  2191. <van-cell>
  2192. <template #title>
  2193. <span
  2194. v-if="child33item1.isMust == 0"
  2195. class="van-f-red"
  2196. >*</span
  2197. >
  2198. <span>{{ 1 + index + '.' }}</span>
  2199. <span>{{ 1 + childIndex + '.' }}</span>
  2200. <span>{{ 1 + childIndex1 + '.' }}</span>
  2201. <span>{{ 1 + child33Index1 + '.' }}</span>
  2202. {{ child33item1.collectionName }}
  2203. <!-- 操作说明图片和电话 -->
  2204. <taskTips
  2205. v-if="
  2206. child33item1.contactPhone ||
  2207. child33item1.examplePhoto
  2208. "
  2209. :contactPhone="child33item1.contactPhone"
  2210. :examplePhoto="child33item1.examplePhoto">
  2211. </taskTips
  2212. ></template>
  2213. <template #right-icon>
  2214. <span
  2215. v-if="child33item1.isMustPicture == '0'"
  2216. class="van-f-red"
  2217. >*</span
  2218. >
  2219. <van-icon
  2220. v-if="child33item1.isPicture == '0'"
  2221. color="#666"
  2222. name="photograph"
  2223. size="24"
  2224. @click="
  2225. imgClick(
  2226. child33item1,
  2227. 'D',
  2228. index,
  2229. childIndex,
  2230. indexc,
  2231. indexc1,
  2232. childIndex1,
  2233. indexc33,
  2234. child33Index1,
  2235. )
  2236. " />
  2237. </template>
  2238. </van-cell>
  2239. <van-field
  2240. v-model="
  2241. child33item1.collectionOptionList[0].answerValue
  2242. "
  2243. :placeholder="
  2244. child33item1.collectionOptionList[0].collectionOption
  2245. "
  2246. @blur="SZsizeComparison(child33item1)"
  2247. :error-message="
  2248. child33item1.collectionOptionList[0].ruleMessage
  2249. "></van-field>
  2250. <deleteUploadImg
  2251. :photoIdentifyType="photoIdentifyType"
  2252. :imgs="child33item1.fileInfoList"></deleteUploadImg>
  2253. </div>
  2254. <div
  2255. v-if="child33item1.answerType == 'tel'"
  2256. class="formLabel z-cell">
  2257. <van-cell>
  2258. <template #title>
  2259. <span
  2260. v-if="child33item1.isMust == 0"
  2261. class="van-f-red"
  2262. >*</span
  2263. >
  2264. <span>{{ 1 + index + '.' }}</span>
  2265. <span>{{ 1 + childIndex + '.' }}</span>
  2266. <span>{{ 1 + childIndex1 + '.' }}</span>
  2267. <span>{{ 1 + child33Index1 + '.' }}</span>
  2268. {{ child33item1.collectionName }}
  2269. <!-- 操作说明图片和电话 -->
  2270. <taskTips
  2271. v-if="
  2272. child33item1.contactPhone ||
  2273. child33item1.examplePhoto
  2274. "
  2275. :contactPhone="child33item1.contactPhone"
  2276. :examplePhoto="child33item1.examplePhoto">
  2277. </taskTips
  2278. ></template>
  2279. <template #right-icon>
  2280. <span
  2281. v-if="child33item1.isMustPicture == '0'"
  2282. class="van-f-red"
  2283. >*</span
  2284. >
  2285. <van-icon
  2286. v-if="child33item1.isPicture == '0'"
  2287. color="#666"
  2288. name="photograph"
  2289. size="24"
  2290. @click="
  2291. imgClick(
  2292. child33item1,
  2293. 'D',
  2294. index,
  2295. childIndex,
  2296. indexc,
  2297. indexc1,
  2298. childIndex1,
  2299. indexc33,
  2300. child33Index1,
  2301. )
  2302. " />
  2303. </template>
  2304. </van-cell>
  2305. <van-field
  2306. v-model="childitem1.collectionOptionList[0].answerValue"
  2307. :placeholder="
  2308. child33item1.collectionOptionList[0].collectionOption
  2309. "
  2310. type="tel"
  2311. @input="telFn(child33item1, index)"></van-field>
  2312. <deleteUploadImg
  2313. :photoIdentifyType="photoIdentifyType"
  2314. :imgs="child33item1.fileInfoList"></deleteUploadImg>
  2315. </div>
  2316. <div
  2317. v-if="child33item1.answerType == 'zp'"
  2318. class="formLabel z-cell">
  2319. <van-cell>
  2320. <template #title>
  2321. <span
  2322. v-if="child33item1.isMust == 0"
  2323. class="van-f-red"
  2324. >*</span
  2325. >
  2326. <span>{{ 1 + index + '.' }}</span>
  2327. <span>{{ 1 + childIndex + '.' }}</span>
  2328. <span>{{ 1 + childIndex1 + '.' }}</span>
  2329. <span>{{ 1 + child33Index1 + '.' }}</span>
  2330. {{ child33item1.collectionName }}
  2331. <!-- 操作说明图片和电话 -->
  2332. <taskTips
  2333. v-if="
  2334. child33item1.contactPhone ||
  2335. child33item1.examplePhoto
  2336. "
  2337. :contactPhone="child33item1.contactPhone"
  2338. :examplePhoto="child33item1.examplePhoto">
  2339. </taskTips
  2340. ></template>
  2341. <template #right-icon>
  2342. <template v-if="processKey">
  2343. <span
  2344. v-if="child33item1.isMustPicture == '0'"
  2345. class="van-f-red"
  2346. >*</span
  2347. >
  2348. <van-icon
  2349. v-if="child33item1.isPicture == 0"
  2350. color="#666"
  2351. name="photograph"
  2352. size="24"
  2353. @click="
  2354. imgClick(
  2355. child33item1,
  2356. 'D',
  2357. index,
  2358. childIndex,
  2359. indexc,
  2360. indexc1,
  2361. childIndex1,
  2362. indexc33,
  2363. child33Index1,
  2364. )
  2365. " />
  2366. </template>
  2367. </template>
  2368. </van-cell>
  2369. <!-- 生动化陈列备注 只能有一层采集项 -->
  2370. <div
  2371. class="sdhclTips"
  2372. v-if="child33item1.collectionName == '生动化陈列'"
  2373. style="color: red; font-size: 14px">
  2374. 请补充拍摄除陈列奖励案产品外,本店经营的其他立邦产品,以便准确识别SKU数量
  2375. </div>
  2376. <deleteUploadImg
  2377. :photoIdentifyType="photoIdentifyType"
  2378. :types="$route.query.types"
  2379. :imgs="child33item1.fileInfoList"></deleteUploadImg>
  2380. </div>
  2381. <div
  2382. v-if="child33item1.answerType == 'sm'"
  2383. class="formLabel z-cell">
  2384. <van-cell>
  2385. <template #title>
  2386. <p style="margin: 0">
  2387. <span
  2388. v-if="child33item1.isMust == 0"
  2389. class="van-f-red"
  2390. >*</span
  2391. >
  2392. <span>{{ 1 + index + '.' }}</span>
  2393. <span>{{ 1 + childIndex + '.' }}</span>
  2394. <span>{{ 1 + childIndex1 + '.' }}</span>
  2395. <span>{{ 1 + child33Index1 + '.' }}</span>
  2396. {{ child33item1.collectionName }}
  2397. <!-- 操作说明图片和电话 -->
  2398. <taskTips
  2399. v-if="
  2400. child33item1.contactPhone ||
  2401. child33item1.examplePhoto
  2402. "
  2403. :contactPhone="child33item1.contactPhone"
  2404. :examplePhoto="child33item1.examplePhoto">
  2405. </taskTips>
  2406. </p>
  2407. <p @click="viewSM" style="font-size: 14px; margin: 0">
  2408. 如何寻找调色机资产编码&nbsp;<van-icon
  2409. name="question-o" />
  2410. </p>
  2411. </template>
  2412. <template #right-icon>
  2413. <storeCode
  2414. :insert="insert"
  2415. :code="equipmentCode"
  2416. type="D"
  2417. :index="index"
  2418. :index1="indexc"
  2419. :index2="childIndex"
  2420. :index3="indexc1"
  2421. :index4="childIndex1"
  2422. :index5="indexc33"
  2423. :index6="child33Index1"
  2424. @newcode="newcode"></storeCode>
  2425. </template>
  2426. </van-cell>
  2427. <div
  2428. style="font-size: 14px"
  2429. v-if="child33item1.collectionOptionList[0].answerValue">
  2430. <div v-if="child33item1.success" style="color: green">
  2431. <p v-if="equipmentCode">
  2432. 系统资产编码:{{ equipmentCode }}
  2433. </p>
  2434. <p v-if="child33item1.equipmentCode2">
  2435. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{
  2436. child33item1.equipmentCode2
  2437. }}
  2438. </p>
  2439. <span style="float: right; margin-top: -48px"
  2440. ><van-icon
  2441. name="passed"
  2442. size="16" />&nbsp;一致</span
  2443. >
  2444. </div>
  2445. <div v-if="!child33item1.success" style="color: red">
  2446. <p v-if="equipmentCode">
  2447. 系统资产编码:{{ equipmentCode }}
  2448. </p>
  2449. <p v-if="child33item1.equipmentCode2">
  2450. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{
  2451. child33item1.equipmentCode2
  2452. }}
  2453. </p>
  2454. <span style="float: right; margin-top: -48px"
  2455. ><van-icon
  2456. name="close"
  2457. size="16" />&nbsp;不一致</span
  2458. >
  2459. </div>
  2460. </div>
  2461. <deleteUploadImg
  2462. :photoIdentifyType="photoIdentifyType"
  2463. :imgs="child33item1.fileInfoList"></deleteUploadImg>
  2464. </div>
  2465. <div
  2466. v-if="child33item1.answerType == 'dx'"
  2467. class="formLabel z-cell">
  2468. <div>
  2469. <van-cell>
  2470. <template #title>
  2471. <span
  2472. v-if="child33item1.isMust == 0"
  2473. class="van-f-red"
  2474. >*</span
  2475. >
  2476. <span>{{ 1 + index + '.' }}</span>
  2477. <span>{{ 1 + childIndex + '.' }}</span>
  2478. <span>{{ 1 + childIndex1 + '.' }}</span>
  2479. <span>{{ 1 + child33Index1 + '.' }}</span>
  2480. {{ child33item1.collectionName }}
  2481. <!-- 操作说明图片和电话 -->
  2482. <taskTips
  2483. v-if="
  2484. child33item1.contactPhone ||
  2485. child33item1.examplePhoto
  2486. "
  2487. :contactPhone="child33item1.contactPhone"
  2488. :examplePhoto="child33item1.examplePhoto">
  2489. </taskTips
  2490. ></template>
  2491. <template #right-icon>
  2492. <span
  2493. v-if="child33item1.isMustPicture == '0'"
  2494. class="van-f-red"
  2495. >*</span
  2496. >
  2497. <van-icon
  2498. v-if="child33item1.isPicture == 0"
  2499. color="#666"
  2500. name="photograph"
  2501. size="24"
  2502. @click="
  2503. imgClick(
  2504. child33item1,
  2505. 'D',
  2506. index,
  2507. childIndex,
  2508. indexc,
  2509. indexc1,
  2510. childIndex1,
  2511. indexc33,
  2512. child33Index1,
  2513. )
  2514. " />
  2515. </template>
  2516. </van-cell>
  2517. <z-radio
  2518. :answerType="child33item1.answerType"
  2519. :collectionType="child33item1.collectionType"
  2520. :radio="child33item1.answerValue"
  2521. v-model="child33item1.answerValue"
  2522. :textc="child33item1.collectionCode"
  2523. :childindex="index"
  2524. :childindex1="indexc"
  2525. :childindex2="childIndex"
  2526. :childindex3="indexc1"
  2527. :childindex5="childIndex1"
  2528. :childindex6="indexc33"
  2529. :childindex7="child33Index1"
  2530. childIndex4="E"
  2531. :zRadiocolumns="child33item1.collectionOptionList"
  2532. @zSelectVal="zSelectVal"
  2533. :relevancyItem="child33item1.relevancyItem"></z-radio>
  2534. <deleteUploadImg
  2535. :photoIdentifyType="photoIdentifyType"
  2536. :imgs="child33item1.fileInfoList"></deleteUploadImg>
  2537. <div
  2538. v-for="(
  2539. child44, indexc44
  2540. ) in child33item1.collectionOptionList"
  2541. :key="indexc44">
  2542. <div v-if="child44.isCheck == 1">
  2543. <div
  2544. v-for="(
  2545. child44item1, child44Index1
  2546. ) in child44.collectionItems"
  2547. :key="child44Index1">
  2548. <div
  2549. v-if="child44item1.answerType == 'wb'"
  2550. class="formLabel z-cell">
  2551. <van-cell>
  2552. <template #title
  2553. ><span
  2554. v-if="child44item1.isMust == 0"
  2555. class="van-f-red"
  2556. >*</span
  2557. >
  2558. <span>{{ 1 + index + '.' }}</span>
  2559. <span>{{ 1 + childIndex + '.' }}</span>
  2560. <span>{{ 1 + childIndex1 + '.' }}</span>
  2561. <span>{{ 1 + child33Index1 + '.' }}</span>
  2562. <span>{{ 1 + child44Index1 + '.' }}</span>
  2563. {{ child44item1.collectionName }}
  2564. <!-- 操作说明图片和电话 -->
  2565. <taskTips
  2566. v-if="
  2567. child44item1.contactPhone ||
  2568. child44item1.examplePhoto
  2569. "
  2570. :contactPhone="child44item1.contactPhone"
  2571. :examplePhoto="child44item1.examplePhoto">
  2572. </taskTips
  2573. ></template>
  2574. <template #right-icon>
  2575. <span
  2576. v-if="child44item1.isMustPicture == '0'"
  2577. class="van-f-red"
  2578. >*</span
  2579. >
  2580. <van-icon
  2581. v-if="child44item1.isPicture == 0"
  2582. color="#666"
  2583. name="photograph"
  2584. size="24"
  2585. @click="
  2586. imgClick(
  2587. child44item1,
  2588. 'E',
  2589. index,
  2590. childIndex,
  2591. indexc,
  2592. indexc1,
  2593. childIndex1,
  2594. indexc33,
  2595. child33Index1,
  2596. indexc44,
  2597. child44Index1,
  2598. )
  2599. " />
  2600. </template>
  2601. </van-cell>
  2602. <van-field
  2603. v-model="
  2604. child44item1.collectionOptionList[0]
  2605. .answerValue
  2606. "
  2607. :formatter="formatter"
  2608. autosize
  2609. type="textarea"
  2610. :placeholder="
  2611. child44item1.collectionOptionList[0]
  2612. .collectionOption
  2613. "></van-field>
  2614. <p
  2615. style="
  2616. color: #444;
  2617. font-size: 12px;
  2618. margin: 0;
  2619. text-align: right;
  2620. position: relative;
  2621. ">
  2622. <span
  2623. style="
  2624. color: #00afff;
  2625. position: absolute;
  2626. top: 8px;
  2627. right: 0px;
  2628. "
  2629. v-if="child44item1.showHistory == 1"
  2630. @click="
  2631. getCollectionShowHistory(child44item1)
  2632. "
  2633. >回显历史</span
  2634. >
  2635. </p>
  2636. <deleteUploadImg
  2637. :photoIdentifyType="photoIdentifyType"
  2638. :imgs="
  2639. child44item1.fileInfoList
  2640. "></deleteUploadImg>
  2641. </div>
  2642. <div
  2643. v-if="child44item1.answerType == 'dhwb'"
  2644. class="formLabel z-cell">
  2645. <van-cell>
  2646. <template #title
  2647. ><span
  2648. v-if="child44item1.isMust == 0"
  2649. class="van-f-red"
  2650. >*</span
  2651. >
  2652. <span>{{ 1 + index + '.' }}</span>
  2653. <span>{{ 1 + childIndex + '.' }}</span>
  2654. <span>{{ 1 + childIndex1 + '.' }}</span>
  2655. <span>{{ 1 + child33Index1 + '.' }}</span>
  2656. <span>{{ 1 + child44Index1 + '.' }}</span>
  2657. {{ child44item1.collectionName }}
  2658. <!-- 操作说明图片和电话 -->
  2659. <taskTips
  2660. v-if="
  2661. child44item1.contactPhone ||
  2662. child44item1.examplePhoto
  2663. "
  2664. :contactPhone="child44item1.contactPhone"
  2665. :examplePhoto="child44item1.examplePhoto">
  2666. </taskTips
  2667. ></template>
  2668. <template #right-icon>
  2669. <span
  2670. v-if="child44item1.isMustPicture == '0'"
  2671. class="van-f-red"
  2672. >*</span
  2673. >
  2674. <van-icon
  2675. v-if="child44item1.isPicture == 0"
  2676. color="#666"
  2677. name="photograph"
  2678. size="24"
  2679. @click="
  2680. imgClick(
  2681. child44item1,
  2682. 'E',
  2683. index,
  2684. childIndex,
  2685. indexc,
  2686. indexc1,
  2687. childIndex1,
  2688. indexc33,
  2689. child33Index1,
  2690. indexc44,
  2691. child44Index1,
  2692. )
  2693. " />
  2694. </template>
  2695. </van-cell>
  2696. <van-field
  2697. v-model="
  2698. child44item1.collectionOptionList[0]
  2699. .answerValue
  2700. "
  2701. :formatter="dhwbFormatter"
  2702. @blur="DHWBsizeComparison(child44item1)"
  2703. :placeholder="
  2704. child44item1.collectionOptionList[0]
  2705. .collectionOption
  2706. "
  2707. :error-message="
  2708. child44item1.collectionOptionList[0]
  2709. .ruleMessage
  2710. "></van-field>
  2711. <p
  2712. style="
  2713. color: #444;
  2714. font-size: 12px;
  2715. margin: 0;
  2716. text-align: right;
  2717. position: relative;
  2718. "
  2719. v-if="child44item1.showHistory == 1">
  2720. <span
  2721. style="
  2722. color: #00afff;
  2723. position: absolute;
  2724. top: 8px;
  2725. right: 0px;
  2726. "
  2727. @click="
  2728. getCollectionShowHistory(child44item1)
  2729. "
  2730. >回显历史</span
  2731. >
  2732. </p>
  2733. <deleteUploadImg
  2734. :photoIdentifyType="photoIdentifyType"
  2735. :imgs="
  2736. child44item1.fileInfoList
  2737. "></deleteUploadImg>
  2738. </div>
  2739. <div
  2740. v-if="child44item1.answerType == 'xm'"
  2741. class="formLabel z-cell">
  2742. <van-cell>
  2743. <template #title
  2744. ><span
  2745. v-if="child44item1.isMust == 0"
  2746. class="van-f-red"
  2747. >*</span
  2748. >
  2749. <span>{{ 1 + index + '.' }}</span>
  2750. <span>{{ 1 + childIndex + '.' }}</span>
  2751. <span>{{ 1 + childIndex1 + '.' }}</span>
  2752. <span>{{ 1 + child33Index1 + '.' }}</span>
  2753. <span>{{ 1 + child44Index1 + '.' }}</span>
  2754. {{ child44item1.collectionName }}
  2755. <!-- 操作说明图片和电话 -->
  2756. <taskTips
  2757. v-if="
  2758. child44item1.contactPhone ||
  2759. child44item1.examplePhoto
  2760. "
  2761. :contactPhone="child44item1.contactPhone"
  2762. :examplePhoto="child44item1.examplePhoto">
  2763. </taskTips
  2764. ></template>
  2765. <template #right-icon>
  2766. <span
  2767. v-if="child44item1.isMustPicture == '0'"
  2768. class="van-f-red"
  2769. >*</span
  2770. >
  2771. <van-icon
  2772. v-if="child44item1.isPicture == 0"
  2773. color="#666"
  2774. name="photograph"
  2775. size="24"
  2776. @click="
  2777. imgClick(
  2778. child44item1,
  2779. 'E',
  2780. index,
  2781. childIndex,
  2782. indexc,
  2783. indexc1,
  2784. childIndex1,
  2785. indexc33,
  2786. child33Index1,
  2787. indexc44,
  2788. child44Index1,
  2789. )
  2790. " />
  2791. </template>
  2792. </van-cell>
  2793. <van-field
  2794. v-model="
  2795. child44item1.collectionOptionList[0]
  2796. .answerValue
  2797. "
  2798. :formatter="xmFormatter"
  2799. @blur="XMsizeComparison(child44item1)"
  2800. :placeholder="
  2801. child44item1.collectionOptionList[0]
  2802. .collectionOption
  2803. "
  2804. :error-message="
  2805. child44item1.collectionOptionList[0]
  2806. .ruleMessage
  2807. "></van-field>
  2808. <p
  2809. style="
  2810. color: #444;
  2811. font-size: 12px;
  2812. margin: 0;
  2813. text-align: right;
  2814. position: relative;
  2815. "
  2816. v-if="child44item1.showHistory == 1">
  2817. <span
  2818. style="
  2819. color: #00afff;
  2820. position: absolute;
  2821. top: 8px;
  2822. right: 0px;
  2823. "
  2824. @click="
  2825. getCollectionShowHistory(child44item1)
  2826. "
  2827. >回显历史</span
  2828. >
  2829. </p>
  2830. <deleteUploadImg
  2831. :photoIdentifyType="photoIdentifyType"
  2832. :imgs="
  2833. child44item1.fileInfoList
  2834. "></deleteUploadImg>
  2835. </div>
  2836. <div
  2837. v-if="child44item1.answerType == 'date'"
  2838. class="formLabel z-cell">
  2839. <van-cell>
  2840. <template #title
  2841. ><span
  2842. v-if="child44item1.isMust == 0"
  2843. class="van-f-red"
  2844. >*</span
  2845. >
  2846. <span>{{ 1 + index + '.' }}</span>
  2847. <span>{{ 1 + childIndex + '.' }}</span>
  2848. <span>{{ 1 + childIndex1 + '.' }}</span>
  2849. <span>{{ 1 + child33Index1 + '.' }}</span>
  2850. <span>{{ 1 + child44Index1 + '.' }}</span>
  2851. {{ child44item1.collectionName }}
  2852. <!-- 操作说明图片和电话 -->
  2853. <taskTips
  2854. v-if="
  2855. child44item1.contactPhone ||
  2856. child44item1.examplePhoto
  2857. "
  2858. :contactPhone="child44item1.contactPhone"
  2859. :examplePhoto="child44item1.examplePhoto">
  2860. </taskTips>
  2861. </template>
  2862. <template #right-icon>
  2863. <span
  2864. v-if="child44item1.isMustPicture == '0'"
  2865. class="van-f-red"
  2866. >*</span
  2867. >
  2868. <van-icon
  2869. v-if="child44item1.isPicture == 0"
  2870. color="#666"
  2871. name="photograph"
  2872. size="24"
  2873. @click="
  2874. imgClick(
  2875. child44item1,
  2876. 'E',
  2877. index,
  2878. childIndex,
  2879. indexc,
  2880. indexc1,
  2881. childIndex1,
  2882. indexc33,
  2883. child33Index1,
  2884. indexc44,
  2885. child44Index1,
  2886. )
  2887. " />
  2888. </template>
  2889. </van-cell>
  2890. <van-field
  2891. readonly
  2892. clickable
  2893. :value="
  2894. child44item1.collectionOptionList[0]
  2895. .answerValue
  2896. "
  2897. :placeholder="child44item1.text"
  2898. @click="
  2899. showPickerTimeFn(
  2900. index,
  2901. 'E',
  2902. indexc,
  2903. childIndex,
  2904. indexc1,
  2905. childIndex1,
  2906. indexc33,
  2907. child33Index1,
  2908. indexc44,
  2909. child44Index1,
  2910. )
  2911. " />
  2912. <p
  2913. style="
  2914. color: #444;
  2915. font-size: 12px;
  2916. margin: 0;
  2917. text-align: right;
  2918. position: relative;
  2919. ">
  2920. <van-field
  2921. class="mobile-input"
  2922. v-model="
  2923. child44item1.collectionOptionList[0]
  2924. .collectionOption
  2925. "
  2926. autosize
  2927. readonly
  2928. type="textarea" />
  2929. <span
  2930. style="
  2931. color: #00afff;
  2932. position: absolute;
  2933. top: 8px;
  2934. right: 0px;
  2935. "
  2936. v-if="child44item1.showHistory == 1"
  2937. @click="
  2938. getCollectionShowHistory(child44item1)
  2939. "
  2940. >回显历史</span
  2941. >
  2942. </p>
  2943. <deleteUploadImg
  2944. :photoIdentifyType="photoIdentifyType"
  2945. :imgs="
  2946. child44item1.fileInfoList
  2947. "></deleteUploadImg>
  2948. </div>
  2949. <div
  2950. v-if="child44item1.answerType == 'duox'"
  2951. class="formLabel z-cell">
  2952. <van-cell>
  2953. <template #title
  2954. ><span
  2955. v-if="child44item1.isMust == 0"
  2956. class="van-f-red"
  2957. >*</span
  2958. >
  2959. <span>{{ 1 + index + '.' }}</span>
  2960. <span>{{ 1 + childIndex + '.' }}</span>
  2961. <span>{{ 1 + childIndex1 + '.' }}</span>
  2962. <span>{{ 1 + child33Index1 + '.' }}</span>
  2963. <span>{{ 1 + child44Index1 + '.' }}</span>
  2964. {{ child44item1.collectionName }}
  2965. <!-- 操作说明图片和电话 -->
  2966. <taskTips
  2967. v-if="
  2968. child44item1.contactPhone ||
  2969. child44item1.examplePhoto
  2970. "
  2971. :contactPhone="child44item1.contactPhone"
  2972. :examplePhoto="child44item1.examplePhoto">
  2973. </taskTips>
  2974. </template>
  2975. <template #right-icon>
  2976. <span
  2977. v-if="child44item1.isMustPicture == '0'"
  2978. class="van-f-red"
  2979. >*</span
  2980. >
  2981. <van-icon
  2982. v-if="child44item1.isPicture == 0"
  2983. color="#666"
  2984. name="photograph"
  2985. size="24"
  2986. @click="
  2987. imgClick(
  2988. child44item1,
  2989. 'E',
  2990. index,
  2991. childIndex,
  2992. indexc,
  2993. indexc1,
  2994. childIndex1,
  2995. indexc33,
  2996. child33Index1,
  2997. indexc44,
  2998. child44Index1,
  2999. )
  3000. " />
  3001. </template>
  3002. </van-cell>
  3003. <z-checkbox
  3004. :answerType="child44item1.answerType"
  3005. :checkboxval="child44item1.answerValue"
  3006. :collectionType="child44item1.collectionType"
  3007. :textc="child44item1.collectionCode"
  3008. :childindex="index"
  3009. :childindex1="indexc"
  3010. :childindex2="childIndex"
  3011. :childindex3="indexc1"
  3012. :childindex4="childIndex1"
  3013. :childindex5="indexc33"
  3014. :childindex6="child33Index1"
  3015. :childindex7="indexc44"
  3016. :childindex8="child44Index1"
  3017. level="E"
  3018. :zCheckboxcolumns="
  3019. child44item1.collectionOptionList
  3020. "
  3021. @zSelectVal="zSelectVal"></z-checkbox>
  3022. <deleteUploadImg
  3023. :photoIdentifyType="photoIdentifyType"
  3024. :imgs="
  3025. child44item1.fileInfoList
  3026. "></deleteUploadImg>
  3027. </div>
  3028. <div
  3029. v-if="child44item1.answerType == 'nyr'"
  3030. class="formLabel z-cell">
  3031. <van-cell>
  3032. <template #title>
  3033. <span
  3034. v-if="child44item1.isMust == 0"
  3035. class="van-f-red"
  3036. >*</span
  3037. >
  3038. <span>{{ 1 + index + '.' }}</span>
  3039. <span>{{ 1 + childIndex + '.' }}</span>
  3040. <span>{{ 1 + childIndex1 + '.' }}</span>
  3041. <span>{{ 1 + child33Index1 + '.' }}</span>
  3042. <span>{{ 1 + child44Index1 + '.' }}</span>
  3043. {{ child44item1.collectionName }}
  3044. </template>
  3045. </van-cell>
  3046. <van-field
  3047. v-model="
  3048. child44item1.collectionOptionList[0]
  3049. .answerValue
  3050. "
  3051. :placeholder="child44item1.text"
  3052. readonly
  3053. @click="
  3054. getNyr(
  3055. child44item1.collectionOptionList[0],
  3056. child44item1.collectionOptionList[0]
  3057. .answerValue,
  3058. )
  3059. "></van-field>
  3060. <p
  3061. style="
  3062. color: red;
  3063. font-size: 14px;
  3064. margin: 0;
  3065. padding: 10px 0;
  3066. text-align: right;
  3067. "
  3068. v-if="
  3069. child44item1.collectionOptionList[0]
  3070. .collectionOption
  3071. ">
  3072. {{
  3073. child44item1.collectionOptionList[0]
  3074. .collectionOption
  3075. }}
  3076. </p>
  3077. </div>
  3078. <div
  3079. v-if="child44item1.answerType == 'sz'"
  3080. class="formLabel z-cell">
  3081. <van-cell>
  3082. <template #title
  3083. ><span
  3084. v-if="child44item1.isMust == 0"
  3085. class="van-f-red"
  3086. >*</span
  3087. >
  3088. <span>{{ 1 + index + '.' }}</span>
  3089. <span>{{ 1 + childIndex + '.' }}</span>
  3090. <span>{{ 1 + childIndex1 + '.' }}</span>
  3091. <span>{{ 1 + child33Index1 + '.' }}</span>
  3092. <span>{{ 1 + child44Index1 + '.' }}</span>
  3093. {{ child44item1.collectionName }}
  3094. <!-- 操作说明图片和电话 -->
  3095. <taskTips
  3096. v-if="
  3097. child44item1.contactPhone ||
  3098. child44item1.examplePhoto
  3099. "
  3100. :contactPhone="child44item1.contactPhone"
  3101. :examplePhoto="child44item1.examplePhoto">
  3102. </taskTips>
  3103. </template>
  3104. <template #right-icon>
  3105. <span
  3106. v-if="child44item1.isMustPicture == '0'"
  3107. class="van-f-red"
  3108. >*</span
  3109. >
  3110. <van-icon
  3111. v-if="child44item1.isPicture == '0'"
  3112. color="#666"
  3113. name="photograph"
  3114. size="24"
  3115. @click="
  3116. imgClick(
  3117. child44item1,
  3118. 'E',
  3119. index,
  3120. childIndex,
  3121. indexc,
  3122. indexc1,
  3123. childIndex1,
  3124. indexc33,
  3125. child33Index1,
  3126. indexc44,
  3127. child44Index1,
  3128. )
  3129. " />
  3130. </template>
  3131. </van-cell>
  3132. <van-field
  3133. v-model="
  3134. child44item1.collectionOptionList[0]
  3135. .answerValue
  3136. "
  3137. :placeholder="
  3138. child44item1.collectionOptionList[0]
  3139. .collectionOption
  3140. "
  3141. @blur="SZsizeComparison(child44item1)"
  3142. :error-message="
  3143. child44item1.collectionOptionList[0]
  3144. .ruleMessage
  3145. "></van-field>
  3146. <deleteUploadImg
  3147. :photoIdentifyType="photoIdentifyType"
  3148. :imgs="
  3149. child44item1.fileInfoList
  3150. "></deleteUploadImg>
  3151. </div>
  3152. <div
  3153. v-if="child44item1.answerType == 'tel'"
  3154. class="formLabel z-cell">
  3155. <van-cell>
  3156. <template #title
  3157. ><span
  3158. v-if="child44item1.isMust == 0"
  3159. class="van-f-red"
  3160. >*</span
  3161. >
  3162. <span>{{ 1 + index + '.' }}</span>
  3163. <span>{{ 1 + childIndex + '.' }}</span>
  3164. <span>{{ 1 + childIndex1 + '.' }}</span>
  3165. <span>{{ 1 + child33Index1 + '.' }}</span>
  3166. <span>{{ 1 + child44Index1 + '.' }}</span>
  3167. {{ child44item1.collectionName }}
  3168. <!-- 操作说明图片和电话 -->
  3169. <taskTips
  3170. v-if="
  3171. child44item1.contactPhone ||
  3172. child44item1.examplePhoto
  3173. "
  3174. :contactPhone="child44item1.contactPhone"
  3175. :examplePhoto="child44item1.examplePhoto">
  3176. </taskTips>
  3177. </template>
  3178. <template #right-icon>
  3179. <span
  3180. v-if="child44item1.isMustPicture == '0'"
  3181. class="van-f-red"
  3182. >*</span
  3183. >
  3184. <van-icon
  3185. v-if="child44item1.isPicture == '0'"
  3186. color="#666"
  3187. name="photograph"
  3188. size="24"
  3189. @click="
  3190. imgClick(
  3191. child44item1,
  3192. 'E',
  3193. index,
  3194. childIndex,
  3195. indexc,
  3196. indexc1,
  3197. childIndex1,
  3198. indexc33,
  3199. child33Index1,
  3200. indexc44,
  3201. child44Index1,
  3202. )
  3203. " />
  3204. </template>
  3205. </van-cell>
  3206. <van-field
  3207. v-model="
  3208. child44item1.collectionOptionList[0]
  3209. .answerValue
  3210. "
  3211. :placeholder="
  3212. child44item1.collectionOptionList[0]
  3213. .collectionOption
  3214. "
  3215. type="tel"
  3216. @input="
  3217. telFn(child44item1, child44Index1)
  3218. "></van-field>
  3219. <deleteUploadImg
  3220. :photoIdentifyType="photoIdentifyType"
  3221. :imgs="
  3222. child44item1.fileInfoList
  3223. "></deleteUploadImg>
  3224. </div>
  3225. <div
  3226. v-if="child44item1.answerType == 'zp'"
  3227. class="formLabel z-cell">
  3228. <van-cell>
  3229. <template #title
  3230. ><span
  3231. v-if="child44item1.isMust == 0"
  3232. class="van-f-red"
  3233. >*</span
  3234. >
  3235. <span>{{ 1 + index + '.' }}</span>
  3236. <span>{{ 1 + childIndex + '.' }}</span>
  3237. <span>{{ 1 + childIndex1 + '.' }}</span>
  3238. <span>{{ 1 + child33Index1 + '.' }}</span>
  3239. <span>{{ 1 + child44Index1 + '.' }}</span>
  3240. {{ child44item1.collectionName }}
  3241. <!-- 操作说明图片和电话 -->
  3242. <taskTips
  3243. v-if="
  3244. item.contactPhone || item.examplePhoto
  3245. "
  3246. :contactPhone="item.contactPhone"
  3247. :examplePhoto="item.examplePhoto">
  3248. </taskTips>
  3249. </template>
  3250. <template #right-icon>
  3251. <template v-if="processKey">
  3252. <span
  3253. v-if="child44item1.isMustPicture == '0'"
  3254. class="van-f-red"
  3255. >*</span
  3256. >
  3257. <van-icon
  3258. v-if="child44item1.isPicture == 0"
  3259. color="#666"
  3260. name="photograph"
  3261. size="24"
  3262. @click="
  3263. imgClick(
  3264. child44item1,
  3265. 'E',
  3266. index,
  3267. childIndex,
  3268. indexc,
  3269. indexc1,
  3270. childIndex1,
  3271. indexc33,
  3272. child33Index1,
  3273. indexc44,
  3274. child44Index1,
  3275. )
  3276. " />
  3277. </template>
  3278. </template>
  3279. </van-cell>
  3280. <!-- 生动化陈列备注 只能有一层采集项 -->
  3281. <div
  3282. class="sdhclTips"
  3283. v-if="
  3284. child44item1.collectionName == '生动化陈列'
  3285. "
  3286. style="color: red; font-size: 14px">
  3287. 请补充拍摄除陈列奖励案产品外,本店经营的其他立邦产品,以便准确识别SKU数量
  3288. </div>
  3289. <deleteUploadImg
  3290. :types="$route.query.types"
  3291. :photoIdentifyType="photoIdentifyType"
  3292. :imgs="
  3293. child44item1.fileInfoList
  3294. "></deleteUploadImg>
  3295. </div>
  3296. <div
  3297. v-if="child44item1.answerType == 'sm'"
  3298. class="formLabel z-cell">
  3299. <van-cell>
  3300. <template #title>
  3301. <p style="margin: 0">
  3302. <span
  3303. v-if="child44item1.isMust == 0"
  3304. class="van-f-red"
  3305. >*</span
  3306. >
  3307. <span>{{ 1 + index + '.' }}</span>
  3308. <span>{{ 1 + childIndex + '.' }}</span>
  3309. <span>{{ 1 + childIndex1 + '.' }}</span>
  3310. <span>{{ 1 + child33Index1 + '.' }}</span>
  3311. <span>{{ 1 + child44Index1 + '.' }}</span>
  3312. {{ child44item1.collectionName }}
  3313. <!-- 操作说明图片和电话 -->
  3314. <taskTips
  3315. v-if="
  3316. child44item1.contactPhone ||
  3317. child44item1.examplePhoto
  3318. "
  3319. :contactPhone="
  3320. child44item1.contactPhone
  3321. "
  3322. :examplePhoto="
  3323. child44item1.examplePhoto
  3324. ">
  3325. </taskTips>
  3326. </p>
  3327. <p
  3328. @click="viewSM"
  3329. style="font-size: 14px; margin: 0">
  3330. 如何寻找调色机资产编码&nbsp;<van-icon
  3331. name="question-o" />
  3332. </p>
  3333. </template>
  3334. <template #right-icon>
  3335. <storeCode
  3336. :insert="insert"
  3337. :code="equipmentCode"
  3338. type="E"
  3339. :index="index"
  3340. :index1="indexc"
  3341. :index2="childIndex"
  3342. :index3="indexc1"
  3343. :index4="childIndex1"
  3344. :index5="indexc33"
  3345. :index6="child33Index1"
  3346. :index7="indexc44"
  3347. :index8="child44Index1"
  3348. @newcode="newcode"></storeCode>
  3349. </template>
  3350. </van-cell>
  3351. <div
  3352. style="font-size: 14px"
  3353. v-if="
  3354. child44item1.collectionOptionList[0]
  3355. .answerValue
  3356. ">
  3357. <div
  3358. v-if="child44item1.success"
  3359. style="color: green">
  3360. <p v-if="equipmentCode">
  3361. 系统资产编码:{{ equipmentCode }}
  3362. </p>
  3363. <p v-if="child44item1.equipmentCode2">
  3364. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{
  3365. child44item1.equipmentCode2
  3366. }}
  3367. </p>
  3368. <span
  3369. style="float: right; margin-top: -48px"
  3370. ><van-icon
  3371. name="passed"
  3372. size="16" />&nbsp;一致</span
  3373. >
  3374. </div>
  3375. <div
  3376. v-if="!child44item1.success"
  3377. style="color: red">
  3378. <p v-if="equipmentCode">
  3379. 系统资产编码:{{ equipmentCode }}
  3380. </p>
  3381. <p v-if="child44item1.equipmentCode2">
  3382. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{
  3383. child44item1.equipmentCode2
  3384. }}
  3385. </p>
  3386. <span
  3387. style="float: right; margin-top: -48px"
  3388. ><van-icon
  3389. name="close"
  3390. size="16" />&nbsp;不一致</span
  3391. >
  3392. </div>
  3393. </div>
  3394. <deleteUploadImg
  3395. :photoIdentifyType="photoIdentifyType"
  3396. :imgs="
  3397. child44item1.fileInfoList
  3398. "></deleteUploadImg>
  3399. </div>
  3400. <div
  3401. v-if="child44item1.answerType == 'dx'"
  3402. class="formLabel z-cell">
  3403. <div>
  3404. <van-cell>
  3405. <template #title
  3406. ><span
  3407. v-if="child44item1.isMust == 0"
  3408. class="van-f-red"
  3409. >*</span
  3410. >
  3411. <span>{{ 1 + index + '.' }}</span>
  3412. <span>{{ 1 + childIndex + '.' }}</span>
  3413. <span>{{ 1 + childIndex1 + '.' }}</span>
  3414. <span>{{ 1 + child33Index1 + '.' }}</span>
  3415. <span>{{ 1 + child44Index1 + '.' }}</span>
  3416. {{ child44item1.collectionName }}
  3417. <!-- 操作说明图片和电话 -->
  3418. <taskTips
  3419. v-if="
  3420. child44item1.contactPhone ||
  3421. child44item1.examplePhoto
  3422. "
  3423. :contactPhone="
  3424. child44item1.contactPhone
  3425. "
  3426. :examplePhoto="
  3427. child44item1.examplePhoto
  3428. ">
  3429. </taskTips
  3430. ></template>
  3431. <template #right-icon>
  3432. <span
  3433. v-if="child44item1.isMustPicture == '0'"
  3434. class="van-f-red"
  3435. >*</span
  3436. >
  3437. <van-icon
  3438. v-if="child44item1.isPicture == 0"
  3439. color="#666"
  3440. name="photograph"
  3441. size="24"
  3442. @click="
  3443. imgClick(
  3444. child44item1,
  3445. 'F',
  3446. index,
  3447. childIndex,
  3448. indexc,
  3449. indexc1,
  3450. childIndex1,
  3451. indexc33,
  3452. child33Index1,
  3453. indexc44,
  3454. child44Index1,
  3455. )
  3456. " />
  3457. </template>
  3458. </van-cell>
  3459. <z-radio
  3460. :answerType="child44item1.answerType"
  3461. :collectionType="
  3462. child44item1.collectionType
  3463. "
  3464. :radio="child44item1.answerValue"
  3465. v-model="child44item1.answerValue"
  3466. :textc="child44item1.collectionCode"
  3467. :childindex="index"
  3468. :childindex1="indexc"
  3469. :childindex2="childIndex"
  3470. :childindex3="indexc1"
  3471. :childindex5="childIndex1"
  3472. :childindex6="indexc33"
  3473. :childindex7="child33Index1"
  3474. :childindex8="indexc44"
  3475. :childindex9="child44Index1"
  3476. childIndex4="F"
  3477. :zRadiocolumns="
  3478. child44item1.collectionOptionList
  3479. "
  3480. @zSelectVal="zSelectVal"
  3481. :relevancyItem="
  3482. child44item1.relevancyItem
  3483. "></z-radio>
  3484. <deleteUploadImg
  3485. :photoIdentifyType="photoIdentifyType"
  3486. :imgs="
  3487. child44item1.fileInfoList
  3488. "></deleteUploadImg>
  3489. </div>
  3490. </div>
  3491. </div>
  3492. </div>
  3493. </div>
  3494. </div>
  3495. </div>
  3496. </div>
  3497. </div>
  3498. </div>
  3499. </div>
  3500. </div>
  3501. <div v-if="childitem1.answerType == 'sz'" class="formLabel z-cell">
  3502. <van-cell>
  3503. <template #title>
  3504. <span v-if="childitem1.isMust == 0" class="van-f-red">*</span>
  3505. <span>{{ 1 + index + '.' }}</span>
  3506. <span>{{ 1 + childIndex + '.' }}</span>
  3507. <span>{{ 1 + childIndex1 + '.' }}</span>
  3508. {{ childitem1.collectionName }}
  3509. <!-- 操作说明图片和电话 -->
  3510. <taskTips
  3511. v-if="childitem1.contactPhone || childitem1.examplePhoto"
  3512. :contactPhone="childitem1.contactPhone"
  3513. :examplePhoto="childitem1.examplePhoto">
  3514. </taskTips>
  3515. </template>
  3516. <template #right-icon>
  3517. <span v-if="childitem1.isMustPicture == '0'" class="van-f-red"
  3518. >*</span
  3519. >
  3520. <van-icon
  3521. v-if="childitem1.isPicture == '0'"
  3522. color="#666"
  3523. name="photograph"
  3524. size="24"
  3525. @click="
  3526. imgClick(
  3527. childitem1,
  3528. 'C',
  3529. index,
  3530. childIndex,
  3531. indexc,
  3532. indexc1,
  3533. childIndex1,
  3534. )
  3535. " />
  3536. </template>
  3537. </van-cell>
  3538. <van-field
  3539. v-model="childitem1.collectionOptionList[0].answerValue"
  3540. :placeholder="childitem1.collectionOptionList[0].collectionOption"
  3541. @blur="SZsizeComparison(childitem1)"
  3542. :error-message="
  3543. childitem1.collectionOptionList[0].ruleMessage
  3544. "></van-field>
  3545. <deleteUploadImg
  3546. :photoIdentifyType="photoIdentifyType"
  3547. :imgs="childitem1.fileInfoList"></deleteUploadImg>
  3548. </div>
  3549. <div v-if="childitem1.answerType == 'tel'" class="formLabel z-cell">
  3550. <van-cell>
  3551. <template #title>
  3552. <span v-if="childitem1.isMust == 0" class="van-f-red">*</span>
  3553. <span>{{ 1 + index + '.' }}</span>
  3554. <span>{{ 1 + childIndex + '.' }}</span>
  3555. <span>{{ 1 + childIndex1 + '.' }}</span>
  3556. {{ childitem1.collectionName }}
  3557. <!-- 操作说明图片和电话 -->
  3558. <taskTips
  3559. v-if="childitem1.contactPhone || childitem1.examplePhoto"
  3560. :contactPhone="childitem1.contactPhone"
  3561. :examplePhoto="childitem1.examplePhoto">
  3562. </taskTips>
  3563. </template>
  3564. <template #right-icon>
  3565. <span v-if="childitem1.isMustPicture == '0'" class="van-f-red"
  3566. >*</span
  3567. >
  3568. <van-icon
  3569. v-if="childitem1.isPicture == '0'"
  3570. color="#666"
  3571. name="photograph"
  3572. size="24"
  3573. @click="
  3574. imgClick(
  3575. childitem1,
  3576. 'C',
  3577. index,
  3578. childIndex,
  3579. indexc,
  3580. indexc1,
  3581. childIndex1,
  3582. )
  3583. " />
  3584. </template>
  3585. </van-cell>
  3586. <van-field
  3587. v-model="childitem1.collectionOptionList[0].answerValue"
  3588. :placeholder="childitem1.collectionOptionList[0].collectionOption"
  3589. type="tel"
  3590. @input="telFn(childitem1, index)"></van-field>
  3591. <deleteUploadImg
  3592. :photoIdentifyType="photoIdentifyType"
  3593. :imgs="childitem1.fileInfoList"></deleteUploadImg>
  3594. </div>
  3595. <div v-if="childitem1.answerType == 'zp'" class="formLabel z-cell">
  3596. <van-cell>
  3597. <template #title>
  3598. <span v-if="childitem1.isMust == 0" class="van-f-red">*</span>
  3599. <span>{{ 1 + index + '.' }}</span>
  3600. <span>{{ 1 + childIndex + '.' }}</span>
  3601. <span>{{ 1 + childIndex1 + '.' }}</span>
  3602. {{ childitem1.collectionName }}
  3603. <!-- 操作说明图片和电话 -->
  3604. <taskTips
  3605. v-if="childitem1.contactPhone || childitem1.examplePhoto"
  3606. :contactPhone="childitem1.contactPhone"
  3607. :examplePhoto="childitem1.examplePhoto">
  3608. </taskTips>
  3609. </template>
  3610. <template #right-icon>
  3611. <template v-if="processKey">
  3612. <span v-if="childitem1.isMustPicture == '0'" class="van-f-red"
  3613. >*</span
  3614. >
  3615. <van-icon
  3616. v-if="childitem1.isPicture == 0"
  3617. color="#666"
  3618. name="photograph"
  3619. size="24"
  3620. @click="
  3621. imgClick(
  3622. childitem1,
  3623. 'C',
  3624. index,
  3625. childIndex,
  3626. indexc,
  3627. indexc1,
  3628. childIndex1,
  3629. )
  3630. " />
  3631. </template>
  3632. </template>
  3633. </van-cell>
  3634. <!-- 生动化陈列备注 只能有一层采集项 -->
  3635. <div
  3636. class="sdhclTips"
  3637. v-if="childitem1.collectionName == '生动化陈列'"
  3638. style="color: red; font-size: 14px">
  3639. 请补充拍摄除陈列奖励案产品外,本店经营的其他立邦产品,以便准确识别SKU数量
  3640. </div>
  3641. <deleteUploadImg
  3642. :photoIdentifyType="photoIdentifyType"
  3643. :types="$route.query.types"
  3644. :imgs="childitem1.fileInfoList"></deleteUploadImg>
  3645. </div>
  3646. </div>
  3647. </div>
  3648. </div>
  3649. </div>
  3650. </div>
  3651. </div>
  3652. </div>
  3653. </div>
  3654. </div>
  3655. </div>
  3656. <br />
  3657. </div>
  3658. </van-form>
  3659. </div>
  3660. <br />
  3661. <van-dialog v-model="show" :show-confirm-button="false" show-cancel-button title="上传图片">
  3662. <van-field
  3663. v-if="indexselect == '1'"
  3664. :value="PhotoTypeText"
  3665. clickable
  3666. name="picker"
  3667. placeholder="选择图片类型"
  3668. readonly
  3669. @click="showPicker = true">
  3670. <template #label> <span class="van-f-red">*</span>图片类型 </template>
  3671. </van-field>
  3672. <van-cell>
  3673. <template #title> <span class="van-f-red">*</span>图片上传 </template>
  3674. <template #right-icon>
  3675. <uploadVNormal
  3676. :collectionId="collectionId"
  3677. :parentCollectionId="parentCollectionId"
  3678. :secondCollectionId="secondCollectionId"
  3679. :firstCollectionId="firstCollectionId"
  3680. :fourthCollectionId="fourthCollectionId"
  3681. :thirdCollectionId="thirdCollectionId"
  3682. :imgArr="imgs"
  3683. :objectType="PhotoType"
  3684. :shouws="true"
  3685. :storeGroupId="storeGroupId"
  3686. :taskId="taskId"
  3687. :uploadid="uploadid2"
  3688. :visitModel="1 + ''"
  3689. :visitsId="visitId"
  3690. :childIndex="childIndex"
  3691. :deviceCode="deviceCode"
  3692. :putInCode="putInCode"
  3693. :equipmentCode="equipmentCode"
  3694. @newimgarr="newimgarr1"
  3695. @typeshow="typeshow"
  3696. :photoIdentifyType="photoIdentifyType"
  3697. :pictureSource="pictureSource"
  3698. :continuousShoot="continuousShoot"
  3699. :inStore="machineInTheStore"
  3700. ref="uploadVNormal"></uploadVNormal>
  3701. </template>
  3702. </van-cell>
  3703. <div v-if="continuousShoot == '1'" class="uploadImgNum" style="color: red; padding: 0px 16px">
  3704. 注:拍照功能支持每次最多5张连拍,可多次连拍。
  3705. </div>
  3706. <!-- <van-cell v-if="pictureSource == '1'">
  3707. <template #title> <span class="van-f-red">*</span>相册选择</template>
  3708. <template #right-icon>
  3709. <uploadVNormal
  3710. :collectionId="collectionId"
  3711. :parentCollectionId="parentCollectionId"
  3712. :secondCollectionId="secondCollectionId"
  3713. :firstCollectionId="firstCollectionId"
  3714. :fourthCollectionId="fourthCollectionId"
  3715. :thirdCollectionId="thirdCollectionId"
  3716. :imgArr="imgs"
  3717. :objectType="PhotoType"
  3718. :shouws="true"
  3719. :storeGroupId="storeGroupId"
  3720. :taskId="taskId"
  3721. :uploadid="uploadid2"
  3722. :visitModel="1 + ''"
  3723. :visitsId="visitId"
  3724. :childIndex="childIndex"
  3725. :deviceCode="deviceCode"
  3726. :putInCode="putInCode"
  3727. @newimgarr="newimgarr1"
  3728. @typeshow="typeshow"
  3729. :photoIdentifyType="photoIdentifyType"
  3730. updateImgMode="album"></uploadVNormal>
  3731. </template>
  3732. </van-cell> -->
  3733. </van-dialog>
  3734. <!-- list-->
  3735. <van-dialog v-model="listShow" title="历史回显" show-cancel-button :showConfirmButton="false">
  3736. <div style="border: 1px solid #eee; margin-top: 18px">
  3737. <div class="itenHhistory" v-for="item in list">
  3738. <p>内容:{{ item.answerValue }}</p>
  3739. <p>拜访人:{{ item.nickName }}</p>
  3740. <p>拜访时间:{{ item.createTime }}</p>
  3741. </div>
  3742. </div>
  3743. </van-dialog>
  3744. <van-popup v-model="sdsd" position="bottom">
  3745. <uploadVNormal
  3746. :collectionId="collectionId"
  3747. :imgArr="imgs"
  3748. :objectType="PhotoType"
  3749. :storeGroupId="storeGroupId"
  3750. :taskId="taskId"
  3751. :uploadid="uploadid2"
  3752. :visitsId="visitId"
  3753. @newimgarr="newimgarr1"
  3754. @typeshow="typeshow"
  3755. :photoIdentifyType="photoIdentifyType"></uploadVNormal>
  3756. </van-popup>
  3757. <van-popup v-model="showPicker" capture position="bottom">
  3758. <van-picker
  3759. :columns="PhotoTypeList"
  3760. show-toolbar
  3761. @cancel="showPicker = false"
  3762. @confirm="onConfirm" />
  3763. </van-popup>
  3764. <!-- 时间选择 -->
  3765. <van-popup v-model="datetimeShowPicker" position="bottom">
  3766. <van-datetime-picker
  3767. v-model="currentDate"
  3768. type="date"
  3769. title="选择年月日"
  3770. :min-date="minDate"
  3771. :max-date="maxDate"
  3772. @confirm="datetimeOnConfirm"
  3773. @cancel="datetimeShowPicker = false" />
  3774. </van-popup>
  3775. <van-dialog v-model="logshow" show-cancel-button title="系统提示"> 是否保存信息? </van-dialog>
  3776. <br />
  3777. <br />
  3778. <br />
  3779. <br />
  3780. <div
  3781. style="
  3782. text-align: center;
  3783. padding: 10px;
  3784. background-color: #ff976a;
  3785. border-radius: 6px;
  3786. color: #fff;
  3787. position: fixed;
  3788. bottom: 16px;
  3789. font-size: 14px;
  3790. left: 14px;
  3791. "
  3792. v-if="processKey && isEditSDHCL"
  3793. @click="removeFn">
  3794. <van-icon name="cross" />&nbsp;&nbsp;清空内容
  3795. </div>
  3796. <van-calendar @confirm="onConfirmTime" v-model="showPickerTime" />
  3797. </div>
  3798. </template>
  3799. <script>
  3800. import {
  3801. getStoreGroupTask,
  3802. getPhotoTypeList,
  3803. addCollectionAnswer,
  3804. getCollectionInfos,
  3805. editDwellTime,
  3806. deleteTaskAnswer,
  3807. getCollectionShowHistory,
  3808. sendAndCheckVerCode,
  3809. confirmPhone,
  3810. } from '@/api/index';
  3811. import zRadio from '@/components/zRadio';
  3812. import zCheckbox from '@/components/zCheckbox';
  3813. import uploadVNormal from '@/components/uploadVNormal';
  3814. import storeCode from '@/components/storeCode';
  3815. import deleteUploadImg from '@/components/deleteUploadImg1';
  3816. import jianjie from '@/assets/jianjie.jpg';
  3817. import { ImagePreview } from 'vant';
  3818. import taskTips from './taskTips';
  3819. import store from '@/store';
  3820. import deletComplaintImg from '@/components/deletComplaintImg';
  3821. import uploadWLImg from '@/components/uploadWLImg';
  3822. export default {
  3823. name: 'abnormalVisit',
  3824. components: {
  3825. zRadio,
  3826. zCheckbox,
  3827. uploadVNormal,
  3828. storeCode,
  3829. deleteUploadImg,
  3830. taskTips,
  3831. deletComplaintImg,
  3832. uploadWLImg,
  3833. },
  3834. data() {
  3835. return {
  3836. value: '',
  3837. sdsd: false,
  3838. showPicker: false,
  3839. showPickerTime: false,
  3840. showCode: false,
  3841. jianjie: jianjie,
  3842. logshow: false,
  3843. fromValue: {
  3844. select1: '',
  3845. select3: '',
  3846. checkbox: '1',
  3847. radio: '',
  3848. input: '',
  3849. },
  3850. timer: null,
  3851. flagclick: true,
  3852. listShow: false,
  3853. isMust: '0',
  3854. imgs: [],
  3855. checkboxGroup: [],
  3856. radio: '',
  3857. Radiocolumns: [],
  3858. columns: [],
  3859. column2: [],
  3860. uploadid2: 'uploadid2',
  3861. collectionItemList: [],
  3862. rdId: '',
  3863. show: false,
  3864. PhotoTypeList: [],
  3865. PhotoType: '',
  3866. PhotoTypeText: '',
  3867. indexselect: 0,
  3868. visitId: '',
  3869. storeGroupId: '',
  3870. taskId: '',
  3871. collectionId: '',
  3872. parentCollectionId: '',
  3873. // form
  3874. storeId: '',
  3875. collectionAnswerlisd: [],
  3876. tableData1: [],
  3877. taskType: 1,
  3878. flag: false,
  3879. indeximg: '',
  3880. childIndex: '',
  3881. childIndex1: '',
  3882. childIndex2: '',
  3883. childIndex3: '',
  3884. childIndex4: '',
  3885. childIndex5: '',
  3886. childIndex6: '',
  3887. childIndex7: '',
  3888. link: '3',
  3889. infoShow: '99',
  3890. insert: true,
  3891. checked: false,
  3892. unManage: '1',
  3893. pType: '',
  3894. RIndex: '',
  3895. list: [],
  3896. Tindex: '',
  3897. Tindex1: '',
  3898. Tindex2: '',
  3899. Tindex3: '',
  3900. Tindex4: '',
  3901. Tindex5: '',
  3902. Tindex6: '',
  3903. Tindex7: '',
  3904. Tindex8: '',
  3905. Ttype: '',
  3906. wuliaoMust: true,
  3907. secondCollectionId: '',
  3908. firstCollectionId: '',
  3909. thirdCollectionId: '',
  3910. fourthCollectionId: '',
  3911. processKey: false,
  3912. equipmentCode: '',
  3913. deviceCode: '',
  3914. putInCode: '',
  3915. examplePhotoImg: '', //示例-操作说明图标地址
  3916. photoIdentifyType: null, //图片识别类型
  3917. pictureSource: '0',
  3918. stillDistribute: false,
  3919. productTitles: null,
  3920. inspectionType: '',
  3921. competitortableData: [],
  3922. isEditSDHCL: true, //是否可以编辑生动化陈列
  3923. time: null, //计时
  3924. timeNum: 60,
  3925. datetimeShowPicker: false,
  3926. activatNyrItem: '',
  3927. verificationPassedPhoneNum: '', //验证通过的手机号
  3928. verifyMobile: false, //手机号是否验证透通过
  3929. verifyMobileFlag: false, //手机号是否改变
  3930. minDate: new Date(1945, 0, 1),
  3931. maxDate: new Date(),
  3932. currentDate: new Date(1945, 0, 1),
  3933. continuousShoot: '0',
  3934. machineInTheStore: '否',
  3935. validatorFlag: true, //是否验证通过
  3936. confirmed: false,
  3937. yfNumFlage: false,
  3938. needIssuePhoto: null, //发放物料必须拍照
  3939. wuliaoPhotoImg: [], //任务包含的图片信息(只针对于物料任务)
  3940. };
  3941. },
  3942. beforeRouteLeave(to, from, next) {
  3943. if (this.visitId != null && this.visitId != '') {
  3944. this.editDwellTimes();
  3945. }
  3946. next();
  3947. },
  3948. activated() {
  3949. this.verificationPassedPhoneNum = '';
  3950. this.confirmed = false;
  3951. this.showCode = false;
  3952. this.flag = false;
  3953. this.link = '3';
  3954. this.wuliaoMust = true;
  3955. this.taskType = this.$route.query.taskType;
  3956. this.PhotoType = this.$route.query.photoType;
  3957. this.storeCode = this.$route.query.storeCode;
  3958. this.visitId = this.$route.query.visitId + '';
  3959. this.taskId = this.$route.query.taskId + '';
  3960. this.storeId = this.$route.query.storeId + '';
  3961. this.isMust = this.$route.query.isMust + '';
  3962. this.deviceCode = this.$route.query.deviceCode;
  3963. this.putInCode = this.$route.query.putInCode;
  3964. this.equipmentCode = this.$route.query.equipmentCode;
  3965. this.inspectionType = this.$route.query.inspectionType;
  3966. // this.photoIdentifyType = this.$route.query.photoIdentifyType;
  3967. this.storeGroupId = this.$route.query.storeGroupId + '';
  3968. if (this.$route.query.photoType && this.$route.query.photoType != null) {
  3969. this.indexselect = 0;
  3970. } else {
  3971. this.indexselect = 1;
  3972. }
  3973. this.getPhotoTypeList();
  3974. this.info();
  3975. // 拍照次数重置
  3976. store.dispatch('setShotsNum', 0);
  3977. this.show = false;
  3978. this.PhotoTypeText = '';
  3979. this.stillDistribute = false;
  3980. clearInterval(this.time);
  3981. this.time = null; //计时
  3982. this.timeNum = 60;
  3983. },
  3984. watch: {
  3985. $route(to, from) {
  3986. if (from.path == '/addStoreVisit') {
  3987. // 离开当前页面时,关闭弹框
  3988. if (this.$refs.uploadVNormal) this.$refs.uploadVNormal.close();
  3989. }
  3990. },
  3991. },
  3992. created() {
  3993. this.taskType = this.$route.query.taskType;
  3994. this.PhotoType = this.$route.query.photoType;
  3995. this.storeCode = this.$route.query.storeCode;
  3996. this.visitId = this.$route.query.visitId + '';
  3997. this.taskId = this.$route.query.taskId + '';
  3998. this.storeId = this.$route.query.storeId + '';
  3999. this.isMust = this.$route.query.isMust + '';
  4000. this.deviceCode = this.$route.query.deviceCode;
  4001. this.putInCode = this.$route.query.putInCode;
  4002. this.equipmentCode = this.$route.query.equipmentCode;
  4003. this.inspectionType = this.$route.query.inspectionType;
  4004. // this.photoIdentifyType = this.$route.query.photoIdentifyType;
  4005. this.storeGroupId = this.$route.query.storeGroupId + '';
  4006. if (this.$route.query.photoType && this.$route.query.photoType != null) {
  4007. this.indexselect = 0;
  4008. } else {
  4009. this.indexselect = 1;
  4010. }
  4011. this.getPhotoTypeList();
  4012. },
  4013. methods: {
  4014. viewSM() {
  4015. ImagePreview([this.jianjie]);
  4016. },
  4017. newcode(val) {
  4018. if (val.type == 'A') {
  4019. this.collectionItemList[val.index].answerValue = val.code;
  4020. this.collectionItemList[val.index].equipmentCode2 = val.code.split(',')[1];
  4021. this.collectionItemList[val.index].success = val.success;
  4022. if (val.cpid != '' && val.cpid != undefined) {
  4023. var smlist = this.collectionItemList;
  4024. for (var smcip = 0; smcip < smlist.length; smcip++) {
  4025. if (smlist[smcip].collectionId == val.cid) {
  4026. var smchild = smlist[smcip].collectionOptionList;
  4027. for (var smcipchile = 0; smcipchile < smchild.length; smcipchile++) {
  4028. if (smchild[smcipchile].collectionOptionId == val.cpid) {
  4029. this.collectionItemList[smcip].answerValue = val.cpid + '';
  4030. this.collectionItemList[smcip].collectionOptionList[smcipchile].isCheck = 1;
  4031. }
  4032. }
  4033. for (var smnocipchile = 0; smnocipchile < smchild.length; smnocipchile++) {
  4034. if (smchild[smnocipchile].collectionOptionId == val.nocpid) {
  4035. this.collectionItemList[smcip].collectionOptionList[
  4036. smnocipchile
  4037. ].unableChoose = true;
  4038. }
  4039. }
  4040. }
  4041. }
  4042. }
  4043. }
  4044. if (val.type == 'B') {
  4045. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  4046. val.index2
  4047. ].collectionOptionList[0].answerValue = val.code;
  4048. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  4049. val.index2
  4050. ].equipmentCode2 = val.code.split(',')[1];
  4051. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  4052. val.index2
  4053. ].success = val.success;
  4054. var b2list =
  4055. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems;
  4056. for (let smcip = 0; smcip < b2list.length; smcip++) {
  4057. if (b2list[smcip].collectionId == val.cid) {
  4058. let smchild = b2list[smcip].collectionOptionList;
  4059. for (let smcipchile = 0; smcipchile < smchild.length; smcipchile++) {
  4060. if (smchild[smcipchile].collectionOptionId == val.cpid) {
  4061. b2list[smcip].answerValue = val.cpid + '';
  4062. b2list[smcip].collectionOptionList[smcipchile].isCheck = 1;
  4063. }
  4064. }
  4065. for (let smnocipchile = 0; smnocipchile < smchild.length; smnocipchile++) {
  4066. if (smchild[smnocipchile].collectionOptionId == val.nocpid) {
  4067. b2list[smcip].collectionOptionList[smnocipchile].unableChoose = true;
  4068. }
  4069. }
  4070. }
  4071. }
  4072. }
  4073. if (val.type == 'C') {
  4074. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  4075. val.index2
  4076. ].collectionOptionList[val.index3].collectionItems[
  4077. val.index4
  4078. ].collectionOptionList[0].answerValue = val.code;
  4079. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  4080. val.index2
  4081. ].collectionOptionList[val.index3].collectionItems[val.index4].equipmentCode2 =
  4082. val.code.split(',')[1];
  4083. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  4084. val.index2
  4085. ].collectionOptionList[val.index3].collectionItems[val.index4].success = val.success;
  4086. var b3list =
  4087. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  4088. val.index2
  4089. ].collectionOptionList[val.index3].collectionItems;
  4090. for (let smcip = 0; smcip < b3list.length; smcip++) {
  4091. if (b3list[smcip].collectionId == val.cid) {
  4092. let smchild = b3list[smcip].collectionOptionList;
  4093. for (let smcipchile = 0; smcipchile < smchild.length; smcipchile++) {
  4094. if (smchild[smcipchile].collectionOptionId == val.cpid) {
  4095. b3list[smcip].answerValue = val.cpid + '';
  4096. b3list[smcip].collectionOptionList[smcipchile].isCheck = 1;
  4097. }
  4098. }
  4099. for (let smnocipchile = 0; smnocipchile < smchild.length; smnocipchile++) {
  4100. if (smchild[smnocipchile].collectionOptionId == val.nocpid) {
  4101. b3list[smcip].collectionOptionList[smnocipchile].unableChoose = true;
  4102. }
  4103. }
  4104. }
  4105. }
  4106. }
  4107. if (val.type == 'D') {
  4108. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  4109. val.index2
  4110. ].collectionOptionList[val.index3].collectionItems[val.index4].collectionOptionList[
  4111. val.index5
  4112. ].collectionItems[val.index6].collectionOptionList[0].answerValue = val.code;
  4113. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  4114. val.index2
  4115. ].collectionOptionList[val.index3].collectionItems[val.index4].collectionOptionList[
  4116. val.index5
  4117. ].collectionItems[val.index6].equipmentCode2 = val.code.split(',')[1];
  4118. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  4119. val.index2
  4120. ].collectionOptionList[val.index3].collectionItems[val.index4].collectionOptionList[
  4121. val.index5
  4122. ].collectionItems[val.index6].success = val.success;
  4123. var b4list =
  4124. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  4125. val.index2
  4126. ].collectionOptionList[val.index3].collectionItems[val.index4].collectionOptionList[
  4127. val.index5
  4128. ].collectionItems;
  4129. for (let smcip = 0; smcip < b4list.length; smcip++) {
  4130. if (b4list[smcip].collectionId == val.cid) {
  4131. let smchild = b4list[smcip].collectionOptionList;
  4132. for (let smcipchile = 0; smcipchile < smchild.length; smcipchile++) {
  4133. if (smchild[smcipchile].collectionOptionId == val.cpid) {
  4134. b4list[smcip].answerValue = val.cpid + '';
  4135. b4list[smcip].collectionOptionList[smcipchile].isCheck = 1;
  4136. }
  4137. }
  4138. for (let smnocipchile = 0; smnocipchile < smchild.length; smnocipchile++) {
  4139. if (smchild[smnocipchile].collectionOptionId == val.nocpid) {
  4140. b4list[smcip].collectionOptionList[smnocipchile].unableChoose = true;
  4141. }
  4142. }
  4143. }
  4144. }
  4145. }
  4146. if (val.type == 'E') {
  4147. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  4148. val.index2
  4149. ].collectionOptionList[val.index3].collectionItems[val.index4].collectionOptionList[
  4150. val.index5
  4151. ].collectionItems[val.index6].collectionOptionList[val.index7].collectionItems[
  4152. val.index8
  4153. ].collectionOptionList[0].answerValue = val.code;
  4154. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  4155. val.index2
  4156. ].collectionOptionList[val.index3].collectionItems[val.index4].collectionOptionList[
  4157. val.index5
  4158. ].collectionItems[val.index6].collectionOptionList[val.index7].collectionItems[
  4159. val.index8
  4160. ].equipmentCode2 = val.code.split(',')[1];
  4161. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  4162. val.index2
  4163. ].collectionOptionList[val.index3].collectionItems[val.index4].collectionOptionList[
  4164. val.index5
  4165. ].collectionItems[val.index6].collectionOptionList[val.index7].collectionItems[
  4166. val.index8
  4167. ].success = val.success;
  4168. var b5list =
  4169. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  4170. val.index2
  4171. ].collectionOptionList[val.index3].collectionItems[val.index4].collectionOptionList[
  4172. val.index5
  4173. ].collectionItems[val.index6].collectionOptionList[val.index7].collectionItems;
  4174. for (let smcip = 0; smcip < b5list.length; smcip++) {
  4175. if (b5list[smcip].collectionId == val.cid) {
  4176. let smchild = b5list[smcip].collectionOptionList;
  4177. for (let smcipchile = 0; smcipchile < smchild.length; smcipchile++) {
  4178. if (smchild[smcipchile].collectionOptionId == val.cpid) {
  4179. b5list[smcip].answerValue = val.cpid + '';
  4180. b5list[smcip].collectionOptionList[smcipchile].isCheck = 1;
  4181. }
  4182. }
  4183. for (let smnocipchile = 0; smnocipchile < smchild.length; smnocipchile++) {
  4184. if (smchild[smnocipchile].collectionOptionId == val.nocpid) {
  4185. b5list[smcip].collectionOptionList[smnocipchile].unableChoose = true;
  4186. }
  4187. }
  4188. }
  4189. }
  4190. }
  4191. },
  4192. inputbluwl(val, index, num) {
  4193. if ((val + '').trim() == '') {
  4194. this.tableData1[index].value = '';
  4195. } else {
  4196. if (Number(val) > 10000 || Number(val) <= 0) {
  4197. this.$toast('请输入大于0并且小于10000的整数');
  4198. this.tableData1[index].value = '';
  4199. } else if (this.tableData1[index].inventoryNumArray == '') {
  4200. this.tableData1[index].value = '';
  4201. this.$toast('请输入使用量');
  4202. } else if (this.insert) {
  4203. if (Number(val) > Number(this.tableData1[index].inventoryNum)) {
  4204. this.$toast('请输入小于等于销售部库存量');
  4205. this.tableData1[index].value = '';
  4206. return;
  4207. }
  4208. let maxValue = this.tableData1[index].maxValue;
  4209. if (maxValue && Number(val) > Number(maxValue)) {
  4210. this.$toast('请输入小于等于最大发放量');
  4211. this.tableData1[index].value = '';
  4212. }
  4213. } else if (!this.insert) {
  4214. if (
  4215. Number(val) >
  4216. Number(this.tableData1[index].inventoryNum) +
  4217. Number(this.tableData1[index].contrastValue)
  4218. ) {
  4219. this.$toast('请输入小于等于销售部库存量+发放量');
  4220. this.tableData1[index].value = this.tableData1[index].contrastValue;
  4221. return;
  4222. }
  4223. let maxValue = this.tableData1[index].maxValue;
  4224. if (maxValue && Number(val) > Number(maxValue)) {
  4225. this.$toast('请输入小于等于最大发放量');
  4226. this.tableData1[index].value = '';
  4227. }
  4228. } else {
  4229. this.tableData1[index].value = val.replace(/[^\d.]/g, ''); //清除"数字"和"."以外的字符
  4230. this.tableData1[index].value = val.replace(/^\./g, ''); //验证第一个字符是数字
  4231. this.tableData1[index].value = val
  4232. .replace('.', '$#$')
  4233. .replace(/\./g, '')
  4234. .replace('$#$', '');
  4235. }
  4236. }
  4237. },
  4238. objectSpanMethod({ row, column, rowIndex, columnIndex }) {
  4239. const cellValue = row[column.property];
  4240. if (cellValue && ['signDictype'].includes(column.property)) {
  4241. const prevRow = this.tableData1[rowIndex - 1];
  4242. let nextRow = this.tableData1[rowIndex + 1];
  4243. if (prevRow && prevRow[column.property] === cellValue) {
  4244. return { rowspan: 0, colspan: 0 };
  4245. } else {
  4246. let countRowspan = 1;
  4247. while (nextRow && nextRow[column.property] === cellValue) {
  4248. nextRow = this.tableData1[++countRowspan + rowIndex];
  4249. }
  4250. if (countRowspan > 1) {
  4251. return { rowspan: countRowspan, colspan: 1 };
  4252. }
  4253. }
  4254. }
  4255. },
  4256. showPickerTimeFn(index, type, index1, index2, index3, index4, index5, index6, index7, index8) {
  4257. this.Tindex = index;
  4258. this.Tindex1 = index1;
  4259. this.Tindex2 = index2;
  4260. this.Tindex3 = index3;
  4261. this.Tindex4 = index4;
  4262. this.Tindex5 = index5;
  4263. this.Tindex6 = index6;
  4264. this.Tindex7 = index7;
  4265. this.Tindex8 = index8;
  4266. this.Ttype = type;
  4267. this.showPickerTime = true;
  4268. },
  4269. onConfirmTime(time) {
  4270. if (this.Ttype == 'A') {
  4271. this.collectionItemList[this.Tindex].answerValue = this.parseTime(time, '{y}-{m}-{d}');
  4272. }
  4273. if (this.Ttype == 'B') {
  4274. this.collectionItemList[this.Tindex].collectionOptionList[this.Tindex1].collectionItems[
  4275. this.Tindex2
  4276. ].collectionOptionList[0].answerValue = this.parseTime(time, '{y}-{m}-{d}');
  4277. }
  4278. if (this.Ttype == 'C') {
  4279. this.collectionItemList[this.Tindex].collectionOptionList[this.Tindex1].collectionItems[
  4280. this.Tindex2
  4281. ].collectionOptionList[this.Tindex3].collectionItems[
  4282. this.Tindex4
  4283. ].collectionOptionList[0].answerValue = this.parseTime(time, '{y}-{m}-{d}');
  4284. }
  4285. if (this.Ttype == 'D') {
  4286. this.collectionItemList[this.Tindex].collectionOptionList[this.Tindex1].collectionItems[
  4287. this.Tindex2
  4288. ].collectionOptionList[this.Tindex3].collectionItems[this.Tindex4].collectionOptionList[
  4289. this.Tindex5
  4290. ].collectionItems[this.Tindex6].collectionOptionList[0].answerValue = this.parseTime(
  4291. time,
  4292. '{y}-{m}-{d}',
  4293. );
  4294. }
  4295. if (this.Ttype == 'E') {
  4296. this.collectionItemList[this.Tindex].collectionOptionList[this.Tindex1].collectionItems[
  4297. this.Tindex2
  4298. ].collectionOptionList[this.Tindex3].collectionItems[this.Tindex4].collectionOptionList[
  4299. this.Tindex5
  4300. ].collectionItems[this.Tindex6].collectionOptionList[this.Tindex7].collectionItems[
  4301. this.Tindex8
  4302. ].collectionOptionList[0].answerValue = this.parseTime(time, '{y}-{m}-{d}');
  4303. }
  4304. this.showPickerTime = false;
  4305. },
  4306. // 历史回显
  4307. getCollectionShowHistory(id) {
  4308. getCollectionShowHistory({
  4309. storeId: this.$route.query.storeId,
  4310. collectionId: id.collectionId,
  4311. visitsId: this.$route.query.visitId,
  4312. storeGroupId: this.$route.query.storeGroupId,
  4313. taskId: this.$route.query.taskId,
  4314. }).then((res) => {
  4315. if (res.data.length > 0) {
  4316. this.list = res.data;
  4317. this.listShow = true;
  4318. } else {
  4319. this.$toast('暂无历史信息');
  4320. }
  4321. });
  4322. },
  4323. removeFn() {
  4324. var that = this;
  4325. this.$dialog
  4326. .confirm({
  4327. title: '系统提示',
  4328. message: '是否清空任务内容?',
  4329. confirmButtonText: '确定',
  4330. cancelButtonText: '取消',
  4331. })
  4332. .then(() => {
  4333. deleteTaskAnswer({
  4334. visitsId: that.$route.query.visitId,
  4335. taskId: that.$route.query.taskId,
  4336. }).then((res) => {
  4337. if (res.code == 200) {
  4338. localStorage.setItem('getRequestFlage', 'true');
  4339. that.$dialog
  4340. .alert({
  4341. title: '系统提示',
  4342. message: '内容已清空',
  4343. })
  4344. .then((res) => {
  4345. that.info();
  4346. });
  4347. }
  4348. });
  4349. });
  4350. },
  4351. formatter(value) {
  4352. return value.replace(
  4353. /[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030|\s*/gi,
  4354. '',
  4355. );
  4356. },
  4357. editDwellTimes() {
  4358. let dwellTime = this.weekend(localStorage.getItem('startTime'), new Date()) + '';
  4359. editDwellTime({ dwellTime: dwellTime, visitsId: this.visitId }).then((res) => {
  4360. if (res.code == 200) {
  4361. localStorage.removeItem('startTime');
  4362. localStorage.setItem('startTime', new Date());
  4363. }
  4364. });
  4365. },
  4366. weekend(time1) {
  4367. var arrtime1 = new Date(time1).getTime();
  4368. var arrtime2 = new Date().getTime();
  4369. return Math.round((arrtime2 - arrtime1) / 1000);
  4370. },
  4371. telFn(val) {
  4372. if (!/^1[123456789]\d{9}$/.test(val.answerValue) && val.answerValue != '') {
  4373. this.$toast(val.collectionName + '格式错误');
  4374. }
  4375. },
  4376. sendCodeTelFn(val) {
  4377. let answerValue = '';
  4378. if (val.collectionOptionList && val.collectionOptionList.length) {
  4379. answerValue = val.collectionOptionList[0].answerValue;
  4380. } else {
  4381. answerValue = val.answerValue;
  4382. }
  4383. if (!/^1[123456789]\d{9}$/.test(answerValue) || answerValue == '') {
  4384. this.$toast(val.collectionName + '格式错误');
  4385. return;
  4386. }
  4387. if (answerValue != this.verificationPassedPhoneNum) {
  4388. this.verifyMobile = false;
  4389. }
  4390. },
  4391. telConfirmBlur(val) {
  4392. let answerValue = '';
  4393. if (val.answerValue != null) {
  4394. answerValue = val.answerValue;
  4395. } else if (val.answerValue && val.collectionOptionList.length) {
  4396. answerValue = val.collectionOptionList[0].answerValue;
  4397. }
  4398. if (!/^1[123456789]\d{9}$/.test(answerValue) || answerValue == '') {
  4399. this.$toast(val.collectionName + '格式错误');
  4400. return;
  4401. }
  4402. if (answerValue != this.verificationPassedPhoneNum) {
  4403. this.verifyMobile = false;
  4404. this.confirmed = false;
  4405. } else {
  4406. this.verifyMobile = true;
  4407. }
  4408. },
  4409. numberFn(val, index, type) {
  4410. let value = this.collectionItemList[index].answerValue;
  4411. if (value) {
  4412. if (!/^[+-]?\d*\.{0,1}\d{0,1}$/.test(value)) {
  4413. value = this.collectionItemList[index].answerValue.replace(
  4414. /\.\d{2,}$/,
  4415. value.substr(value.indexOf('.'), 3),
  4416. );
  4417. }
  4418. }
  4419. },
  4420. // 数字类型最大值最小值校验
  4421. SZsizeComparison(item, type) {
  4422. // type == A 是一级,answerValue 在当前层级,否则在子集collectionOptionList
  4423. let answerValue = null;
  4424. let itemData = null;
  4425. if (type == 'A') {
  4426. answerValue = item.answerValue;
  4427. itemData = item;
  4428. } else {
  4429. answerValue = item.collectionOptionList[0].answerValue;
  4430. itemData = item.collectionOptionList[0];
  4431. }
  4432. let value = answerValue
  4433. ? answerValue
  4434. .replace(/[^\d.-]/g, '') // 移除所有非法字符
  4435. .replace(/^\./, '') // 移除开头的小数点
  4436. .replace(/\.$/, '') // 移除结尾的小数点(如果需要)
  4437. // .replace(/(?<=.)-/g, '') // 移除除了开头位置外的所有负号
  4438. .replace(/^-/, 'NEGATIVE_MARKER') // 先标记开头的负号
  4439. .replace(/-/g, '') // 移除所有负号
  4440. .replace(/NEGATIVE_MARKER/, '-') // 恢复开头的负号
  4441. .replace(/\.+/g, '.') // 多个小数点合并为一个
  4442. .replace(/(\..*)\./g, '$1') // 只保留第一个小数点
  4443. : '';
  4444. // let value = answerValue
  4445. // ? answerValue.replace(
  4446. // /[^-\d.]|(?<!\d)\.|\.(?!\d)|^[.]$|^[+-]$|^[+-]\.$|(?<=\.\d*)\.|(?<=\d\.\d*)\.(?=\d)/g,
  4447. // ''
  4448. // )
  4449. // : '';
  4450. this.$set(itemData, 'answerValue', value);
  4451. if (value) {
  4452. // 最大值
  4453. let maxValue =
  4454. item.collectionOptionList[0].maxValue == null
  4455. ? item.collectionOptionList[0].maxValue
  4456. : item.collectionOptionList[0].maxValue.toString();
  4457. if (maxValue && maxValue != '') {
  4458. if (value > Number(maxValue)) {
  4459. this.$set(itemData, 'ruleMessage', '最大值为:' + maxValue);
  4460. // this.$set(itemData, 'answerValue', '');
  4461. // this.$toast('输入内容不合法');
  4462. this.validatorFlag = false;
  4463. return;
  4464. }
  4465. }
  4466. //最小值
  4467. let minValue =
  4468. item.collectionOptionList[0].minValue == null
  4469. ? item.collectionOptionList[0].minValue
  4470. : item.collectionOptionList[0].minValue.toString();
  4471. if (minValue && minValue != '') {
  4472. if (value < Number(minValue)) {
  4473. this.$set(itemData, 'ruleMessage', '最小值为:' + minValue);
  4474. // this.$set(itemData, 'answerValue', '');
  4475. // this.$toast('输入内容不合法');
  4476. this.validatorFlag = false;
  4477. return;
  4478. }
  4479. }
  4480. this.$set(itemData, 'ruleMessage', '');
  4481. } else {
  4482. // this.$set(itemData, 'ruleMessage', '请输入数字');
  4483. }
  4484. },
  4485. // dhwb 单行文本校验
  4486. DHWBsizeComparison(item, type) {
  4487. // type == A 是一级,answerValue 在当前层级,否则在子集collectionOptionList
  4488. let answerValue = null;
  4489. let itemData = null;
  4490. if (type == 'A') {
  4491. answerValue = item.answerValue;
  4492. itemData = item;
  4493. } else {
  4494. answerValue = item.collectionOptionList[0].answerValue;
  4495. itemData = item.collectionOptionList[0];
  4496. }
  4497. let value = answerValue;
  4498. if (value) {
  4499. // 最大值
  4500. let maxValue = item.collectionOptionList[0].maxValue;
  4501. if (maxValue && maxValue != '') {
  4502. if (value.length > Number(maxValue)) {
  4503. // this.$set(itemData, 'answerValue', '');
  4504. this.$set(itemData, 'ruleMessage', '最大字数为:' + maxValue);
  4505. // this.$toast('输入内容不合法');
  4506. this.validatorFlag = false;
  4507. return;
  4508. }
  4509. }
  4510. //最小值
  4511. let minValue = item.collectionOptionList[0].minValue;
  4512. if (minValue && minValue != '') {
  4513. if (value.length < Number(minValue)) {
  4514. // this.$set(itemData, 'answerValue', '');
  4515. this.$set(itemData, 'ruleMessage', '最小字数为:' + minValue);
  4516. // this.$toast('输入内容不合法');
  4517. this.validatorFlag = false;
  4518. return;
  4519. }
  4520. }
  4521. // 至少一个汉字
  4522. let leastOneChinese = item.collectionOptionList[0].leastOneChinese;
  4523. if (leastOneChinese == '1') {
  4524. if (!/[\u4e00-\u9fa5]/.test(value)) {
  4525. // this.$set(itemData, 'answerValue', '');
  4526. this.$set(itemData, 'ruleMessage', '至少有一个汉字');
  4527. // this.$toast('输入内容不合法,至少有一个汉字');
  4528. this.validatorFlag = false;
  4529. return;
  4530. }
  4531. }
  4532. this.$set(itemData, 'ruleMessage', '');
  4533. } else {
  4534. // this.$set(itemData, 'ruleMessage', '请输入至少有一个汉字');
  4535. }
  4536. },
  4537. // 且只可输入:汉字、数字、字母、标点符号, 特殊字符:空格、换行、表情等不可输入
  4538. dhwbFormatter(value) {
  4539. return value.replace(
  4540. /[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030|\s*/gi,
  4541. '',
  4542. );
  4543. },
  4544. XMsizeComparison(item, type) {
  4545. // type == A 是一级,answerValue 在当前层级,否则在子集collectionOptionList
  4546. let answerValue = null;
  4547. let itemData = null;
  4548. if (type == 'A') {
  4549. answerValue = item.answerValue;
  4550. itemData = item;
  4551. } else {
  4552. answerValue = item.collectionOptionList[0].answerValue;
  4553. itemData = item.collectionOptionList[0];
  4554. }
  4555. let value = answerValue;
  4556. if (value) {
  4557. // 最大值
  4558. let maxValue = item.collectionOptionList[0].maxValue;
  4559. if (maxValue && maxValue != '') {
  4560. if (value.length > Number(maxValue)) {
  4561. this.$set(itemData, 'ruleMessage', '最大字数为:' + maxValue);
  4562. this.validatorFlag = false;
  4563. return;
  4564. }
  4565. }
  4566. //最小值
  4567. let minValue = item.collectionOptionList[0].minValue;
  4568. if (minValue && minValue != '') {
  4569. if (value.length < Number(minValue)) {
  4570. this.$set(itemData, 'ruleMessage', '最小字数为:' + minValue);
  4571. this.validatorFlag = false;
  4572. return;
  4573. }
  4574. }
  4575. // 至少一个汉字
  4576. let leastOneChinese = item.collectionOptionList[0].leastOneChinese;
  4577. if (leastOneChinese == '1') {
  4578. if (!/[\u4e00-\u9fa5]/.test(value)) {
  4579. this.$set(itemData, 'ruleMessage', '至少有一个汉字');
  4580. this.validatorFlag = false;
  4581. return;
  4582. }
  4583. }
  4584. if (!/^[\u4e00-\u9fa5]+(·[\u4e00-\u9fa5]*)*·?$/.test(value)) {
  4585. this.$set(itemData, 'ruleMessage', '只能输入中文');
  4586. this.validatorFlag = false;
  4587. return;
  4588. }
  4589. this.$set(itemData, 'ruleMessage', '');
  4590. } else {
  4591. }
  4592. },
  4593. xmFormatter(value) {
  4594. return value.replace(
  4595. /[0-9]|[a-zA-Z]|[`~~!@#$%^&*()_\-+×÷=<>?:"{}|<>,.\/;'\\[\]~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030|\s*/gi,
  4596. '',
  4597. );
  4598. },
  4599. logshowFN() {
  4600. this.logshow = true;
  4601. },
  4602. info() {
  4603. let loading1 = this.$toast.loading({
  4604. duration: 0,
  4605. message: '加载中...',
  4606. forbidClick: true,
  4607. });
  4608. var insert = '';
  4609. this.collectionItemList = [];
  4610. this.tableData1 = [];
  4611. this.competitortableData = [];
  4612. this.collectionAnswerlisd = [];
  4613. if (this.$route.query.type == 'edit') {
  4614. insert = false;
  4615. } else {
  4616. insert = true;
  4617. }
  4618. this.insert = insert;
  4619. let params = {
  4620. storeCode: this.$route.query.storeCode, // string 门店编码
  4621. insert: insert, // boolean 是否为拜访时进入,true-拜访时进入,false-编辑时进入
  4622. id: '', // Long 拜访id
  4623. taskId: this.$route.query.taskId, // Long 任务id
  4624. };
  4625. // if (this.$route.query.type == 'edit') {
  4626. // var params = {
  4627. // storeId: this.$route.query.storeId,
  4628. // storeCode: this.$route.query.storeCode,
  4629. // visitEntry: '0',
  4630. // lat: '',
  4631. // lon: '',
  4632. // visitModel: this.visitModel,
  4633. // routeDetailsId: '',
  4634. // storeGroupId: this.$route.query.storeGroupId,
  4635. // visitSource: '1',
  4636. // insert: insert,
  4637. // locationCity: '',
  4638. // locationRemark: '',
  4639. // locationAccuracy: '',
  4640. // };
  4641. // } else {
  4642. // var params = {
  4643. // storeId: this.storeId,
  4644. // storeCode: this.$route.query.storeCode,
  4645. // visitEntry: '0',
  4646. // lat: this.$route.query.lat,
  4647. // lon: this.$route.query.lon,
  4648. // visitModel: this.$route.query.visitModel,
  4649. // routeDetailsId: this.$route.query.taskId,
  4650. // locationCity: this.$route.query.locationCity,
  4651. // insert: insert,
  4652. // locationRemark: this.$route.query.locationRemark,
  4653. // locationAccuracy: this.$route.query.locationAccuracy,
  4654. // visitSource: this.$route.query.visitSource,
  4655. // };
  4656. // }
  4657. if (this.$route.query.visitId != null) {
  4658. params.id = this.$route.query.visitId;
  4659. }
  4660. console.log(params.id);
  4661. getCollectionInfos(params).then((res) => {
  4662. loading1.clear();
  4663. this.photoIdentifyType = res.data.photoIdentifyType || null;
  4664. this.productTitles = res.data.productTitles; //产品类型表头数据
  4665. var checkUnManage = res.data;
  4666. var collectionItemLists = res.data.collectionItemList;
  4667. if (checkUnManage.checkUnManage != null && checkUnManage.checkUnManage != 'N') {
  4668. this.checked = true;
  4669. } else {
  4670. this.checked = false;
  4671. }
  4672. this.unManage = res.data.unManage;
  4673. // 调色机类型:buy-购买类调色机,place-放置类调色机 不显示设备编号和投放编号
  4674. if (this.inspectionType == 'buy') {
  4675. this.equipmentCode = this.putInCode || '';
  4676. // this.showCode = true;
  4677. } else if (this.inspectionType == 'place') {
  4678. this.equipmentCode = this.equipmentCode || '';
  4679. // this.showCode = false;
  4680. }
  4681. // 生动化陈列是否可以编辑
  4682. if (
  4683. this.$route.query.types == 'edit' &&
  4684. (this.photoIdentifyType == '6' || this.photoIdentifyType == '7')
  4685. ) {
  4686. this.isEditSDHCL = false;
  4687. } else {
  4688. this.isEditSDHCL = true;
  4689. }
  4690. if (
  4691. (res.data.processStatus == 3 && this.$route.query.types == 'edit') ||
  4692. res.data.processStatus == undefined
  4693. ) {
  4694. this.processKey = true;
  4695. } else {
  4696. this.processKey = false;
  4697. }
  4698. this.infoShow = res.data.isMust;
  4699. // 主经营者电话验证是否通过
  4700. this.verifyMobile = res.data.verifyMobile;
  4701. if (this.$route.query.taskType == 1 || this.$route.query.taskType == 4) {
  4702. for (var q = 0; q < collectionItemLists.length; q++) {
  4703. if (
  4704. collectionItemLists[q].answerType == 'sz' ||
  4705. collectionItemLists[q].answerType == 'wb' ||
  4706. collectionItemLists[q].answerType == 'sm' ||
  4707. collectionItemLists[q].answerType == 'tel' ||
  4708. collectionItemLists[q].answerType == 'date' ||
  4709. collectionItemLists[q].answerType == 'tel_send_code' ||
  4710. collectionItemLists[q].answerType == 'check_code' ||
  4711. collectionItemLists[q].answerType == 'nyr' ||
  4712. collectionItemLists[q].answerType == 'dhwb' ||
  4713. collectionItemLists[q].answerType == 'xm' ||
  4714. collectionItemLists[q].answerType == 'tel_confirm'
  4715. ) {
  4716. collectionItemLists[q].answerValue =
  4717. collectionItemLists[q].collectionOptionList[0].answerValue;
  4718. collectionItemLists[q].equipmentCode2 = '';
  4719. collectionItemLists[q].success = false;
  4720. if (
  4721. collectionItemLists[q].collectionOptionList[0].answerValue != '' &&
  4722. collectionItemLists[q].collectionOptionList[0].answerValue != null
  4723. ) {
  4724. collectionItemLists[q].equipmentCode2 =
  4725. collectionItemLists[q].collectionOptionList[0].answerValue.split(',')[1];
  4726. if (
  4727. collectionItemLists[q].collectionOptionList[0].answerValue.split(',')[0] ==
  4728. collectionItemLists[q].collectionOptionList[0].answerValue.split(',')[1]
  4729. ) {
  4730. collectionItemLists[q].success = true;
  4731. }
  4732. }
  4733. }
  4734. // dhwb 初始化内容校验
  4735. if (collectionItemLists[q].answerType == 'dhwb') {
  4736. this.DHWBsizeComparison(collectionItemLists[q], 'A');
  4737. }
  4738. // sz 初始化内容校验
  4739. if (collectionItemLists[q].answerType == 'sz') {
  4740. this.SZsizeComparison(collectionItemLists[q], 'A');
  4741. }
  4742. // xm 初始化内容校验
  4743. if (collectionItemLists[q].answerType == 'xm') {
  4744. this.XMsizeComparison(collectionItemLists[q], 'A');
  4745. }
  4746. if (
  4747. collectionItemLists[q].answerType == 'tel_send_code' ||
  4748. collectionItemLists[q].answerType == 'tel_confirm'
  4749. ) {
  4750. if (
  4751. collectionItemLists[q].collectionOptionList[0].answerValue != null &&
  4752. this.verifyMobile
  4753. ) {
  4754. this.verificationPassedPhoneNum =
  4755. collectionItemLists[q].collectionOptionList[0].answerValue;
  4756. console.log(this.verificationPassedPhoneNum);
  4757. }
  4758. }
  4759. if (
  4760. collectionItemLists[q].answerType == 'duox' ||
  4761. collectionItemLists[q].answerType == 'dx'
  4762. ) {
  4763. collectionItemLists[q].answerValue = [];
  4764. for (var qq = 0; qq < collectionItemLists[q].collectionOptionList.length; qq++) {
  4765. if (collectionItemLists[q].collectionOptionList[qq].isCheck == 1) {
  4766. collectionItemLists[q].answerValue.push(
  4767. collectionItemLists[q].collectionOptionList[qq].collectionOptionId,
  4768. );
  4769. collectionItemLists[q].collectionOptionList[qq].code =
  4770. collectionItemLists[q].collectionCode;
  4771. collectionItemLists[q].collectionOptionList[qq].answerType =
  4772. collectionItemLists[q].answerType;
  4773. }
  4774. if (collectionItemLists[q].answerType == 'dx') {
  4775. var listchild = collectionItemLists[q].collectionOptionList[qq].collectionItems;
  4776. if (listchild != undefined) {
  4777. for (var qq1 = 0; qq1 < listchild.length; qq1++) {
  4778. if (listchild[qq1].answerType == 'sz') {
  4779. if (listchild[qq1].collectionOptionList[0].answerValue != null) {
  4780. listchild[qq1].answerValue =
  4781. listchild[qq1].collectionOptionList[0].answerValue;
  4782. }
  4783. }
  4784. if (
  4785. listchild[qq1].answerType == 'wb' ||
  4786. listchild[qq1].answerType == 'dhwb' ||
  4787. listchild[qq1].answerType == 'xm'
  4788. ) {
  4789. if (listchild[qq1].collectionOptionList[0].answerValue != null) {
  4790. listchild[qq1].answerValue =
  4791. listchild[qq1].collectionOptionList[0].answerValue;
  4792. } else {
  4793. listchild[qq1].answerValue = '';
  4794. }
  4795. }
  4796. // dhwb 初始化内容校验
  4797. if (listchild[qq1].answerType == 'dhwb') {
  4798. this.DHWBsizeComparison(listchild[qq1]);
  4799. }
  4800. // sz 初始化内容校验
  4801. if (listchild[qq1].answerType == 'sz') {
  4802. this.SZsizeComparison(listchild[qq1]);
  4803. }
  4804. // xm 初始化内容校验
  4805. if (listchild[qq1].answerType == 'xm') {
  4806. this.XMsizeComparison(listchild[qq1]);
  4807. }
  4808. if (listchild[qq1].answerType == 'sm') {
  4809. listchild[qq1].success = false;
  4810. if (listchild[qq1].collectionOptionList[0].answerValue != null) {
  4811. listchild[qq1].answerValue =
  4812. listchild[qq1].collectionOptionList[0].answerValue;
  4813. listchild[qq1].equipmentCode2 =
  4814. listchild[qq1].collectionOptionList[0].answerValue.split(',')[1];
  4815. if (
  4816. listchild[qq1].collectionOptionList[0].answerValue.split(',')[0] ==
  4817. listchild[qq1].collectionOptionList[0].answerValue.split(',')[1]
  4818. ) {
  4819. listchild[qq1].success = true;
  4820. }
  4821. } else {
  4822. listchild[qq1].answerValue = '';
  4823. listchild[qq1].equipmentCode2 = '';
  4824. }
  4825. }
  4826. if (listchild[qq1].answerType == 'tel') {
  4827. if (listchild[qq1].collectionOptionList[0].answerValue != null) {
  4828. listchild[qq1].answerValue =
  4829. listchild[qq1].collectionOptionList[0].answerValue;
  4830. } else {
  4831. listchild[qq1].answerValue = '';
  4832. }
  4833. }
  4834. if (
  4835. listchild[qq1].answerType == 'tel_send_code' ||
  4836. listchild[qq1].answerType == 'tel_confirm'
  4837. ) {
  4838. if (listchild[qq1].collectionOptionList[0].answerValue != null) {
  4839. listchild[qq1].answerValue =
  4840. listchild[qq1].collectionOptionList[0].answerValue;
  4841. this.verificationPassedPhoneNum =
  4842. listchild[qq1].collectionOptionList[0].answerValue;
  4843. console.log(this.verificationPassedPhoneNum);
  4844. } else {
  4845. listchild[qq1].answerValue = '';
  4846. }
  4847. }
  4848. if (listchild[qq1].answerType == 'check_code') {
  4849. if (listchild[qq1].collectionOptionList[0].answerValue != null) {
  4850. listchild[qq1].answerValue =
  4851. listchild[qq1].collectionOptionList[0].answerValue;
  4852. } else {
  4853. listchild[qq1].answerValue = '';
  4854. }
  4855. }
  4856. if (listchild[qq1].answerType == 'nyr') {
  4857. if (listchild[qq1].collectionOptionList[0].answerValue != null) {
  4858. listchild[qq1].answerValue =
  4859. listchild[qq1].collectionOptionList[0].answerValue;
  4860. } else {
  4861. listchild[qq1].answerValue = '';
  4862. }
  4863. }
  4864. if (listchild[qq1].answerType == 'date') {
  4865. if (listchild[qq1].collectionOptionList[0].answerValue != null) {
  4866. listchild[qq1].answerValue =
  4867. listchild[qq1].collectionOptionList[0].answerValue;
  4868. } else {
  4869. listchild[qq1].answerValue = '';
  4870. }
  4871. }
  4872. if (
  4873. listchild[qq1].answerType == 'duox' ||
  4874. listchild[qq1].answerType == 'dx'
  4875. ) {
  4876. listchild[qq1].answerValue = [];
  4877. for (var qq2 = 0; qq2 < listchild[qq1].collectionOptionList.length; qq2++) {
  4878. listchild[qq1].collectionOptionList[qq2].code =
  4879. listchild[qq1].collectionCode;
  4880. listchild[qq1].collectionOptionList[qq2].answerType =
  4881. listchild[qq1].answerType;
  4882. listchild[qq1].collectionOptionList[qq2].parentCollectionId =
  4883. listchild[qq1].parentCollectionId;
  4884. listchild[qq1].collectionOptionList[qq2].parentOptionId =
  4885. listchild[qq1].parentOptionId;
  4886. listchild[qq1].collectionOptionList[qq2].firstCollectionId =
  4887. listchild[qq1].firstCollectionId;
  4888. listchild[qq1].collectionOptionList[qq2].secondCollectionId =
  4889. listchild[qq1].secondCollectionId;
  4890. if (listchild[qq1].collectionOptionList[qq2].isCheck == 1) {
  4891. listchild[qq1].answerValue.push(
  4892. listchild[qq1].collectionOptionList[qq2].collectionOptionId,
  4893. );
  4894. }
  4895. }
  4896. listchild[qq1].answerValue = listchild[qq1].answerValue.join();
  4897. }
  4898. if (listchild[qq1].answerType == 'dx') {
  4899. let list3 = listchild[qq1].collectionOptionList;
  4900. for (let l3 = 0; l3 < list3.length; l3++) {
  4901. if (
  4902. list3[l3].collectionItems != null &&
  4903. list3[l3].collectionItems != undefined
  4904. ) {
  4905. for (let l3q = 0; l3q < list3[l3].collectionItems.length; l3q++) {
  4906. if (list3[l3].collectionItems[l3q].answerType == 'sm') {
  4907. if (
  4908. list3[l3].collectionItems[l3q].collectionOptionList[0]
  4909. .answerValue != null &&
  4910. list3[l3].collectionItems[l3q].collectionOptionList[0]
  4911. .answerValue != undefined
  4912. ) {
  4913. list3[l3].collectionItems[l3q].answerValue =
  4914. list3[l3].collectionItems[
  4915. l3q
  4916. ].collectionOptionList[0].answerValue;
  4917. list3[l3].collectionItems[l3q].equipmentCode2 =
  4918. list3[l3].collectionItems[
  4919. l3q
  4920. ].collectionOptionList[0].answerValue.split(',')[1];
  4921. if (
  4922. list3[l3].collectionItems[
  4923. l3q
  4924. ].collectionOptionList[0].answerValue.split(',')[0] ==
  4925. list3[l3].collectionItems[
  4926. l3q
  4927. ].collectionOptionList[0].answerValue.split(',')[1]
  4928. ) {
  4929. list3[l3].collectionItems[l3q].success = true;
  4930. }
  4931. } else {
  4932. list3[l3].collectionItems[l3q].success = false;
  4933. list3[l3].collectionItems[
  4934. l3q
  4935. ].collectionOptionList[0].answerValue = '';
  4936. }
  4937. }
  4938. if (list3[l3].collectionItems[l3q].answerType == 'date') {
  4939. if (
  4940. list3[l3].collectionItems[l3q].collectionOptionList[0]
  4941. .answerValue != null
  4942. ) {
  4943. list3[l3].collectionItems[l3q].answerValue =
  4944. list3[l3].collectionItems[
  4945. l3q
  4946. ].collectionOptionList[0].answerValue;
  4947. } else {
  4948. list3[l3].collectionItems[l3q].answerValue = '';
  4949. }
  4950. }
  4951. // dhwb 初始化内容校验
  4952. if (list3[l3].collectionItems[l3q].answerType == 'dhwb') {
  4953. this.DHWBsizeComparison(list3[l3].collectionItems[l3q]);
  4954. }
  4955. // sz 初始化内容校验
  4956. if (list3[l3].collectionItems[l3q].answerType == 'sz') {
  4957. this.SZsizeComparison(list3[l3].collectionItems[l3q]);
  4958. }
  4959. // xm 初始化内容校验
  4960. if (list3[l3].collectionItems[l3q].answerType == 'xm') {
  4961. this.XMsizeComparison(list3[l3].collectionItems[l3q]);
  4962. }
  4963. }
  4964. }
  4965. // console.log(list3[l3])
  4966. // if (list3[l3].answerType == 'date') {
  4967. // if (list3[l3].collectionOptionList[0].answerValue != null) {
  4968. // list3[l3].answerValue = list3[l3].collectionOptionList[0].answerValue;
  4969. // } else {
  4970. // list3[l3].answerValue = '';
  4971. // }
  4972. // }
  4973. // if (list3[l3].answerType == 'sm') {
  4974. // list3[l3].success = false
  4975. // if (list3[l3].collectionOptionList[0].answerValue != null) {
  4976. // list3[l3].answerValue = list3[l3].collectionOptionList[0].answerValue;
  4977. // list3[l3].equipmentCode2 = list3[l3].collectionOptionList[0].answerValue.split(",")[1]
  4978. // if(list3[l3].collectionOptionList[0].answerValue.split(",")[0]==list3[l3].collectionOptionList[0].answerValue.split(",")[1]){
  4979. // list3[l3].success = true
  4980. // }
  4981. // } else {
  4982. // list3[l3].answerValue = '';
  4983. // list3[l3].equipmentCode2 = ""
  4984. // }
  4985. // }
  4986. if (list3[l3].answerType == 'duox' || list3[l3].answerType == 'dx') {
  4987. let lis4 = list3[l3].collectionItems;
  4988. if (lis4 != null) {
  4989. for (let l4 = 0; l4 < lis4.length; l4++) {
  4990. lis4[l4].answerValue = [];
  4991. let list5 = lis4[l4].collectionOptionList;
  4992. if (list5 != undefined && list5 != null && list5 != '') {
  4993. for (let l5 = 0; l5 < list5.length; l5++) {
  4994. list5[l5].code = lis4[l4].collectionCode;
  4995. list5[l5].answerType = lis4[l4].answerType;
  4996. list5[l5].parentCollectionId = lis4[l4].parentCollectionId;
  4997. list5[l5].parentOptionId = lis4[l4].parentOptionId;
  4998. list5[l5].firstCollectionId = lis4[l4].firstCollectionId;
  4999. list5[l5].secondCollectionId = lis4[l4].secondCollectionId;
  5000. if (list5[l5].isCheck == 1) {
  5001. lis4[l4].answerValue.push(list5[l5].collectionOptionId);
  5002. if (lis4[l4].answerType == 'dx') {
  5003. let lisc4 = list5[l5].collectionItems;
  5004. if (lisc4 != null) {
  5005. for (let l5 = 0; l5 < lisc4.length; l5++) {
  5006. lisc4[l5].answerValue = [];
  5007. if (lisc4[l5].answerType == 'sm') {
  5008. lisc4[l5].success = false;
  5009. if (
  5010. lisc4[l5].collectionOptionList[0].answerValue !=
  5011. null &&
  5012. lisc4[l5].collectionOptionList[0].answerValue !=
  5013. undefined
  5014. ) {
  5015. lisc4[l5].answerValue =
  5016. lisc4[l5].collectionOptionList[0].answerValue;
  5017. lisc4[l5].equipmentCode2 =
  5018. lisc4[
  5019. l5
  5020. ].collectionOptionList[0].answerValue.split(
  5021. ',',
  5022. )[1];
  5023. if (
  5024. lisc4[
  5025. l5
  5026. ].collectionOptionList[0].answerValue.split(
  5027. ',',
  5028. )[0] ==
  5029. lisc4[
  5030. l5
  5031. ].collectionOptionList[0].answerValue.split(
  5032. ',',
  5033. )[1]
  5034. ) {
  5035. lisc4[l5].success = true;
  5036. }
  5037. } else {
  5038. lisc4[l5].success = false;
  5039. lisc4[l5].collectionOptionList[0].answerValue = '';
  5040. }
  5041. }
  5042. let listc5 = lisc4[l5].collectionOptionList;
  5043. if (listc5 != null) {
  5044. for (let lc4 = 0; lc4 < listc5.length; lc4++) {
  5045. listc5[lc4].code = lisc4[l5].collectionCode;
  5046. listc5[lc4].answerType = lisc4[l5].answerType;
  5047. listc5[lc4].parentCollectionId =
  5048. lisc4[l5].parentCollectionId;
  5049. listc5[lc4].parentOptionId =
  5050. lisc4[l5].parentOptionId;
  5051. listc5[lc4].firstCollectionId =
  5052. lisc4[l5].firstCollectionId;
  5053. listc5[lc4].secondCollectionId =
  5054. lisc4[l5].secondCollectionId;
  5055. if (listc5[lc4].isCheck == 1) {
  5056. lisc4[l5].answerValue.push(
  5057. listc5[lc4].collectionOptionId,
  5058. );
  5059. if (listc5[lc4].answerType == 'dx') {
  5060. let lisc5 = listc5[lc4].collectionItems;
  5061. if (lisc5 != null) {
  5062. for (let l5 = 0; l5 < lisc5.length; l5++) {
  5063. lisc5[l5].answerValue = [];
  5064. if (lisc5[l5].answerType == 'sm') {
  5065. lisc5[l5].success = false;
  5066. if (
  5067. lisc5[l5].collectionOptionList[0]
  5068. .answerValue != null &&
  5069. lisc5[l5].collectionOptionList[0]
  5070. .answerValue != undefined
  5071. ) {
  5072. lisc5[l5].answerValue =
  5073. lisc5[
  5074. l5
  5075. ].collectionOptionList[0].answerValue;
  5076. lisc5[l5].equipmentCode2 =
  5077. lisc5[
  5078. l5
  5079. ].collectionOptionList[0].answerValue.split(
  5080. ',',
  5081. )[1];
  5082. if (
  5083. lisc5[
  5084. l5
  5085. ].collectionOptionList[0].answerValue.split(
  5086. ',',
  5087. )[0] ==
  5088. lisc5[
  5089. l5
  5090. ].collectionOptionList[0].answerValue.split(
  5091. ',',
  5092. )[1]
  5093. ) {
  5094. lisc5[l5].success = true;
  5095. }
  5096. } else {
  5097. lisc5[l5].success = false;
  5098. lisc5[
  5099. l5
  5100. ].collectionOptionList[0].answerValue =
  5101. '';
  5102. }
  5103. }
  5104. let listc6 = lisc5[l5].collectionOptionList;
  5105. if (listc6 != null) {
  5106. for (
  5107. let lc4 = 0;
  5108. lc4 < listc6.length;
  5109. lc4++
  5110. ) {
  5111. listc6[lc4].code =
  5112. lisc5[l5].collectionCode;
  5113. listc6[lc4].answerType =
  5114. lisc5[l5].answerType;
  5115. listc6[lc4].parentCollectionId =
  5116. lisc5[l5].parentCollectionId;
  5117. listc6[lc4].parentOptionId =
  5118. lisc5[l5].parentOptionId;
  5119. listc6[lc4].firstCollectionId =
  5120. lisc5[l5].firstCollectionId;
  5121. listc6[lc4].secondCollectionId =
  5122. lisc5[l5].secondCollectionId;
  5123. if (listc6[lc4].isCheck == 1) {
  5124. lisc5[l5].answerValue.push(
  5125. listc6[lc4].collectionOptionId,
  5126. );
  5127. }
  5128. }
  5129. // lisc5[l5].answerValue =
  5130. // lisc5[l5].answerValue.join();
  5131. }
  5132. }
  5133. }
  5134. }
  5135. }
  5136. }
  5137. }
  5138. lisc4[l5].answerValue = lisc4[l5].answerValue.join();
  5139. }
  5140. }
  5141. }
  5142. }
  5143. }
  5144. }
  5145. lis4[l4].answerValue = lis4[l4].answerValue.join();
  5146. }
  5147. }
  5148. }
  5149. }
  5150. }
  5151. }
  5152. }
  5153. }
  5154. }
  5155. collectionItemLists[q].answerValue = collectionItemLists[q].answerValue.join();
  5156. }
  5157. }
  5158. this.collectionItemList = collectionItemLists;
  5159. } else {
  5160. if (this.$route.query.taskType == 2 && this.productTitles) {
  5161. for (var f = 0; f < collectionItemLists.length; f++) {
  5162. var collectionOptionListarr = collectionItemLists[f].collectionOptionList;
  5163. for (let p = 0; p < this.productTitles.length; p++) {
  5164. for (var ff = 0; ff < collectionOptionListarr.length; ff++) {
  5165. if (
  5166. this.productTitles[p].titleValue == collectionOptionListarr[ff].collectionOption
  5167. ) {
  5168. collectionItemLists[f][this.productTitles[p].titleValue] =
  5169. collectionOptionListarr[ff].answerValue;
  5170. }
  5171. }
  5172. }
  5173. }
  5174. this.competitortableData = collectionItemLists;
  5175. } else {
  5176. for (var f = 0; f < collectionItemLists.length; f++) {
  5177. var collectionOptionListarr = collectionItemLists[f].collectionOptionList;
  5178. for (var ff = 0; ff < collectionOptionListarr.length; ff++) {
  5179. if (ff == '0') {
  5180. collectionItemLists[f].xdjhyj = collectionOptionListarr[ff].answerValue;
  5181. collectionItemLists[f].value = collectionOptionListarr[ff].answerValue;
  5182. collectionItemLists[f].contrastValue = collectionOptionListarr[ff].answerValue;
  5183. }
  5184. if (ff == '1') {
  5185. collectionItemLists[f].xdjhchjj = collectionOptionListarr[ff].answerValue;
  5186. if (collectionOptionListarr[ff].answerValue == null) {
  5187. collectionItemLists[f].answerVal = 'T';
  5188. } else {
  5189. collectionItemLists[f].answerVal = '';
  5190. }
  5191. }
  5192. if (ff == '2') {
  5193. collectionItemLists[f].ygnhj = collectionOptionListarr[ff].answerValue;
  5194. }
  5195. }
  5196. }
  5197. this.needIssuePhoto = res.data.needIssuePhoto;
  5198. this.wuliaoPhotoImg = res.data.fileInfoList;
  5199. this.tableData1 = collectionItemLists;
  5200. let yfNumArr = this.tableData1.filter((val) => val.yfNum);
  5201. this.yfNumFlage = yfNumArr.length ? true : false;
  5202. }
  5203. }
  5204. });
  5205. },
  5206. deleteImg() {},
  5207. uploadWLImgClick(data) {
  5208. this.wuliaoPhotoImg = this.wuliaoPhotoImg ? this.wuliaoPhotoImg : [];
  5209. this.wuliaoPhotoImg.push({
  5210. fileUrl: data.fileUrl,
  5211. id: data.id,
  5212. });
  5213. },
  5214. tipTitle(val) {
  5215. this.$toast(val);
  5216. },
  5217. inputblurs(val, index, num) {
  5218. if (!val) return;
  5219. if ((val + '').trim() == '') {
  5220. this.tableData1[index].xdjhchjj = '';
  5221. } else {
  5222. if (Number(val) > 10000 || Number(val) <= 0) {
  5223. this.$toast('请输入大于0并且小于10000的两位小数');
  5224. this.tableData1[index].xdjhchjj = '';
  5225. } else if (this.tableData1[index].xdjhyj == '') {
  5226. this.tableData1[index].xdjhchjj = '';
  5227. this.$toast('请输入进货原价');
  5228. } else if (Number(val) > Number(this.tableData1[index].xdjhyj)) {
  5229. this.$toast('请输入小于等于进货原价的数字');
  5230. this.tableData1[index].xdjhchjj = '';
  5231. } else {
  5232. this.tableData1[index].xdjhchjj = val.replace(/[^\d.]/g, ''); //清除"数字"和"."以外的字符
  5233. this.tableData1[index].xdjhchjj = val.replace(/^\./g, ''); //验证第一个字符是数字
  5234. this.tableData1[index].xdjhchjj = val.replace(/\.{2,}/g, '.'); //只保留第一个, 清除多余的
  5235. this.tableData1[index].xdjhchjj = val
  5236. .replace('.', '$#$')
  5237. .replace(/\./g, '')
  5238. .replace('$#$', '.');
  5239. this.tableData1[index].xdjhchjj = val.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
  5240. }
  5241. }
  5242. },
  5243. inputblur(val, index, num) {
  5244. if (val.split('.')[1] == '' || (val + '').trim() == '') {
  5245. this.$toast('请输入正确格式数字');
  5246. if (num == '0') {
  5247. this.tableData1[index].xdjhyj = '';
  5248. }
  5249. if (num == '1') {
  5250. this.tableData1[index].xdjhchjj = '';
  5251. }
  5252. if (num == '2') {
  5253. this.tableData1[index].ygnhj = '';
  5254. }
  5255. } else {
  5256. if (!/^\d+(\.\d{1,2})?$/.test(val) || Number(val) > 10000 || Number(val) <= 0) {
  5257. this.$toast('请输入大于0并且小于10000的两位小数');
  5258. if (num == '0') {
  5259. this.tableData1[index].xdjhyj = '';
  5260. }
  5261. if (num == '1') {
  5262. this.tableData1[index].xdjhchjj = '';
  5263. }
  5264. if (num == '2') {
  5265. this.tableData1[index].ygnhj = '';
  5266. }
  5267. } else {
  5268. if (num == '0') {
  5269. if (this.tableData1[index].xdjhyj < this.tableData1[index].xdjhchjj) {
  5270. this.tableData1[index].xdjhyj = '';
  5271. this.$toast('请输入大于等于促后净价的数字');
  5272. }
  5273. }
  5274. if (num == '1') {
  5275. if (this.tableData1[index].xdjhyj == '') {
  5276. this.tableData1[index].xdjhchjj = '';
  5277. this.$toast('请输入进货原价');
  5278. } else {
  5279. if (Number(val) > Number(this.tableData1[index].xdjhyj)) {
  5280. this.$toast('请输入小于等于进货原价的数字');
  5281. this.tableData1[index].xdjhchjj = '';
  5282. }
  5283. }
  5284. }
  5285. }
  5286. }
  5287. },
  5288. typeshow(val) {
  5289. this.show = val;
  5290. },
  5291. onConfirm(val) {
  5292. this.indexselect = '1';
  5293. this.PhotoType = val.dictValue;
  5294. this.PhotoTypeText = val.text;
  5295. this.showPicker = false;
  5296. },
  5297. getPhotoTypeList() {
  5298. getPhotoTypeList({}).then((res) => {
  5299. var PhotoTypeLists = [];
  5300. for (var p = 0; p < res.data.length; p++) {
  5301. PhotoTypeLists.push({
  5302. dictValue: res.data[p].dictValue,
  5303. text: res.data[p].dictLabel,
  5304. });
  5305. }
  5306. this.PhotoTypeList = PhotoTypeLists;
  5307. });
  5308. },
  5309. imgClick(
  5310. val,
  5311. type,
  5312. index,
  5313. childIndex,
  5314. childIndex1,
  5315. childIndex2,
  5316. childIndex3,
  5317. childIndex4,
  5318. childIndex5,
  5319. childIndex6,
  5320. childIndex7,
  5321. ) {
  5322. this.collectionId = val.collectionId + '';
  5323. this.parentCollectionId = val.parentCollectionId + '';
  5324. this.firstCollectionId = val.firstCollectionId;
  5325. this.secondCollectionId = val.secondCollectionId;
  5326. this.thirdCollectionId = val.thirdCollectionId;
  5327. this.fourthCollectionId = val.fourthCollectionId;
  5328. this.pictureSource = val.pictureSource; //是否允许从相册选择图片
  5329. this.continuousShoot = val.continuousShoot; //是否允许连拍/相册多选
  5330. this.indeximg = index;
  5331. this.childIndex = childIndex;
  5332. this.childIndex1 = childIndex1;
  5333. this.childIndex2 = childIndex2;
  5334. this.childIndex3 = childIndex3;
  5335. this.childIndex4 = childIndex4;
  5336. this.childIndex5 = childIndex5;
  5337. this.childIndex6 = childIndex6;
  5338. this.childIndex7 = childIndex7;
  5339. this.pType = type;
  5340. this.collectionItemList;
  5341. this.filterInStore(this.collectionItemList[index]);
  5342. this.show = true;
  5343. },
  5344. filterInStore(item) {
  5345. let optionList = item.collectionOptionList || [];
  5346. if (item.collectionName == '机器是否在店') {
  5347. if (optionList.length) {
  5348. for (let i = 0; i < optionList.length; i++) {
  5349. if (optionList[i].isCheck == 1) {
  5350. this.machineInTheStore = optionList[i].collectionOption;
  5351. return false;
  5352. }
  5353. }
  5354. }
  5355. } else {
  5356. if (optionList.length) {
  5357. for (let i = 0; i < optionList.length; i++) {
  5358. this.filterInStore(optionList[i]);
  5359. }
  5360. }
  5361. }
  5362. },
  5363. newimgarr1(val) {
  5364. // 店招识别只允许上传一张
  5365. let photoIdentifyType = val.photoIdentifyType;
  5366. this.show = false;
  5367. if (this.pType == 'D') {
  5368. if (
  5369. this.collectionItemList[this.indeximg].collectionOptionList[this.childIndex1]
  5370. .collectionItems[this.childIndex].collectionOptionList[this.childIndex2]
  5371. .collectionItems[this.childIndex3].collectionOptionList[this.childIndex4]
  5372. .collectionItems[this.childIndex5].fileInfoList == null
  5373. ) {
  5374. this.collectionItemList[this.indeximg].collectionOptionList[
  5375. this.childIndex1
  5376. ].collectionItems[this.childIndex].collectionOptionList[this.childIndex2].collectionItems[
  5377. this.childIndex3
  5378. ].collectionOptionList[this.childIndex4].collectionItems[this.childIndex5].fileInfoList =
  5379. [];
  5380. }
  5381. if (photoIdentifyType == 1) {
  5382. this.collectionItemList[this.indeximg].collectionOptionList[
  5383. this.childIndex1
  5384. ].collectionItems[this.childIndex].collectionOptionList[this.childIndex2].collectionItems[
  5385. this.childIndex3
  5386. ].collectionOptionList[this.childIndex4].collectionItems[this.childIndex5].fileInfoList =
  5387. val.fileInfoList;
  5388. } else {
  5389. let collectionItems =
  5390. this.collectionItemList[this.indeximg].collectionOptionList[this.childIndex1]
  5391. .collectionItems[this.childIndex].collectionOptionList[this.childIndex2]
  5392. .collectionItems[this.childIndex3].collectionOptionList[this.childIndex4]
  5393. .collectionItems[this.childIndex5];
  5394. let fileInfoList = collectionItems.fileInfoList.concat(val.fileInfoList);
  5395. this.$set(collectionItems, 'fileInfoList', fileInfoList);
  5396. }
  5397. }
  5398. if (this.pType == 'E') {
  5399. if (
  5400. this.collectionItemList[this.indeximg].collectionOptionList[this.childIndex1]
  5401. .collectionItems[this.childIndex].collectionOptionList[this.childIndex2]
  5402. .collectionItems[this.childIndex3].collectionOptionList[this.childIndex4]
  5403. .collectionItems[this.childIndex5].collectionOptionList[this.childIndex6]
  5404. .collectionItems[this.childIndex7].fileInfoList == null
  5405. ) {
  5406. this.collectionItemList[this.indeximg].collectionOptionList[
  5407. this.childIndex1
  5408. ].collectionItems[this.childIndex].collectionOptionList[this.childIndex2].collectionItems[
  5409. this.childIndex3
  5410. ].collectionOptionList[this.childIndex4].collectionItems[
  5411. this.childIndex5
  5412. ].collectionOptionList[this.childIndex6].collectionItems[this.childIndex7].fileInfoList =
  5413. [];
  5414. }
  5415. if (photoIdentifyType == 1) {
  5416. this.collectionItemList[this.indeximg].collectionOptionList[
  5417. this.childIndex1
  5418. ].collectionItems[this.childIndex].collectionOptionList[this.childIndex2].collectionItems[
  5419. this.childIndex3
  5420. ].collectionOptionList[this.childIndex4].collectionItems[
  5421. this.childIndex5
  5422. ].collectionOptionList[this.childIndex6].collectionItems[this.childIndex7].fileInfoList =
  5423. val.fileInfoList;
  5424. } else {
  5425. let collectionItems =
  5426. this.collectionItemList[this.indeximg].collectionOptionList[this.childIndex1]
  5427. .collectionItems[this.childIndex].collectionOptionList[this.childIndex2]
  5428. .collectionItems[this.childIndex3].collectionOptionList[this.childIndex4]
  5429. .collectionItems[this.childIndex5].collectionOptionList[this.childIndex6]
  5430. .collectionItems[this.childIndex7].fileInfoList;
  5431. let fileInfoList = collectionItems.fileInfoList.concat(val.fileInfoList);
  5432. this.$set(collectionItems, 'fileInfoList', fileInfoList);
  5433. }
  5434. }
  5435. if (this.pType == 'A' || this.pType == 'B') {
  5436. var child = false;
  5437. if (this.collectionItemList[this.indeximg].collectionOptionList != null) {
  5438. for (
  5439. let p = 0;
  5440. p < this.collectionItemList[this.indeximg].collectionOptionList.length;
  5441. p++
  5442. ) {
  5443. if (
  5444. this.collectionItemList[this.indeximg].collectionOptionList[p].collectionItems !=
  5445. undefined
  5446. ) {
  5447. child = true;
  5448. }
  5449. }
  5450. }
  5451. if (child && this.childIndex != undefined) {
  5452. for (
  5453. let childi = 0;
  5454. childi < this.collectionItemList[this.indeximg].collectionOptionList.length;
  5455. childi++
  5456. ) {
  5457. console.log('this.childIndex=' + this.childIndex);
  5458. // console.log('测试111=' + JSON.stringify(this.collectionItemList));
  5459. if (
  5460. this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
  5461. this.childIndex
  5462. ].fileInfoList == null ||
  5463. this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
  5464. this.childIndex
  5465. ].fileInfoList == undefined
  5466. ) {
  5467. this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
  5468. this.childIndex
  5469. ].fileInfoList = [];
  5470. }
  5471. if (photoIdentifyType == 1) {
  5472. this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
  5473. this.childIndex
  5474. ].fileInfoList = val.fileInfoList;
  5475. } else {
  5476. let collectionItems =
  5477. this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
  5478. this.childIndex
  5479. ];
  5480. let fileInfoList = collectionItems.fileInfoList.concat(val.fileInfoList);
  5481. this.$set(collectionItems, 'fileInfoList', fileInfoList);
  5482. }
  5483. }
  5484. } else {
  5485. if (
  5486. this.collectionItemList[this.indeximg].fileInfoList == null ||
  5487. this.collectionItemList[this.indeximg].fileInfoList == undefined
  5488. ) {
  5489. this.collectionItemList[this.indeximg].fileInfoList = [];
  5490. }
  5491. if (photoIdentifyType == 1) {
  5492. this.collectionItemList[this.indeximg].fileInfoList = val.fileInfoList;
  5493. console.log(
  5494. 'fileInfoList222=' +
  5495. JSON.stringify(this.collectionItemList[this.indeximg].fileInfoList),
  5496. );
  5497. } else {
  5498. let collectionItems = this.collectionItemList[this.indeximg];
  5499. let fileInfoList = collectionItems.fileInfoList.concat(val.fileInfoList);
  5500. this.$set(collectionItems, 'fileInfoList', fileInfoList);
  5501. }
  5502. }
  5503. }
  5504. if (this.pType == 'C') {
  5505. if (
  5506. this.collectionItemList[this.indeximg].collectionOptionList[this.childIndex1]
  5507. .collectionItems[this.childIndex].collectionOptionList[this.childIndex2]
  5508. .collectionItems[this.childIndex3].fileInfoList == null
  5509. ) {
  5510. this.collectionItemList[this.indeximg].collectionOptionList[
  5511. this.childIndex1
  5512. ].collectionItems[this.childIndex].collectionOptionList[this.childIndex2].collectionItems[
  5513. this.childIndex3
  5514. ].fileInfoList = [];
  5515. }
  5516. if (photoIdentifyType == 1) {
  5517. this.collectionItemList[this.indeximg].collectionOptionList[
  5518. this.childIndex1
  5519. ].collectionItems[this.childIndex].collectionOptionList[this.childIndex2].collectionItems[
  5520. this.childIndex3
  5521. ].fileInfoList = val.fileInfoList;
  5522. } else {
  5523. let collectionItems =
  5524. this.collectionItemList[this.indeximg].collectionOptionList[this.childIndex1]
  5525. .collectionItems[this.childIndex].collectionOptionList[this.childIndex2]
  5526. .collectionItems[this.childIndex3];
  5527. let fileInfoList = collectionItems.fileInfoList.concat(val.fileInfoList);
  5528. this.$set(collectionItems, 'fileInfoList', fileInfoList);
  5529. }
  5530. }
  5531. this.$forceUpdate();
  5532. },
  5533. zSelectVal(value) {
  5534. if (value.answerType == 'dx') {
  5535. if (value.childIndex4 == 'A') {
  5536. for (
  5537. let op = 0;
  5538. op <
  5539. this.collectionItemList[value.childindex].collectionOptionList[value.childindex1]
  5540. .collectionItems[value.childindex2].collectionOptionList.length;
  5541. op++
  5542. ) {
  5543. if (value.index != op) {
  5544. this.collectionItemList[value.childindex].collectionOptionList[
  5545. value.childindex1
  5546. ].collectionItems[value.childindex2].collectionOptionList[op].isCheck = 0;
  5547. }
  5548. }
  5549. this.collectionItemList[value.childindex].collectionOptionList[
  5550. value.childindex1
  5551. ].collectionItems[value.childindex2].collectionOptionList[value.index].isCheck = 1;
  5552. }
  5553. if (value.childIndex4 == 'B') {
  5554. for (
  5555. let op = 0;
  5556. op < this.collectionItemList[value.childindex].collectionOptionList.length;
  5557. op++
  5558. ) {
  5559. if (value.index != op) {
  5560. this.collectionItemList[value.childindex].collectionOptionList[op].isCheck = 0;
  5561. }
  5562. }
  5563. this.RIndex = value.index;
  5564. if (value.index != -1)
  5565. this.collectionItemList[value.childindex].collectionOptionList[value.index].isCheck = 1;
  5566. }
  5567. if (value.childIndex4 == 'D') {
  5568. let r5 =
  5569. this.collectionItemList[value.childindex].collectionOptionList[value.childindex1]
  5570. .collectionItems[value.childindex2].collectionOptionList[value.childindex3]
  5571. .collectionItems[value.childindex5].collectionOptionList;
  5572. for (let op = 0; op < r5.length; op++) {
  5573. if (value.index != op) {
  5574. r5[op].isCheck = 0;
  5575. }
  5576. }
  5577. r5[value.index].isCheck = 1;
  5578. }
  5579. if (value.childIndex4 == 'E') {
  5580. let r5 =
  5581. this.collectionItemList[value.childindex].collectionOptionList[value.childindex1]
  5582. .collectionItems[value.childindex2].collectionOptionList[value.childindex3]
  5583. .collectionItems[value.childindex5].collectionOptionList[value.childindex6]
  5584. .collectionItems[value.childindex7].collectionOptionList;
  5585. for (let op = 0; op < r5.length; op++) {
  5586. if (value.index != op) {
  5587. r5[op].isCheck = 0;
  5588. }
  5589. }
  5590. r5[value.index].isCheck = 1;
  5591. }
  5592. if (value.childIndex4 == 'F') {
  5593. let r5 =
  5594. this.collectionItemList[value.childindex].collectionOptionList[value.childindex1]
  5595. .collectionItems[value.childindex2].collectionOptionList[value.childindex3]
  5596. .collectionItems[value.childindex5].collectionOptionList[value.childindex6]
  5597. .collectionItems[value.childindex7].collectionOptionList[value.childindex8]
  5598. .collectionItems[value.childindex9].collectionOptionList;
  5599. for (let op = 0; op < r5.length; op++) {
  5600. if (value.index != op) {
  5601. r5[op].isCheck = 0;
  5602. }
  5603. }
  5604. r5[value.index].isCheck = 1;
  5605. }
  5606. } else {
  5607. if (value.level == 'A') {
  5608. for (
  5609. let op = 0;
  5610. op < this.collectionItemList[value.childindex].collectionOptionList.length;
  5611. op++
  5612. ) {
  5613. if (value.index != op) {
  5614. this.collectionItemList[value.childindex].collectionOptionList[op].isCheck = 0;
  5615. }
  5616. }
  5617. for (
  5618. let op = 0;
  5619. op < this.collectionItemList[value.childindex].collectionOptionList.length;
  5620. op++
  5621. ) {
  5622. for (let opc = 0; opc < value.value.length; opc++) {
  5623. if (
  5624. value.value[opc].collectionOptionId ==
  5625. this.collectionItemList[value.childindex].collectionOptionList[op]
  5626. .collectionOptionId
  5627. ) {
  5628. this.collectionItemList[value.childindex].collectionOptionList[op].isCheck = 1;
  5629. }
  5630. }
  5631. }
  5632. }
  5633. if (value.level == 'B') {
  5634. var listCData =
  5635. this.collectionItemList[value.childindex].collectionOptionList[value.childindex1]
  5636. .collectionItems[value.childindex2];
  5637. for (let op = 0; op < listCData.collectionOptionList.length; op++) {
  5638. listCData.collectionOptionList[op].isCheck = 0;
  5639. }
  5640. for (let op = 0; op < listCData.collectionOptionList.length; op++) {
  5641. for (let opc = 0; opc < value.value.length; opc++) {
  5642. if (
  5643. value.value[opc].collectionOptionId ==
  5644. listCData.collectionOptionList[op].collectionOptionId
  5645. ) {
  5646. listCData.collectionOptionList[op].isCheck = 1;
  5647. }
  5648. }
  5649. }
  5650. }
  5651. if (value.level == 'C') {
  5652. var listCData2 =
  5653. this.collectionItemList[value.childindex].collectionOptionList[value.childindex1]
  5654. .collectionItems[value.childindex2].collectionOptionList[value.childindex3]
  5655. .collectionItems[value.childindex4];
  5656. for (let op = 0; op < listCData2.collectionOptionList.length; op++) {
  5657. listCData2.collectionOptionList[op].isCheck = 0;
  5658. }
  5659. for (let op = 0; op < listCData2.collectionOptionList.length; op++) {
  5660. for (let opc = 0; opc < value.value.length; opc++) {
  5661. if (
  5662. value.value[opc].collectionOptionId ==
  5663. listCData2.collectionOptionList[op].collectionOptionId
  5664. ) {
  5665. listCData2.collectionOptionList[op].isCheck = 1;
  5666. }
  5667. }
  5668. }
  5669. }
  5670. if (value.level == 'D') {
  5671. var listCData2 =
  5672. this.collectionItemList[value.childindex].collectionOptionList[value.childindex1]
  5673. .collectionItems[value.childindex2].collectionOptionList[value.childindex3]
  5674. .collectionItems[value.childindex4].collectionOptionList[value.childindex5]
  5675. .collectionItems[value.childindex6];
  5676. for (let op = 0; op < listCData2.collectionOptionList.length; op++) {
  5677. listCData2.collectionOptionList[op].isCheck = 0;
  5678. }
  5679. for (let op = 0; op < listCData2.collectionOptionList.length; op++) {
  5680. for (let opc = 0; opc < value.value.length; opc++) {
  5681. if (
  5682. value.value[opc].collectionOptionId ==
  5683. listCData2.collectionOptionList[op].collectionOptionId
  5684. ) {
  5685. listCData2.collectionOptionList[op].isCheck = 1;
  5686. }
  5687. }
  5688. }
  5689. }
  5690. if (value.level == 'E') {
  5691. var listCData2 =
  5692. this.collectionItemList[value.childindex].collectionOptionList[value.childindex1]
  5693. .collectionItems[value.childindex2].collectionOptionList[value.childindex3]
  5694. .collectionItems[value.childindex4].collectionOptionList[value.childindex5]
  5695. .collectionItems[value.childindex6].collectionOptionList[value.childindex7]
  5696. .collectionItems[value.childindex8];
  5697. for (let op = 0; op < listCData2.collectionOptionList.length; op++) {
  5698. listCData2.collectionOptionList[op].isCheck = 0;
  5699. }
  5700. for (let op = 0; op < listCData2.collectionOptionList.length; op++) {
  5701. for (let opc = 0; opc < value.value.length; opc++) {
  5702. if (
  5703. value.value[opc].collectionOptionId ==
  5704. listCData2.collectionOptionList[op].collectionOptionId
  5705. ) {
  5706. listCData2.collectionOptionList[op].isCheck = 1;
  5707. }
  5708. }
  5709. }
  5710. }
  5711. }
  5712. },
  5713. filterCollectionInfos(collectionItemList, type) {
  5714. if (
  5715. (collectionItemList.answerType == 'dx' || collectionItemList.answerType == 'duox') &&
  5716. collectionItemList.collectionOptionList
  5717. ) {
  5718. for (let x = 0; x < collectionItemList.collectionOptionList.length; x++) {
  5719. this.filterCollectionInfos(collectionItemList.collectionOptionList[x]);
  5720. }
  5721. } else {
  5722. if (collectionItemList.answerType == 'dhwb') {
  5723. this.DHWBsizeComparison(collectionItemList, type);
  5724. }
  5725. if (collectionItemList.answerType == 'sz') {
  5726. this.SZsizeComparison(collectionItemList, type);
  5727. }
  5728. if (collectionItemList.answerType == 'xm') {
  5729. this.XMsizeComparison(collectionItemList, type);
  5730. }
  5731. }
  5732. },
  5733. // 递归遍历所有表单项
  5734. traverseCollectionItems(items) {
  5735. // 处理一层子项(如果有)
  5736. if (items.collectionOptionList && items.collectionOptionList.length > 0) {
  5737. if (items.answerValue == items.collectionOptionList[0].collectionOptionId) {
  5738. items.collectionOptionList.forEach((item) => {
  5739. // 处理二层子项(如果有)
  5740. if (item.collectionItems && item.collectionItems.length > 0) {
  5741. item.collectionItems.forEach((option) => {
  5742. this.filterCollectionInfos(option);
  5743. this.traverseCollectionItems(option);
  5744. });
  5745. }
  5746. });
  5747. }
  5748. }
  5749. },
  5750. onSubmit() {
  5751. this.validatorFlag = true;
  5752. var checkUnManage = 'Y';
  5753. var formData = {};
  5754. if (this.checked) {
  5755. checkUnManage = 'Y';
  5756. } else {
  5757. checkUnManage = 'N';
  5758. }
  5759. // taskType:3物料,2产品类型,1常规类型
  5760. if (this.$route.query.taskType == 3) {
  5761. formData = {
  5762. storeId: this.storeId,
  5763. storeCode: this.$route.query.storeCode,
  5764. storeGroupId: this.storeGroupId,
  5765. visitsId: this.visitId,
  5766. taskId: this.taskId,
  5767. insert: this.insert,
  5768. collectionAnswers: [],
  5769. checkUnManage: checkUnManage,
  5770. wuliaoMust: this.wuliaoMust,
  5771. };
  5772. if (this.wuliaoMust) {
  5773. let fafangValue = this.tableData1.filter((val) => val.value);
  5774. if (fafangValue.length && this.needIssuePhoto == '1') {
  5775. if (!this.wuliaoPhotoImg || !this.wuliaoPhotoImg.length) {
  5776. this.$toast('请上传图片');
  5777. return false;
  5778. }
  5779. }
  5780. }
  5781. } else {
  5782. formData = {
  5783. storeId: this.storeId,
  5784. storeCode: this.$route.query.storeCode,
  5785. storeGroupId: this.storeGroupId,
  5786. visitsId: this.visitId,
  5787. taskId: this.taskId,
  5788. insert: this.insert,
  5789. collectionAnswers: [],
  5790. checkUnManage: checkUnManage,
  5791. deviceCode: this.deviceCode || '', //设备编号
  5792. putInCode: this.putInCode || '', //投放编号
  5793. equipmentCode: this.equipmentCode || '', //资产编号
  5794. };
  5795. }
  5796. if (this.$route.query.taskType == 1 || this.$route.query.taskType == 4) {
  5797. for (var b = 0; b < this.collectionItemList.length; b++) {
  5798. this.filterCollectionInfos(this.collectionItemList[b], 'A');
  5799. const collectionItem = this.collectionItemList[b];
  5800. this.traverseCollectionItems(collectionItem);
  5801. if (
  5802. this.collectionItemList[b].answerType == 'sz' ||
  5803. this.collectionItemList[b].answerType == 'sm' ||
  5804. this.collectionItemList[b].answerType == 'wb' ||
  5805. this.collectionItemList[b].answerType == 'tel' ||
  5806. this.collectionItemList[b].answerType == 'date' ||
  5807. this.collectionItemList[b].answerType == 'tel_send_code' ||
  5808. this.collectionItemList[b].answerType == 'check_code' ||
  5809. this.collectionItemList[b].answerType == 'nyr' ||
  5810. this.collectionItemList[b].answerType == 'dhwb' ||
  5811. this.collectionItemList[b].answerType == 'xm' ||
  5812. this.collectionItemList[b].answerType == 'tel_confirm'
  5813. ) {
  5814. formData.collectionAnswers.push({
  5815. collectionId: this.collectionItemList[b].collectionId,
  5816. itemName: this.collectionItemList[b].collectionName,
  5817. collectionType: this.collectionItemList[b].collectionType,
  5818. collectionOptionId:
  5819. this.collectionItemList[b].collectionOptionList[0].collectionOptionId,
  5820. secondCollectionId: this.collectionItemList[b].secondCollectionId,
  5821. firstCollectionId: this.collectionItemList[b].firstCollectionId,
  5822. thirdCollectionId: this.collectionItemList[b].thirdCollectionId,
  5823. fourthCollectionId: this.collectionItemList[b].fourthCollectionId,
  5824. answerType: this.collectionItemList[b].answerType,
  5825. answerValue: this.collectionItemList[b].answerValue,
  5826. isMust: this.collectionItemList[b].isMust,
  5827. success: this.collectionItemList[b].success,
  5828. });
  5829. }
  5830. if (
  5831. this.collectionItemList[b].answerType == 'dx' ||
  5832. this.collectionItemList[b].answerType == 'duox'
  5833. ) {
  5834. let onList = this.collectionItemList[b].collectionOptionList;
  5835. onList.forEach((item) => {
  5836. if (item.isCheck == 1) {
  5837. formData.collectionAnswers.push({
  5838. collectionId: item.collectionId,
  5839. itemName: item.collectionOption,
  5840. collectionType: this.collectionItemList[b].collectionType,
  5841. collectionOptionId: item.collectionOptionId,
  5842. secondCollectionId: item.secondCollectionId,
  5843. firstCollectionId: item.firstCollectionId,
  5844. thirdCollectionId: item.thirdCollectionId,
  5845. fourthCollectionId: item.fourthCollectionId,
  5846. answerType: this.collectionItemList[b].answerType,
  5847. answerValue: 'Y',
  5848. });
  5849. }
  5850. });
  5851. }
  5852. }
  5853. for (let f = 0; f < this.collectionItemList.length; f++) {
  5854. if (this.collectionItemList[f].answerType == 'dx') {
  5855. var listData = this.collectionItemList[f].collectionOptionList;
  5856. for (let f1 = 0; f1 < listData.length; f1++) {
  5857. var listDatas = listData[f1].collectionItems;
  5858. if (listData[f1].isCheck == '1' && listDatas != undefined && listDatas != null) {
  5859. for (let f2 = 0; f2 < listDatas.length; f2++) {
  5860. if (
  5861. listDatas[f2].answerType == 'sz' ||
  5862. listDatas[f2].answerType == 'wb' ||
  5863. listDatas[f2].answerType == 'sm' ||
  5864. listDatas[f2].answerType == 'tel' ||
  5865. listDatas[f2].answerType == 'date' ||
  5866. listDatas[f2].answerType == 'tel_send_code' ||
  5867. listDatas[f2].answerType == 'check_code' ||
  5868. listDatas[f2].answerType == 'nyr' ||
  5869. listDatas[f2].answerType == 'dhwb' ||
  5870. listDatas[f2].answerType == 'xm' ||
  5871. listDatas[f2].answerType == 'tel_confirm'
  5872. ) {
  5873. formData.collectionAnswers.push({
  5874. collectionId: listDatas[f2].collectionId,
  5875. itemName: listDatas[f2].collectionName,
  5876. collectionType: listDatas[f2].collectionType,
  5877. collectionOptionId: listDatas[f2].collectionOptionList[0].collectionOptionId,
  5878. answerType: listDatas[f2].answerType,
  5879. answerValue: listDatas[f2].collectionOptionList[0].answerValue,
  5880. parentOptionId: listDatas[f2].parentOptionId,
  5881. parentCollectionId: listDatas[f2].parentCollectionId,
  5882. secondCollectionId: listDatas[f2].secondCollectionId,
  5883. thirdCollectionId: listDatas[f2].thirdCollectionId,
  5884. fourthCollectionId: listDatas[f2].fourthCollectionId,
  5885. firstCollectionId: listDatas[f2].firstCollectionId,
  5886. isMust: listDatas[f2].isMust,
  5887. success: listDatas[f2].success,
  5888. });
  5889. }
  5890. if (listDatas[f2].answerType == 'dx' || listDatas[f2].answerType == 'duox') {
  5891. let onList = listDatas[f2].collectionOptionList;
  5892. onList.forEach((item) => {
  5893. if (item.isCheck == 1) {
  5894. formData.collectionAnswers.push({
  5895. collectionId: item.collectionId,
  5896. itemName: item.collectionOption,
  5897. collectionType: listDatas[f2].collectionType,
  5898. collectionOptionId: item.collectionOptionId,
  5899. parentOptionId: item.parentOptionId,
  5900. parentCollectionId: item.parentCollectionId,
  5901. secondCollectionId: item.secondCollectionId,
  5902. firstCollectionId: item.firstCollectionId,
  5903. thirdCollectionId: item.thirdCollectionId,
  5904. fourthCollectionId: item.fourthCollectionId,
  5905. answerType: listDatas[f2].answerType,
  5906. answerValue: 'Y',
  5907. });
  5908. }
  5909. });
  5910. }
  5911. }
  5912. }
  5913. }
  5914. }
  5915. }
  5916. for (let f = 0; f < this.collectionItemList.length; f++) {
  5917. if (this.collectionItemList[f].answerType == 'dx') {
  5918. let listData = this.collectionItemList[f].collectionOptionList;
  5919. for (let f1 = 0; f1 < listData.length; f1++) {
  5920. let listDatas = listData[f1].collectionItems;
  5921. if (listData[f1].isCheck == '1' && listDatas != undefined && listDatas != null) {
  5922. for (let f2 = 0; f2 < listDatas.length; f2++) {
  5923. if (listDatas[f2].answerType == 'dx') {
  5924. let listDatas1 = listDatas[f2].collectionOptionList;
  5925. for (let f11 = 0; f11 < listDatas1.length; f11++) {
  5926. let listDatas2 = listDatas1[f11].collectionItems;
  5927. if (
  5928. listDatas1[f11].isCheck == '1' &&
  5929. listDatas2 != undefined &&
  5930. listDatas2 != null
  5931. ) {
  5932. for (let f10 = 0; f10 < listDatas2.length; f10++) {
  5933. if (
  5934. listDatas2[f10].answerType == 'sz' ||
  5935. listDatas2[f10].answerType == 'wb' ||
  5936. listDatas2[f10].answerType == 'sm' ||
  5937. listDatas2[f10].answerType == 'date' ||
  5938. listDatas2[f10].answerType == 'tel' ||
  5939. listDatas2[f10].answerType == 'tel_send_code' ||
  5940. listDatas2[f10].answerType == 'check_code' ||
  5941. listDatas2[f10].answerType == 'nyr' ||
  5942. listDatas2[f10].answerType == 'dhwb' ||
  5943. listDatas2[f10].answerType == 'xm' ||
  5944. listDatas2[f10].answerType == 'tel_confirm'
  5945. ) {
  5946. formData.collectionAnswers.push({
  5947. collectionId: listDatas2[f10].collectionId,
  5948. itemName: listDatas2[f10].collectionName,
  5949. collectionType: listDatas2[f10].collectionType,
  5950. collectionOptionId:
  5951. listDatas2[f10].collectionOptionList[0].collectionOptionId,
  5952. answerType: listDatas2[f10].answerType,
  5953. answerValue: listDatas2[f10].collectionOptionList[0].answerValue,
  5954. parentOptionId: listDatas2[f10].parentOptionId,
  5955. parentCollectionId: listDatas2[f10].parentCollectionId,
  5956. secondCollectionId: listDatas2[f10].secondCollectionId,
  5957. thirdCollectionId: listDatas2[f10].thirdCollectionId,
  5958. fourthCollectionId: listDatas2[f10].fourthCollectionId,
  5959. firstCollectionId: listDatas2[f10].firstCollectionId,
  5960. isMust: listDatas2[f10].isMust,
  5961. success: listDatas2[f10].success,
  5962. });
  5963. }
  5964. if (
  5965. listDatas2[f10].answerType == 'dx' ||
  5966. listDatas2[f10].answerType == 'duox'
  5967. ) {
  5968. let onList = listDatas2[f10].collectionOptionList;
  5969. onList.forEach((item) => {
  5970. if (item.isCheck == 1) {
  5971. formData.collectionAnswers.push({
  5972. collectionId: item.collectionId,
  5973. itemName: item.collectionOption,
  5974. collectionType: listDatas2[f10].collectionType,
  5975. collectionOptionId: item.collectionOptionId,
  5976. parentOptionId: item.parentOptionId,
  5977. parentCollectionId: item.parentCollectionId,
  5978. secondCollectionId: listDatas2[f10].secondCollectionId,
  5979. firstCollectionId: listDatas2[f10].firstCollectionId,
  5980. thirdCollectionId: listDatas2[f10].thirdCollectionId,
  5981. fourthCollectionId: listDatas2[f10].fourthCollectionId,
  5982. answerType: listDatas2[f10].answerType,
  5983. answerValue: 'Y',
  5984. });
  5985. }
  5986. });
  5987. }
  5988. }
  5989. }
  5990. }
  5991. }
  5992. }
  5993. }
  5994. }
  5995. }
  5996. }
  5997. for (let f = 0; f < this.collectionItemList.length; f++) {
  5998. if (this.collectionItemList[f].answerType == 'dx') {
  5999. let listData = this.collectionItemList[f].collectionOptionList;
  6000. for (let f1 = 0; f1 < listData.length; f1++) {
  6001. let listDatas = listData[f1].collectionItems;
  6002. if (listData[f1].isCheck == '1' && listDatas != undefined && listDatas != null) {
  6003. for (let f2 = 0; f2 < listDatas.length; f2++) {
  6004. if (listDatas[f2].answerType == 'dx') {
  6005. let listDatas1 = listDatas[f2].collectionOptionList;
  6006. for (let f11 = 0; f11 < listDatas1.length; f11++) {
  6007. let listDatas2 = listDatas1[f11].collectionItems;
  6008. if (
  6009. listDatas1[f11].isCheck == '1' &&
  6010. listDatas2 != undefined &&
  6011. listDatas2 != null
  6012. ) {
  6013. for (let f10 = 0; f10 < listDatas2.length; f10++) {
  6014. if (listDatas2[f10].answerType == 'dx') {
  6015. let listDatasc4 = listDatas2[f10].collectionOptionList;
  6016. for (let c4 = 0; c4 < listDatasc4.length; c4++) {
  6017. let listc4 = listDatasc4[c4].collectionItems;
  6018. if (
  6019. listDatasc4[c4].isCheck == '1' &&
  6020. listDatasc4 != undefined &&
  6021. listDatasc4 != null &&
  6022. listc4 != null
  6023. ) {
  6024. for (let fc4 = 0; fc4 < listc4.length; fc4++) {
  6025. if (
  6026. listc4[fc4].answerType == 'sz' ||
  6027. listc4[fc4].answerType == 'wb' ||
  6028. listc4[fc4].answerType == 'sm' ||
  6029. listc4[fc4].answerType == 'date' ||
  6030. listc4[fc4].answerType == 'tel' ||
  6031. listc4[fc4].answerType == 'tel_send_code' ||
  6032. listc4[fc4].answerType == 'check_code' ||
  6033. listc4[fc4].answerType == 'nyr' ||
  6034. listc4[fc4].answerType == 'dhwb' ||
  6035. listc4[fc4].answerType == 'xm' ||
  6036. listc4[fc4].answerType == 'tel_confirm'
  6037. ) {
  6038. formData.collectionAnswers.push({
  6039. collectionId: listc4[fc4].collectionId,
  6040. itemName: listc4[fc4].collectionName,
  6041. collectionType: listc4[fc4].collectionType,
  6042. collectionOptionId:
  6043. listc4[fc4].collectionOptionList[0].collectionOptionId,
  6044. answerType: listc4[fc4].answerType,
  6045. answerValue: listc4[fc4].collectionOptionList[0].answerValue,
  6046. parentOptionId: listc4[fc4].parentOptionId,
  6047. parentCollectionId: listc4[fc4].parentCollectionId,
  6048. secondCollectionId: listc4[fc4].secondCollectionId,
  6049. thirdCollectionId: listc4[fc4].thirdCollectionId,
  6050. fourthCollectionId: listc4[fc4].fourthCollectionId,
  6051. firstCollectionId: listc4[fc4].firstCollectionId,
  6052. isMust: listc4[fc4].isMust,
  6053. success: listc4[fc4].success,
  6054. });
  6055. }
  6056. if (
  6057. listc4[fc4].answerType == 'dx' ||
  6058. listc4[fc4].answerType == 'duox'
  6059. ) {
  6060. let onList = listc4[fc4].collectionOptionList;
  6061. onList.forEach((item) => {
  6062. if (item.isCheck == 1) {
  6063. formData.collectionAnswers.push({
  6064. collectionId: item.collectionId,
  6065. itemName: item.collectionOption,
  6066. collectionType: listc4[fc4].collectionType,
  6067. collectionOptionId: item.collectionOptionId,
  6068. parentOptionId: listc4[fc4].parentOptionId,
  6069. parentCollectionId: listc4[fc4].parentCollectionId,
  6070. secondCollectionId: listc4[fc4].secondCollectionId,
  6071. firstCollectionId: listc4[fc4].firstCollectionId,
  6072. thirdCollectionId: listc4[fc4].thirdCollectionId,
  6073. fourthCollectionId: listc4[fc4].fourthCollectionId,
  6074. answerType: listc4[fc4].answerType,
  6075. answerValue: 'Y',
  6076. });
  6077. }
  6078. });
  6079. }
  6080. }
  6081. }
  6082. }
  6083. }
  6084. }
  6085. }
  6086. }
  6087. }
  6088. }
  6089. }
  6090. }
  6091. }
  6092. }
  6093. for (let f = 0; f < this.collectionItemList.length; f++) {
  6094. if (this.collectionItemList[f].answerType == 'dx') {
  6095. let listData = this.collectionItemList[f].collectionOptionList;
  6096. for (let f1 = 0; f1 < listData.length; f1++) {
  6097. let listDatas = listData[f1].collectionItems;
  6098. if (listData[f1].isCheck == '1' && listDatas != undefined && listDatas != null) {
  6099. for (let f2 = 0; f2 < listDatas.length; f2++) {
  6100. if (listDatas[f2].answerType == 'dx') {
  6101. let listDatas1 = listDatas[f2].collectionOptionList;
  6102. for (let f11 = 0; f11 < listDatas1.length; f11++) {
  6103. let listDatas2 = listDatas1[f11].collectionItems;
  6104. if (
  6105. listDatas1[f11].isCheck == '1' &&
  6106. listDatas2 != undefined &&
  6107. listDatas2 != null
  6108. ) {
  6109. for (let f10 = 0; f10 < listDatas2.length; f10++) {
  6110. if (listDatas2[f10].answerType == 'dx') {
  6111. let listDatasc4 = listDatas2[f10].collectionOptionList;
  6112. for (let c4 = 0; c4 < listDatasc4.length; c4++) {
  6113. let listc4 = listDatasc4[c4].collectionItems;
  6114. if (
  6115. listDatasc4[c4].isCheck == '1' &&
  6116. listDatasc4 != undefined &&
  6117. listDatasc4 != null &&
  6118. listc4 != null
  6119. ) {
  6120. for (let fc4 = 0; fc4 < listc4.length; fc4++) {
  6121. if (listc4[fc4].answerType == 'dx') {
  6122. let listDatasc5 = listc4[fc4].collectionOptionList;
  6123. for (let c5 = 0; c5 < listDatasc5.length; c5++) {
  6124. let listc5 = listDatasc5[c5].collectionItems;
  6125. if (
  6126. listDatasc5[c5].isCheck == '1' &&
  6127. listDatasc5 != undefined &&
  6128. listDatasc5 != null &&
  6129. listc5 != null
  6130. ) {
  6131. for (let fc5 = 0; fc5 < listc5.length; fc5++) {
  6132. if (
  6133. listc5[fc5].answerType == 'sz' ||
  6134. listc5[fc5].answerType == 'wb' ||
  6135. listc5[fc5].answerType == 'sm' ||
  6136. listc5[fc5].answerType == 'date' ||
  6137. listc5[fc5].answerType == 'tel' ||
  6138. listc5[fc5].answerType == 'tel_send_code' ||
  6139. listc5[fc5].answerType == 'check_code' ||
  6140. listc5[fc5].answerType == 'nyr' ||
  6141. listc5[fc5].answerType == 'dhwb' ||
  6142. listc5[fc5].answerType == 'xm' ||
  6143. listc5[fc5].answerType == 'tel_confirm'
  6144. ) {
  6145. formData.collectionAnswers.push({
  6146. collectionId: listc5[fc5].collectionId,
  6147. itemName: listc5[fc5].collectionName,
  6148. collectionType: listc5[fc5].collectionType,
  6149. collectionOptionId:
  6150. listc5[fc5].collectionOptionList[0]
  6151. .collectionOptionId,
  6152. answerType: listc5[fc5].answerType,
  6153. answerValue:
  6154. listc5[fc5].collectionOptionList[0].answerValue,
  6155. parentOptionId: listc5[fc5].parentOptionId,
  6156. parentCollectionId: listc5[fc5].parentCollectionId,
  6157. secondCollectionId: listc5[fc5].secondCollectionId,
  6158. thirdCollectionId: listc5[fc5].thirdCollectionId,
  6159. fourthCollectionId: listc5[fc5].fourthCollectionId,
  6160. firstCollectionId: listc5[fc5].firstCollectionId,
  6161. isMust: listc5[fc5].isMust,
  6162. success: listc5[fc5].success,
  6163. });
  6164. }
  6165. if (
  6166. listc5[fc5].answerType == 'dx' ||
  6167. listc5[fc5].answerType == 'duox'
  6168. ) {
  6169. let onList = listc5[fc5].collectionOptionList;
  6170. onList.forEach((item) => {
  6171. if (item.isCheck == 1) {
  6172. formData.collectionAnswers.push({
  6173. collectionId: item.collectionId,
  6174. itemName: item.collectionOption,
  6175. collectionType: listc5[fc5].collectionType,
  6176. collectionOptionId: item.collectionOptionId,
  6177. parentOptionId: listc5[fc5].parentOptionId,
  6178. parentCollectionId:
  6179. listc5[fc5].parentCollectionId,
  6180. secondCollectionId:
  6181. listc5[fc5].secondCollectionId,
  6182. firstCollectionId: listc5[fc5].firstCollectionId,
  6183. thirdCollectionId: listc5[fc5].thirdCollectionId,
  6184. fourthCollectionId:
  6185. listc5[fc5].fourthCollectionId,
  6186. answerType: listc5[fc5].answerType,
  6187. answerValue: 'Y',
  6188. });
  6189. }
  6190. });
  6191. }
  6192. }
  6193. }
  6194. }
  6195. }
  6196. }
  6197. }
  6198. }
  6199. }
  6200. }
  6201. }
  6202. }
  6203. }
  6204. }
  6205. }
  6206. }
  6207. }
  6208. }
  6209. } else if (this.$route.query.taskType == 2) {
  6210. for (let dy = 0; dy < this.tableData1.length; dy++) {
  6211. if (this.tableData1[dy].xdjhchjj != '') {
  6212. if (
  6213. this.tableData1[dy].xdjhyj == '' ||
  6214. this.tableData1[dy].ygnhj == '' ||
  6215. this.tableData1[dy].xdjhchjj.split('.')[1] == ''
  6216. ) {
  6217. this.$dialog.alert({
  6218. title: '系统提示',
  6219. message: '请完善' + this.tableData1[dy].collectionName + '信息或促后竞价格式不正确',
  6220. });
  6221. return false;
  6222. }
  6223. }
  6224. if (this.tableData1[dy].xdjhyj != '') {
  6225. if (this.tableData1[dy].xdjhchjj == '' || this.tableData1[dy].ygnhj == '') {
  6226. this.$dialog.alert({
  6227. title: '系统提示',
  6228. message: '请完善' + this.tableData1[dy].collectionName + '信息',
  6229. });
  6230. return false;
  6231. }
  6232. }
  6233. if (this.tableData1[dy].ygnhj != '') {
  6234. if (this.tableData1[dy].xdjhchjj == '' || this.tableData1[dy].xdjhyj == '') {
  6235. this.$dialog.alert({
  6236. title: '系统提示',
  6237. message: '请完善' + this.tableData1[dy].collectionName + '信息',
  6238. });
  6239. return false;
  6240. }
  6241. }
  6242. }
  6243. for (var d = 0; d < this.tableData1.length; d++) {
  6244. for (var dd = 0; dd < this.tableData1[d].collectionOptionList.length; dd++) {
  6245. if (dd == 0) {
  6246. formData.collectionAnswers.push({
  6247. collectionId: this.tableData1[d].collectionId,
  6248. itemName: this.tableData1[d].collectionName,
  6249. collectionType: 'chanpin',
  6250. collectionOptionId: this.tableData1[d].collectionOptionList[dd].collectionOptionId,
  6251. answerType: 'sz',
  6252. answerValue: this.tableData1[d].xdjhyj,
  6253. });
  6254. }
  6255. if (dd == 1) {
  6256. formData.collectionAnswers.push({
  6257. collectionId: this.tableData1[d].collectionId,
  6258. itemName: this.tableData1[d].collectionName,
  6259. collectionType: 'chanpin',
  6260. collectionOptionId: this.tableData1[d].collectionOptionList[dd].collectionOptionId,
  6261. answerType: 'sz',
  6262. answerValue: this.tableData1[d].xdjhchjj,
  6263. });
  6264. }
  6265. if (dd == 2) {
  6266. formData.collectionAnswers.push({
  6267. collectionId: this.tableData1[d].collectionId,
  6268. itemName: this.tableData1[d].collectionName,
  6269. collectionType: 'chanpin',
  6270. collectionOptionId: this.tableData1[d].collectionOptionList[dd].collectionOptionId,
  6271. answerType: 'sz',
  6272. answerValue: this.tableData1[d].ygnhj,
  6273. });
  6274. }
  6275. }
  6276. }
  6277. } else {
  6278. for (var d = 0; d < this.tableData1.length; d++) {
  6279. for (var dd = 0; dd < this.tableData1[d].collectionOptionList.length; dd++) {
  6280. formData.collectionAnswers.push({
  6281. collectionId: this.tableData1[d].collectionId,
  6282. itemName: this.tableData1[d].collectionName,
  6283. collectionType: 'wuliao',
  6284. collectionOptionId: this.tableData1[d].collectionOptionList[dd].collectionOptionId,
  6285. answerType: 'sz',
  6286. answerValue: this.tableData1[d].value,
  6287. });
  6288. }
  6289. }
  6290. }
  6291. // 特殊题型判断是否通过
  6292. if (!this.validatorFlag) return;
  6293. // 调色机扫码是否正确
  6294. if (!this.filterFormData(formData)) {
  6295. this.$dialog.alert({
  6296. title: '提示',
  6297. message: '扫码结果不一致,请重新扫码或选择扫码异常',
  6298. });
  6299. return;
  6300. }
  6301. if (this.flagclick) {
  6302. this.flagclick = false;
  6303. this.timer = null;
  6304. this.timer = setTimeout(() => {
  6305. this.flagclick = true;
  6306. }, 2000);
  6307. var telVerify = true;
  6308. var telName = '';
  6309. formData.collectionAnswers.forEach((item) => {
  6310. if (
  6311. item.answerType == 'tel' &&
  6312. !/^1[123456789]\d{9}$/.test(item.answerValue) &&
  6313. item.answerValue != ''
  6314. ) {
  6315. telVerify = false;
  6316. telName = item.itemName + '格式错误';
  6317. }
  6318. });
  6319. if (!telVerify) {
  6320. this.$toast(telName);
  6321. } else {
  6322. if (!this.wuliaoMust) {
  6323. formData.collectionAnswers = [];
  6324. }
  6325. // 仍要上传
  6326. if (this.stillDistribute) {
  6327. formData.stillDistribute = true;
  6328. }
  6329. addCollectionAnswer(formData).then((res) => {
  6330. if (res.code == 200) {
  6331. localStorage.setItem('getRequestFlage', 'true');
  6332. this.$router.go(-1);
  6333. } else {
  6334. if (res.data) {
  6335. this.$dialog
  6336. .confirm({
  6337. title: '提示',
  6338. message: res.msg,
  6339. confirmButtonText: '仍要发放',
  6340. })
  6341. .then(() => {
  6342. this.flagclick = true;
  6343. this.stillDistribute = true;
  6344. this.onSubmit();
  6345. });
  6346. } else {
  6347. this.$dialog.alert({
  6348. title: '系统提示',
  6349. message: res.msg,
  6350. });
  6351. }
  6352. }
  6353. });
  6354. }
  6355. }
  6356. },
  6357. filterFormData(formData) {
  6358. let collectionAnswers = formData.collectionAnswers;
  6359. let SMObj = collectionAnswers.find(
  6360. (item) => item.answerType == 'sm' && item.isMust == '0' && !item.success,
  6361. );
  6362. if (SMObj) {
  6363. return false;
  6364. } else {
  6365. return true;
  6366. }
  6367. },
  6368. // 发送验证码
  6369. sendCode(val) {
  6370. let answerValue = '';
  6371. if (val.collectionOptionList && val.collectionOptionList.length) {
  6372. answerValue = val.collectionOptionList[0].answerValue;
  6373. } else {
  6374. answerValue = val.answerValue;
  6375. }
  6376. if (!/^1[123456789]\d{9}$/.test(answerValue) || answerValue == '') {
  6377. this.$toast(val.collectionName + '格式错误');
  6378. return;
  6379. }
  6380. if (this.time) return;
  6381. clearInterval(this.time);
  6382. this.timeNum = 60;
  6383. this.sendCodeFun(
  6384. {
  6385. type: '1', //String 调用类型:1:发送验证码 2:校验验证码
  6386. phone: answerValue, //String 手机号
  6387. verification: '', //String 手机号验证码
  6388. },
  6389. () => {
  6390. this.time = setInterval(() => {
  6391. this.timeNum--;
  6392. if (this.timeNum <= 0) {
  6393. clearInterval(this.time);
  6394. this.time = null;
  6395. }
  6396. }, 1000);
  6397. this.$toast('发送成功');
  6398. },
  6399. );
  6400. },
  6401. telConfirm(val) {
  6402. let item = '';
  6403. let answerValue = '';
  6404. if (val.answerValue != null) {
  6405. answerValue = val.answerValue;
  6406. item = val;
  6407. } else if (
  6408. val.collectionOptionList &&
  6409. val.collectionOptionList.length &&
  6410. val.collectionOptionList[0].answerValue
  6411. ) {
  6412. answerValue = val.collectionOptionList[0].answerValue;
  6413. item = val.collectionOptionList[0];
  6414. }
  6415. if (!/^1[123456789]\d{9}$/.test(answerValue) || answerValue == '') {
  6416. this.$toast(val.collectionName + '格式错误');
  6417. return;
  6418. }
  6419. confirmPhone({
  6420. phone: answerValue, // string 电话
  6421. visitId: this.visitId, // Long 拜访id
  6422. taskId: this.taskId, // Long 任务id
  6423. collectionId: item.collectionId, // Long 采集项id
  6424. }).then((res) => {
  6425. if (res.code == 200) {
  6426. this.verificationPassedPhoneNum = answerValue;
  6427. this.confirmed = true;
  6428. this.$toast('确认成功');
  6429. }
  6430. });
  6431. },
  6432. verification(item, collectionItems) {
  6433. let answerValue = '';
  6434. if (item.collectionOptionList && item.collectionOptionList.length) {
  6435. answerValue = item.collectionOptionList[0].answerValue;
  6436. } else {
  6437. answerValue = item.answerValue;
  6438. }
  6439. // 验证码
  6440. if (answerValue == '') {
  6441. return;
  6442. }
  6443. let telSendCode = collectionItems.find((res) => {
  6444. if (res.answerType == 'tel_send_code') {
  6445. return res;
  6446. }
  6447. });
  6448. // 手机号
  6449. let sendPhone = '';
  6450. if (telSendCode.collectionOptionList && telSendCode.collectionOptionList.length) {
  6451. sendPhone = telSendCode.collectionOptionList[0].answerValue;
  6452. } else {
  6453. sendPhone = telSendCode.answerValue;
  6454. }
  6455. if (sendPhone == '') {
  6456. return;
  6457. }
  6458. this.sendCodeFun(
  6459. {
  6460. type: '2', //String 调用类型:1:发送验证码 2:校验验证码
  6461. phone: sendPhone, //String 手机号
  6462. verification: answerValue, //String 手机号验证码
  6463. },
  6464. (res) => {
  6465. this.verificationPassedPhoneNum = sendPhone;
  6466. if (res.data) {
  6467. this.$toast('验证成功');
  6468. } else {
  6469. this.$dialog
  6470. .confirm({
  6471. title: '提示',
  6472. message: '验证码错误',
  6473. showCancelButton: false,
  6474. })
  6475. .then(() => {});
  6476. }
  6477. },
  6478. );
  6479. },
  6480. sendCodeFun(params, callback) {
  6481. sendAndCheckVerCode(params).then((res) => {
  6482. if (res.code == 200) {
  6483. callback && callback(res);
  6484. }
  6485. });
  6486. },
  6487. getNyr(val, date) {
  6488. this.activatNyrItem = val;
  6489. if (date && date != '') {
  6490. let time = date.split('-');
  6491. this.currentDate = new Date(time[0], Number(time[1]) - 1, time[2]);
  6492. } else {
  6493. this.currentDate = new Date(1945, 0, 1);
  6494. }
  6495. this.datetimeShowPicker = true;
  6496. },
  6497. datetimeOnConfirm(time) {
  6498. this.$set(this.activatNyrItem, 'answerValue', this.parseTime(time, '{y}-{m}-{d}'));
  6499. this.datetimeShowPicker = false;
  6500. },
  6501. onClickLeft() {
  6502. this.$router.go(-1);
  6503. },
  6504. destroyed() {
  6505. if (this.time) clearInterval(this.time);
  6506. },
  6507. },
  6508. };
  6509. </script>
  6510. <style scoped>
  6511. .container {
  6512. background-color: white;
  6513. }
  6514. .deviceCode {
  6515. font-size: 16px;
  6516. padding: 12px;
  6517. background-color: white;
  6518. margin: 0 12px;
  6519. border-radius: 5px;
  6520. position: relative;
  6521. overflow: hidden;
  6522. display: flex;
  6523. flex-direction: row;
  6524. align-items: center;
  6525. }
  6526. .vertical {
  6527. background-color: #2b2f3a;
  6528. height: 14px;
  6529. width: 8px;
  6530. border-radius: 40px;
  6531. margin-right: 10px;
  6532. /* position: absolute;
  6533. left: -3px;
  6534. top: 50px; */
  6535. }
  6536. .van-f-red {
  6537. color: red;
  6538. width: 8px;
  6539. display: inline-block;
  6540. line-height: 26px;
  6541. }
  6542. .formLabel {
  6543. margin-left: 20px;
  6544. border-bottom: 1px solid #f1f1f1;
  6545. }
  6546. .formLabel .van-cell {
  6547. padding: 10px 0;
  6548. }
  6549. .formLabel .van-cell::after {
  6550. border: 0;
  6551. }
  6552. .formLabel .van-field {
  6553. border: 1px solid #f1f1f1;
  6554. padding: 6px;
  6555. width: 100%;
  6556. border-radius: 4px;
  6557. overflow: hidden;
  6558. }
  6559. .formLabel .van-field__control {
  6560. padding: 0 10px;
  6561. }
  6562. .formLabel .formLabeltitle {
  6563. position: absolute;
  6564. top: 8px;
  6565. }
  6566. .lineGrey {
  6567. height: 10px;
  6568. width: 100%;
  6569. background: #f1f1f1;
  6570. }
  6571. .z-checkbox .van-radio {
  6572. padding: 6px 0;
  6573. }
  6574. .z-cell .van-cell__title {
  6575. font-size: 16px;
  6576. }
  6577. </style>
  6578. <style lang="scss">
  6579. .addStoreVisit {
  6580. .table-headermd {
  6581. font-size: 12px;
  6582. text-align: center;
  6583. position: initial;
  6584. width: 98% !important;
  6585. margin: 0 auto;
  6586. border-right: 0;
  6587. }
  6588. .table-headermd .el-table__header,
  6589. .table-headermd .el-table__body {
  6590. width: 100% !important;
  6591. }
  6592. .table-headermd col:nth-child(4) {
  6593. width: 5.6rem;
  6594. }
  6595. .table-headermd col:nth-child(2),
  6596. .table-headermd col:nth-child(3) {
  6597. width: 5.6rem;
  6598. }
  6599. .table-headermdwl col:nth-child(2) {
  6600. width: auto;
  6601. }
  6602. .table-headermdwl col:nth-child(3) {
  6603. width: 4.6rem;
  6604. }
  6605. .table-headermd .van-cell {
  6606. padding: 0 4px;
  6607. height: 100%;
  6608. }
  6609. .table-headermd th.el-table__cell > .cell {
  6610. padding: 0 4px;
  6611. text-align: center;
  6612. }
  6613. .table-headermd th.el-table__cell:first-child > .cell {
  6614. // text-align: left;
  6615. }
  6616. .table-headermd th.el-table__cell {
  6617. background-color: #1989fa;
  6618. color: #fff;
  6619. }
  6620. .table-headermd .el-table__cell {
  6621. padding: 4px 0;
  6622. }
  6623. .table-headermd.el-table .cell {
  6624. padding: 0;
  6625. }
  6626. .table-headermd .tipTitle {
  6627. overflow: hidden;
  6628. text-overflow: ellipsis;
  6629. display: -webkit-box;
  6630. -webkit-box-orient: vertical;
  6631. -webkit-line-clamp: 2;
  6632. }
  6633. .table-headermd::before {
  6634. height: 0;
  6635. }
  6636. .xing {
  6637. color: red;
  6638. padding-left: 4px;
  6639. }
  6640. .formLabel .van-radio__label,
  6641. .formLabel .van-checkbox__label {
  6642. font-size: 1.4rem;
  6643. }
  6644. .table-headermd .cell,
  6645. .el-table--border .el-table__cell:first-child .cell {
  6646. padding: 0 4px;
  6647. }
  6648. .isTableMust {
  6649. padding: 4px;
  6650. color: #999;
  6651. margin: 0;
  6652. margin-top: -10px;
  6653. }
  6654. .mobile-input .van-field__control {
  6655. font-size: 12px;
  6656. color: #999;
  6657. border: 0;
  6658. }
  6659. .formLabel .mobile-input {
  6660. border: 0 !important;
  6661. }
  6662. .addStoreVisit .van-dialog {
  6663. overflow: visible;
  6664. }
  6665. }
  6666. .addStoreVisit {
  6667. .sendCode {
  6668. border: none !important;
  6669. input {
  6670. border: 1px solid #f1f1f1;
  6671. height: 35px;
  6672. }
  6673. }
  6674. .ruleMessage {
  6675. color: red;
  6676. font-size: 12px;
  6677. margin: 3px 0;
  6678. }
  6679. }
  6680. </style>