addStoreVisit.vue 284 KB

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