determineModal.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <div class="dialog">
  3. <el-dialog
  4. :title="formData.JGMC"
  5. width="40%"
  6. :visible.sync="dialogVisible"
  7. :before-close="close"
  8. :modal-append-to-body="false"
  9. :close-on-click-modal="false"
  10. >
  11. <div class="content">
  12. <el-form :model="ruleForm" ref="ruleForm" label-width="100px">
  13. <el-form-item label="审核结论:" prop="shjl">
  14. <el-radio v-model="ruleForm.shjl" label="1"> 申请通过 </el-radio>
  15. <el-radio v-model="ruleForm.shjl" label="2"> 申请不通过 </el-radio>
  16. </el-form-item>
  17. <el-form-item label="使用截止日期:" prop="jzrq">
  18. <el-date-picker
  19. v-model="ruleForm.jzrq"
  20. type="date"
  21. value-format="yyyy-MM-dd"
  22. placeholder="选择日期"
  23. >
  24. </el-date-picker>
  25. (默认一年)
  26. </el-form-item>
  27. <el-form-item label="审核意见:" prop="xmmc">
  28. <el-input
  29. v-model="ruleForm.xmmc"
  30. :rows="5"
  31. type="textarea"
  32. placeholder="描述"
  33. ></el-input>
  34. </el-form-item>
  35. <el-row :gutter="20" class="elrow">
  36. <el-col :span="12">
  37. <el-form-item label="审核时间" prop="shsj">
  38. <el-date-picker
  39. v-model="ruleForm.shsj"
  40. type="date"
  41. value-format="yyyy-MM-dd"
  42. placeholder="自动读取"
  43. >
  44. </el-date-picker>
  45. </el-form-item>
  46. </el-col>
  47. <el-col :span="12">
  48. <el-form-item label="审核人" prop="shr">
  49. <el-input
  50. v-model="ruleForm.shr"
  51. placeholder="自动读取"
  52. ></el-input>
  53. </el-form-item>
  54. </el-col>
  55. </el-row>
  56. </el-form>
  57. </div>
  58. <span slot="footer" class="dialog-footer">
  59. <el-button type="primary" @click="submit">保存</el-button>
  60. <el-button type="primary" @click="close">关闭</el-button>
  61. </span>
  62. </el-dialog>
  63. </div>
  64. </template>
  65. <script>
  66. export default {
  67. components: {},
  68. props: {},
  69. data() {
  70. return {
  71. formData: {},
  72. fieldList: [{ label: "sc", name: "字段" }],
  73. dialogVisible: false,
  74. };
  75. },
  76. created() {},
  77. methods: {
  78. // 关闭弹窗
  79. close() {
  80. this.dialogVisible = false;
  81. this.$emit("close");
  82. },
  83. Init(rowdata) {
  84. this.formData = rowdata;
  85. this.dialogVisible = true;
  86. },
  87. async submit() {
  88. this.close();
  89. },
  90. },
  91. };
  92. </script>
  93. <style lang="scss" scoped>
  94. .dialog {
  95. .content {
  96. height: 400px;
  97. overflow-y: auto;
  98. overflow-x: hidden;
  99. color: #fff;
  100. .el-checkbox {
  101. color: #fff;
  102. }
  103. }
  104. }
  105. </style>
  106. <style lang="scss" >
  107. </style>