visitTask.vue 257 KB

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