page_css_table

20240205
luoJunYong.123 3 years ago
parent aae1da39d9
commit 70191087bf
  1. 7
      src/assets/css/tablebg.scss
  2. 25
      src/assets/js/myConfig.js
  3. 14
      src/assets/js/tableRowClassName.js
  4. 56
      src/pages/manage/list/ImportantCash/controlCash/cashOut.vue
  5. 22
      src/pages/manage/list/ImportantCash/controlCash/cashPaid.vue
  6. 23
      src/pages/manage/list/ImportantCash/controlCash/cashRecipients.vue
  7. 54
      src/pages/manage/list/ImportantCash/controlCash/cashTransferInto.vue
  8. 22
      src/pages/manage/list/ImportantCash/controlCash2/cashOut.vue
  9. 30
      src/pages/manage/list/ImportantCash/controlCash2/cashPaid.vue
  10. 30
      src/pages/manage/list/ImportantCash/controlCash2/cashRecipients.vue
  11. 37
      src/pages/manage/list/ImportantCash/controlCash2/cashTransferInto.vue
  12. 19
      src/pages/manage/list/ImportantCash/controlCash3/index.vue
  13. 6
      src/pages/manage/list/acceptanceDraft/invoice.vue
  14. 18
      src/pages/manage/list/dayEnd/branchDayEnd.vue
  15. 31
      src/pages/manage/list/dayEnd/tellerCash.vue
  16. 16
      src/pages/manage/list/dayEnd/tellerCertificate.vue
  17. 5
      src/pages/manage/list/personal/currentAccount/transferAccounts.vue
  18. 5
      src/pages/manage/list/personal/currentAccount/withdrawal.vue
  19. 3
      src/pages/manage/list/personal/timeDeposit/openAccount.vue
  20. 3
      src/pages/manage/list/personal/usefulPhrases/openAccount.vue
  21. 3
      src/pages/manage/list/servicesAccount/passwordChange.vue
  22. 3
      src/pages/manage/list/servicesAccount/passwordLost.vue
  23. 3
      src/pages/manage/list/servicesAccount/relieveLost.vue
  24. 12
      src/store/modules/system.js

@ -0,0 +1,7 @@
/deep/.el-table .warning-row {
background: rgb(253, 255, 255)!important;
}
/deep/.el-table .success-row {
background: rgb(250, 251, 255)!important;
}

@ -0,0 +1,25 @@
const headerCellStyle = {
'background-color': 'rgb(235, 239, 255)',
'color': 'black',
'font-weight': '700'
}
const tableRowClassName = function({row, rowIndex}) {
if (rowIndex % 2 === 1) {
return 'warning-row';
} else if (rowIndex % 2 === 0) {
return 'success-row';
}
return '';
}
const cellStyle = {
padding: 0
}
export {
headerCellStyle,
tableRowClassName,
cellStyle
}

@ -0,0 +1,14 @@
const tableRowClassName = function({row, rowIndex}) {
if (rowIndex % 2 === 1) {
return 'warning-row';
} else if (rowIndex % 2 === 0) {
return 'success-row';
}
return '';
}
export {
tableRowClassName
}
export default tableRowClassName

@ -1,6 +1,6 @@
// //
<template> <template>
<div> <div class="body">
<el-form ref="form" :model="form" label-width="120px"> <el-form ref="form" :model="form" label-width="120px">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="8"> <el-col :span="8">
@ -21,9 +21,11 @@
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-table <el-table
:cell-style="cellStyle"
ref="filterTable" ref="filterTable"
:row-class-name="tableRowClassName"
:data="tableData" :data="tableData"
height="420" :header-cell-style="headerCellStyle"
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
prop="moneyType" prop="moneyType"
@ -41,9 +43,11 @@
label="数量" label="数量"
align="center" align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope" class="myFlex">
<div class="myFlex">
<el-input type='text' @input="val => inputListen(val, scope.row)" min="0" :value="scope.row.moneyNumber"></el-input> <el-input type='text' @input="val => inputListen(val, scope.row)" min="0" :value="scope.row.moneyNumber"></el-input>
<span></span> <span></span>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -51,17 +55,21 @@
align="center" align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="myFlex">
<el-input type='text' disabled :value="getSum(scope.row.moneyType, scope.row.moneyNumber)"></el-input> <el-input type='text' disabled :value="getSum(scope.row.moneyType, scope.row.moneyNumber)"></el-input>
<span></span> <span></span>
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-table <el-table
ref="filterTable" :cell-style="cellStyle"
:row-class-name="tableRowClassName"
ref="filterTable2"
:data="tableData2" :data="tableData2"
height="420" :header-cell-style="headerCellStyle"
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
prop="moneyType" prop="moneyType"
@ -80,8 +88,10 @@
align="center" align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="myFlex">
<el-input type='text' @input="val => inputListen(val, scope.row)" min="0" :value="scope.row.moneyNumber"></el-input> <el-input type='text' @input="val => inputListen(val, scope.row)" min="0" :value="scope.row.moneyNumber"></el-input>
<span></span> <span></span>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -89,8 +99,10 @@
align="center" align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="myFlex">
<el-input type='text' disabled :value="getSum(scope.row.moneyType, scope.row.moneyNumber)"></el-input> <el-input type='text' disabled :value="getSum(scope.row.moneyType, scope.row.moneyNumber)"></el-input>
<span></span> <span></span>
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -102,11 +114,14 @@
</template> </template>
<script> <script>
import { tableRowClassName, headerCellStyle, cellStyle } from '@/assets/js/myConfig'
export default { export default {
name: 'index', name: 'index',
components:{}, components:{},
data() { data() {
return { return {
headerCellStyle: headerCellStyle,
cellStyle: cellStyle,
text:'柜员现金轧账',/* 顶部文字 */ text:'柜员现金轧账',/* 顶部文字 */
form:{ form:{
identification: 'CYN人民币', identification: 'CYN人民币',
@ -190,12 +205,17 @@ export default {
}, },
submitClick() { submitClick() {
console.log('点击提交') console.log('点击提交')
} },
tableRowClassName: tableRowClassName
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/assets/css/tablebg.scss';
.body {
overflow: auto;
}
.wrap{ .wrap{
width: 100%; width: 100%;
// padding: 24px 0 24px 24px; // padding: 24px 0 24px 24px;
@ -208,4 +228,28 @@ export default {
/deep/ .blueText{ /deep/ .blueText{
color: blue; color: blue;
} }
.submitBtn{
position: relative;
width: 300px;
font-size: 18px;
height: 68px;
margin-top: 50px;
border-radius: 10px;
bottom: 10px;
left: 50%;
transform: translate(-50%,-20%);
}
/deep/ .myFlex {
height: 100%;
font-size: 18px;
line-height: 88.9px;
display: flex;
}
/deep/.el-table .warning-row {
background: oldlace;
}
/deep/.el-table .success-row {
background: #f0f9eb;
}
</style> </style>

@ -1,11 +1,12 @@
// //
<template> <template>
<div> <div class="body">
<el-table <el-table
ref="filterTable" ref="filterTable"
:data="tableData" :data="tableData"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
height="450" height="450"
:header-cell-style="headerCellStyle"
style="width: 95%"> style="width: 95%">
<el-table-column <el-table-column
prop="t1" prop="t1"
@ -51,8 +52,8 @@
width="150" width="150"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="sure(scope.row)" size="small">确认</el-button> <el-button @click="sure(scope.row)" type="text" size="small">确认</el-button>
<el-button @click="back(scope.row)" size="small">退回</el-button> <el-button @click="back(scope.row)" type="text" size="small">退回</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -61,11 +62,13 @@
</template> </template>
<script> <script>
import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig'
export default { export default {
name: 'index', name: 'index',
components:{}, components:{},
data() { data() {
return { return {
headerCellStyle: headerCellStyle,
text:'柜员现金轧账',/* 顶部文字 */ text:'柜员现金轧账',/* 顶部文字 */
form:{ form:{
date: '', date: '',
@ -130,14 +133,7 @@ export default {
}, },
methods: { methods: {
tableRowClassName({row, rowIndex}) { tableRowClassName: tableRowClassName,
if (rowIndex === 1) {
return 'warning-row';
} else if (rowIndex === 3) {
return 'success-row';
}
return '';
},
sure(row) { sure(row) {
console.log(row) console.log(row)
}, },
@ -149,6 +145,10 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/assets/css/tablebg.scss';
.body {
overflow: auto;
}
.wrap{ .wrap{
width: 100%; width: 100%;
// padding: 24px 0 24px 24px; // padding: 24px 0 24px 24px;

@ -1,10 +1,10 @@
//
<template> <template>
<div> <div class="body">
<el-table <el-table
ref="filterTable" ref="filterTable"
:data="tableData" :data="tableData"
height="450" height="450"
:header-cell-style="headerCellStyle"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
style="width: 95%"> style="width: 95%">
<el-table-column <el-table-column
@ -53,8 +53,8 @@
width="150" width="150"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="sure(scope.row)" size="small">确认</el-button> <el-button @click="sure(scope.row)" size="small" type="text">确认</el-button>
<el-button @click="back(scope.row)" size="small">退回</el-button> <el-button @click="back(scope.row)" size="small" type="text">退回</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -63,11 +63,13 @@
</template> </template>
<script> <script>
import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig'
export default { export default {
name: 'index', name: 'index',
components:{}, components:{},
data() { data() {
return { return {
headerCellStyle: headerCellStyle,
text:'柜员现金轧账',/* 顶部文字 */ text:'柜员现金轧账',/* 顶部文字 */
form:{ form:{
date: '', date: '',
@ -138,19 +140,16 @@ export default {
back(row) { back(row) {
console.log(row) console.log(row)
}, },
tableRowClassName({row, rowIndex}) { tableRowClassName: tableRowClassName
if (rowIndex === 1) {
return 'warning-row';
} else if (rowIndex === 3) {
return 'success-row';
}
return '';
}
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/assets/css/tablebg.scss';
.body {
overflow: auto;
}
.wrap{ .wrap{
width: 100%; width: 100%;
// padding: 24px 0 24px 24px; // padding: 24px 0 24px 24px;

@ -1,6 +1,5 @@
//
<template> <template>
<div> <div class="body">
<el-form ref="form" :model="form" label-width="120px"> <el-form ref="form" :model="form" label-width="120px">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="8"> <el-col :span="8">
@ -21,9 +20,11 @@
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-table <el-table
:cell-style="cellStyle"
ref="filterTable" ref="filterTable"
:row-class-name="tableRowClassName"
:header-cell-style="headerCellStyle"
:data="tableData" :data="tableData"
height="420"
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
prop="moneyType" prop="moneyType"
@ -42,8 +43,10 @@
align="center" align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="myFlex">
<el-input type='text' @input="val => inputListen(val, scope.row)" min="0" :value="scope.row.moneyNumber"></el-input> <el-input type='text' @input="val => inputListen(val, scope.row)" min="0" :value="scope.row.moneyNumber"></el-input>
<span></span> <span></span>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -51,17 +54,22 @@
align="center" align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="myFlex">
<el-input type='text' disabled :value="getSum(scope.row.moneyType, scope.row.moneyNumber)"></el-input> <el-input type='text' disabled :value="getSum(scope.row.moneyType, scope.row.moneyNumber)"></el-input>
<span></span> <span></span>
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-table <el-table
:cell-style="cellStyle"
ref="filterTable" ref="filterTable"
:data="tableData2" :data="tableData2"
height="420" :row-class-name="tableRowClassName"
:header-cell-style="headerCellStyle"
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
prop="moneyType" prop="moneyType"
@ -80,8 +88,10 @@
align="center" align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="myFlex">
<el-input type='text' @input="val => inputListen(val, scope.row)" min="0" :value="scope.row.moneyNumber"></el-input> <el-input type='text' @input="val => inputListen(val, scope.row)" min="0" :value="scope.row.moneyNumber"></el-input>
<span></span> <span></span>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -89,8 +99,10 @@
align="center" align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="myFlex">
<el-input type='text' disabled :value="getSum(scope.row.moneyType, scope.row.moneyNumber)"></el-input> <el-input type='text' disabled :value="getSum(scope.row.moneyType, scope.row.moneyNumber)"></el-input>
<span></span> <span></span>
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -102,11 +114,14 @@
</template> </template>
<script> <script>
import { tableRowClassName, headerCellStyle, cellStyle } from '@/assets/js/myConfig'
export default { export default {
name: 'index', name: 'index',
components:{}, components:{},
data() { data() {
return { return {
headerCellStyle: headerCellStyle,
cellStyle: cellStyle,
text:'柜员现金轧账',/* 顶部文字 */ text:'柜员现金轧账',/* 顶部文字 */
form:{ form:{
identification: 'CYN人民币', identification: 'CYN人民币',
@ -190,12 +205,17 @@ export default {
}, },
submitClick() { submitClick() {
console.log('点击提交') console.log('点击提交')
} },
tableRowClassName: tableRowClassName
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/assets/css/tablebg.scss';
.body {
overflow: auto;
}
.wrap{ .wrap{
width: 100%; width: 100%;
// padding: 24px 0 24px 24px; // padding: 24px 0 24px 24px;
@ -208,4 +228,28 @@ export default {
/deep/ .blueText{ /deep/ .blueText{
color: blue; color: blue;
} }
.submitBtn{
position: relative;
width: 300px;
font-size: 18px;
height: 68px;
margin-top: 50px;
border-radius: 10px;
bottom: 10px;
left: 50%;
transform: translate(-50%,-20%);
}
/deep/ .myFlex {
height: 100%;
font-size: 18px;
line-height: 88.9px;
display: flex;
}
/deep/.el-table .warning-row {
background: oldlace;
}
/deep/.el-table .success-row {
background: #f0f9eb;
}
</style> </style>

@ -1,11 +1,12 @@
// //
<template> <template>
<div> <div class="body">
<el-table <el-table
ref="filterTable" ref="filterTable"
:data="tableData" :data="tableData"
height="450" height="450"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
:header-cell-style="headerCellStyle"
style="width: 95%"> style="width: 95%">
<el-table-column <el-table-column
prop="t1" prop="t1"
@ -56,8 +57,8 @@
width="180" width="180"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="sure(scope.row)" size="small">确认</el-button> <el-button @click="sure(scope.row)" size="small" type='text'>确认</el-button>
<el-button @click="back(scope.row)" size="small">退回</el-button> <el-button @click="back(scope.row)" size="small" type='text'>退回</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -66,11 +67,13 @@
</template> </template>
<script> <script>
import { headerCellStyle, tableRowClassName } from '@/assets/js/myConfig.js'
export default { export default {
name: 'index', name: 'index',
components:{}, components:{},
data() { data() {
return { return {
headerCellStyle: headerCellStyle,
text:'柜员现金轧账',/* 顶部文字 */ text:'柜员现金轧账',/* 顶部文字 */
form:{ form:{
date: '', date: '',
@ -146,19 +149,16 @@ export default {
back(row) { back(row) {
console.log(row) console.log(row)
}, },
tableRowClassName({row, rowIndex}) { tableRowClassName: tableRowClassName
if (rowIndex === 1) {
return 'warning-row';
} else if (rowIndex === 3) {
return 'success-row';
}
return '';
}
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/assets/css/tablebg.scss';
.body {
overflow: auto;
}
.wrap{ .wrap{
width: 100%; width: 100%;
// padding: 24px 0 24px 24px; // padding: 24px 0 24px 24px;

@ -1,10 +1,10 @@
//
<template> <template>
<div> <div class="body">
<el-table <el-table
ref="filterTable" ref="filterTable"
:data="tableData" :data="tableData"
height="450" height="450"
:header-cell-style="headerCellStyle"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
style="width: 95%"> style="width: 95%">
<el-table-column <el-table-column
@ -63,8 +63,8 @@
width="180" width="180"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="sure(scope.row)" size="small">确认</el-button> <el-button @click="sure(scope.row)" size="small" type='text'>确认</el-button>
<el-button @click="back(scope.row)" size="small">退回</el-button> <el-button @click="back(scope.row)" size="small" type='text'>退回</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -73,11 +73,13 @@
</template> </template>
<script> <script>
import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig'
export default { export default {
name: 'index', name: 'index',
components:{}, components:{},
data() { data() {
return { return {
headerCellStyle: headerCellStyle,
text:'柜员现金轧账',/* 顶部文字 */ text:'柜员现金轧账',/* 顶部文字 */
form:{ form:{
date: '', date: '',
@ -153,19 +155,16 @@ export default {
back(row) { back(row) {
console.log(row) console.log(row)
}, },
tableRowClassName({row, rowIndex}) { tableRowClassName: tableRowClassName
if (rowIndex === 1) {
return 'warning-row';
} else if (rowIndex === 3) {
return 'success-row';
}
return '';
}
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/assets/css/tablebg.scss';
.body {
overflow: auto;
}
.wrap{ .wrap{
width: 100%; width: 100%;
// padding: 24px 0 24px 24px; // padding: 24px 0 24px 24px;
@ -182,11 +181,4 @@ export default {
/deep/ .blueText{ /deep/ .blueText{
color: blue; color: blue;
} }
/deep/.el-table .warning-row {
background: oldlace;
}
/deep/.el-table .success-row {
background: #f0f9eb;
}
</style> </style>

@ -1,10 +1,11 @@
// //
<template> <template>
<div> <div class="body">
<el-table <el-table
ref="filterTable" ref="filterTable"
:data="tableData" :data="tableData"
height="450" height="450"
:header-cell-style="headerCellStyle"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
style="width: 95%"> style="width: 95%">
<el-table-column <el-table-column
@ -22,7 +23,6 @@
<el-table-column <el-table-column
prop="t3" prop="t3"
label="下发柜员号" label="下发柜员号"
class-name="blueText"
class="blueText" class="blueText"
align="center" align="center"
> >
@ -57,8 +57,8 @@
width="180" width="180"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="sure(scope.row)" size="small">确认</el-button> <el-button @click="sure(scope.row)" size="small" type='text'>确认</el-button>
<el-button @click="back(scope.row)" size="small">退回</el-button> <el-button @click="back(scope.row)" size="small" type='text'>退回</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -67,11 +67,13 @@
</template> </template>
<script> <script>
import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig'
export default { export default {
name: 'index', name: 'index',
components:{}, components:{},
data() { data() {
return { return {
headerCellStyle: headerCellStyle,
text:'柜员现金轧账',/* 顶部文字 */ text:'柜员现金轧账',/* 顶部文字 */
form:{ form:{
date: '', date: '',
@ -147,19 +149,16 @@ export default {
back(row) { back(row) {
console.log(row) console.log(row)
}, },
tableRowClassName({row, rowIndex}) { tableRowClassName: tableRowClassName
if (rowIndex === 1) {
return 'warning-row';
} else if (rowIndex === 3) {
return 'success-row';
}
return '';
}
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/assets/css/tablebg.scss';
.body {
overflow: auto;
}
.wrap{ .wrap{
width: 100%; width: 100%;
// padding: 24px 0 24px 24px; // padding: 24px 0 24px 24px;
@ -176,11 +175,4 @@ export default {
/deep/ .blueText{ /deep/ .blueText{
color: blue; color: blue;
} }
/deep/.el-table .warning-row {
background: oldlace;
}
/deep/.el-table .success-row {
background: #f0f9eb;
}
</style> </style>

@ -1,11 +1,11 @@
//
<template> <template>
<div> <div class="body">
<el-table <el-table
ref="filterTable" ref="filterTable"
:data="tableData" :data="tableData"
height="450" height="450"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
:header-cell-style="headerCellStyle"
style="width: 95%"> style="width: 95%">
<el-table-column <el-table-column
prop="t1" prop="t1"
@ -22,7 +22,6 @@
<el-table-column <el-table-column
prop="t3" prop="t3"
label="下发柜员号" label="下发柜员号"
class-name="blueText"
class="blueText" class="blueText"
align="center" align="center"
> >
@ -57,8 +56,8 @@
width="180" width="180"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="sure(scope.row)" size="small">确认</el-button> <el-button @click="sure(scope.row)" size="small" type='text'>确认</el-button>
<el-button @click="back(scope.row)" size="small">退回</el-button> <el-button @click="back(scope.row)" size="small" type='text'>退回</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -67,11 +66,13 @@
</template> </template>
<script> <script>
import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig'
export default { export default {
name: 'index', name: 'index',
components:{}, components:{},
data() { data() {
return { return {
headerCellStyle: headerCellStyle,
text:'柜员现金轧账',/* 顶部文字 */ text:'柜员现金轧账',/* 顶部文字 */
form:{ form:{
date: '', date: '',
@ -147,19 +148,16 @@ export default {
back(row) { back(row) {
console.log(row) console.log(row)
}, },
tableRowClassName({row, rowIndex}) { tableRowClassName: tableRowClassName
if (rowIndex === 1) {
return 'warning-row';
} else if (rowIndex === 3) {
return 'success-row';
}
return '';
}
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/assets/css/tablebg.scss';
.body {
overflow: auto;
}
.wrap{ .wrap{
width: 100%; width: 100%;
// padding: 24px 0 24px 24px; // padding: 24px 0 24px 24px;
@ -176,11 +174,12 @@ export default {
/deep/ .blueText{ /deep/ .blueText{
color: blue; color: blue;
} }
/deep/.el-table .warning-row { // /deep/.el-table .warning-row {
background: oldlace; // // background: oldlace;
} // background: rgb(167, 186, 194);
// }
/deep/.el-table .success-row { // /deep/.el-table .success-row {
background: #f0f9eb; // background: rgb(242,242,242);
} // }
</style> </style>

@ -89,11 +89,22 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.submitBtn{
position: relative;
width: 300px;
font-size: 18px;
height: 68px;
margin-top: 50px;
border-radius: 10px;
bottom: 10px;
left: 50%;
transform: translate(-50%,-20%);
}
.wrap{ .wrap{
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: auto;
padding: 24px 0 24px 24px; padding: 24px 0 24px 24px;
.nav{ .nav{
/deep/ .el-menu.el-menu--horizontal{ /deep/ .el-menu.el-menu--horizontal{
@ -154,15 +165,15 @@ export default {
} }
} }
.submitBtn{ .submitBtn{
position: absolute; position: relative;
width: 300px; width: 300px;
font-size: 18px; font-size: 18px;
height: 68px; height: 68px;
margin-top: 50px; margin-top: 50px;
border-radius: 10px; border-radius: 10px;
bottom: 100px; bottom: 10px;
left: 50%; left: 50%;
transform: translate(-50%,-50%); transform: translate(-50%,-20%);
} }
} }

@ -181,13 +181,15 @@ export default {
margin-top: 50px; margin-top: 50px;
} }
.submitBtn{ .submitBtn{
position: relative;
width: 300px; width: 300px;
margin-top: 10vh;
font-size: 18px; font-size: 18px;
height: 68px; height: 68px;
margin-top: 50px;
border-radius: 10px; border-radius: 10px;
bottom: 10px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translate(-50%,-20%);
} }
} }
</style> </style>

@ -1,4 +1,3 @@
//
<template> <template>
<div class="wrap"> <div class="wrap">
<div class="title"> <div class="title">
@ -26,6 +25,7 @@
<script> <script>
import { mapState } from 'vuex' import { mapState } from 'vuex'
import { checkRequired } from '@/utils/utilFunction.js'
export default { export default {
name: 'index', name: 'index',
components:{}, components:{},
@ -43,7 +43,13 @@ export default {
}, },
methods: { methods: {
submitIt() { submitIt() {
console.log('test') const requiredField = {
username: '主管柜员号',
password: '登录密码'
}
if(checkRequired(this.form, requiredField)) {
console.log('检验成功')
}
} }
} }
}; };
@ -54,7 +60,7 @@ export default {
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: auto;
padding: 24px 0 24px 24px; padding: 24px 0 24px 24px;
.nav{ .nav{
/deep/ .el-menu.el-menu--horizontal{ /deep/ .el-menu.el-menu--horizontal{
@ -79,15 +85,15 @@ export default {
overflow: auto; overflow: auto;
} }
.submitBtn{ .submitBtn{
position: absolute; position: relative;
width: 300px; width: 300px;
font-size: 18px; font-size: 18px;
height: 68px; height: 68px;
margin-top: 50px; margin-top: 50px;
border-radius: 10px; border-radius: 10px;
bottom: 100px; bottom: 10px;
left: 50%; left: 50%;
transform: translate(-50%,-0%); transform: translate(-50%,-20%);
} }
.popBody{ .popBody{
min-height: 200px; min-height: 200px;

@ -1,4 +1,3 @@
//
<template> <template>
<div class="wrap"> <div class="wrap">
<div class="title"> <div class="title">
@ -24,9 +23,11 @@
</el-col> --> </el-col> -->
<el-table <el-table
max-height="350"
ref="filterTable" ref="filterTable"
:data="tableData" :data="tableData"
height="350" :header-cell-style="headerCellStyle"
:row-class-name="tableRowClassName"
style="width: 95%"> style="width: 95%">
<el-table-column <el-table-column
prop="currency" prop="currency"
@ -61,11 +62,13 @@
</template> </template>
<script> <script>
import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig'
export default { export default {
name: 'index', name: 'index',
components:{}, components:{},
data() { data() {
return { return {
headerCellStyle: headerCellStyle,
text:'柜员现金轧账',/* 顶部文字 */ text:'柜员现金轧账',/* 顶部文字 */
form:{ form:{
date: '', date: '',
@ -77,6 +80,16 @@ export default {
moneySum: 30000000000, moneySum: 30000000000,
cashSum: 30000000000 cashSum: 30000000000
}, },
{
currency: '人民币',
moneySum: 30000000000,
cashSum: 30000000000.123
},
{
currency: '人民币',
moneySum: 30000000000,
cashSum: 30000000000.123
},
{ {
currency: '人民币', currency: '人民币',
moneySum: 30000000000, moneySum: 30000000000,
@ -100,17 +113,21 @@ export default {
}, },
methods: { methods: {
tableRowClassName: tableRowClassName
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/assets/css/tablebg.scss';
.bggray {
background-color: gray;
}
.wrap{ .wrap{
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: auto;
padding: 24px 0 24px 24px; padding: 24px 0 24px 24px;
position: relative; position: relative;
@ -119,15 +136,15 @@ export default {
overflow: auto; overflow: auto;
} }
.submitBtn{ .submitBtn{
position: absolute;; position: relative;
width: 300px; width: 300px;
font-size: 18px; font-size: 18px;
height: 68px; height: 68px;
margin-top: 50px; margin-top: 50px;
border-radius: 10px; border-radius: 10px;
bottom: 100px; bottom: 10px;
left: 50%; left: 50%;
transform: translate(-50%,-0%); transform: translate(-50%,-20%);
} }
} }

@ -1,4 +1,3 @@
//
<template> <template>
<div class="wrap"> <div class="wrap">
<div class="title"> <div class="title">
@ -26,7 +25,8 @@
<el-table <el-table
ref="filterTable" ref="filterTable"
:data="tableData" :data="tableData"
height="350" max-height="350"
:header-cell-style="headerCellStyle"
style="width: 95%"> style="width: 95%">
<el-table-column <el-table-column
prop="certificateName" prop="certificateName"
@ -72,11 +72,13 @@
</template> </template>
<script> <script>
import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig'
export default { export default {
name: 'index', name: 'index',
components:{}, components:{},
data() { data() {
return { return {
headerCellStyle: headerCellStyle,
text:'柜员凭证轧账',/* 顶部文字 */ text:'柜员凭证轧账',/* 顶部文字 */
form:{ form:{
date: '', date: '',
@ -100,12 +102,14 @@ export default {
methods: { methods: {
inputListen(val, row) { inputListen(val, row) {
row.cashBoxNum = Number(val.replace(/\D+/, '')) row.cashBoxNum = Number(val.replace(/\D+/, ''))
} },
tableRowClassName: tableRowClassName
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/assets/css/tablebg.scss';
.wrap{ .wrap{
width: 100%; width: 100%;
display: flex; display: flex;
@ -165,15 +169,15 @@ export default {
} }
} }
.submitBtn{ .submitBtn{
position: absolute;; position: relative;
width: 300px; width: 300px;
font-size: 18px; font-size: 18px;
height: 68px; height: 68px;
margin-top: 50px; margin-top: 50px;
border-radius: 10px; border-radius: 10px;
bottom: 100px; bottom: 10px;
left: 50%; left: 50%;
transform: translate(-50%,-0%); transform: translate(-50%,-20%);
} }
.popBody{ .popBody{
min-height: 200px; min-height: 200px;

@ -123,14 +123,15 @@ export default{
cursor: pointer; cursor: pointer;
} }
.submitBtn{ .submitBtn{
position: absolute; position: relative;
width: 300px; width: 300px;
font-size: 18px; font-size: 18px;
height: 68px; height: 68px;
margin-top: 50px;
border-radius: 10px; border-radius: 10px;
bottom: 10px; bottom: 10px;
left: 50%; left: 50%;
transform: translate(-50%,-20%); transform: translate(-50%,-50%);
} }
} }
</style> </style>

@ -128,14 +128,15 @@ export default{
cursor: pointer; cursor: pointer;
} }
.submitBtn{ .submitBtn{
position: absolute; position: relative;
width: 300px; width: 300px;
font-size: 18px; font-size: 18px;
height: 68px; height: 68px;
margin-top: 50px;
border-radius: 10px; border-radius: 10px;
bottom: 10px; bottom: 10px;
left: 50%; left: 50%;
transform: translate(-50%,-20%); transform: translate(-50%,-50%);
} }
} }
</style> </style>

@ -123,10 +123,11 @@ export default{
cursor: pointer; cursor: pointer;
} }
.submitBtn{ .submitBtn{
position: absolute; position: relative;
width: 300px; width: 300px;
font-size: 18px; font-size: 18px;
height: 68px; height: 68px;
margin-top: 50px;
border-radius: 10px; border-radius: 10px;
bottom: 10px; bottom: 10px;
left: 50%; left: 50%;

@ -140,10 +140,11 @@ export default{
cursor: pointer; cursor: pointer;
} }
.submitBtn{ .submitBtn{
position: absolute; position: relative;
width: 300px; width: 300px;
font-size: 18px; font-size: 18px;
height: 68px; height: 68px;
margin-top: 50px;
border-radius: 10px; border-radius: 10px;
bottom: 10px; bottom: 10px;
left: 50%; left: 50%;

@ -136,10 +136,11 @@ export default{
cursor: pointer; cursor: pointer;
} }
.submitBtn{ .submitBtn{
position: absolute; position: relative;
width: 300px; width: 300px;
font-size: 18px; font-size: 18px;
height: 68px; height: 68px;
margin-top: 50px;
border-radius: 10px; border-radius: 10px;
bottom: 10px; bottom: 10px;
left: 50%; left: 50%;

@ -125,10 +125,11 @@ export default{
cursor: pointer; cursor: pointer;
} }
.submitBtn{ .submitBtn{
position: absolute; position: relative;
width: 300px; width: 300px;
font-size: 18px; font-size: 18px;
height: 68px; height: 68px;
margin-top: 50px;
border-radius: 10px; border-radius: 10px;
bottom: 10px; bottom: 10px;
left: 50%; left: 50%;

@ -130,10 +130,11 @@ export default{
cursor: pointer; cursor: pointer;
} }
.submitBtn{ .submitBtn{
position: absolute; position: relative;
width: 300px; width: 300px;
font-size: 18px; font-size: 18px;
height: 68px; height: 68px;
margin-top: 50px;
border-radius: 10px; border-radius: 10px;
bottom: 10px; bottom: 10px;
left: 50%; left: 50%;

@ -5,6 +5,7 @@ export default {
showPop: false,// 弹框 showPop: false,// 弹框
popText:'钱箱', popText:'钱箱',
fullScreen:false,// 银行系统是否全屏 fullScreen:false,// 银行系统是否全屏
showGoods: false, // 物品栏的展开和关闭
goods:[// 物品栏的物品 goods:[// 物品栏的物品
{ {
name:'身份证', name:'身份证',
@ -50,6 +51,17 @@ export default {
}else if(typeof(obj.splice)===Number ){ }else if(typeof(obj.splice)===Number ){
state.goods.splice(obj.splice,1) state.goods.splice(obj.splice,1)
} }
},
// 模板PopUp
myPopUp(state, text){
state.showPop = true;
state.popText = text
state.id = Math.random().toFixed(2)
// EventBus.$emit("changeShowGoods", true);
},
// 物品栏的展开和关闭
changeShowGoods(state, judge) {
state.showGoods = judge
} }
}, },
actions: { actions: {

Loading…
Cancel
Save