addStoreVisit.vue 344 KB

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