addStoreVisit.vue 346 KB

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