32eb0d67 by 任超

登记收费信息

1 parent 6647b90d
import request from '@/utils/request'
import SERVER from './config'
class djfDjSf {
// 登记收费信息
async getDjfDjSfById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/DjfDjSf/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 登记收费信息-修改
async updateDjfDjSf (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/DjfDjSf/edit',
method: 'post',
data
})
}
}
export default new djfDjSf()
\ No newline at end of file
......@@ -76,7 +76,8 @@
收费基数: <br />
<p class="label-detail">(SFJS)</p>
</span>
<el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model.number="ruleForm.SFJS" type="number"
<el-input-number controls-position="right" :disabled="$store.state.business.Edit"
v-model.number="ruleForm.SFJS" type="number"
v-only-number="{ max: 999999999999999, min: 0, precision: 4 }" placeholder="收费基数"></el-input-number>
</el-form-item>
</el-col>
......@@ -100,7 +101,8 @@
应收金额: <br />
<p class="label-detail">(YSJE)</p>
</span>
<el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model.number="ruleForm.YSJE" type="number"
<el-input-number controls-position="right" :disabled="$store.state.business.Edit"
v-model.number="ruleForm.YSJE" type="number"
v-only-number="{ max: 999999999999999, min: 0, precision: 4 }" placeholder="应收金额"></el-input-number>
</el-form-item>
</el-col>
......@@ -113,7 +115,8 @@
折扣后应收金额: <br />
<p class="label-detail">(ZKHYSJE)</p>
</span>
<el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model.number="ruleForm.ZKHYSJE" type="number"
<el-input-number controls-position="right" :disabled="$store.state.business.Edit"
v-model.number="ruleForm.ZKHYSJE" type="number"
v-only-number="{ max: 999999999999999, min: 0, precision: 4 }" placeholder="折扣后应收金额"></el-input-number>
</el-form-item>
</el-col>
......@@ -170,7 +173,8 @@
实收金额: <br />
<p class="label-detail">(SSJE)</p>
</span>
<el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model.number="ruleForm.SSJE" type="number"
<el-input-number controls-position="right" :disabled="$store.state.business.Edit"
v-model.number="ruleForm.SSJE" type="number"
v-only-number="{ max: 999999999999999, min: 0, precision: 4 }" placeholder="实收金额"></el-input-number>
</el-form-item>
</el-col>
......@@ -204,7 +208,7 @@
</template>
<script>
// 登记收费信息
import business from '@/api/business'
import djfDjSf from '@/api/djfDjSf'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -244,7 +248,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getDjfDjSfById(this.bsmSjsb)
let { result: res } = await djfDjSf.getDjfDjSfById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -254,7 +258,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateDjfDjSf(this.ruleForm)
let res = await djfDjSf.updateDjfDjSf(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......