addStoreVisit.vue 243 KB

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