| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853 |
- <template>
- <div class="user-content" >
- <div class="provider" id="provider-wrapper">
- <div class="search-content" style="border-bottom: 1px solid #f5f5f5;padding-bottom: 0.25rem">
- <input type="text" placeholder="请输入您要查找的品牌或型号" v-model="seekKeyword" @keyup.13="searchSeek">
- <span @click="searchSeek" >
- <i class="iconfont icon-sousuo"></i>
- </span>
- </div>
- <div v-bind:key="index" v-for="(item, index) in GetEnterpriseListData" class="providerList">
- <div v-if="providerType !== 'onLine'">
- <div class="top">
- <div class="icon" :class="item.standard ? 'standed' : 'istanded'"></div>
- <div class="text">
- {{item.pcmpcode}}
- </div>
- <img v-if="item.addProductPerson" class="person-flag" src="/images/mobile/product/mine_icon.png" alt="">
- </div>
- <div class="content">
- <div class="fl" :class="providerType === 'enterprise' ? 'fullWidth': ''">
- <div class="linetext">品牌:{{item.pbranden}}</div>
- <div class="linetext">物料名称:
- <template v-if="!item.kind">
- {{item.kinden || '-'}}
- </template>
- <template v-else>
- {{item.kind || '-'}}
- </template>
- </div>
- <div class="linetext">规格:{{item.spec}}</div>
- <div class="linetext">单位:PCS</div>
- </div>
- <div class="fr" v-if="providerType !== 'enterprise'" :class="providerType == 'enterprise' && item.batchCount > 0 ? '' : 'addtop'" >
- <!--<div class="look" >查看产品</div>-->
- <!--<div class="add" >加入个人产品</div>-->
- <div class="delete" v-if="providerType == 'person'" @click="deleteProvider(item.id, index)">删除</div>
- </div>
- </div>
- <!--v-if="item.batchCount && providerType == 'enterprise'"-->
- <!--v-if="providerType == 'enterprise'"-->
- <div class="clearfix" v-if="providerType === 'enterprise'">
- <div class="pull-right add" v-if="providerType === 'enterprise'" @click="addProtoperson(item)" :class="{noadd: item.addProductPerson}">加入个人产品</div>
- <div class="pull-right look" @click="lookProductitem(item.id, item)" v-if="item.batchCount">查看产品</div>
- <div class="pull-right look" @click="toAddpro(item)" v-else>编辑上架</div>
- <div class="pull-right look" v-if="providerType === 'enterprise'" @click="updateMateriel(item)">编辑物料</div>
- </div>
- </div>
- <div v-else>
- <div class="top top2">
- <div class="icon" :class="item.standard ? 'standed' : 'istanded'"></div>
- <div class="text">
- {{item.code}}
- </div>
- <!-- <div class="pms">
- {{item.storeid === '33069557578d44e69bd91ad12d28a8d4' ? '寄售' : '自营'}}
- </div>-->
- <img class="store-type" v-if="item.storeid === '33069557578d44e69bd91ad12d28a8d4'" src="/images/mobile/product/consignment.png" alt="">
- <img class="store-type" src="/images/mobile/product/self.png" alt="" v-else >
- </div>
- <div class="middle">
- <div class="list" style="height: 0.46rem;">
- <div class="fl">
- <div class="name">品牌:</div>
- <div class="text">{{item.brandNameEn}}</div>
- </div>
- <div class="fr">
- <div class="button" @click="update(item)">编辑</div>
- <div class="button" @click="offProduct(item, index)">下架</div>
- </div>
- </div>
- <div class="list">
- <div class="fl">
- <div class="name">物料名称:</div>
- <div class="text">{{item.kindNameCn || '-'}}</div>
- </div>
- <div class="fr">
- <div class="textinfo" v-if="item.breakUp">可拆卖</div>
- </div>
- </div>
- <div class="list">
- <div class="fl">
- <div class="name">规格:</div>
- <div class="text">{{item.spec || '-'}}</div>
- </div>
- <div class="fr">
- <div class="name">交期(天):</div>
- <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery != item.b2cMinDelivery)" v-text="item.b2cMinDelivery + '-'+ item.b2cMaxDelivery"></div>
- <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery == item.b2cMinDelivery)" v-text="item.b2cMinDelivery"></div>
- </div>
- </div>
- <div class="list">
- <div class="fl">
- <div class="name">最小包装数:</div>
- <div class="text">{{item.minPackQty}}</div>
- </div>
- <div class="fr">
- <div class="name">库存:</div>
- <div class="text">{{item.reserve}}</div>
- </div>
- </div>
- <div class="list">
- <div class="fl">
- <div class="name">包装方式:</div>
- <div class="text">{{item.packaging || '无包装信息'}}</div>
- </div>
- <div class="fr">
- <div class="name">最小起订量:</div>
- <div class="text" style="color: #f31919">{{item.minBuyQty}}</div>
- </div>
- </div>
- <div class="list">
- <div class="name">生产日期:</div>
- <div class="text" :title="item.produceDate">{{item.produceDate || '-'}}</div>
- </div>
- <div class="list">
- <div class="name left">价格梯度:</div>
- <div class="table left">
- <ul>
- <li class="title">
- <div>分段数量/PCS</div>
- <div>分段单价</div>
- </li>
- <li v-for="price in item.prices">
- <div>{{price.start}}+</div>
- <div v-if="item.currencyName == 'RMB'">¥{{price.rMBPrice}}</div>
- <div v-else>${{price.rMBPrice}}</div>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <!--<div class="labelinfo">
- <div class="labelicon">标签</div>
- <div class="labeltext">{{item.tag}}</div>
- </div>-->
- <div class="label-text">{{item.tag || '暂无标签信息'}}</div>
- </div>
- </div>
- <div class="none-state" v-show="StateNone">
- <img src="/images/mobile/@2x/search-empty.png">
- <p>暂无数据</p>
- <nuxt-link to="/">返回首页</nuxt-link>
- </div>
- </div>
- <!-- 企业产品库 查看信息 -->
- <div class="deleteKuang" v-show="showMoreinfn" @touchmove="preventTouchMove($event)">
- <div class="Kuang">
- <div class="title">产品信息<i @click="closeMoreinfo()" class="icon-guanbi iconfont"></i></div>
- <div class="overflow-hidden" ref="mobileModalBox" style="max-height: 9.3rem">
- <div class="content">
- <div class="infob">
- <div class="info"><div class="name">品牌:</div><div>{{cnmpBand}}</div></div>
- <div class="info"><div class="name">物料名称:</div><div>{{cnmpType || '-'}}</div></div>
- <div class="info"><div class="name">型号:</div><div>{{cnmpCode}}</div></div>
- </div>
- <div class="content_sq" v-bind:key="item.id" v-for="(item, index) in vendorlist" >
- <div class="labelBg">
- <div class="labelinfo" style="margin-left: -0.1rem">
- <div class="labelicon" style="vertical-align:top;margin-top: 0.09rem">标签</div>
- <div class="labeltext">{{item.tag}}</div>
- </div>
- <div class="middle">
- <div class="list" style="height: auto">
- <div class="fl">
- <div class="name">
- <div class="pms">
- {{item.storeid === '33069557578d44e69bd91ad12d28a8d4' ? '寄售' : '自营'}}
- </div>
- </div>
- </div>
- <div class="fr">
- <div class="textinfo" v-if="item.breakUp">可拆卖</div>
- </div>
- </div>
- <div class="list list-long" style="height: auto">
- <div class="fl">
- <div class="name">规格:</div>
- <div class="text">{{item.spec || '-'}}</div>
- </div>
- </div>
- <div class="list" style="height: auto">
- <div class="fl">
- <div class="name">最小包装数:</div>
- <div class="text">{{item.minPackQty}}</div>
- </div>
- <div class="fr">
- <div class="name">交期(天):</div>
- <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery != item.b2cMinDelivery)" v-text="item.b2cMinDelivery + '-'+ item.b2cMaxDelivery"></div>
- <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery == item.b2cMinDelivery)" v-text="item.b2cMinDelivery"></div>
- </div>
- </div>
- <div class="list" style="height: auto">
- <div class="fl">
- <div class="name">包装方式:</div>
- <div class="text">{{item.packaging || '无包装信息'}}</div>
- </div>
- <div class="fr">
- <div class="name">库存:</div>
- <div class="text">{{item.reserve}}</div>
- </div>
- </div>
- <div class="list" style="height: auto">
- <div class="fl">
- <div class="name">生产日期:</div>
- <div class="text" :title="item.produceDate">{{item.produceDate || '-'}}</div>
- </div>
- <div class="fr">
- <div class="name">最小起订量:</div>
- <div class="text" style="color: #f31919">{{item.minBuyQty}}</div>
- </div>
- </div>
- <div class="list" style="height: auto">
- <div class="name left">价格梯度:</div>
- <div class="table left">
- <ul>
- <li class="title">
- <div>分段数量/PCS</div>
- <div>分段单价</div>
- </li>
- <li v-for="price in item.prices">
- <div>{{price.start}}+</div>
- <div v-if="item.currencyName == 'RMB'">¥{{price.rMBPrice}}</div>
- <div v-else>${{price.rMBPrice}}</div>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="deleteKuang" v-show="showDelete">
- <div class="kuangContent">
- <div class="title">删除信息</div>
- <div class="titleinfo">是否删除该产品</div>
- <!--<div class="info" v-show="isUploadpro">*存在已上架信息</div>-->
- <div class="K_btn">
- <div class="cancelBtn" @click="cancelFn()">取消</div>
- <div class="answerBtn" @click="deleteFn()">确定</div>
- </div>
- </div>
- </div>
- <div class="deleteKuang" v-show="showoffshelf">
- <div class="kuangContent">
- <div class="title">系统信息</div>
- <div class="titleinfo">是否下架该产品?</div>
- <!--<div class="info" v-show="isUploadpro">*存在已上架信息</div>-->
- <div class="K_btn">
- <div class="cancelBtn" @click="cancelFn()">取消</div>
- <div class="answerBtn" @click="offshelfFn()">确定</div>
- </div>
- </div>
- </div>
- <remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
- <pull-up :fixId="'provider-wrapper'" :searchMore="isSearchSearchingMore" :allPage="EnterprisePage" :page="seekPage" @pullUpAction="getMoreSearch"></pull-up>
- <!-- 在售产品编辑框 -->
- <!-- 编辑物料 -->
- <div class="update-materiel" v-if="showMateriel">
- <div class="mobile-nav">
- <div class="mobile-header mobile-center-header">
- <a @click="showMateriel = false"><i class="iconfont icon-fanhui"></i></a>
- <p>编辑物料</p>
- <p class="en-name">
- <img :src="`/images/mobile/center/${user.data.enterprise && user.data.enterprise.uu ? 'en' : 'self'}.png`" alt="">{{currentEnName}}
- </p>
- </div>
- </div>
- <div class="update-materiel-wrapper" @click="clearInfo()">
- <!--<div class="clearfix">-->
- <!--<div class="update-materiel-wrapper-image pull-left">-->
- <!--<img :src="cmpImg || '/images/mobile/openStore/upload.png'" style='width: 1.1rem; height: 1.1rem;display:block;margin: 0.2rem auto'/>-->
- <!--<input type="file" class="com-input" @change="update" accept="image/jpeg,image/jpg,image/gif,image/bmp,image/png,.pdf" />-->
- <!--<span style="position: relative">点击上传</span>-->
- <!--</div>-->
- <!--<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>-->
- <!--<span class="uploadImgInfo pull-left">图片上传须知</span>-->
- <!--</div>-->
- <template v-if="MaterielItem.standard === 1">
- <img class="imgUrl" src="/images/mobile/@2x/productDetail/Strand.png" />
- </template>
- <template v-else>
- <img class="imgUrl" src="/images/mobile/@2x/productDetail/isStrand.png" />
- </template>
- <div class="update-materiel-wrapper-list clearfix" :class="{'overHidden': MaterielItem.standard === 1}">
- <div class="name pull-left"><a class="red">*</a>品牌:</div>
- <template v-if="MaterielItem.standard === 1">
- {{MaterielItem.pbranden}}
- </template>
- <template v-else>
- <div class="input pull-left clearfix" :class="{'overHidden': MaterielItem.standard === 1}">
- <input type="text" v-model="MaterielItem.pbranden" placeholder="请勿填中文符号" @blur.stop="checkBrand" @input.stop="onBrandChange"/>
- <ul class="similar brand-similar-list" v-show="showSimilarBrandList && MaterielItem.pbranden">
- <li v-for="sBrand in similarBrand" @click.stop="setBrand(sBrand.nameEn)">{{sBrand.nameEn}}</li>
- </ul>
- <i class="iconfont icon-guanbi1" @click.stop="MaterielItem.pbranden = ''"></i>
- </div>
- </template>
- </div>
- <div class="update-materiel-wrapper-list clearfix" :class="{'overHidden': MaterielItem.standard === 1}">
- <div class="name pull-left"><a class="red">*</a>物料名称:</div>
- <template v-if="MaterielItem.standard === 1">
- {{MaterielItem.kind}}
- </template>
- <template v-else>
- <div class="input pull-left clearfix" style="width: 4.09rem">
- <!--<input type="text" v-model="MaterielItem.kind" @blur="checkCode" @input="onCodeChange" placeholder="请勿填中文符号">-->
- <input type="text" placeholder="请输入物料名称" v-model="MaterielItem.kind"/>
- <i class="iconfont icon-guanbi1" @click.stop="MaterielItem.kind = ''"></i>
- </div>
- </template>
- </div>
- <div class="update-materiel-wrapper-list clearfix">
- <div class="name pull-left"><a class="red">*</a>型号:</div>
- <template v-if="MaterielItem.standard === 1">
- {{MaterielItem.pcmpcode}}
- </template>
- <template v-else>
- <div class="input pull-left clearfix">
- <input type="text" v-model="MaterielItem.pcmpcode" @blur.stop="checkCode" @input.stop="onCodeChange" placeholder="请勿填中文符号">
- <ul class="similar" v-show="showSimilarCodeList && MaterielItem.pcmpcode">
- <li v-for="sCode in similarCode" @click.stop="setCode(sCode.code)">{{sCode.code}}</li>
- </ul>
- <!--<input type="text" placeholder="请输入型号" v-model="MaterielItem.pcmpcode"/>-->
- <i class="iconfont icon-guanbi1" @click.stop="MaterielItem.pcmpcode = ''"></i>
- </div>
- </template>
- </div>
- <div class="update-materiel-wrapper-list clearfix">
- <div class="name pull-left"><a class="red" style="opacity: 0">*</a>规格:</div>
- <div class="input pull-left clearfix">
- <input type="text" placeholder="请输入规格" v-model="MaterielItem.spec" @blur="checkSpec" @input="onSpecInput" maxlength="50"/>
- <i class="iconfont icon-guanbi1" @click.stop="MaterielItem.spec = ''"></i>
- </div>
- </div>
- <div class="update-materiel-wrapper-controll clearfix">
- <div class="pull-left" @click.stop="saveMateriel()">保存</div>
- <div class="pull-right" @click.stop="saveMateriel('a')">取消</div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import { RemindBox, PullUp } from '~components/mobile/common'
- import Upload from '~components/common/upload/upload.vue'
- export default {
- layout: 'mobile',
- middleware: 'authenticated',
- name: 'mobileProduct',
- data() {
- return {
- GetEnterpriseListData: [],
- seekPage: 1,
- providerType: this.$route.query.providerType,
- showMoreinfn: false,
- showDelete: false,
- isSearchSearchingMore: false,
- seekKeyword: '',
- collectResult: '',
- timeoutCount: 0,
- EnterprisePage: 1,
- chooseItem: {},
- vendorlist: [], // 查看更多信息
- showoffshelf: false,
- showMateriel: false,
- imgStyle: 'width: 1.1rem;height:1.1rem',
- MaterielItem: {},
- showSimilarCodeList: false,
- showSimilarBrandList: false,
- similarCode: [],
- similarBrand: [],
- cmpImg: ''
- }
- },
- methods: {
- clearInfo() {
- this.showSimilarCodeList = false
- this.showSimilarBrandList = false
- },
- toAddpro(list) {
- let item = {
- brandNameEn: list.pbranden,
- kindNameCn: list.kinden || list.kind,
- code: list.pcmpcode,
- spec: list.spec,
- prices: [{
- end: '',
- rMBNTPrice: '',
- rMBPrice: '',
- start: '1'
- }],
- minBuyQty: 1,
- minPackQty: 1,
- productid: list.id,
- prodNum: list.prodNum,
- currencyName: this.$store.state.option.storeStatus.data.enType === 'MAINLAND' ? 'RMB' : 'USD',
- breakUp: false
- }
- this.$store.commit('product/brand/GET_ONSALE_DETAILS_SUCCESS', item)
- localStorage.setItem('ProductListItem', JSON.stringify(item))
- this.$router.push(`/mobile/center/vendor/productdetails?formurl=productlist&return=goBack`)
- },
- update(item) {
- this.$store.commit('product/brand/GET_ONSALE_DETAILS_SUCCESS', item)
- this.$router.push('/mobile/center/vendor/productdetails')
- localStorage.setItem('ProductListItem', JSON.stringify(item))
- },
- offProduct(item) {
- this.showoffshelf = true
- this.shelfItem = item
- },
- offshelfFn() {
- let item = this.shelfItem
- this.$http.put(`/trade/goods/provider/off/shelf?batchCodes=${item.batchCode}`).then(res => {
- if (res.data.success) {
- this.timeoutCount++
- this.collectResult = '下架成功'
- this.showoffshelf = false
- this.seekPage = 1
- this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
- this.GetEnterpriseListData = null
- this.GetEnterpriseListData = []
- this.reloadData()
- } else {
- this.timeoutCount++
- this.collectResult = res.data.message
- }
- }, err => {
- this.timeoutCount++
- this.collectResult = err.response.data
- })
- },
- // scroll: function () {
- // let scrolled = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop
- // if (Math.ceil(scrolled + window.screen.availHeight) >= document.body.scrollHeight && !this.isSearchSearchingMore && this.seekPage < this.EnterprisePage) {
- // this.getMoreSearch()
- // }
- // },
- searchSeek: function () {
- this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
- this.GetEnterpriseListData = null
- this.GetEnterpriseListData = []
- this.seekPage = 1
- this.reloadData()
- },
- reloadData: function () {
- this.getResourceProvidor()
- },
- // blur: function() {
- // setTimeout(() => {
- // this.$store.dispatch('mobile/SetInputGetFocus', false)
- // }, 300)
- // },
- // inputGetFocus: function() {
- // setTimeout(() => {
- // this.$store.dispatch('mobile/SetInputGetFocus', true)
- // }, 300)
- // },
- getMoreSearch: function () {
- this.seekPage++
- this.isSearchSearchingMore = true
- this.reloadData()
- },
- // 获取当前企业产品库
- GetEnterpriseList: function() {
- let params = {
- _status: 'all',
- count: 20,
- isStandard: true,
- keyword: this.seekKeyword || '',
- page: this.seekPage,
- sorting: { id: 'DESC' },
- type: 'all'
- }
- return this.$http.get('/trade/products', { params })
- },
- // 获取当前个人产品库
- GetPersonList: function(cb) {
- let params = {
- _status: 'all',
- count: 20,
- isStandard: true,
- keyword: this.seekKeyword || '',
- page: this.seekPage,
- sorting: { id: 'DESC' },
- type: 'all'
- }
- return this.$http.get('/trade/products/person', { params })
- },
- // 获取当前在售产品
- GetOnlineList: function() {
- let params = {
- count: 10,
- keyword: this.seekKeyword || '',
- page: this.seekPage,
- sorting: { 'createdDate': 'DESC' },
- status: '601-602'
- }
- return this.$http.get('/trade/goods/store/status', { params })
- },
- // 产品管理切换
- switchprovide: function(type) {
- this.providerType = type
- this.seekPage = 1
- this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
- this.GetEnterpriseListData = null
- this.GetEnterpriseListData = []
- this.getResourceProvidor()
- },
- // 删除个人产品库
- deleteProvider: function(id, index) {
- this.showDelete = true
- this.deleteId = id
- // this.deleteItemIndex = index
- // this.$http.get(`/trade/goods/${id}/deleteMessage`).then(response => {
- // this.isUploadpro = response.data.code
- // })
- },
- deleteFn: function() {
- this.$http.delete(`/trade/products/${this.deleteId}?isPerson=1`).then(response => {
- this.showDelete = false
- this.collectResult = '删除成功'
- this.timeoutCount++
- this.seekPage = 1
- this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
- this.isChange2 = true
- this.reloadData()
- // this.GetEnterpriseListData.splice(this.deleteItemIndex, 1)
- }, () => {
- this.showDelete = false
- this.collectResult = '删除失败'
- this.timeoutCount++
- })
- },
- cancelFn: function() {
- this.showDelete = false
- this.showoffshelf = false
- },
- // 获取相对应的信息
- getResourceProvidor: function() {
- if (this.providerType === 'enterprise') {
- this.GetEnterpriseList().then(res => {
- this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
- this.EnterprisePage = res.data.totalPages
- this.isSearchSearchingMore = false
- })
- } else if (this.providerType === 'person') {
- this.GetPersonList().then(res => {
- this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
- this.EnterprisePage = res.data.totalPages
- this.isSearchSearchingMore = false
- })
- } else if (this.providerType === 'onLine') {
- this.GetOnlineList().then(res => {
- this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
- this.EnterprisePage = res.data.totalPages
- this.isSearchSearchingMore = false
- })
- }
- },
- // 查看企业产品库更多信息
- lookProductitem: function(id, item) {
- this.chooseItem = item
- this.$store.commit('product/component/REQUEST_NOWPRODUCTINFO_SUCCESS', item)
- localStorage.setItem('productInfoItem', JSON.stringify(item))
- this.$router.push(`/mobile/center/vendor/productList?uuid=${id}`)
- // this.$http.get(`/trade/products/goods/productid/${id}`).then(res => {
- // this._initscroll()
- // this.showMoreinfn = true
- // this.vendorlist = res.data
- // })
- },
- closeMoreinfo: function() {
- this.showMoreinfn = false
- },
- // 编辑物料
- updateMateriel(item) {
- this.MaterielItem = item
- this.$item = this.baseUtils.deepCopy(item)
- this.cmpImg = item.cmpImg || ''
- // this.MaterielItem.cmpImg = item.cmpImg || ''
- this.showMateriel = true
- },
- addProtoperson: function(item) {
- if (item.addProductPerson) {
- this.collectResult = '已在个人产品库'
- this.timeoutCount++
- return false
- }
- this.$http.post('/trade/products/person', [item.id])
- .then(response => {
- this.collectResult = '绑定成功'
- this.timeoutCount++
- this.seekPage = 1
- this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
- this.GetEnterpriseListData = null
- this.GetEnterpriseListData = []
- this.reloadData()
- }, () => {
- this.collectResult = '绑定失败'
- this.timeoutCount++
- })
- },
- checkBrand: function () {
- // this.MaterielItem.brand = this.MaterielItem.brand && this.MaterielItem.brand !== ''
- if (!this.MaterielItem.pbranden || this.MaterielItem.pbranden === '') {
- this.setRemindText('品牌不能为空')
- }
- return this.MaterielItem.pbranden
- },
- checkCode: function () {
- if (!this.MaterielItem.pcmpcode || this.MaterielItem.pcmpcode === '') {
- this.setRemindText('型号不能为空')
- }
- return this.MaterielItem.pcmpcode
- },
- onCodeChange: function () {
- this.MaterielItem.pcmpcode = this.MaterielItem.pcmpcode.trim()
- if ((/[^\x00-\xff]/g).test(this.MaterielItem.pcmpcode)) {
- let chineseIndex = -1
- for (let i = 0; i < this.MaterielItem.pcmpcode.length; i++) {
- if ((/[^\x00-\xff]/g).test(this.MaterielItem.pcmpcode.charAt(i))) {
- chineseIndex = i
- break
- }
- }
- this.MaterielItem.pcmpcode = this.baseUtils.cutOutString(this.MaterielItem.pcmpcode, chineseIndex)
- } else if (this.MaterielItem.pcmpcode && this.baseUtils.getRealLen(this.MaterielItem.pcmpcode) > 100) {
- this.MaterielItem.pcmpcode = this.baseUtils.cutOutString(this.MaterielItem.pcmpcode, 100)
- } else {
- this.getSimilarCode()
- }
- },
- onBrandChange: function () {
- this.MaterielItem.pbranden = this.MaterielItem.pbranden.trim()
- if ((/[^\x00-\xff]/g).test(this.MaterielItem.pbranden)) {
- let chineseIndex = -1
- for (let i = 0; i < this.MaterielItem.pbranden.length; i++) {
- if ((/[^\x00-\xff]/g).test(this.MaterielItem.pbranden.charAt(i)) && !(/[\u4e00-\u9fa5]/).test(this.MaterielItem.pbranden.charAt(i))) {
- chineseIndex = i
- break
- }
- }
- if (chineseIndex > -1) {
- this.MaterielItem.pbranden = this.MaterielItem.pbranden.substring(0, chineseIndex)
- }
- } else if (this.MaterielItem.pbranden && this.baseUtils.getRealLen(this.MaterielItem.pbranden) > 50) {
- this.MaterielItem.pbranden = this.baseUtils.cutOutString(this.MaterielItem.pbranden, 50)
- } else {
- this.getSimilarBrand()
- }
- },
- getSimilarBrand: function () {
- if (this.MaterielItem.pbranden) {
- this.$http.get('/search/similarBrands', {params: {keyword: this.MaterielItem.pbranden}})
- .then(response => {
- this.similarBrand = response.data
- this.showSimilarBrandList = response.data.length > 0
- })
- } else {
- this.showSimilarBrandList = false
- }
- },
- getSimilarCode: function () {
- if (this.MaterielItem.pcmpcode) {
- this.$http.get('/search/similarComponents', {params: {keyword: this.MaterielItem.pcmpcode}})
- .then(response => {
- this.similarCode = response.data
- this.showSimilarCodeList = response.data.length > 0
- })
- } else {
- this.showSimilarCodeList = false
- }
- },
- setCode: function (code) {
- this.MaterielItem.pcmpcode = code
- this.showSimilarCodeList = false
- },
- setBrand: function (brand) {
- this.MaterielItem.pbranden = brand
- this.showSimilarBrandList = false
- },
- setRemindText: function (str) {
- this.collectResult = str
- this.timeoutCount++
- },
- checkSpec: function () {
- // let nullStrFlag =
- // this.MaterielItem.spec = nullStrFlag
- if (!this.baseUtils.checkNullStr(this.MaterielItem.spec)) {
- this.setRemindText('规格输入不合法')
- }
- return this.MaterielItem.spec
- },
- onSpecInput: function () {
- if (this.MaterielItem.spec && this.baseUtils.getRealLen(this.MaterielItem.spec) > 100) {
- this.MaterielItem.spec = this.baseUtils.cutOutString(this.MaterielItem.spec, 100)
- }
- },
- saveMateriel(str) {
- if (str) {
- let _key1 = Object.keys(this.$item)
- let _key2 = Object.keys(this.MaterielItem)
- for (let i = 0; i < _key1.length; i++) {
- this.MaterielItem[_key2[i]] = this.$item[_key1[i]]
- }
- this.showMateriel = false
- return
- }
- if (this.MaterielItem.pbranden === '') {
- this.setRemindText('品牌不能为空')
- return
- } else if (this.MaterielItem.kind === '') {
- this.setRemindText('物料名称不能为空')
- return
- } else if (this.MaterielItem.pcmpcode === '') {
- this.setRemindText('型号不能为空')
- return
- }
- this.MaterielItem.pcmpcode = this.MaterielItem.pcmpcode
- this.MaterielItem.pbranden = this.MaterielItem.pbranden
- let item = {
- id: this.MaterielItem.id,
- kind : this.MaterielItem.kind,
- pbranden: this.MaterielItem.pbranden,
- pcmpcode: this.MaterielItem.pcmpcode,
- spec: this.MaterielItem.spec,
- url: ''
- }
- this.$http.post('/trade/products/update/product?attachUrl=', item).then(res => {
- if (res.data.success) {
- this.setRemindText('修改成功')
- this.showMateriel = false
- this.page = 1
- this.GetEnterpriseListData = null
- this.GetEnterpriseListData = []
- this.getResourceProvidor()
- } else {
- this.setRemindText(res.data.message)
- }
- })
- }
- // update (e) {
- // let file = e.target.files[0]
- // if (file.size > 3 * 1024 * 1024) {
- // this.setRemindText(`上传文件不得超过3M`)
- // }
- // let param = new FormData()
- // param.append('file', file, file.name)
- // param.append('chunk', '0')
- // if (file.type === 'application/pdf') {
- // this.setRemindText(`请选择有效图片进行上传`)
- // return
- // }
- // let config = {
- // headers: {'Content-Type': 'multipart/form-data'}
- // }
- // this.$http.post('/api/images', param, config)
- // .then(response => {
- // this.MaterielItem.img = response.data[0].path
- // this.cmpImg = response.data[0].path
- // })
- // }
- },
- computed: {
- // 是否展示空数据
- StateNone() {
- return this.GetEnterpriseListData.length === 0 && this.EnterprisePage === 0
- },
- cnmpCode() { // 型号
- if (this.chooseItem.pcmpcode) {
- return this.chooseItem.pcmpcode
- }
- return '-'
- },
- cnmpType() { // 物料名称
- return this.chooseItem.kind || this.chooseItem.kinden || '-'
- },
- cnmpBand() { // 品牌
- if (this.chooseItem.pbranden) {
- return this.chooseItem.pbranden
- }
- return '-'
- },
- cnmpSpec() { // 规格
- if (this.chooseItem.spec) {
- return this.chooseItem.spec
- }
- return '-'
- },
- shopuuid() {
- return this.$store.state.option.storeStatus.data
- }
- },
- mounted: function () {
- this.$nextTick(() => {
- // window.addEventListener('scroll', this.scroll, false)
- this._initscroll()
- })
- },
- created() {
- this.getResourceProvidor()
- },
- components: {
- RemindBox,
- PullUp,
- Upload
- }
- }
- </script>
- <style scoped lang="scss">
- @mixin overFlowHidden {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- @mixin lineHeight($value) {
- height: $value;
- line-height: $value;
- }
- .overHidden {
- @include overFlowHidden()
- }
- .user-content{
- position: absolute;
- width: 100%;
- height: 100%;
- .provider {
- margin: 1.26rem 0 0.98rem 0;
- height: calc(100vh - 1.26rem - 0.98rem);
- overflow-y: auto;
- }
- .sa-pub {
- display: inline-block;
- width: 1.41rem;
- height: .47rem;
- line-height: .47rem;
- text-align: center;
- color: #fff;
- background: #3f84f6;
- border-radius: .14rem;
- }
- .none-state{
- text-align: center;
- padding:1.5rem 0;
- background: #fff;
- margin-top:.1rem;
- width:100%;
- img{
- margin:0 auto;
- width: 4.08rem;
- height: 2.62rem;
- }
- p {
- font-size: .32rem;
- color: #999;
- margin: 1.19rem 0 0 0;
- }
- a {
- display: block;
- font-size: .28rem;
- color: #fff;
- width: 1.88rem;
- height: .54rem;
- line-height: .54rem;
- background: #418bf6;
- margin: .7rem auto 0;
- border-radius: .05rem;
- }
- }
- .user-name{
- height: 1.8rem;
- padding: .28rem 0 .28rem .34rem;
- background: #fff;
- width: 100%;
- position: relative;
- img{
- display: inline-block;
- width: 1.25rem;
- height: 1.25rem;
- border: 1px solid #c5dbfc;
- border-radius: .05rem;
- vertical-align: middle;
- }
- .user-info {
- margin-left:.25rem;
- display: inline-block;
- vertical-align: middle;
- position: relative;
- p{
- font-size:.3rem;
- margin:0;
- display: block;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- max-width: 3.92rem;
- &:nth-child(2) {
- position: relative;
- margin-top: .2rem;
- padding-right: .7rem;
- overflow: unset;
- max-width: unset;
- .en-name {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- max-width: 3.22rem;
- display: inline-block;
- }
- a {
- position: absolute;
- right: 0;
- }
- .exit {
- right: -.8rem;
- }
- .vir {
- position: absolute;
- right: -.14rem;
- }
- }
- }
- .en-list {
- position: absolute;
- max-width: 5rem;
- max-height: 3rem;
- overflow-y: auto;
- border-radius: .05rem;
- background: rgba(0, 0, 0, .6);
- z-index: 10;
- .menu-item {
- height: .6rem;
- line-height: .6rem;
- font-size: .3rem;
- padding: 0 .2rem;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- &:active, &:focus, &:hover {
- background: #7d7d7d;
- }
- a {
- color: #fff;
- }
- }
- }
- }
- > a {
- font-size: .24rem;
- position: absolute;
- top: .45rem;
- right: .1rem;
- color: #3f84f6;
- border: 1px solid #3f84f6;
- border-radius: .2rem;
- padding: .06rem .12rem;
- }
- }
- .shop-list {
- background:#fff;
- border-bottom: .1rem solid #dfe2e4;
- padding: .14rem 0 .14rem 0;
- h3{
- font-size: .32rem;
- line-height: .4rem;
- margin: 0 0 0 .27rem;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- padding-top: .1rem;
- position: relative;
- top: .1rem;
- }
- .list-item{
- width:6.77rem;
- margin-left:.39rem;
- .item-img{
- width:2.4rem;
- vertical-align: middle;
- display: inline-block;
- img{
- &:nth-child(2) {
- width:2.4rem;
- height:1.69rem;
- border: 1px solid #eee;
- }
- &:nth-child(1) {
- position:absolute;
- width:.65rem;
- height:.33rem;
- }
- }
- }
- .list-item-phone{
- width:3.95rem;
- padding:.18rem 0;
- position:relative;
- display: inline-block;
- vertical-align: middle;
- margin-left: .26rem;
- p{
- font-size:.28rem;
- line-height: .67rem;
- margin:0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- width: 3.2rem;
- }
- i{
- display:block;
- position:absolute;
- top: -.06rem;
- right: -.18rem;
- font-size:.5rem;
- color:#ff7800;
- width: .6rem;
- height: .6rem;
- text-align: center;
- line-height: .6rem;
- }
- }
- }
- &:active {
- background: #e1e1e1;
- }
- }
- .detail-brand{
- background: #fff;
- width:100%;
- min-height:1.5rem;
- padding:.2rem 0;
- border-bottom: .1rem solid #dfe2e4;
- &:nth-child(1) {
- margin-top:.1rem;
- }
- .brand-item{
- width:7rem;
- margin:0 auto;
- border-radius:.1rem;
- background: #fff;
- padding:.2rem;
- position:relative;
- &:active{
- background: #e1e1e1;
- }
- p{
- font-size:.28rem;
- line-height:.4rem;
- color:#333;
- margin:0;
- }
- i{
- display:block;
- position:absolute;
- top:.2rem;
- right:.4rem;
- font-size:.5rem;
- color:#ff7800;
- width: .6rem;
- height: .6rem;
- line-height: .6rem;
- text-align: center;
- }
- .sa-pub {
- position: absolute;
- right: 0;
- bottom: .2rem;
- }
- }
- div.active{
- background: #d4d;
- }
- }
- .collect-list-type {
- background: #fff;
- border-bottom: 1px solid #acacac;
- p {
- font-size: .32rem;
- margin: 0 0 0 .13rem;
- width: .92rem;
- text-align: center;
- line-height: .5rem;
- border-bottom: .06rem solid #418bf6;
- }
- }
- ul.switch-list {
- .noshop {
- width: 50%;
- }
- li {
- display: inline-block;
- width: 2.5rem;
- height: .63rem;
- line-height: .63rem;
- text-align: center;
- font-size: .28rem;
- color: #666;
- background: #fff;
- border: 1px solid #b4b4b4;
- border-right: none;
- &.active {
- background: #0067e7;
- border: 1px solid #0067e7;
- color: #fff;
- }
- &:first-child {
- border-left: none;
- }
- &:last-child {
- border-right: none;
- }
- }
- &.vendor-switch {
- li {
- width: 50%;
- }
- }
- }
- .seek {
- .seek-type {
- margin-top: .15rem;
- li {
- font-size: .28rem;
- color: #666;
- display: inline-block;
- width: 50%;
- text-align: center;
- div {
- border-bottom: 1px solid #c1c4c9;
- margin: 0 auto;
- height: .46rem;
- line-height: .46rem;
- }
- &.active {
- color: #3f84f6;
- div {
- border-color: #3f84f6;
- }
- }
- }
- }
- }
- .search-content {
- text-align: center;
- padding: .25rem 0 0 0;
- input {
- border: 1px solid #376ff3;
- }
- span {
- /*height: .46rem;*/
- /*line-height: .46rem;*/
- }
- }
- .seek-area {
- height: 1.26rem;
- line-height: 1.26rem;
- border-top: .19rem solid #f6f5f5;
- border-bottom: .19rem solid #f6f5f5;
- overflow: hidden;
- /*padding: .32rem 0;*/
- img {
- height: .78rem;
- margin-right: .2rem;
- vertical-align: top;
- margin-top: .1rem;
- }
- .sa-title {
- font-size: .38rem;
- color: #3f84f6;
- line-height: .32rem;
- vertical-align: top;
- margin-top: .1rem;
- span {
- color: #494949;
- }
- .sa-text {
- font-size: .26rem;
- color: #999;
- }
- }
- .sa-pub {
- margin-left: .86rem;
- vertical-align: top;
- margin-top: .23rem;
- }
- }
- }
- .providerList {
- border-top: .31rem solid #f1f3f7;
- .top {
- position: relative;
- &.top2 {
- .text {
- width: 5.4rem;
- }
- .pms {
- color: #f57710;
- border: 1px solid #f57710;
- border-radius: 0.4rem;
- background: #fff;
- font-size: 0.24rem;
- height: 0.4rem;
- line-height: 0.4rem;
- width: 0.8rem;
- text-align: center;
- float: right;
- margin-top: 0.25rem;
- }
- .store-type {
- width: .77rem;
- height: .77rem;
- position: absolute;
- right: 0;
- top: 0;
- }
- }
- .icon {
- width: 0.6rem;
- height: 0.36rem;
- line-height: 0.36rem;
- margin-top: 0.27rem;
- float: left;
- background-size: 100%;
- background-repeat: no-repeat;
- margin-right: 0.12rem;
- text-align: center;
- &.istanded{
- background-image: url('/images/mobile/@2x/istanded.png')
- }
- &.standed{
- background-image: url('/images/mobile/@2x/standed.png')
- }
- }
- .person-flag {
- width: .75rem;
- position: absolute;
- right: 0;
- }
- .text {
- float: left;
- width: 6.3rem;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- padding: 0 0.24rem;
- /*background: #f5f9fd;*/
- border-bottom: 1px solid #d3d3d3;
- height: 0.9rem;
- line-height: 0.9rem;
- color: #0067e7;
- font-size: 0.3rem;
- &::after{
- clear: both;
- display: block;
- content: ' ';
- visibility: hidden;
- zoom: 1;
- }
- }
- .content {
- padding: 0.24rem 0.24rem;
- background: #fff;
- .linetext {
- margin-bottom: 0.24rem;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- &:nth-last-of-type(1){
- margin-bottom: 0rem;
- }
- }
- .fl {
- float: left;
- border-right: 1px dashed #e0e0e4;
- width: 4.68rem;
- &.fullWidth {
- width: 100%;
- border: 0;
- float: left
- }
- }
- .fr {
- float: right;
- margin: 0.18rem 0.24rem;
- margin-right: 0rem;
- font-size: 0.3rem;
- &.addtop {
- margin-top: 0.6rem;
- .add {
- background: #0067e7;
- color: #fff;
- &.noadd{
- background: #cccbcb;
- color: #fff;
- border:1px solid #cccbcb;
- }
- }
- }
- div {
- width: 2.1rem;
- height: 0.6rem;
- text-align: center;
- line-height: 0.6rem;
- border-radius: 3px;
- &.delete{
- background: #fff;
- color: #f70415;
- border: 1px solid #f70415;
- }
- }
- div:nth-child(1){
- margin-bottom: 0.26rem
- }
- }
- &::after{
- clear: both;
- display: block;
- content: ' ';
- visibility: hidden;
- zoom: 1;
- }
- }
- div.clearfix {
- padding: 0.2rem 0;
- margin: 0 0.2rem;
- border-top: 1px solid #d3d3d3;
- div {
- width: 2.1rem;
- height: 0.6rem;
- text-align: center;
- line-height: 0.6rem;
- border-radius: 3px;
- margin-right: 0.2rem;
- &.look {
- color: #008bf7;
- border: 1px solid #008bf7;
- }
- &.add {
- background: #fff;
- color: #f57710;
- border: 1px solid #f57710;
- }
- &.noadd{
- background: #cccbcb;
- color: #fff;
- border:1px solid #cccbcb;
- }
- }
- }
- }
- .middle {
- padding: 0.24rem 0.24rem 0px;
- background: #fff;
- .pms {
- color: #f57710;
- border: 1px solid #f57710;
- border-radius: 0.4rem;
- background: #fff;
- font-size: 0.24rem;
- height: 0.4rem;
- line-height: 0.4rem;
- width: 0.8rem;
- text-align: center;
- }
- .list {
- /*height: 0.46rem;*/
- .left {
- float: left;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .textinfo {
- color: #0067e7;
- font-size: 0.3rem;
- }
- .button {
- font-size: 0.26rem;
- color: #fff;
- width: 0.92rem;
- text-align: center;
- border-radius: 5px;
- /*border:1px solid #1a58dd;*/
- background: #1a58dd;
- display: inline-block;
- margin-right: 0.2rem;
- line-height: 0.33rem;
- height: 0.37rem;
- }
- margin-bottom: 0.18rem;
- &::after{
- clear: both;
- display: block;
- content: ' ';
- visibility: hidden;
- zoom: 1;
- }
- .fl {
- width: 4.3rem;
- float: left;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .fr {
- text-align: left;
- width: 2.6rem;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- &.list-long {
- .fl {
- width: 100% !important;
- }
- }
- .name {
- color: #666;
- font-size: 0.3rem;
- display: inline-block;
- }
- .text {
- display: inline-block;
- color: #333;
- font-size: 0.3rem
- }
- .table {
- width: 5.5rem;
- margin-bottom: 0;
- margin-top: 0;
- li {
- height: 0.43rem;
- line-height: 0.43rem;
- border-left: .01rem solid #c5c5c5;
- font-size: .28rem;
- &::after {
- clear: both;
- display: block;
- content: ' ';
- visibility: hidden;
- zoom: 1;
- }
- div {
- text-align: center;
- width: 50%;
- float: left;
- border-right: .01rem solid #c5c5c5;
- border-bottom: .01rem solid #c5c5c5;
- }
- &:nth-child(odd) {
- background: #ddd;
- color: #666;
- font-size: 0.28rem;
- }
- &:nth-child(even) {
- background: #fcfcfc;
- color: #666;
- font-size: 0.28rem;
- }
- &:nth-last-of-type(1){
- color: #f31919;
- }
- &.title {
- font-size: 0.28rem;
- color: #333;
- }
- }
- }
- }
- }
- .labelinfo {
- padding: 0 .24rem;
- background: #e6e6e6;
- height: 0.6rem;
- line-height: 0.6rem;
- width: 100%;
- color: #666;
- font-size: 0.26rem;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- .labelicon {
- background-image: url('/images/mobile/@2x/label_icon.png');
- background-repeat: no-repeat;
- width: 0.61rem;
- height: 0.38rem;
- line-height: 0.38rem;
- background-size: 100%;
- color: #fff;
- margin-right: 0.1rem;
- display: inline-block;
- font-size: 0.22rem;
- text-align: center;
- /*vertical-align: middle;*/
- }
- .labeltext{
- display: inline-block;
- /*vertical-align: middle;*/
- }
- }
- .label-text {
- padding: .09rem .21rem;
- border-radius: .22rem;
- background: #ddd;
- font-size: .26rem;
- color: #666;
- display: inline-block;
- margin-left: .22rem;
- margin-bottom: .25rem;
- }
- .deleteKuang {
- position: fixed;
- background: rgba(0, 0, 0, 0.5);
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 9999;
- .kuangContent {
- border-radius: 5px;
- background: #fff;
- width: 5rem;
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate3d(-50%, -50%, 0);
- overflow: hidden;
- .titleinfo {
- font-size: .3rem;
- color: #666;
- text-align: center;
- margin-top: 0.5rem;
- margin-bottom: 0.1rem;
- }
- .title {
- background: #5078cb;
- height: .7rem;
- line-height: .7rem;
- font-size: .3rem;
- color: #fff;
- text-align: center;
- }
- .info {
- color: #f00;
- text-align: center;
- }
- .K_btn {
- margin-top: 0.4rem;
- line-height: 0.7rem;
- height: 0.7rem;
- &::after {
- clear: both;
- display: block;
- content: ' ';
- visibility: hidden;
- zoom: 1;
- }
- div {
- float: left;
- width: 50%;
- font-size: 0.3rem;
- text-align: center;
- &.cancelBtn {
- background: #b4b5b9;
- color: #333;
- }
- &.answerBtn {
- background: #5078cb;
- color: #fff;
- }
- }
- }
- }
- i {
- font-size: .6rem;
- position: absolute;
- right: -0.3rem;
- top: -0.35rem;
- color: #fff;
- &::after {
- position: absolute;
- top: -0.1rem;
- left: -0.1rem;
- right: -0.1rem;
- bottom: -0.1rem;
- content: ' '
- }
- }
- .title {
- background: #3f84f6;
- height: 0.7rem;
- line-height: 0.7rem;
- color: #fff;
- text-align: center;
- font-size: 0.3rem;
- position: relative;
- }
- .Kuang {
- max-height: 10rem;
- width: 6.7rem;
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate3d(-50%, -50%, 0);
- background: #ececec;
- border-radius: 5px;
- }
- .content {
- .infob {
- background: #e3edfd;
- padding: 0.2rem;
- .info {
- color: #333;
- font-size: 0.3rem;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- margin-bottom: 0.18rem;
- .name {
- color: #666;
- }
- div {
- display: inline-block;
- }
- }
- }
- .content_sq {
- width: 6.4rem;
- margin: 0.1rem auto;
- background: #fff;
- padding: 0.2rem 0;
- .list {
- margin-bottom: 0.18rem;
- }
- .fl {
- width: 3.2rem;
- }
- .table {
- width: 4.2rem;
- margin-top: -0.1rem;
- }
- .labelinfo {
- background-image: url('/images/mobile/@2x/labelTop.png');
- background-repeat: no-repeat;
- width: 6.29rem;
- height: 0.64rem;
- line-height: 0.64rem;
- background-size: 100%;
- margin-top: 0rem;
- margin-right: 0rem;
- background-color: rgba(0, 0, 0, 0);
- color: #666;
- }
- }
- }
- }
- .update-materiel {
- position: fixed;
- z-index: 99;
- background: #f1f3f6;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- .mobile-header{
- position: fixed;
- top: 0;
- z-index: 10;
- width:100%;
- height: 1.26rem;
- line-height: 1.26rem;
- /*border-bottom:.01rem solid #ccc;*/
- background: #3e82f5;
- padding:0 .2rem 0 .1rem;
- color:#fff;
- }
- .mobile-header p{
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- font-size:.36rem;
- text-align: center;
- width: 6rem;
- padding-left: 1rem;
- }
- .mobile-center-header p.en-name {
- font-size: .3rem;
- }
- .mobile-header a{
- font-size:.28rem;
- color:#fff;
- position: absolute;
- }
- .mobile-header a i{
- font-size: .48rem;
- margin-right: -.1rem;
- }
- .update-materiel-wrapper {
- border: 1px solid #dcdcdc;
- border-radius: 0.07rem;
- background: #fff;
- margin: 1.46rem 0.2rem 0;
- position: relative;
- padding-bottom: 0.4rem;
- padding-top: 1rem;
- position: relative;
- .imgUrl{
- position: absolute;
- width: 0.94rem;
- height: 0.94rem;
- right: 0;
- top: 0;
- }
- .update-materiel-wrapper-image {
- width: 2.28rem;
- height: 2.28rem;
- border: 1px solid #dcdcdc;
- border-radius: 0.07rem;
- position: relative;
- margin: 0.27rem 0 0 0.55rem;
- text-align: center;
- position: relative;
- span {
- color: #b2b2b2;
- font-size: 0.28rem;
- }
- .com-input {
- width: 100%;
- height: 100%;
- text-align: center;
- position: absolute;
- bottom: 0;
- left: 0;
- opacity: 0;
- display: inline-block !important;
- }
- }
- .uploadImgBtn {
- color: #fff;
- font-size: .28rem;
- width: 1.51rem;
- @include lineHeight(0.47rem);
- border-radius: 0.07rem;
- background: #f9b209;
- text-align: center;
- margin:2rem 0.1rem 0;
- position: relative;
- .com-input {
- width: 100%;
- height: 100%;
- text-align: center;
- position: absolute;
- bottom: 0;
- left: 0;
- opacity: 0;
- display: inline-block !important;
- }
- }
- .uploadImgInfo {
- color: #3f84f6;
- font-size: 0.24rem;
- margin-top: 2.15rem;
- }
- .update-materiel-wrapper-list {
- margin-left:0.28rem;
- margin-top: 0.3rem;
- line-height: 0.7rem;
- .red {color: #ea0f42}
- .name {color: #666;}
- .input {
- position: relative;
- width:5.4rem;
- line-height: 0.7rem;
- height: 0.7rem;
- border: 1px solid #dcdcdc;
- input {
- text-indent: 5px;
- border: 0;
- border-radius: 0.07rem;
- line-height: 0.64rem;
- height: 0.64rem;
- width: 90%;
- font-size:0.28rem;
- float: left;
- color: #333;
- }
- i {
- font-size: 0.16rem;
- vertical-align: top;
- color: #666;
- float: right;
- margin-right: 0.05rem
- }
- .similar {
- position: absolute;
- width:100%;
- max-height: 2.5rem;
- overflow-y: auto;
- z-index: 12;
- border: 1px solid #7e7e7e;
- border-radius: .05rem;
- top: .5rem;
- background: #fff;
- li {
- height: .5rem;
- line-height: .5rem;
- font-size: .26rem;
- color: #999;
- padding-left: .19rem;
- &:focus, &:active, &:hover {
- background: #999;
- color: #fff;
- }
- }
- }
- }
- }
- .update-materiel-wrapper-controll {
- margin: 0.4rem 0.2rem 0;
- div {
- width: 48%;
- background: #b5b5b5;
- font-size: 0.3rem;
- color: #fafbfc;
- text-align: center;
- @include lineHeight(0.62rem);
- border-radius: 0.07rem;
- &:first-child {
- background: #3f84f6;
- }
- }
- }
- }
- }
- </style>
|