PublishApply.vue 25 KB

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