addStoreVisit.vue 258 KB

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