BatchPublish.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719
  1. <template>
  2. <div class="batch-publish">
  3. <p>成功上传<b class="red-text">{{bomNumber.successImport || 0}}</b>个<br/>另有<span class="red-text">{{bomNumber.nullField || 0}}</span>个必填项缺失,请在当前页完善信息</p>
  4. <table v-if="bomList.content.length">
  5. <thead>
  6. <tr>
  7. <th width="60">
  8. <label class="com-check-box">
  9. <input type="checkbox" id="all" @change="onCheck()" v-model="isCheckAll">
  10. <label for="all"></label>
  11. </label>全选
  12. </th>
  13. <th width="160"><i class="red-text">*</i>型号</th>
  14. <th width="132"><i class="red-text">*</i>品牌</th>
  15. <th width="100">采购数量</th>
  16. <th width="128">单价预算</th>
  17. <th width="76">封装</th>
  18. <th width="102">生产日期</th>
  19. <th width="144"><i class="red-text">*</i>截止时间</th>
  20. <th width="92">操作</th>
  21. </tr>
  22. </thead>
  23. <tbody v-for="(item, index) in bomList.content">
  24. <tr v-if="!item.active">
  25. <td>
  26. <label class="com-check-box">
  27. <input type="checkbox" @change="onCheck(index)" v-model="item.checked" :id="index">
  28. <label :for="index"></label>
  29. </label>
  30. </td>
  31. <td>
  32. <span v-if="item.code">{{item.code}}</span>
  33. <span class="red-text" v-if="!item.code">请完善信息</span>
  34. </td>
  35. <td>
  36. <span v-if="item.brand">{{item.brand}}</span>
  37. <span class="red-text" v-if="!item.brand">请完善信息</span>
  38. </td>
  39. <td>{{item.amount || '-'}}</td>
  40. <td class="blue-text">
  41. <span v-if="item.unitPrice">{{(item.currency === 'RMB' ? '¥' : '$') + item.unitPrice}}</span>
  42. <span v-if="!item.unitPrice">-</span>
  43. </td>
  44. <td>{{item.encapsulation || '-'}}</td>
  45. <td>{{item.produceDate}}</td>
  46. <td>
  47. <span v-if="item.deadline">{{item.deadline | date}}</span>
  48. <span class="red-text" v-if="!item.deadline">请完善信息</span>
  49. <div class="red-text" v-if="!isValidTime(item.deadline)">默认≤90天</div>
  50. </td>
  51. <td class="operate">
  52. <a class="delete-btn" @click="modifyItem(index)">编辑</a>
  53. <a class="modify-btn" @click="deleteItem(index)">删除</a>
  54. </td>
  55. </tr>
  56. <tr class="modify-row" v-if="item.active">
  57. <td>
  58. <label class="com-check-box">
  59. <input type="checkbox" @change="onCheck(index)" v-model="item.checked" :id="index">
  60. <label :for="index"></label>
  61. </label>
  62. </td>
  63. <td>
  64. <input type="text" class="form-control" v-model="modifyObj.code" :class="{'error': !validObj.code}" maxlength="30" @blur="checkCode" @input="onCodeChange" >
  65. <!-- <ul>
  66. <li v-for="sCode in similarCode">{{sCode.code}}</li>
  67. </ul>-->
  68. </td>
  69. <td>
  70. <input type="text" class="form-control" v-model="modifyObj.brand" :class="{'error': !validObj.brand}" maxlength="20" @blur="checkBrand" @input="onBrandChange">
  71. <!--<ul>
  72. <li v-for="sBrand in similarBrand">{{sBrand.nameEn}}</li>
  73. </ul>-->
  74. </td>
  75. <td>
  76. <input type="text" class="form-control" v-model="modifyObj.amount" :class="{'error': !validObj.amount}" @blur="checkAmount">
  77. </td>
  78. <td>
  79. <select class="form-control" v-model="modifyObj.currency">
  80. <option value="RMB">¥</option>
  81. <option value="USD">$</option>
  82. </select>
  83. <input class="form-control" type="number" v-model="modifyObj.unitPrice" :class="{'error': !validObj.unitPrice}" @blur="checkUnitPrice" @input="onUnitPriceInput">
  84. </td>
  85. <td>
  86. <input type="text" class="form-control" v-model="modifyObj.encapsulation" maxlength="20" @input="onEncapsulationChange">
  87. </td>
  88. <td>
  89. <input type="text" class="form-control" v-model="modifyObj.produceDate" @input="onProduceDateChange">
  90. </td>
  91. <td>
  92. <el-date-picker
  93. v-model="modifyObj.deadline"
  94. type="date"
  95. :picker-options="pickerOptions"
  96. :editable="false"
  97. size="mini">
  98. </el-date-picker>
  99. <!--<input type="text" class="form-control" v-model="modifyObj.deadline">-->
  100. </td>
  101. <td class="operate">
  102. <a class="submit-btn" @click="submitModify(index)">确认</a>
  103. <a class="cancel-btn" @click="cancelModify(index)">取消</a>
  104. </td>
  105. </tr>
  106. </tbody>
  107. </table>
  108. <page :total="bomList.totalElements" :page-size="pageSize"
  109. :current="nowPage" @childEvent="listenPage"></page>
  110. <div class="submit-area" v-if="bomList.content.length">
  111. <a class="modify-btn" @click="deleteItem()">删除</a>
  112. <a class="modify-btn delete-btn" @click="submitBOM">确认发布</a>
  113. </div>
  114. <!--提示框-->
  115. <div class="apply-del-box" v-if="showRemindBox">
  116. <div class="title">
  117. <a @click="showRemindBox = false"><i class="fa fa-close fa-lg"></i></a>
  118. </div>
  119. <div class="content">
  120. <!--<p style="line-height: 20px;margin-top: 10px;padding:0 10px">非常抱歉,目前暂无此品牌!<br>若直接前往“品牌申请”,我们将为您先开通寄售功能,待申请通过后再提交开店申请。</p>-->
  121. <!--<p style="line-height: 20px;">前往<a @click="goBrandApply()" target="_blank" style="color: #5078CB">品牌申请&nbsp;<i class="fa fa-arrow-right"></i></a></p>-->
  122. <p><img src="/images/applyPurchase/check.png" alt="">发布成功</p>
  123. <p>其中<span>{{onSaleNum}}</span>个求购型号有现货在售,您可前往“<span>买家中心-我的求购</span>”查询并直接购买</p>
  124. <div>
  125. <a @click="showRemindBox = false">继续发布</a>
  126. <a href="/user#/seekPurchase">前往我的求购</a>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. </template>
  132. <script>
  133. let getRealLen = function (str) {
  134. let len = 0
  135. for (let i = 0; i < str.length; i++) {
  136. if (str.charCodeAt(i) > 127 || str.charCodeAt(i) === 94) {
  137. len += 2
  138. } else {
  139. len++
  140. }
  141. }
  142. return len
  143. }
  144. import Page from '~components/common/page/pageComponent.vue'
  145. export default {
  146. data () {
  147. return {
  148. pageSize: 10,
  149. nowPage: 1,
  150. isCheckAll: false,
  151. showRemindBox: false,
  152. modifyObj: {
  153. code: '',
  154. brand: '',
  155. unitPrice: '',
  156. currency: 'RMB',
  157. encapsulation: '',
  158. produceDate: '',
  159. amount: '',
  160. deadline: ''
  161. },
  162. pickerOptions: {
  163. disabledDate (time) {
  164. // 大于等于今天 小于三个月后
  165. return time.getTime() < Date.now() - 1000 * 60 * 60 * 24 || time.getTime() > Date.now() + 1000 * 60 * 60 * 24 * 30 * 3
  166. }
  167. },
  168. similarCode: [],
  169. similarBrand: [],
  170. validObj: {
  171. code: true,
  172. brand: true,
  173. unitPrice: true,
  174. // encapsulation: true,
  175. // produceDate: true,
  176. amount: true,
  177. deadline: true
  178. },
  179. onSaleNum: 0
  180. }
  181. },
  182. components: {
  183. Page
  184. },
  185. computed: {
  186. bomList () {
  187. let _this = this
  188. let list = this.$store.state.applyPurchase.bomMaterial.bomList.data
  189. for (let i = 0; i < list.content.length; i++) {
  190. _this.$set(list.content[i], 'checked', false)
  191. _this.$set(list.content[i], 'active', false)
  192. // list.content[i].checked = false
  193. // list.content[i].active = false
  194. // if (!list.content[i].code || list.content[i].brand || !list.content[i].deadline || !this.isValidDate(list.content[i].deadline)) {
  195. // _this.validList = false
  196. // }
  197. }
  198. return list
  199. },
  200. bomNumber () {
  201. return this.$store.state.applyPurchase.bomMaterial.bomNumber.data
  202. }
  203. },
  204. filters: {
  205. date: function (input) {
  206. if (input) {
  207. const d = new Date(input)
  208. const year = d.getFullYear()
  209. const monthTemp = d.getMonth() + 1
  210. const month = monthTemp < 10 ? '0' + monthTemp : '' + monthTemp
  211. const day = d.getDate() < 10 ? '0' + d.getDate() : '' + d.getDate()
  212. return year + '-' + month + '-' + day
  213. } else {
  214. return null
  215. }
  216. }
  217. },
  218. methods: {
  219. initModifyObj: function () {
  220. this.modifyObj = {
  221. code: '',
  222. brand: '',
  223. unitPrice: '',
  224. currency: 'RMB',
  225. encapsulation: '',
  226. produceDate: '',
  227. amount: '',
  228. deadline: ''
  229. }
  230. },
  231. listenPage: function (page) {
  232. this.nowPage = page
  233. this.reloadData()
  234. },
  235. reloadData: function () {
  236. this.$store.dispatch('applyPurchase/loadBOMMaterialList', {bomId: this.$route.params.id, page: this.nowPage, count: this.pageSize})
  237. },
  238. submitBOM: function () {
  239. let str = ''
  240. for (let i = 0; i < this.bomList.content.length; i++) {
  241. if (this.bomList.content[i].checked) {
  242. str += this.bomList.content[i].id + ','
  243. }
  244. }
  245. let param = {'bomId': Number(this.$route.params.id)}
  246. if (str.length) {
  247. str = str.substring(0, str.length - 1)
  248. param.spIds = str
  249. }
  250. this.$http.post('/seek/confirmBom', param)
  251. .then(response => {
  252. if (response.data.success) {
  253. this.showRemindBox = true
  254. this.listenPage(1)
  255. this.$store.dispatch('applyPurchase/loadBOMNumber', {bomId: this.$route.params.id})
  256. } else {
  257. this.$message.error('发布失败')
  258. }
  259. }, err => {
  260. console.log(err)
  261. this.$message.error('系统错误')
  262. })
  263. },
  264. onCheck: function (index) {
  265. if (typeof index === 'undefined') {
  266. let isCheckedAll = true
  267. for (let i = 0; i < this.bomList.content.length; i++) {
  268. if (!this.bomList.content[i].checked) {
  269. isCheckedAll = false
  270. break
  271. }
  272. }
  273. this.setAllCheck(!isCheckedAll)
  274. this.isCheckAll = !isCheckedAll
  275. }
  276. },
  277. setAllCheck: function (flag) {
  278. for (let i = 0; i < this.bomList.content.length; i++) {
  279. this.bomList.content[i].checked = flag
  280. }
  281. },
  282. modifyItem: function (index) {
  283. for (let i = 0; i < this.bomList.content.length; i++) {
  284. this.bomList.content[i].active = false
  285. }
  286. // this.$set(this.bomList.content[index], 'active', true)
  287. this.bomList.content[index].active = true
  288. let _this = this
  289. this.initModifyObj()
  290. for (let attr in this.bomList.content[index]) {
  291. _this.$set(_this.modifyObj, attr, _this.bomList.content[index][attr])
  292. // _this.modifyObj[attr] = _this.bomList.content[index][attr]
  293. }
  294. // this.modifyObj = this.bomList.content[index]
  295. this.modifyObj.deadline = this.getDate(this.bomList.content[index].deadline)
  296. },
  297. cancelModify: function (index) {
  298. this.bomList.content[index].active = false
  299. },
  300. getDate: function (input) {
  301. const d = new Date(input)
  302. const year = d.getFullYear()
  303. const monthTemp = d.getMonth() + 1
  304. const month = monthTemp < 10 ? '0' + monthTemp : '' + monthTemp
  305. const day = d.getDate() < 10 ? '0' + d.getDate() : '' + d.getDate()
  306. return year + '-' + month + '-' + day
  307. },
  308. submitModify: function (index) {
  309. let checkValid = this.checkAll()
  310. if (this.getSingleValidInfo(this.modifyObj) && checkValid) {
  311. this.$http.put('/seek/updateSeekPurchaseByBatch', this.modifyObj)
  312. .then(response => {
  313. if (response.data.success) {
  314. this.reloadData()
  315. this.$message.success('修改成功')
  316. this.onSaleNum = response.data.data
  317. // this.bomList.content[index].active = false
  318. } else {
  319. this.$message.error('修改失败')
  320. }
  321. }, err => {
  322. console.log(err)
  323. this.$message.error('系统错误')
  324. })
  325. } else {
  326. if (!checkValid) {
  327. if (!this.validObj.code) {
  328. this.$message.error('型号不能为空')
  329. } else if (!this.validObj.brand) {
  330. this.$message.error('品牌不能为空')
  331. } else if (!this.validObj.deadline) {
  332. this.$message.error('截止日期不能为空')
  333. } else if (!this.validObj.amount || !this.validObj.unitPrice) {
  334. this.$message.error('请输入正确的数值')
  335. }
  336. } else {
  337. this.$message.error('请完善信息')
  338. }
  339. }
  340. },
  341. deleteItem: function (index) {
  342. if (!index) {
  343. let str = ''
  344. for (let i = 0; i < this.bomList.content.length; i++) {
  345. if (this.bomList.content[i].checked) {
  346. str += this.bomList.content[i].id + ','
  347. }
  348. }
  349. let param = {}
  350. if (str.length) {
  351. str = str.substring(0, str.length - 1)
  352. param.spIds = str
  353. this.doDelete(param)
  354. } else {
  355. this.$message.error('请勾选')
  356. return
  357. }
  358. } else {
  359. this.doDelete({spIds: this.bomList.content[index].id})
  360. }
  361. },
  362. doDelete: function (param) {
  363. this.$http.put('/seek/deleteSeekPurchaseByBatch', param)
  364. .then(response => {
  365. if (response.data.success) {
  366. this.listenPage(1)
  367. this.$message.success('删除成功')
  368. } else {
  369. this.$message.error('删除失败')
  370. }
  371. }, err => {
  372. console.log(err)
  373. this.$message.error('系统错误')
  374. })
  375. },
  376. isValidTime: function (time) {
  377. let now = new Date().getTime()
  378. return !time || (time >= now && time <= now + 1000 * 60 * 60 * 24 * 90)
  379. },
  380. isValidDate: function (date) {
  381. let now = new Date().getTime()
  382. let time = new Date(date).getTime()
  383. return !time || (time >= now && time <= now + 1000 * 60 * 60 * 24 * 90)
  384. },
  385. getSimilarCode: function () {
  386. this.$http.get('/search/similarComponents', {params: {keyword: this.modifyObj.code}})
  387. .then(response => {
  388. this.similarCode = response.data
  389. })
  390. },
  391. getSimilarBrand: function () {
  392. this.$http.get('/search/similarBrands', {params: {keyword: this.modifyObj.brand}})
  393. .then(response => {
  394. this.similarBrand = response.data
  395. })
  396. },
  397. getSingleValidInfo: function (item) {
  398. return item.code && item.brand && item.deadline && item.deadline !== 'NaN-NaN-NaN' && this.isValidDate(item.deadline)
  399. },
  400. checkCode: function () {
  401. this.validObj.code = this.modifyObj.code && this.modifyObj.code !== ''
  402. return this.validObj.code
  403. },
  404. checkBrand: function () {
  405. this.validObj.brand = this.modifyObj.brand && this.modifyObj.brand !== ''
  406. return this.validObj.brand
  407. },
  408. checkUnitPrice: function () {
  409. this.validObj.unitPrice = (!this.modifyObj.unitPrice || this.modifyObj.unitPrice === '') ? true : this.modifyObj.unitPrice > 0 && this.modifyObj.unitPrice < 100000000
  410. return this.validObj.unitPrice
  411. },
  412. // checkEncapsulation: function () {
  413. // this.validObj.encapsulation = this.applyObj.encapsulation && this.applyObj.encapsulation !== ''
  414. // },
  415. // checkProduceDate: function () {
  416. // this.validObj.produceDate = this.applyObj.produceDate && this.applyObj.produceDate !== ''
  417. // },
  418. checkAmount: function () {
  419. this.validObj.amount = (!this.modifyObj.amount || this.modifyObj.amount === '') ? true : this.modifyObj.amount > 0 && this.modifyObj.amount < 100000000
  420. return this.validObj.amount
  421. },
  422. checkAll: function () {
  423. return this.checkCode() && this.checkBrand() && this.checkDeadline() && this.checkUnitPrice() && this.checkAmount()
  424. },
  425. checkDeadline: function () {
  426. this.validObj.deadline = Boolean(this.modifyObj.deadline)
  427. return this.validObj.deadline
  428. },
  429. onUnitPriceInput: function () {
  430. let price = this.modifyObj.unitPrice
  431. if (price >= 10000) {
  432. this.modifyObj.unitPrice = price.substring(0, 4)
  433. } else if (price.indexOf('.') > -1) {
  434. let arr = price.split('.')
  435. if (arr[0].length > 4) {
  436. this.modifyObj.unitPrice = Number(arr[0].substring(0, 4) + '.' + arr[1])
  437. } else if (arr[1].length > 6) {
  438. this.modifyObj.unitPrice = Number(arr[0] + '.' + arr[1].substring(0, 6))
  439. }
  440. }
  441. },
  442. onProduceDateChange: function () {
  443. // console.log(getRealLen(this.modifyObj.produceDate))
  444. if (this.modifyObj.produceDate && getRealLen(this.modifyObj.produceDate) > 12) {
  445. console.log(this.modifyObj.produceDate.substring(0, this.modifyObj.produceDate.length - 1))
  446. this.modifyObj.produceDate = this.modifyObj.produceDate.substring(0, this.modifyObj.produceDate.length - 1)
  447. }
  448. },
  449. onEncapsulationChange: function () {
  450. if (this.modifyObj.encapsulation && getRealLen(this.modifyObj.encapsulation) > 20) {
  451. this.modifyObj.encapsulation = this.modifyObj.encapsulation.substring(0, this.modifyObj.encapsulation.length - 1)
  452. }
  453. },
  454. onCodeChange: function () {
  455. if (this.modifyObj.code && getRealLen(this.modifyObj.code) > 30) {
  456. this.modifyObj.code = this.modifyObj.code.substring(0, this.modifyObj.code.length - 1)
  457. }
  458. },
  459. onBrandChange: function () {
  460. if (this.modifyObj.brand && getRealLen(this.modifyObj.brand) > 20) {
  461. this.modifyObj.brand = this.modifyObj.brand.substring(0, this.modifyObj.brand.length - 1)
  462. }
  463. }
  464. }
  465. }
  466. </script>
  467. <style lang="scss">
  468. .batch-publish {
  469. margin: 0 auto;
  470. width: 998px;
  471. .red-text {
  472. color: #ff0000;
  473. }
  474. .blue-text {
  475. color: #3c7cf5;
  476. }
  477. > p {
  478. margin: 59px 0 42px;
  479. font-size: 16px;
  480. }
  481. table {
  482. width: 100%;
  483. table-layout: fixed;
  484. thead {
  485. tr {
  486. th {
  487. background: #b8b8b8;
  488. color: #fff;
  489. font-weight: normal;
  490. height: 50px;
  491. line-height: 50px;
  492. text-align: center;
  493. .com-check-box {
  494. margin-right: 2px;
  495. }
  496. i {
  497. margin-right: 3px;
  498. }
  499. }
  500. }
  501. }
  502. tbody {
  503. tr {
  504. height: 85px;
  505. line-height: 85px;
  506. text-align: center;
  507. border : {
  508. bottom: 1px solid #d9d9d9;
  509. left: 1px solid #d9d9d9;
  510. right: 1px solid #d9d9d9;
  511. }
  512. &:hover {
  513. background: #f3f3f3;
  514. }
  515. td {
  516. overflow: hidden;
  517. text-overflow: ellipsis;
  518. white-space: nowrap;
  519. position: relative;
  520. font-size: 12px;
  521. div.red-text {
  522. line-height: normal;
  523. position: absolute;
  524. left: 42px;
  525. top: 49px;
  526. }
  527. &.operate {
  528. a {
  529. display: block;
  530. width: 64px;
  531. height: 24px;
  532. line-height: 22px;
  533. text-align: center;
  534. border-radius: 3px;
  535. margin: 0 auto 4px;
  536. font-size: 14px;
  537. &.submit-btn {
  538. border: 1px solid #f64900;
  539. color: #fff;
  540. background: #f64900;
  541. }
  542. &.cancel-btn {
  543. border: 1px solid #bbb;
  544. color: #fff;
  545. background: #bbb;
  546. }
  547. }
  548. }
  549. }
  550. &.modify-row {
  551. td {
  552. position: relative;
  553. input, select {
  554. height: 20px;
  555. border-radius: 3px;
  556. background: #f4f4f4;
  557. border: 1px solid #b5b5b5;
  558. text-align: center;
  559. padding: 0 5px;
  560. &.error {
  561. border-color: #f4645f !important;
  562. }
  563. }
  564. &:nth-child(2) {
  565. input {
  566. width: 113px;
  567. }
  568. }
  569. &:nth-child(3) {
  570. input {
  571. width: 93px;
  572. }
  573. }
  574. &:nth-child(4) {
  575. input {
  576. width: 71px;
  577. }
  578. }
  579. &:nth-child(5) {
  580. input {
  581. width: 65px;
  582. padding: 0 5px 0 30px;
  583. }
  584. select {
  585. width: 25px;
  586. padding: 0 0 0 2px;
  587. background: url(/images/applyPurchase/select.png) no-repeat right;
  588. background-size: 12px 19px;
  589. background-position: 13px 0px;
  590. position: absolute;
  591. top: 33px;
  592. border-bottom: none;
  593. border-top: none;
  594. border-left: 0;
  595. }
  596. }
  597. &:nth-child(6) {
  598. input {
  599. width: 54px;
  600. }
  601. }
  602. &:nth-child(7) {
  603. input {
  604. width: 72px;
  605. }
  606. }
  607. &:nth-child(8) {
  608. div {
  609. width: 101px;
  610. input {
  611. width: 101px;
  612. }
  613. }
  614. }
  615. }
  616. }
  617. }
  618. }
  619. }
  620. .modify-btn {
  621. border: 1px solid #3c7cf5;
  622. color: #3c7cf5;
  623. background: #fff;
  624. }
  625. .delete-btn {
  626. border: 1px solid #3c7cf5;
  627. color: #fff;
  628. background: #3c7cf5;
  629. }
  630. .submit-area {
  631. margin: 51px auto 60px;
  632. text-align: center;
  633. clear: both;
  634. a {
  635. display: inline-block;
  636. width: 64px;
  637. height: 24px;
  638. line-height: 22px;
  639. text-align: center;
  640. border-radius: 3px;
  641. &.modify-btn {
  642. width: 90px;
  643. margin-left: 14px;
  644. }
  645. }
  646. }
  647. .apply-del-box{
  648. position: fixed;
  649. z-index: 1000;
  650. height: auto;
  651. opacity: 1;
  652. background-color: white;
  653. width: 310px;
  654. -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  655. -moz-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  656. -o-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  657. box-shadow: 0 5px 15px rgba(0,0,0,.5);
  658. margin: -155px 0 0 -75px;
  659. top: 55%;
  660. left: 43%;
  661. .title{
  662. height: 24px;
  663. background-color: #007aff;
  664. text-align: right;
  665. padding-right: 15px;
  666. line-height: 24px;
  667. a{
  668. color: white;
  669. font-size: 12px;
  670. }
  671. }
  672. .content{
  673. width: 100%;
  674. text-align: center;
  675. margin: 0 auto;
  676. p{
  677. padding: 12px 31px;
  678. margin: 0;
  679. &:nth-child(2) {
  680. font-size: 12px;
  681. padding-top: 0;
  682. }
  683. i{
  684. color: #5078cb;
  685. font-size: 16px;
  686. margin-right: 10px;
  687. }
  688. span {
  689. color: #007aff;
  690. }
  691. &:last-child {
  692. font-size: 12px;
  693. }
  694. }
  695. div{
  696. width: 100%;
  697. text-align: center;
  698. margin: 0 auto 20px;
  699. a{
  700. padding: 0 19px;
  701. height: 26px;
  702. line-height: 26px;
  703. display: inline-block;
  704. text-align: center;
  705. font-size: 14px;
  706. color: #fff;
  707. &:first-child{
  708. background: #c8c6c6;
  709. margin-right: 10px;
  710. }
  711. &:last-child{
  712. background: #007aff;
  713. }
  714. }
  715. }
  716. }
  717. }
  718. }
  719. </style>