addStoreVisit.vue 268 KB

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