xzsf.vue
2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<template>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px">
<el-row>
<el-col :span="8">
<el-form-item label="收费单位" prop="sfdw">
<el-input v-model="ruleForm.sfdw"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="是否额外收费" prop="sfewsf">
<el-radio-group v-model="ruleForm.sfewsf">
<el-radio :label="1">是</el-radio>
<el-radio :label="0">否</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="收费人员" prop="sfry">
<el-input v-model="ruleForm.sfry"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="实际付费人" prop="sjffr">
<el-input v-model="ruleForm.sjffr"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="实收金额" prop="ssje">
<el-input v-model="ruleForm.ssje"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="应收金额" prop="ysje">
<el-input v-model="ruleForm.ysje"></el-input>
</el-form-item>
</el-col>
</el-row>
<div style="text-align:center">
<el-button @click="$popupCacel">取消</el-button>
<el-button type="primary" @click="submitForm('ruleForm')">新增</el-button>
</div>
</el-form>
</template>
<script>
import store from '@/store'
import { saveSfmx } from "@/api/sfxx.js";
export default {
props: {
formData: {
type: Object,
default: () => {
return {}
}
}
},
data () {
return {
rules: {},
ruleForm: {
}
}
},
methods: {
submitForm () {
store.dispatch('user/reWorkFresh', false)
saveSfmx({ ...this.ruleForm, bsmBusiness: this.formData.bsmBusiness }).then(res => {
if (res.code == 200) {
this.$message.success('保存成功');
//刷新列表
this.$popupCacel()
store.dispatch("user/reWorkFresh", true);
}
})
}
}
}
</script>
<style scoped lang='scss'>
@import "~@/styles/public.scss";
</style>