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', operate: 'Action',
delete: 'Delete', delete: 'Delete',
detail: 'View', detail: 'View',
placeholderInput: 'Please Enter',
placeholderInput: 'Please Input',
placeholderSelect: 'Please Select', placeholderSelect: 'Please Select',
confirmDelete: 'Confirm Delete?', confirmDelete: 'Confirm Delete?',
startDate: 'Start Date', startDate: 'Start Date',
endDate: 'End Date', endDate: 'End Date',
password: 'Password', password: 'Password',
signer: 'Signer',
signer: 'Signed By',
signerUser: 'Signed User',
signerPsw: 'Password', signerPsw: 'Password',
qmyy: 'Purpose', qmyy: 'Purpose',
signTime: '签名时间', signTime: '签名时间',
remark: 'remark',
remark: 'Comment',
lengthLimit: '长度不能超过', lengthLimit: '长度不能超过',
notEmpty: '不能为空', notEmpty: '不能为空',

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

@ -1,16 +1,17 @@
export default { export default {
name: 'Study Name', name: 'Study Name',
sn: 'Study ID',
sn: 'Study Number',
dateRange: 'Date Range', dateRange: 'Date Range',
status: 'Status', status: 'Status',
startDate: 'Start Date', startDate: 'Start Date',
endDate: 'End Date', endDate: 'End Date',
leader: 'Study Director', leader: 'Study Director',
search: 'Filter',
add: 'Create', add: 'Create',
sort: 'Num', sort: 'Num',
borrowStatus: 'Check-out Status', borrowStatus: 'Check-out Status',
formCount: 'Records',
formCount: 'Total Records',
formFinishCount: 'Completed Records', formFinishCount: 'Completed Records',
createDate: 'Creation Date', createDate: 'Creation Date',
remark: 'Description', remark: 'Description',
@ -63,13 +64,12 @@ export default {
qb: 'All', qb: 'All',
lc: 'Milestone', lc: 'Milestone',
bj: 'Edit',
bj: 'Change',
ry: 'User', ry: 'User',
xg: 'Change',
xg: 'Edit',
scsy: 'Remove Study', scsy: 'Remove Study',
jysj: 'Checkout Period', 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: '结束日期', endDate: '结束日期',
password: '密码', password: '密码',
signer: '签名人', signer: '签名人',
signerUser: '签名人用户名',
signerPsw: '签名人密码', signerPsw: '签名人密码',
qmyy: '签名意义', qmyy: '签名意义',
signTime: '签名时间', signTime: '签名时间',

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

@ -7,6 +7,7 @@ export default {
endDate: '结束时间', endDate: '结束时间',
leader: '负责人', leader: '负责人',
search: '查询',
add: '新增试验', add: '新增试验',
sort: '序号', sort: '序号',
borrowStatus: '借阅状态', borrowStatus: '借阅状态',
@ -70,5 +71,5 @@ export default {
scsy: '删除试验', scsy: '删除试验',
jysj: '借阅时间', 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="edit-top">
<div class="left-top"> <div class="left-top">
<img src="@/assets/images/back.png" @click="cancel()" /> <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>
<div class="right-top"> <div class="right-top">
<el-button @click="cancel()">{{$t('page.business.study.drug.cancel')}}</el-button> <el-button @click="cancel()">{{$t('page.business.study.drug.cancel')}}</el-button>
@ -82,6 +82,7 @@ export default {
], ],
} }
}, },
oldStatus:1,
}; };
}, },
created() { created() {
@ -95,10 +96,12 @@ export default {
edit(row) { edit(row) {
this.$refs['infoDialogForm'] && this.$refs['infoDialogForm'].resetFields() this.$refs['infoDialogForm'] && this.$refs['infoDialogForm'].resetFields()
this.infoDialog.formData = _.merge({}, EmptyDialogData,{leader:this.$store.getters.id,leaderName:this.$store.getters.nickName}) this.infoDialog.formData = _.merge({}, EmptyDialogData,{leader:this.$store.getters.id,leaderName:this.$store.getters.nickName})
this.oldStatus = 1
if(row && row.id){ if(row && row.id){
this.$modal.loading() this.$modal.loading()
drug_info({id:row.id}).then(({data}) => { drug_info({id:row.id}).then(({data}) => {
this.infoDialog.formData = data this.infoDialog.formData = data
this.oldStatus = data.status
}).finally(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()
}) })
@ -113,7 +116,7 @@ export default {
if (valid) { if (valid) {
this.infoDialog.formData.status = status this.infoDialog.formData.status = status
if(status === 3){ 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{ }else{
this.doSave({}) this.doSave({})
} }

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

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

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

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

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

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

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

@ -171,7 +171,7 @@ export default {
} }
this.infoDialog.saveList = postList this.infoDialog.saveList = postList
this.signType = 'save' 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){ doSign(val){
if(this.signType==='save'){ if(this.signType==='save'){
@ -238,7 +238,7 @@ export default {
} }
this.memberList = postList this.memberList = postList
this.signType = 'member' 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){ doChangeMember(sign){

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

@ -124,7 +124,7 @@ export default {
study_checkSd({ study_checkSd({
study:{id:this.studyId}, study:{id:this.studyId},
}).then(() => { }).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(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()
}) })

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

@ -36,7 +36,7 @@
</el-form-item> </el-form-item>
<div class="right-btn"> <div class="right-btn">
<el-form-item> <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-button icon="el-icon-refresh" @click="reset">{{ $t('form.reset') }}</el-button>
</el-form-item> </el-form-item>
</div> </div>
@ -250,7 +250,7 @@ export default {
del(row) { del(row) {
this.operate = 'del' this.operate = 'del'
this.operateRow = row 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) { doDel(signInfo) {
this.$modal.loading() this.$modal.loading()
@ -270,7 +270,7 @@ export default {
gd(row) { gd(row) {
this.operate = 'gd' this.operate = 'gd'
this.operateRow = row 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) { doGd(signInfo) {
this.$modal.loading() this.$modal.loading()
@ -290,7 +290,7 @@ export default {
js(row) { js(row) {
this.operate = 'js' this.operate = 'js'
this.operateRow = row 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) { doJs(signInfo) {
this.$modal.loading() this.$modal.loading()
@ -310,7 +310,7 @@ export default {
jd(row) { jd(row) {
this.operate = 'jd' this.operate = 'jd'
this.operateRow = row 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) { doJd(signInfo) {
this.$modal.loading() this.$modal.loading()
@ -330,7 +330,7 @@ export default {
jy(row) { jy(row) {
this.operate = 'jy' this.operate = 'jy'
this.operateRow = row 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) { doJy(signInfo) {
this.$modal.loading() this.$modal.loading()

Loading…
Cancel
Save