华西海圻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.

127 lines
3.7 KiB

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