addStoreVisit.vue 269 KB

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