<template>
  <el-form :model="form" ref="formRef" label-width="auto">
    <el-form-item label="采购申请自动通过">
      <el-radio-group v-model="form.autoAuditPurchase">
        <el-radio :label="true"> 是 </el-radio>
        <el-radio :label="false"> 否 </el-radio>
      </el-radio-group>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">保存</el-button>
      <el-button @click="getData">刷新</el-button>
    </el-form-item>
  </el-form>
</template>

<script setup name="BasicSettingMall">
const message = useMessage()

const form = ref({
  autoAuditPurchase: 0
})

function getData() {
  form.value = {
    autoAuditPurchase: 1
  }
}

function onSubmit() {
  message.success('保存成功')
}
</script>

<style lang="scss" scoped></style>
