addStoreVisit.vue 257 KB

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