addStoreVisit111.vue 257 KB

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