product.vue 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853
  1. <template>
  2. <div class="user-content" >
  3. <div class="provider" id="provider-wrapper">
  4. <div class="search-content" style="border-bottom: 1px solid #f5f5f5;padding-bottom: 0.25rem">
  5. <input type="text" placeholder="请输入您要查找的品牌或型号" v-model="seekKeyword" @keyup.13="searchSeek">
  6. <span @click="searchSeek" >
  7. <i class="iconfont icon-sousuo"></i>
  8. </span>
  9. </div>
  10. <div v-bind:key="index" v-for="(item, index) in GetEnterpriseListData" class="providerList">
  11. <div v-if="providerType !== 'onLine'">
  12. <div class="top">
  13. <div class="icon" :class="item.standard ? 'standed' : 'istanded'"></div>
  14. <div class="text">
  15. {{item.pcmpcode}}
  16. </div>
  17. <img v-if="item.addProductPerson" class="person-flag" src="/images/mobile/product/mine_icon.png" alt="">
  18. </div>
  19. <div class="content">
  20. <div class="fl" :class="providerType === 'enterprise' ? 'fullWidth': ''">
  21. <div class="linetext">品牌:{{item.pbranden}}</div>
  22. <div class="linetext">物料名称:
  23. <template v-if="!item.kind">
  24. {{item.kinden || '-'}}
  25. </template>
  26. <template v-else>
  27. {{item.kind || '-'}}
  28. </template>
  29. </div>
  30. <div class="linetext">规格:{{item.spec}}</div>
  31. <div class="linetext">单位:PCS</div>
  32. </div>
  33. <div class="fr" v-if="providerType !== 'enterprise'" :class="providerType == 'enterprise' && item.batchCount > 0 ? '' : 'addtop'" >
  34. <!--<div class="look" >查看产品</div>-->
  35. <!--<div class="add" >加入个人产品</div>-->
  36. <div class="delete" v-if="providerType == 'person'" @click="deleteProvider(item.id, index)">删除</div>
  37. </div>
  38. </div>
  39. <!--v-if="item.batchCount && providerType == 'enterprise'"-->
  40. <!--v-if="providerType == 'enterprise'"-->
  41. <div class="clearfix" v-if="providerType === 'enterprise'">
  42. <div class="pull-right add" v-if="providerType === 'enterprise'" @click="addProtoperson(item)" :class="{noadd: item.addProductPerson}">加入个人产品</div>
  43. <div class="pull-right look" @click="lookProductitem(item.id, item)" v-if="item.batchCount">查看产品</div>
  44. <div class="pull-right look" @click="toAddpro(item)" v-else>编辑上架</div>
  45. <div class="pull-right look" v-if="providerType === 'enterprise'" @click="updateMateriel(item)">编辑物料</div>
  46. </div>
  47. </div>
  48. <div v-else>
  49. <div class="top top2">
  50. <div class="icon" :class="item.standard ? 'standed' : 'istanded'"></div>
  51. <div class="text">
  52. {{item.code}}
  53. </div>
  54. <!-- <div class="pms">
  55. {{item.storeid === '33069557578d44e69bd91ad12d28a8d4' ? '寄售' : '自营'}}
  56. </div>-->
  57. <img class="store-type" v-if="item.storeid === '33069557578d44e69bd91ad12d28a8d4'" src="/images/mobile/product/consignment.png" alt="">
  58. <img class="store-type" src="/images/mobile/product/self.png" alt="" v-else >
  59. </div>
  60. <div class="middle">
  61. <div class="list" style="height: 0.46rem;">
  62. <div class="fl">
  63. <div class="name">品牌:</div>
  64. <div class="text">{{item.brandNameEn}}</div>
  65. </div>
  66. <div class="fr">
  67. <div class="button" @click="update(item)">编辑</div>
  68. <div class="button" @click="offProduct(item, index)">下架</div>
  69. </div>
  70. </div>
  71. <div class="list">
  72. <div class="fl">
  73. <div class="name">物料名称:</div>
  74. <div class="text">{{item.kindNameCn || '-'}}</div>
  75. </div>
  76. <div class="fr">
  77. <div class="textinfo" v-if="item.breakUp">可拆卖</div>
  78. </div>
  79. </div>
  80. <div class="list">
  81. <div class="fl">
  82. <div class="name">规格:</div>
  83. <div class="text">{{item.spec || '-'}}</div>
  84. </div>
  85. <div class="fr">
  86. <div class="name">交期(天):</div>
  87. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery != item.b2cMinDelivery)" v-text="item.b2cMinDelivery + '-'+ item.b2cMaxDelivery"></div>
  88. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery == item.b2cMinDelivery)" v-text="item.b2cMinDelivery"></div>
  89. </div>
  90. </div>
  91. <div class="list">
  92. <div class="fl">
  93. <div class="name">最小包装数:</div>
  94. <div class="text">{{item.minPackQty}}</div>
  95. </div>
  96. <div class="fr">
  97. <div class="name">库存:</div>
  98. <div class="text">{{item.reserve}}</div>
  99. </div>
  100. </div>
  101. <div class="list">
  102. <div class="fl">
  103. <div class="name">包装方式:</div>
  104. <div class="text">{{item.packaging || '无包装信息'}}</div>
  105. </div>
  106. <div class="fr">
  107. <div class="name">最小起订量:</div>
  108. <div class="text" style="color: #f31919">{{item.minBuyQty}}</div>
  109. </div>
  110. </div>
  111. <div class="list">
  112. <div class="name">生产日期:</div>
  113. <div class="text" :title="item.produceDate">{{item.produceDate || '-'}}</div>
  114. </div>
  115. <div class="list">
  116. <div class="name left">价格梯度:</div>
  117. <div class="table left">
  118. <ul>
  119. <li class="title">
  120. <div>分段数量/PCS</div>
  121. <div>分段单价</div>
  122. </li>
  123. <li v-for="price in item.prices">
  124. <div>{{price.start}}+</div>
  125. <div v-if="item.currencyName == 'RMB'">¥{{price.rMBPrice}}</div>
  126. <div v-else>${{price.rMBPrice}}</div>
  127. </li>
  128. </ul>
  129. </div>
  130. </div>
  131. </div>
  132. <!--<div class="labelinfo">
  133. <div class="labelicon">标签</div>
  134. <div class="labeltext">{{item.tag}}</div>
  135. </div>-->
  136. <div class="label-text">{{item.tag || '暂无标签信息'}}</div>
  137. </div>
  138. </div>
  139. <div class="none-state" v-show="StateNone">
  140. <img src="/images/mobile/@2x/search-empty.png">
  141. <p>暂无数据</p>
  142. <nuxt-link to="/">返回首页</nuxt-link>
  143. </div>
  144. </div>
  145. <!-- 企业产品库 查看信息 -->
  146. <div class="deleteKuang" v-show="showMoreinfn" @touchmove="preventTouchMove($event)">
  147. <div class="Kuang">
  148. <div class="title">产品信息<i @click="closeMoreinfo()" class="icon-guanbi iconfont"></i></div>
  149. <div class="overflow-hidden" ref="mobileModalBox" style="max-height: 9.3rem">
  150. <div class="content">
  151. <div class="infob">
  152. <div class="info"><div class="name">品牌:</div><div>{{cnmpBand}}</div></div>
  153. <div class="info"><div class="name">物料名称:</div><div>{{cnmpType || '-'}}</div></div>
  154. <div class="info"><div class="name">型号:</div><div>{{cnmpCode}}</div></div>
  155. </div>
  156. <div class="content_sq" v-bind:key="item.id" v-for="(item, index) in vendorlist" >
  157. <div class="labelBg">
  158. <div class="labelinfo" style="margin-left: -0.1rem">
  159. <div class="labelicon" style="vertical-align:top;margin-top: 0.09rem">标签</div>
  160. <div class="labeltext">{{item.tag}}</div>
  161. </div>
  162. <div class="middle">
  163. <div class="list" style="height: auto">
  164. <div class="fl">
  165. <div class="name">
  166. <div class="pms">
  167. {{item.storeid === '33069557578d44e69bd91ad12d28a8d4' ? '寄售' : '自营'}}
  168. </div>
  169. </div>
  170. </div>
  171. <div class="fr">
  172. <div class="textinfo" v-if="item.breakUp">可拆卖</div>
  173. </div>
  174. </div>
  175. <div class="list list-long" style="height: auto">
  176. <div class="fl">
  177. <div class="name">规格:</div>
  178. <div class="text">{{item.spec || '-'}}</div>
  179. </div>
  180. </div>
  181. <div class="list" style="height: auto">
  182. <div class="fl">
  183. <div class="name">最小包装数:</div>
  184. <div class="text">{{item.minPackQty}}</div>
  185. </div>
  186. <div class="fr">
  187. <div class="name">交期(天):</div>
  188. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery != item.b2cMinDelivery)" v-text="item.b2cMinDelivery + '-'+ item.b2cMaxDelivery"></div>
  189. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery == item.b2cMinDelivery)" v-text="item.b2cMinDelivery"></div>
  190. </div>
  191. </div>
  192. <div class="list" style="height: auto">
  193. <div class="fl">
  194. <div class="name">包装方式:</div>
  195. <div class="text">{{item.packaging || '无包装信息'}}</div>
  196. </div>
  197. <div class="fr">
  198. <div class="name">库存:</div>
  199. <div class="text">{{item.reserve}}</div>
  200. </div>
  201. </div>
  202. <div class="list" style="height: auto">
  203. <div class="fl">
  204. <div class="name">生产日期:</div>
  205. <div class="text" :title="item.produceDate">{{item.produceDate || '-'}}</div>
  206. </div>
  207. <div class="fr">
  208. <div class="name">最小起订量:</div>
  209. <div class="text" style="color: #f31919">{{item.minBuyQty}}</div>
  210. </div>
  211. </div>
  212. <div class="list" style="height: auto">
  213. <div class="name left">价格梯度:</div>
  214. <div class="table left">
  215. <ul>
  216. <li class="title">
  217. <div>分段数量/PCS</div>
  218. <div>分段单价</div>
  219. </li>
  220. <li v-for="price in item.prices">
  221. <div>{{price.start}}+</div>
  222. <div v-if="item.currencyName == 'RMB'">¥{{price.rMBPrice}}</div>
  223. <div v-else>${{price.rMBPrice}}</div>
  224. </li>
  225. </ul>
  226. </div>
  227. </div>
  228. </div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. <div class="deleteKuang" v-show="showDelete">
  236. <div class="kuangContent">
  237. <div class="title">删除信息</div>
  238. <div class="titleinfo">是否删除该产品</div>
  239. <!--<div class="info" v-show="isUploadpro">*存在已上架信息</div>-->
  240. <div class="K_btn">
  241. <div class="cancelBtn" @click="cancelFn()">取消</div>
  242. <div class="answerBtn" @click="deleteFn()">确定</div>
  243. </div>
  244. </div>
  245. </div>
  246. <div class="deleteKuang" v-show="showoffshelf">
  247. <div class="kuangContent">
  248. <div class="title">系统信息</div>
  249. <div class="titleinfo">是否下架该产品?</div>
  250. <!--<div class="info" v-show="isUploadpro">*存在已上架信息</div>-->
  251. <div class="K_btn">
  252. <div class="cancelBtn" @click="cancelFn()">取消</div>
  253. <div class="answerBtn" @click="offshelfFn()">确定</div>
  254. </div>
  255. </div>
  256. </div>
  257. <remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
  258. <pull-up :fixId="'provider-wrapper'" :searchMore="isSearchSearchingMore" :allPage="EnterprisePage" :page="seekPage" @pullUpAction="getMoreSearch"></pull-up>
  259. <!-- 在售产品编辑框 -->
  260. <!-- 编辑物料 -->
  261. <div class="update-materiel" v-if="showMateriel">
  262. <div class="mobile-nav">
  263. <div class="mobile-header mobile-center-header">
  264. <a @click="showMateriel = false"><i class="iconfont icon-fanhui"></i></a>
  265. <p>编辑物料</p>
  266. <p class="en-name">
  267. <img :src="`/images/mobile/center/${user.data.enterprise && user.data.enterprise.uu ? 'en' : 'self'}.png`" alt="">{{currentEnName}}
  268. </p>
  269. </div>
  270. </div>
  271. <div class="update-materiel-wrapper" @click="clearInfo()">
  272. <!--<div class="clearfix">-->
  273. <!--<div class="update-materiel-wrapper-image pull-left">-->
  274. <!--<img :src="cmpImg || '/images/mobile/openStore/upload.png'" style='width: 1.1rem; height: 1.1rem;display:block;margin: 0.2rem auto'/>-->
  275. <!--<input type="file" class="com-input" @change="update" accept="image/jpeg,image/jpg,image/gif,image/bmp,image/png,.pdf" />-->
  276. <!--<span style="position: relative">点击上传</span>-->
  277. <!--</div>-->
  278. <!--<div class="uploadImgBtn pull-left">上传图片<input type="file" class="com-input" @change="update" accept="image/jpeg,image/jpg,image/gif,image/bmp,image/png,.pdf" /></div>-->
  279. <!--<span class="uploadImgInfo pull-left">图片上传须知</span>-->
  280. <!--</div>-->
  281. <template v-if="MaterielItem.standard === 1">
  282. <img class="imgUrl" src="/images/mobile/@2x/productDetail/Strand.png" />
  283. </template>
  284. <template v-else>
  285. <img class="imgUrl" src="/images/mobile/@2x/productDetail/isStrand.png" />
  286. </template>
  287. <div class="update-materiel-wrapper-list clearfix" :class="{'overHidden': MaterielItem.standard === 1}">
  288. <div class="name pull-left"><a class="red">*</a>品牌:</div>
  289. <template v-if="MaterielItem.standard === 1">
  290. {{MaterielItem.pbranden}}
  291. </template>
  292. <template v-else>
  293. <div class="input pull-left clearfix" :class="{'overHidden': MaterielItem.standard === 1}">
  294. <input type="text" v-model="MaterielItem.pbranden" placeholder="请勿填中文符号" @blur.stop="checkBrand" @input.stop="onBrandChange"/>
  295. <ul class="similar brand-similar-list" v-show="showSimilarBrandList && MaterielItem.pbranden">
  296. <li v-for="sBrand in similarBrand" @click.stop="setBrand(sBrand.nameEn)">{{sBrand.nameEn}}</li>
  297. </ul>
  298. <i class="iconfont icon-guanbi1" @click.stop="MaterielItem.pbranden = ''"></i>
  299. </div>
  300. </template>
  301. </div>
  302. <div class="update-materiel-wrapper-list clearfix" :class="{'overHidden': MaterielItem.standard === 1}">
  303. <div class="name pull-left"><a class="red">*</a>物料名称:</div>
  304. <template v-if="MaterielItem.standard === 1">
  305. {{MaterielItem.kind}}
  306. </template>
  307. <template v-else>
  308. <div class="input pull-left clearfix" style="width: 4.09rem">
  309. <!--<input type="text" v-model="MaterielItem.kind" @blur="checkCode" @input="onCodeChange" placeholder="请勿填中文符号">-->
  310. <input type="text" placeholder="请输入物料名称" v-model="MaterielItem.kind"/>
  311. <i class="iconfont icon-guanbi1" @click.stop="MaterielItem.kind = ''"></i>
  312. </div>
  313. </template>
  314. </div>
  315. <div class="update-materiel-wrapper-list clearfix">
  316. <div class="name pull-left"><a class="red">*</a>型号:</div>
  317. <template v-if="MaterielItem.standard === 1">
  318. {{MaterielItem.pcmpcode}}
  319. </template>
  320. <template v-else>
  321. <div class="input pull-left clearfix">
  322. <input type="text" v-model="MaterielItem.pcmpcode" @blur.stop="checkCode" @input.stop="onCodeChange" placeholder="请勿填中文符号">
  323. <ul class="similar" v-show="showSimilarCodeList && MaterielItem.pcmpcode">
  324. <li v-for="sCode in similarCode" @click.stop="setCode(sCode.code)">{{sCode.code}}</li>
  325. </ul>
  326. <!--<input type="text" placeholder="请输入型号" v-model="MaterielItem.pcmpcode"/>-->
  327. <i class="iconfont icon-guanbi1" @click.stop="MaterielItem.pcmpcode = ''"></i>
  328. </div>
  329. </template>
  330. </div>
  331. <div class="update-materiel-wrapper-list clearfix">
  332. <div class="name pull-left"><a class="red" style="opacity: 0">*</a>规格:</div>
  333. <div class="input pull-left clearfix">
  334. <input type="text" placeholder="请输入规格" v-model="MaterielItem.spec" @blur="checkSpec" @input="onSpecInput" maxlength="50"/>
  335. <i class="iconfont icon-guanbi1" @click.stop="MaterielItem.spec = ''"></i>
  336. </div>
  337. </div>
  338. <div class="update-materiel-wrapper-controll clearfix">
  339. <div class="pull-left" @click.stop="saveMateriel()">保存</div>
  340. <div class="pull-right" @click.stop="saveMateriel('a')">取消</div>
  341. </div>
  342. </div>
  343. </div>
  344. </div>
  345. </template>
  346. <script>
  347. import { RemindBox, PullUp } from '~components/mobile/common'
  348. import Upload from '~components/common/upload/upload.vue'
  349. export default {
  350. layout: 'mobile',
  351. middleware: 'authenticated',
  352. name: 'mobileProduct',
  353. data() {
  354. return {
  355. GetEnterpriseListData: [],
  356. seekPage: 1,
  357. providerType: this.$route.query.providerType,
  358. showMoreinfn: false,
  359. showDelete: false,
  360. isSearchSearchingMore: false,
  361. seekKeyword: '',
  362. collectResult: '',
  363. timeoutCount: 0,
  364. EnterprisePage: 1,
  365. chooseItem: {},
  366. vendorlist: [], // 查看更多信息
  367. showoffshelf: false,
  368. showMateriel: false,
  369. imgStyle: 'width: 1.1rem;height:1.1rem',
  370. MaterielItem: {},
  371. showSimilarCodeList: false,
  372. showSimilarBrandList: false,
  373. similarCode: [],
  374. similarBrand: [],
  375. cmpImg: ''
  376. }
  377. },
  378. methods: {
  379. clearInfo() {
  380. this.showSimilarCodeList = false
  381. this.showSimilarBrandList = false
  382. },
  383. toAddpro(list) {
  384. let item = {
  385. brandNameEn: list.pbranden,
  386. kindNameCn: list.kinden || list.kind,
  387. code: list.pcmpcode,
  388. spec: list.spec,
  389. prices: [{
  390. end: '',
  391. rMBNTPrice: '',
  392. rMBPrice: '',
  393. start: '1'
  394. }],
  395. minBuyQty: 1,
  396. minPackQty: 1,
  397. productid: list.id,
  398. prodNum: list.prodNum,
  399. currencyName: this.$store.state.option.storeStatus.data.enType === 'MAINLAND' ? 'RMB' : 'USD',
  400. breakUp: false
  401. }
  402. this.$store.commit('product/brand/GET_ONSALE_DETAILS_SUCCESS', item)
  403. localStorage.setItem('ProductListItem', JSON.stringify(item))
  404. this.$router.push(`/mobile/center/vendor/productdetails?formurl=productlist&return=goBack`)
  405. },
  406. update(item) {
  407. this.$store.commit('product/brand/GET_ONSALE_DETAILS_SUCCESS', item)
  408. this.$router.push('/mobile/center/vendor/productdetails')
  409. localStorage.setItem('ProductListItem', JSON.stringify(item))
  410. },
  411. offProduct(item) {
  412. this.showoffshelf = true
  413. this.shelfItem = item
  414. },
  415. offshelfFn() {
  416. let item = this.shelfItem
  417. this.$http.put(`/trade/goods/provider/off/shelf?batchCodes=${item.batchCode}`).then(res => {
  418. if (res.data.success) {
  419. this.timeoutCount++
  420. this.collectResult = '下架成功'
  421. this.showoffshelf = false
  422. this.seekPage = 1
  423. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  424. this.GetEnterpriseListData = null
  425. this.GetEnterpriseListData = []
  426. this.reloadData()
  427. } else {
  428. this.timeoutCount++
  429. this.collectResult = res.data.message
  430. }
  431. }, err => {
  432. this.timeoutCount++
  433. this.collectResult = err.response.data
  434. })
  435. },
  436. // scroll: function () {
  437. // let scrolled = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop
  438. // if (Math.ceil(scrolled + window.screen.availHeight) >= document.body.scrollHeight && !this.isSearchSearchingMore && this.seekPage < this.EnterprisePage) {
  439. // this.getMoreSearch()
  440. // }
  441. // },
  442. searchSeek: function () {
  443. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  444. this.GetEnterpriseListData = null
  445. this.GetEnterpriseListData = []
  446. this.seekPage = 1
  447. this.reloadData()
  448. },
  449. reloadData: function () {
  450. this.getResourceProvidor()
  451. },
  452. // blur: function() {
  453. // setTimeout(() => {
  454. // this.$store.dispatch('mobile/SetInputGetFocus', false)
  455. // }, 300)
  456. // },
  457. // inputGetFocus: function() {
  458. // setTimeout(() => {
  459. // this.$store.dispatch('mobile/SetInputGetFocus', true)
  460. // }, 300)
  461. // },
  462. getMoreSearch: function () {
  463. this.seekPage++
  464. this.isSearchSearchingMore = true
  465. this.reloadData()
  466. },
  467. // 获取当前企业产品库
  468. GetEnterpriseList: function() {
  469. let params = {
  470. _status: 'all',
  471. count: 20,
  472. isStandard: true,
  473. keyword: this.seekKeyword || '',
  474. page: this.seekPage,
  475. sorting: { id: 'DESC' },
  476. type: 'all'
  477. }
  478. return this.$http.get('/trade/products', { params })
  479. },
  480. // 获取当前个人产品库
  481. GetPersonList: function(cb) {
  482. let params = {
  483. _status: 'all',
  484. count: 20,
  485. isStandard: true,
  486. keyword: this.seekKeyword || '',
  487. page: this.seekPage,
  488. sorting: { id: 'DESC' },
  489. type: 'all'
  490. }
  491. return this.$http.get('/trade/products/person', { params })
  492. },
  493. // 获取当前在售产品
  494. GetOnlineList: function() {
  495. let params = {
  496. count: 10,
  497. keyword: this.seekKeyword || '',
  498. page: this.seekPage,
  499. sorting: { 'createdDate': 'DESC' },
  500. status: '601-602'
  501. }
  502. return this.$http.get('/trade/goods/store/status', { params })
  503. },
  504. // 产品管理切换
  505. switchprovide: function(type) {
  506. this.providerType = type
  507. this.seekPage = 1
  508. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  509. this.GetEnterpriseListData = null
  510. this.GetEnterpriseListData = []
  511. this.getResourceProvidor()
  512. },
  513. // 删除个人产品库
  514. deleteProvider: function(id, index) {
  515. this.showDelete = true
  516. this.deleteId = id
  517. // this.deleteItemIndex = index
  518. // this.$http.get(`/trade/goods/${id}/deleteMessage`).then(response => {
  519. // this.isUploadpro = response.data.code
  520. // })
  521. },
  522. deleteFn: function() {
  523. this.$http.delete(`/trade/products/${this.deleteId}?isPerson=1`).then(response => {
  524. this.showDelete = false
  525. this.collectResult = '删除成功'
  526. this.timeoutCount++
  527. this.seekPage = 1
  528. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  529. this.isChange2 = true
  530. this.reloadData()
  531. // this.GetEnterpriseListData.splice(this.deleteItemIndex, 1)
  532. }, () => {
  533. this.showDelete = false
  534. this.collectResult = '删除失败'
  535. this.timeoutCount++
  536. })
  537. },
  538. cancelFn: function() {
  539. this.showDelete = false
  540. this.showoffshelf = false
  541. },
  542. // 获取相对应的信息
  543. getResourceProvidor: function() {
  544. if (this.providerType === 'enterprise') {
  545. this.GetEnterpriseList().then(res => {
  546. this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
  547. this.EnterprisePage = res.data.totalPages
  548. this.isSearchSearchingMore = false
  549. })
  550. } else if (this.providerType === 'person') {
  551. this.GetPersonList().then(res => {
  552. this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
  553. this.EnterprisePage = res.data.totalPages
  554. this.isSearchSearchingMore = false
  555. })
  556. } else if (this.providerType === 'onLine') {
  557. this.GetOnlineList().then(res => {
  558. this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
  559. this.EnterprisePage = res.data.totalPages
  560. this.isSearchSearchingMore = false
  561. })
  562. }
  563. },
  564. // 查看企业产品库更多信息
  565. lookProductitem: function(id, item) {
  566. this.chooseItem = item
  567. this.$store.commit('product/component/REQUEST_NOWPRODUCTINFO_SUCCESS', item)
  568. localStorage.setItem('productInfoItem', JSON.stringify(item))
  569. this.$router.push(`/mobile/center/vendor/productList?uuid=${id}`)
  570. // this.$http.get(`/trade/products/goods/productid/${id}`).then(res => {
  571. // this._initscroll()
  572. // this.showMoreinfn = true
  573. // this.vendorlist = res.data
  574. // })
  575. },
  576. closeMoreinfo: function() {
  577. this.showMoreinfn = false
  578. },
  579. // 编辑物料
  580. updateMateriel(item) {
  581. this.MaterielItem = item
  582. this.$item = this.baseUtils.deepCopy(item)
  583. this.cmpImg = item.cmpImg || ''
  584. // this.MaterielItem.cmpImg = item.cmpImg || ''
  585. this.showMateriel = true
  586. },
  587. addProtoperson: function(item) {
  588. if (item.addProductPerson) {
  589. this.collectResult = '已在个人产品库'
  590. this.timeoutCount++
  591. return false
  592. }
  593. this.$http.post('/trade/products/person', [item.id])
  594. .then(response => {
  595. this.collectResult = '绑定成功'
  596. this.timeoutCount++
  597. this.seekPage = 1
  598. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  599. this.GetEnterpriseListData = null
  600. this.GetEnterpriseListData = []
  601. this.reloadData()
  602. }, () => {
  603. this.collectResult = '绑定失败'
  604. this.timeoutCount++
  605. })
  606. },
  607. checkBrand: function () {
  608. // this.MaterielItem.brand = this.MaterielItem.brand && this.MaterielItem.brand !== ''
  609. if (!this.MaterielItem.pbranden || this.MaterielItem.pbranden === '') {
  610. this.setRemindText('品牌不能为空')
  611. }
  612. return this.MaterielItem.pbranden
  613. },
  614. checkCode: function () {
  615. if (!this.MaterielItem.pcmpcode || this.MaterielItem.pcmpcode === '') {
  616. this.setRemindText('型号不能为空')
  617. }
  618. return this.MaterielItem.pcmpcode
  619. },
  620. onCodeChange: function () {
  621. this.MaterielItem.pcmpcode = this.MaterielItem.pcmpcode.trim()
  622. if ((/[^\x00-\xff]/g).test(this.MaterielItem.pcmpcode)) {
  623. let chineseIndex = -1
  624. for (let i = 0; i < this.MaterielItem.pcmpcode.length; i++) {
  625. if ((/[^\x00-\xff]/g).test(this.MaterielItem.pcmpcode.charAt(i))) {
  626. chineseIndex = i
  627. break
  628. }
  629. }
  630. this.MaterielItem.pcmpcode = this.baseUtils.cutOutString(this.MaterielItem.pcmpcode, chineseIndex)
  631. } else if (this.MaterielItem.pcmpcode && this.baseUtils.getRealLen(this.MaterielItem.pcmpcode) > 100) {
  632. this.MaterielItem.pcmpcode = this.baseUtils.cutOutString(this.MaterielItem.pcmpcode, 100)
  633. } else {
  634. this.getSimilarCode()
  635. }
  636. },
  637. onBrandChange: function () {
  638. this.MaterielItem.pbranden = this.MaterielItem.pbranden.trim()
  639. if ((/[^\x00-\xff]/g).test(this.MaterielItem.pbranden)) {
  640. let chineseIndex = -1
  641. for (let i = 0; i < this.MaterielItem.pbranden.length; i++) {
  642. if ((/[^\x00-\xff]/g).test(this.MaterielItem.pbranden.charAt(i)) && !(/[\u4e00-\u9fa5]/).test(this.MaterielItem.pbranden.charAt(i))) {
  643. chineseIndex = i
  644. break
  645. }
  646. }
  647. if (chineseIndex > -1) {
  648. this.MaterielItem.pbranden = this.MaterielItem.pbranden.substring(0, chineseIndex)
  649. }
  650. } else if (this.MaterielItem.pbranden && this.baseUtils.getRealLen(this.MaterielItem.pbranden) > 50) {
  651. this.MaterielItem.pbranden = this.baseUtils.cutOutString(this.MaterielItem.pbranden, 50)
  652. } else {
  653. this.getSimilarBrand()
  654. }
  655. },
  656. getSimilarBrand: function () {
  657. if (this.MaterielItem.pbranden) {
  658. this.$http.get('/search/similarBrands', {params: {keyword: this.MaterielItem.pbranden}})
  659. .then(response => {
  660. this.similarBrand = response.data
  661. this.showSimilarBrandList = response.data.length > 0
  662. })
  663. } else {
  664. this.showSimilarBrandList = false
  665. }
  666. },
  667. getSimilarCode: function () {
  668. if (this.MaterielItem.pcmpcode) {
  669. this.$http.get('/search/similarComponents', {params: {keyword: this.MaterielItem.pcmpcode}})
  670. .then(response => {
  671. this.similarCode = response.data
  672. this.showSimilarCodeList = response.data.length > 0
  673. })
  674. } else {
  675. this.showSimilarCodeList = false
  676. }
  677. },
  678. setCode: function (code) {
  679. this.MaterielItem.pcmpcode = code
  680. this.showSimilarCodeList = false
  681. },
  682. setBrand: function (brand) {
  683. this.MaterielItem.pbranden = brand
  684. this.showSimilarBrandList = false
  685. },
  686. setRemindText: function (str) {
  687. this.collectResult = str
  688. this.timeoutCount++
  689. },
  690. checkSpec: function () {
  691. // let nullStrFlag =
  692. // this.MaterielItem.spec = nullStrFlag
  693. if (!this.baseUtils.checkNullStr(this.MaterielItem.spec)) {
  694. this.setRemindText('规格输入不合法')
  695. }
  696. return this.MaterielItem.spec
  697. },
  698. onSpecInput: function () {
  699. if (this.MaterielItem.spec && this.baseUtils.getRealLen(this.MaterielItem.spec) > 100) {
  700. this.MaterielItem.spec = this.baseUtils.cutOutString(this.MaterielItem.spec, 100)
  701. }
  702. },
  703. saveMateriel(str) {
  704. if (str) {
  705. let _key1 = Object.keys(this.$item)
  706. let _key2 = Object.keys(this.MaterielItem)
  707. for (let i = 0; i < _key1.length; i++) {
  708. this.MaterielItem[_key2[i]] = this.$item[_key1[i]]
  709. }
  710. this.showMateriel = false
  711. return
  712. }
  713. if (this.MaterielItem.pbranden === '') {
  714. this.setRemindText('品牌不能为空')
  715. return
  716. } else if (this.MaterielItem.kind === '') {
  717. this.setRemindText('物料名称不能为空')
  718. return
  719. } else if (this.MaterielItem.pcmpcode === '') {
  720. this.setRemindText('型号不能为空')
  721. return
  722. }
  723. this.MaterielItem.pcmpcode = this.MaterielItem.pcmpcode
  724. this.MaterielItem.pbranden = this.MaterielItem.pbranden
  725. let item = {
  726. id: this.MaterielItem.id,
  727. kind : this.MaterielItem.kind,
  728. pbranden: this.MaterielItem.pbranden,
  729. pcmpcode: this.MaterielItem.pcmpcode,
  730. spec: this.MaterielItem.spec,
  731. url: ''
  732. }
  733. this.$http.post('/trade/products/update/product?attachUrl=', item).then(res => {
  734. if (res.data.success) {
  735. this.setRemindText('修改成功')
  736. this.showMateriel = false
  737. this.page = 1
  738. this.GetEnterpriseListData = null
  739. this.GetEnterpriseListData = []
  740. this.getResourceProvidor()
  741. } else {
  742. this.setRemindText(res.data.message)
  743. }
  744. })
  745. }
  746. // update (e) {
  747. // let file = e.target.files[0]
  748. // if (file.size > 3 * 1024 * 1024) {
  749. // this.setRemindText(`上传文件不得超过3M`)
  750. // }
  751. // let param = new FormData()
  752. // param.append('file', file, file.name)
  753. // param.append('chunk', '0')
  754. // if (file.type === 'application/pdf') {
  755. // this.setRemindText(`请选择有效图片进行上传`)
  756. // return
  757. // }
  758. // let config = {
  759. // headers: {'Content-Type': 'multipart/form-data'}
  760. // }
  761. // this.$http.post('/api/images', param, config)
  762. // .then(response => {
  763. // this.MaterielItem.img = response.data[0].path
  764. // this.cmpImg = response.data[0].path
  765. // })
  766. // }
  767. },
  768. computed: {
  769. // 是否展示空数据
  770. StateNone() {
  771. return this.GetEnterpriseListData.length === 0 && this.EnterprisePage === 0
  772. },
  773. cnmpCode() { // 型号
  774. if (this.chooseItem.pcmpcode) {
  775. return this.chooseItem.pcmpcode
  776. }
  777. return '-'
  778. },
  779. cnmpType() { // 物料名称
  780. return this.chooseItem.kind || this.chooseItem.kinden || '-'
  781. },
  782. cnmpBand() { // 品牌
  783. if (this.chooseItem.pbranden) {
  784. return this.chooseItem.pbranden
  785. }
  786. return '-'
  787. },
  788. cnmpSpec() { // 规格
  789. if (this.chooseItem.spec) {
  790. return this.chooseItem.spec
  791. }
  792. return '-'
  793. },
  794. shopuuid() {
  795. return this.$store.state.option.storeStatus.data
  796. }
  797. },
  798. mounted: function () {
  799. this.$nextTick(() => {
  800. // window.addEventListener('scroll', this.scroll, false)
  801. this._initscroll()
  802. })
  803. },
  804. created() {
  805. this.getResourceProvidor()
  806. },
  807. components: {
  808. RemindBox,
  809. PullUp,
  810. Upload
  811. }
  812. }
  813. </script>
  814. <style scoped lang="scss">
  815. @mixin overFlowHidden {
  816. overflow: hidden;
  817. text-overflow: ellipsis;
  818. white-space: nowrap;
  819. }
  820. @mixin lineHeight($value) {
  821. height: $value;
  822. line-height: $value;
  823. }
  824. .overHidden {
  825. @include overFlowHidden()
  826. }
  827. .user-content{
  828. position: absolute;
  829. width: 100%;
  830. height: 100%;
  831. .provider {
  832. margin: 1.26rem 0 0.98rem 0;
  833. height: calc(100vh - 1.26rem - 0.98rem);
  834. overflow-y: auto;
  835. }
  836. .sa-pub {
  837. display: inline-block;
  838. width: 1.41rem;
  839. height: .47rem;
  840. line-height: .47rem;
  841. text-align: center;
  842. color: #fff;
  843. background: #3f84f6;
  844. border-radius: .14rem;
  845. }
  846. .none-state{
  847. text-align: center;
  848. padding:1.5rem 0;
  849. background: #fff;
  850. margin-top:.1rem;
  851. width:100%;
  852. img{
  853. margin:0 auto;
  854. width: 4.08rem;
  855. height: 2.62rem;
  856. }
  857. p {
  858. font-size: .32rem;
  859. color: #999;
  860. margin: 1.19rem 0 0 0;
  861. }
  862. a {
  863. display: block;
  864. font-size: .28rem;
  865. color: #fff;
  866. width: 1.88rem;
  867. height: .54rem;
  868. line-height: .54rem;
  869. background: #418bf6;
  870. margin: .7rem auto 0;
  871. border-radius: .05rem;
  872. }
  873. }
  874. .user-name{
  875. height: 1.8rem;
  876. padding: .28rem 0 .28rem .34rem;
  877. background: #fff;
  878. width: 100%;
  879. position: relative;
  880. img{
  881. display: inline-block;
  882. width: 1.25rem;
  883. height: 1.25rem;
  884. border: 1px solid #c5dbfc;
  885. border-radius: .05rem;
  886. vertical-align: middle;
  887. }
  888. .user-info {
  889. margin-left:.25rem;
  890. display: inline-block;
  891. vertical-align: middle;
  892. position: relative;
  893. p{
  894. font-size:.3rem;
  895. margin:0;
  896. display: block;
  897. overflow: hidden;
  898. text-overflow: ellipsis;
  899. white-space: nowrap;
  900. max-width: 3.92rem;
  901. &:nth-child(2) {
  902. position: relative;
  903. margin-top: .2rem;
  904. padding-right: .7rem;
  905. overflow: unset;
  906. max-width: unset;
  907. .en-name {
  908. overflow: hidden;
  909. text-overflow: ellipsis;
  910. white-space: nowrap;
  911. max-width: 3.22rem;
  912. display: inline-block;
  913. }
  914. a {
  915. position: absolute;
  916. right: 0;
  917. }
  918. .exit {
  919. right: -.8rem;
  920. }
  921. .vir {
  922. position: absolute;
  923. right: -.14rem;
  924. }
  925. }
  926. }
  927. .en-list {
  928. position: absolute;
  929. max-width: 5rem;
  930. max-height: 3rem;
  931. overflow-y: auto;
  932. border-radius: .05rem;
  933. background: rgba(0, 0, 0, .6);
  934. z-index: 10;
  935. .menu-item {
  936. height: .6rem;
  937. line-height: .6rem;
  938. font-size: .3rem;
  939. padding: 0 .2rem;
  940. overflow: hidden;
  941. white-space: nowrap;
  942. text-overflow: ellipsis;
  943. &:active, &:focus, &:hover {
  944. background: #7d7d7d;
  945. }
  946. a {
  947. color: #fff;
  948. }
  949. }
  950. }
  951. }
  952. > a {
  953. font-size: .24rem;
  954. position: absolute;
  955. top: .45rem;
  956. right: .1rem;
  957. color: #3f84f6;
  958. border: 1px solid #3f84f6;
  959. border-radius: .2rem;
  960. padding: .06rem .12rem;
  961. }
  962. }
  963. .shop-list {
  964. background:#fff;
  965. border-bottom: .1rem solid #dfe2e4;
  966. padding: .14rem 0 .14rem 0;
  967. h3{
  968. font-size: .32rem;
  969. line-height: .4rem;
  970. margin: 0 0 0 .27rem;
  971. overflow: hidden;
  972. text-overflow: ellipsis;
  973. white-space: nowrap;
  974. padding-top: .1rem;
  975. position: relative;
  976. top: .1rem;
  977. }
  978. .list-item{
  979. width:6.77rem;
  980. margin-left:.39rem;
  981. .item-img{
  982. width:2.4rem;
  983. vertical-align: middle;
  984. display: inline-block;
  985. img{
  986. &:nth-child(2) {
  987. width:2.4rem;
  988. height:1.69rem;
  989. border: 1px solid #eee;
  990. }
  991. &:nth-child(1) {
  992. position:absolute;
  993. width:.65rem;
  994. height:.33rem;
  995. }
  996. }
  997. }
  998. .list-item-phone{
  999. width:3.95rem;
  1000. padding:.18rem 0;
  1001. position:relative;
  1002. display: inline-block;
  1003. vertical-align: middle;
  1004. margin-left: .26rem;
  1005. p{
  1006. font-size:.28rem;
  1007. line-height: .67rem;
  1008. margin:0;
  1009. overflow: hidden;
  1010. text-overflow: ellipsis;
  1011. white-space: nowrap;
  1012. width: 3.2rem;
  1013. }
  1014. i{
  1015. display:block;
  1016. position:absolute;
  1017. top: -.06rem;
  1018. right: -.18rem;
  1019. font-size:.5rem;
  1020. color:#ff7800;
  1021. width: .6rem;
  1022. height: .6rem;
  1023. text-align: center;
  1024. line-height: .6rem;
  1025. }
  1026. }
  1027. }
  1028. &:active {
  1029. background: #e1e1e1;
  1030. }
  1031. }
  1032. .detail-brand{
  1033. background: #fff;
  1034. width:100%;
  1035. min-height:1.5rem;
  1036. padding:.2rem 0;
  1037. border-bottom: .1rem solid #dfe2e4;
  1038. &:nth-child(1) {
  1039. margin-top:.1rem;
  1040. }
  1041. .brand-item{
  1042. width:7rem;
  1043. margin:0 auto;
  1044. border-radius:.1rem;
  1045. background: #fff;
  1046. padding:.2rem;
  1047. position:relative;
  1048. &:active{
  1049. background: #e1e1e1;
  1050. }
  1051. p{
  1052. font-size:.28rem;
  1053. line-height:.4rem;
  1054. color:#333;
  1055. margin:0;
  1056. }
  1057. i{
  1058. display:block;
  1059. position:absolute;
  1060. top:.2rem;
  1061. right:.4rem;
  1062. font-size:.5rem;
  1063. color:#ff7800;
  1064. width: .6rem;
  1065. height: .6rem;
  1066. line-height: .6rem;
  1067. text-align: center;
  1068. }
  1069. .sa-pub {
  1070. position: absolute;
  1071. right: 0;
  1072. bottom: .2rem;
  1073. }
  1074. }
  1075. div.active{
  1076. background: #d4d;
  1077. }
  1078. }
  1079. .collect-list-type {
  1080. background: #fff;
  1081. border-bottom: 1px solid #acacac;
  1082. p {
  1083. font-size: .32rem;
  1084. margin: 0 0 0 .13rem;
  1085. width: .92rem;
  1086. text-align: center;
  1087. line-height: .5rem;
  1088. border-bottom: .06rem solid #418bf6;
  1089. }
  1090. }
  1091. ul.switch-list {
  1092. .noshop {
  1093. width: 50%;
  1094. }
  1095. li {
  1096. display: inline-block;
  1097. width: 2.5rem;
  1098. height: .63rem;
  1099. line-height: .63rem;
  1100. text-align: center;
  1101. font-size: .28rem;
  1102. color: #666;
  1103. background: #fff;
  1104. border: 1px solid #b4b4b4;
  1105. border-right: none;
  1106. &.active {
  1107. background: #0067e7;
  1108. border: 1px solid #0067e7;
  1109. color: #fff;
  1110. }
  1111. &:first-child {
  1112. border-left: none;
  1113. }
  1114. &:last-child {
  1115. border-right: none;
  1116. }
  1117. }
  1118. &.vendor-switch {
  1119. li {
  1120. width: 50%;
  1121. }
  1122. }
  1123. }
  1124. .seek {
  1125. .seek-type {
  1126. margin-top: .15rem;
  1127. li {
  1128. font-size: .28rem;
  1129. color: #666;
  1130. display: inline-block;
  1131. width: 50%;
  1132. text-align: center;
  1133. div {
  1134. border-bottom: 1px solid #c1c4c9;
  1135. margin: 0 auto;
  1136. height: .46rem;
  1137. line-height: .46rem;
  1138. }
  1139. &.active {
  1140. color: #3f84f6;
  1141. div {
  1142. border-color: #3f84f6;
  1143. }
  1144. }
  1145. }
  1146. }
  1147. }
  1148. .search-content {
  1149. text-align: center;
  1150. padding: .25rem 0 0 0;
  1151. input {
  1152. border: 1px solid #376ff3;
  1153. }
  1154. span {
  1155. /*height: .46rem;*/
  1156. /*line-height: .46rem;*/
  1157. }
  1158. }
  1159. .seek-area {
  1160. height: 1.26rem;
  1161. line-height: 1.26rem;
  1162. border-top: .19rem solid #f6f5f5;
  1163. border-bottom: .19rem solid #f6f5f5;
  1164. overflow: hidden;
  1165. /*padding: .32rem 0;*/
  1166. img {
  1167. height: .78rem;
  1168. margin-right: .2rem;
  1169. vertical-align: top;
  1170. margin-top: .1rem;
  1171. }
  1172. .sa-title {
  1173. font-size: .38rem;
  1174. color: #3f84f6;
  1175. line-height: .32rem;
  1176. vertical-align: top;
  1177. margin-top: .1rem;
  1178. span {
  1179. color: #494949;
  1180. }
  1181. .sa-text {
  1182. font-size: .26rem;
  1183. color: #999;
  1184. }
  1185. }
  1186. .sa-pub {
  1187. margin-left: .86rem;
  1188. vertical-align: top;
  1189. margin-top: .23rem;
  1190. }
  1191. }
  1192. }
  1193. .providerList {
  1194. border-top: .31rem solid #f1f3f7;
  1195. .top {
  1196. position: relative;
  1197. &.top2 {
  1198. .text {
  1199. width: 5.4rem;
  1200. }
  1201. .pms {
  1202. color: #f57710;
  1203. border: 1px solid #f57710;
  1204. border-radius: 0.4rem;
  1205. background: #fff;
  1206. font-size: 0.24rem;
  1207. height: 0.4rem;
  1208. line-height: 0.4rem;
  1209. width: 0.8rem;
  1210. text-align: center;
  1211. float: right;
  1212. margin-top: 0.25rem;
  1213. }
  1214. .store-type {
  1215. width: .77rem;
  1216. height: .77rem;
  1217. position: absolute;
  1218. right: 0;
  1219. top: 0;
  1220. }
  1221. }
  1222. .icon {
  1223. width: 0.6rem;
  1224. height: 0.36rem;
  1225. line-height: 0.36rem;
  1226. margin-top: 0.27rem;
  1227. float: left;
  1228. background-size: 100%;
  1229. background-repeat: no-repeat;
  1230. margin-right: 0.12rem;
  1231. text-align: center;
  1232. &.istanded{
  1233. background-image: url('/images/mobile/@2x/istanded.png')
  1234. }
  1235. &.standed{
  1236. background-image: url('/images/mobile/@2x/standed.png')
  1237. }
  1238. }
  1239. .person-flag {
  1240. width: .75rem;
  1241. position: absolute;
  1242. right: 0;
  1243. }
  1244. .text {
  1245. float: left;
  1246. width: 6.3rem;
  1247. overflow: hidden;
  1248. text-overflow: ellipsis;
  1249. white-space: nowrap;
  1250. }
  1251. padding: 0 0.24rem;
  1252. /*background: #f5f9fd;*/
  1253. border-bottom: 1px solid #d3d3d3;
  1254. height: 0.9rem;
  1255. line-height: 0.9rem;
  1256. color: #0067e7;
  1257. font-size: 0.3rem;
  1258. &::after{
  1259. clear: both;
  1260. display: block;
  1261. content: ' ';
  1262. visibility: hidden;
  1263. zoom: 1;
  1264. }
  1265. }
  1266. .content {
  1267. padding: 0.24rem 0.24rem;
  1268. background: #fff;
  1269. .linetext {
  1270. margin-bottom: 0.24rem;
  1271. overflow: hidden;
  1272. text-overflow: ellipsis;
  1273. white-space: nowrap;
  1274. &:nth-last-of-type(1){
  1275. margin-bottom: 0rem;
  1276. }
  1277. }
  1278. .fl {
  1279. float: left;
  1280. border-right: 1px dashed #e0e0e4;
  1281. width: 4.68rem;
  1282. &.fullWidth {
  1283. width: 100%;
  1284. border: 0;
  1285. float: left
  1286. }
  1287. }
  1288. .fr {
  1289. float: right;
  1290. margin: 0.18rem 0.24rem;
  1291. margin-right: 0rem;
  1292. font-size: 0.3rem;
  1293. &.addtop {
  1294. margin-top: 0.6rem;
  1295. .add {
  1296. background: #0067e7;
  1297. color: #fff;
  1298. &.noadd{
  1299. background: #cccbcb;
  1300. color: #fff;
  1301. border:1px solid #cccbcb;
  1302. }
  1303. }
  1304. }
  1305. div {
  1306. width: 2.1rem;
  1307. height: 0.6rem;
  1308. text-align: center;
  1309. line-height: 0.6rem;
  1310. border-radius: 3px;
  1311. &.delete{
  1312. background: #fff;
  1313. color: #f70415;
  1314. border: 1px solid #f70415;
  1315. }
  1316. }
  1317. div:nth-child(1){
  1318. margin-bottom: 0.26rem
  1319. }
  1320. }
  1321. &::after{
  1322. clear: both;
  1323. display: block;
  1324. content: ' ';
  1325. visibility: hidden;
  1326. zoom: 1;
  1327. }
  1328. }
  1329. div.clearfix {
  1330. padding: 0.2rem 0;
  1331. margin: 0 0.2rem;
  1332. border-top: 1px solid #d3d3d3;
  1333. div {
  1334. width: 2.1rem;
  1335. height: 0.6rem;
  1336. text-align: center;
  1337. line-height: 0.6rem;
  1338. border-radius: 3px;
  1339. margin-right: 0.2rem;
  1340. &.look {
  1341. color: #008bf7;
  1342. border: 1px solid #008bf7;
  1343. }
  1344. &.add {
  1345. background: #fff;
  1346. color: #f57710;
  1347. border: 1px solid #f57710;
  1348. }
  1349. &.noadd{
  1350. background: #cccbcb;
  1351. color: #fff;
  1352. border:1px solid #cccbcb;
  1353. }
  1354. }
  1355. }
  1356. }
  1357. .middle {
  1358. padding: 0.24rem 0.24rem 0px;
  1359. background: #fff;
  1360. .pms {
  1361. color: #f57710;
  1362. border: 1px solid #f57710;
  1363. border-radius: 0.4rem;
  1364. background: #fff;
  1365. font-size: 0.24rem;
  1366. height: 0.4rem;
  1367. line-height: 0.4rem;
  1368. width: 0.8rem;
  1369. text-align: center;
  1370. }
  1371. .list {
  1372. /*height: 0.46rem;*/
  1373. .left {
  1374. float: left;
  1375. overflow: hidden;
  1376. text-overflow: ellipsis;
  1377. white-space: nowrap;
  1378. }
  1379. .textinfo {
  1380. color: #0067e7;
  1381. font-size: 0.3rem;
  1382. }
  1383. .button {
  1384. font-size: 0.26rem;
  1385. color: #fff;
  1386. width: 0.92rem;
  1387. text-align: center;
  1388. border-radius: 5px;
  1389. /*border:1px solid #1a58dd;*/
  1390. background: #1a58dd;
  1391. display: inline-block;
  1392. margin-right: 0.2rem;
  1393. line-height: 0.33rem;
  1394. height: 0.37rem;
  1395. }
  1396. margin-bottom: 0.18rem;
  1397. &::after{
  1398. clear: both;
  1399. display: block;
  1400. content: ' ';
  1401. visibility: hidden;
  1402. zoom: 1;
  1403. }
  1404. .fl {
  1405. width: 4.3rem;
  1406. float: left;
  1407. overflow: hidden;
  1408. text-overflow: ellipsis;
  1409. white-space: nowrap;
  1410. }
  1411. .fr {
  1412. text-align: left;
  1413. width: 2.6rem;
  1414. overflow: hidden;
  1415. text-overflow: ellipsis;
  1416. white-space: nowrap;
  1417. }
  1418. &.list-long {
  1419. .fl {
  1420. width: 100% !important;
  1421. }
  1422. }
  1423. .name {
  1424. color: #666;
  1425. font-size: 0.3rem;
  1426. display: inline-block;
  1427. }
  1428. .text {
  1429. display: inline-block;
  1430. color: #333;
  1431. font-size: 0.3rem
  1432. }
  1433. .table {
  1434. width: 5.5rem;
  1435. margin-bottom: 0;
  1436. margin-top: 0;
  1437. li {
  1438. height: 0.43rem;
  1439. line-height: 0.43rem;
  1440. border-left: .01rem solid #c5c5c5;
  1441. font-size: .28rem;
  1442. &::after {
  1443. clear: both;
  1444. display: block;
  1445. content: ' ';
  1446. visibility: hidden;
  1447. zoom: 1;
  1448. }
  1449. div {
  1450. text-align: center;
  1451. width: 50%;
  1452. float: left;
  1453. border-right: .01rem solid #c5c5c5;
  1454. border-bottom: .01rem solid #c5c5c5;
  1455. }
  1456. &:nth-child(odd) {
  1457. background: #ddd;
  1458. color: #666;
  1459. font-size: 0.28rem;
  1460. }
  1461. &:nth-child(even) {
  1462. background: #fcfcfc;
  1463. color: #666;
  1464. font-size: 0.28rem;
  1465. }
  1466. &:nth-last-of-type(1){
  1467. color: #f31919;
  1468. }
  1469. &.title {
  1470. font-size: 0.28rem;
  1471. color: #333;
  1472. }
  1473. }
  1474. }
  1475. }
  1476. }
  1477. .labelinfo {
  1478. padding: 0 .24rem;
  1479. background: #e6e6e6;
  1480. height: 0.6rem;
  1481. line-height: 0.6rem;
  1482. width: 100%;
  1483. color: #666;
  1484. font-size: 0.26rem;
  1485. overflow: hidden;
  1486. text-overflow: ellipsis;
  1487. white-space: nowrap;
  1488. .labelicon {
  1489. background-image: url('/images/mobile/@2x/label_icon.png');
  1490. background-repeat: no-repeat;
  1491. width: 0.61rem;
  1492. height: 0.38rem;
  1493. line-height: 0.38rem;
  1494. background-size: 100%;
  1495. color: #fff;
  1496. margin-right: 0.1rem;
  1497. display: inline-block;
  1498. font-size: 0.22rem;
  1499. text-align: center;
  1500. /*vertical-align: middle;*/
  1501. }
  1502. .labeltext{
  1503. display: inline-block;
  1504. /*vertical-align: middle;*/
  1505. }
  1506. }
  1507. .label-text {
  1508. padding: .09rem .21rem;
  1509. border-radius: .22rem;
  1510. background: #ddd;
  1511. font-size: .26rem;
  1512. color: #666;
  1513. display: inline-block;
  1514. margin-left: .22rem;
  1515. margin-bottom: .25rem;
  1516. }
  1517. .deleteKuang {
  1518. position: fixed;
  1519. background: rgba(0, 0, 0, 0.5);
  1520. top: 0;
  1521. left: 0;
  1522. right: 0;
  1523. bottom: 0;
  1524. z-index: 9999;
  1525. .kuangContent {
  1526. border-radius: 5px;
  1527. background: #fff;
  1528. width: 5rem;
  1529. position: absolute;
  1530. left: 50%;
  1531. top: 50%;
  1532. transform: translate3d(-50%, -50%, 0);
  1533. overflow: hidden;
  1534. .titleinfo {
  1535. font-size: .3rem;
  1536. color: #666;
  1537. text-align: center;
  1538. margin-top: 0.5rem;
  1539. margin-bottom: 0.1rem;
  1540. }
  1541. .title {
  1542. background: #5078cb;
  1543. height: .7rem;
  1544. line-height: .7rem;
  1545. font-size: .3rem;
  1546. color: #fff;
  1547. text-align: center;
  1548. }
  1549. .info {
  1550. color: #f00;
  1551. text-align: center;
  1552. }
  1553. .K_btn {
  1554. margin-top: 0.4rem;
  1555. line-height: 0.7rem;
  1556. height: 0.7rem;
  1557. &::after {
  1558. clear: both;
  1559. display: block;
  1560. content: ' ';
  1561. visibility: hidden;
  1562. zoom: 1;
  1563. }
  1564. div {
  1565. float: left;
  1566. width: 50%;
  1567. font-size: 0.3rem;
  1568. text-align: center;
  1569. &.cancelBtn {
  1570. background: #b4b5b9;
  1571. color: #333;
  1572. }
  1573. &.answerBtn {
  1574. background: #5078cb;
  1575. color: #fff;
  1576. }
  1577. }
  1578. }
  1579. }
  1580. i {
  1581. font-size: .6rem;
  1582. position: absolute;
  1583. right: -0.3rem;
  1584. top: -0.35rem;
  1585. color: #fff;
  1586. &::after {
  1587. position: absolute;
  1588. top: -0.1rem;
  1589. left: -0.1rem;
  1590. right: -0.1rem;
  1591. bottom: -0.1rem;
  1592. content: ' '
  1593. }
  1594. }
  1595. .title {
  1596. background: #3f84f6;
  1597. height: 0.7rem;
  1598. line-height: 0.7rem;
  1599. color: #fff;
  1600. text-align: center;
  1601. font-size: 0.3rem;
  1602. position: relative;
  1603. }
  1604. .Kuang {
  1605. max-height: 10rem;
  1606. width: 6.7rem;
  1607. position: absolute;
  1608. left: 50%;
  1609. top: 50%;
  1610. transform: translate3d(-50%, -50%, 0);
  1611. background: #ececec;
  1612. border-radius: 5px;
  1613. }
  1614. .content {
  1615. .infob {
  1616. background: #e3edfd;
  1617. padding: 0.2rem;
  1618. .info {
  1619. color: #333;
  1620. font-size: 0.3rem;
  1621. overflow: hidden;
  1622. text-overflow: ellipsis;
  1623. white-space: nowrap;
  1624. margin-bottom: 0.18rem;
  1625. .name {
  1626. color: #666;
  1627. }
  1628. div {
  1629. display: inline-block;
  1630. }
  1631. }
  1632. }
  1633. .content_sq {
  1634. width: 6.4rem;
  1635. margin: 0.1rem auto;
  1636. background: #fff;
  1637. padding: 0.2rem 0;
  1638. .list {
  1639. margin-bottom: 0.18rem;
  1640. }
  1641. .fl {
  1642. width: 3.2rem;
  1643. }
  1644. .table {
  1645. width: 4.2rem;
  1646. margin-top: -0.1rem;
  1647. }
  1648. .labelinfo {
  1649. background-image: url('/images/mobile/@2x/labelTop.png');
  1650. background-repeat: no-repeat;
  1651. width: 6.29rem;
  1652. height: 0.64rem;
  1653. line-height: 0.64rem;
  1654. background-size: 100%;
  1655. margin-top: 0rem;
  1656. margin-right: 0rem;
  1657. background-color: rgba(0, 0, 0, 0);
  1658. color: #666;
  1659. }
  1660. }
  1661. }
  1662. }
  1663. .update-materiel {
  1664. position: fixed;
  1665. z-index: 99;
  1666. background: #f1f3f6;
  1667. top: 0;
  1668. left: 0;
  1669. bottom: 0;
  1670. right: 0;
  1671. .mobile-header{
  1672. position: fixed;
  1673. top: 0;
  1674. z-index: 10;
  1675. width:100%;
  1676. height: 1.26rem;
  1677. line-height: 1.26rem;
  1678. /*border-bottom:.01rem solid #ccc;*/
  1679. background: #3e82f5;
  1680. padding:0 .2rem 0 .1rem;
  1681. color:#fff;
  1682. }
  1683. .mobile-header p{
  1684. overflow: hidden;
  1685. text-overflow: ellipsis;
  1686. white-space: nowrap;
  1687. font-size:.36rem;
  1688. text-align: center;
  1689. width: 6rem;
  1690. padding-left: 1rem;
  1691. }
  1692. .mobile-center-header p.en-name {
  1693. font-size: .3rem;
  1694. }
  1695. .mobile-header a{
  1696. font-size:.28rem;
  1697. color:#fff;
  1698. position: absolute;
  1699. }
  1700. .mobile-header a i{
  1701. font-size: .48rem;
  1702. margin-right: -.1rem;
  1703. }
  1704. .update-materiel-wrapper {
  1705. border: 1px solid #dcdcdc;
  1706. border-radius: 0.07rem;
  1707. background: #fff;
  1708. margin: 1.46rem 0.2rem 0;
  1709. position: relative;
  1710. padding-bottom: 0.4rem;
  1711. padding-top: 1rem;
  1712. position: relative;
  1713. .imgUrl{
  1714. position: absolute;
  1715. width: 0.94rem;
  1716. height: 0.94rem;
  1717. right: 0;
  1718. top: 0;
  1719. }
  1720. .update-materiel-wrapper-image {
  1721. width: 2.28rem;
  1722. height: 2.28rem;
  1723. border: 1px solid #dcdcdc;
  1724. border-radius: 0.07rem;
  1725. position: relative;
  1726. margin: 0.27rem 0 0 0.55rem;
  1727. text-align: center;
  1728. position: relative;
  1729. span {
  1730. color: #b2b2b2;
  1731. font-size: 0.28rem;
  1732. }
  1733. .com-input {
  1734. width: 100%;
  1735. height: 100%;
  1736. text-align: center;
  1737. position: absolute;
  1738. bottom: 0;
  1739. left: 0;
  1740. opacity: 0;
  1741. display: inline-block !important;
  1742. }
  1743. }
  1744. .uploadImgBtn {
  1745. color: #fff;
  1746. font-size: .28rem;
  1747. width: 1.51rem;
  1748. @include lineHeight(0.47rem);
  1749. border-radius: 0.07rem;
  1750. background: #f9b209;
  1751. text-align: center;
  1752. margin:2rem 0.1rem 0;
  1753. position: relative;
  1754. .com-input {
  1755. width: 100%;
  1756. height: 100%;
  1757. text-align: center;
  1758. position: absolute;
  1759. bottom: 0;
  1760. left: 0;
  1761. opacity: 0;
  1762. display: inline-block !important;
  1763. }
  1764. }
  1765. .uploadImgInfo {
  1766. color: #3f84f6;
  1767. font-size: 0.24rem;
  1768. margin-top: 2.15rem;
  1769. }
  1770. .update-materiel-wrapper-list {
  1771. margin-left:0.28rem;
  1772. margin-top: 0.3rem;
  1773. line-height: 0.7rem;
  1774. .red {color: #ea0f42}
  1775. .name {color: #666;}
  1776. .input {
  1777. position: relative;
  1778. width:5.4rem;
  1779. line-height: 0.7rem;
  1780. height: 0.7rem;
  1781. border: 1px solid #dcdcdc;
  1782. input {
  1783. text-indent: 5px;
  1784. border: 0;
  1785. border-radius: 0.07rem;
  1786. line-height: 0.64rem;
  1787. height: 0.64rem;
  1788. width: 90%;
  1789. font-size:0.28rem;
  1790. float: left;
  1791. color: #333;
  1792. }
  1793. i {
  1794. font-size: 0.16rem;
  1795. vertical-align: top;
  1796. color: #666;
  1797. float: right;
  1798. margin-right: 0.05rem
  1799. }
  1800. .similar {
  1801. position: absolute;
  1802. width:100%;
  1803. max-height: 2.5rem;
  1804. overflow-y: auto;
  1805. z-index: 12;
  1806. border: 1px solid #7e7e7e;
  1807. border-radius: .05rem;
  1808. top: .5rem;
  1809. background: #fff;
  1810. li {
  1811. height: .5rem;
  1812. line-height: .5rem;
  1813. font-size: .26rem;
  1814. color: #999;
  1815. padding-left: .19rem;
  1816. &:focus, &:active, &:hover {
  1817. background: #999;
  1818. color: #fff;
  1819. }
  1820. }
  1821. }
  1822. }
  1823. }
  1824. .update-materiel-wrapper-controll {
  1825. margin: 0.4rem 0.2rem 0;
  1826. div {
  1827. width: 48%;
  1828. background: #b5b5b5;
  1829. font-size: 0.3rem;
  1830. color: #fafbfc;
  1831. text-align: center;
  1832. @include lineHeight(0.62rem);
  1833. border-radius: 0.07rem;
  1834. &:first-child {
  1835. background: #3f84f6;
  1836. }
  1837. }
  1838. }
  1839. }
  1840. }
  1841. </style>