PublishApply.vue 30 KB

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