addStoreVisit.vue 255 KB

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