addStoreVisit.vue 310 KB

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