PublishApply.vue 24 KB

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