addStoreVisit.vue 272 KB

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