PublishApply.vue 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  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="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 if (data.success) {
  483. window.location.href = '/applyPurchase/' + data.data
  484. } else {
  485. this.$message.error(data.message)
  486. }
  487. },
  488. onError: function () {
  489. if (!this.user.logged) {
  490. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  491. } else {
  492. this.$message.error('上传失败, 系统错误')
  493. }
  494. },
  495. downloadTemplate: function () {
  496. window.location.href = '/seek/release/template'
  497. },
  498. setCode: function (code) {
  499. this.applyObj.code = code
  500. this.showSimilarCodeList = false
  501. },
  502. setBrand: function (brand) {
  503. this.applyObj.brand = brand
  504. this.showSimilarBrandList = false
  505. }
  506. // upload: function (e) {
  507. // let file = e.target.files[0]
  508. // let param = new FormData()
  509. // param.append('file', file, file.name)
  510. // let config = {
  511. // headers: {'Content-Type': file.type}
  512. // }
  513. // this.$http.post('/seek/importBom', param, config).then(response => {
  514. // if (response.data.success) {
  515. // window.open('/applyPurchase/' + response.data.data)
  516. // } else {
  517. // this.$message.error('上传失败')
  518. // }
  519. // }, err => {
  520. // console.log(err)
  521. // this.$message.error('系统错误')
  522. // })
  523. // }
  524. }
  525. }
  526. </script>
  527. <style lang="scss">
  528. .publish-apply {
  529. background: url('/images/applyPurchase/banner.png') center center/cover no-repeat;
  530. height: 583px;
  531. padding-top: 290px;
  532. width: 1190px;
  533. margin: 0 auto;
  534. padding-left: 44px;
  535. >div {
  536. display: inline-block;
  537. border: 1px solid #3975f4;
  538. height: 267px;
  539. margin-right: 6px;
  540. vertical-align: middle;
  541. background: #fff;
  542. float: left;
  543. text-align: center;
  544. }
  545. /*.good-purchaser {
  546. width: 225px;
  547. .good-purchaser-title {
  548. height: 55px;
  549. line-height: 55px;
  550. background: #3975f4;
  551. margin: 0;
  552. }
  553. ul {
  554. padding: 0 22px 0 10px;
  555. li {
  556. line-height: 42px;
  557. span {
  558. float: right;
  559. display: inline-block;
  560. width: 152px;
  561. overflow: hidden;
  562. text-overflow: ellipsis;
  563. white-space: nowrap;
  564. text-align: left;
  565. }
  566. i {
  567. display: inline-block;
  568. float: left;
  569. width: 25px;
  570. color: #fff;
  571. font-size: 16px;
  572. font-style: normal;
  573. }
  574. }
  575. }
  576. }*/
  577. .publish-area {
  578. width: 644px;
  579. text-align: center;
  580. .publish-form-area {
  581. width: 289px;
  582. float: left;
  583. height: 100%;
  584. margin-left: 12px;
  585. p {
  586. padding-top: 8px;
  587. font-size: 22px;
  588. color: #3975f4;
  589. margin-bottom: 4px;
  590. }
  591. >div {
  592. text-align: left;
  593. margin-left: 3px;
  594. .form-item {
  595. margin-bottom: 14px;
  596. position: relative;
  597. span {
  598. width: 114px;
  599. text-align: right;
  600. display: inline-block;
  601. color: #333;
  602. i {
  603. position: relative;
  604. top: 2px;
  605. right: 3px;
  606. color: #e41515;
  607. }
  608. }
  609. ul {
  610. line-height: normal;
  611. position: absolute;
  612. top: 19px;
  613. left: 114px;
  614. background: #fff;
  615. border: 1px solid #b5b5b5;
  616. z-index: 1;
  617. max-height: 120px;
  618. overflow-y: auto;
  619. overflow-x: hidden;
  620. border-radius: 3px;
  621. width: 162px;
  622. font-size: 12px;
  623. li {
  624. height: 24px;
  625. line-height: 24px;
  626. cursor: pointer;
  627. overflow: hidden;
  628. text-overflow: ellipsis;
  629. white-space: nowrap;
  630. padding: 0 5px;
  631. &:hover {
  632. background: #ddd;
  633. }
  634. }
  635. }
  636. select {
  637. width: 32px;
  638. position: absolute;
  639. height: 20px;
  640. background: url('/images/applyPurchase/select.png')no-repeat right;
  641. background-position-x: 15px;
  642. padding: 0 0 0 3px;
  643. border-radius: 0;
  644. & + input {
  645. padding-left: 34px;
  646. }
  647. }
  648. .el-input {
  649. width: 106px;
  650. /*.el-input__inner {
  651. }*/
  652. }
  653. input {
  654. font-size: 12px;
  655. width: 162px;
  656. height: 20px;
  657. line-height: 20px;
  658. border-radius: 2px;
  659. padding: 0 3px;
  660. box-shadow: none;
  661. -webkit-box-shadow: none;
  662. -moz-box-shadow: none;
  663. &.error {
  664. border-color: #f4645f!important;
  665. }
  666. }
  667. }
  668. }
  669. >a {
  670. width: 100px;
  671. height: 25px;
  672. line-height: 25px;
  673. background: #3975f4;
  674. color: #fefefe;
  675. font-size: 16px;
  676. display: block;
  677. margin: -8px 29px 0px 150px;
  678. border-radius: 3px;
  679. cursor: pointer;
  680. }
  681. }
  682. .publish-upload {
  683. background: url('/images/applyPurchase/publish-apply-bg.png')no-repeat;
  684. background-size: cover;
  685. width: 304px;
  686. height: 100%;
  687. padding-left: 22px;
  688. float: right;
  689. color: #fff;
  690. position: relative;
  691. h1 {
  692. font-size: 22px;
  693. margin: 11px 0 0 0;
  694. }
  695. h2 {
  696. font-size: 16px;
  697. margin: 10px 0 23px 0;
  698. }
  699. h3 {
  700. font-size: 16px;
  701. margin: 20px 0 13px 0;
  702. }
  703. label {
  704. position: relative;
  705. /*input {
  706. display: none;
  707. }*/
  708. > div {
  709. position: absolute;
  710. .el-upload {
  711. input {
  712. display: none;
  713. }
  714. .el-upload-dragger {
  715. width: 247px;
  716. height: 216px;
  717. position: absolute;
  718. bottom: -37px;
  719. right: -166px;
  720. opacity: 0;
  721. }
  722. }
  723. }
  724. }
  725. .download-line {
  726. cursor: pointer;
  727. color: #b47200;
  728. }
  729. .apply-logo {
  730. position: absolute;
  731. left: -20px;
  732. top: 86px;
  733. }
  734. }
  735. }
  736. .apply-rank {
  737. width: 451px;
  738. margin-right: 0;
  739. background: url('/images/applyPurchase/rank-title1.png') no-repeat;
  740. background-color: #fff;
  741. background-size: 451px 74px;
  742. background-position: -1px -2px;
  743. table {
  744. margin: 76px auto 0;
  745. width: 98%;
  746. thead {
  747. background: #e0e0e0;
  748. height: 26px;
  749. line-height: 26px;
  750. border-radius: 3px;
  751. tr {
  752. th {
  753. font-size: 16px;
  754. font-weight: bold;
  755. text-align: center;
  756. }
  757. }
  758. }
  759. tbody {
  760. tr {
  761. height: 25px;
  762. line-height: 25px;
  763. &:first-child {
  764. td {
  765. padding-top: 10px;
  766. }
  767. }
  768. td {
  769. color: #666;
  770. &:nth-child(1) {
  771. color: #f6682f;
  772. font-size: 12px;
  773. >div {
  774. width: 74px;
  775. span {
  776. font-size: 16px;
  777. }
  778. }
  779. }
  780. &:nth-child(2) {
  781. >div {
  782. width: 273px;
  783. }
  784. }
  785. &:nth-child(3) {
  786. >div {
  787. width: 102px;
  788. }
  789. }
  790. >div {
  791. overflow: hidden;
  792. text-overflow: ellipsis;
  793. white-space: nowrap;
  794. padding: 0 8px;
  795. position: relative;
  796. height: 30px;
  797. i {
  798. font-style: normal;
  799. float: right;
  800. color: #8b8b8b;
  801. font-size: 14px;
  802. position: absolute;
  803. right: 0;
  804. }
  805. }
  806. }
  807. }
  808. }
  809. }
  810. }
  811. .apply-del-box{
  812. position: fixed;
  813. z-index: 1000;
  814. height: auto;
  815. opacity: 1;
  816. background-color: white;
  817. width: 310px;
  818. -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  819. -moz-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  820. -o-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  821. box-shadow: 0 5px 15px rgba(0,0,0,.5);
  822. margin: -155px 0 0 -75px;
  823. top: 55%;
  824. left: 43%;
  825. .title{
  826. height: 24px;
  827. background-color: #007aff;
  828. text-align: right;
  829. padding-right: 15px;
  830. line-height: 24px;
  831. a{
  832. color: white;
  833. font-size: 12px;
  834. }
  835. }
  836. .content{
  837. width: 100%;
  838. text-align: center;
  839. margin: 0 auto;
  840. p{
  841. padding: 12px 31px;
  842. margin: 0;
  843. i{
  844. color: #5078cb;
  845. font-size: 16px;
  846. margin-right: 10px;
  847. }
  848. span {
  849. color: #007aff;
  850. }
  851. &:last-child {
  852. font-size: 12px;
  853. }
  854. }
  855. div{
  856. width: 100%;
  857. text-align: center;
  858. margin: 0 auto 20px;
  859. a{
  860. padding: 0 19px;
  861. height: 26px;
  862. line-height: 26px;
  863. display: inline-block;
  864. text-align: center;
  865. font-size: 14px;
  866. color: #fff;
  867. &:first-child{
  868. background: #c8c6c6;
  869. margin-right: 10px;
  870. }
  871. &:last-child{
  872. background: #007aff;
  873. }
  874. }
  875. }
  876. }
  877. }
  878. }
  879. .el-date-editor--date{
  880. width: 110px;
  881. &.error {
  882. input {
  883. border: 1px solid #f4645f !important;
  884. }
  885. }
  886. }
  887. .el-icon-date {
  888. display: none;
  889. }
  890. .el-input__inner {
  891. height: 20px;
  892. border-radius: 0;
  893. border: 1px solid #c9c9c9;
  894. }
  895. </style>