addStoreVisit.vue 308 KB

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