@@ -80,6 +80,13 @@
+
+
+ {{ $t('page.business.study.studyFormApply.yes') }}
+ {{ $t('page.business.study.studyFormApply.no') }}
+
+
{{ $t('page.business.study.studyFormApply.tbz') }}
@@ -91,13 +98,6 @@
{{ $t('page.business.study.studyFormApply.yfz') }}
-
-
- {{ $t('page.business.study.studyFormApply.yes') }}
- {{ $t('page.business.study.studyFormApply.no') }}
-
-
@@ -128,8 +128,8 @@
$t('page.business.study.studyFormApply.sy') }}
{{
- $t('page.business.study.studyFormApply.sy') }}
+ v-hasPermi="['business:drugFormApply:sh']">{{
+ $t('page.business.study.studyFormApply.sh') }}
{{
diff --git a/src/views/business/study/comp/jhbd/Bj.vue b/src/views/business/study/comp/jhbd/Bj.vue
index b807b1e..8b34d2f 100644
--- a/src/views/business/study/comp/jhbd/Bj.vue
+++ b/src/views/business/study/comp/jhbd/Bj.vue
@@ -165,9 +165,9 @@ export default {
bdbh: null,
bdmc: '试验物质配制计划表',
bdsm: null,
- templateId: 23,
+ templateId: 1,
templateMc: '试验物质配制计划表',
- templateSn: 'DL001',
+ templateSn: 'SYWZPZJHB',
bdnr: null,
fzrsh: null,
shryId: null,
diff --git a/src/views/business/study/comp/sqbd/Bj.vue b/src/views/business/study/comp/sqbd/Bj.vue
index 636bbe2..eb212a9 100644
--- a/src/views/business/study/comp/sqbd/Bj.vue
+++ b/src/views/business/study/comp/sqbd/Bj.vue
@@ -29,7 +29,7 @@
{{ $t('page.business.study.studyFormApply.save') }}
- {{ $t('page.business.study.studyFormApply.submit')
+ {{ $t('page.business.study.studyFormApply.submit')
}}
{{ $t('page.business.study.studyFormApply.pre') }}
@@ -210,16 +210,16 @@ export default {
id: null,
studyId: null,
bdbh: null,
- bdmc: null,
+ bdmc: '麻醉/精神药品配制/领取申请单',
bdsm: null,
- templateId: null,
- templateMc: null,
- templateSn: null,
+ templateId: 2,
+ templateMc: '麻醉/精神药品配制/领取申请单',
+ templateSn: 'MJYLQSQD',
bdnr: null,
fzrsh: null,
shryId: null,
sfbl: null,
- qmyy:'制作提交预制表单',
+ qmyy: '制作提交预制表单',
shryMc: null,
}
this.resetForm("form")
@@ -256,16 +256,24 @@ export default {
}
})
},
+ async showtijjiao() {
+ let content = await this.$refs.templateTable.getFormData()
+ if (content) {
+ this.openSubmit = true
+ }
+ },
async saveNext() {
let content = await this.$refs.templateTable.getFormData()
- this.form.bdnr = JSON.stringify(content)
- this.$modal.loading()
- studyFormApply_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()
+ studyFormApply_bc(this.form).then(response => {
+ this.$emit('close')
+ this.$modal.closeLoading()
+ }).finally(() => {
+ this.$modal.closeLoading()
+ })
+ }
},
tj() {
this.$refs["formSubmit"].validate(valid => {
@@ -276,15 +284,17 @@ export default {
},
async dotj() {
let content = await this.$refs.templateTable.getFormData()
- 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()
- })
+ 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()
+ })
+ }
}
}
}
diff --git a/src/views/business/study/comp/sqbd/Fh.vue b/src/views/business/study/comp/sqbd/Fh.vue
index 1a3c3d5..925cf44 100644
--- a/src/views/business/study/comp/sqbd/Fh.vue
+++ b/src/views/business/study/comp/sqbd/Fh.vue
@@ -108,7 +108,7 @@
diff --git a/src/views/business/study/comp/sqbd/Sy.vue b/src/views/business/study/comp/sqbd/Sy.vue
index e978d8f..514ead8 100644
--- a/src/views/business/study/comp/sqbd/Sy.vue
+++ b/src/views/business/study/comp/sqbd/Sy.vue
@@ -43,7 +43,7 @@
{{ $t('page.business.study.studyFormApply.jcgj') }}
-
+
@@ -142,7 +142,7 @@ export default {
created() {
},
methods: {
-
+
getJjcgjList(val) {
this.$modal.loading()
studyFormApply_jcgj(_.merge({}, this.queryParamsJcgj, val)).then(response => {
@@ -183,16 +183,20 @@ 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.openApprove = true
+ }
},
resetApprove() {
this.formApprove = {
id: null,
qmyy: '已审阅',
remark: '',
+ bdnr: '',
qmrmm: '',
}
this.resetForm("formApprove")
@@ -200,16 +204,23 @@ export default {
approve() {
this.$refs["formApprove"].validate(valid => {
if (valid) {
- this.$modal.loading()
- studyFormApply_sy(this.formApprove).then(response => {
- this.openApprove = false
- this.$modal.closeLoading()
- this.$emit('close')
- }).finally(() => {
- this.$modal.closeLoading()
- })
+ this.doapprove()
}
})
+ },
+ 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()
+ })
+ }
}
}
}
diff --git a/vue.config.js b/vue.config.js
index 5e39e4b..fda6a2f 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -34,8 +34,8 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
- target: `http://localhost:8080`,
- // target: `http://39.99.251.173:8080`,
+ target: `http://localhost:8080`,
+ // target: `http://39.99.251.173:8080`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''