addStoreVisit.vue 348 KB

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