PublishApply.vue 26 KB

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