PublishApply.vue 27 KB

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