visitTask.vue 258 KB

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