index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. <template>
  2. <template-page ref="pageRef" :get-list="getList" :table-attributes="tableAttributes" :table-events="tableEvents" :operationColumnWidth="50"
  3. :options-evens-group="optionsEvensGroup" :moreParameters="moreParameters" :column-parsing="columnParsing"
  4. :operation="operation" :exportList="exportList">
  5. <el-dialog title="" width="1200px" custom-class="diy-dialog" append-to-body :modal="true" :visible.sync="formDialog"
  6. :show-close="true" :close-on-click-modal="false" :modal-append-to-body="false" :before-close="formCancel">
  7. <zj-form-container ref="formRef" :form-data="formData" :styleSwitch="false">
  8. <zj-form-module :title="formDialogTitles[formDialogType]" label-width="170px" :showPackUp="false"
  9. :form-data="formData" :form-items="formItems" :disabled="formDialogType==2">
  10. </zj-form-module>
  11. </zj-form-container>
  12. <div slot="footer" class="dialog-footer">
  13. <el-button size="mini" @click="formCancel">取 消</el-button>
  14. <el-button size="mini" type="primary" @click="formConfirm()">确定</el-button>
  15. </div>
  16. </el-dialog>
  17. </template-page>
  18. </template>
  19. <script>
  20. import TemplatePage from '@/components/template/template-page-1.vue'
  21. import import_mixin from '@/components/template/import_mixin.js'
  22. import ImageUpload from '@/components/file-upload'
  23. import { downloadFiles } from '@/utils/util'
  24. import { required, mobileRequired, mobile, httpUrl, email } from '@/components/template/rules_verify.js'
  25. import { listPageV2,pageExport, getDetail, add, edit, updateStatus, listImport, getTypeList, getCategoryList } from "@/api/auxiliaryFittings/attachmentProfile";
  26. export default {
  27. components: { TemplatePage, ImageUpload },
  28. mixins: [import_mixin],
  29. data() {
  30. return {
  31. // 事件组合
  32. optionsEvensGroup: [
  33. [
  34. [
  35. {
  36. name: '新建',
  37. click: this.addData
  38. }
  39. ]
  40. ],
  41. [
  42. [
  43. {
  44. name: '批量上架',
  45. click: ()=>{
  46. this.updateStatus('ON')
  47. }
  48. }
  49. ]
  50. ],
  51. [
  52. [
  53. {
  54. name: '批量下架',
  55. click: ()=>{
  56. this.updateStatus('OFF')
  57. }
  58. }
  59. ]
  60. ],
  61. // [
  62. // [
  63. // {
  64. // name: '下载导入模板',
  65. // click: this.handleDownload
  66. // }
  67. // ],
  68. // [
  69. // {
  70. // name: '导入模板',
  71. // render: () => {
  72. // return this.importButton(listImport, '导入模板')
  73. // }
  74. // }
  75. // ],
  76. // ],
  77. ],
  78. // 表格属性
  79. tableAttributes: {
  80. // 启用勾选列
  81. selectColumn: true
  82. },
  83. // 表格事件
  84. tableEvents: {
  85. 'selection-change': this.selectionChange
  86. },
  87. // 勾选选中行
  88. recordSelected: [],
  89. /** 表单变量 */
  90. formDialogType: 0,
  91. formDialogTitles: ["新增","编辑", "详情"],
  92. formDialog: false,
  93. formData: {
  94. companyName: JSON.parse(localStorage.getItem('greemall_user')).companyName,
  95. goodsType: 'P',
  96. goodsStockUnit: '',
  97. goodsCode: '',
  98. goodsName: '',
  99. normType: 'M',
  100. status: 'ON',
  101. categoryList: [],
  102. brandList: [],
  103. marketPrice: '',
  104. normAmount: '',
  105. selfWebsitAmount: '',
  106. selfWorkerAmount: '',
  107. outWebsitAmount: '',
  108. outWorkerAmount: '',
  109. remark: ''
  110. },
  111. partsUnitList: [],
  112. brandList: [],
  113. categoryList: []
  114. }
  115. },
  116. computed: {
  117. // 更多参数
  118. moreParameters() {
  119. return []
  120. },
  121. //加法
  122. accAdd(){
  123. return function(arg1,arg2){
  124. var r1,r2,m;
  125. try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0}
  126. try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0}
  127. m=Math.pow(10,Math.max(r1,r2))
  128. return (arg1*m+arg2*m)/m
  129. }
  130. },
  131. //减法
  132. Subtr(){
  133. return function(arg1,arg2){
  134. var r1,r2,m,n;
  135. try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0}
  136. try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0}
  137. m=Math.pow(10,Math.max(r1,r2));
  138. n=(r1>=r2)?r1:r2;
  139. return ((arg1*m-arg2*m)/m).toFixed(2);
  140. }
  141. },
  142. formItems() {
  143. return [{
  144. md: 12,
  145. isShow: true,
  146. name: 'el-input',
  147. attributes: { placeholder: '请输入', disabled: true },
  148. formItemAttributes: {
  149. label: '所属商户',
  150. prop: 'companyName',
  151. rules: [...required]
  152. },
  153. }, {
  154. md: 12,
  155. isShow: true,
  156. name: 'slot-component',
  157. attributes: { },
  158. formItemAttributes: {
  159. label: '状态',
  160. prop: 'status',
  161. rules: [...required]
  162. },
  163. render: (h, { props, onInput }) => {
  164. var { value } = props
  165. return (
  166. <el-radio-group v-model={this.formData.status}>
  167. <el-radio disabled={this.formDialogType==2} label="ON">上架</el-radio>
  168. <el-radio disabled={this.formDialogType==2} label="OFF">下架</el-radio>
  169. </el-radio-group>
  170. )
  171. }
  172. }, {
  173. md: 12,
  174. isShow: true,
  175. name: 'el-input',
  176. attributes: { placeholder: '请输入配件名称', },
  177. formItemAttributes: {
  178. label: '配件名称',
  179. prop: 'goodsName',
  180. rules: [...required]
  181. }
  182. }, {
  183. md: 12,
  184. isShow: true,
  185. name: 'el-select-add',
  186. labelKey: 'dictValue',
  187. valueKey: 'dictValue',
  188. options: this.partsUnitList,
  189. attributes: { placeholder: '请选择单位',filterable: true, clearable: true },
  190. formItemAttributes: {
  191. label: '单位',
  192. prop: 'goodsStockUnit',
  193. rules: [...required]
  194. },
  195. events: {
  196. change:(e)=>{
  197. this.$refs.formRef.validateField(['goodsStockUnit'],(valid, invalidFields, errLabels) => {})
  198. }
  199. }
  200. }, {
  201. md: 12,
  202. isShow: true,
  203. name: 'el-input',
  204. attributes: { placeholder: '请输入配件代码' },
  205. formItemAttributes: {
  206. label: '配件代码',
  207. prop: 'goodsCode',
  208. rules: [...required]
  209. }
  210. }, {
  211. md: 12,
  212. isShow: true,
  213. name: 'slot-component',
  214. attributes: {},
  215. formItemAttributes: {
  216. label: '收费类型',
  217. prop: 'normType',
  218. rules: [...required]
  219. },
  220. render: (h, { props, onInput }) => {
  221. var { value } = props
  222. return (
  223. <el-radio-group v-model={this.formData.normType}>
  224. <el-radio disabled={this.formDialogType==2} label="M">配件物料</el-radio>
  225. <el-radio disabled={this.formDialogType==2} label="S">服务收费</el-radio>
  226. </el-radio-group>
  227. )
  228. }
  229. }, {
  230. md: 24,
  231. isShow: this.formData.normType == 'M'?true:false,
  232. name: 'el-checkbox-add',
  233. labelKey: 'dictValue',
  234. valueKey: 'dictCode',
  235. attributes: {},
  236. options: this.brandList,
  237. formItemAttributes: {
  238. label: '适用品牌',
  239. prop: 'brandList',
  240. rules: [...required]
  241. },
  242. events: {
  243. change:(e)=>{
  244. this.$refs.formRef.validateField(['brandList'],(valid, invalidFields, errLabels) => {})
  245. }
  246. }
  247. }, {
  248. md: 24,
  249. isShow: this.formData.normType == 'M'?true:false,
  250. name: 'el-checkbox-add',
  251. labelKey: 'name',
  252. valueKey: 'categoryId',
  253. attributes: {},
  254. options: this.categoryList,
  255. formItemAttributes: {
  256. label: '适用产品大类',
  257. prop: 'categoryList',
  258. rules: [...required]
  259. },
  260. events: {
  261. change:(e)=>{
  262. this.$refs.formRef.validateField(['categoryList'],(valid, invalidFields, errLabels) => {})
  263. }
  264. }
  265. }, {
  266. md: 12,
  267. isShow: this.formData.normType == 'M'?true:false,
  268. name: 'slot-component',
  269. attributes: { placeholder: '请输入', type: 'number' },
  270. formItemAttributes: {
  271. label: '销售价格',
  272. prop: 'marketPrice',
  273. rules: [...required]
  274. },
  275. render: (h, { props, onInput }) => {
  276. var { value } = props
  277. return (
  278. <div style="position: relative;">
  279. <div style="display: flex;justify-content: space-around;align-items: center;position: relative;">
  280. <el-input v-model={this.formData.marketPrice} type="number" placeholder="请输入"></el-input><span style="margin-left: 10px;">元</span>
  281. </div>
  282. <div style="color: #EA8000">注:维护网点销售给师傅的价格</div>
  283. </div>
  284. )
  285. }
  286. }, {
  287. md: 12,
  288. isShow: this.formData.normType == 'M'?true:false,
  289. name: 'slot-component',
  290. attributes: { placeholder: '请输入', type: 'number' },
  291. formItemAttributes: {
  292. label: '收费标准',
  293. prop: 'normAmount',
  294. rules: [...required]
  295. },
  296. render: (h, { props, onInput }) => {
  297. var { value } = props
  298. return (
  299. <div style="position: relative;">
  300. <div style="display: flex;justify-content: space-around;align-items: center;position: relative;">
  301. <el-input v-model={this.formData.normAmount} onChange={(e)=>{
  302. this.formData.normAmount = Number(e).toFixed(2)
  303. if(this.formData.selfWorkerAmount > e){
  304. this.formData.normAmount = ''
  305. return this.$message.warning('自有库存师傅分账金额必须小于收费标准!');
  306. }else if(this.formData.outWorkerAmount > e){
  307. this.formData.outWorkerAmount = ''
  308. return this.$message.warning('外购配件师傅分账金额必须小于收费标准!');
  309. }
  310. this.formData.selfWebsitAmount = this.Subtr(e,this.formData.selfWorkerAmount)
  311. this.formData.outWebsitAmount = this.Subtr(e,this.formData.outWorkerAmount)
  312. this.$refs.formRef.validateField(['selfWebsitAmount'],(valid, invalidFields, errLabels) => {})
  313. this.$refs.formRef.validateField(['outWebsitAmount'],(valid, invalidFields, errLabels) => {})
  314. }} type="number" placeholder="请输入"></el-input><span style="margin-left: 10px;">元</span>
  315. </div>
  316. <div style="color: #EA8000">注:分账金额需扣除手续费0.6%</div>
  317. </div>
  318. )
  319. }
  320. }, {
  321. md: 12,
  322. isShow: this.formData.normType == 'M'?true:false,
  323. name: 'slot-component',
  324. attributes: { placeholder: '请输入', type: 'number' },
  325. formItemAttributes: {
  326. label: '自有库存师傅分账金额',
  327. prop: 'selfWorkerAmount',
  328. rules: [...required]
  329. },
  330. render: (h, { props, onInput }) => {
  331. var { value } = props
  332. const that = this
  333. return (
  334. <div style="position: relative;">
  335. <div style="display: flex;justify-content: space-around;align-items: center;position: relative;">
  336. <el-input v-model={this.formData.selfWorkerAmount} onChange={(e)=>{
  337. this.formData.selfWorkerAmount = Number(this.formData.selfWorkerAmount).toFixed(2)
  338. if(e && (Number(e) > Number(that.formData.normAmount))){
  339. that.formData.selfWorkerAmount = ''
  340. return this.$message.warning('自有库存师傅分账金额必须小于收费标准!');
  341. }
  342. that.formData.selfWebsitAmount = this.Subtr(that.formData.normAmount,e)
  343. }} type="number" placeholder="请输入"></el-input><span style="margin-left: 10px;">元</span>
  344. </div>
  345. </div>
  346. )
  347. }
  348. }, {
  349. md: 12,
  350. isShow: this.formData.normType == 'M'?false:true,
  351. name: 'slot-component',
  352. attributes: { placeholder: '请输入', type: 'number' },
  353. formItemAttributes: {
  354. label: '师傅分账比例',
  355. prop: 'selfWorkerAmount',
  356. rules: [...required]
  357. },
  358. render: (h, { props, onInput }) => {
  359. var { value } = props
  360. const that = this
  361. return (
  362. <div style="position: relative;">
  363. <div style="display: flex;justify-content: space-around;align-items: center;position: relative;">
  364. <el-input v-model={this.formData.selfWorkerAmount} onChange={(e)=>{
  365. this.formData.selfWorkerAmount = Number(this.formData.selfWorkerAmount).toFixed(2)
  366. if(e && (Number(e) < 0)){
  367. return this.$message.warning('师傅分账比例不能为0!');
  368. }
  369. if(e && (this.accAdd(Number(e),Number(that.formData.selfWebsitAmount)) >100)){
  370. this.formData.selfWorkerAmount = 0
  371. return this.$message.warning('商户与师傅分账比例和最大只能100%!');
  372. }else{
  373. that.formData.selfWebsitAmount = this.Subtr(100,e)
  374. }
  375. }} type="number" placeholder="请输入"></el-input><span style="margin-left: 10px;">%</span>
  376. </div>
  377. </div>
  378. )
  379. }
  380. }, {
  381. md: 12,
  382. isShow: this.formData.normType == 'M'?true:false,
  383. name: 'slot-component',
  384. attributes: { placeholder: '请输入', type: 'number' },
  385. formItemAttributes: {
  386. label: '外购配件师傅分账金额',
  387. prop: 'outWorkerAmount',
  388. rules: [...required]
  389. },
  390. render: (h, { props, onInput }) => {
  391. var { value } = props
  392. const that = this
  393. return (
  394. <div style="position: relative;">
  395. <div style="display: flex;justify-content: space-around;align-items: center;position: relative;">
  396. <el-input v-model={this.formData.outWorkerAmount} onChange={(e)=>{
  397. this.formData.outWorkerAmount = Number(this.formData.outWorkerAmount).toFixed(2)
  398. if(Number(e) > Number(that.formData.normAmount)){
  399. this.formData.outWorkerAmount = ''
  400. return this.$message.warning('外购配件师傅分账金额必须小于收费标准!');
  401. }
  402. this.formData.outWebsitAmount = this.Subtr(this.formData.normAmount,e)
  403. }} type="number" placeholder="请输入"></el-input><span style="margin-left: 10px;">元</span>
  404. </div>
  405. </div>
  406. )
  407. }
  408. }, {
  409. md: 12,
  410. isShow: this.formData.normType == 'M'?true:false,
  411. name: 'slot-component',
  412. attributes: { placeholder: '请输入', type: 'number' },
  413. formItemAttributes: {
  414. label: '自有库存商户分账金额',
  415. prop: 'selfWebsitAmount',
  416. rules: [...required]
  417. },
  418. render: (h, { props, onInput }) => {
  419. var { value } = props
  420. return (
  421. <div style="position: relative;">
  422. <div style="display: flex;justify-content: space-around;align-items: center;position: relative;">
  423. <el-input v-model={this.formData.selfWebsitAmount} disabled type="number" placeholder="请输入"></el-input><span style="margin-left: 10px;">元</span>
  424. </div>
  425. </div>
  426. )
  427. }
  428. }, {
  429. md: 12,
  430. isShow: this.formData.normType == 'M'?false:true,
  431. name: 'slot-component',
  432. attributes: { placeholder: '请输入', type: 'number' },
  433. formItemAttributes: {
  434. label: '商户分账比例',
  435. prop: 'selfWebsitAmount',
  436. rules: [...required]
  437. },
  438. render: (h, { props, onInput }) => {
  439. var { value } = props
  440. const that = this
  441. return (
  442. <div style="position: relative;">
  443. <div style="display: flex;justify-content: space-around;align-items: center;position: relative;">
  444. <el-input v-model={this.formData.selfWebsitAmount} onChange={(e)=>{
  445. this.formData.selfWebsitAmount = Number(this.formData.selfWebsitAmount).toFixed(2)
  446. if(e && (Number(e) < 0)){
  447. return this.$message.warning('商户分账比例不能为0!');
  448. }
  449. if(e && (this.accAdd(Number(e),Number(that.formData.selfWorkerAmount)) >100)){
  450. this.formData.selfWebsitAmount = 0
  451. return this.$message.warning('商户与师傅分账比例和最大只能100%!');
  452. }else{
  453. that.formData.selfWorkerAmount = this.Subtr(100,e)
  454. }
  455. }} type="number" placeholder="请输入"></el-input><span style="margin-left: 10px;">%</span>
  456. </div>
  457. </div>
  458. )
  459. }
  460. }, {
  461. md: 12,
  462. isShow: this.formData.normType == 'M'?true:false,
  463. name: 'slot-component',
  464. attributes: { placeholder: '请输入', type: 'number' },
  465. formItemAttributes: {
  466. label: '外购配件商户分账金额',
  467. prop: 'outWebsitAmount',
  468. rules: [...required]
  469. },
  470. render: (h, { props, onInput }) => {
  471. var { value } = props
  472. return (
  473. <div style="position: relative;">
  474. <div style="display: flex;justify-content: space-around;align-items: center;position: relative;">
  475. <el-input v-model={this.formData.outWebsitAmount} disabled type="number" placeholder="请输入"></el-input><span style="margin-left: 10px;">元</span>
  476. </div>
  477. </div>
  478. )
  479. }
  480. }, {
  481. md: 24,
  482. isShow: true,
  483. name: 'el-input',
  484. attributes: { placeholder: '请输入备注内容',type: "textarea", rows: 5 },
  485. formItemAttributes: {
  486. label: '备注',
  487. prop: 'remark',
  488. rules: []
  489. }
  490. }]
  491. }
  492. },
  493. methods: {
  494. // 列表请求函数
  495. getList(p,cb) {
  496. try {
  497. var pam = JSON.parse(JSON.stringify(p))
  498. if (this.examineStatus) {
  499. pam.params.push({ "param": "b.examine_status", "compare": "=", "value": this.examineStatus })
  500. }
  501. cb && cb(pam)
  502. return listPageV2(pam)
  503. } catch (error) {
  504. console.log(error)
  505. }
  506. },
  507. getTypeList(value,type){
  508. getTypeList({"pageNum":1,"pageSize":-1,"params":[{"param":"a.dict_type","compare":"=","value":`${value}`},{"param":"a.status","compare":"=","value": "ON"}]}).then(res => {
  509. this[type] = res.data.records
  510. })
  511. },
  512. getCategoryList(){
  513. getCategoryList({"type":2}).then(res => {
  514. this.categoryList = res.data
  515. })
  516. },
  517. // 列表导出函数
  518. exportList: pageExport,
  519. // 表格列解析渲染数据更改
  520. columnParsing(item, defaultData) {
  521. if (item.jname === 'idCardImg') {
  522.   defaultData.render = (h, { row, index, column }) => {
  523.     return (
  524.       <div style="padding:0 6px;cursor: pointer;">
  525.         {row.idCardImg ? row.idCardImg.split(",").map(url => <el-image src={url} preview-src-list={[url]} fit="fit" style="width:80px;height:80px;" />) : null}
  526.       </div>
  527.     )
  528.   }
  529. }
  530. if(item.jname === 'selfWorkerAmount'){
  531. defaultData.render = (h, { row, index, column }) => {
  532.   return (
  533.    <div>{row.normType == 'M'?row.selfWorkerAmount:(row.selfWorkerAmount + '%')}</div>
  534.   )
  535. }
  536. }
  537. if(item.jname === 'selfWebsitAmount'){
  538. defaultData.render = (h, { row, index, column }) => {
  539.   return (
  540.    <div>{row.normType == 'M'?row.selfWebsitAmount: (row.selfWebsitAmount + '%')}</div>
  541.   )
  542. }
  543. }
  544. return defaultData
  545. },
  546. // 监听勾选变化
  547. selectionChange(data) {
  548. this.recordSelected = data
  549. },
  550. // 表格操作列
  551. operation(h, { row, index, column }) {
  552. return (
  553. <div class='operation-btns'>
  554. <el-button type="text" onClick={() => {
  555. getDetail({ id: row.goodsId }).then(res => {
  556. Object.assign(this.formData, res.data, {
  557. brandList: res.data.brandList?res.data.brandList:[],
  558. categoryList: res.data.categoryList?res.data.categoryList:[],
  559. })
  560. console.log(this.formData)
  561. this.formDialogType = 1
  562. this.openForm()
  563. })
  564. }}>编辑</el-button>
  565. </div>
  566. )
  567. },
  568. addData() {
  569. this.formDialogType = 0
  570. this.openForm()
  571. console.log(this.partsUnitList,this.brandList,this.categoryList)
  572. },
  573. openForm() {
  574. this.getTypeList('PARTS_UNIT','partsUnitList')
  575. this.getTypeList('BRAND','brandList')
  576. this.getCategoryList()
  577. this.formDialog = true;
  578. },
  579. formCancel() {
  580. this.$refs.formRef.$refs.inlineForm.clearValidate()
  581. this.$data.formData = this.$options.data().formData
  582. this.formDialog = false
  583. },
  584. updateStatus(stateEnum){
  585. if(this.recordSelected.length == 0){
  586. return this.$message.warning('请至少勾选一条数据!');
  587. }
  588. console.log(this.recordSelected)
  589. this.$confirm(`请确认是否${stateEnum=='OFF'?'下架':'上架'}该配件, 是否继续?`, '提示', {
  590. confirmButtonText: '确定',
  591. cancelButtonText: '取消',
  592. type: 'warning'
  593. }).then(() => {
  594. updateStatus({
  595. stateEnum,
  596. ids: this.recordSelected.map(item=>{return item.goodsId}).join(',')
  597. }).then(res => {
  598. if (res.code == 200) {
  599. this.$message({ type: 'success', message: `${stateEnum=='ON'?'上架':'下架'}成功!` })
  600. this.$refs.pageRef.refreshList()
  601. } else {
  602. this.$message.error(res.msg);
  603. }
  604. })
  605. });
  606. },
  607. formConfirm() {
  608. this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
  609. if (valid) {
  610. ([add, edit][this.formDialogType])(this.formData).then(res => {
  611. this.$message({ type: 'success', message: `${this.formDialogTitles[this.formDialogType]}成功!` })
  612. this.formCancel()
  613. this.$refs.pageRef.refreshList()
  614. })
  615. }
  616. })
  617. },
  618. // 下载导入模版
  619. handleDownload() {
  620. // downloadFiles('charging/standard/download');
  621. },
  622. }
  623. }
  624. </script>
  625. <style lang="scss" scoped>
  626. .tab{
  627. padding: 20px 20px 0 20px;
  628. }
  629. </style>