addStoreVisit.vue 257 KB

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