华西海圻ELN前端工程
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
3.5 KiB

  1. <template>
  2. <div>
  3. <el-dialog :title="$t('page.business.study.studyFormApply.jiaqian')" :visible.sync="open" width="500px"
  4. append-to-body :close-on-click-modal="false">
  5. <el-form ref="form" :model="form" :rules="rules" label-width="120px">
  6. <el-row>
  7. <el-col :span="24">
  8. <el-form-item :label="$t('form.qmyy')" prop="qmyy">
  9. <el-select v-model="form.qmyy" :placeholder="$t('form.placeholderSelect')" style="width: 100%;">
  10. <el-option label="开始现场复核" value="开始现场复核" />
  11. <el-option label="结束现场复核" value="结束现场复核" />
  12. <el-option label="申明协作" value="申明协作" />
  13. <el-option label="补充说明" value="补充说明" />
  14. </el-select>
  15. </el-form-item>
  16. </el-col>
  17. </el-row>
  18. <el-row>
  19. <el-col :span="24">
  20. <el-form-item :label="$t('form.remark')" prop="remark">
  21. <el-input type="textarea" v-model="form.remark" :rows="5" maxlength="500"
  22. :placeholder="$t('form.placeholderInput')">
  23. </el-input>
  24. </el-form-item>
  25. </el-col>
  26. </el-row>
  27. <el-row>
  28. <el-col :span="24">
  29. <el-form-item :label="$t('form.signer')">
  30. <el-input type="text" v-model="nickName" maxlength="50" disabled
  31. :placeholder="$t('form.placeholderInput')" />
  32. </el-form-item>
  33. </el-col>
  34. </el-row>
  35. <el-row>
  36. <el-col :span="24">
  37. <el-form-item :label="$t('form.password')" prop="qmrmm">
  38. <el-input type="password" v-model="form.qmrmm" maxlength="20"
  39. :placeholder="$t('form.placeholderInput')" />
  40. </el-form-item>
  41. </el-col>
  42. </el-row>
  43. </el-form>
  44. <div slot="footer" class="dialog-footer">
  45. <el-button type="primary" @click="save">{{ $t('form.confirm') }}</el-button>
  46. <el-button @click="cancel">{{ $t('form.cancel') }}</el-button>
  47. </div>
  48. </el-dialog>
  49. </div>
  50. </template>
  51. <script>
  52. import { studyFormApply_jq } from "@/api/business/study/studyFormApply"
  53. import { mapGetters } from 'vuex'
  54. export default {
  55. name: "Fz",
  56. components: {},
  57. data() {
  58. return {
  59. isBatch: false,
  60. ids: [],
  61. selectList: [],
  62. open: false,
  63. form: {},
  64. rules: {
  65. qmrmm: [{
  66. required: true,
  67. message: ' ',
  68. trigger: 'blur'
  69. }],
  70. remark: [{
  71. required: true,
  72. message: ' ',
  73. trigger: 'blur'
  74. }],
  75. qmyy: [{
  76. required: true,
  77. message: ' ',
  78. trigger: 'blur'
  79. }],
  80. }
  81. }
  82. },
  83. computed: {
  84. ...mapGetters([
  85. 'nickName','name'
  86. ]),
  87. },
  88. created() {
  89. },
  90. methods: {
  91. cancel() {
  92. this.open = false
  93. },
  94. reset() {
  95. this.form = {
  96. id: null,
  97. qmyy: null,
  98. remark: null,
  99. qmrmm: null
  100. }
  101. this.resetForm("form")
  102. },
  103. show(row) {
  104. this.reset()
  105. this.form.id = row.id
  106. this.open = true
  107. },
  108. save() {
  109. this.$refs["form"].validate(valid => {
  110. if (valid) {
  111. this.$modal.loading()
  112. studyFormApply_jq(this.form).then(response => {
  113. this.open = false
  114. this.$emit('callback')
  115. this.$modal.closeLoading()
  116. }).finally(() => {
  117. this.$modal.closeLoading()
  118. })
  119. }
  120. })
  121. }
  122. }
  123. }
  124. </script>