PublishApply.vue 24 KB

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