Browse Source

fix:[试验管理][预填,填报]优化

master
15881625488@163.com 1 day ago
parent
commit
fcec13b785
13 changed files with 226 additions and 256 deletions
  1. +2
    -2
      src/components/Pagination/index.vue
  2. +2
    -2
      src/views/business/resource/mjy/comps/mjy/Xq.vue
  3. +26
    -28
      src/views/business/study/comp/jhbd/Bj.vue
  4. +38
    -38
      src/views/business/study/comp/jhbd/Fh.vue
  5. +12
    -16
      src/views/business/study/comp/jhbd/Sy.vue
  6. +12
    -18
      src/views/business/study/comp/sqbd/Bj.vue
  7. +33
    -37
      src/views/business/study/comp/sqbd/Fh.vue
  8. +11
    -18
      src/views/business/study/comp/sqbd/Sy.vue
  9. +26
    -25
      src/views/business/study/comp/tbbd/Bj.vue
  10. +42
    -44
      src/views/business/study/comp/tbbd/Fh.vue
  11. +8
    -5
      src/views/business/study/comp/tbbd/Sy.vue
  12. +14
    -22
      src/views/business/study/comp/ytbd/Bj.vue
  13. +0
    -1
      src/views/business/study/comp/ytbd/Sh.vue

+ 2
- 2
src/components/Pagination/index.vue View File

@ -31,12 +31,12 @@ export default {
},
limit: {
type: Number,
default: 20
default: 5
},
pageSizes: {
type: Array,
default() {
return [10, 20, 30, 50]
return [5,10, 20, 30, 50]
}
},
// 5

+ 2
- 2
src/views/business/resource/mjy/comps/mjy/Xq.vue View File

@ -136,7 +136,7 @@
</div>
<jcgjList ref="jcgjList" @handleQuery="getJjcgjList" />
<pagination v-show="jcgjTotal > 0" small layout="prev, pager, next" :total="jcgjTotal"
<pagination v-show="jcgjTotal > 0" :total="jcgjTotal"
@pagination="getJjcgjList" />
</div>
</div>
@ -168,7 +168,7 @@ export default {
queryJcgjParams: {
pageNum: 1,
mjyId: null,
pageSize: 10,
pageSize: 5,
}
}
},

+ 26
- 28
src/views/business/study/comp/jhbd/Bj.vue View File

@ -41,8 +41,8 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('page.business.form.bdmb')" prop="templateId">
<SelectTemplate v-model="form.templateId" :disabled="true" :needPre="1"
:name="form.templateMc" @change="selectTemplateChange" />
<SelectTemplate v-model="form.templateId" :disabled="true" :needPre="1" :name="form.templateMc"
@change="selectTemplateChange" />
</el-form-item>
</el-col>
</el-row>
@ -70,12 +70,12 @@
</div>
</div>
<el-dialog :title="$t('page.business.study.studyFormPlan.tjjl')" :visible.sync="openSubmit" width="500px"
append-to-body :close-on-click-modal="false">
<el-form ref="formSubmit" :model="form" :rules="rulesApprove" label-width="120px">
<div class="sbzdtcma"> <input type="text"> <input type="password"> </div>
<el-row>
<el-row>
<el-col :span="24">
<el-form-item :label="$t('page.business.study.studyFormPlan.shryId')" prop="fshryId">
<SelectDeptUser v-model="form.fshryId" :name="form.fhryMc" key="shryId" @change="selectDeptUserChange" />
@ -174,7 +174,7 @@ export default {
},
computed: {
...mapGetters([
'nickName','name'
'nickName', 'name'
]),
},
created() {
@ -251,39 +251,37 @@ export default {
},
async saveNext() {
let content = await this.$refs.templateTable.getFormData()
this.form.bdnr = JSON.stringify(content)
this.$modal.loading()
studyFormPlan_bc(this.form).then(response => {
this.$emit('close')
this.$modal.closeLoading()
}).finally(() => {
this.$modal.closeLoading()
})
if (content) {
this.form.bdnr = JSON.stringify(content)
this.$modal.loading()
studyFormPlan_bc(this.form).then(response => {
this.$emit('close')
this.$modal.closeLoading()
}).finally(() => {
this.$modal.closeLoading()
})
}
},
tj() {
this.$refs["formSubmit"].validate(valid => {
if (valid) {
this.dotj()
this.$modal.loading()
studyFormPlan_tj(this.form).then(response => {
this.$emit('close')
this.openSubmit = false
this.$modal.closeLoading()
}).finally(() => {
this.$modal.closeLoading()
})
}
})
},
async showtijiao() {
async showtijiao() {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.openSubmit = true
this.form.bdnr = JSON.stringify(content)
this.openSubmit = true
}
},
async dotj() {
let content = await this.$refs.templateTable.getFormData()
this.form.bdnr = JSON.stringify(content)
this.$modal.loading()
studyFormPlan_tj(this.form).then(response => {
this.$emit('close')
this.openSubmit = false
this.$modal.closeLoading()
}).finally(() => {
this.$modal.closeLoading()
})
}
}
}

+ 38
- 38
src/views/business/study/comp/jhbd/Fh.vue View File

@ -18,7 +18,7 @@
</div>
<div class="edit-content">
<div class="content-left">
<TemplateTable ref="templateTable" :sn="form.templateSn" fillType="qc" :templateData="form"/>
<TemplateTable ref="templateTable" :sn="form.templateSn" fillType="qc" :templateData="form" />
<div class="content-title">
<div class="line"></div>
<div class="subtitle"> {{ $t('page.business.study.studyFormPlan.qmxx') }}</div>
@ -109,7 +109,7 @@
</template>
<script>
import { studyFormPlan_fhtg, studyFormPlan_fhjj, studyFormPlan_info, studyFormPlan_jcgj, studyFormPlan_qmxx } from "@/api/business/study/studyFormPlan"
import { studyFormPlan_fhtg, studyFormPlan_fhjj, studyFormPlan_info, studyFormPlan_jcgj, studyFormPlan_qmxx } from "@/api/business/study/studyFormPlan"
import { mapGetters } from 'vuex'
import JcgjList from "@/views/business/comps/common/JcgjList";
import TemplateTable from '@/views/business/comps/template/TemplateTable';
@ -154,13 +154,13 @@ export default {
},
computed: {
...mapGetters([
'nickName','name'
'nickName', 'name'
]),
},
created() {
},
methods: {
getJjcgjList(val) {
this.$modal.loading()
studyFormPlan_jcgj(_.merge({}, this.queryParamsJcgj, val)).then(response => {
@ -201,16 +201,21 @@ export default {
this.$modal.closeLoading()
})
},
showApprove(qmyy) {
this.openApprove = true
this.resetApprove()
this.formApprove.id = this.form.id
this.formApprove.qmyy = qmyy
if (qmyy == '复核通过') {
this.openTitle = 'page.business.study.studyFormPlan.fhtg'
} else if (qmyy == '复核拒绝') {
this.openTitle = 'page.business.study.studyFormPlan.fhjj'
}
async showApprove(qmyy) {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.openApprove = true
this.resetApprove()
this.formApprove.bdnr = JSON.stringify(content)
this.formApprove.id = this.form.id
this.formApprove.qmyy = qmyy
if (qmyy == '复核通过') {
this.openTitle = 'page.business.study.studyFormPlan.fhtg'
} else if (qmyy == '复核拒绝') {
this.openTitle = 'page.business.study.studyFormPlan.fhjj'
}
}
},
resetApprove() {
this.resetForm("formApprove")
@ -226,32 +231,27 @@ export default {
approve() {
this.$refs["formApprove"].validate(valid => {
if (valid) {
this.doapprove()
this.$modal.loading()
if (this.formApprove.qmyy == '复核通过') {
studyFormPlan_fhtg(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
} else if (this.formApprove.qmyy == '复核拒绝') {
this.formApprove.remark = this.formApprove.reason
studyFormPlan_fhjj(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
}
}
})
},
async doapprove() {
let content = await this.$refs.templateTable.getFormData()
this.formApprove.bdnr = JSON.stringify(content)
this.$modal.loading()
if (this.formApprove.qmyy == '复核通过') {
studyFormPlan_fhtg(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
} else if (this.formApprove.qmyy == '复核拒绝') {
this.formApprove.remark=this.formApprove.reason
studyFormPlan_fhjj(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
}
}
}
}

+ 12
- 16
src/views/business/study/comp/jhbd/Sy.vue View File

@ -137,7 +137,7 @@ export default {
},
computed: {
...mapGetters([
'nickName','name'
'nickName', 'name'
]),
},
created() {
@ -184,12 +184,13 @@ export default {
this.$modal.closeLoading()
})
},
async showApprove() {
async showApprove() {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.openApprove = true
this.resetApprove()
this.formApprove.bdnr = JSON.stringify(content)
this.formApprove.id = this.form.id
this.openApprove = true
}
},
resetApprove() {
@ -204,21 +205,16 @@ export default {
approve() {
this.$refs["formApprove"].validate(valid => {
if (valid) {
this.doapprove()
this.$modal.loading()
studyFormPlan_sy(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
}
})
},
async doapprove() {
let content = await this.$refs.templateTable.getFormData()
this.formApprove.bdnr = JSON.stringify(content)
this.$modal.loading()
studyFormPlan_sy(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
}
}
}

+ 12
- 18
src/views/business/study/comp/sqbd/Bj.vue View File

@ -41,8 +41,8 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('page.business.form.bdmb')" prop="templateId">
<SelectTemplate v-model="form.templateId" :disabled="true"
:name="form.templateMc" @change="selectTemplateChange" />
<SelectTemplate v-model="form.templateId" :disabled="true" :name="form.templateMc"
@change="selectTemplateChange" />
</el-form-item>
</el-col>
</el-row>
@ -181,7 +181,7 @@ export default {
},
computed: {
...mapGetters([
'nickName','name'
'nickName', 'name'
]),
},
created() {
@ -260,6 +260,7 @@ export default {
async showtijjiao() {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.form.bdnr = JSON.stringify(content)
this.openSubmit = true
}
},
@ -279,23 +280,16 @@ export default {
tj() {
this.$refs["formSubmit"].validate(valid => {
if (valid) {
this.dotj()
this.$modal.loading()
studyFormApply_tj(this.form).then(response => {
this.$emit('close')
this.openSubmit = false
this.$modal.closeLoading()
}).finally(() => {
this.$modal.closeLoading()
})
}
})
},
async dotj() {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.form.bdnr = JSON.stringify(content)
this.$modal.loading()
studyFormApply_tj(this.form).then(response => {
this.$emit('close')
this.openSubmit = false
this.$modal.closeLoading()
}).finally(() => {
this.$modal.closeLoading()
})
}
}
}
}

+ 33
- 37
src/views/business/study/comp/sqbd/Fh.vue View File

@ -154,13 +154,12 @@ export default {
},
computed: {
...mapGetters([
'nickName','name'
'nickName', 'name'
]),
},
created() {
},
methods: {
getJjcgjList(val) {
this.$modal.loading()
studyFormApply_jcgj(_.merge({}, this.queryParamsJcgj, val)).then(response => {
@ -201,15 +200,19 @@ export default {
this.$modal.closeLoading()
})
},
showApprove(qmyy) {
this.openApprove = true
this.resetApprove()
this.formApprove.id = this.form.id
this.formApprove.qmyy = qmyy
if (qmyy == '复核通过') {
this.openTitle = 'page.business.study.studyFormApply.fhtg'
} else if (qmyy == '复核拒绝') {
this.openTitle = 'page.business.study.studyFormApply.fhjj'
async showApprove(qmyy) {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.openApprove = true
this.resetApprove()
this.formApprove.bdnr = JSON.stringify(content)
this.formApprove.id = this.form.id
this.formApprove.qmyy = qmyy
if (qmyy == '复核通过') {
this.openTitle = 'page.business.study.studyFormApply.fhtg'
} else if (qmyy == '复核拒绝') {
this.openTitle = 'page.business.study.studyFormApply.fhjj'
}
}
},
resetApprove() {
@ -226,34 +229,27 @@ export default {
approve() {
this.$refs["formApprove"].validate(valid => {
if (valid) {
this.doapprove()
this.$modal.loading()
if (this.formApprove.qmyy == '复核通过') {
studyFormApply_fhtg(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
} else if (this.formApprove.qmyy == '复核拒绝') {
this.formApprove.remark = this.formApprove.reason
studyFormApply_fhjj(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
}
}
})
},
async doapprove() {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.formApprove.bdnr = JSON.stringify(content)
this.$modal.loading()
if (this.formApprove.qmyy == '复核通过') {
studyFormApply_fhtg(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
} else if (this.formApprove.qmyy == '复核拒绝') {
this.formApprove.remark = this.formApprove.reason
studyFormApply_fhjj(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
}
}
}
}
}

+ 11
- 18
src/views/business/study/comp/sqbd/Sy.vue View File

@ -137,13 +137,12 @@ export default {
},
computed: {
...mapGetters([
'nickName','name'
'nickName', 'name'
]),
},
created() {
},
methods: {
getJjcgjList(val) {
this.$modal.loading()
studyFormApply_jcgj(_.merge({}, this.queryParamsJcgj, val)).then(response => {
@ -187,9 +186,10 @@ export default {
async showApprove() {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.openApprove = true
this.resetApprove()
this.formApprove.bdnr = JSON.stringify(content)
this.formApprove.id = this.form.id
this.openApprove = true
}
},
resetApprove() {
@ -205,23 +205,16 @@ export default {
approve() {
this.$refs["formApprove"].validate(valid => {
if (valid) {
this.doapprove()
this.$modal.loading()
studyFormApply_sy(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
}
})
},
async doapprove() {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.formApprove.bdnr = JSON.stringify(content)
this.$modal.loading()
studyFormApply_sy(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
}
}
}
}

+ 26
- 25
src/views/business/study/comp/tbbd/Bj.vue View File

@ -228,10 +228,14 @@ export default {
})
}
},
showApprove() {
this.resetApprove()
this.formApprove.id = this.form.id
this.openApprove = true
async showApprove() {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.form.bdnr = JSON.stringify(content)
this.resetApprove()
this.formApprove.id = this.form.id
this.openApprove = true
}
},
resetApprove() {
this.formApprove = {
@ -306,33 +310,30 @@ export default {
},
async saveNext() {
let content = await this.$refs.templateTable.getFormData()
this.form.bdnr = JSON.stringify(content)
this.$modal.loading()
studyFormFill_bc(this.form).then(response => {
this.$modal.closeLoading()
this.cancel()
}).finally(() => {
this.$modal.closeLoading()
})
if (content) {
this.form.bdnr = JSON.stringify(content)
this.$modal.loading()
studyFormFill_bc(this.form).then(response => {
this.$modal.closeLoading()
this.cancel()
}).finally(() => {
this.$modal.closeLoading()
})
}
},
tj() {
this.$refs["formApprove"].validate(valid => {
if (valid) {
this.dotj()
this.$modal.loading()
studyFormFill_tj(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.cancel()
}).finally(() => {
this.$modal.closeLoading()
})
}
})
},
async dotj() {
let content = await this.$refs.templateTable.getFormData()
this.formApprove.bdnr = JSON.stringify(content)
this.$modal.loading()
studyFormFill_tj(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.cancel()
}).finally(() => {
this.$modal.closeLoading()
})
}
}
}

+ 42
- 44
src/views/business/study/comp/tbbd/Fh.vue View File

@ -161,7 +161,6 @@ export default {
created() {
},
methods: {
getJjcgjList(val) {
this.$modal.loading()
studyFormFill_jcgj(_.merge({}, this.queryParamsJcgj, val)).then(response => {
@ -202,17 +201,21 @@ export default {
this.$modal.closeLoading()
})
},
showApprove(qmyy) {
this.openApprove = true
this.resetApprove()
this.formApprove.id = this.form.id
this.formApprove.qmyy = qmyy
if (qmyy == '复核通过') {
this.openTitle = 'page.business.study.studyFormFill.fhtg'
} else if (qmyy == '复核拒绝') {
this.openTitle = 'page.business.study.studyFormFill.fhjj'
} else if (qmyy == '通过') {
this.openTitle = 'page.business.study.studyFormFill.tongguo'
async showApprove(qmyy) {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.openApprove = true
this.resetApprove()
this.formApprove.id = this.form.id
this.formApprove.bdnr = JSON.stringify(content)
this.formApprove.qmyy = qmyy
if (qmyy == '复核通过') {
this.openTitle = 'page.business.study.studyFormFill.fhtg'
} else if (qmyy == '复核拒绝') {
this.openTitle = 'page.business.study.studyFormFill.fhjj'
} else if (qmyy == '通过') {
this.openTitle = 'page.business.study.studyFormFill.tongguo'
}
}
},
resetApprove() {
@ -229,40 +232,35 @@ export default {
approve() {
this.$refs["formApprove"].validate(valid => {
if (valid) {
this.doapprove()
this.$modal.loading()
if (this.formApprove.qmyy == '复核通过') {
studyFormFill_fhtg(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
} else if (this.formApprove.qmyy == '复核拒绝') {
this.formApprove.remark = this.formApprove.reason
studyFormFill_fhjj(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
} else {
studyFormFill_tg(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
}
}
})
},
async doapprove() {
let content = await this.$refs.templateTable.getFormData()
this.formApprove.bdnr = JSON.stringify(content)
this.$modal.loading()
if (this.formApprove.qmyy == '复核通过') {
studyFormFill_fhtg(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
} else if (this.formApprove.qmyy == '复核拒绝') {
this.formApprove.remark = this.formApprove.reason
studyFormFill_fhjj(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
} else {
studyFormFill_tg(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
}
}
}
}

+ 8
- 5
src/views/business/study/comp/tbbd/Sy.vue View File

@ -143,7 +143,6 @@ export default {
created() {
},
methods: {
getJjcgjList(val) {
this.$modal.loading()
studyFormFill_jcgj(_.merge({}, this.queryParamsJcgj, val)).then(response => {
@ -184,10 +183,14 @@ export default {
this.$modal.closeLoading()
})
},
showApprove() {
this.resetApprove()
this.formApprove.id = this.form.id
this.openApprove = true
async showApprove() {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.resetApprove()
this.formApprove.id = this.form.id
this.formApprove.bdnr = JSON.stringify(content)
this.openApprove = true
}
},
resetApprove() {
this.formApprove = {

+ 14
- 22
src/views/business/study/comp/ytbd/Bj.vue View File

@ -65,7 +65,7 @@
</el-form>
</div>
<div class="content" v-if="showIndex == 2">
<TemplateTable ref="templateTable" :sn="form.templateSn" :templateData="form" fillType="preFill" />
<TemplateTable ref="templateTable" :sn="form.templateSn" :templateData="templateData" fillType="preFill" />
</div>
</div>
</div>
@ -144,7 +144,6 @@ export default {
components: { SelectTemplate, SelectDeptUser, TemplateTable },
data() {
return {
open: false,
showIndex: 1,
form: {},
openSubmit: false,
@ -178,11 +177,12 @@ export default {
}]
},
templateData: {}
}
},
computed: {
...mapGetters([
'nickName','name'
'nickName', 'name'
]),
},
created() {
@ -235,7 +235,6 @@ export default {
studyFormPre_info({ id: row.id }).then(response => {
this.form = response.data
this.form.qmyy = '制作提交预制表单'
this.open = true
this.$modal.closeLoading()
}).finally(() => {
this.$modal.closeLoading()
@ -243,9 +242,8 @@ export default {
} else {
this.showIndex = 1
this.form = _.merge({}, this.form, row)
this.open = true
}
this.templateData = deepClone(this.form)
},
save() {
this.$refs["form"].validate(valid => {
@ -276,29 +274,23 @@ export default {
async showtj() {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.openSubmit = true
this.form.bdnr = JSON.stringify(content)
this.openSubmit = true
}
},
tj() {
this.$refs["formSubmit"].validate(valid => {
if (valid) {
this.dotj()
this.$modal.loading()
studyFormPre_tj(this.form).then(response => {
this.$emit('close')
this.openSubmit = false
this.$modal.closeLoading()
}).finally(() => {
this.$modal.closeLoading()
})
}
})
},
async dotj() {
let content = await this.$refs.templateTable.getFormData()
if (content) {
this.form.bdnr = JSON.stringify(content)
this.$modal.loading()
studyFormPre_tj(this.form).then(response => {
this.$emit('close')
this.openSubmit = false
this.$modal.closeLoading()
}).finally(() => {
this.$modal.closeLoading()
})
}
}
}
}

+ 0
- 1
src/views/business/study/comp/ytbd/Sh.vue View File

@ -179,7 +179,6 @@ export default {
created() {
},
methods: {
cancel() {
this.$emit('close')
},

Loading…
Cancel
Save