Browse Source

feat: [试验管理] 稽查轨迹修改

lkf
memorylkf 2 months ago
parent
commit
bcbcd5335b
5 changed files with 88 additions and 16 deletions
  1. +1
    -1
      src/views/business/form/drug/comp/edit.vue
  2. +43
    -7
      src/views/business/form/drug/comp/sign.vue
  3. +1
    -1
      src/views/business/form/nonTrial/comp/edit.vue
  4. +42
    -6
      src/views/business/form/nonTrial/comp/sign.vue
  5. +1
    -1
      src/views/business/study/comp/edit.vue

+ 1
- 1
src/views/business/form/drug/comp/edit.vue View File

@ -118,7 +118,7 @@ export default {
if (valid) {
this.infoDialog.formData.status = status
if(status === 3){
this.$refs.editSignRef.show(this.oldStatus==1?this.$t('page.business.study.drug.submit'):this.$t('page.business.study.drug.xgsy'),this.oldStatus==1?this.$t('page.business.study.drug.create'):this.$t('page.business.study.drug.xgsy'))
this.$refs.editSignRef.show(this.oldStatus==1?this.$t('page.business.study.drug.submit'):this.$t('page.business.study.drug.xgsy'),this.oldStatus==1?this.$t('page.business.study.drug.create'):this.$t('page.business.study.drug.xgsy'),false,null,this.oldStatus!=1,this.oldStatus!=1)
}else{
this.doSave({})
}

+ 43
- 7
src/views/business/form/drug/comp/sign.vue View File

@ -5,7 +5,7 @@
<el-form ref="signForm" :model="form" :rules="rules" label-width="120px">
<el-row>
<el-col :span="24" v-if="showDate">
<el-form-item :label="$t('page.business.study.nonTrial.jysj')" prop="startDate">
<el-form-item :label="$t('page.business.study.drug.jysj')" prop="startDate">
<el-date-picker v-model="dateArr" clearable type="daterange" range-separator="-" :start-placeholder="$t('form.startDate')"
:end-placeholder="$t('form.endDate')" value-format="yyyy-MM-dd" style="width: 100%" @change="changeDate" />
</el-form-item>
@ -18,7 +18,7 @@
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item :label="$t('form.remark')" prop="remark">
<el-form-item :label="isReson?$t('form.reason'):$t('form.remark')" prop="remark">
<el-input type="textarea" v-model="form.remark" :rows="2" maxlength="500"
:placeholder="$t('form.placeholderInput')">
</el-input>
@ -89,7 +89,9 @@ export default {
message: ' ',
trigger: 'change'
}]
}
},
isReson:false
}
},
computed: {
@ -97,9 +99,9 @@ export default {
created() {
},
methods: {
show(title,qmyy,showDate) {
show(title,qmyy,showDate,selectedDate,isReson,reasonRequired) {
this.showDate = showDate==undefined?false:showDate
this.dateArr = []
this.dateArr = selectedDate || []
this.title = title
this.form = {
qmyy:qmyy,
@ -108,11 +110,45 @@ export default {
qmrMc:this.$store.getters.nickName,
qmrMcEn:this.$store.getters.name,
qmrmm:'',
startDate:'',
endDate:''
startDate:selectedDate&&selectedDate.length>0?selectedDate[0]:'',
endDate:selectedDate&&selectedDate.length>1?selectedDate[1]:''
}
this.resetForm("signForm")
this.open = true
this.isReson = isReson || false
if(reasonRequired){
this.rules ={
qmrmm: [{
required: true,
message: ' ',
trigger: 'blur'
}],
startDate: [{
required: true,
message: ' ',
trigger: 'change'
}],
remark: [{
required: true,
message: ' ',
trigger: 'blur'
}]
}
}else{
this.rules ={
qmrmm: [{
required: true,
message: ' ',
trigger: 'blur'
}],
startDate: [{
required: true,
message: ' ',
trigger: 'change'
}]
}
}
},
cancel() {
this.open = false

+ 1
- 1
src/views/business/form/nonTrial/comp/edit.vue View File

@ -118,7 +118,7 @@ export default {
if (valid) {
this.infoDialog.formData.status = status
if(status === 3){
this.$refs.editSignRef.show(this.oldStatus==1?this.$t('page.business.study.nonTrial.submit'):this.$t('page.business.study.nonTrial.xgsy'),this.oldStatus==1?this.$t('page.business.study.nonTrial.create'):this.$t('page.business.study.nonTrial.xgsy'))
this.$refs.editSignRef.show(this.oldStatus==1?this.$t('page.business.study.nonTrial.submit'):this.$t('page.business.study.nonTrial.xgsy'),this.oldStatus==1?this.$t('page.business.study.nonTrial.create'):this.$t('page.business.study.nonTrial.xgsy'),false,null,this.oldStatus!=1,this.oldStatus!=1)
}else{
this.doSave({})
}

+ 42
- 6
src/views/business/form/nonTrial/comp/sign.vue View File

@ -18,7 +18,7 @@
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item :label="$t('form.remark')" prop="remark">
<el-form-item :label="isReson?$t('form.reason'):$t('form.remark')" prop="remark">
<el-input type="textarea" v-model="form.remark" :rows="2" maxlength="500"
:placeholder="$t('form.placeholderInput')">
</el-input>
@ -89,7 +89,9 @@ export default {
message: ' ',
trigger: 'change'
}]
}
},
isReson:false
}
},
computed: {
@ -97,9 +99,9 @@ export default {
created() {
},
methods: {
show(title,qmyy,showDate) {
show(title,qmyy,showDate,selectedDate,isReson,reasonRequired) {
this.showDate = showDate==undefined?false:showDate
this.dateArr = []
this.dateArr = selectedDate || []
this.title = title
this.form = {
qmyy:qmyy,
@ -108,11 +110,45 @@ export default {
qmrMc:this.$store.getters.nickName,
qmrMcEn:this.$store.getters.name,
qmrmm:'',
startDate:'',
endDate:''
startDate:selectedDate&&selectedDate.length>0?selectedDate[0]:'',
endDate:selectedDate&&selectedDate.length>1?selectedDate[1]:''
}
this.resetForm("signForm")
this.open = true
this.isReson = isReson || false
if(reasonRequired){
this.rules ={
qmrmm: [{
required: true,
message: ' ',
trigger: 'blur'
}],
startDate: [{
required: true,
message: ' ',
trigger: 'change'
}],
remark: [{
required: true,
message: ' ',
trigger: 'blur'
}]
}
}else{
this.rules ={
qmrmm: [{
required: true,
message: ' ',
trigger: 'blur'
}],
startDate: [{
required: true,
message: ' ',
trigger: 'change'
}]
}
}
},
cancel() {
this.open = false

+ 1
- 1
src/views/business/study/comp/edit.vue View File

@ -118,7 +118,7 @@ export default {
if (valid) {
this.infoDialog.formData.status = status
if(status === 3){
this.$refs.editSignRef.show(this.oldStatus==1?this.$t('page.business.study.study.submit'):this.$t('page.business.study.study.xgsy'),this.oldStatus==1?this.$t('page.business.study.study.create'):this.$t('page.business.study.study.xgsy'))
this.$refs.editSignRef.show(this.oldStatus==1?this.$t('page.business.study.study.submit'):this.$t('page.business.study.study.xgsy'),this.oldStatus==1?this.$t('page.business.study.study.create'):this.$t('page.business.study.study.xgsy'),false,null,this.oldStatus!=1,this.oldStatus!=1)
}else{
this.doSave({})
}

Loading…
Cancel
Save