PublishApply.vue 27 KB

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