addStoreVisit.vue 274 KB

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