addStoreVisit.vue 247 KB

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