Browse Source

fix:[试验管理][预填,填报,申请,计划]翻译

master
15881625488@163.com 4 days ago
parent
commit
59bfd58252
15 changed files with 81 additions and 185 deletions
  1. +0
    -9
      src/api/business/study/studyFormPlan.js
  2. +1
    -1
      src/lang/en/business/resource/resource.js
  3. +15
    -17
      src/lang/en/business/study/studyFormApply.js
  4. +16
    -18
      src/lang/en/business/study/studyFormFill.js
  5. +19
    -23
      src/lang/en/business/study/studyFormPlan.js
  6. +15
    -14
      src/lang/en/business/study/studyFormPre.js
  7. +1
    -1
      src/lang/zh/business/study/studyFormApply.js
  8. +1
    -1
      src/lang/zh/business/study/studyFormFill.js
  9. +1
    -1
      src/lang/zh/business/study/studyFormPlan.js
  10. +3
    -1
      src/lang/zh/business/study/studyFormPre.js
  11. +3
    -15
      src/views/business/study/comp/jhbd/Fh.vue
  12. +2
    -2
      src/views/business/study/comp/jhbd/Sy.vue
  13. +1
    -78
      src/views/business/study/comp/jhbd/Xq.vue
  14. +0
    -1
      src/views/business/study/comp/wzlb.vue
  15. +3
    -3
      src/views/business/study/comp/ytbdList.vue

+ 0
- 9
src/api/business/study/studyFormPlan.js View File

@ -83,15 +83,6 @@ export function studyFormPlan_fhjj(data) {
}) })
} }
//通过
export function studyFormPlan_tg(data) {
return request({
url: '/system/business/studyFormPlan/tg',
method: 'post',
data: data
})
}
//审阅 //审阅
export function studyFormPlan_sy(data) { export function studyFormPlan_sy(data) {
return request({ return request({

+ 1
- 1
src/lang/en/business/resource/resource.js View File

@ -13,7 +13,7 @@ export default {
jyz: 'Checked-out' jyz: 'Checked-out'
}, },
jlzt: { jlzt: {
wsd: '未锁定',
wsd: 'Unlocked',
ysd: 'Locked', ysd: 'Locked',
dgd: 'Pending Archiving', dgd: 'Pending Archiving',
gd: 'Archived', gd: 'Archived',

+ 15
- 17
src/lang/en/business/study/studyFormApply.js View File

@ -1,6 +1,6 @@
export default { export default {
jcsz:'Setup', jcsz:'Setup',
bdtb:'表单填报',
bdtb:'Form filling',
xzbd:'Create', xzbd:'Create',
fh:'QC', fh:'QC',
jq:'Sign', jq:'Sign',
@ -10,23 +10,22 @@ export default {
qrfz:'Confirm', qrfz:'Confirm',
gc:'View', gc:'View',
bdsm:'Description', bdsm:'Description',
zc:'暂存',
zc:'Save',
next:'Next', next:'Next',
save:'Save', save:'Save',
pre:'Pre', pre:'Pre',
submit:'Submit', submit:'Submit',
bdnr:'表单内容',
qmxx:'签名信息',
qmr:'Signed By',
qmyy:'签名意义',
qmsj:'Date',
bzyy:'备注原因',
qmxx: 'Signature Information',
qmr: 'Signed By',
qmyy: 'Purpose',
qmsj: 'Date',
bzyy: 'Comment',
jcgj:'Track Record', jcgj:'Track Record',
cjjl:'创建记录',
cjjl:'Create',
sfbl:'Is Back Entry', sfbl:'Is Back Entry',
yes:'Yes', yes:'Yes',
no:'No', no:'No',
tjjl:'提交记录',
tjjl:'Submit Record',
sqfz:'申请废止', sqfz:'申请废止',
dcqbjcgj:'导出(全部稽查轨迹)', dcqbjcgj:'导出(全部稽查轨迹)',
dclcjcgj:'导出(流程稽查轨迹)', dclcjcgj:'导出(流程稽查轨迹)',
@ -37,25 +36,24 @@ export default {
tbz:'On-going', tbz:'On-going',
ytj:'Submitted', ytj:'Submitted',
ywc:'Completed', ywc:'Completed',
wtg:'未通过',
wtg:'Rejected',
yfh:'Approved', yfh:'Approved',
dfz:'Pending Abandon', dfz:'Pending Abandon',
yfz:'Abandoned', yfz:'Abandoned',
sh:'审核',
sh:'Approve',
guancha:'View', guancha:'View',
jiaqian:'Sign', jiaqian:'Sign',
qrfz:'Confirm', qrfz:'Confirm',
reason:'Reason', reason:'Reason',
reject:'Reject', reject:'Reject',
approve:'Approve', approve:'Approve',
szqk:'生长情况',
rybg:'Change of Person', rybg:'Change of Person',
shenyue:'Review', shenyue:'Review',
fhjj:'复核拒绝',
fhtg:'复核通过',
shjj:'审核拒绝',
shtg:'审核通过',
fhjj:'Review rejected',
fhtg:'Review approved',
shjj:'Reject',
shtg:'Approve',
tongguo:'Approve', tongguo:'Approve',
} }

+ 16
- 18
src/lang/en/business/study/studyFormFill.js View File

@ -1,6 +1,6 @@
export default { export default {
jcsz:'Setup', jcsz:'Setup',
bdtb:'表单填报',
bdtb:'Form filling',
xzbd:'Create', xzbd:'Create',
fh:'QC', fh:'QC',
jq:'Sign', jq:'Sign',
@ -10,23 +10,22 @@ export default {
qrfz:'Confirm', qrfz:'Confirm',
gc:'View', gc:'View',
bdsm:'Description', bdsm:'Description',
zc:'暂存',
zc:'Save',
next:'Next', next:'Next',
save:'Save', save:'Save',
pre:'Pre', pre:'Pre',
submit:'Submit', submit:'Submit',
bdnr:'表单内容',
qmxx:'签名信息',
qmr:'Signed By',
qmyy:'签名意义',
qmsj:'Date',
bzyy:'备注原因',
qmxx: 'Signature Information',
qmr: 'Signed By',
qmyy: 'Purpose',
qmsj: 'Date',
bzyy: 'Comment',
jcgj:'Track Record', jcgj:'Track Record',
cjjl:'创建记录',
cjjl:'Create',
sfbl:'Is Back Entry', sfbl:'Is Back Entry',
yes:'Yes', yes:'Yes',
no:'No', no:'No',
tjjl:'提交记录',
tjjl:'Submit Record',
sqfz:'申请废止', sqfz:'申请废止',
dcqbjcgj:'导出(全部稽查轨迹)', dcqbjcgj:'导出(全部稽查轨迹)',
dclcjcgj:'导出(流程稽查轨迹)', dclcjcgj:'导出(流程稽查轨迹)',
@ -41,17 +40,16 @@ export default {
dfz:'Pending Abandon', dfz:'Pending Abandon',
yfz:'Abandoned', yfz:'Abandoned',
guancha:'View',
guancha:'View',
jiaqian:'Sign', jiaqian:'Sign',
qrfz:'Confirm', qrfz:'Confirm',
reason:'Reason', reason:'Reason',
reject:'Reject', reject:'Reject',
approve:'Approve', approve:'Approve',
szqk:'生长情况',
rybg:'Change of Person',
shenyue:'Review',
fhjj:'复核拒绝',
fhtg:'复核通过',
tongguo:'Approve',
szqk:'生长情况',
rybg:'Change of Person',
shenyue:'Review',
fhjj:'Review rejected',
fhtg:'Review approved',
tongguo:'Approve',
} }

+ 19
- 23
src/lang/en/business/study/studyFormPlan.js View File

@ -1,56 +1,52 @@
export default { export default {
jcsz: 'Setup', jcsz: 'Setup',
bdtb: '表单填报',
bdtb: 'Preset Design',
xzbd: 'Create', xzbd: 'Create',
fh: 'QC', fh: 'QC',
ghgsr: 'Change Owner', ghgsr: 'Change Owner',
sy: 'Review', sy: 'Review',
gc: 'View', gc: 'View',
bdsm: 'Description', bdsm: 'Description',
zc: '暂存',
next:'Next',
save:'Save',
pre:'Pre',
submit:'Submit',
bdnr: '表单内容',
qmxx: '签名信息',
zc: 'Save',
next:'Next',
save:'Save',
pre:'Pre',
submit:'Submit',
qmxx: 'Signature Information',
qmr: 'Signed By', qmr: 'Signed By',
qmyy: '签名意义',
qmsj: '签名时间',
bzyy: '备注原因',
qmyy: 'Purpose',
qmsj: 'Date',
bzyy: 'Comment',
jcgj: 'Track Record', jcgj: 'Track Record',
cjjl: '创建记录',
xzpzjhb:'新增配置计划表',
xzpzjhb:'Create',
yes:'Yes', yes:'Yes',
no:'No', no:'No',
shryId:'复核人员',
tjjl: '提交记录',
shryId:'QC User',
tjjl: 'Submit Record',
dcqbjcgj: '导出(全部稽查轨迹)', dcqbjcgj: '导出(全部稽查轨迹)',
dclcjcgj: '导出(流程稽查轨迹)', dclcjcgj: '导出(流程稽查轨迹)',
dcbjjcgj: '导出(编辑稽查轨迹)', dcbjjcgj: '导出(编辑稽查轨迹)',
dcxgjcgj: '导出(修改稽查轨迹)', dcxgjcgj: '导出(修改稽查轨迹)',
dcbhsjgj: '导出(不含数据轨迹)', dcbhsjgj: '导出(不含数据轨迹)',
rybg: 'Change of Person', rybg: 'Change of Person',
tbz: 'On-going', tbz: 'On-going',
ytj: 'Submitted提交',
ytj: 'Submitted',
ywcfh: 'Completed & Approved', ywcfh: 'Completed & Approved',
ywc: 'Completed', ywc: 'Completed',
reject: 'Reject', reject: 'Reject',
reason: 'Reason', reason: 'Reason',
approve: 'Approve', approve: 'Approve',
shenyue: 'Review', shenyue: 'Review',
fhjj: '复核拒绝',
fhtg: '复核通过',
fhjj:'Review rejected',
fhtg:'Review approved',
tongguo: 'Approve', tongguo: 'Approve',
syxx: '试验信息',
syxx: 'Information',
symc: 'Study Name', symc: 'Study Name',
sybh: 'Study Number', sybh: 'Study Number',
syfzr: 'Study Director', syfzr: 'Study Director',
cjsj: 'Creation Date', cjsj: 'Creation Date',
sdsy: 'Lock Study', sdsy: 'Lock Study',
syjj: '试验简介',
xz: '新增配置计划表',
syjj: 'Description',
xz: 'Create',
syxkxx: 'Discipline' syxkxx: 'Discipline'
} }

+ 15
- 14
src/lang/en/business/study/studyFormPre.js View File

@ -2,33 +2,34 @@ export default {
jcsz:'Setup', jcsz:'Setup',
bdsj:'Preset Design', bdsj:'Preset Design',
xzbd:'Create', xzbd:'Create',
zc:'暂存',
zc:'Save',
next:'Next', next:'Next',
save:'Save', save:'Save',
submit:'Submit', submit:'Submit',
bdsm:'Description', bdsm:'Description',
tjysb:'提交预设表',
shryId:'审核人员',
tjysb:'Submit',
shryId:'Reviewer',
fzrsh:'是否需要试验负责人审核', fzrsh:'是否需要试验负责人审核',
approve:'Approve', approve:'Approve',
reject:'Reject', reject:'Reject',
shtg:'审核通过',
shjj:'审核拒绝',
shtg:'Approve',
shjj:'Reject',
pre:'Pre', pre:'Pre',
tb:'填报', tb:'填报',
bdnr:'表单内容',
qmxx:'签名信息',
qmr:'Signed By',
qmyy:'签名意义',
qmsj:'Date',
bzyy:'备注原因',
qmxx: 'Signature Information',
qmr: 'Signed By',
qmyy: 'Purpose',
qmsj: 'Date',
bzyy: 'Comment',
jcgj:'Track Record', jcgj:'Track Record',
cjjl:'创建记录',
cjjl:'Create',
xjbd:'Create Preset', xjbd:'Create Preset',
fzbdxz:'复制表单选择',
sssyfsy:'所属试验/非试验',
fzbdxz:'Copy Existing Preset',
sssyfsy:'Study/Non-study',
fzbd:'Copy Preset', fzbd:'Copy Preset',
yulan:'Preview', yulan:'Preview',
fzbj:'Copy and Edit', fzbj:'Copy and Edit',
ts:'是否确定用该预填模板进行实际填报?', ts:'是否确定用该预填模板进行实际填报?',
cjxbd:'Create Preset',
fzyybd:'Copy Existing Preset',
} }

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

@ -10,7 +10,7 @@ export default {
qrfz:'确认废止', qrfz:'确认废止',
gc:'观察', gc:'观察',
bdsm:'表单说明', bdsm:'表单说明',
zc:'暂存',
zc:'Save',
next:'下一步', next:'下一步',
pre:'上一步', pre:'上一步',
save:'保存', save:'保存',

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

@ -10,7 +10,7 @@ export default {
qrfz:'确认废止', qrfz:'确认废止',
gc:'观察', gc:'观察',
bdsm:'表单说明', bdsm:'表单说明',
zc:'暂存',
zc:'Save',
next:'下一步', next:'下一步',
pre:'上一步', pre:'上一步',
save:'保存', save:'保存',

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

@ -7,7 +7,7 @@ export default {
sy: '审阅', sy: '审阅',
gc: '观察', gc: '观察',
bdsm: '表单说明', bdsm: '表单说明',
zc: '暂存',
zc: 'Save',
next: '下一步', next: '下一步',
pre:'上一步', pre:'上一步',
save: '保存', save: '保存',

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

@ -2,7 +2,7 @@ export default {
jcsz:'基础设置', jcsz:'基础设置',
bdsj:'表单设计', bdsj:'表单设计',
xzbd:'新增表单', xzbd:'新增表单',
zc:'暂存',
zc:'Save',
next:'下一步', next:'下一步',
pre:'上一步', pre:'上一步',
save:'保存', save:'保存',
@ -32,4 +32,6 @@ export default {
fzbj:'复制编辑', fzbj:'复制编辑',
yulan:'预览', yulan:'预览',
ts:'是否确定用该预填模板进行实际填报?', ts:'是否确定用该预填模板进行实际填报?',
cjxbd:'创建新表单',
fzyybd:'复制已有表单',
} }

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

@ -14,8 +14,6 @@
}}</el-button> }}</el-button>
<el-button type="primary" @click="showApprove('复核通过')">{{ $t('page.business.study.studyFormPlan.fhtg') <el-button type="primary" @click="showApprove('复核通过')">{{ $t('page.business.study.studyFormPlan.fhtg')
}}</el-button> }}</el-button>
<el-button type="primary" @click="showApprove('通过')">{{ $t('page.business.study.studyFormPlan.tongguo')
}}</el-button>
</div> </div>
</div> </div>
<div class="edit-content"> <div class="edit-content">
@ -110,7 +108,7 @@
</template> </template>
<script> <script>
import { studyFormPlan_fhtg, studyFormPlan_fhjj, studyFormPlan_tg, 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 { mapGetters } from 'vuex'
import JcgjList from "@/views/business/comps/common/JcgjList"; import JcgjList from "@/views/business/comps/common/JcgjList";
import TemplateTable from '@/views/business/comps/template/TemplateTable'; import TemplateTable from '@/views/business/comps/template/TemplateTable';
@ -211,9 +209,7 @@ export default {
this.openTitle = 'page.business.study.studyFormPlan.fhtg' this.openTitle = 'page.business.study.studyFormPlan.fhtg'
} else if (qmyy == '复核拒绝') { } else if (qmyy == '复核拒绝') {
this.openTitle = 'page.business.study.studyFormPlan.fhjj' this.openTitle = 'page.business.study.studyFormPlan.fhjj'
} else if (qmyy == '通过') {
this.openTitle = 'page.business.study.studyFormPlan.tongguo'
}
}
}, },
resetApprove() { resetApprove() {
this.resetForm("formApprove") this.resetForm("formApprove")
@ -254,15 +250,7 @@ export default {
}).finally(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()
}) })
} else {
studyFormPlan_tg(this.formApprove).then(response => {
this.openApprove = false
this.$modal.closeLoading()
this.$emit('close')
}).finally(() => {
this.$modal.closeLoading()
})
}
}
} }
} }
} }

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

@ -212,9 +212,9 @@ export default {
this.formApprove.bdnr = JSON.stringify(content) this.formApprove.bdnr = JSON.stringify(content)
this.$modal.loading() this.$modal.loading()
studyFormPlan_sy(this.formApprove).then(response => { studyFormPlan_sy(this.formApprove).then(response => {
this.$emit('close')
this.openSubmit = false
this.openApprove = false
this.$modal.closeLoading() this.$modal.closeLoading()
this.$emit('close')
}).finally(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()
}) })

+ 1
- 78
src/views/business/study/comp/jhbd/Xq.vue View File

@ -10,8 +10,6 @@
</div> </div>
<div class="right-top"> <div class="right-top">
<el-button @click="cancel()">{{ $t('form.close') }}</el-button> <el-button @click="cancel()">{{ $t('form.close') }}</el-button>
<el-button type="primary" v-if="form.bdzt === 5 && form.tbzt === 1" @click="openApprove = true">{{
$t('page.business.study.studyFormPlan.tb') }}</el-button>
</div> </div>
</div> </div>
<div class="edit-content "> <div class="edit-content ">
@ -62,56 +60,11 @@
</div> </div>
</div> </div>
<!-- 填报 -->
<el-dialog :title="$t('page.business.study.studyFormPlan.cjjl')" :visible.sync="openApprove" width="500px"
append-to-body :close-on-click-modal="false">
<el-form ref="formApprove" :model="formApprove" :rules="rulesApprove" label-width="120px">
<el-alert :title="$t('page.business.study.studyFormPlan.ts')" :closable="false" type="success">
</el-alert>
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.qmyy')" prop="qmyy">
<el-input type="text" :value="formApprove.qmyy" maxlength="50" disabled
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.remark')" prop="remark">
<el-input type="textarea" v-model="formApprove.remark" :rows="5" maxlength="500"
:placeholder="$t('form.placeholderInput')">
</el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.signer')">
<el-input type="text" v-model="nickName" maxlength="50" disabled
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" v-model="formApprove.qmrmm" maxlength="20"
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="approve">{{ $t('form.confirm') }}</el-button>
<el-button @click="openApprove = false">{{ $t('form.cancel') }}</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { studyFormPlan_tb, studyFormPlan_info, studyFormPlan_jcgj, studyFormPlan_qmxx } from "@/api/business/study/studyFormPlan"
import { studyFormPlan_info, studyFormPlan_jcgj, studyFormPlan_qmxx } from "@/api/business/study/studyFormPlan"
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import JcgjList from "@/views/business/comps/common/JcgjList"; import JcgjList from "@/views/business/comps/common/JcgjList";
import TemplateTable from '@/views/business/comps/template/TemplateTable'; import TemplateTable from '@/views/business/comps/template/TemplateTable';
@ -121,20 +74,6 @@ export default {
components: { JcgjList, TemplateTable }, components: { JcgjList, TemplateTable },
data() { data() {
return { return {
openApprove: false,
formApprove: {
id: null,
qmyy: '创建记录',
remark: '',
qmrmm: '',
},
rulesApprove: {
qmrmm: [{
required: true,
message: ' ',
trigger: 'blur'
}]
},
qmxxList: [], qmxxList: [],
totalQmxx: 0, totalQmxx: 0,
loadingQmxx: true, loadingQmxx: true,
@ -176,7 +115,6 @@ export default {
created() { created() {
}, },
methods: { methods: {
dcqbjcgj() { dcqbjcgj() {
alert('todo') alert('todo')
}, },
@ -230,7 +168,6 @@ export default {
show(row) { show(row) {
this.reset() this.reset()
this.$modal.loading() this.$modal.loading()
this.formApprove.id = row.id
this.queryParamsJcgj.formId = row.id this.queryParamsJcgj.formId = row.id
this.queryParamsQmxx.formId = row.id this.queryParamsQmxx.formId = row.id
studyFormPlan_info({ id: row.id }).then(response => { studyFormPlan_info({ id: row.id }).then(response => {
@ -241,20 +178,6 @@ export default {
}).finally(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()
}) })
},
approve() {
this.$refs["formApprove"].validate(valid => {
if (valid) {
this.$modal.loading()
studyFormPlan_tb(this.formApprove).then(response => {
this.$emit('close')
this.openApprove = false
this.$modal.closeLoading()
}).finally(() => {
this.$modal.closeLoading()
})
}
})
} }
} }
} }

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

@ -33,7 +33,6 @@
<div class="syxx-content"> <div class="syxx-content">
</div> </div>
<Sign ref="syxxSignRef" @callback="doSign" />
</div> </div>
</template> </template>

+ 3
- 3
src/views/business/study/comp/ytbdList.vue View File

@ -120,11 +120,11 @@
<el-row> <el-row>
<el-col :span="24" style="text-align: center; margin-top: 50px;"> <el-col :span="24" style="text-align: center; margin-top: 50px;">
<el-button type="primary" style="width: 80%; height: 40px;" @click="add" plain <el-button type="primary" style="width: 80%; height: 40px;" @click="add" plain
icon="el-icon-circle-plus">创建新表单</el-button>
icon="el-icon-circle-plus">{{ $t('page.business.study.studyFormPre.cjxbd') }}</el-button>
</el-col> </el-col>
<el-col :span="24" style="text-align: center; margin: 50px 0px;"> <el-col :span="24" style="text-align: center; margin: 50px 0px;">
<el-button type="primary" style="width: 80%;height: 40px;" @click="copy" plain <el-button type="primary" style="width: 80%;height: 40px;" @click="copy" plain
icon="el-icon-document-copy">复制已有表单</el-button>
icon="el-icon-document-copy">{{ $t('page.business.study.studyFormPre.fzyybd') }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
@ -150,7 +150,7 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item> <el-form-item>
<el-button type="primary" @click="previewFzbd" :disabled="!(formXz.formPreId)">预览</el-button>
<el-button type="primary" @click="previewFzbd" :disabled="!(formXz.formPreId)">{{ $t('page.business.study.studyFormPre.yulan') }}</el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

Loading…
Cancel
Save