addStoreVisit.vue 127 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926
  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. <!-- 主体内容-->
  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="lineGrey"></div>
  30. <div class="deviceCode" v-if="showCode">
  31. <div class="vertical"></div>
  32. <p>设备编号:{{ deviceCode }}</p>
  33. <p>投放编号:{{ putInCode }}</p>
  34. </div>
  35. <div class="lineGrey" v-if="showCode"></div>
  36. <div
  37. v-if="taskType == 3"
  38. class="container"
  39. style="width: 100%; margin: 0 auto; padding: 10px 0">
  40. <div v-if="insert" style="margin: 10px">
  41. <van-radio-group v-model="wuliaoMust" direction="horizontal">
  42. <van-radio :name="false">不需要物料</van-radio>
  43. <van-radio :name="true">需要物料</van-radio>
  44. </van-radio-group>
  45. </div>
  46. <el-table
  47. v-if="wuliaoMust"
  48. :data="tableData1"
  49. border
  50. class="table-headermd table-headermdwl"
  51. style="width: 100%"
  52. :span-method="objectSpanMethod">
  53. <el-table-column label="物料类型" prop="signDictype">
  54. <template slot-scope="scope">
  55. <span class="tipTitle" @click="tipTitle(scope.row.signDictype)">{{
  56. scope.row.signDictype
  57. }}</span>
  58. </template>
  59. </el-table-column>
  60. <el-table-column label="物料名称" prop="collectionName">
  61. <template slot-scope="scope">
  62. <span class="tipTitle" @click="tipTitle(scope.row.collectionName)">{{
  63. scope.row.collectionName
  64. }}</span>
  65. </template>
  66. </el-table-column>
  67. <el-table-column label="库存" prop="inventoryNum" />
  68. <el-table-column class="t-center" prop="value">
  69. <template slot="header" class="t-center">
  70. <span>发放量</span><span class="xing">*</span>
  71. </template>
  72. <template slot-scope="scope">
  73. <van-field
  74. v-model="scope.row.value"
  75. placeholder="请输入"
  76. type="number"
  77. @blur="inputbluwl(scope.row.value, scope.$index, '2')" />
  78. <!-- v-if="scope.row.inventoryNum>0"-->
  79. <!-- <span v-if="scope.row.inventoryNum<1">{{scope.row.value}}</span>-->
  80. </template>
  81. </el-table-column>
  82. </el-table>
  83. </div>
  84. <div
  85. v-if="taskType == 2"
  86. class="container"
  87. style="width: 100%; margin: 0 auto; padding: 10px 0">
  88. <p v-if="infoShow == 0 && unManage != 0" class="isTableMust">
  89. <van-icon name="info-o" />&nbsp;以下产品列表全部必填!
  90. </p>
  91. <p v-if="infoShow == 2 && unManage != 0" class="isTableMust">
  92. <van-icon name="info-o" />&nbsp;以下产品列表至少填一条!
  93. </p>
  94. <p v-if="unManage == 0" class="isTableMust">
  95. <van-icon name="info-o" />&nbsp;请根据本店实际经营的竞品产品,反馈价格信息!
  96. </p>
  97. <el-table :data="tableData1" border class="table-headermd" style="width: 100%">
  98. <el-table-column label="产品名称" prop="collectionName">
  99. <template slot-scope="scope">
  100. <span class="tipTitle" @click="tipTitle(scope.row.collectionName)">{{
  101. scope.row.collectionName
  102. }}</span>
  103. </template>
  104. </el-table-column>
  105. <el-table-column prop="name">
  106. <template slot="header"> <span>进货原价</span><span class="xing">*</span> </template>
  107. <template slot-scope="scope">
  108. <van-field
  109. v-model="scope.row.xdjhyj"
  110. placeholder="请输入"
  111. type="number"
  112. @blur="inputblur(scope.row.xdjhyj, scope.$index, '0')" />
  113. </template>
  114. </el-table-column>
  115. <!--<el-table-column-->
  116. <!--prop="checked"-->
  117. <!--align="center"-->
  118. <!--width="74">-->
  119. <!--<template slot="header">-->
  120. <!--<span>不经营</span ><span style="color:red;padding-left: 4px;">*</span>-->
  121. <!--</template>-->
  122. <!--<template slot-scope="scope">-->
  123. <!--<el-checkbox v-model="scope.row.checked"></el-checkbox>-->
  124. <!--</template>-->
  125. <!--</el-table-column>-->
  126. <el-table-column class="t-center" prop="address">
  127. <template slot="header"> <span>促后净价</span><span class="xing">*</span> </template>
  128. <template slot-scope="scope">
  129. <van-field
  130. v-model="scope.row.xdjhchjj"
  131. placeholder="请输入"
  132. type="number"
  133. @input="inputblurs(scope.row.xdjhchjj, scope.$index, '1')" />
  134. </template>
  135. </el-table-column>
  136. <el-table-column class="t-center" prop="address">
  137. <template slot="header" class="t-center">
  138. <span>油工拿货价</span><span class="xing">*</span>
  139. </template>
  140. <template slot-scope="scope">
  141. <van-field
  142. v-model="scope.row.ygnhj"
  143. placeholder="请输入"
  144. type="number"
  145. @blur="inputblur(scope.row.ygnhj, scope.$index, '2')" />
  146. </template>
  147. </el-table-column>
  148. </el-table>
  149. <div v-if="unManage == 0" style="margin: 10px">
  150. <van-checkbox v-model="checked" shape="square">全部不经营</van-checkbox>
  151. </div>
  152. </div>
  153. <div
  154. v-if="taskType == 1"
  155. class="container"
  156. style="width: 94%; margin: 0 auto; border-radius: 6px">
  157. <van-form ref="tabstoreVal">
  158. <div v-for="(item, index) in collectionItemList" :key="index">
  159. <div v-if="item.answerType == 'sz'" class="formLabel z-cell">
  160. <van-cell>
  161. <template #title>
  162. <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.collectionName }}
  163. </template>
  164. <template #right-icon>
  165. <span v-if="item.isMustPicture == '0'" style="color: red">图片必填</span>
  166. <van-icon
  167. v-if="item.isPicture == '0'"
  168. color="#666"
  169. name="photograph"
  170. size="24"
  171. @click="imgClick(item, 'A', index)" />
  172. <!--<upload-img :uploadid="uploadid2" v-if="item.isValid==0" :imgArr="imgs" @newimgarr="newimgarr1"></upload-img>-->
  173. </template>
  174. </van-cell>
  175. <van-field
  176. v-model="item.answerValue"
  177. :placeholder="item.text"
  178. type="number"
  179. @input="numberFn(item, index, 'A')"></van-field>
  180. <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
  181. <van-field
  182. class="mobile-input"
  183. v-model="item.collectionOptionList[0].collectionOption"
  184. autosize
  185. readonly
  186. type="textarea" />
  187. </p>
  188. <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
  189. </div>
  190. <div v-if="item.answerType == 'date'" class="formLabel z-cell">
  191. <van-cell>
  192. <template #title>
  193. <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.collectionName }}
  194. </template>
  195. <template #right-icon>
  196. <span v-if="item.isMustPicture == '0'" style="color: red">图片必填</span>
  197. <van-icon
  198. v-if="item.isPicture == '0'"
  199. color="#666"
  200. name="photograph"
  201. size="24"
  202. @click="imgClick(item, 'A', index)" />
  203. <!--<upload-img :uploadid="uploadid2" v-if="item.isValid==0" :imgArr="imgs" @newimgarr="newimgarr1"></upload-img>-->
  204. </template>
  205. </van-cell>
  206. <van-field
  207. readonly
  208. clickable
  209. :value="item.answerValue"
  210. @click="showPickerTimeFn(index, 'A')" />
  211. <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
  212. <van-field
  213. class="mobile-input"
  214. v-model="item.collectionOptionList[0].collectionOption"
  215. autosize
  216. readonly
  217. type="textarea" />
  218. </p>
  219. <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
  220. </div>
  221. <div v-if="item.answerType == 'tel'" class="formLabel z-cell">
  222. <van-cell>
  223. <template #title>
  224. <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.collectionName }}
  225. </template>
  226. <template #right-icon>
  227. <span v-if="item.isMustPicture == '0'" style="color: red">图片必填</span>
  228. <van-icon
  229. v-if="item.isPicture == '0'"
  230. color="#666"
  231. name="photograph"
  232. size="24"
  233. @click="imgClick(item, 'A', index)" />
  234. <!--<upload-img :uploadid="uploadid2" v-if="item.isValid==0" :imgArr="imgs" @newimgarr="newimgarr1"></upload-img>-->
  235. </template>
  236. </van-cell>
  237. <van-field
  238. v-model="item.answerValue"
  239. :placeholder="item.text"
  240. type="tel"
  241. @blur="telFn(item, index, 'A')"></van-field>
  242. <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
  243. <van-field
  244. class="mobile-input"
  245. v-model="item.collectionOptionList[0].collectionOption"
  246. autosize
  247. readonly
  248. type="textarea" />
  249. </p>
  250. <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
  251. </div>
  252. <div v-if="item.answerType == 'zp'" class="formLabel z-cell">
  253. <van-cell>
  254. <template #title>
  255. <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.collectionName }}
  256. </template>
  257. <template #right-icon>
  258. <span v-if="item.isMustPicture == '0'" style="color: red">图片必填</span>
  259. <van-icon
  260. v-if="item.isPicture == 0"
  261. color="#666"
  262. name="photograph"
  263. size="24"
  264. @click="imgClick(item, 'A', index)" />
  265. </template>
  266. </van-cell>
  267. <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
  268. </div>
  269. <div v-if="item.answerType == 'wb'" class="formLabel z-cell">
  270. <van-cell>
  271. <template #title>
  272. <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.collectionName }}
  273. </template>
  274. <template #right-icon>
  275. <span v-if="item.isMustPicture == '0'" style="color: red">图片必填</span>
  276. <van-icon
  277. v-if="item.isPicture == 0"
  278. color="#666"
  279. name="photograph"
  280. size="24"
  281. @click="imgClick(item, 'A', index)" />
  282. </template>
  283. </van-cell>
  284. <van-field
  285. v-model="item.answerValue"
  286. :formatter="formatter"
  287. :placeholder="item.text"></van-field>
  288. <p
  289. style="
  290. color: #444;
  291. font-size: 12px;
  292. margin: 0;
  293. text-align: right;
  294. position: relative;
  295. ">
  296. <van-field
  297. class="mobile-input"
  298. v-model="item.collectionOptionList[0].collectionOption"
  299. autosize
  300. readonly
  301. type="textarea" />
  302. <span
  303. style="color: #00afff; position: absolute; top: 8px; right: 0px"
  304. v-if="item.showHistory == 1"
  305. @click="getCollectionShowHistory(item)"
  306. >回显历史</span
  307. >
  308. </p>
  309. <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
  310. </div>
  311. <div v-if="item.answerType == 'duox'" class="formLabel z-cell">
  312. <van-cell>
  313. <template #title>
  314. <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.collectionName }}
  315. </template>
  316. <template #right-icon>
  317. <span v-if="item.isMustPicture == '0'" style="color: red">图片必填</span>
  318. <van-icon
  319. v-if="item.isPicture == 0"
  320. color="#666"
  321. name="photograph"
  322. size="24"
  323. @click="imgClick(item, 'A', index)" />
  324. </template>
  325. </van-cell>
  326. <z-checkbox
  327. :answerType="item.answerType"
  328. :checkboxval="item.answerValue"
  329. :collectionType="item.collectionType"
  330. :textc="item.collectionCode"
  331. :childindex="index"
  332. level="A"
  333. :zCheckboxcolumns="item.collectionOptionList"
  334. @zSelectVal="zSelectVal"></z-checkbox>
  335. <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
  336. </div>
  337. <div v-if="item.answerType == 'sm'" class="formLabel z-cell">
  338. <van-cell>
  339. <template #title>
  340. <p style="margin: 0">
  341. <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.collectionName }}
  342. </p>
  343. <p @click="viewSM" style="font-size: 14px; margin: 0">
  344. 如何寻找调色机资产编码或投放编号&nbsp;<van-icon name="question-o" />
  345. </p>
  346. </template>
  347. <template #right-icon>
  348. <storeCode
  349. :tid="taskId"
  350. :cid="item.collectionId"
  351. :insert="insert"
  352. :code="equipmentCode"
  353. type="A"
  354. :index="index"
  355. @newcode="newcode"></storeCode>
  356. <!-- <span v-if="item.isMustPicture == '0'" style="color: red">图片必填</span>-->
  357. <!-- <van-icon-->
  358. <!-- v-if="item.isPicture == 0"-->
  359. <!-- color="#666"-->
  360. <!-- name="photograph"-->
  361. <!-- size="24"-->
  362. <!-- @click="imgClick(item,'A', index)"-->
  363. <!-- />-->
  364. </template>
  365. </van-cell>
  366. <div style="font-size: 14px" v-if="item.answerValue">
  367. <div v-if="item.success" style="color: green">
  368. <p v-if="equipmentCode">系统资产或投放编码:{{ equipmentCode }}</p>
  369. <p v-if="item.equipmentCode2">
  370. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{ item.equipmentCode2 }}
  371. </p>
  372. <span style="float: right; margin-top: -48px"
  373. ><van-icon name="passed" size="16" />&nbsp;一致</span
  374. >
  375. </div>
  376. <div v-if="!item.success" style="color: red">
  377. <p v-if="equipmentCode">系统资产或投放编码:{{ equipmentCode }}</p>
  378. <p v-if="item.equipmentCode2">
  379. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{ item.equipmentCode2 }}
  380. </p>
  381. <span style="float: right; margin-top: -48px"
  382. ><van-icon name="close" size="16" />&nbsp;不一致</span
  383. >
  384. </div>
  385. </div>
  386. <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
  387. </div>
  388. <div v-if="item.answerType == 'dx'" class="formLabel z-cell">
  389. <div>
  390. <van-cell>
  391. <template #title>
  392. <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.collectionName }}
  393. </template>
  394. <template #right-icon>
  395. <span v-if="item.isMustPicture == '0'" style="color: red">图片必填</span>
  396. <van-icon
  397. v-if="item.isPicture == 0"
  398. color="#666"
  399. name="photograph"
  400. size="24"
  401. @click="imgClick(item, 'A', index)" />
  402. </template>
  403. </van-cell>
  404. <z-radio
  405. :answerType="item.answerType"
  406. :collectionType="item.collectionType"
  407. :radio="item.answerValue"
  408. v-model="item.answerValue"
  409. :textc="item.collectionCode"
  410. childIndex4="B"
  411. :zRadiocolumns="item.collectionOptionList"
  412. :childindex="index"
  413. @zSelectVal="zSelectVal"></z-radio>
  414. <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
  415. <div v-for="(child, indexc) in item.collectionOptionList" :key="indexc">
  416. <div v-if="child.isCheck == 1">
  417. <div v-for="(childitem, childIndex) in child.collectionItems" :key="childIndex">
  418. <div v-if="childitem.answerType == 'wb'" class="formLabel z-cell">
  419. <van-cell>
  420. <template #title>
  421. <span v-if="childitem.isMust == 0" class="van-f-red">*</span
  422. >{{ childitem.collectionName }}
  423. </template>
  424. <template #right-icon>
  425. <span v-if="childitem.isMustPicture == '0'" style="color: red"
  426. >图片必填</span
  427. >
  428. <van-icon
  429. v-if="childitem.isPicture == 0"
  430. color="#666"
  431. name="photograph"
  432. size="24"
  433. @click="imgClick(childitem, 'B', index, childIndex)" />
  434. </template>
  435. </van-cell>
  436. <van-field
  437. v-model="childitem.collectionOptionList[0].answerValue"
  438. :formatter="formatter"
  439. :placeholder="childitem.text"></van-field>
  440. <p
  441. style="
  442. color: #444;
  443. font-size: 12px;
  444. margin: 0;
  445. text-align: right;
  446. position: relative;
  447. ">
  448. <van-field
  449. class="mobile-input"
  450. v-model="childitem.collectionOptionList[0].collectionOption"
  451. autosize
  452. readonly
  453. type="textarea" />
  454. <span
  455. style="color: #00afff; position: absolute; top: 8px; right: 0px"
  456. v-if="childitem.showHistory == 1"
  457. @click="getCollectionShowHistory(childitem)"
  458. >回显历史</span
  459. >
  460. </p>
  461. <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
  462. </div>
  463. <div v-if="childitem.answerType == 'sz'" class="formLabel z-cell">
  464. <van-cell>
  465. <template #title>
  466. <span v-if="childitem.isMust == 0" class="van-f-red">*</span
  467. >{{ childitem.collectionName }}
  468. </template>
  469. <template #right-icon>
  470. <span v-if="childitem.isMustPicture == '0'" style="color: red"
  471. >图片必填</span
  472. >
  473. <van-icon
  474. v-if="childitem.isPicture == '0'"
  475. color="#666"
  476. name="photograph"
  477. size="24"
  478. @click="imgClick(childitem, 'B', index, childIndex)" />
  479. <!--<upload-img :uploadid="uploadid2" v-if="item.isValid==0" :imgArr="imgs" @newimgarr="newimgarr1"></upload-img>-->
  480. </template>
  481. </van-cell>
  482. <van-field
  483. v-model="childitem.collectionOptionList[0].answerValue"
  484. :placeholder="item.text"
  485. type="number"
  486. @input="numberFn(childitem, index)"></van-field>
  487. <p
  488. style="
  489. color: #444;
  490. font-size: 12px;
  491. margin: 0;
  492. padding: 10px 0;
  493. text-align: right;
  494. ">
  495. <van-field
  496. class="mobile-input"
  497. v-model="childitem.collectionOptionList[0].collectionOption"
  498. autosize
  499. readonly
  500. type="textarea" />
  501. </p>
  502. <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
  503. </div>
  504. <div v-if="childitem.answerType == 'date'" class="formLabel z-cell">
  505. <van-cell>
  506. <template #title>
  507. <span v-if="childitem.isMust == 0" class="van-f-red">*</span
  508. >{{ childitem.collectionName }}
  509. </template>
  510. <template #right-icon>
  511. <span v-if="childitem.isMustPicture == '0'" style="color: red"
  512. >图片必填</span
  513. >
  514. <van-icon
  515. v-if="childitem.isPicture == '0'"
  516. color="#666"
  517. name="photograph"
  518. size="24"
  519. @click="imgClick(childitem, 'B', index, childIndex)" />
  520. <!--<upload-img :uploadid="uploadid2" v-if="item.isValid==0" :imgArr="imgs" @newimgarr="newimgarr1"></upload-img>-->
  521. </template>
  522. </van-cell>
  523. <van-field
  524. readonly
  525. clickable
  526. :value="childitem.collectionOptionList[0].answerValue"
  527. :placeholder="childitem.text"
  528. @click="showPickerTimeFn(index, 'B', indexc, childIndex)" />
  529. <p
  530. style="
  531. color: #444;
  532. font-size: 12px;
  533. margin: 0;
  534. padding: 10px 0;
  535. text-align: right;
  536. ">
  537. <van-field
  538. class="mobile-input"
  539. v-model="childitem.collectionOptionList[0].collectionOption"
  540. autosize
  541. readonly
  542. type="textarea" />
  543. </p>
  544. <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
  545. </div>
  546. <div v-if="childitem.answerType == 'tel'" class="formLabel z-cell">
  547. <van-cell>
  548. <template #title>
  549. <span v-if="childitem.isMust == 0" class="van-f-red">*</span
  550. >{{ childitem.collectionName }}
  551. </template>
  552. <template #right-icon>
  553. <span v-if="childitem.isMustPicture == '0'" style="color: red"
  554. >图片必填</span
  555. >
  556. <van-icon
  557. v-if="childitem.isPicture == '0'"
  558. color="#666"
  559. name="photograph"
  560. size="24"
  561. @click="imgClick(childitem, 'B', index, childIndex)" />
  562. <!--<upload-img :uploadid="uploadid2" v-if="item.isValid==0" :imgArr="imgs" @newimgarr="newimgarr1"></upload-img>-->
  563. </template>
  564. </van-cell>
  565. <van-field
  566. v-model="childitem.collectionOptionList[0].answerValue"
  567. :placeholder="item.text"
  568. type="tel"
  569. @input="telFn(childitem, index)"></van-field>
  570. <p
  571. style="
  572. color: #444;
  573. font-size: 12px;
  574. margin: 0;
  575. padding: 10px 0;
  576. text-align: right;
  577. ">
  578. <van-field
  579. class="mobile-input"
  580. v-model="childitem.collectionOptionList[0].collectionOption"
  581. autosize
  582. readonly
  583. type="textarea" />
  584. </p>
  585. <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
  586. </div>
  587. <div v-if="childitem.answerType == 'zp'" class="formLabel z-cell">
  588. <van-cell>
  589. <template #title>
  590. <span v-if="childitem.isMust == 0" class="van-f-red">*</span
  591. >{{ childitem.collectionName }}
  592. </template>
  593. <template #right-icon>
  594. <span v-if="childitem.isMustPicture == '0'" style="color: red"
  595. >图片必填</span
  596. >
  597. <van-icon
  598. v-if="childitem.isPicture == 0"
  599. color="#666"
  600. name="photograph"
  601. size="24"
  602. @click="imgClick(childitem, 'B', index, childIndex)" />
  603. </template>
  604. </van-cell>
  605. <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
  606. </div>
  607. <div v-if="childitem.answerType == 'duox'" class="formLabel z-cell">
  608. <van-cell>
  609. <template #title>
  610. <span v-if="childitem.isMust == 0" class="van-f-red">*</span
  611. >{{ childitem.collectionName }}
  612. </template>
  613. <template #right-icon>
  614. <span v-if="childitem.isMustPicture == '0'" style="color: red"
  615. >图片必填</span
  616. >
  617. <van-icon
  618. v-if="childitem.isPicture == 0"
  619. color="#666"
  620. name="photograph"
  621. size="24"
  622. @click="imgClick(childitem, 'B', index, childIndex)" />
  623. </template>
  624. </van-cell>
  625. <z-checkbox
  626. :answerType="childitem.answerType"
  627. :checkboxval="childitem.answerValue"
  628. :collectionType="childitem.collectionType"
  629. :textc="childitem.collectionCode"
  630. :zCheckboxcolumns="childitem.collectionOptionList"
  631. :childindex="index"
  632. :childindex1="indexc"
  633. :childindex2="childIndex"
  634. level="B"
  635. @zSelectVal="zSelectVal"></z-checkbox>
  636. <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
  637. </div>
  638. <div v-if="childitem.answerType == 'sm'" class="formLabel z-cell">
  639. <van-cell>
  640. <template #title>
  641. <p style="margin: 0">
  642. <span v-if="childitem.isMust == 0" class="van-f-red">*</span
  643. >{{ childitem.collectionName }}
  644. </p>
  645. <p @click="viewSM" style="font-size: 14px; margin: 0">
  646. 如何寻找调色机资产编码&nbsp;<van-icon name="question-o" />
  647. </p>
  648. </template>
  649. <template #right-icon>
  650. <storeCode
  651. :insert="insert"
  652. :code="equipmentCode"
  653. type="B"
  654. :index="index"
  655. :index1="indexc"
  656. :index2="childIndex"
  657. @newcode="newcode"></storeCode>
  658. </template>
  659. </van-cell>
  660. <div
  661. style="font-size: 14px"
  662. v-if="childitem.collectionOptionList[0].answerValue">
  663. <div v-if="childitem.success" style="color: green">
  664. <p v-if="equipmentCode">系统资产编码:{{ equipmentCode }}</p>
  665. <p v-if="childitem.equipmentCode2">
  666. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{ childitem.equipmentCode2 }}
  667. </p>
  668. <span style="float: right; margin-top: -48px"
  669. ><van-icon name="passed" size="16" />&nbsp;一致</span
  670. >
  671. </div>
  672. <div v-if="!childitem.success" style="color: red">
  673. <p v-if="equipmentCode">系统资产编码:{{ equipmentCode }}</p>
  674. <p v-if="childitem.equipmentCode2">
  675. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{ childitem.equipmentCode2 }}
  676. </p>
  677. <span style="float: right; margin-top: -48px"
  678. ><van-icon name="close" size="16" />&nbsp;不一致</span
  679. >
  680. </div>
  681. </div>
  682. <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
  683. </div>
  684. <div v-if="childitem.answerType == 'dx'" class="formLabel z-cell">
  685. <div>
  686. <van-cell>
  687. <template #title>
  688. <span v-if="childitem.isMust == 0" class="van-f-red">*</span
  689. >{{ childitem.collectionName }}
  690. </template>
  691. <template #right-icon>
  692. <span v-if="childitem.isMustPicture == '0'" style="color: red"
  693. >图片必填</span
  694. >
  695. <van-icon
  696. v-if="childitem.isPicture == 0"
  697. color="#666"
  698. name="photograph"
  699. size="24"
  700. @click="imgClick(childitem, 'B', index, childIndex)" />
  701. </template>
  702. </van-cell>
  703. <z-radio
  704. :answerType="childitem.answerType"
  705. :collectionType="childitem.collectionType"
  706. :radio="childitem.answerValue"
  707. :textc="childitem.collectionCode"
  708. v-model="childitem.answerValue"
  709. :childindex="index"
  710. :childindex1="indexc"
  711. childIndex4="A"
  712. :childindex2="childIndex"
  713. :zRadiocolumns="childitem.collectionOptionList"
  714. @zSelectVal="zSelectVal"></z-radio>
  715. <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
  716. <div
  717. v-for="(child1, indexc1) in childitem.collectionOptionList"
  718. :key="indexc1">
  719. <div v-if="child1.isCheck == 1">
  720. <div
  721. v-for="(childitem1, childIndex1) in child1.collectionItems"
  722. :key="childIndex1">
  723. <div v-if="childitem1.answerType == 'wb'" class="formLabel z-cell">
  724. <van-cell>
  725. <template #title>
  726. <span v-if="childitem1.isMust == 0" class="van-f-red">*</span
  727. >{{ childitem1.collectionName }}
  728. </template>
  729. <template #right-icon>
  730. <span v-if="childitem1.isMustPicture == '0'" style="color: red"
  731. >图片必填</span
  732. >
  733. <van-icon
  734. v-if="childitem1.isPicture == 0"
  735. color="#666"
  736. name="photograph"
  737. size="24"
  738. @click="
  739. imgClick(
  740. childitem1,
  741. 'C',
  742. index,
  743. childIndex,
  744. indexc,
  745. indexc1,
  746. childIndex1
  747. )
  748. " />
  749. </template>
  750. </van-cell>
  751. <van-field
  752. v-model="childitem1.collectionOptionList[0].answerValue"
  753. :formatter="formatter"
  754. :placeholder="childitem1.text"></van-field>
  755. <p
  756. style="
  757. color: #444;
  758. font-size: 12px;
  759. margin: 0;
  760. text-align: right;
  761. position: relative;
  762. ">
  763. <van-field
  764. class="mobile-input"
  765. v-model="childitem1.collectionOptionList[0].collectionOption"
  766. autosize
  767. readonly
  768. type="textarea" />
  769. <span
  770. style="color: #00afff; position: absolute; top: 8px; right: 0px"
  771. v-if="childitem1.showHistory == 1"
  772. @click="getCollectionShowHistory(childitem1)"
  773. >回显历史</span
  774. >
  775. </p>
  776. <delete-upload-img
  777. :imgs="childitem1.fileInfoList"></delete-upload-img>
  778. </div>
  779. <div v-if="childitem1.answerType == 'date'" class="formLabel z-cell">
  780. <van-cell>
  781. <template #title>
  782. <span v-if="childitem1.isMust == 0" class="van-f-red">*</span
  783. >{{ childitem1.collectionName }}
  784. </template>
  785. <template #right-icon>
  786. <span v-if="childitem1.isMustPicture == '0'" style="color: red"
  787. >图片必填</span
  788. >
  789. <van-icon
  790. v-if="childitem1.isPicture == 0"
  791. color="#666"
  792. name="photograph"
  793. size="24"
  794. @click="
  795. imgClick(
  796. childitem1,
  797. 'C',
  798. index,
  799. childIndex,
  800. indexc,
  801. indexc1,
  802. childIndex1
  803. )
  804. " />
  805. </template>
  806. </van-cell>
  807. <van-field
  808. readonly
  809. clickable
  810. :value="childitem1.collectionOptionList[0].answerValue"
  811. :placeholder="childitem1.text"
  812. @click="
  813. showPickerTimeFn(
  814. index,
  815. 'C',
  816. indexc,
  817. childIndex,
  818. indexc1,
  819. childIndex1
  820. )
  821. " />
  822. <p
  823. style="
  824. color: #444;
  825. font-size: 12px;
  826. margin: 0;
  827. text-align: right;
  828. position: relative;
  829. ">
  830. <van-field
  831. class="mobile-input"
  832. v-model="childitem1.collectionOptionList[0].collectionOption"
  833. autosize
  834. readonly
  835. type="textarea" />
  836. <span
  837. style="color: #00afff; position: absolute; top: 8px; right: 0px"
  838. v-if="childitem1.showHistory == 1"
  839. @click="getCollectionShowHistory(childitem1)"
  840. >回显历史</span
  841. >
  842. </p>
  843. <delete-upload-img
  844. :imgs="childitem1.fileInfoList"></delete-upload-img>
  845. </div>
  846. <div v-if="childitem1.answerType == 'sm'" class="formLabel z-cell">
  847. <van-cell>
  848. <template #title>
  849. <p style="margin: 0">
  850. <span v-if="childitem1.isMust == 0" class="van-f-red">*</span
  851. >{{ childitem1.collectionName }}
  852. </p>
  853. <p @click="viewSM" style="font-size: 14px; margin: 0">
  854. 如何寻找调色机资产编码&nbsp;<van-icon name="question-o" />
  855. </p>
  856. </template>
  857. <template #right-icon>
  858. <storeCode
  859. :insert="insert"
  860. :code="equipmentCode"
  861. type="C"
  862. :index="index"
  863. :index1="indexc"
  864. :index2="childIndex"
  865. :index3="indexc1"
  866. :index4="childIndex1"
  867. @newcode="newcode"></storeCode>
  868. </template>
  869. </van-cell>
  870. <div
  871. style="font-size: 14px"
  872. v-if="childitem1.collectionOptionList[0].answerValue">
  873. <div v-if="childitem1.success" style="color: green">
  874. <p v-if="equipmentCode">系统资产编码:{{ equipmentCode }}</p>
  875. <p v-if="childitem1.equipmentCode2">
  876. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{
  877. childitem1.equipmentCode2
  878. }}
  879. </p>
  880. <span style="float: right; margin-top: -48px"
  881. ><van-icon name="passed" size="16" />&nbsp;一致</span
  882. >
  883. </div>
  884. <div v-if="!childitem1.success" style="color: red">
  885. <p v-if="equipmentCode">系统资产编码:{{ equipmentCode }}</p>
  886. <p v-if="childitem1.equipmentCode2">
  887. &nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{
  888. childitem1.equipmentCode2
  889. }}
  890. </p>
  891. <span style="float: right; margin-top: -48px"
  892. ><van-icon name="close" size="16" />&nbsp;不一致</span
  893. >
  894. </div>
  895. </div>
  896. <delete-upload-img
  897. :imgs="childitem1.fileInfoList"></delete-upload-img>
  898. </div>
  899. <div v-if="childitem1.answerType == 'duox'" class="formLabel z-cell">
  900. <van-cell>
  901. <template #title>
  902. <span v-if="childitem1.isMust == 0" class="van-f-red">*</span
  903. >{{ childitem1.collectionName }}
  904. </template>
  905. <template #right-icon>
  906. <span v-if="childitem1.isMustPicture == '0'" style="color: red"
  907. >图片必填</span
  908. >
  909. <van-icon
  910. v-if="childitem1.isPicture == 0"
  911. color="#666"
  912. name="photograph"
  913. size="24"
  914. @click="
  915. imgClick(
  916. childitem1,
  917. 'C',
  918. index,
  919. childIndex,
  920. indexc,
  921. indexc1,
  922. childIndex1
  923. )
  924. " />
  925. </template>
  926. </van-cell>
  927. <z-checkbox
  928. :answerType="childitem1.answerType"
  929. :checkboxval="childitem1.answerValue"
  930. :collectionType="childitem1.collectionType"
  931. :textc="childitem1.collectionCode"
  932. :childindex="index"
  933. :childindex1="indexc"
  934. :childindex2="childIndex"
  935. :childindex3="indexc1"
  936. :childindex4="childIndex1"
  937. level="C"
  938. :zCheckboxcolumns="childitem1.collectionOptionList"
  939. @zSelectVal="zSelectVal"></z-checkbox>
  940. <delete-upload-img
  941. :imgs="childitem1.fileInfoList"></delete-upload-img>
  942. </div>
  943. <div v-if="childitem1.answerType == 'dx'" class="formLabel z-cell">
  944. <div>
  945. <van-cell>
  946. <template #title>
  947. <span v-if="childitem1.isMust == 0" class="van-f-red">*</span
  948. >{{ childitem1.collectionName }}
  949. </template>
  950. <template #right-icon>
  951. <span
  952. v-if="childitem1.isMustPicture == '0'"
  953. style="color: red"
  954. >图片必填</span
  955. >
  956. <van-icon
  957. v-if="childitem1.isPicture == 0"
  958. color="#666"
  959. name="photograph"
  960. size="24"
  961. @click="
  962. imgClick(
  963. childitem1,
  964. 'C',
  965. index,
  966. childIndex,
  967. indexc,
  968. indexc1,
  969. childIndex1
  970. )
  971. " />
  972. </template>
  973. </van-cell>
  974. <z-radio
  975. :answerType="childitem1.answerType"
  976. :collectionType="childitem1.collectionType"
  977. :radio="childitem1.answerValue"
  978. v-model="childitem1.answerValue"
  979. :textc="childitem1.collectionCode"
  980. :childindex="index"
  981. :childindex1="indexc"
  982. :childindex2="childIndex"
  983. :childindex3="indexc1"
  984. :childindex5="childIndex1"
  985. childIndex4="D"
  986. :zRadiocolumns="childitem1.collectionOptionList"
  987. @zSelectVal="zSelectVal"></z-radio>
  988. <delete-upload-img
  989. :imgs="childitem1.fileInfoList"></delete-upload-img>
  990. <div
  991. v-for="(child1, indexc2) in childitem1.collectionOptionList"
  992. :key="indexc2">
  993. <div v-if="child1.isCheck == 1">
  994. <div
  995. v-for="(childitem1, childIndex2) in child1.collectionItems"
  996. :key="childIndex2">
  997. <div
  998. v-if="childitem1.answerType == 'dx'"
  999. class="formLabel z-cell">
  1000. <div>
  1001. <van-cell>
  1002. <template #title>
  1003. <span
  1004. v-if="childitem1.isMust == 0"
  1005. class="van-f-red"
  1006. >*</span
  1007. >{{ childitem1.collectionName }}
  1008. </template>
  1009. <template #right-icon>
  1010. <span
  1011. v-if="childitem1.isMustPicture == '0'"
  1012. style="color: red"
  1013. >图片必填</span
  1014. >
  1015. <van-icon
  1016. v-if="childitem1.isPicture == 0"
  1017. color="#666"
  1018. name="photograph"
  1019. size="24"
  1020. @click="
  1021. imgClick(
  1022. childitem1,
  1023. 'C',
  1024. index,
  1025. childIndex,
  1026. indexc,
  1027. indexc1,
  1028. childIndex1,
  1029. indexc2,
  1030. childIndex2
  1031. )
  1032. " />
  1033. </template>
  1034. </van-cell>
  1035. <z-radio
  1036. :answerType="childitem1.answerType"
  1037. :collectionType="childitem1.collectionType"
  1038. :radio="childitem1.answerValue"
  1039. v-model="childitem1.answerValue"
  1040. :textc="childitem1.collectionCode"
  1041. :childindex="index"
  1042. :childindex1="indexc"
  1043. :childindex2="childIndex"
  1044. :childindex3="indexc1"
  1045. :childindex5="childIndex1"
  1046. :childindex6="indexc2"
  1047. :childindex7="childIndex2"
  1048. childIndex4="E"
  1049. :zRadiocolumns="childitem1.collectionOptionList"
  1050. @zSelectVal="zSelectVal"></z-radio>
  1051. <delete-upload-img
  1052. :imgs="childitem1.fileInfoList"></delete-upload-img>
  1053. </div>
  1054. </div>
  1055. </div>
  1056. </div>
  1057. </div>
  1058. </div>
  1059. </div>
  1060. <div v-if="childitem1.answerType == 'sz'" class="formLabel z-cell">
  1061. <van-cell>
  1062. <template #title>
  1063. <span v-if="childitem1.isMust == 0" class="van-f-red">*</span
  1064. >{{ childitem1.collectionName }}
  1065. </template>
  1066. <template #right-icon>
  1067. <span v-if="childitem1.isMustPicture == '0'" style="color: red"
  1068. >图片必填</span
  1069. >
  1070. <van-icon
  1071. v-if="childitem1.isPicture == '0'"
  1072. color="#666"
  1073. name="photograph"
  1074. size="24"
  1075. @click="
  1076. imgClick(
  1077. childitem1,
  1078. 'C',
  1079. index,
  1080. childIndex,
  1081. indexc,
  1082. indexc1,
  1083. childIndex1
  1084. )
  1085. " />
  1086. <!--<upload-img :uploadid="uploadid2" v-if="item.isValid==0" :imgArr="imgs" @newimgarr="newimgarr1"></upload-img>-->
  1087. </template>
  1088. </van-cell>
  1089. <van-field
  1090. v-model="childitem1.collectionOptionList[0].answerValue"
  1091. :placeholder="item.text"
  1092. type="number"
  1093. @input="numberFn(childitem1, index)"></van-field>
  1094. <p
  1095. style="
  1096. color: #444;
  1097. font-size: 12px;
  1098. margin: 0;
  1099. padding: 10px 0;
  1100. text-align: right;
  1101. ">
  1102. <van-field
  1103. class="mobile-input"
  1104. v-model="childitem1.collectionOptionList[0].collectionOption"
  1105. autosize
  1106. readonly
  1107. type="textarea" />
  1108. </p>
  1109. <delete-upload-img
  1110. :imgs="childitem1.fileInfoList"></delete-upload-img>
  1111. </div>
  1112. <div v-if="childitem1.answerType == 'tel'" class="formLabel z-cell">
  1113. <van-cell>
  1114. <template #title>
  1115. <span v-if="childitem1.isMust == 0" class="van-f-red">*</span
  1116. >{{ childitem1.collectionName }}
  1117. </template>
  1118. <template #right-icon>
  1119. <span v-if="childitem1.isMustPicture == '0'" style="color: red"
  1120. >图片必填</span
  1121. >
  1122. <van-icon
  1123. v-if="childitem1.isPicture == '0'"
  1124. color="#666"
  1125. name="photograph"
  1126. size="24"
  1127. @click="
  1128. imgClick(
  1129. childitem1,
  1130. 'C',
  1131. index,
  1132. childIndex,
  1133. indexc,
  1134. indexc1,
  1135. childIndex1
  1136. )
  1137. " />
  1138. <!--<upload-img :uploadid="uploadid2" v-if="item.isValid==0" :imgArr="imgs" @newimgarr="newimgarr1"></upload-img>-->
  1139. </template>
  1140. </van-cell>
  1141. <van-field
  1142. v-model="childitem1.collectionOptionList[0].answerValue"
  1143. :placeholder="item.text"
  1144. type="tel"
  1145. @input="telFn(childitem1, index)"></van-field>
  1146. <p
  1147. style="
  1148. color: #444;
  1149. font-size: 12px;
  1150. margin: 0;
  1151. padding: 10px 0;
  1152. text-align: right;
  1153. ">
  1154. <van-field
  1155. class="mobile-input"
  1156. v-model="childitem1.collectionOptionList[0].collectionOption"
  1157. autosize
  1158. readonly
  1159. type="textarea" />
  1160. </p>
  1161. <delete-upload-img
  1162. :imgs="childitem1.fileInfoList"></delete-upload-img>
  1163. </div>
  1164. <div v-if="childitem1.answerType == 'zp'" class="formLabel z-cell">
  1165. <van-cell>
  1166. <template #title>
  1167. <span v-if="childitem1.isMust == 0" class="van-f-red">*</span
  1168. >{{ childitem1.collectionName }}
  1169. </template>
  1170. <template #right-icon>
  1171. <span v-if="childitem1.isMustPicture == '0'" style="color: red"
  1172. >图片必填</span
  1173. >
  1174. <van-icon
  1175. v-if="childitem1.isPicture == 0"
  1176. color="#666"
  1177. name="photograph"
  1178. size="24"
  1179. @click="
  1180. imgClick(
  1181. childitem1,
  1182. 'C',
  1183. index,
  1184. childIndex,
  1185. indexc,
  1186. indexc1,
  1187. childIndex1
  1188. )
  1189. " />
  1190. </template>
  1191. </van-cell>
  1192. <delete-upload-img
  1193. :imgs="childitem1.fileInfoList"></delete-upload-img>
  1194. </div>
  1195. </div>
  1196. </div>
  1197. </div>
  1198. </div>
  1199. </div>
  1200. <br />
  1201. </div>
  1202. </div>
  1203. </div>
  1204. </div>
  1205. </div>
  1206. <br />
  1207. </div>
  1208. </van-form>
  1209. </div>
  1210. <br />
  1211. <van-dialog v-model="show" :show-confirm-button="false" show-cancel-button title="上传图片">
  1212. <van-field
  1213. v-if="indexselect == '1'"
  1214. :value="PhotoTypeText"
  1215. clickable
  1216. name="picker"
  1217. placeholder="选择图片类型"
  1218. readonly
  1219. @click="showPicker = true">
  1220. <template #label> <span class="van-f-red">*</span>图片类型 </template>
  1221. </van-field>
  1222. <van-cell>
  1223. <template #title> <span class="van-f-red">*</span>拍照上传 </template>
  1224. <template #right-icon>
  1225. <upload-img
  1226. :collectionId="collectionId"
  1227. :parentCollectionId="parentCollectionId"
  1228. :secondCollectionId="secondCollectionId"
  1229. :firstCollectionId="firstCollectionId"
  1230. :deviceCode="deviceCode"
  1231. :putInCode="putInCode"
  1232. :imgArr="imgs"
  1233. :objectType="PhotoType"
  1234. :shouws="true"
  1235. :storeGroupId="storeGroupId"
  1236. :taskId="taskId"
  1237. :uploadid="uploadid2"
  1238. :visitModel="1 + ''"
  1239. :visitsId="visitId"
  1240. :childIndex="childIndex"
  1241. @newimgarr="newimgarr1"
  1242. @typeshow="typeshow"></upload-img>
  1243. </template>
  1244. </van-cell>
  1245. </van-dialog>
  1246. <!-- list-->
  1247. <van-dialog v-model="listShow" title="历史回显" show-cancel-button :showConfirmButton="false">
  1248. <div style="border: 1px solid #eee; margin-top: 18px">
  1249. <div class="itenHhistory" v-for="item in list">
  1250. <p>内容:{{ item.answerValue }}</p>
  1251. <p>拜访人:{{ item.nickName }}</p>
  1252. <p>拜访时间:{{ item.createTime }}</p>
  1253. </div>
  1254. </div>
  1255. </van-dialog>
  1256. <van-popup v-model="sdsd" position="bottom">
  1257. <upload-img
  1258. :collectionId="collectionId"
  1259. :imgArr="imgs"
  1260. :objectType="PhotoType"
  1261. :storeGroupId="storeGroupId"
  1262. :taskId="taskId"
  1263. :uploadid="uploadid2"
  1264. :visitsId="visitId"
  1265. @newimgarr="newimgarr1"
  1266. @typeshow="typeshow"></upload-img>
  1267. </van-popup>
  1268. <van-popup v-model="showPicker" capture position="bottom">
  1269. <van-picker
  1270. :columns="PhotoTypeList"
  1271. show-toolbar
  1272. @cancel="showPicker = false"
  1273. @confirm="onConfirm" />
  1274. </van-popup>
  1275. <van-dialog v-model="logshow" show-cancel-button title="系统提示"> 是否保存信息? </van-dialog>
  1276. <br />
  1277. <br />
  1278. <br />
  1279. <br />
  1280. <div
  1281. style="
  1282. text-align: center;
  1283. padding: 10px;
  1284. background-color: #ff976a;
  1285. border-radius: 6px;
  1286. color: #fff;
  1287. position: fixed;
  1288. bottom: 16px;
  1289. font-size: 14px;
  1290. left: 14px;
  1291. "
  1292. v-if="processKey"
  1293. @click="removeFn">
  1294. <van-icon name="cross" />&nbsp;&nbsp;清空内容
  1295. </div>
  1296. <van-calendar @confirm="onConfirmTime" v-model="showPickerTime" />
  1297. </div>
  1298. </template>
  1299. <script>
  1300. import {
  1301. getPhotoTypeList,
  1302. addCollectionAnswer,
  1303. getStoreGroupTask,
  1304. editDwellTime,
  1305. deleteTaskAnswer,
  1306. getCollectionShowHistory,
  1307. } from '@/api/index';
  1308. import zRadio from '@/components/zRadio';
  1309. import zCheckbox from '@/components/zCheckbox';
  1310. import uploadImg from '@/components/uploadVNormal';
  1311. import storeCode from '@/components/storeCode';
  1312. import deleteUploadImg from '@/components/deleteUploadImg1';
  1313. import jianjie from '@/assets/jianjie.jpg';
  1314. import { ImagePreview } from 'vant';
  1315. export default {
  1316. name: 'abnormalVisit',
  1317. components: { zRadio, zCheckbox, uploadImg, storeCode, deleteUploadImg },
  1318. data() {
  1319. return {
  1320. value: '',
  1321. sdsd: false,
  1322. showPicker: false,
  1323. showPickerTime: false,
  1324. showCode: false,
  1325. jianjie: jianjie,
  1326. logshow: false,
  1327. fromValue: {
  1328. select1: '',
  1329. select3: '',
  1330. checkbox: '1',
  1331. radio: '',
  1332. input: '',
  1333. },
  1334. timer: null,
  1335. flagclick: true,
  1336. listShow: false,
  1337. isMust: '0',
  1338. imgs: [],
  1339. checkboxGroup: [],
  1340. radio: '',
  1341. Radiocolumns: [],
  1342. columns: [],
  1343. column2: [],
  1344. uploadid2: 'uploadid2',
  1345. collectionItemList: [],
  1346. rdId: '',
  1347. show: false,
  1348. PhotoTypeList: [],
  1349. PhotoType: '',
  1350. PhotoTypeText: '',
  1351. indexselect: 0,
  1352. visitId: '',
  1353. storeGroupId: '',
  1354. taskId: '',
  1355. collectionId: '',
  1356. parentCollectionId: '',
  1357. // form
  1358. storeId: '',
  1359. collectionAnswerlisd: [],
  1360. tableData1: [],
  1361. taskType: 1,
  1362. flag: false,
  1363. indeximg: '',
  1364. childIndex: '',
  1365. childIndex1: '',
  1366. childIndex2: '',
  1367. childIndex3: '',
  1368. link: '3',
  1369. infoShow: '99',
  1370. insert: true,
  1371. checked: false,
  1372. unManage: '1',
  1373. pType: '',
  1374. RIndex: '',
  1375. list: [],
  1376. Tindex: '',
  1377. Tindex1: '',
  1378. Tindex2: '',
  1379. Tindex3: '',
  1380. Tindex4: '',
  1381. Ttype: '',
  1382. wuliaoMust: true,
  1383. secondCollectionId: '',
  1384. firstCollectionId: '',
  1385. processKey: false,
  1386. equipmentCode: '',
  1387. deviceCode: '',
  1388. putInCode: '',
  1389. };
  1390. },
  1391. beforeRouteLeave(to, from, next) {
  1392. if (this.visitId != null && this.visitId != '') {
  1393. this.editDwellTimes();
  1394. }
  1395. next();
  1396. },
  1397. activated() {
  1398. this.flag = false;
  1399. this.link = '3';
  1400. this.wuliaoMust = true;
  1401. this.taskType = this.$route.query.taskType;
  1402. this.PhotoType = this.$route.query.photoType;
  1403. this.storeCode = this.$route.query.storeCode;
  1404. this.visitId = this.$route.query.visitId + '';
  1405. this.taskId = this.$route.query.taskId + '';
  1406. this.storeId = this.$route.query.storeId + '';
  1407. this.isMust == this.$route.query.isMust + '';
  1408. this.storeGroupId = this.$route.query.storeGroupId + '';
  1409. if (this.$route.query.photoType != null) {
  1410. this.indexselect = 0;
  1411. } else {
  1412. this.indexselect = 1;
  1413. }
  1414. this.getPhotoTypeList();
  1415. this.info();
  1416. },
  1417. created() {
  1418. this.taskType = this.$route.query.taskType;
  1419. this.PhotoType = this.$route.query.photoType;
  1420. this.storeCode = this.$route.query.storeCode;
  1421. this.visitId = this.$route.query.visitId + '';
  1422. this.taskId = this.$route.query.taskId + '';
  1423. this.storeId = this.$route.query.storeId + '';
  1424. this.isMust == this.$route.query.isMust + '';
  1425. this.storeGroupId = this.$route.query.storeGroupId + '';
  1426. if (this.$route.query.photoType != null) {
  1427. this.indexselect = 0;
  1428. } else {
  1429. this.indexselect = 1;
  1430. }
  1431. this.getPhotoTypeList();
  1432. },
  1433. methods: {
  1434. viewSM() {
  1435. ImagePreview([this.jianjie]);
  1436. },
  1437. newcode(val) {
  1438. if (val.type == 'A') {
  1439. this.collectionItemList[val.index].answerValue = val.code;
  1440. this.collectionItemList[val.index].equipmentCode2 = val.code.split(',')[1];
  1441. this.collectionItemList[val.index].success = val.success;
  1442. if (val.cpid != '' && val.cpid != undefined) {
  1443. var smlist = this.collectionItemList;
  1444. for (var smcip = 0; smcip < smlist.length; smcip++) {
  1445. if (smlist[smcip].collectionId == val.cid) {
  1446. var smchild = smlist[smcip].collectionOptionList;
  1447. console.log(smchild.length);
  1448. for (var smcipchile = 0; smcipchile < smchild.length; smcipchile++) {
  1449. if (smchild[smcipchile].collectionOptionId == val.cpid) {
  1450. this.collectionItemList[smcip].answerValue = val.cpid + '';
  1451. this.collectionItemList[smcip].collectionOptionList[smcipchile].isCheck = 1;
  1452. }
  1453. }
  1454. for (var smnocipchile = 0; smnocipchile < smchild.length; smnocipchile++) {
  1455. if (smchild[smnocipchile].collectionOptionId == val.nocpid) {
  1456. this.collectionItemList[smcip].collectionOptionList[
  1457. smnocipchile
  1458. ].unableChoose = true;
  1459. }
  1460. }
  1461. }
  1462. }
  1463. }
  1464. }
  1465. if (val.type == 'B') {
  1466. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  1467. val.index2
  1468. ].collectionOptionList[0].answerValue = val.code;
  1469. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  1470. val.index2
  1471. ].equipmentCode2 = val.code.split(',')[1];
  1472. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  1473. val.index2
  1474. ].success = val.success;
  1475. }
  1476. if (val.type == 'C') {
  1477. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  1478. val.index2
  1479. ].collectionOptionList[val.index3].collectionItems[
  1480. val.index4
  1481. ].collectionOptionList[0].answerValue = val.code;
  1482. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  1483. val.index2
  1484. ].collectionOptionList[val.index3].collectionItems[val.index4].equipmentCode2 =
  1485. val.code.split(',')[1];
  1486. this.collectionItemList[val.index].collectionOptionList[val.index1].collectionItems[
  1487. val.index2
  1488. ].collectionOptionList[val.index3].collectionItems[val.index4].success = val.success;
  1489. }
  1490. },
  1491. inputbluwl(val, index, num) {
  1492. if ((val + '').trim() == '') {
  1493. this.tableData1[index].value = '';
  1494. } else {
  1495. if (Number(val) > 10000 || Number(val) <= 0) {
  1496. this.$toast('请输入大于0并且小于10000的整数');
  1497. this.tableData1[index].value = '';
  1498. } else if (this.tableData1[index].inventoryNumArray == '') {
  1499. this.tableData1[index].value = '';
  1500. this.$toast('请输入使用量');
  1501. } else if (this.insert) {
  1502. if (Number(val) > Number(this.tableData1[index].inventoryNum)) {
  1503. this.$toast('请输入小于等于销售部库存量');
  1504. this.tableData1[index].value = '';
  1505. }
  1506. } else if (!this.insert) {
  1507. if (
  1508. Number(val) >
  1509. Number(this.tableData1[index].inventoryNum) +
  1510. Number(this.tableData1[index].contrastValue)
  1511. ) {
  1512. this.$toast('请输入小于等于销售部库存量+发放量');
  1513. this.tableData1[index].value = this.tableData1[index].contrastValue;
  1514. }
  1515. } else {
  1516. this.tableData1[index].value = val.replace(/[^\d.]/g, ''); //清除"数字"和"."以外的字符
  1517. this.tableData1[index].value = val.replace(/^\./g, ''); //验证第一个字符是数字
  1518. this.tableData1[index].value = val
  1519. .replace('.', '$#$')
  1520. .replace(/\./g, '')
  1521. .replace('$#$', '');
  1522. }
  1523. }
  1524. },
  1525. objectSpanMethod({ row, column, rowIndex, columnIndex }) {
  1526. const cellValue = row[column.property];
  1527. if (cellValue && ['signDictype'].includes(column.property)) {
  1528. const prevRow = this.tableData1[rowIndex - 1];
  1529. let nextRow = this.tableData1[rowIndex + 1];
  1530. if (prevRow && prevRow[column.property] === cellValue) {
  1531. return { rowspan: 0, colspan: 0 };
  1532. } else {
  1533. let countRowspan = 1;
  1534. while (nextRow && nextRow[column.property] === cellValue) {
  1535. nextRow = this.tableData1[++countRowspan + rowIndex];
  1536. }
  1537. if (countRowspan > 1) {
  1538. return { rowspan: countRowspan, colspan: 1 };
  1539. }
  1540. }
  1541. }
  1542. },
  1543. showPickerTimeFn(index, type, index1, index2, index3, index4) {
  1544. this.Tindex = index;
  1545. this.Tindex1 = index1;
  1546. this.Tindex2 = index2;
  1547. this.Tindex3 = index3;
  1548. this.Tindex4 = index4;
  1549. this.Ttype = type;
  1550. this.showPickerTime = true;
  1551. },
  1552. onConfirmTime(time) {
  1553. if (this.Ttype == 'A') {
  1554. this.collectionItemList[this.Tindex].answerValue = this.parseTime(time, '{y}-{m}-{d}');
  1555. }
  1556. if (this.Ttype == 'B') {
  1557. this.collectionItemList[this.Tindex].collectionOptionList[this.Tindex1].collectionItems[
  1558. this.Tindex2
  1559. ].collectionOptionList[0].answerValue = this.parseTime(time, '{y}-{m}-{d}');
  1560. }
  1561. if (this.Ttype == 'C') {
  1562. this.collectionItemList[this.Tindex].collectionOptionList[this.Tindex1].collectionItems[
  1563. this.Tindex2
  1564. ].collectionOptionList[this.Tindex3].collectionItems[
  1565. this.Tindex4
  1566. ].collectionOptionList[0].answerValue = this.parseTime(time, '{y}-{m}-{d}');
  1567. }
  1568. this.showPickerTime = false;
  1569. },
  1570. // 历史回显
  1571. getCollectionShowHistory(id) {
  1572. getCollectionShowHistory({
  1573. storeId: this.$route.query.storeId,
  1574. collectionId: id.collectionId,
  1575. visitsId: this.$route.query.visitId,
  1576. storeGroupId: this.$route.query.storeGroupId,
  1577. taskId: this.$route.query.taskId,
  1578. }).then((res) => {
  1579. if (res.data.length > 0) {
  1580. this.list = res.data;
  1581. this.listShow = true;
  1582. } else {
  1583. this.$toast('暂无历史信息');
  1584. }
  1585. });
  1586. },
  1587. removeFn() {
  1588. var that = this;
  1589. this.$dialog
  1590. .confirm({
  1591. title: '系统提示',
  1592. message: '是否清空任务内容?',
  1593. confirmButtonText: '确定',
  1594. cancelButtonText: '取消',
  1595. })
  1596. .then(() => {
  1597. deleteTaskAnswer({
  1598. visitsId: that.$route.query.visitId,
  1599. taskId: that.$route.query.taskId,
  1600. }).then((res) => {
  1601. if (res.code == 200) {
  1602. that.$dialog
  1603. .alert({
  1604. title: '系统提示',
  1605. message: '内容已清空',
  1606. })
  1607. .then((res) => {
  1608. that.info();
  1609. });
  1610. }
  1611. });
  1612. });
  1613. },
  1614. formatter(value) {
  1615. return value.replace(
  1616. /[\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,
  1617. ''
  1618. );
  1619. },
  1620. editDwellTimes() {
  1621. let dwellTime = this.weekend(localStorage.getItem('startTime'), new Date()) + '';
  1622. editDwellTime({ dwellTime: dwellTime, visitsId: this.visitId }).then((res) => {
  1623. if (res.code == 200) {
  1624. localStorage.removeItem('startTime');
  1625. localStorage.setItem('startTime', new Date());
  1626. }
  1627. });
  1628. },
  1629. weekend(time1) {
  1630. var arrtime1 = new Date(time1).getTime();
  1631. var arrtime2 = new Date().getTime();
  1632. return Math.round((arrtime2 - arrtime1) / 1000);
  1633. },
  1634. telFn(val) {
  1635. if (!/^1[3456789]\d{9}$/.test(val.answerValue) && val.answerValue != '') {
  1636. this.$toast(val.collectionName + '格式错误');
  1637. }
  1638. },
  1639. numberFn(val, index, type) {
  1640. if (type == 'A') {
  1641. if (!/^[+-]?\d*\.{0,1}\d{0,1}$/.test(this.collectionItemList[index].answerValue)) {
  1642. this.collectionItemList[index].answerValue = this.collectionItemList[
  1643. index
  1644. ].answerValue.replace(
  1645. /\.\d{2,}$/,
  1646. this.collectionItemList[index].answerValue.substr(
  1647. this.collectionItemList[index].answerValue.indexOf('.'),
  1648. 3
  1649. )
  1650. );
  1651. }
  1652. } else {
  1653. if (!/^[+-]?\d*\.{0,1}\d{0,1}$/.test(this.collectionItemList[index].answerValue)) {
  1654. this.collectionItemList[index].answerValue = this.collectionItemList[
  1655. index
  1656. ].answerValue.replace(
  1657. /\.\d{2,}$/,
  1658. this.collectionItemList[index].answerValue.substr(
  1659. this.collectionItemList[index].answerValue.indexOf('.'),
  1660. 3
  1661. )
  1662. );
  1663. }
  1664. }
  1665. },
  1666. logshowFN() {
  1667. this.logshow = true;
  1668. },
  1669. info() {
  1670. let loading1 = this.$toast.loading({
  1671. duration: 0,
  1672. message: '加载中...',
  1673. forbidClick: true,
  1674. });
  1675. var insert = '';
  1676. this.collectionItemList = [];
  1677. this.tableData1 = [];
  1678. this.collectionAnswerlisd = [];
  1679. if (this.$route.query.type == 'edit') {
  1680. insert = false;
  1681. } else {
  1682. insert = true;
  1683. }
  1684. this.insert = insert;
  1685. if (this.$route.query.type == 'edit') {
  1686. var params = {
  1687. storeId: this.$route.query.storeId,
  1688. storeCode: this.$route.query.storeCode,
  1689. visitEntry: '0',
  1690. lat: '',
  1691. lon: '',
  1692. visitModel: this.visitModel,
  1693. routeDetailsId: '',
  1694. storeGroupId: this.$route.query.storeGroupId,
  1695. visitSource: '1',
  1696. insert: insert,
  1697. locationCity: '',
  1698. locationRemark: '',
  1699. locationAccuracy: '',
  1700. };
  1701. } else {
  1702. var params = {
  1703. storeId: this.storeId,
  1704. storeCode: this.$route.query.storeCode,
  1705. visitEntry: '0',
  1706. lat: this.$route.query.lat,
  1707. lon: this.$route.query.lon,
  1708. visitModel: this.$route.query.visitModel,
  1709. routeDetailsId: this.$route.query.taskId,
  1710. locationCity: this.$route.query.locationCity,
  1711. insert: insert,
  1712. locationRemark: this.$route.query.locationRemark,
  1713. locationAccuracy: this.$route.query.locationAccuracy,
  1714. visitSource: this.$route.query.visitSource,
  1715. };
  1716. }
  1717. if (this.$route.query.visitId != null) {
  1718. params.id = this.$route.query.visitId;
  1719. }
  1720. getStoreGroupTask(params).then((res) => {
  1721. loading1.clear();
  1722. this.deviceCode = '';
  1723. this.putInCode = '';
  1724. // this.equipmentCode = res.data.equipmentCode;
  1725. var checkUnManage = res.data.sfaTaskList[this.$route.query.ids];
  1726. var collectionItemLists = res.data.sfaTaskList[this.$route.query.ids].collectionItemList;
  1727. if (checkUnManage.checkUnManage != null && checkUnManage.checkUnManage != 'N') {
  1728. this.checked = true;
  1729. } else {
  1730. this.checked = false;
  1731. }
  1732. this.unManage = res.data.sfaTaskList[this.$route.query.ids].unManage;
  1733. this.deviceCode = res.data.sfaTaskList[this.$route.query.ids].deviceCode || ''; // 设备编号
  1734. this.putInCode = res.data.sfaTaskList[this.$route.query.ids].putInCode || ''; // 投放编号
  1735. // 调色机类型:buy-购买类调色机,place-放置类调色机
  1736. let inspectionType = res.data.sfaTaskList[this.$route.query.ids].inspectionType;
  1737. if (inspectionType == 'buy') {
  1738. this.equipmentCode = res.data.sfaTaskList[this.$route.query.ids].putInCode || '';
  1739. this.showCode = true;
  1740. } else if (inspectionType == 'place') {
  1741. this.equipmentCode = res.data.sfaTaskList[this.$route.query.ids].equipmentCode || '';
  1742. this.showCode = true;
  1743. }
  1744. if (
  1745. (res.data.sfaTaskList[this.$route.query.ids].processStatus == 3 &&
  1746. this.$route.query.types == 'edit') ||
  1747. res.data.sfaTaskList[this.$route.query.ids].processStatus == undefined
  1748. ) {
  1749. this.processKey = true;
  1750. } else {
  1751. this.processKey = false;
  1752. }
  1753. this.infoShow = res.data.sfaTaskList[this.$route.query.ids].isMust;
  1754. if (this.$route.query.taskType == 1) {
  1755. for (var q = 0; q < collectionItemLists.length; q++) {
  1756. if (
  1757. collectionItemLists[q].answerType == 'sz' ||
  1758. collectionItemLists[q].answerType == 'wb' ||
  1759. collectionItemLists[q].answerType == 'sm' ||
  1760. collectionItemLists[q].answerType == 'tel' ||
  1761. collectionItemLists[q].answerType == 'date'
  1762. ) {
  1763. collectionItemLists[q].answerValue =
  1764. collectionItemLists[q].collectionOptionList[0].answerValue;
  1765. collectionItemLists[q].equipmentCode2 = '';
  1766. collectionItemLists[q].success = false;
  1767. if (
  1768. collectionItemLists[q].collectionOptionList[0].answerValue != '' &&
  1769. collectionItemLists[q].collectionOptionList[0].answerValue != null
  1770. ) {
  1771. collectionItemLists[q].equipmentCode2 =
  1772. collectionItemLists[q].collectionOptionList[0].answerValue.split(',')[1];
  1773. if (
  1774. collectionItemLists[q].collectionOptionList[0].answerValue.split(',')[0] ==
  1775. collectionItemLists[q].collectionOptionList[0].answerValue.split(',')[1]
  1776. ) {
  1777. collectionItemLists[q].success = true;
  1778. }
  1779. }
  1780. }
  1781. if (
  1782. collectionItemLists[q].answerType == 'duox' ||
  1783. collectionItemLists[q].answerType == 'dx'
  1784. ) {
  1785. collectionItemLists[q].answerValue = [];
  1786. for (var qq = 0; qq < collectionItemLists[q].collectionOptionList.length; qq++) {
  1787. if (collectionItemLists[q].collectionOptionList[qq].isCheck == 1) {
  1788. collectionItemLists[q].answerValue.push(
  1789. collectionItemLists[q].collectionOptionList[qq].collectionOptionId
  1790. );
  1791. collectionItemLists[q].collectionOptionList[qq].code =
  1792. collectionItemLists[q].collectionCode;
  1793. collectionItemLists[q].collectionOptionList[qq].answerType =
  1794. collectionItemLists[q].answerType;
  1795. // this.collectionAnswerlisd.push(collectionItemLists[q].collectionOptionList[qq]);
  1796. }
  1797. if (collectionItemLists[q].answerType == 'dx') {
  1798. var listchild = collectionItemLists[q].collectionOptionList[qq].collectionItems;
  1799. if (listchild != undefined) {
  1800. for (var qq1 = 0; qq1 < listchild.length; qq1++) {
  1801. if (listchild[qq1].answerType == 'sz') {
  1802. if (listchild[qq1].collectionOptionList[0].answerValue != null) {
  1803. listchild[qq1].answerValue =
  1804. listchild[qq1].collectionOptionList[0].answerValue;
  1805. }
  1806. }
  1807. if (listchild[qq1].answerType == 'wb') {
  1808. if (listchild[qq1].collectionOptionList[0].answerValue != null) {
  1809. listchild[qq1].answerValue =
  1810. listchild[qq1].collectionOptionList[0].answerValue;
  1811. } else {
  1812. listchild[qq1].answerValue = '';
  1813. }
  1814. }
  1815. if (listchild[qq1].answerType == 'sm') {
  1816. listchild[qq1].success = false;
  1817. if (listchild[qq1].collectionOptionList[0].answerValue != null) {
  1818. listchild[qq1].answerValue =
  1819. listchild[qq1].collectionOptionList[0].answerValue;
  1820. listchild[qq1].equipmentCode2 =
  1821. listchild[qq1].collectionOptionList[0].answerValue.split(',')[1];
  1822. if (
  1823. listchild[qq1].collectionOptionList[0].answerValue.split(',')[0] ==
  1824. listchild[qq1].collectionOptionList[0].answerValue.split(',')[1]
  1825. ) {
  1826. listchild[qq1].success = true;
  1827. }
  1828. } else {
  1829. listchild[qq1].answerValue = '';
  1830. listchild[qq1].equipmentCode2 = '';
  1831. }
  1832. }
  1833. if (listchild[qq1].answerType == 'tel') {
  1834. if (listchild[qq1].collectionOptionList[0].answerValue != null) {
  1835. listchild[qq1].answerValue =
  1836. listchild[qq1].collectionOptionList[0].answerValue;
  1837. } else {
  1838. listchild[qq1].answerValue = '';
  1839. }
  1840. }
  1841. if (listchild[qq1].answerType == 'date') {
  1842. if (listchild[qq1].collectionOptionList[0].answerValue != null) {
  1843. listchild[qq1].answerValue =
  1844. listchild[qq1].collectionOptionList[0].answerValue;
  1845. } else {
  1846. listchild[qq1].answerValue = '';
  1847. }
  1848. }
  1849. if (
  1850. listchild[qq1].answerType == 'duox' ||
  1851. listchild[qq1].answerType == 'dx'
  1852. ) {
  1853. listchild[qq1].answerValue = [];
  1854. for (var qq2 = 0; qq2 < listchild[qq1].collectionOptionList.length; qq2++) {
  1855. listchild[qq1].collectionOptionList[qq2].code =
  1856. listchild[qq1].collectionCode;
  1857. listchild[qq1].collectionOptionList[qq2].answerType =
  1858. listchild[qq1].answerType;
  1859. listchild[qq1].collectionOptionList[qq2].parentCollectionId =
  1860. listchild[qq1].parentCollectionId;
  1861. listchild[qq1].collectionOptionList[qq2].parentOptionId =
  1862. listchild[qq1].parentOptionId;
  1863. listchild[qq1].collectionOptionList[qq2].firstCollectionId =
  1864. listchild[qq1].firstCollectionId;
  1865. listchild[qq1].collectionOptionList[qq2].secondCollectionId =
  1866. listchild[qq1].secondCollectionId;
  1867. if (listchild[qq1].collectionOptionList[qq2].isCheck == 1) {
  1868. listchild[qq1].answerValue.push(
  1869. listchild[qq1].collectionOptionList[qq2].collectionOptionId
  1870. );
  1871. // this.collectionAnswerlisd.push(listchild[qq1].collectionOptionList[qq2]);
  1872. }
  1873. }
  1874. listchild[qq1].answerValue = listchild[qq1].answerValue.join();
  1875. }
  1876. if (listchild[qq1].answerType == 'dx') {
  1877. let list3 = listchild[qq1].collectionOptionList;
  1878. for (let l3 = 0; l3 < list3.length; l3++) {
  1879. if (
  1880. list3[l3].collectionItems != null &&
  1881. list3[l3].collectionItems != undefined
  1882. ) {
  1883. for (let l3q = 0; l3q < list3[l3].collectionItems.length; l3q++) {
  1884. if (list3[l3].collectionItems[l3q].answerType == 'sm') {
  1885. if (
  1886. list3[l3].collectionItems[l3q].collectionOptionList[0]
  1887. .answerValue != null &&
  1888. list3[l3].collectionItems[l3q].collectionOptionList[0]
  1889. .answerValue != undefined
  1890. ) {
  1891. list3[l3].collectionItems[l3q].answerValue =
  1892. list3[l3].collectionItems[
  1893. l3q
  1894. ].collectionOptionList[0].answerValue;
  1895. list3[l3].collectionItems[l3q].equipmentCode2 =
  1896. list3[l3].collectionItems[
  1897. l3q
  1898. ].collectionOptionList[0].answerValue.split(',')[1];
  1899. if (
  1900. list3[l3].collectionItems[
  1901. l3q
  1902. ].collectionOptionList[0].answerValue.split(',')[0] ==
  1903. list3[l3].collectionItems[
  1904. l3q
  1905. ].collectionOptionList[0].answerValue.split(',')[1]
  1906. ) {
  1907. list3[l3].collectionItems[l3q].success = true;
  1908. }
  1909. } else {
  1910. list3[l3].collectionItems[l3q].success = false;
  1911. list3[l3].collectionItems[
  1912. l3q
  1913. ].collectionOptionList[0].answerValue = '';
  1914. }
  1915. }
  1916. if (list3[l3].collectionItems[l3q].answerType == 'date') {
  1917. if (
  1918. list3[l3].collectionItems[l3q].collectionOptionList[0]
  1919. .answerValue != null
  1920. ) {
  1921. list3[l3].collectionItems[l3q].answerValue =
  1922. list3[l3].collectionItems[
  1923. l3q
  1924. ].collectionOptionList[0].answerValue;
  1925. } else {
  1926. list3[l3].collectionItems[l3q].answerValue = '';
  1927. }
  1928. }
  1929. }
  1930. }
  1931. if (list3[l3].answerType == 'sz') {
  1932. // list3[l3].answerValue = list3[l3].collectionOptionList[0].answerValue;
  1933. }
  1934. if (list3[l3].answerType == 'wb') {
  1935. // list3[l3].answerValue = list3[l3].collectionOptionList[0].answerValue;
  1936. }
  1937. if (list3[l3].answerType == 'date') {
  1938. if (list3[l3].collectionOptionList[0].answerValue != null) {
  1939. list3[l3].answerValue = list3[l3].collectionOptionList[0].answerValue;
  1940. } else {
  1941. list3[l3].answerValue = '';
  1942. }
  1943. }
  1944. if (list3[l3].answerType == 'sm') {
  1945. list3[l3].success = false;
  1946. if (list3[l3].collectionOptionList[0].answerValue != null) {
  1947. console.log('ok');
  1948. list3[l3].answerValue = list3[l3].collectionOptionList[0].answerValue;
  1949. list3[l3].equipmentCode2 =
  1950. list3[l3].collectionOptionList[0].answerValue.split(',')[1];
  1951. if (
  1952. list3[l3].collectionOptionList[0].answerValue.split(',')[0] ==
  1953. list3[l3].collectionOptionList[0].answerValue.split(',')[1]
  1954. ) {
  1955. list3[l3].success = true;
  1956. }
  1957. } else {
  1958. list3[l3].answerValue = '';
  1959. list3[l3].equipmentCode2 = '';
  1960. }
  1961. }
  1962. if (list3[l3].answerType == 'duox' || list3[l3].answerType == 'dx') {
  1963. let lis4 = list3[l3].collectionItems;
  1964. if (lis4 != null) {
  1965. for (let l4 = 0; l4 < lis4.length; l4++) {
  1966. lis4[l4].answerValue = [];
  1967. let list5 = lis4[l4].collectionOptionList;
  1968. if (list5 != undefined && list5 != null && list5 != '') {
  1969. for (let l5 = 0; l5 < list5.length; l5++) {
  1970. list5[l5].code = lis4[l4].collectionCode;
  1971. list5[l5].answerType = lis4[l4].answerType;
  1972. list5[l5].parentCollectionId = lis4[l4].parentCollectionId;
  1973. list5[l5].parentOptionId = lis4[l4].parentOptionId;
  1974. list5[l5].firstCollectionId = lis4[l4].firstCollectionId;
  1975. list5[l5].secondCollectionId = lis4[l4].secondCollectionId;
  1976. if (list5[l5].isCheck == 1) {
  1977. lis4[l4].answerValue.push(list5[l5].collectionOptionId);
  1978. // this.collectionAnswerlisd.push(list5[l5]);
  1979. }
  1980. }
  1981. }
  1982. lis4[l4].answerValue = lis4[l4].answerValue.join();
  1983. }
  1984. }
  1985. }
  1986. }
  1987. }
  1988. }
  1989. }
  1990. }
  1991. }
  1992. collectionItemLists[q].answerValue = collectionItemLists[q].answerValue.join();
  1993. }
  1994. }
  1995. this.collectionItemList = collectionItemLists;
  1996. } else {
  1997. for (var f = 0; f < collectionItemLists.length; f++) {
  1998. var collectionOptionListarr = collectionItemLists[f].collectionOptionList;
  1999. for (var ff = 0; ff < collectionOptionListarr.length; ff++) {
  2000. if (ff == '0') {
  2001. collectionItemLists[f].xdjhyj = collectionOptionListarr[ff].answerValue;
  2002. collectionItemLists[f].value = collectionOptionListarr[ff].answerValue;
  2003. collectionItemLists[f].contrastValue = collectionOptionListarr[ff].answerValue;
  2004. }
  2005. if (ff == '1') {
  2006. collectionItemLists[f].xdjhchjj = collectionOptionListarr[ff].answerValue;
  2007. if (collectionOptionListarr[ff].answerValue == null) {
  2008. collectionItemLists[f].answerVal = 'T';
  2009. } else {
  2010. collectionItemLists[f].answerVal = '';
  2011. }
  2012. }
  2013. if (ff == '2') {
  2014. collectionItemLists[f].ygnhj = collectionOptionListarr[ff].answerValue;
  2015. }
  2016. }
  2017. }
  2018. this.tableData1 = collectionItemLists;
  2019. }
  2020. });
  2021. },
  2022. tipTitle(val) {
  2023. this.$toast(val);
  2024. },
  2025. inputblurs(val, index, num) {
  2026. if ((val + '').trim() == '') {
  2027. this.tableData1[index].xdjhchjj = '';
  2028. } else {
  2029. if (Number(val) > 10000 || Number(val) <= 0) {
  2030. this.$toast('请输入大于0并且小于10000的两位小数');
  2031. this.tableData1[index].xdjhchjj = '';
  2032. } else if (this.tableData1[index].xdjhyj == '') {
  2033. this.tableData1[index].xdjhchjj = '';
  2034. this.$toast('请输入进货原价');
  2035. } else if (Number(val) > Number(this.tableData1[index].xdjhyj)) {
  2036. this.$toast('请输入小于等于进货原价的数字');
  2037. this.tableData1[index].xdjhchjj = '';
  2038. } else {
  2039. this.tableData1[index].xdjhchjj = val.replace(/[^\d.]/g, ''); //清除"数字"和"."以外的字符
  2040. this.tableData1[index].xdjhchjj = val.replace(/^\./g, ''); //验证第一个字符是数字
  2041. this.tableData1[index].xdjhchjj = val.replace(/\.{2,}/g, '.'); //只保留第一个, 清除多余的
  2042. this.tableData1[index].xdjhchjj = val
  2043. .replace('.', '$#$')
  2044. .replace(/\./g, '')
  2045. .replace('$#$', '.');
  2046. this.tableData1[index].xdjhchjj = val.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
  2047. }
  2048. }
  2049. },
  2050. inputblur(val, index, num) {
  2051. if (val.split('.')[1] == '' || (val + '').trim() == '') {
  2052. this.$toast('请输入正确格式数字');
  2053. if (num == '0') {
  2054. this.tableData1[index].xdjhyj = '';
  2055. }
  2056. if (num == '1') {
  2057. this.tableData1[index].xdjhchjj = '';
  2058. }
  2059. if (num == '2') {
  2060. this.tableData1[index].ygnhj = '';
  2061. }
  2062. } else {
  2063. if (!/^\d+(\.\d{1,2})?$/.test(val) || Number(val) > 10000 || Number(val) <= 0) {
  2064. this.$toast('请输入大于0并且小于10000的两位小数');
  2065. if (num == '0') {
  2066. this.tableData1[index].xdjhyj = '';
  2067. }
  2068. if (num == '1') {
  2069. this.tableData1[index].xdjhchjj = '';
  2070. }
  2071. if (num == '2') {
  2072. this.tableData1[index].ygnhj = '';
  2073. }
  2074. } else {
  2075. if (num == '0') {
  2076. if (this.tableData1[index].xdjhyj < this.tableData1[index].xdjhchjj) {
  2077. this.tableData1[index].xdjhyj = '';
  2078. this.$toast('请输入大于等于促后净价的数字');
  2079. }
  2080. }
  2081. if (num == '1') {
  2082. if (this.tableData1[index].xdjhyj == '') {
  2083. this.tableData1[index].xdjhchjj = '';
  2084. this.$toast('请输入进货原价');
  2085. } else {
  2086. if (Number(val) > Number(this.tableData1[index].xdjhyj)) {
  2087. this.$toast('请输入小于等于进货原价的数字');
  2088. this.tableData1[index].xdjhchjj = '';
  2089. }
  2090. }
  2091. }
  2092. }
  2093. }
  2094. },
  2095. afterRead(file) {
  2096. // 此时可以自行将文件上传至服务器
  2097. },
  2098. typeshow(val) {
  2099. this.show = val;
  2100. },
  2101. onConfirm(val) {
  2102. this.indexselect = '1';
  2103. this.PhotoType = val.dictValue;
  2104. this.PhotoTypeText = val.text;
  2105. this.showPicker = false;
  2106. },
  2107. getPhotoTypeList() {
  2108. getPhotoTypeList({}).then((res) => {
  2109. var PhotoTypeLists = [];
  2110. for (var p = 0; p < res.data.length; p++) {
  2111. PhotoTypeLists.push({
  2112. dictValue: res.data[p].dictValue,
  2113. text: res.data[p].dictLabel,
  2114. });
  2115. }
  2116. this.PhotoTypeList = PhotoTypeLists;
  2117. });
  2118. },
  2119. imgClick(val, type, index, childIndex, childIndex1, childIndex2, childIndex3) {
  2120. this.collectionId = val.collectionId + '';
  2121. this.parentCollectionId = val.parentCollectionId + '';
  2122. this.firstCollectionId = val.firstCollectionId;
  2123. this.secondCollectionId = val.secondCollectionId;
  2124. this.indeximg = index;
  2125. this.childIndex = childIndex;
  2126. this.childIndex1 = childIndex1;
  2127. this.childIndex2 = childIndex2;
  2128. this.childIndex3 = childIndex3;
  2129. this.pType = type;
  2130. this.show = true;
  2131. var child = false;
  2132. },
  2133. newimgarr1(val) {
  2134. this.show = false;
  2135. if (this.pType == 'A' || this.pType == 'B') {
  2136. var child = false;
  2137. if (this.collectionItemList[this.indeximg].collectionOptionList != null) {
  2138. for (
  2139. let p = 0;
  2140. p < this.collectionItemList[this.indeximg].collectionOptionList.length;
  2141. p++
  2142. ) {
  2143. if (
  2144. this.collectionItemList[this.indeximg].collectionOptionList[p].collectionItems !=
  2145. undefined
  2146. ) {
  2147. child = true;
  2148. }
  2149. }
  2150. }
  2151. // if(this.collectionItemList[this.indeximg].answerType=="dx"&&this.collectionItemList[this.indeximg].collectionOptionList!=undefined){
  2152. // if(this.collectionItemList[this.indeximg].collectionOptionList[this.RIndex].collectionItems[this.childIndex].fileInfoList==null||this.collectionItemList[this.indeximg].collectionOptionList[this.RIndex].collectionItems[this.childIndex].fileInfoList==undefined){
  2153. // this.collectionItemList[this.indeximg].collectionOptionList[this.RIndex].collectionItems[this.childIndex].fileInfoList=[]
  2154. // }else{
  2155. // this.collectionItemList[this.indeximg].collectionOptionList[this.RIndex].collectionItems[this.childIndex].fileInfoList.push(val)
  2156. // }
  2157. // }
  2158. if (child) {
  2159. for (
  2160. let childi = 0;
  2161. childi < this.collectionItemList[this.indeximg].collectionOptionList.length;
  2162. childi++
  2163. ) {
  2164. if (
  2165. this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
  2166. this.childIndex
  2167. ].fileInfoList == null ||
  2168. this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
  2169. this.childIndex
  2170. ].fileInfoList == undefined
  2171. ) {
  2172. this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
  2173. this.childIndex
  2174. ].fileInfoList = [];
  2175. }
  2176. this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
  2177. this.childIndex
  2178. ].fileInfoList.push(val);
  2179. }
  2180. } else {
  2181. if (
  2182. this.collectionItemList[this.indeximg].fileInfoList == null ||
  2183. this.collectionItemList[this.indeximg].fileInfoList == undefined
  2184. ) {
  2185. this.collectionItemList[this.indeximg].fileInfoList = [];
  2186. }
  2187. this.collectionItemList[this.indeximg].fileInfoList.push(val);
  2188. }
  2189. } else {
  2190. if (
  2191. this.collectionItemList[this.indeximg].collectionOptionList[this.childIndex1]
  2192. .collectionItems[this.childIndex].collectionOptionList[this.childIndex2]
  2193. .collectionItems[this.childIndex3].fileInfoList == null
  2194. ) {
  2195. this.collectionItemList[this.indeximg].collectionOptionList[
  2196. this.childIndex1
  2197. ].collectionItems[this.childIndex].collectionOptionList[this.childIndex2].collectionItems[
  2198. this.childIndex3
  2199. ].fileInfoList = [];
  2200. }
  2201. this.collectionItemList[this.indeximg].collectionOptionList[
  2202. this.childIndex1
  2203. ].collectionItems[this.childIndex].collectionOptionList[this.childIndex2].collectionItems[
  2204. this.childIndex3
  2205. ].fileInfoList.push(val);
  2206. }
  2207. },
  2208. zSelectVal(value) {
  2209. // for (let aa = 0; aa < this.collectionAnswerlisd.length; aa++) {
  2210. // if (this.collectionAnswerlisd[aa].code == value.type) {
  2211. // this.collectionAnswerlisd.splice(aa, 1);
  2212. // aa--;
  2213. // }
  2214. // }
  2215. // for (var a = 0; a < value.value.length; a++) {
  2216. // value.value[a].code = value.type;
  2217. // value.value[a].answerType = value.answerType;
  2218. // value.value[a].collectionType = value.collectionType;
  2219. // this.collectionAnswerlisd.push(value.value[a]);
  2220. // }
  2221. if (value.answerType == 'dx') {
  2222. if (value.childIndex4 == 'A') {
  2223. for (
  2224. let op = 0;
  2225. op <
  2226. this.collectionItemList[value.childindex].collectionOptionList[value.childindex1]
  2227. .collectionItems[value.childindex2].collectionOptionList.length;
  2228. op++
  2229. ) {
  2230. if (value.index != op) {
  2231. this.collectionItemList[value.childindex].collectionOptionList[
  2232. value.childindex1
  2233. ].collectionItems[value.childindex2].collectionOptionList[op].isCheck = 0;
  2234. }
  2235. }
  2236. this.collectionItemList[value.childindex].collectionOptionList[
  2237. value.childindex1
  2238. ].collectionItems[value.childindex2].collectionOptionList[value.index].isCheck = 1;
  2239. }
  2240. if (value.childIndex4 == 'B') {
  2241. // for (let qqw = 0; qqw < this.collectionItemList[value.childindex].collectionOptionList.length; qqw++) {
  2242. // for (let aa = 0; aa < this.collectionAnswerlisd.length; aa++) {
  2243. // if (
  2244. // this.collectionAnswerlisd[aa].parentOptionId ==
  2245. // this.collectionItemList[value.childindex].collectionOptionList[qqw].collectionOptionId
  2246. // ) {
  2247. // this.collectionAnswerlisd.splice(aa, 1);
  2248. // aa--;
  2249. // }
  2250. // }
  2251. // }
  2252. // this.collectionItemList[value.childindex].answerValue = value.value[0].collectionOptionId;
  2253. for (
  2254. let op = 0;
  2255. op < this.collectionItemList[value.childindex].collectionOptionList.length;
  2256. op++
  2257. ) {
  2258. if (value.index != op) {
  2259. this.collectionItemList[value.childindex].collectionOptionList[op].isCheck = 0;
  2260. }
  2261. }
  2262. this.RIndex = value.index;
  2263. this.collectionItemList[value.childindex].collectionOptionList[value.index].isCheck = 1;
  2264. }
  2265. if (value.childIndex4 == 'D') {
  2266. // for (let qqw = 0; qqw < this.collectionItemList[value.childindex].collectionOptionList.length; qqw++) {
  2267. // for (let aa = 0; aa < this.collectionAnswerlisd.length; aa++) {
  2268. // if (
  2269. // this.collectionAnswerlisd[aa].parentOptionId ==
  2270. // this.collectionItemList[value.childindex].collectionOptionList[qqw].collectionOptionId
  2271. // ) {
  2272. // this.collectionAnswerlisd.splice(aa, 1);
  2273. // aa--;
  2274. // }
  2275. // }
  2276. // }
  2277. // this.collectionItemList[value.childindex].answerValue = value.value[0].collectionOptionId;
  2278. let r5 =
  2279. this.collectionItemList[value.childindex].collectionOptionList[value.childindex1]
  2280. .collectionItems[value.childindex2].collectionOptionList[value.childindex3]
  2281. .collectionItems[value.childindex5].collectionOptionList;
  2282. for (let op = 0; op < r5.length; op++) {
  2283. if (value.index != op) {
  2284. r5[op].isCheck = 0;
  2285. }
  2286. }
  2287. // this.RIndex = value.index;
  2288. r5[value.index].isCheck = 1;
  2289. }
  2290. if (value.childIndex4 == 'E') {
  2291. debugger;
  2292. let r5 =
  2293. this.collectionItemList[value.childindex].collectionOptionList[value.childindex1]
  2294. .collectionItems[value.childindex2].collectionOptionList[value.childindex3]
  2295. .collectionItems[value.childindex5].collectionOptionList;
  2296. for (let op = 0; op < r5.length; op++) {
  2297. if (value.index != op) {
  2298. r5[op].isCheck = 0;
  2299. }
  2300. }
  2301. r5[value.index].isCheck = 1;
  2302. }
  2303. } else {
  2304. if (value.level == 'A') {
  2305. for (
  2306. let op = 0;
  2307. op < this.collectionItemList[value.childindex].collectionOptionList.length;
  2308. op++
  2309. ) {
  2310. if (value.index != op) {
  2311. this.collectionItemList[value.childindex].collectionOptionList[op].isCheck = 0;
  2312. }
  2313. }
  2314. for (
  2315. let op = 0;
  2316. op < this.collectionItemList[value.childindex].collectionOptionList.length;
  2317. op++
  2318. ) {
  2319. for (let opc = 0; opc < value.value.length; opc++) {
  2320. if (
  2321. value.value[opc].collectionOptionId ==
  2322. this.collectionItemList[value.childindex].collectionOptionList[op]
  2323. .collectionOptionId
  2324. ) {
  2325. this.collectionItemList[value.childindex].collectionOptionList[op].isCheck = 1;
  2326. }
  2327. }
  2328. }
  2329. }
  2330. if (value.level == 'B') {
  2331. var listCData =
  2332. this.collectionItemList[value.childindex].collectionOptionList[value.childindex1]
  2333. .collectionItems[value.childindex2];
  2334. for (let op = 0; op < listCData.collectionOptionList.length; op++) {
  2335. listCData.collectionOptionList[op].isCheck = 0;
  2336. }
  2337. for (let op = 0; op < listCData.collectionOptionList.length; op++) {
  2338. for (let opc = 0; opc < value.value.length; opc++) {
  2339. if (
  2340. value.value[opc].collectionOptionId ==
  2341. listCData.collectionOptionList[op].collectionOptionId
  2342. ) {
  2343. listCData.collectionOptionList[op].isCheck = 1;
  2344. }
  2345. }
  2346. }
  2347. }
  2348. if (value.level == 'C') {
  2349. var listCData2 =
  2350. this.collectionItemList[value.childindex].collectionOptionList[value.childindex1]
  2351. .collectionItems[value.childindex2].collectionOptionList[value.childindex3]
  2352. .collectionItems[value.childindex4];
  2353. for (let op = 0; op < listCData2.collectionOptionList.length; op++) {
  2354. listCData2.collectionOptionList[op].isCheck = 0;
  2355. }
  2356. for (let op = 0; op < listCData2.collectionOptionList.length; op++) {
  2357. for (let opc = 0; opc < value.value.length; opc++) {
  2358. if (
  2359. value.value[opc].collectionOptionId ==
  2360. listCData2.collectionOptionList[op].collectionOptionId
  2361. ) {
  2362. listCData2.collectionOptionList[op].isCheck = 1;
  2363. }
  2364. }
  2365. }
  2366. }
  2367. }
  2368. },
  2369. onSubmit() {
  2370. var checkUnManage = 'Y';
  2371. var formData = {};
  2372. if (this.checked) {
  2373. checkUnManage = 'Y';
  2374. } else {
  2375. checkUnManage = 'N';
  2376. }
  2377. if (this.$route.query.taskType == 3) {
  2378. formData = {
  2379. storeId: this.storeId,
  2380. storeCode: this.$route.query.storeCode,
  2381. storeGroupId: this.storeGroupId,
  2382. visitsId: this.visitId,
  2383. taskId: this.taskId,
  2384. insert: this.insert,
  2385. collectionAnswers: [],
  2386. checkUnManage: checkUnManage,
  2387. wuliaoMust: this.wuliaoMust,
  2388. };
  2389. } else {
  2390. formData = {
  2391. storeId: this.storeId,
  2392. storeCode: this.$route.query.storeCode,
  2393. storeGroupId: this.storeGroupId,
  2394. visitsId: this.visitId,
  2395. taskId: this.taskId,
  2396. insert: this.insert,
  2397. collectionAnswers: [],
  2398. checkUnManage: checkUnManage,
  2399. };
  2400. }
  2401. if (this.$route.query.taskType == 1) {
  2402. for (var b = 0; b < this.collectionItemList.length; b++) {
  2403. if (
  2404. this.collectionItemList[b].answerType == 'sz' ||
  2405. this.collectionItemList[b].answerType == 'sm' ||
  2406. this.collectionItemList[b].answerType == 'wb' ||
  2407. this.collectionItemList[b].answerType == 'tel' ||
  2408. this.collectionItemList[b].answerType == 'date'
  2409. ) {
  2410. formData.collectionAnswers.push({
  2411. collectionId: this.collectionItemList[b].collectionId,
  2412. itemName: this.collectionItemList[b].collectionName,
  2413. collectionType: this.collectionItemList[b].collectionType,
  2414. collectionOptionId:
  2415. this.collectionItemList[b].collectionOptionList[0].collectionOptionId,
  2416. secondCollectionId: this.collectionItemList[b].secondCollectionId,
  2417. firstCollectionId: this.collectionItemList[b].firstCollectionId,
  2418. answerType: this.collectionItemList[b].answerType,
  2419. answerValue: this.collectionItemList[b].answerValue,
  2420. deviceCode: this.collectionItemList[b].deviceCode || '', //设备编号
  2421. putInCode: this.collectionItemList[b].putInCode || '', //投放编号
  2422. });
  2423. }
  2424. if (
  2425. this.collectionItemList[b].answerType == 'dx' ||
  2426. this.collectionItemList[b].answerType == 'duox'
  2427. ) {
  2428. let onList = this.collectionItemList[b].collectionOptionList;
  2429. onList.forEach((item) => {
  2430. if (item.isCheck == 1) {
  2431. formData.collectionAnswers.push({
  2432. collectionId: item.collectionId,
  2433. itemName: item.collectionOption,
  2434. collectionType: this.collectionItemList[b].collectionType,
  2435. collectionOptionId: item.collectionOptionId,
  2436. // parentOptionId: this.collectionAnswerlisd[c].parentOptionId,
  2437. // parentCollectionId: this.collectionAnswerlisd[c].parentCollectionId,
  2438. secondCollectionId: item.secondCollectionId,
  2439. firstCollectionId: item.firstCollectionId,
  2440. answerType: this.collectionItemList[b].answerType,
  2441. answerValue: 'Y',
  2442. });
  2443. }
  2444. });
  2445. }
  2446. }
  2447. for (let f = 0; f < this.collectionItemList.length; f++) {
  2448. if (this.collectionItemList[f].answerType == 'dx') {
  2449. var listData = this.collectionItemList[f].collectionOptionList;
  2450. for (let f1 = 0; f1 < listData.length; f1++) {
  2451. var listDatas = listData[f1].collectionItems;
  2452. if (listData[f1].isCheck == '1' && listDatas != undefined && listDatas != null) {
  2453. for (let f2 = 0; f2 < listDatas.length; f2++) {
  2454. if (
  2455. listDatas[f2].answerType == 'sz' ||
  2456. listDatas[f2].answerType == 'wb' ||
  2457. listDatas[f2].answerType == 'sm' ||
  2458. listDatas[f2].answerType == 'tel' ||
  2459. listDatas[f2].answerType == 'date'
  2460. ) {
  2461. formData.collectionAnswers.push({
  2462. collectionId: listDatas[f2].collectionId,
  2463. itemName: listDatas[f2].collectionName,
  2464. collectionType: listDatas[f2].collectionType,
  2465. collectionOptionId: listDatas[f2].collectionOptionList[0].collectionOptionId,
  2466. answerType: listDatas[f2].answerType,
  2467. answerValue: listDatas[f2].collectionOptionList[0].answerValue,
  2468. parentOptionId: listDatas[f2].parentOptionId,
  2469. parentCollectionId: listDatas[f2].parentCollectionId,
  2470. secondCollectionId: listDatas[f2].secondCollectionId,
  2471. firstCollectionId: listDatas[f2].firstCollectionId,
  2472. });
  2473. }
  2474. if (listDatas[f2].answerType == 'dx' || listDatas[f2].answerType == 'duox') {
  2475. let onList = listDatas[f2].collectionOptionList;
  2476. onList.forEach((item) => {
  2477. if (item.isCheck == 1) {
  2478. formData.collectionAnswers.push({
  2479. collectionId: item.collectionId,
  2480. itemName: item.collectionOption,
  2481. collectionType: listDatas[f2].collectionType,
  2482. collectionOptionId: item.collectionOptionId,
  2483. parentOptionId: item.parentOptionId,
  2484. parentCollectionId: item.parentCollectionId,
  2485. secondCollectionId: item.secondCollectionId,
  2486. firstCollectionId: item.firstCollectionId,
  2487. answerType: listDatas[f2].answerType,
  2488. answerValue: 'Y',
  2489. });
  2490. }
  2491. });
  2492. }
  2493. }
  2494. }
  2495. }
  2496. }
  2497. }
  2498. for (let f = 0; f < this.collectionItemList.length; f++) {
  2499. if (this.collectionItemList[f].answerType == 'dx') {
  2500. let listData = this.collectionItemList[f].collectionOptionList;
  2501. for (let f1 = 0; f1 < listData.length; f1++) {
  2502. let listDatas = listData[f1].collectionItems;
  2503. if (listData[f1].isCheck == '1' && listDatas != undefined && listDatas != null) {
  2504. for (let f2 = 0; f2 < listDatas.length; f2++) {
  2505. if (listDatas[f2].answerType == 'dx') {
  2506. let listDatas1 = listDatas[f2].collectionOptionList;
  2507. for (let f11 = 0; f11 < listDatas1.length; f11++) {
  2508. let listDatas2 = listDatas1[f11].collectionItems;
  2509. if (
  2510. listDatas1[f11].isCheck == '1' &&
  2511. listDatas2 != undefined &&
  2512. listDatas2 != null
  2513. ) {
  2514. for (let f10 = 0; f10 < listDatas2.length; f10++) {
  2515. if (
  2516. listDatas2[f10].answerType == 'sz' ||
  2517. listDatas2[f10].answerType == 'wb' ||
  2518. listDatas2[f10].answerType == 'sm' ||
  2519. listDatas2[f10].answerType == 'date' ||
  2520. listDatas2[f10].answerType == 'tel'
  2521. ) {
  2522. formData.collectionAnswers.push({
  2523. collectionId: listDatas2[f10].collectionId,
  2524. itemName: listDatas2[f10].collectionName,
  2525. collectionType: listDatas2[f10].collectionType,
  2526. collectionOptionId:
  2527. listDatas2[f10].collectionOptionList[0].collectionOptionId,
  2528. answerType: listDatas2[f10].answerType,
  2529. answerValue: listDatas2[f10].collectionOptionList[0].answerValue,
  2530. parentOptionId: listDatas2[f10].parentOptionId,
  2531. parentCollectionId: listDatas2[f10].parentCollectionId,
  2532. secondCollectionId: listDatas2[f10].secondCollectionId,
  2533. firstCollectionId: listDatas2[f10].firstCollectionId,
  2534. });
  2535. }
  2536. if (
  2537. listDatas2[f10].answerType == 'dx' ||
  2538. listDatas2[f10].answerType == 'duox'
  2539. ) {
  2540. let onList = listDatas2[f10].collectionOptionList;
  2541. onList.forEach((item) => {
  2542. if (item.isCheck == 1) {
  2543. formData.collectionAnswers.push({
  2544. collectionId: item.collectionId,
  2545. itemName: item.collectionOption,
  2546. collectionType: listDatas2[f10].collectionType,
  2547. collectionOptionId: item.collectionOptionId,
  2548. parentOptionId: item.parentOptionId,
  2549. parentCollectionId: item.parentCollectionId,
  2550. secondCollectionId: item.secondCollectionId,
  2551. firstCollectionId: item.firstCollectionId,
  2552. answerType: listDatas2[f10].answerType,
  2553. answerValue: 'Y',
  2554. });
  2555. }
  2556. });
  2557. }
  2558. }
  2559. }
  2560. }
  2561. }
  2562. }
  2563. }
  2564. }
  2565. }
  2566. }
  2567. // for (var c = 0; c < this.collectionAnswerlisd.length; c++) {
  2568. // formData.collectionAnswers.push({
  2569. // collectionId: this.collectionAnswerlisd[c].collectionId,
  2570. // itemName: this.collectionAnswerlisd[c].collectionOption,
  2571. // collectionType: this.collectionAnswerlisd[c].collectionType,
  2572. // collectionOptionId: this.collectionAnswerlisd[c].collectionOptionId,
  2573. // parentOptionId: this.collectionAnswerlisd[c].parentOptionId,
  2574. // parentCollectionId: this.collectionAnswerlisd[c].parentCollectionId,
  2575. // answerType: this.collectionAnswerlisd[c].answerType,
  2576. // answerValue: 'Y'
  2577. // });
  2578. // }
  2579. } else if (this.$route.query.taskType == 2) {
  2580. for (let dy = 0; dy < this.tableData1.length; dy++) {
  2581. if (this.tableData1[dy].xdjhchjj != '') {
  2582. if (
  2583. this.tableData1[dy].xdjhyj == '' ||
  2584. this.tableData1[dy].ygnhj == '' ||
  2585. this.tableData1[dy].xdjhchjj.split('.')[1] == ''
  2586. ) {
  2587. this.$dialog.alert({
  2588. title: '系统提示',
  2589. message: '请完善' + this.tableData1[dy].collectionName + '信息或促后竞价格式不正确',
  2590. });
  2591. return false;
  2592. }
  2593. }
  2594. if (this.tableData1[dy].xdjhyj != '') {
  2595. if (this.tableData1[dy].xdjhchjj == '' || this.tableData1[dy].ygnhj == '') {
  2596. this.$dialog.alert({
  2597. title: '系统提示',
  2598. message: '请完善' + this.tableData1[dy].collectionName + '信息',
  2599. });
  2600. return false;
  2601. }
  2602. }
  2603. if (this.tableData1[dy].ygnhj != '') {
  2604. if (this.tableData1[dy].xdjhchjj == '' || this.tableData1[dy].xdjhyj == '') {
  2605. this.$dialog.alert({
  2606. title: '系统提示',
  2607. message: '请完善' + this.tableData1[dy].collectionName + '信息',
  2608. });
  2609. return false;
  2610. }
  2611. }
  2612. }
  2613. for (var d = 0; d < this.tableData1.length; d++) {
  2614. for (var dd = 0; dd < this.tableData1[d].collectionOptionList.length; dd++) {
  2615. if (dd == 0) {
  2616. formData.collectionAnswers.push({
  2617. collectionId: this.tableData1[d].collectionId,
  2618. itemName: this.tableData1[d].collectionName,
  2619. collectionType: 'chanpin',
  2620. collectionOptionId: this.tableData1[d].collectionOptionList[dd].collectionOptionId,
  2621. answerType: 'sz',
  2622. answerValue: this.tableData1[d].xdjhyj,
  2623. });
  2624. }
  2625. if (dd == 1) {
  2626. formData.collectionAnswers.push({
  2627. collectionId: this.tableData1[d].collectionId,
  2628. itemName: this.tableData1[d].collectionName,
  2629. collectionType: 'chanpin',
  2630. collectionOptionId: this.tableData1[d].collectionOptionList[dd].collectionOptionId,
  2631. answerType: 'sz',
  2632. answerValue: this.tableData1[d].xdjhchjj,
  2633. });
  2634. }
  2635. if (dd == 2) {
  2636. formData.collectionAnswers.push({
  2637. collectionId: this.tableData1[d].collectionId,
  2638. itemName: this.tableData1[d].collectionName,
  2639. collectionType: 'chanpin',
  2640. collectionOptionId: this.tableData1[d].collectionOptionList[dd].collectionOptionId,
  2641. answerType: 'sz',
  2642. answerValue: this.tableData1[d].ygnhj,
  2643. });
  2644. }
  2645. }
  2646. }
  2647. } else {
  2648. // for (let dy = 0; dy < this.tableData1.length; dy++) {
  2649. // if (this.tableData1[dy].xdjhchjj != '') {
  2650. // if (
  2651. // this.tableData1[dy].xdjhyj == '' ||
  2652. // this.tableData1[dy].ygnhj == '' ||
  2653. // this.tableData1[dy].xdjhchjj.split('.')[1] == ''
  2654. // ) {
  2655. // this.$dialog.alert({
  2656. // title: '系统提示',
  2657. // message: '请完善' + this.tableData1[dy].collectionName + '信息或促后竞价格式不正确'
  2658. // });
  2659. // return false;
  2660. // }
  2661. // }
  2662. // if (this.tableData1[dy].xdjhyj != '') {
  2663. // if (this.tableData1[dy].xdjhchjj == '' || this.tableData1[dy].ygnhj == '') {
  2664. // this.$dialog.alert({
  2665. // title: '系统提示',
  2666. // message: '请完善' + this.tableData1[dy].collectionName + '信息'
  2667. // });
  2668. // return false;
  2669. // }
  2670. // }
  2671. // if (this.tableData1[dy].ygnhj != '') {
  2672. // if (this.tableData1[dy].xdjhchjj == '' || this.tableData1[dy].xdjhyj == '') {
  2673. // this.$dialog.alert({
  2674. // title: '系统提示',
  2675. // message: '请完善' + this.tableData1[dy].collectionName + '信息'
  2676. // });
  2677. // return false;
  2678. // }
  2679. // }
  2680. // }
  2681. for (var d = 0; d < this.tableData1.length; d++) {
  2682. for (var dd = 0; dd < this.tableData1[d].collectionOptionList.length; dd++) {
  2683. formData.collectionAnswers.push({
  2684. collectionId: this.tableData1[d].collectionId,
  2685. itemName: this.tableData1[d].collectionName,
  2686. collectionType: 'wuliao',
  2687. collectionOptionId: this.tableData1[d].collectionOptionList[dd].collectionOptionId,
  2688. answerType: 'sz',
  2689. answerValue: this.tableData1[d].value,
  2690. });
  2691. }
  2692. }
  2693. }
  2694. if (this.flagclick) {
  2695. this.flagclick = false;
  2696. this.timer = null;
  2697. this.timer = setTimeout(() => {
  2698. this.flagclick = true;
  2699. }, 2000);
  2700. var telVerify = true;
  2701. var telName = '';
  2702. formData.collectionAnswers.forEach((item) => {
  2703. if (
  2704. item.answerType == 'tel' &&
  2705. !/^1[3456789]\d{9}$/.test(item.answerValue) &&
  2706. item.answerValue != ''
  2707. ) {
  2708. telVerify = false;
  2709. telName = item.itemName + '格式错误';
  2710. }
  2711. });
  2712. if (!telVerify) {
  2713. this.$toast(telName);
  2714. } else {
  2715. if (!this.wuliaoMust) {
  2716. formData.collectionAnswers = [];
  2717. }
  2718. addCollectionAnswer(formData).then((res) => {
  2719. if (res.code == 200) {
  2720. this.$router.go(-1);
  2721. } else {
  2722. this.$dialog.alert({
  2723. title: '系统提示',
  2724. message: res.msg,
  2725. });
  2726. }
  2727. });
  2728. }
  2729. }
  2730. },
  2731. onClickLeft() {
  2732. this.$router.go(-1);
  2733. },
  2734. },
  2735. };
  2736. </script>
  2737. <style scoped>
  2738. .container {
  2739. background-color: white;
  2740. }
  2741. .deviceCode {
  2742. font-size: 16px;
  2743. padding: 12px;
  2744. background-color: white;
  2745. margin: 0 12px;
  2746. border-radius: 5px;
  2747. position: relative;
  2748. overflow: hidden;
  2749. }
  2750. .vertical {
  2751. background-color: #2b2f3a;
  2752. height: 14px;
  2753. width: 8px;
  2754. border-radius: 40px;
  2755. position: absolute;
  2756. left: -3px;
  2757. top: 50px;
  2758. }
  2759. .van-f-red {
  2760. color: red;
  2761. width: 8px;
  2762. display: inline-block;
  2763. line-height: 26px;
  2764. }
  2765. .formLabel {
  2766. margin: 0 16px;
  2767. border-bottom: 1px solid #f1f1f1;
  2768. }
  2769. .formLabel .van-cell {
  2770. padding: 10px 0;
  2771. }
  2772. .formLabel .van-cell::after {
  2773. border: 0;
  2774. }
  2775. .formLabel .van-field {
  2776. border: 1px solid #f1f1f1;
  2777. padding: 6px;
  2778. width: 100%;
  2779. border-radius: 4px;
  2780. overflow: hidden;
  2781. }
  2782. .formLabel .van-field__control {
  2783. padding: 0 10px;
  2784. }
  2785. .formLabel .formLabeltitle {
  2786. position: absolute;
  2787. top: 8px;
  2788. }
  2789. .lineGrey {
  2790. height: 10px;
  2791. width: 100%;
  2792. background: #f1f1f1;
  2793. }
  2794. .z-checkbox .van-radio {
  2795. padding: 6px 0;
  2796. }
  2797. .z-cell .van-cell__title {
  2798. font-size: 16px;
  2799. }
  2800. </style>
  2801. <style>
  2802. .table-headermd {
  2803. font-size: 12px;
  2804. text-align: center;
  2805. position: initial;
  2806. width: 98% !important;
  2807. margin: 0 auto;
  2808. border-right: 0;
  2809. }
  2810. .table-headermd .el-table__header,
  2811. .table-headermd .el-table__body {
  2812. width: 100% !important;
  2813. }
  2814. /*.table-headermd col {width: 6.8rem;}*/
  2815. .table-headermd col:nth-child(4) {
  2816. width: 5.6rem;
  2817. }
  2818. .table-headermd col:nth-child(2),
  2819. .table-headermd col:nth-child(3) {
  2820. width: 4.6rem;
  2821. }
  2822. .table-headermdwl col:nth-child(2) {
  2823. width: auto;
  2824. }
  2825. .table-headermdwl col:nth-child(3) {
  2826. width: 4.6rem;
  2827. }
  2828. .table-headermd .van-cell {
  2829. padding: 0 4px;
  2830. height: 100%;
  2831. }
  2832. .table-headermd th.el-table__cell > .cell {
  2833. padding: 0 4px;
  2834. text-align: center;
  2835. }
  2836. .table-headermd th.el-table__cell:first-child > .cell {
  2837. text-align: left;
  2838. }
  2839. .table-headermd th.el-table__cell {
  2840. background-color: #1989fa;
  2841. color: #fff;
  2842. }
  2843. .table-headermd .el-table__cell {
  2844. padding: 4px 0;
  2845. }
  2846. .table-headermd.el-table .cell {
  2847. padding: 0;
  2848. }
  2849. .table-headermd .tipTitle {
  2850. overflow: hidden;
  2851. text-overflow: ellipsis;
  2852. display: -webkit-box;
  2853. -webkit-box-orient: vertical;
  2854. -webkit-line-clamp: 2;
  2855. }
  2856. .table-headermd::before {
  2857. height: 0;
  2858. }
  2859. .xing {
  2860. color: red;
  2861. padding-left: 4px;
  2862. }
  2863. .formLabel .van-radio__label,
  2864. .formLabel .van-checkbox__label {
  2865. font-size: 1.4rem;
  2866. }
  2867. .table-headermd .cell,
  2868. .el-table--border .el-table__cell:first-child .cell {
  2869. padding: 0 4px;
  2870. }
  2871. .van-dialog__confirm,
  2872. .van-dialog__confirm:active {
  2873. color: #1989fa;
  2874. }
  2875. .navBarTOP {
  2876. position: fixed;
  2877. width: 100%;
  2878. z-index: 2;
  2879. top: 0;
  2880. }
  2881. .isTableMust {
  2882. padding: 4px;
  2883. color: #999;
  2884. margin: 0;
  2885. margin-top: -10px;
  2886. }
  2887. .mobile-input .van-field__control {
  2888. font-size: 12px;
  2889. color: #999;
  2890. border: 0;
  2891. }
  2892. .formLabel .mobile-input {
  2893. border: 0 !important;
  2894. }
  2895. </style>