1.1补充
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Cash from '@/api/Cash'
|
||||
import Finance from '@/api/Finance'
|
||||
export default {
|
||||
props: {
|
||||
dialogData: {
|
||||
@@ -65,13 +65,19 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async getDetail(id) {
|
||||
const res = await Cash.getDetail( id )
|
||||
const res = await Finance.getDetail( id )
|
||||
const resData = res.data
|
||||
if (resData.code === 0) {
|
||||
const d = resData.data
|
||||
this.info = d
|
||||
this.dataList.map(item => {
|
||||
item.value = d[item.field]
|
||||
if (item.field === 'cardholderName') {
|
||||
item.value = `${item.value.slice(0, 1)}**`
|
||||
}
|
||||
if (item.field === 'cardNumber') {
|
||||
item.value = `${item.value.slice(0, 4)}****************`
|
||||
}
|
||||
})
|
||||
Object.keys(this.params).map(item => {
|
||||
this.params[item] = d[item]
|
||||
@@ -82,7 +88,7 @@ export default {
|
||||
return v ? (v / 100).toFixed(2) : 0
|
||||
},
|
||||
confirm() {
|
||||
Cash.audiCash(this.params).then(() => {
|
||||
Finance.audiCash(this.params).then(() => {
|
||||
this.$message({
|
||||
message: '处理成功',
|
||||
type: 'success'
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
|
||||
<script>
|
||||
import Pagination from '@/components/Pagination'
|
||||
import Cash from '@/api/Cash'
|
||||
import Finance from '@/api/Finance'
|
||||
import cashDetails from './details'
|
||||
export default {
|
||||
components: {
|
||||
@@ -151,7 +151,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async getCashList() {
|
||||
const res = await Cash.getCashList(this.formParams)
|
||||
const res = await Finance.getCashList(this.formParams)
|
||||
const resData = res.data
|
||||
if (resData.code === 0) {
|
||||
this.tableData = resData.data
|
||||
|
||||
Reference in New Issue
Block a user