PublishApply.vue 25 KB

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