Browse Source

feat: [试验管理] 中英文修改

master
memorylkf 3 days ago
parent
commit
acd8346b8b
11 changed files with 45 additions and 25 deletions
  1. +4
    -3
      src/lang/en.js
  2. +6
    -6
      src/lang/en/business/study/study.js
  3. +1
    -0
      src/lang/zh.js
  4. +2
    -1
      src/lang/zh/business/study/study.js
  5. +5
    -2
      src/views/business/form/drug/comp/edit.vue
  6. +5
    -2
      src/views/business/form/nonTrial/comp/edit.vue
  7. +5
    -2
      src/views/business/study/comp/edit.vue
  8. +8
    -0
      src/views/business/study/comp/sign.vue
  9. +2
    -2
      src/views/business/study/comp/suject.vue
  10. +1
    -1
      src/views/business/study/comp/syxx.vue
  11. +6
    -6
      src/views/business/study/list.vue

+ 4
- 3
src/lang/en.js View File

@ -77,17 +77,18 @@ export default {
operate: 'Action',
delete: 'Delete',
detail: 'View',
placeholderInput: 'Please Enter',
placeholderInput: 'Please Input',
placeholderSelect: 'Please Select',
confirmDelete: 'Confirm Delete?',
startDate: 'Start Date',
endDate: 'End Date',
password: 'Password',
signer: 'Signer',
signer: 'Signed By',
signerUser: 'Signed User',
signerPsw: 'Password',
qmyy: 'Purpose',
signTime: '签名时间',
remark: 'remark',
remark: 'Comment',
lengthLimit: '长度不能超过',
notEmpty: '不能为空',

+ 6
- 6
src/lang/en/business/study/study.js View File

@ -1,16 +1,17 @@
export default {
name: 'Study Name',
sn: 'Study ID',
sn: 'Study Number',
dateRange: 'Date Range',
status: 'Status',
startDate: 'Start Date',
endDate: 'End Date',
leader: 'Study Director',
search: 'Filter',
add: 'Create',
sort: 'Num',
borrowStatus: 'Check-out Status',
formCount: 'Records',
formCount: 'Total Records',
formFinishCount: 'Completed Records',
createDate: 'Creation Date',
remark: 'Description',
@ -63,13 +64,12 @@ export default {
qb: 'All',
lc: 'Milestone',
bj: 'Edit',
bj: 'Change',
ry: 'User',
xg: 'Change',
xg: 'Edit',
scsy: 'Remove Study',
jysj: 'Checkout Period',
qxzsy:'Please Select Study'
qxzsy: 'Please Select Study'
}

+ 1
- 0
src/lang/zh.js View File

@ -80,6 +80,7 @@ export default {
endDate: '结束日期',
password: '密码',
signer: '签名人',
signerUser: '签名人用户名',
signerPsw: '签名人密码',
qmyy: '签名意义',
signTime: '签名时间',

+ 2
- 1
src/lang/zh/business/study/study.js View File

@ -7,6 +7,7 @@ export default {
endDate: '结束时间',
leader: '负责人',
search: '查询',
add: '新增试验',
sort: '序号',
borrowStatus: '借阅状态',
@ -70,5 +71,5 @@ export default {
scsy: '删除试验',
jysj: '借阅时间',
qxzsy:'请选择试验'
qxzsy: '请选择试验'
}

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

@ -3,7 +3,7 @@
<div class="edit-top">
<div class="left-top">
<img src="@/assets/images/back.png" @click="cancel()" />
<div class="left-title">{{$t('page.business.study.drug.create')}}</div>
<div class="left-title">{{this.infoDialog.formData.id!=''?$t('page.business.study.drug.xgsy'):$t('page.business.study.drug.create')}}</div>
</div>
<div class="right-top">
<el-button @click="cancel()">{{$t('page.business.study.drug.cancel')}}</el-button>
@ -82,6 +82,7 @@ export default {
],
}
},
oldStatus:1,
};
},
created() {
@ -95,10 +96,12 @@ export default {
edit(row) {
this.$refs['infoDialogForm'] && this.$refs['infoDialogForm'].resetFields()
this.infoDialog.formData = _.merge({}, EmptyDialogData,{leader:this.$store.getters.id,leaderName:this.$store.getters.nickName})
this.oldStatus = 1
if(row && row.id){
this.$modal.loading()
drug_info({id:row.id}).then(({data}) => {
this.infoDialog.formData = data
this.oldStatus = data.status
}).finally(() => {
this.$modal.closeLoading()
})
@ -113,7 +116,7 @@ export default {
if (valid) {
this.infoDialog.formData.status = status
if(status === 3){
this.$refs.editSignRef.show(this.$t('page.business.study.drug.submit'),this.$t('page.business.study.drug.create'))
this.$refs.editSignRef.show(this.oldStatus==1?this.$t('page.business.study.drug.submit'):this.$t('page.business.study.drug.xgsy'),this.oldStatus==1?'创建试验':'修改试验')
}else{
this.doSave({})
}

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

@ -3,7 +3,7 @@
<div class="edit-top">
<div class="left-top">
<img src="@/assets/images/back.png" @click="cancel()" />
<div class="left-title">{{$t('page.business.study.nonTrial.create')}}</div>
<div class="left-title">{{this.infoDialog.formData.id!=''?$t('page.business.study.nonTrial.xgsy'):$t('page.business.study.nonTrial.create')}}</div>
</div>
<div class="right-top">
<el-button @click="cancel()">{{$t('page.business.study.nonTrial.cancel')}}</el-button>
@ -82,6 +82,7 @@ export default {
],
}
},
oldStatus:1
};
},
created() {
@ -95,10 +96,12 @@ export default {
edit(row) {
this.$refs['infoDialogForm'] && this.$refs['infoDialogForm'].resetFields()
this.infoDialog.formData = _.merge({}, EmptyDialogData,{leader:this.$store.getters.id,leaderName:this.$store.getters.nickName})
this.oldStatus = 1
if(row && row.id){
this.$modal.loading()
nonTrial_info({id:row.id}).then(({data}) => {
this.infoDialog.formData = data
this.oldStatus = data.status
}).finally(() => {
this.$modal.closeLoading()
})
@ -113,7 +116,7 @@ export default {
if (valid) {
this.infoDialog.formData.status = status
if(status === 3){
this.$refs.editSignRef.show(this.$t('page.business.study.nonTrial.submit'),this.$t('page.business.study.nonTrial.create'))
this.$refs.editSignRef.show(this.oldStatus==1?this.$t('page.business.study.nonTrial.submit'):this.$t('page.business.study.nonTrial.xgsy'),this.oldStatus==1?'创建试验':'修改试验')
}else{
this.doSave({})
}

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

@ -3,7 +3,7 @@
<div class="edit-top">
<div class="left-top">
<img src="@/assets/images/back.png" @click="cancel()" />
<div class="left-title">{{$t('page.business.study.study.create')}}</div>
<div class="left-title">{{this.infoDialog.formData.id!=''?$t('page.business.study.study.xgsy'):$t('page.business.study.study.create')}}</div>
</div>
<div class="right-top">
<el-button @click="cancel()">{{$t('page.business.study.study.cancel')}}</el-button>
@ -82,6 +82,7 @@ export default {
],
}
},
oldStatus:1
};
},
created() {
@ -95,10 +96,12 @@ export default {
edit(row) {
this.$refs['infoDialogForm'] && this.$refs['infoDialogForm'].resetFields()
this.infoDialog.formData = _.merge({}, EmptyDialogData,{leader:this.$store.getters.id,leaderName:this.$store.getters.nickName})
this.oldStatus = 1
if(row && row.id){
this.$modal.loading()
study_info({id:row.id}).then(({data}) => {
this.infoDialog.formData = data
this.oldStatus = data.status
}).finally(() => {
this.$modal.closeLoading()
})
@ -113,7 +116,7 @@ export default {
if (valid) {
this.infoDialog.formData.status = status
if(status === 3){
this.$refs.editSignRef.show(this.$t('page.business.study.study.submit'),this.$t('page.business.study.study.create'))
this.$refs.editSignRef.show(this.oldStatus==1?this.$t('page.business.study.study.submit'):this.$t('page.business.study.study.xgsy'),this.oldStatus==1?'创建试验':'修改试验')
}else{
this.doSave({})
}

+ 8
- 0
src/views/business/study/comp/sign.vue View File

@ -31,6 +31,12 @@
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item :label="$t('form.signerUser')">
<el-input type="text" v-model="form.qmrUserName" maxlength="50" disabled
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" v-model="form.qmrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" autocomplete="off" auto-complete="new-password" />
</el-form-item>
@ -58,6 +64,7 @@ export default {
remark:'',
qmrId:'',
qmrMc:'',
qmrUserName:'',
qmrmm:'',
startDate:'',
@ -93,6 +100,7 @@ export default {
remark:'',
qmrId:this.$store.getters.id,
qmrMc:this.$store.getters.nickName,
qmrUserName:this.$store.getters.name,
qmrmm:'',
startDate:'',
endDate:''

+ 2
- 2
src/views/business/study/comp/suject.vue View File

@ -171,7 +171,7 @@ export default {
}
this.infoDialog.saveList = postList
this.signType = 'save'
this.$refs.subjectSignRef.show(this.$t('page.business.study.study.rybg'),this.$t('page.business.study.study.rybg'))
this.$refs.subjectSignRef.show(this.$t('page.business.study.study.rybg'),'人员变更')
},
doSign(val){
if(this.signType==='save'){
@ -238,7 +238,7 @@ export default {
}
this.memberList = postList
this.signType = 'member'
this.$refs.subjectSignRef.show(this.$t('page.business.study.study.rybg'),this.$t('page.business.study.study.rybg'))
this.$refs.subjectSignRef.show(this.$t('page.business.study.study.rybg'),'人员变更')
},
doChangeMember(sign){

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

@ -124,7 +124,7 @@ export default {
study_checkSd({
study:{id:this.studyId},
}).then(() => {
this.$refs.syxxSignRef.show(this.$t('page.business.study.study.sdsy'),this.$t('page.business.study.study.sdsy'))
this.$refs.syxxSignRef.show(this.$t('page.business.study.study.sdsy'),'锁定试验')
}).finally(() => {
this.$modal.closeLoading()
})

+ 6
- 6
src/views/business/study/list.vue View File

@ -36,7 +36,7 @@
</el-form-item>
<div class="right-btn">
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="search">{{ $t('form.search') }}</el-button>
<el-button type="primary" icon="el-icon-search" @click="search">{{ $t('page.business.study.study.search') }}</el-button>
<el-button icon="el-icon-refresh" @click="reset">{{ $t('form.reset') }}</el-button>
</el-form-item>
</div>
@ -250,7 +250,7 @@ export default {
del(row) {
this.operate = 'del'
this.operateRow = row
this.$refs.signRef.show(this.$t('page.business.study.study.scsy'),this.$t('page.business.study.study.scsy'))
this.$refs.signRef.show(this.$t('page.business.study.study.scsy'),'删除试验')
},
doDel(signInfo) {
this.$modal.loading()
@ -270,7 +270,7 @@ export default {
gd(row) {
this.operate = 'gd'
this.operateRow = row
this.$refs.signRef.show(this.$t('page.business.study.study.sqgd'),this.$t('page.business.study.study.sqgd'))
this.$refs.signRef.show(this.$t('page.business.study.study.sqgd'),'申请归档')
},
doGd(signInfo) {
this.$modal.loading()
@ -290,7 +290,7 @@ export default {
js(row) {
this.operate = 'js'
this.operateRow = row
this.$refs.signRef.show(this.$t('page.business.study.study.jssy'),this.$t('page.business.study.study.jssy'))
this.$refs.signRef.show(this.$t('page.business.study.study.jssy'),'解锁试验')
},
doJs(signInfo) {
this.$modal.loading()
@ -310,7 +310,7 @@ export default {
jd(row) {
this.operate = 'jd'
this.operateRow = row
this.$refs.signRef.show(this.$t('page.business.study.study.sqjd'),this.$t('page.business.study.study.sqjd'))
this.$refs.signRef.show(this.$t('page.business.study.study.sqjd'),'申请解档')
},
doJd(signInfo) {
this.$modal.loading()
@ -330,7 +330,7 @@ export default {
jy(row) {
this.operate = 'jy'
this.operateRow = row
this.$refs.signRef.show(this.$t('page.business.study.study.sqjy'),this.$t('page.business.study.study.sqjy'),true)
this.$refs.signRef.show(this.$t('page.business.study.study.sqjy'),'申请借阅',true)
},
doJy(signInfo) {
this.$modal.loading()

Loading…
Cancel
Save