32eb0d67 by 任超

登记收费信息

1 parent 6647b90d
1 import request from '@/utils/request'
2 import SERVER from './config'
3
4 class djfDjSf {
5 // 登记收费信息
6 async getDjfDjSfById (bsmSjsb) {
7 return request({
8 url: SERVER.SERVERAPI + '/rest/reg/DjfDjSf/detail',
9 method: 'get',
10 params: {
11 bsmSjsb: bsmSjsb
12 }
13 })
14 }
15 // 登记收费信息-修改
16 async updateDjfDjSf (data) {
17 return request({
18 url: SERVER.SERVERAPI + '/rest/reg/DjfDjSf/edit',
19 method: 'post',
20 data
21 })
22 }
23 }
24 export default new djfDjSf()
...\ No newline at end of file ...\ No newline at end of file
...@@ -76,7 +76,8 @@ ...@@ -76,7 +76,8 @@
76 收费基数: <br /> 76 收费基数: <br />
77 <p class="label-detail">(SFJS)</p> 77 <p class="label-detail">(SFJS)</p>
78 </span> 78 </span>
79 <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model.number="ruleForm.SFJS" type="number" 79 <el-input-number controls-position="right" :disabled="$store.state.business.Edit"
80 v-model.number="ruleForm.SFJS" type="number"
80 v-only-number="{ max: 999999999999999, min: 0, precision: 4 }" placeholder="收费基数"></el-input-number> 81 v-only-number="{ max: 999999999999999, min: 0, precision: 4 }" placeholder="收费基数"></el-input-number>
81 </el-form-item> 82 </el-form-item>
82 </el-col> 83 </el-col>
...@@ -100,7 +101,8 @@ ...@@ -100,7 +101,8 @@
100 应收金额: <br /> 101 应收金额: <br />
101 <p class="label-detail">(YSJE)</p> 102 <p class="label-detail">(YSJE)</p>
102 </span> 103 </span>
103 <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model.number="ruleForm.YSJE" type="number" 104 <el-input-number controls-position="right" :disabled="$store.state.business.Edit"
105 v-model.number="ruleForm.YSJE" type="number"
104 v-only-number="{ max: 999999999999999, min: 0, precision: 4 }" placeholder="应收金额"></el-input-number> 106 v-only-number="{ max: 999999999999999, min: 0, precision: 4 }" placeholder="应收金额"></el-input-number>
105 </el-form-item> 107 </el-form-item>
106 </el-col> 108 </el-col>
...@@ -113,7 +115,8 @@ ...@@ -113,7 +115,8 @@
113 折扣后应收金额: <br /> 115 折扣后应收金额: <br />
114 <p class="label-detail">(ZKHYSJE)</p> 116 <p class="label-detail">(ZKHYSJE)</p>
115 </span> 117 </span>
116 <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model.number="ruleForm.ZKHYSJE" type="number" 118 <el-input-number controls-position="right" :disabled="$store.state.business.Edit"
119 v-model.number="ruleForm.ZKHYSJE" type="number"
117 v-only-number="{ max: 999999999999999, min: 0, precision: 4 }" placeholder="折扣后应收金额"></el-input-number> 120 v-only-number="{ max: 999999999999999, min: 0, precision: 4 }" placeholder="折扣后应收金额"></el-input-number>
118 </el-form-item> 121 </el-form-item>
119 </el-col> 122 </el-col>
...@@ -170,7 +173,8 @@ ...@@ -170,7 +173,8 @@
170 实收金额: <br /> 173 实收金额: <br />
171 <p class="label-detail">(SSJE)</p> 174 <p class="label-detail">(SSJE)</p>
172 </span> 175 </span>
173 <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model.number="ruleForm.SSJE" type="number" 176 <el-input-number controls-position="right" :disabled="$store.state.business.Edit"
177 v-model.number="ruleForm.SSJE" type="number"
174 v-only-number="{ max: 999999999999999, min: 0, precision: 4 }" placeholder="实收金额"></el-input-number> 178 v-only-number="{ max: 999999999999999, min: 0, precision: 4 }" placeholder="实收金额"></el-input-number>
175 </el-form-item> 179 </el-form-item>
176 </el-col> 180 </el-col>
...@@ -204,7 +208,7 @@ ...@@ -204,7 +208,7 @@
204 </template> 208 </template>
205 <script> 209 <script>
206 // 登记收费信息 210 // 登记收费信息
207 import business from '@/api/business' 211 import djfDjSf from '@/api/djfDjSf'
208 import ruleMixin from '@/mixins/ruleMixin.js' 212 import ruleMixin from '@/mixins/ruleMixin.js'
209 export default { 213 export default {
210 mixins: [ruleMixin], 214 mixins: [ruleMixin],
...@@ -244,7 +248,7 @@ export default { ...@@ -244,7 +248,7 @@ export default {
244 methods: { 248 methods: {
245 async featchData () { 249 async featchData () {
246 try { 250 try {
247 let { result: res } = await business.getDjfDjSfById(this.bsmSjsb) 251 let { result: res } = await djfDjSf.getDjfDjSfById(this.bsmSjsb)
248 this.ruleForm = res 252 this.ruleForm = res
249 //this.featchRule() 253 //this.featchRule()
250 } catch (error) { 254 } catch (error) {
...@@ -254,7 +258,7 @@ export default { ...@@ -254,7 +258,7 @@ export default {
254 handleUpdateForm () { 258 handleUpdateForm () {
255 return new Promise(async (resolve) => { 259 return new Promise(async (resolve) => {
256 try { 260 try {
257 let res = await business.updateDjfDjSf(this.ruleForm) 261 let res = await djfDjSf.updateDjfDjSf(this.ruleForm)
258 // this.$refs['formList'].resetFields(); 262 // this.$refs['formList'].resetFields();
259 resolve(res.code) 263 resolve(res.code)
260 } catch (error) { 264 } catch (error) {
......