PublishApply.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815
  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. inquiry.recorderUU = this.user.data.userUU
  230. inquiry.code = 'MALL' + date.getTime()
  231. inquiry.date = date
  232. inquiry.recorder = this.user.data.userName
  233. inquiry.endDate = this.applyObj.deadline
  234. inquiry.sourceapp = 'MALL'
  235. inquiry.amount = 1
  236. inquiryItem.prodTitle = this.applyObj.code
  237. inquiryItem.userUU = this.user.data.userUU
  238. inquiryItem.source = 'MALL'
  239. inquiryItem.userName = this.user.data.userName
  240. inquiryItem.userTel = this.user.data.userTel
  241. inquiryItem.needquantity = this.applyObj.amount
  242. inquiryItem.inbrand = this.applyObj.brand
  243. inquiryItem.currency = this.applyObj.unitPrice ? this.applyObj.currency : null
  244. inquiryItem.cmpCode = (this.applyObj.code).toUpperCase()
  245. inquiryItem.unitPrice = this.applyObj.unitPrice
  246. inquiryItem.produceDate = this.applyObj.produceDate
  247. inquiryItem.date = date
  248. inquiryItem.endDate = this.applyObj.deadline
  249. inquiryItem.encapsulation = this.applyObj.encapsulation
  250. let inquiryItems = []
  251. inquiryItems.push(inquiryItem)
  252. inquiry.inquiryItems = inquiryItems
  253. this.$http.post('/inquiry/buyer/save', inquiry)
  254. .then(response => {
  255. this.$message.success('发布成功')
  256. // this.showRemindBox = true
  257. this.emptyForm()
  258. // this.validObj.deadline = true
  259. this.$store.dispatch('applyPurchase/loadPurchaseManList', {pageNumber: 1, pageSize: 10, enUU: this.user.data.enterprise ? this.user.data.enterprise.uu : null})
  260. }, error => {
  261. console.log(error)
  262. this.$message.error('发布失败')
  263. })
  264. } else {
  265. if (!this.validObj.code) {
  266. this.$message.error('型号不能为空')
  267. } else if (!this.validObj.brand) {
  268. this.$message.error('品牌不能为空')
  269. } else if (!this.validObj.deadline) {
  270. this.$message.error('截止日期不能为空')
  271. } else if (!this.validObj.amount) {
  272. this.$message.error('请输入正确的数值')
  273. }
  274. }
  275. } else {
  276. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  277. }
  278. },
  279. getSimilarCode: function () {
  280. this.$http.get('/search/similarComponents', {params: {keyword: this.applyObj.code}})
  281. .then(response => {
  282. this.similarCode = response.data
  283. this.showSimilarCodeList = response.data.length > 0
  284. })
  285. },
  286. getSimilarBrand: function () {
  287. this.$http.get('/search/similarBrands', {params: {keyword: this.applyObj.brand}})
  288. .then(response => {
  289. this.similarBrand = response.data
  290. this.showSimilarBrandList = response.data.length > 0
  291. })
  292. },
  293. checkCode: function () {
  294. this.validObj.code = this.applyObj.code && this.applyObj.code !== ''
  295. if (!this.validObj.code) {
  296. this.$message.error('型号不能为空')
  297. }
  298. return this.validObj.code
  299. },
  300. checkBrand: function () {
  301. this.validObj.brand = this.applyObj.brand && this.applyObj.brand !== ''
  302. if (!this.validObj.brand) {
  303. this.$message.error('品牌不能为空')
  304. }
  305. return this.validObj.brand
  306. },
  307. checkUnitPrice: function () {
  308. this.validObj.unitPrice = this.applyObj.unitPrice === '' ? true : this.applyObj.unitPrice > 0 && this.applyObj.unitPrice < 100000000
  309. if (!this.validObj.unitPrice && this.applyObj.unitPrice <= 0) {
  310. this.$message.error('单价必须是大于0的数字')
  311. }
  312. return this.validObj.unitPrice
  313. },
  314. checkAmount: function () {
  315. this.validObj.amount = this.applyObj.amount === '' ? true : this.applyObj.amount > 0 && this.applyObj.amount < 1000000000
  316. return this.validObj.amount
  317. },
  318. checkAll: function () {
  319. return this.checkCode() && this.checkBrand() && this.checkDeadline() && this.checkUnitPrice() && this.checkAmount()
  320. },
  321. checkDeadline: function () {
  322. this.validObj.deadline = Boolean(this.applyObj.deadline)
  323. return this.validObj.deadline
  324. },
  325. setDeadLineValid: function () {
  326. this.applyObj.deadline = formatDate(this.applyObj.deadline, 'yyyy-MM-dd hh:mm:ss')
  327. this.validObj.deadline = true
  328. },
  329. onUnitPriceInput: function () {
  330. let price = this.applyObj.unitPrice
  331. if (price >= 10000) {
  332. this.applyObj.unitPrice = price.substring(0, 4)
  333. } else if (price.indexOf('.') > -1) {
  334. let arr = price.split('.')
  335. if (arr[0].length > 4) {
  336. this.applyObj.unitPrice = Number(arr[0].substring(0, 4) + '.' + arr[1])
  337. } else if (arr[1].length > 6) {
  338. this.applyObj.unitPrice = Number(arr[0] + '.' + arr[1].substring(0, 6))
  339. }
  340. }
  341. },
  342. onProduceDateChange: function () {
  343. if (this.applyObj.produceDate && getRealLen(this.applyObj.produceDate) > 12) {
  344. this.applyObj.produceDate = cutOutString(this.applyObj.produceDate, 12)
  345. }
  346. },
  347. onEncapsulationChange: function () {
  348. if (this.applyObj.encapsulation && getRealLen(this.applyObj.encapsulation) > 20) {
  349. this.applyObj.encapsulation = cutOutString(this.applyObj.encapsulation, 20)
  350. }
  351. },
  352. onCodeChange: function () {
  353. this.applyObj.code = this.applyObj.code.trim()
  354. if ((/[^\x00-\xff]/g).test(this.applyObj.code)) {
  355. let chineseIndex = -1
  356. for (let i = 0; i < this.applyObj.code.length; i++) {
  357. if ((/[^\x00-\xff]/g).test(this.applyObj.code.charAt(i))) {
  358. chineseIndex = i
  359. break
  360. }
  361. }
  362. this.applyObj.code = cutOutString(this.applyObj.code, chineseIndex)
  363. } else if (this.applyObj.code && getRealLen(this.applyObj.code) > 100) {
  364. this.applyObj.code = cutOutString(this.applyObj.code, 100)
  365. } else {
  366. this.getSimilarCode()
  367. }
  368. },
  369. onBrandChange: function () {
  370. this.applyObj.brand = this.applyObj.brand.trim()
  371. if ((/[^\x00-\xff]/g).test(this.applyObj.brand)) {
  372. let chineseIndex = -1
  373. for (let i = 0; i < this.applyObj.brand.length; i++) {
  374. if ((/[^\x00-\xff]/g).test(this.applyObj.brand.charAt(i)) && !(/[\u4e00-\u9fa5]/).test(this.applyObj.brand.charAt(i))) {
  375. chineseIndex = i
  376. break
  377. }
  378. }
  379. if (chineseIndex > -1) {
  380. this.applyObj.brand = this.applyObj.brand.substring(0, chineseIndex)
  381. }
  382. } else if (this.applyObj.brand && getRealLen(this.applyObj.brand) > 50) {
  383. this.applyObj.brand = cutOutString(this.applyObj.brand, 50)
  384. }
  385. this.getSimilarBrand()
  386. },
  387. onAmountInput: function () {
  388. if (!(/^[0-9]*$/).test(this.applyObj.amount)) {
  389. let chineseIndex = -1
  390. for (let i = 0; i < this.applyObj.amount.length; i++) {
  391. if (!(/^[0-9]*$/).test(this.applyObj.amount.charAt(i))) {
  392. chineseIndex = i
  393. break
  394. }
  395. }
  396. this.applyObj.amount = cutOutString(this.applyObj.amount, chineseIndex)
  397. } else if (this.applyObj.amount.length > 9) {
  398. this.applyObj.amount = cutOutString(this.applyObj.amount, 9)
  399. }
  400. },
  401. onSuccess: function (data) {
  402. if (!this.user.logged) {
  403. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  404. } else if (data.success) {
  405. window.open('/applyPurchase/' + data.data)
  406. } else {
  407. this.$message.error(data.message)
  408. }
  409. },
  410. onError: function () {
  411. if (!this.user.logged) {
  412. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  413. } else {
  414. this.$message.error('上传失败, 系统错误')
  415. }
  416. },
  417. downloadTemplate: function () {
  418. window.location.href = '/seek/release/template'
  419. },
  420. setCode: function (code) {
  421. this.applyObj.code = code
  422. this.showSimilarCodeList = false
  423. },
  424. setBrand: function (brand) {
  425. this.applyObj.brand = brand
  426. this.showSimilarBrandList = false
  427. }
  428. // upload: function (e) {
  429. // let file = e.target.files[0]
  430. // let param = new FormData()
  431. // param.append('file', file, file.name)
  432. // let config = {
  433. // headers: {'Content-Type': file.type}
  434. // }
  435. // this.$http.post('/seek/importBom', param, config).then(response => {
  436. // if (response.data.success) {
  437. // window.open('/applyPurchase/' + response.data.data)
  438. // } else {
  439. // this.$message.error('上传失败')
  440. // }
  441. // }, err => {
  442. // console.log(err)
  443. // this.$message.error('系统错误')
  444. // })
  445. // }
  446. }
  447. }
  448. </script>
  449. <style lang="scss">
  450. .publish-apply {
  451. background: url('/images/applyPurchase/banner.png') center center/cover no-repeat;
  452. height: 583px;
  453. padding-top: 290px;
  454. width: 1190px;
  455. margin: 0 auto;
  456. padding-left: 44px;
  457. >div {
  458. display: inline-block;
  459. border: 1px solid #3975f4;
  460. height: 267px;
  461. margin-right: 6px;
  462. vertical-align: middle;
  463. background: #fff;
  464. float: left;
  465. text-align: center;
  466. }
  467. .good-purchaser {
  468. width: 225px;
  469. .good-purchaser-title {
  470. height: 55px;
  471. line-height: 55px;
  472. background: #3975f4;
  473. margin: 0;
  474. }
  475. ul {
  476. padding: 0 22px 0 10px;
  477. li {
  478. line-height: 42px;
  479. span {
  480. float: right;
  481. display: inline-block;
  482. width: 152px;
  483. overflow: hidden;
  484. text-overflow: ellipsis;
  485. white-space: nowrap;
  486. text-align: left;
  487. }
  488. i {
  489. display: inline-block;
  490. float: left;
  491. width: 25px;
  492. color: #fff;
  493. font-size: 16px;
  494. font-style: normal;
  495. }
  496. }
  497. }
  498. }
  499. .publish-area {
  500. width: 549px;
  501. text-align: center;
  502. .publish-form-area {
  503. width: 243px;
  504. float: left;
  505. height: 100%;
  506. p {
  507. padding-top: 18px;
  508. font-size: 26px;
  509. color: #3975f4;
  510. margin-bottom: 7px;
  511. }
  512. >div {
  513. text-align: left;
  514. margin-left: 14px;
  515. .form-item {
  516. margin-bottom: 5px;
  517. position: relative;
  518. span {
  519. width: 80px;
  520. text-align: right;
  521. display: inline-block;
  522. i {
  523. position: relative;
  524. top: 2px;
  525. right: 3px;
  526. color: #e41515;
  527. }
  528. }
  529. ul {
  530. line-height: normal;
  531. position: absolute;
  532. top: 19px;
  533. left: 79px;
  534. background: #fff;
  535. border: 1px solid #b5b5b5;
  536. z-index: 1;
  537. max-height: 120px;
  538. overflow-y: auto;
  539. overflow-x: hidden;
  540. border-radius: 3px;
  541. width: 114px;
  542. font-size: 12px;
  543. li {
  544. height: 24px;
  545. line-height: 24px;
  546. cursor: pointer;
  547. overflow: hidden;
  548. text-overflow: ellipsis;
  549. white-space: nowrap;
  550. padding: 0 5px;
  551. &:hover {
  552. background: #ddd;
  553. }
  554. }
  555. }
  556. select {
  557. width: 32px;
  558. position: absolute;
  559. height: 20px;
  560. background: url('/images/applyPurchase/select.png')no-repeat right;
  561. background-position-x: 15px;
  562. padding: 0 0 0 3px;
  563. border-radius: 0;
  564. & + input {
  565. padding-left: 34px;
  566. }
  567. }
  568. .el-input {
  569. width: 111px;
  570. .el-input__inner {
  571. }
  572. }
  573. input {
  574. font-size: 12px;
  575. width: 111px;
  576. height: 20px;
  577. line-height: 20px;
  578. border-radius: 2px;
  579. padding: 0 3px;
  580. box-shadow: none;
  581. -webkit-box-shadow: none;
  582. -moz-box-shadow: none;
  583. &.error {
  584. border-color: #f4645f!important;
  585. }
  586. }
  587. }
  588. }
  589. >a {
  590. width: 90px;
  591. height: 25px;
  592. line-height: 25px;
  593. background: #3975f4;
  594. color: #fefefe;
  595. font-size: 16px;
  596. display: block;
  597. margin: 0 auto;
  598. border-radius: 3px;
  599. cursor: pointer;
  600. }
  601. }
  602. .publish-upload {
  603. background: url('/images/applyPurchase/publish-apply-bg.png')no-repeat;
  604. background-size: cover;
  605. width: 304px;
  606. height: 100%;
  607. padding-left: 22px;
  608. float: right;
  609. color: #fff;
  610. position: relative;
  611. h1 {
  612. font-size: 26px;
  613. margin: 22px 0 0 0;
  614. }
  615. h2 {
  616. font-size: 16px;
  617. margin: 10px 0 23px 0;
  618. }
  619. h3 {
  620. font-size: 16px;
  621. margin: 20px 0 13px 0;
  622. }
  623. label {
  624. position: relative;
  625. /*input {
  626. display: none;
  627. }*/
  628. > div {
  629. position: absolute;
  630. .el-upload {
  631. input {
  632. display: none;
  633. }
  634. .el-upload-dragger {
  635. width: 247px;
  636. height: 216px;
  637. position: absolute;
  638. bottom: -37px;
  639. right: -166px;
  640. opacity: 0;
  641. }
  642. }
  643. }
  644. }
  645. .download-line {
  646. cursor: pointer;
  647. color: #b47200;
  648. }
  649. .apply-logo {
  650. position: absolute;
  651. left: -20px;
  652. top: 86px;
  653. }
  654. }
  655. }
  656. .apply-rank {
  657. width: 317px;
  658. margin-right: 0;
  659. background: url('/images/applyPurchase/rank-title.png') no-repeat;
  660. background-color: #fff;
  661. background-size: 319px 74px;
  662. background-position: -3px -2px;
  663. table {
  664. margin: 76px auto 0;
  665. width: 98%;
  666. thead {
  667. background: #e0e0e0;
  668. height: 26px;
  669. line-height: 26px;
  670. border-radius: 3px;
  671. tr {
  672. th {
  673. font-size: 16px;
  674. font-weight: bold;
  675. text-align: center;
  676. }
  677. }
  678. }
  679. tbody {
  680. tr {
  681. height: 25px;
  682. line-height: 25px;
  683. &:first-child {
  684. td {
  685. padding-top: 10px;
  686. }
  687. }
  688. td {
  689. color: #666;
  690. &:nth-child(1) {
  691. color: #f6682f;
  692. font-size: 12px;
  693. >div {
  694. width: 62px;
  695. span {
  696. font-size: 16px;
  697. }
  698. }
  699. }
  700. &:nth-child(2) {
  701. >div {
  702. width: 160px;
  703. }
  704. }
  705. &:nth-child(3) {
  706. >div {
  707. width: 92px;
  708. }
  709. }
  710. >div {
  711. overflow: hidden;
  712. text-overflow: ellipsis;
  713. white-space: nowrap;
  714. padding: 0 8px;
  715. position: relative;
  716. height: 30px;
  717. i {
  718. font-style: normal;
  719. float: right;
  720. color: #8b8b8b;
  721. font-size: 14px;
  722. position: absolute;
  723. right: 0;
  724. }
  725. }
  726. }
  727. }
  728. }
  729. }
  730. }
  731. .apply-del-box{
  732. position: fixed;
  733. z-index: 1000;
  734. height: auto;
  735. opacity: 1;
  736. background-color: white;
  737. width: 310px;
  738. -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  739. -moz-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  740. -o-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  741. box-shadow: 0 5px 15px rgba(0,0,0,.5);
  742. margin: -155px 0 0 -75px;
  743. top: 55%;
  744. left: 43%;
  745. .title{
  746. height: 24px;
  747. background-color: #007aff;
  748. text-align: right;
  749. padding-right: 15px;
  750. line-height: 24px;
  751. a{
  752. color: white;
  753. font-size: 12px;
  754. }
  755. }
  756. .content{
  757. width: 100%;
  758. text-align: center;
  759. margin: 0 auto;
  760. p{
  761. padding: 12px 31px;
  762. margin: 0;
  763. i{
  764. color: #5078cb;
  765. font-size: 16px;
  766. margin-right: 10px;
  767. }
  768. span {
  769. color: #007aff;
  770. }
  771. &:last-child {
  772. font-size: 12px;
  773. }
  774. }
  775. div{
  776. width: 100%;
  777. text-align: center;
  778. margin: 0 auto 20px;
  779. a{
  780. padding: 0 19px;
  781. height: 26px;
  782. line-height: 26px;
  783. display: inline-block;
  784. text-align: center;
  785. font-size: 14px;
  786. color: #fff;
  787. &:first-child{
  788. background: #c8c6c6;
  789. margin-right: 10px;
  790. }
  791. &:last-child{
  792. background: #007aff;
  793. }
  794. }
  795. }
  796. }
  797. }
  798. }
  799. .el-date-editor--date{
  800. width: 110px;
  801. &.error {
  802. input {
  803. border: 1px solid #f4645f !important;
  804. }
  805. }
  806. }
  807. .el-icon-date {
  808. display: none;
  809. }
  810. .el-input__inner {
  811. height: 20px;
  812. border-radius: 0;
  813. border: 1px solid #c9c9c9;
  814. }
  815. </style>