addStoreVisit.vue 257 KB

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