addStoreVisit.vue 265 KB

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