PublishApply.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817
  1. <template>
  2. <div class="publish-apply">
  3. <div class="good-purchaser">
  4. <p class="good-purchaser-title">
  5. <img src="/images/applyPurchase/good-purchaser-title.png" alt="">
  6. </p>
  7. <ul>
  8. <li v-for="(goodMan, index) in goodPurchaseMan.content">
  9. <i v-text="index + 1" :style="'background: url(/images/applyPurchase/level-' + getRankBg(index) + '.png) center no-repeat;'"></i>
  10. <span v-text="goodMan.name"></span>
  11. </li>
  12. </ul>
  13. </div>
  14. <div class="publish-area">
  15. <div class="publish-form-area">
  16. <p>单个求购</p>
  17. <div>
  18. <div class="form-item">
  19. <span>
  20. <i>*</i>型号:
  21. </span>
  22. <input type="text" class="form-control" :class="{'error': !validObj.code}" v-model="applyObj.code" @blur="checkCode" @input="onCodeChange" placeholder="请勿填中文符号"/>
  23. <ul v-show="showSimilarCodeList && applyObj.code">
  24. <li v-for="sCode in similarCode" @click="setCode(sCode.code)">{{sCode.code}}</li>
  25. </ul>
  26. </div>
  27. <div class="form-item">
  28. <span>
  29. <i>*</i>品牌:
  30. </span>
  31. <input type="text" class="form-control" :class="{'error': !validObj.brand}" v-model="applyObj.brand" @blur="checkBrand" @input="onBrandChange" placeholder="请勿填中文符号" />
  32. <ul class="brand-similar-list" v-show="showSimilarBrandList && applyObj.brand">
  33. <li v-for="sBrand in similarBrand" @click="setBrand(sBrand.nameEn)">{{sBrand.nameEn}}</li>
  34. </ul>
  35. </div>
  36. <div class="form-item">
  37. <span>
  38. <i>*</i>截止日期:
  39. </span>
  40. <!--<input type="text" class="form-control" readonly :class="{'error': !validObj.deadline}" v-model="applyObj.deadline" @blur="checkDeadline" />-->
  41. <el-date-picker
  42. v-model="applyObj.deadline"
  43. type="date"
  44. :picker-options="pickerOptions"
  45. :class="{'error': !validObj.deadline}"
  46. @change="setDeadLineValid"
  47. :editable="false"
  48. :clearable="true"
  49. size="mini">
  50. </el-date-picker>
  51. </div>
  52. <div class="form-item">
  53. <span>
  54. 单价预算:
  55. </span>
  56. <select v-model="applyObj.currency" class="form-control">
  57. <option value="RMB">¥</option>
  58. <option value="USD">$</option>
  59. </select>
  60. <input type="number" class="form-control" :class="{'error': !validObj.unitPrice}" v-model="applyObj.unitPrice" @blur="checkUnitPrice" @input="onUnitPriceInput" />
  61. </div>
  62. <div class="form-item">
  63. <span>
  64. 封装:
  65. </span>
  66. <input type="text" class="form-control" v-model="applyObj.encapsulation" @input="onEncapsulationChange" />
  67. </div>
  68. <div class="form-item">
  69. <span>
  70. 采购数量:
  71. </span>
  72. <input type="text" class="form-control" :class="{'error': !validObj.amount}" v-model="applyObj.amount" @blur="checkAmount" @input="onAmountInput" />
  73. </div>
  74. <div class="form-item">
  75. <span>
  76. 生产日期:
  77. </span>
  78. <input type="text" class="form-control" v-model="applyObj.produceDate" @input="onProduceDateChange" />
  79. </div>
  80. </div>
  81. <a @click="goPublish()">发布求购</a>
  82. </div>
  83. <div class="publish-upload">
  84. <h1>批量求购</h1>
  85. <h2>3秒一键配单采购</h2>
  86. <label>
  87. <img src="/images/applyPurchase/upload.png" alt="" />
  88. <!--<input type="file" accept="*.xls, *.xlsx" @change="upload">-->
  89. <el-upload
  90. drag
  91. action="/seek/importBom"
  92. accept="*.xls, *.xlsx"
  93. :show-file-list="false"
  94. :on-success="onSuccess"
  95. :on-error="onError">
  96. </el-upload>
  97. </label>
  98. <h3>把Excel格式的BOM拖放到框中</h3>
  99. <img @click="downloadTemplate()" class="download-line" src="/images/applyPurchase/download.png" alt="">
  100. <img class="apply-logo" src="/images/applyPurchase/publish-apply.png" alt="">
  101. </div>
  102. </div>
  103. <div class="apply-rank">
  104. <table>
  105. <thead>
  106. <tr>
  107. <th width="62">排名</th>
  108. <th width="160">型号</th>
  109. <th width="92">求购次数</th>
  110. </tr>
  111. </thead>
  112. <tbody>
  113. <tr v-for="(rank, index) in purchaseRank">
  114. <td><div>NO.<span>{{index + 1}}</span><i>|</i></div></td>
  115. <td>
  116. <div>
  117. <span v-if="rank.id_cmpcode" :title="rank.id_cmpcode">{{rank.id_cmpcode}}</span>
  118. <span v-if="!rank.id_cmpcode">-</span>
  119. <i>|</i>
  120. </div>
  121. </td>
  122. <td><div>{{rank.seekAmount || 0}}</div></td>
  123. </tr>
  124. </tbody>
  125. </table>
  126. </div>
  127. <!--提示框-->
  128. <div class="apply-del-box" v-if="showRemindBox">
  129. <div class="title">
  130. <a @click="showRemindBox = false"><i class="fa fa-close fa-lg"></i></a>
  131. </div>
  132. <div class="content">
  133. <!--<p style="line-height: 20px;margin-top: 10px;padding:0 10px">非常抱歉,目前暂无此品牌!<br>若直接前往“品牌申请”,我们将为您先开通寄售功能,待申请通过后再提交开店申请。</p>-->
  134. <!--<p style="line-height: 20px;">前往<a @click="goBrandApply()" target="_blank" style="color: #5078CB">品牌申请&nbsp;<i class="fa fa-arrow-right"></i></a></p>-->
  135. <p><img src="/images/applyPurchase/check.png" alt="">发布成功</p>
  136. <p>其中 <span>100</span>个求购型号有现货在售,您可前往“<span>买家中心-我的求购</span>”查询并直接购买</p>
  137. <div>
  138. <a @click="showRemindBox = false">我知道了</a>
  139. <a href="/user#/seekPurchase">前往我的求购</a>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </template>
  145. <script>
  146. import { getRealLen, cutOutString, formatDate } from '~utils/baseUtils'
  147. export default {
  148. data () {
  149. return {
  150. applyObj: {
  151. code: '',
  152. brand: '',
  153. unitPrice: '',
  154. currency: 'RMB',
  155. encapsulation: '',
  156. produceDate: '',
  157. amount: '',
  158. deadline: ''
  159. },
  160. validObj: {
  161. code: true,
  162. brand: true,
  163. unitPrice: true,
  164. // encapsulation: true,
  165. // produceDate: true,
  166. amount: true,
  167. deadline: true
  168. },
  169. pickerOptions: {
  170. disabledDate (time) {
  171. // 大于等于今天 小于三个月后
  172. return time.getTime() < Date.now() - 1000 * 60 * 60 * 24 || time.getTime() > Date.now() + 1000 * 60 * 60 * 24 * 30 * 3
  173. }
  174. },
  175. showRemindBox: false,
  176. showSimilarCodeList: false,
  177. showSimilarBrandList: false,
  178. similarCode: [],
  179. similarBrand: []
  180. }
  181. },
  182. computed: {
  183. goodPurchaseMan () {
  184. return this.$store.state.applyPurchase.goodPurchaseMan.goodPurchaseMan.data
  185. },
  186. purchaseRank () {
  187. return this.$store.state.applyPurchase.purchaseApplyRank.purchaseApplyRank.data
  188. },
  189. user () {
  190. return this.$store.state.option.user
  191. }
  192. },
  193. filters: {
  194. enterpriseFilter (str) {
  195. return str.length > 4 ? str.substring(0, 2) + '**' + str.substring(str.length - 2, str.length) : str
  196. },
  197. userNameFilter (str) {
  198. return str.substring(0, 1) + '**'
  199. }
  200. },
  201. mounted () {
  202. document.getElementsByClassName('el-upload-dragger')[0].onclick = function (event) {
  203. event.stopPropagation()
  204. }
  205. let _this = this
  206. document.body.onclick = function () {
  207. _this.showSimilarCodeList = false
  208. _this.showSimilarBrandList = false
  209. }
  210. },
  211. methods: {
  212. emptyForm: function () {
  213. for (let attr in this.applyObj) {
  214. this.applyObj[attr] = attr === 'currency' ? 'RMB' : ''
  215. }
  216. },
  217. getRankBg: function (index) {
  218. return index === 0 ? 1 : index < 3 ? 2 : 3
  219. },
  220. goPublish: function () {
  221. if (this.user.logged) {
  222. if (this.checkAll()) {
  223. let inquiry = {}
  224. let inquiryItem = {}
  225. if (this.user.data.enterprise) {
  226. inquiry.enUU = this.user.data.enterprise.uu
  227. }
  228. let date = new Date()
  229. let currency = this.applyObj.currency === '不限' ? null : this.applyObj.currency
  230. inquiry.recorderUU = this.user.data.userUU
  231. inquiry.code = 'MALL' + date.getTime()
  232. inquiry.date = date
  233. inquiry.recorder = this.user.data.userName
  234. inquiry.endDate = this.applyObj.deadline
  235. inquiry.sourceapp = 'MALL'
  236. inquiry.amount = 1
  237. inquiryItem.prodTitle = this.applyObj.code
  238. inquiryItem.userUU = this.user.data.userUU
  239. inquiryItem.source = 'MALL'
  240. inquiryItem.userName = this.user.data.userName
  241. inquiryItem.userTel = this.user.data.userTel
  242. inquiryItem.needquantity = this.applyObj.amount
  243. inquiryItem.inbrand = this.applyObj.brand
  244. inquiryItem.currency = currency
  245. inquiryItem.cmpCode = (this.applyObj.code).toUpperCase()
  246. inquiryItem.unitPrice = this.applyObj.unitPrice
  247. inquiryItem.produceDate = this.applyObj.produceDate
  248. inquiryItem.date = date
  249. inquiryItem.endDate = this.applyObj.deadline
  250. inquiryItem.encapsulation = this.applyObj.encapsulation
  251. let inquiryItems = []
  252. inquiryItems.push(inquiryItem)
  253. inquiry.inquiryItems = inquiryItems
  254. inquiry.currency = currency
  255. this.$http.post('/inquiry/buyer/save', inquiry)
  256. .then(response => {
  257. this.$message.success('发布成功')
  258. // this.showRemindBox = true
  259. this.emptyForm()
  260. // this.validObj.deadline = true
  261. this.$store.dispatch('applyPurchase/loadPurchaseManList', {pageNumber: 1, pageSize: 10, enUU: this.user.data.enterprise ? this.user.data.enterprise.uu : null})
  262. }, error => {
  263. console.log(error)
  264. this.$message.error('发布失败')
  265. })
  266. } else {
  267. if (!this.validObj.code) {
  268. this.$message.error('型号不能为空')
  269. } else if (!this.validObj.brand) {
  270. this.$message.error('品牌不能为空')
  271. } else if (!this.validObj.deadline) {
  272. this.$message.error('截止日期不能为空')
  273. } else if (!this.validObj.amount) {
  274. this.$message.error('请输入正确的数值')
  275. }
  276. }
  277. } else {
  278. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  279. }
  280. },
  281. getSimilarCode: function () {
  282. this.$http.get('/search/similarComponents', {params: {keyword: this.applyObj.code}})
  283. .then(response => {
  284. this.similarCode = response.data
  285. this.showSimilarCodeList = response.data.length > 0
  286. })
  287. },
  288. getSimilarBrand: function () {
  289. this.$http.get('/search/similarBrands', {params: {keyword: this.applyObj.brand}})
  290. .then(response => {
  291. this.similarBrand = response.data
  292. this.showSimilarBrandList = response.data.length > 0
  293. })
  294. },
  295. checkCode: function () {
  296. this.validObj.code = this.applyObj.code && this.applyObj.code !== ''
  297. if (!this.validObj.code) {
  298. this.$message.error('型号不能为空')
  299. }
  300. return this.validObj.code
  301. },
  302. checkBrand: function () {
  303. this.validObj.brand = this.applyObj.brand && this.applyObj.brand !== ''
  304. if (!this.validObj.brand) {
  305. this.$message.error('品牌不能为空')
  306. }
  307. return this.validObj.brand
  308. },
  309. checkUnitPrice: function () {
  310. this.validObj.unitPrice = this.applyObj.unitPrice === '' ? true : this.applyObj.unitPrice > 0 && this.applyObj.unitPrice < 100000000
  311. if (!this.validObj.unitPrice && this.applyObj.unitPrice <= 0) {
  312. this.$message.error('单价必须是大于0的数字')
  313. }
  314. return this.validObj.unitPrice
  315. },
  316. checkAmount: function () {
  317. this.validObj.amount = this.applyObj.amount === '' ? true : this.applyObj.amount > 0 && this.applyObj.amount < 1000000000
  318. return this.validObj.amount
  319. },
  320. checkAll: function () {
  321. return this.checkCode() && this.checkBrand() && this.checkDeadline() && this.checkUnitPrice() && this.checkAmount()
  322. },
  323. checkDeadline: function () {
  324. this.validObj.deadline = Boolean(this.applyObj.deadline)
  325. return this.validObj.deadline
  326. },
  327. setDeadLineValid: function () {
  328. this.applyObj.deadline = formatDate(this.applyObj.deadline, 'yyyy-MM-dd hh:mm:ss')
  329. this.validObj.deadline = true
  330. },
  331. onUnitPriceInput: function () {
  332. let price = this.applyObj.unitPrice
  333. if (price >= 10000) {
  334. this.applyObj.unitPrice = price.substring(0, 4)
  335. } else if (price.indexOf('.') > -1) {
  336. let arr = price.split('.')
  337. if (arr[0].length > 4) {
  338. this.applyObj.unitPrice = Number(arr[0].substring(0, 4) + '.' + arr[1])
  339. } else if (arr[1].length > 6) {
  340. this.applyObj.unitPrice = Number(arr[0] + '.' + arr[1].substring(0, 6))
  341. }
  342. }
  343. },
  344. onProduceDateChange: function () {
  345. if (this.applyObj.produceDate && getRealLen(this.applyObj.produceDate) > 12) {
  346. this.applyObj.produceDate = cutOutString(this.applyObj.produceDate, 12)
  347. }
  348. },
  349. onEncapsulationChange: function () {
  350. if (this.applyObj.encapsulation && getRealLen(this.applyObj.encapsulation) > 20) {
  351. this.applyObj.encapsulation = cutOutString(this.applyObj.encapsulation, 20)
  352. }
  353. },
  354. onCodeChange: function () {
  355. this.applyObj.code = this.applyObj.code.trim()
  356. if ((/[^\x00-\xff]/g).test(this.applyObj.code)) {
  357. let chineseIndex = -1
  358. for (let i = 0; i < this.applyObj.code.length; i++) {
  359. if ((/[^\x00-\xff]/g).test(this.applyObj.code.charAt(i))) {
  360. chineseIndex = i
  361. break
  362. }
  363. }
  364. this.applyObj.code = cutOutString(this.applyObj.code, chineseIndex)
  365. } else if (this.applyObj.code && getRealLen(this.applyObj.code) > 100) {
  366. this.applyObj.code = cutOutString(this.applyObj.code, 100)
  367. } else {
  368. this.getSimilarCode()
  369. }
  370. },
  371. onBrandChange: function () {
  372. this.applyObj.brand = this.applyObj.brand.trim()
  373. if ((/[^\x00-\xff]/g).test(this.applyObj.brand)) {
  374. let chineseIndex = -1
  375. for (let i = 0; i < this.applyObj.brand.length; i++) {
  376. if ((/[^\x00-\xff]/g).test(this.applyObj.brand.charAt(i)) && !(/[\u4e00-\u9fa5]/).test(this.applyObj.brand.charAt(i))) {
  377. chineseIndex = i
  378. break
  379. }
  380. }
  381. if (chineseIndex > -1) {
  382. this.applyObj.brand = this.applyObj.brand.substring(0, chineseIndex)
  383. }
  384. } else if (this.applyObj.brand && getRealLen(this.applyObj.brand) > 50) {
  385. this.applyObj.brand = cutOutString(this.applyObj.brand, 50)
  386. }
  387. this.getSimilarBrand()
  388. },
  389. onAmountInput: function () {
  390. if (!(/^[0-9]*$/).test(this.applyObj.amount)) {
  391. let chineseIndex = -1
  392. for (let i = 0; i < this.applyObj.amount.length; i++) {
  393. if (!(/^[0-9]*$/).test(this.applyObj.amount.charAt(i))) {
  394. chineseIndex = i
  395. break
  396. }
  397. }
  398. this.applyObj.amount = cutOutString(this.applyObj.amount, chineseIndex)
  399. } else if (this.applyObj.amount.length > 9) {
  400. this.applyObj.amount = cutOutString(this.applyObj.amount, 9)
  401. }
  402. },
  403. onSuccess: function (data) {
  404. if (!this.user.logged) {
  405. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  406. } else if (data.success) {
  407. window.open('/applyPurchase/' + data.data)
  408. } else {
  409. this.$message.error(data.message)
  410. }
  411. },
  412. onError: function () {
  413. if (!this.user.logged) {
  414. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  415. } else {
  416. this.$message.error('上传失败, 系统错误')
  417. }
  418. },
  419. downloadTemplate: function () {
  420. window.location.href = '/seek/release/template'
  421. },
  422. setCode: function (code) {
  423. this.applyObj.code = code
  424. this.showSimilarCodeList = false
  425. },
  426. setBrand: function (brand) {
  427. this.applyObj.brand = brand
  428. this.showSimilarBrandList = false
  429. }
  430. // upload: function (e) {
  431. // let file = e.target.files[0]
  432. // let param = new FormData()
  433. // param.append('file', file, file.name)
  434. // let config = {
  435. // headers: {'Content-Type': file.type}
  436. // }
  437. // this.$http.post('/seek/importBom', param, config).then(response => {
  438. // if (response.data.success) {
  439. // window.open('/applyPurchase/' + response.data.data)
  440. // } else {
  441. // this.$message.error('上传失败')
  442. // }
  443. // }, err => {
  444. // console.log(err)
  445. // this.$message.error('系统错误')
  446. // })
  447. // }
  448. }
  449. }
  450. </script>
  451. <style lang="scss">
  452. .publish-apply {
  453. background: url('/images/applyPurchase/banner.png') center center/cover no-repeat;
  454. height: 583px;
  455. padding-top: 290px;
  456. width: 1190px;
  457. margin: 0 auto;
  458. padding-left: 44px;
  459. >div {
  460. display: inline-block;
  461. border: 1px solid #3975f4;
  462. height: 267px;
  463. margin-right: 6px;
  464. vertical-align: middle;
  465. background: #fff;
  466. float: left;
  467. text-align: center;
  468. }
  469. .good-purchaser {
  470. width: 225px;
  471. .good-purchaser-title {
  472. height: 55px;
  473. line-height: 55px;
  474. background: #3975f4;
  475. margin: 0;
  476. }
  477. ul {
  478. padding: 0 22px 0 10px;
  479. li {
  480. line-height: 42px;
  481. span {
  482. float: right;
  483. display: inline-block;
  484. width: 152px;
  485. overflow: hidden;
  486. text-overflow: ellipsis;
  487. white-space: nowrap;
  488. text-align: left;
  489. }
  490. i {
  491. display: inline-block;
  492. float: left;
  493. width: 25px;
  494. color: #fff;
  495. font-size: 16px;
  496. font-style: normal;
  497. }
  498. }
  499. }
  500. }
  501. .publish-area {
  502. width: 549px;
  503. text-align: center;
  504. .publish-form-area {
  505. width: 243px;
  506. float: left;
  507. height: 100%;
  508. p {
  509. padding-top: 18px;
  510. font-size: 26px;
  511. color: #3975f4;
  512. margin-bottom: 7px;
  513. }
  514. >div {
  515. text-align: left;
  516. margin-left: 14px;
  517. .form-item {
  518. margin-bottom: 5px;
  519. position: relative;
  520. span {
  521. width: 80px;
  522. text-align: right;
  523. display: inline-block;
  524. i {
  525. position: relative;
  526. top: 2px;
  527. right: 3px;
  528. color: #e41515;
  529. }
  530. }
  531. ul {
  532. line-height: normal;
  533. position: absolute;
  534. top: 19px;
  535. left: 79px;
  536. background: #fff;
  537. border: 1px solid #b5b5b5;
  538. z-index: 1;
  539. max-height: 120px;
  540. overflow-y: auto;
  541. overflow-x: hidden;
  542. border-radius: 3px;
  543. width: 114px;
  544. font-size: 12px;
  545. li {
  546. height: 24px;
  547. line-height: 24px;
  548. cursor: pointer;
  549. overflow: hidden;
  550. text-overflow: ellipsis;
  551. white-space: nowrap;
  552. padding: 0 5px;
  553. &:hover {
  554. background: #ddd;
  555. }
  556. }
  557. }
  558. select {
  559. width: 32px;
  560. position: absolute;
  561. height: 20px;
  562. background: url('/images/applyPurchase/select.png')no-repeat right;
  563. background-position-x: 15px;
  564. padding: 0 0 0 3px;
  565. border-radius: 0;
  566. & + input {
  567. padding-left: 34px;
  568. }
  569. }
  570. .el-input {
  571. width: 111px;
  572. .el-input__inner {
  573. }
  574. }
  575. input {
  576. font-size: 12px;
  577. width: 111px;
  578. height: 20px;
  579. line-height: 20px;
  580. border-radius: 2px;
  581. padding: 0 3px;
  582. box-shadow: none;
  583. -webkit-box-shadow: none;
  584. -moz-box-shadow: none;
  585. &.error {
  586. border-color: #f4645f!important;
  587. }
  588. }
  589. }
  590. }
  591. >a {
  592. width: 90px;
  593. height: 25px;
  594. line-height: 25px;
  595. background: #3975f4;
  596. color: #fefefe;
  597. font-size: 16px;
  598. display: block;
  599. margin: 0 auto;
  600. border-radius: 3px;
  601. cursor: pointer;
  602. }
  603. }
  604. .publish-upload {
  605. background: url('/images/applyPurchase/publish-apply-bg.png')no-repeat;
  606. background-size: cover;
  607. width: 304px;
  608. height: 100%;
  609. padding-left: 22px;
  610. float: right;
  611. color: #fff;
  612. position: relative;
  613. h1 {
  614. font-size: 26px;
  615. margin: 22px 0 0 0;
  616. }
  617. h2 {
  618. font-size: 16px;
  619. margin: 10px 0 23px 0;
  620. }
  621. h3 {
  622. font-size: 16px;
  623. margin: 20px 0 13px 0;
  624. }
  625. label {
  626. position: relative;
  627. /*input {
  628. display: none;
  629. }*/
  630. > div {
  631. position: absolute;
  632. .el-upload {
  633. input {
  634. display: none;
  635. }
  636. .el-upload-dragger {
  637. width: 247px;
  638. height: 216px;
  639. position: absolute;
  640. bottom: -37px;
  641. right: -166px;
  642. opacity: 0;
  643. }
  644. }
  645. }
  646. }
  647. .download-line {
  648. cursor: pointer;
  649. color: #b47200;
  650. }
  651. .apply-logo {
  652. position: absolute;
  653. left: -20px;
  654. top: 86px;
  655. }
  656. }
  657. }
  658. .apply-rank {
  659. width: 317px;
  660. margin-right: 0;
  661. background: url('/images/applyPurchase/rank-title.png') no-repeat;
  662. background-color: #fff;
  663. background-size: 319px 74px;
  664. background-position: -3px -2px;
  665. table {
  666. margin: 76px auto 0;
  667. width: 98%;
  668. thead {
  669. background: #e0e0e0;
  670. height: 26px;
  671. line-height: 26px;
  672. border-radius: 3px;
  673. tr {
  674. th {
  675. font-size: 16px;
  676. font-weight: bold;
  677. text-align: center;
  678. }
  679. }
  680. }
  681. tbody {
  682. tr {
  683. height: 25px;
  684. line-height: 25px;
  685. &:first-child {
  686. td {
  687. padding-top: 10px;
  688. }
  689. }
  690. td {
  691. color: #666;
  692. &:nth-child(1) {
  693. color: #f6682f;
  694. font-size: 12px;
  695. >div {
  696. width: 62px;
  697. span {
  698. font-size: 16px;
  699. }
  700. }
  701. }
  702. &:nth-child(2) {
  703. >div {
  704. width: 160px;
  705. }
  706. }
  707. &:nth-child(3) {
  708. >div {
  709. width: 92px;
  710. }
  711. }
  712. >div {
  713. overflow: hidden;
  714. text-overflow: ellipsis;
  715. white-space: nowrap;
  716. padding: 0 8px;
  717. position: relative;
  718. height: 30px;
  719. i {
  720. font-style: normal;
  721. float: right;
  722. color: #8b8b8b;
  723. font-size: 14px;
  724. position: absolute;
  725. right: 0;
  726. }
  727. }
  728. }
  729. }
  730. }
  731. }
  732. }
  733. .apply-del-box{
  734. position: fixed;
  735. z-index: 1000;
  736. height: auto;
  737. opacity: 1;
  738. background-color: white;
  739. width: 310px;
  740. -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  741. -moz-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  742. -o-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  743. box-shadow: 0 5px 15px rgba(0,0,0,.5);
  744. margin: -155px 0 0 -75px;
  745. top: 55%;
  746. left: 43%;
  747. .title{
  748. height: 24px;
  749. background-color: #007aff;
  750. text-align: right;
  751. padding-right: 15px;
  752. line-height: 24px;
  753. a{
  754. color: white;
  755. font-size: 12px;
  756. }
  757. }
  758. .content{
  759. width: 100%;
  760. text-align: center;
  761. margin: 0 auto;
  762. p{
  763. padding: 12px 31px;
  764. margin: 0;
  765. i{
  766. color: #5078cb;
  767. font-size: 16px;
  768. margin-right: 10px;
  769. }
  770. span {
  771. color: #007aff;
  772. }
  773. &:last-child {
  774. font-size: 12px;
  775. }
  776. }
  777. div{
  778. width: 100%;
  779. text-align: center;
  780. margin: 0 auto 20px;
  781. a{
  782. padding: 0 19px;
  783. height: 26px;
  784. line-height: 26px;
  785. display: inline-block;
  786. text-align: center;
  787. font-size: 14px;
  788. color: #fff;
  789. &:first-child{
  790. background: #c8c6c6;
  791. margin-right: 10px;
  792. }
  793. &:last-child{
  794. background: #007aff;
  795. }
  796. }
  797. }
  798. }
  799. }
  800. }
  801. .el-date-editor--date{
  802. width: 110px;
  803. &.error {
  804. input {
  805. border: 1px solid #f4645f !important;
  806. }
  807. }
  808. }
  809. .el-icon-date {
  810. display: none;
  811. }
  812. .el-input__inner {
  813. height: 20px;
  814. border-radius: 0;
  815. border: 1px solid #c9c9c9;
  816. }
  817. </style>