@@ -77,13 +77,22 @@
@page-change="handlePageChange">
-
+
+
+
+
+ {{ item.name }}
+
+
+
-
+
+ {{ item.name }}
+
@@ -177,7 +186,8 @@
import {
FeeCustTemplatePage,
FeeCustTemplateSave,
- FeeCustTemplateDelete
+ FeeCustTemplateDelete,
+ GetFeeCustomerList
} from '@/api/modular/main/mailSetting'
import columnSetting from '@/components/tableColumnSetting'
export default {
@@ -192,11 +202,14 @@ export default {
visible: false,
loading: false,
selectedRowKeys: [],
+ title:'',
againVisible: false,
fileList: [],
setVisible: false,
setVisible1: false,
+ customerList: [],
addSettingFlag: false,
+ customerTypeList: [],
formLoad: false,
againLoad: false,
labelCol: { span: 4 },
@@ -216,13 +229,19 @@ export default {
{
title: '费用名称',
align: 'center',
- width: '200',
+ width: '150',
dataIndex: 'feeName'
},
{
- title: '标准',
+ title: '往来单位',
align: 'center',
width: '150',
+ dataIndex: 'customerName'
+ },
+ {
+ title: '标准',
+ align: 'center',
+ width: '100',
dataIndex: 'unit'
},
{
@@ -294,6 +313,7 @@ export default {
created() { },
mounted() {
this.FnGetData()
+ this.customerTypeList = this.$options.filters['dictData']('djy_cust_prop')
},
methods: {
toggleAdvanced() {
@@ -302,7 +322,13 @@ export default {
onSelectChange(selectedRowKeys) {
this.selectedRowKeys = selectedRowKeys;
},
+ handleChange(val) {
+ GetFeeCustomerList({ code: val }).then(res => {
+ this.customerList = res.data
+ })
+ },
handleEdit(row) {
+ this.title = '固定费用编辑'
if (row.isAdvancedPay) {
row.isAdvancedPay = 'true'
} else {
@@ -313,13 +339,18 @@ export default {
} else {
row.isInvoice = 'false'
}
- this.addForm = row
+ this.addForm = JSON.parse(JSON.stringify(row))
this.visible = true
},
handleSave() {
this.$refs.addForm.validate(valid => {
if (valid) {
this.formLoad = true
+ this.customerList.forEach(item => {
+ if (item.code === this.addForm.customerCode) {
+ this.addForm.customerName = item.name
+ }
+ })
FeeCustTemplateSave(this.addForm).then(res => {
if (res.success) {
this.$message.success('保存成功')
@@ -370,6 +401,7 @@ export default {
},
handleAdd() {
this.visible = true
+ this.title = '固定费用新增'
this.addForm = {
}
}