addStoreVisit.vue 310 KB

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