addStoreVisit.vue 285 KB

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