xzsf.vue 2.32 KB
<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 type="primary" @click="submitForm('ruleForm')">新增</el-button>
      <el-button @click="resetForm('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>