<template>
  <el-form :model="form" ref="formRef" label-width="auto">
    <el-form-item label="售后申请自动通过">
      <el-radio-group v-model="form.autoAudiAfterSale">
        <el-radio :label="0"> 是 </el-radio>
        <el-radio :label="1"> 否 </el-radio>
      </el-radio-group>
    </el-form-item>
    <el-form-item label="发货自动发起采购">
      <el-radio-group v-model="form.autoSend">
        <el-radio :label="0"> 是 </el-radio>
        <el-radio :label="1"> 否 </el-radio>
      </el-radio-group>
    </el-form-item>
    <el-form-item label="回款申请自动通过">
      <el-radio-group v-model="form.autoAuditReturn">
        <el-radio :label="0"> 是 </el-radio>
        <el-radio :label="1"> 否 </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="GeneralClue">
const message = useMessage()

const form = ref({
  autoAudiAfterSale: 0,
  autoSend: 0,
  autoAuditReturn: 0
})

function getData() {
  form.value = {
    autoAudiAfterSale: 0,
    autoSend: 0,
    autoAuditReturn: 0
  }
}

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

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