Browse Source

Merge branch 'master' into ouqian

ouqian
欧骞 1 month ago
parent
commit
f6ad413f96
33 changed files with 665 additions and 341 deletions
  1. +9
    -0
      src/api/business/sj/sj.js
  2. +3
    -0
      src/lang/en/business/study/studyMethod.js
  3. +7
    -1
      src/lang/en/template/commonTemplate.js
  4. +2
    -0
      src/lang/zh/business/study/studyMethod.js
  5. +7
    -1
      src/lang/zh/template/commonTemplate.js
  6. +18
    -0
      src/utils/index.js
  7. +3
    -2
      src/views/business/comps/template/TemplateTable.vue
  8. +0
    -232
      src/views/business/comps/template/comps/dl/SYWZPZJHB.vue
  9. +2
    -2
      src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue
  10. +441
    -0
      src/views/business/comps/template/comps/gsp/GSP001.vue
  11. +3
    -2
      src/views/business/comps/template/comps/gsp/GSP002.vue
  12. +2
    -2
      src/views/business/comps/template/comps/gsp/GSP003.vue
  13. +2
    -2
      src/views/business/comps/template/comps/gsp/GSP004.vue
  14. +2
    -2
      src/views/business/comps/template/comps/gsp/GSP009.vue
  15. +2
    -2
      src/views/business/comps/template/comps/gsp/GSP010.vue
  16. +1
    -3
      src/views/business/comps/template/comps/sp/SP001.vue
  17. +1
    -2
      src/views/business/comps/template/comps/sp/SP003.vue
  18. +1
    -2
      src/views/business/comps/template/comps/sp/SP00456.vue
  19. +70
    -53
      src/views/business/comps/template/mixins/templateMixin.js
  20. +50
    -10
      src/views/business/form/nonTrial/comp/syffList.vue
  21. +2
    -1
      src/views/business/resource/gsp/comps/gsp/Xq.vue
  22. +2
    -1
      src/views/business/resource/gyzj/comps/gyzj/Xq.vue
  23. +2
    -1
      src/views/business/resource/mjy/comps/mjy/Xq.vue
  24. +12
    -3
      src/views/business/resource/sj/comps/Xq.vue
  25. +10
    -7
      src/views/business/study/comp/syffList.vue
  26. +3
    -2
      src/views/business/study/comp/syjList.vue
  27. +1
    -1
      src/views/business/study/comp/wzlb/bacteriaList.vue
  28. +2
    -2
      src/views/business/study/comp/wzlb/cellList.vue
  29. +1
    -1
      src/views/business/study/comp/wzlb/gspList.vue
  30. +1
    -1
      src/views/business/study/comp/wzlb/gyzjList.vue
  31. +1
    -1
      src/views/business/study/comp/wzlb/mjyList.vue
  32. +1
    -1
      src/views/business/study/comp/wzlb/sjList.vue
  33. +1
    -1
      src/views/business/study/comp/ytbd/Bj.vue

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

@ -177,3 +177,12 @@ export function sj_configurationCompleted(data) {
data: data
})
}
// 详情pdf导出
export function exportDetail(query) {
return request({
url: '/system/business/sj/exportDetail',
method: 'get',
params: query
})
}

+ 3
- 0
src/lang/en/business/study/studyMethod.js View File

@ -17,6 +17,9 @@ export default {
qmsj: 'Date',
qmyy: 'Meaning of Signature',
remark: 'Comment',
ts: '',
gbts: 'This method has been closed, no need to read!',
jcyd: '坚持阅读',
qyd:'Go Read',
gb: 'Close',
sfgb: 'Closed',

+ 7
- 1
src/lang/en/template/commonTemplate.js View File

@ -20,6 +20,12 @@ export default {
jtpz:'阶梯配制',
// 字段标签
sjInfo:'Reagent Info',
gyzjInfo:'Formulation Info',
gspInfo:'Specimen Info',
gspsywzInfo:'试验物资信息',
mjyInfo:'Controlled Drug Info',
storageConditionLabel: 'Storage Condition',
testName: 'Study Name',
testNumber: 'Study Number',
@ -64,7 +70,7 @@ export default {
reagentExpireDate: 'Expiration Date',
// 物资信息列
wzName: 'Name',
wzName: 'Name/Code',
wzCode: 'Item Number',
wzConcentration: 'Concentration',
wzSource: 'Source',

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

@ -20,6 +20,8 @@ export default {
qyd:'去阅读',
gb: '关闭',
sfgb: '是否关闭',
gbts: '该方法已关闭,无需阅读!',
jcyd: '坚持阅读',
s: '是',
f: '否',
qrgb: '确认关闭?',

+ 7
- 1
src/lang/zh/template/commonTemplate.js View File

@ -4,6 +4,12 @@ export default {
// 标签
baseInfo: '试验基本信息',
sjInfo:'试验试剂信息',
gyzjInfo:'给药制剂信息',
gspInfo:'供试品信息',
gspsywzInfo:'试验物资信息',
mjyInfo:'麻精药信息',
reagentInfo: '试验试剂信息',
wzInfo: '试验物资信息',
instrumentInfo: '仪器使用信息',
@ -65,7 +71,7 @@ export default {
reagentExpireDate: '失效日',
// 物资信息列
wzName: '名称',
wzName: '名称/代号',
wzCode: '编号',
wzConcentration: '浓度',
wzSource: '物资来源',

+ 18
- 0
src/utils/index.js View File

@ -563,3 +563,21 @@ export function isRegent(item, fieldCode = 'type') {
]
return typeList.includes(type)
}
/**
* 估算字符串在 Excel 中的显示宽度简单规则中文字符算2英文字符算1
* @param {string} str 要计算的字符串
* @returns {number} 估算宽度
*/
export function getStringWidth(str) {
if (!str) return 0
let width = 0
for (let char of str.toString()) {
// 中文字符范围(可根据需要扩展)
if (/[\u4e00-\u9fa5]/.test(char)) {
width += 2
} else {
width += 1
}
}
return width
}

+ 3
- 2
src/views/business/comps/template/TemplateTable.vue View File

@ -33,6 +33,7 @@ import SP009 from "./comps/sp/SP009.vue";
import SP0019 from "./comps/sp/SP0019.vue";
import Demo from "./comps/sp/Demo.vue";
//
import GSP001 from "./comps/gsp/GSP001.vue";
import GSP002 from "./comps/gsp/GSP002.vue";
import GSP003 from "./comps/gsp/GSP003.vue";
import GSP004 from "./comps/gsp/GSP004.vue";
@ -98,7 +99,7 @@ export default {
////
MJYLQSQD, SYWZPZJHB, DMYPPZJLB,
//
GSP002, GSP003, GSP004,GSP009, GSP010,
GSP001,GSP002, GSP003, GSP004,GSP009, GSP010,
//
SP001, SP003, SP00456,SP007, SP008, SP009,SP0019,
// PCR
@ -188,7 +189,7 @@ export default {
'SP019': 'SP0019',
//
'GSP001': 'DMYPPZJLB',
'GSP001': 'GSP001',
'GSP002': 'GSP002',
'GSP003': 'GSP003',
'GSP004': 'GSP004',

+ 0
- 232
src/views/business/comps/template/comps/dl/SYWZPZJHB.vue View File

@ -1,232 +0,0 @@
<!-- 试验物质配制计划表 -->
<template>
<div>
<div class="detail-container">
<div class="detail-title"><img src="@/assets/images/detail-title.png">试验物质配制计划表<img
src="@/assets/images/detail-title.png" /></div>
<div class="detail-content">
<div class="content">
<BaseInfoFormPackage label="试验基本信息" ref="baseInfoRef" :formConfig="baseInfoFormConfig"
:formData="formData" />
<LineLabel label="计划信息" />
<div class="template-form-item">
<BaseInfoFormPackage ref="stepFormPackageRef" :formConfig="stepFormConfig" @blur="onHandleBlur"
:formData="formData" />
<CustomTable @blur="onHandleTableBlur" :showHeaderSelect="fillType === 'actFill'" :showOperation="fillType === 'actFill'" ref="stepTableRef" :columns="stepColumns"
:formData="formData" >
<template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion :fillType="fillType" :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="deleteRow"></TableOpertaion>
</template>
</CustomTable>
<div class="add-row">
<el-button type="primary" plain @click="addRow">添加行</el-button>
</div>
</div>
<BaseInfoFormPackage label="特别说明" ref="remarkRef" :formConfig="remarkConig" :formData="formData" />
</div>
</div>
<button @click="onSave">保存</button>
</div>
</div>
</template>
<script>
import BaseInfoFormPackage from "@/components/Template/BaseInfoFormPackage";
import LineLabel from "@/components/Template/LineLabel";
import templateMixin from "../../mixins/templateMixin";
import CustomTable from '@/components/Template/CustomTable.vue';
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
export default {
name: "SYWZPZJHB",
components: { BaseInfoFormPackage, LineLabel, CustomTable, TableOpertaion },
mixins: [templateMixin],
props: {
value: {
type: {},
default: () => { },
},
fillType: {
type: String,
default: 'preFill',
},
},
watch: {
value: {
immediate: true,
handler(v) {
}
},
fillType: {
immediate: true,
handler(v) {
console.log(v,"fillType")
}
},
},
computed: {
//
remarkConig() {
return [
{
type: "cellItem",
config: {
remark: {
label: "",
type: "textarea",
fillType: "actFill",
span: 1,
placeholder: "请输入特别说明",
maxlength: 1000,
rows: 5
}
}
}
]
},
//
baseInfoFormConfig() {
return [
{
type: "cardItem",
config: {
studyMc: {
label: "试验名称",
type: "input",
disabled: true,
},
studySn: {
label: "试验编号",
type: "input",
disabled: true,
},
}
},
]
},
//
stepFormConfig() {
return [
{
type: "step",
config: {
drawTime: {
label: "领取时间",
type: "input",
fillType: "actFill",
},
analyzeTime: {
label: "分析时间",
type: "input",
fillType: "actFill",
},
testSubstance: {
label: "试验物质",
type: "input",
fillType: "actFill",
},
configFrequency: {
label: "配置频率",
type: "input",
fillType: "actFill",
},
}
}
]
},
//
stepColumns() {
return [
{
label: "给药剂量或组别",
prop: "startSolutionCode",
width: 280,
bodyType: "input",
bodyFillType: "actFill",
bodyMaxlength: 50,
},
{
label: "配制浓度",
prop: "preparationConcentration",
width: 280,
headerSelectKey: "preparationConcentrationUnit",
fillType: "actFill",
headerOptions: this.getDictOptions('business_nddw'),
bodyType: "input",
bodyFillType: "actFill",
bodyMaxlength: 50,
},
{
label: "配制体积",
prop: "preparationVolume",
width: 280,
headerSelectKey: "preparationVolumeUnit",
fillType: "actFill",
headerOptions: this.getDictOptions('business_tjdw'),
bodyType: "input",
bodyFillType: "actFill",
bodyMaxlength: 50,
},
]
},
},
data() {
return {
selectReagentVisible: false,
subSolutionVisible: false,
currentSubKey: "",//key
dataSource: [],
stepTableDataSource: [],
};
},
mounted() {
},
methods: {
async getFormData() {
const baseData = await this.$refs.baseInfoRef.getFormData();
const stepFormData = await this.$refs.stepFormPackageRef.getFormData();
const stepTableFormData = await this.$refs.stepTableRef.getFormData();
const remarkData = await this.$refs.remarkRef.getFormData();
if(!stepTableFormData.stepTableFormData.length){
this.$message.error("请添加计划信息");
return;
}
return {
...baseData,
...stepFormData,
...remarkData,
...stepTableFormData
}
},
async onSave() {
const formData = await this.getFormData();
// const formData = await this.$refs.stepTableRef.getFormData();
console.log(formData, "formData")
},
//
addRow() {
this.$refs.stepTableRef.addRow({
startSolutionCode: "",
preparationConcentration: "",
preparationVolume: "",
})
}
}
};
</script>
<style rel="stylesheet/scss" lang="scss">
.mt-20 {
margin-top: 20px;
}
.add-row{
display: flex;
justify-content: center;
padding: 20px 0;
}
</style>

+ 2
- 2
src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue View File

@ -10,8 +10,8 @@
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<!-- 基本信息 -->
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resource" />
<TableList label="template.common.wzInfo" :columns="sywzColumns" :dataSource="resourceWz" />
<TableList label="template.common.gyzjInfo" :columns="gyzjColumns" :dataSource="resourceGyzj" />
<TableList label="template.common.sjInfo" :columns="sjColumns" :dataSource="resourceSj" />
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<!-- 存储条件 -->
<BaseInfoFormPackage fieldItemLabel="template.common.storageCondition"

+ 441
- 0
src/views/business/comps/template/comps/gsp/GSP001.vue View File

@ -0,0 +1,441 @@
<!-- 供试品部试剂配制记录表 -->
<template>
<div>
<div class="detail-container">
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{ formData.bdmc }}<img
src="@/assets/images/detail-title.png" /></div>
<div class="detail-content">
<div class="content">
<!-- 基本信息 -->
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<!-- 基本信息 -->
<TableList label="template.common.sjInfo" :columns="sjColumns" :dataSource="resourceSj" />
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<!-- 存储条件 -->
<BaseInfoFormPackage fieldItemLabel="template.common.storageCondition"
label="template.common.storageCondition" ref="storageConditionRef"
:formConfig="storageFormConfig" :formData="formData" />
<LineLabel label="template.common.operationSteps" />
<!-- 操作步骤 -->
<div v-for="(formConfig, ladderIndex) in formData.formConfigs" :key="'ladder_' + ladderIndex">
<div class="template-form-item">
<div class="config-header-right">
<el-button v-if="fillType === 'preFill'" type="primary" @click="handleAddFormConfig">{{
$t('template.common.addBtn') }}</el-button>
<el-button v-if="fillType === 'preFill' && formData.formConfigs.length > 1"
type="danger" @click="handleDeleteFormConfig(ladderIndex)">{{
$t('template.common.deleteBtn')
}}</el-button>
<el-button class="print-btn" v-if="fillType === 'actFill'" type="primary"
@click="printTag">{{ $t('template.common.bqdy') }}</el-button>
</div>
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps"
:ref="`formConfigStepFormPackageRef_${ladderIndex}`" :formConfig="stepFormConfig"
:formData="formConfig" />
<Step class="mt-0 s-container" :ref="`formStepRef_${ladderIndex}`"
:formData="formConfig.stepData" :fieldItemLabel="$t('template.common.jtpz')"
:prefixKey="'form_' + ladderIndex"></Step>
</div>
</div>
<!-- 备注 -->
<BaseInfoFormPackage fieldItemLabel="template.common.remark" label="template.common.remark"
ref="remarkRef" :formConfig="remarkConig" :formData="formData" />
</div>
</div>
</div>
</div>
</template>
<script>
import BaseInfoFormPackage from "@/components/Template/BaseInfoFormPackage";
import LineLabel from "@/components/Template/LineLabel";
import TableList from "@/components/Template/Table";
import Step from "@/components/Template/Step";
import templateMixin from "../../mixins/templateMixin";
import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSn } from '@/api/template';
import { EventBus } from "@/utils/eventBus";
import { uniqeResource } from "@/utils/calUnitTools";
import { debounce } from 'lodash-es'
import { duplicateResource, getExpireDate } from "@/utils/index.js";
export default {
name: "DMYPPZJLB",
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable },
mixins: [templateMixin],
props: {
fillType: {
type: String,
default: 'preFill',
},
},
computed: {
//
storageFormConfig() {
return [
{
type: "conditionItem",
config: {
storageCondition: {
label: 'template.common.storageConditionLabel',
type: "select",
fillType: "preFill",
options: this.getDictOptions("business_cctj"),
otherCode: "storageConditionOther",
},
}
}
];
},
//
remarkConig() {
return [
{
type: "cellItem",
config: {
remark: {
label: "",
type: "textarea",
fillType: "actFill",
span: 1,
placeholder: 'template.common.remarkPlaceholder',
maxlength: 1000,
rows: 5
}
}
}
]
},
//
baseInfoFormConfig() {
return [
{
type: "cardItem",
config: {
studyMc: {
label: 'template.common.testName',
type: "input",
disabled: true,
},
studySn: {
label: 'template.common.testNumber',
type: "input",
disabled: true,
},
methodCode: {
label: 'template.common.methodCode',
type: "input",
fillType: "preFill",
maxlength: 50
},
versionNum: {
label: 'template.common.versionNumber',
type: "inputNumber",
fillType: "actFill",
prepend: "V",
maxlength: 50
},
}
},
{
type: "conditionItem",
label: 'template.common.testConfigurationConditions',
config: {
pre: {
label: 'template.common.preFill',
type: "select",
multiple: true,
fillType: "preFill",
options: this.getDictOptions('business_pztj'),
otherCode: "preOther",
},
act: {
label: 'template.common.actualFill',
type: "select",
fillType: "actFill",
otherCode: "actOther",
multiple: true,
compareTo: "pre",
options: this.getDictOptions('business_pztj')
}
}
},
{
type: "cellItem",
label: 'template.common.configurationTime',
config: {
startDate: {
label: 'template.common.startTime',
type: "input",
},
endDate: {
label: 'template.common.endTime',
type: "input",
},
}
}
]
},
//
stepFormConfig() {
return [
{
type: "step",
config: {
targetName: {
label: 'template.common.targetSolutionName',
type: "input",
fillType: "preFill",
maxlength: 50
},
targetCode: {
label: 'template.common.targetSolutionCode',
type: "input",
subType: "span",
fillType: "preFill",
subKey: "targetCodeSn",
maxlength: 20
},
targetPreConcentration: {
label: 'template.common.targetPreConcentration',
type: "inputNumber",
subType: "select",
subKey: "targetPreConcentrationUnit",
fillType: "preFill",
subOptions: this.getDictOptions('business_nddw'),
maxlength: 10,
selectTo: "targetActConcentrationUnit",//
},
targetActConcentration: {
label: 'template.common.targetActConcentration',
type: "inputNumber",
subType: "select",
subKey: "targetActConcentrationUnit",
compareTo: "targetPreConcentration",//
fillType: "actFill",
subFillType: "preFill",
subOptions: this.getDictOptions('business_nddw'),
copyFrom: "targetPreConcentration",//
maxlength: 10
},
targetPreVolume: {
label: 'template.common.targetPreVolume',
type: "inputNumber",
subType: "select",
subKey: "targetPreVolumeUnit",
subOptions: this.getDictOptions('business_tjdw'),
fillType: "preFill",
maxlength: 10,
selectTo: "targetActVolumeUnit",//
},
targetActVolume: {
label: 'template.common.targetActVolume',
type: "inputNumber",
subType: "select",
subKey: "targetActVolumeUnit",
fillType: "actFill",
subFillType: "preFill",
subOptions: this.getDictOptions('business_tjdw'),
compareTo: "targetPreVolume",//
copyFrom: "targetPreVolume",//
maxlength: 10
},
effectivePeriod: {
label: 'template.common.effectivePeriod',
type: "inputNumber",
subType: "select",
subKey: "effectivePeriodUnit",
fillType: "preFill",
subOptions: this.getDictOptions('business_yxqdw'),
maxlength: 10
},
expireDate: {
label: 'template.common.expireDate',
type: "input",
},
}
}
]
},
},
data() {
return {
formData: {}
};
},
mounted() {
const formData = this.getFormDataByTemplateData();
if (!formData.targetCodeSn && this.fillType === "actFill") {
this.getCode(formData);
} else {
if (!this.formData.formConfigs) {
this.$set(this.formData, 'formConfigs', []);
this.formData.formConfigs.push({
formConfigs: [],
});
}
}
},
methods: {
//
handleAddFormConfig() {
if (!this.formData.formConfigs) {
this.$set(this.formData, 'formConfigs', []);
}
this.formData.formConfigs.push({
formConfigs: [],
});
},
//
handleDeleteFormConfig(index) {
this.formData.formConfigs.splice(index, 1);
},
//todo
printTag() {
const printConfig = this.getBasePrintConfig();
const { storageCondition, targetCodeSn } = this.formData;
printConfig["存储条件"] = storageCondition;
printConfig["编号"] = targetCodeSn;
EventBus.$emit('showTagPrintDialog', { printConfig })
},
//
getCode: debounce(async function (v) {
if (this.formData.formConfigs && this.formData.formConfigs.length > 0) {
for (let i = 0; i < this.formData.formConfigs.length; i++) {
let item = this.formData.formConfigs[i]
const result = await getLatestSn({
count: 1,
pre: item.targetCode,
type: 1
})
if (result.code == 200) {
this.$refs[`formConfigStepFormPackageRef_${i}`][0].updateFormData("targetCodeSn", result.data[0])
}
}
}
}, 100),
//
getFilledFormData() {
const baseData = this.$refs.baseInfoRef.getFilledFormData();
const conditionData = this.$refs.storageConditionRef.getFilledFormData();
const formConfigsData = [];
if (this.formData.formConfigs && this.formData.formConfigs.length > 0) {
for (let i = 0; i < this.formData.formConfigs.length; i++) {
const formData = this.$refs[`formConfigStepFormPackageRef_${i}`][0].getFilledFormData();
const stepData = this.$refs[`formStepRef_${i}`][0].getFilledFormData();
if(this.formData.startDate&&formData.effectivePeriod&&formData.effectivePeriodUnit){
formData.expireDate=getExpireDate(this.formData.startDate, formData.effectivePeriod, formData.effectivePeriodUnit)
}
formConfigsData.push({
...formData,
...stepData,
});
}
}
const remarkData = this.$refs.remarkRef.getFilledFormData();
return {
...baseData,
...conditionData,
formConfigs: formConfigsData,
...remarkData
}
},
//
async validFields() {
//
let refsToValidate = ["baseInfoRef", "storageConditionRef", "remarkRef"];
if (this.formData.formConfigs && this.formData.formConfigs.length > 0) {
for (let i = 0; i < this.formData.formConfigs.length; i++) {
refsToValidate.push(`formConfigStepFormPackageRef_${i}`);
refsToValidate.push(`formStepRef_${i}`);
}
}
return await this.validFormFields(refsToValidate);
},
//
async getFormData() {
//
const validFlag = await this.validFields();
if (!validFlag) {
return false;
}
let content = this.getFilledFormData();
return content;
},
//使
getResource() {
let content = this.getFilledFormData();
//resource
let tmpResource = []
if (this.fillType === "actFill") {
let tableList = content.formConfigs
if (tableList && tableList.length > 0) {
for (let i = 0; i < tableList.length; i++) {
let item = tableList[i]
tmpResource.push({
mc: item.targetName,
bh: item.targetCode + item.targetCodeSn,
ph: '',
ndz: item.targetActConcentration + item.targetActConcentrationUnit,
nd: item.targetActConcentration,
nddw: item.targetActConcentrationUnit,
ly: 'ELN配制',
sxrq: item.expireDate,
kc: item.targetActVolume,
kcdw: item.targetActVolumeUnit,
syl: null,
type: null,
elnType: this.product,
syldw: item.targetActVolumeUnit,
yxzq: item.effectivePeriod,
yxzqdw: item.effectivePeriodUnit,
})
}
}
}
//使
const stepResource = this.getStepResource()
this.resourceTmp = uniqeResource(tmpResource, stepResource.sjResource || [])
this.yqResourceTmp = stepResource.yqResource || []
return this.resourceTmp;
},
//使
getStepResource() {
const sjResource = [], yqResource = [];
if (this.formData.formConfigs && this.formData.formConfigs.length > 0) {
for (let i = 0; i < this.formData.formConfigs.length; i++) {
const paralleResource = this.$refs[`formStepRef_${i}`][0].getStepResource();
sjResource.push(...paralleResource.sjResource);
yqResource.push(...paralleResource.yqResource);
}
}
//
const { sj, yq } = duplicateResource(sjResource, yqResource)
return { sjResource: sj, yqResource: yq };
},
}
};
</script>
<style rel="stylesheet/scss" lang="scss">
.mt-20 {
margin-top: 20px;
}
.print-btn {
margin-bottom: 20px;
}
.config-header-right {
margin-bottom: 15px;
font-weight: bold;
font-size: 16px;
color: #303133;
text-align: right;
width: 100%;
}
</style>

+ 3
- 2
src/views/business/comps/template/comps/gsp/GSP002.vue View File

@ -8,8 +8,9 @@
<div class="content">
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resource" />
<TableList label="template.common.wzInfo" :columns="sywzColumns" :dataSource="resourceWz" />
<TableList label="template.common.gspsywzInfo" :columns="gspColumns" :dataSource="resourceGsp" v-if="sn!='GSP002'"/>
<TableList label="template.common.sjInfo" :columns="sjColumns" :dataSource="resourceSj" />
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<LineLabel v-if="sn=='GSP002'" label="template.common.operationSteps" />

+ 2
- 2
src/views/business/comps/template/comps/gsp/GSP003.vue View File

@ -10,8 +10,8 @@
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<!-- 基本信息 -->
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resource" />
<TableList label="template.common.wzInfo" :columns="sywzColumns" :dataSource="resourceWz" />
<TableList label="template.common.gspsywzInfo" :columns="gspColumns" :dataSource="resourceGsp" />
<TableList label="template.common.sjInfo" :columns="sjColumns" :dataSource="resourceSj" />
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<!-- 存储条件 -->
<BaseInfoFormPackage fieldItemLabel="template.common.storageCondition"

+ 2
- 2
src/views/business/comps/template/comps/gsp/GSP004.vue View File

@ -8,8 +8,8 @@
<div class="content">
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resource" />
<TableList label="template.common.wzInfo" :columns="sywzColumns" :dataSource="resourceWz" />
<TableList label="template.common.gspsywzInfo" :columns="gspColumns" :dataSource="resourceGsp" />
<TableList label="template.common.sjInfo" :columns="sjColumns" :dataSource="resourceSj" />
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<!-- 计算公式 -->
<BaseInfoFormPackage fieldItemLabel="template.gsp.GSP003.calcConditionLabel"

+ 2
- 2
src/views/business/comps/template/comps/gsp/GSP009.vue View File

@ -8,8 +8,8 @@
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resource" />
<TableList label="template.common.wzInfo" :columns="sywzColumns" :dataSource="resourceWz" />
<TableList label="template.common.gspsywzInfo" :columns="gspColumns" :dataSource="resourceGsp" />
<TableList label="template.common.sjInfo" :columns="sjColumns" :dataSource="resourceSj" />
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<LineLabel :label="sn=='GSP009'?'template.gsp.gsp009.xtsyx':'template.gsp.gsp011.cl'" />

+ 2
- 2
src/views/business/comps/template/comps/gsp/GSP010.vue View File

@ -10,8 +10,8 @@
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<!-- 基本信息 -->
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resource" />
<TableList label="template.common.wzInfo" :columns="sywzColumns" :dataSource="resourceWz" />
<TableList label="template.common.gspsywzInfo" :columns="gspColumns" :dataSource="resourceGsp" />
<TableList label="template.common.sjInfo" :columns="sjColumns" :dataSource="resourceSj" />
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<LineLabel label="template.common.operationSteps" />
<!-- 操作步骤 -->

+ 1
- 3
src/views/business/comps/template/comps/sp/SP001.vue View File

@ -8,9 +8,7 @@
<div class="content">
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resource" />
<TableList label="template.common.wzInfo" :columns="sywzColumns" :dataSource="resourceWz"
v-if="resourceWz.length > 0" />
<TableList label="template.common.sjInfo" :columns="sjColumns" :dataSource="resourceSj" />
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<BaseInfoFormPackage fieldItemLabel="template.common.storageCondition"
label="template.common.storageCondition" ref="storageConditionRef"

+ 1
- 2
src/views/business/comps/template/comps/sp/SP003.vue View File

@ -8,8 +8,7 @@
<div class="content">
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resource" />
<TableList label="template.common.wzInfo" :columns="sywzColumns" :dataSource="resourceWz" />
<TableList label="template.common.sjInfo" :columns="sjColumns" :dataSource="resourceSj" />
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<!-- <BaseInfoFormPackage label="存储条件" ref="storageConditionRef" :formConfig="storageFormConfig"
:formData="formData" /> -->

+ 1
- 2
src/views/business/comps/template/comps/sp/SP00456.vue View File

@ -8,8 +8,7 @@
<div class="content">
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resource" />
<TableList label="template.common.wzInfo" :columns="sywzColumns" :dataSource="resourceWz" />
<TableList label="template.common.sjInfo" :columns="sjColumns" :dataSource="resourceSj" />
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" />
<BaseInfoFormPackage fieldItemLabel="template.common.storageCondition"
label="template.common.storageCondition" ref="storageConditionRef"

+ 70
- 53
src/views/business/comps/template/mixins/templateMixin.js View File

@ -1,10 +1,11 @@
import moment from 'moment'
import { getLatestSn, getLatestSnArr } from '@/api/template';
import { isValueEmpty } from '@/utils/index';
import { isValueEmpty, getStringWidth } from '@/utils/index';
import { isCommonUnit } from "@/utils/conTools";
import { sj_subpackage, sj_startConfiguration, sj_configurationCompleted } from '@/api/business/sj/sj';
import {convertConcentration} from "@/utils/conConverter";//浓度单位转换
import {volumeConverter} from "@/utils/volConverter";//体积单位转换
import * as XLSX from 'xlsx'
export default {
dicts: [
'business_pztj',
@ -64,12 +65,28 @@ export default {
if (v.resource) {
//type 类型:1:试剂;3:给药制剂;5:麻精药;7:供试品
//试验试剂信息 试剂
this.resource = _.filter(JSON.parse(v.resource), function (o) {
// this.resource = _.filter(JSON.parse(v.resource), function (o) {
// return o.type == 1 || o.elnType == 1
// })
// //试验物资信息 供试品、给药制剂、麻精药
// this.resourceWz = _.filter(JSON.parse(v.resource), function (o) {
// return o.type == 3 || o.type == 5 || o.type == 7 || o.elnType == 3|| o.elnType == 5 || o.elnType == 7
// })
//试验试剂信息
this.resourceSj = _.filter(JSON.parse(v.resource), function (o) {
return o.type == 1 || o.elnType == 1
})
//试验物资信息 供试品、给药制剂、麻精药
this.resourceWz = _.filter(JSON.parse(v.resource), function (o) {
return o.type == 3 || o.type == 5 || o.type == 7 || o.elnType == 3|| o.elnType == 5 || o.elnType == 7
//供试品信息
this.resourceGsp = _.filter(JSON.parse(v.resource), function (o) {
return o.type == 7 || o.elnType == 7
})
//给药制剂信息
this.resourceGyzj = _.filter(JSON.parse(v.resource), function (o) {
return o.type == 3 || o.elnType == 3
})
//麻精药信息
this.resourceMjy = _.filter(JSON.parse(v.resource), function (o) {
return o.type == 5 || o.elnType == 5
})
}
if (v.yqResource) {
@ -135,14 +152,51 @@ export default {
formData: {},
templateDetail: {},
product: null,//产物:1:试剂;3:给药制剂;5:麻精药
resource: [], //试验试剂信息
resourceWz: [], //物资信息
resource: [], //试验试剂信息--弃用
resourceWz: [], //物资信息--弃用
resourceSj: [],//试验试剂信息
resourceGsp: [],//供试品信息
resourceGyzj: [],//给药制剂信息
resourceMjy: [],//麻精药信息
yqResource: [], //仪器信息
jcbList: [], //检测板信息
resourceTmp: [],//试验试剂信息提交用
yqResourceTmp: [], //仪器信息提交用
jcbListTmp: [], //检测板信息提交用
sjColumns: [
{ label: 'template.common.reagentName', prop: "mc" },//名称
{ label: 'template.common.reagentCode', prop: "bh" },//编号
{ label: 'template.common.reagentNo', prop: "ph" },//批号 试剂,供试品才有
{ label: 'template.common.concentration', prop: "ndz" },//浓度
{ label: 'template.common.source', prop: "ly" },//来源
{ label: 'template.common.reagentExpireDate', prop: "sxrq" },//失效日期
],
gspColumns: [
{ label: 'template.common.wzName', prop: "mc" },//名称
{ label: 'template.common.wzCode', prop: "bh" },//编号
{ label: 'template.common.reagentNo', prop: "ph" },//批号 试剂,供试品才有
{ label: 'template.common.wzSource', prop: "ly" },//来源
{ label: 'template.common.wzConcentration', prop: "ndz" },//浓度
{ label: 'template.common.wzExpireDate', prop: "sxrq" },//失效日期
],
gyzjColumns: [
{ label: 'template.common.wzName', prop: "mc" },//名称
{ label: 'template.common.wzCode', prop: "bh" },//编号
{ label: 'template.common.wzSource', prop: "ly" },//来源
{ label: 'template.common.wzConcentration', prop: "ndz" },//浓度
{ label: 'template.common.wzExpireDate', prop: "sxrq" },//失效日期
],
mjyColumns: [
{ label: 'template.common.wzName', prop: "mc" },//名称
{ label: 'template.common.wzCode', prop: "bh" },//编号
{ label: 'template.common.wzSource', prop: "ly" },//来源
{ label: 'template.common.wzConcentration', prop: "ndz" },//浓度
{ label: 'template.common.wzExpireDate', prop: "sxrq" },//失效日期
],
//弃用
sysjColumns: [
{ label: 'template.common.reagentName', prop: "mc" },//名称
{ label: 'template.common.reagentCode', prop: "bh" },//编号
@ -151,6 +205,7 @@ export default {
{ label: 'template.common.source', prop: "ly" },//来源
{ label: 'template.common.reagentExpireDate', prop: "sxrq" },//失效日期
],
//弃用
sywzColumns: [
{ label: 'template.common.wzName', prop: "mc" },//名称
{ label: 'template.common.wzCode', prop: "bh" },//编号
@ -550,54 +605,16 @@ export default {
}
},
// 导出excel模板
exportExcel(rows, title) {
exportExcel(headerArray, title = '导出模板') {
this.$modal.loading()
// 生成表头
let tableHtml = '<table border="1" class="html-tabel">';
tableHtml += '<tr style="background:#eee;">';
rows.forEach(item => {
tableHtml += '<th style="text-align: center;">' + item + '</th>';
});
tableHtml += '</tr></table>'; // 正确闭合
// Worksheet 名称
const worksheet = title ? title : '导入模板';
// 完整的 HTML 模板(包含编码声明和 Excel 兼容命名空间)
const exportTemplate = `<!DOCTYPE html>
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<!--[if gte mso 9]>
<xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>${worksheet}</x:Name>
<x:WorksheetOptions>
<x:DisplayGridlines/>
</x:WorksheetOptions>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
</x:ExcelWorkbook>
</xml>
<![endif]-->
</head>
<body>
${tableHtml}
</body>
</html>`;
// 使用 Blob 生成文件(指定 MIME 类型为 application/vnd.ms-excel)
const blob = new Blob([exportTemplate], { type: 'application/vnd.ms-excel;charset=utf-8' });
const link = document.createElement('a');
link.href = URL.createObjectURL(blob);
link.download = worksheet + '.xls';
link.click();
URL.revokeObjectURL(link.href); // 释放内存
const ws = XLSX.utils.aoa_to_sheet([headerArray]);
const colWidths = headerArray.map(cell => getStringWidth(cell) + 2);
ws['!cols'] = colWidths.map(width => ({ wch: width }));
const wb = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(wb, ws, 'Sheet1');
XLSX.writeFile(wb, `${title}.xlsx`);
this.$modal.closeLoading()
},
}
}

+ 50
- 10
src/views/business/form/nonTrial/comp/syffList.vue View File

@ -40,7 +40,7 @@
</div>
<div class="tbbd-content">
<el-row class="add-box">
<el-row class="add-box" v-ifan class="s">="searchForm.studyStatus < 5">
<el-col>
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:studyMethod:upload']">{{
$t('page.business.study.studyMethod.scff') }}</el-button>
@ -51,20 +51,30 @@
<el-table-column :label="$t('page.business.study.studyMethod.ffmc')" prop="ffmc" />
<el-table-column :label="$t('page.business.study.studyMethod.cjsj')" prop="createTime" />
<el-table-column :label="$t('page.business.study.studyMethod.cjr')" prop="userMc" />
<el-table-column :label="$t('page.business.study.studyMethod.zt')" prop="status" align="center" width="100">
<el-table-column :label="$t('page.business.study.studyMethod.zt')" prop="status" align="center">
<template slot-scope="scope">
<span v-if="scope.row.zt != 0">{{ $t('page.business.study.studyMethod.yidu') }}</span>
<span v-if="scope.row.zt === 0">{{ $t('page.business.study.studyMethod.weidu') }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200">
<el-table-column :label="$t('page.business.study.studyMethod.sfgb')" prop="status" align="center">
<template slot-scope="scope">
<span v-if="scope.row.status === 1">{{ $t('page.business.study.studyMethod.s') }}</span>
<span v-if="scope.row.status === 10">{{ $t('page.business.study.studyMethod.f') }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('form.operate')" align="left" fixed="right">
<template slot-scope="scope" v-if="searchForm.studyStatus < 5">
<!-- 阅读 -->
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:studyMethod:read']">{{
$t('page.business.study.studyMethod.yuedu') }}</el-button>
<!-- 导出 -->
<el-button type="text" @click="showExport(scope.row)" v-hasPermi="['business:studyMethod:download']">{{
$t('page.business.study.studyMethod.daochu') }}</el-button>
<!-- 关闭 -->
<el-button type="text" @click="handleSign(scope.row, 'page.business.study.studyMethod.gb')"
v-if="scope.row.userId == id && scope.row.status == 10">{{
$t('page.business.study.studyMethod.gb') }}</el-button>
</template>
</el-table-column>
</el-table>
@ -76,15 +86,18 @@
<!-- 新增 -->
<Xz key="Xz" ref="Xz" @callback="search" />
<!-- 详情 -->
<Xq key="Xq" ref="Xq" v-show="showDetail" @close="xqClose" />
<Xq key="Xq" ref="Xq" v-show="showDetail" @close="xqClose" />
<!-- 签名 -->
<Sign ref="refSign" @callback="doSign" />
</div>
</template>
<script>
import { studyMethod_list } from '@/api/business/study/studyMethod'
import { studyMethod_list, studyMethod_close } from '@/api/business/study/studyMethod'
import Xz from "./syff/Xz";
import Xq from "./syff/Xq";
import Sign from "@/views/business/comps/common/sign";
import { mapGetters } from 'vuex'
import moment from "moment";
export default {
@ -108,6 +121,7 @@ export default {
this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.id
this.searchForm.studyStatus = newVal.status
this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader
this.search()
@ -116,7 +130,7 @@ export default {
deep: true
}
},
components: { Xz, Xq },
components: { Xz, Xq, Sign },
data() {
return {
showDetail: false,
@ -134,6 +148,9 @@ export default {
startDate: '',
endDate: ''
},
form: {
id: null,
},
loading: false,
total: 0,
list: [],
@ -142,7 +159,20 @@ export default {
},
created() { },
methods: {
handleSign(row, qmyy) {
this.form.id = row.id
let title = this.$t(qmyy)
this.$refs.refSign.show(title, title, false, false, true, false)
},
doSign(val) {
let params = _.merge({}, this.form, val)
this.$modal.loading()
studyMethod_close(params).then(res => {
this.getList()
}).finally(() => {
this.$modal.closeLoading()
})
},
search() {
this.searchForm.pageNum = 1
this.getList()
@ -170,9 +200,19 @@ export default {
this.$refs.Xz.show(this.study);
},
detail(row) {
this.showDetail = true
this.$emit('showDetail', this.showDetail)
this.$refs.Xq.show(row)
//
if (row.status == 1) {
this.$modal.confirm(this.$t('page.business.study.studyMethod.gbts')).then(() => {
this.showDetail = true
this.$emit('showDetail', this.showDetail)
this.$refs.Xq.show(row)
}).catch(() => { });
} else {
this.showDetail = true
this.$emit('showDetail', this.showDetail)
this.$refs.Xq.show(row)
}
},
showExport(row) {
this.showDetail = true

+ 2
- 1
src/views/business/resource/gsp/comps/gsp/Xq.vue View File

@ -135,6 +135,7 @@ export default {
components: { JcgjList, },
data() {
return {
appTitle: process.env.VUE_APP_TITLE,
form: {},
tzList: [],
totalTz: 0,
@ -159,7 +160,7 @@ export default {
methods: {
exportPDF() {
this.$modal.loading()
exportDetail({ id: this.form.id,lang:this.$store.getters.language.split("_")[0] }).then(response => {
exportDetail({ id: this.form.id,lang:this.$store.getters.language.split("_")[0],version:this.appTitle }).then(response => {
window.open(process.env.VUE_APP_FILE_DOMAIN +response.msg)
this.saveSimpleLog({name:this.form.bh,nameEn:this.form.bh,jcmc:'供试品导出',jcmcEn:'Test Item Export'})
this.$modal.closeLoading()

+ 2
- 1
src/views/business/resource/gyzj/comps/gyzj/Xq.vue View File

@ -162,6 +162,7 @@ export default {
data() {
return {
form: {},
appTitle: process.env.VUE_APP_TITLE,
tzList: [],
totalTz: 0,
loadingTz: true,
@ -185,7 +186,7 @@ export default {
methods: {
exportExcel() {
this.$modal.loading()
exportDetail({ id: this.form.id,lang:this.$store.getters.language.split("_")[0] }).then(response => {
exportDetail({ id: this.form.id,lang:this.$store.getters.language.split("_")[0],version:this.appTitle }).then(response => {
window.open(process.env.VUE_APP_FILE_DOMAIN +response.msg)
this.$modal.closeLoading()
}).finally(() => {

+ 2
- 1
src/views/business/resource/mjy/comps/mjy/Xq.vue View File

@ -160,6 +160,7 @@ export default {
data() {
return {
form: {},
appTitle: process.env.VUE_APP_TITLE,
tzList: [],
totalTz: 0,
loadingTz: true,
@ -183,7 +184,7 @@ export default {
methods: {
exportExcel() {
this.$modal.loading()
exportDetail({ id: this.form.id,lang:this.$store.getters.language.split("_")[0] }).then(response => {
exportDetail({ id: this.form.id,lang:this.$store.getters.language.split("_")[0],version:this.appTitle }).then(response => {
window.open(process.env.VUE_APP_FILE_DOMAIN +response.msg)
this.$modal.closeLoading()
}).finally(() => {

+ 12
- 3
src/views/business/resource/sj/comps/Xq.vue View File

@ -9,6 +9,7 @@
</div>
<div class="right-top">
<el-button @click="cancel()">{{ $t('form.cancel') }}</el-button>
<el-button @click="exportPDF()">{{ $t('form.export') }}</el-button>
</div>
</div>
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{ $t('page.business.resource.sj.sjxq')
@ -157,7 +158,7 @@
</template>
<script>
import { sj_info, tzList, jcgjList } from "@/api/business/sj/sj"
import { sj_info, tzList, jcgjList, exportDetail } from "@/api/business/sj/sj"
import JcgjList from "@/views/business/comps/common/JcgjList";
export default {
@ -187,8 +188,16 @@ export default {
created() {
},
methods: {
exportExcel() {
alert('todo')
exportPDF() {
this.$modal.loading()
exportDetail({ id: this.form.id,lang:this.$store.getters.language.split("_")[0],version:this.appTitle }).then(response => {
window.open(process.env.VUE_APP_FILE_DOMAIN +response.msg)
this.saveSimpleLog({name:this.form.bh,nameEn:this.form.bh,jcmc:'试剂导出',jcmcEn:'Reagent Export'})
this.$modal.closeLoading()
}).finally(() => {
this.$modal.closeLoading()
})
},
jcgjListHandleQuery(val) {
this.$modal.loading()

+ 10
- 7
src/views/business/study/comp/syffList.vue View File

@ -40,7 +40,7 @@
</div>
<div class="tbbd-content">
<el-row class="add-box">
<el-row class="add-box" v-ifan class="s">="searchForm.studyStatus < 5">
<el-col>
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:studyMethod:upload']">{{
$t('page.business.study.studyMethod.scff') }}</el-button>
@ -51,20 +51,20 @@
<el-table-column :label="$t('page.business.study.studyMethod.ffmc')" prop="ffmc" />
<el-table-column :label="$t('page.business.study.studyMethod.cjsj')" prop="createTime" />
<el-table-column :label="$t('page.business.study.studyMethod.cjr')" prop="userMc" />
<el-table-column :label="$t('page.business.study.studyMethod.zt')" prop="status" align="center" width="100">
<el-table-column :label="$t('page.business.study.studyMethod.zt')" prop="status" align="center">
<template slot-scope="scope">
<span v-if="scope.row.zt != 0">{{ $t('page.business.study.studyMethod.yidu') }}</span>
<span v-if="scope.row.zt === 0">{{ $t('page.business.study.studyMethod.weidu') }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('page.business.study.studyMethod.sfgb')" prop="status" align="center" width="100">
<el-table-column :label="$t('page.business.study.studyMethod.sfgb')" prop="status" align="center">
<template slot-scope="scope">
<span v-if="scope.row.status === 1">{{ $t('page.business.study.studyMethod.s') }}</span>
<span v-if="scope.row.status === 10">{{ $t('page.business.study.studyMethod.f') }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200">
<template slot-scope="scope">
<el-table-column :label="$t('form.operate')" align="left" fixed="right">
<template slot-scope="scope" v-ifan class="s">="searchForm.studyStatus < 5">
<!-- 阅读 -->
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:studyMethod:read']">{{
$t('page.business.study.studyMethod.yuedu') }}</el-button>
@ -121,6 +121,7 @@ export default {
this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.id
this.searchForm.studyStatus = newVal.status
this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader
this.search()
@ -201,8 +202,10 @@ export default {
detail(row) {
//
if (row.status == 1) {
this.$modal.confirm('该方法已关闭,无需阅读!').then(() => {
this.$modal.confirm(this.$t('page.business.study.studyMethod.gbts')).then(() => {
this.showDetail = true
this.$emit('showDetail', this.showDetail)
this.$refs.Xq.show(row)
}).catch(() => { });
} else {
this.showDetail = true

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

@ -42,7 +42,7 @@
</div>
<div class="tbbd-content">
<el-row class="add-box">
<el-row class="add-box" v-if="searchForm.studyStatus < 5">
<el-col>
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:studyRoom:add']">{{
$t('page.business.study.studyRoom.xzqy') }}</el-button>
@ -69,7 +69,7 @@
</template>
</el-table-column>
<el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200">
<template slot-scope="scope">
<template slot-scope="scope" v-if="searchForm.studyStatus < 5">
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:studyRoom:ljjl']">{{
$t('page.business.study.studyRoom.xq') }}</el-button>
<!-- 笼具记录 -->
@ -136,6 +136,7 @@ export default {
this.searchForm.studySn = newVal.sn
this.searchForm.studyMc = newVal.name
this.searchForm.studyId = newVal.id
this.searchForm.studyStatus = newVal.status
this.searchForm.studySubjectId = newVal.studySubjectId
this.leader = newVal.leader
this.search()

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

@ -55,7 +55,7 @@
<el-table-column :label="$t('form.operate')" fixed="right" align="center"
class-name="small-padding fixed-width" width="250px">
<template slot-scope="scope">
<template slot-scope="scope" v-ifan class="s">="queryParams.studyStatus < 5">
<!-- 详情 -->
<el-button type="text" @click="handleCz(scope.row)" >{{
$t('page.business.study.cell.cz') }}</el-button>

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

@ -55,9 +55,9 @@
<el-table-column :label="$t('form.operate')" fixed="right" align="center"
class-name="small-padding fixed-width" width="250px">
<template slot-scope="scope">
<template slot-scope="scope" v-ifan class="s">="queryParams.studyStatus < 5">
<!-- 详情 -->
<el-button type="text" @click="handleCz(scope.row)" >{{
<el-button type="text" @click="handleCz(scope.row)" >{{
$t('page.business.study.cell.cz') }}</el-button>
</template>
</el-table-column>

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

@ -76,7 +76,7 @@
<el-button type="text" @click="handleXq(scope.row)"
v-hasPermi="['business:studyMjy:xq', 'business:nonTrialMjy:xq', 'business:drugMjy:xq']">{{
$t('page.business.resource.gsp.detail') }}</el-button>
<template v-if="queryParams.studyStatus != 5">
<template v-if="queryParams.studyStatus < 5">
<template v-if="scope.row.syghzt == 1">
<!-- 处置 -->
<el-button type="text" @click="handleCz(scope.row)"

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

@ -85,7 +85,7 @@
<el-button type="text" @click="handleXq(scope.row)"
v-hasPermi="['business:studyGyzj:xq', 'business:nonTrialGyzj:xq', 'business:drugGyzj:xq']">{{
$t('page.business.resource.gyzj.detail') }}</el-button>
<template v-if="queryParams.studyStatus != 5">
<template v-if="queryParams.studyStatus < 5">
<template v-if="scope.row.zjzt == 3 && scope.row.cczt == 1">
<template v-if="scope.row.ghzt == 1">
<!-- 归还 -->

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

@ -86,7 +86,7 @@
<el-button type="text" @click="handleXq(scope.row)"
v-hasPermi="['business:studyMjy:xq', 'business:nonTrialMjy:xq', 'business:drugMjy:xq']">{{
$t('page.business.resource.mjy.detail') }}</el-button>
<template v-if="queryParams.studyStatus != 5">
<template v-if="queryParams.studyStatus < 5">
<template v-if="scope.row.zjzt == 3 && scope.row.cczt == 1">
<!-- 处置药剂 -->
<el-button type="text" @click="handleCzyj(scope.row)"

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

@ -74,7 +74,7 @@
<el-button type="text" @click="handleXq(scope.row)" v-hasPermi="['business:resource:sj:xq']">{{
$t('page.business.resource.sj.detail') }}</el-button>
</template>
<template v-if="queryParams.studyStatus != 5">
<template v-if="queryParams.studyStatus < 5">
<!-- 处置 -->
<template v-if="scope.row.zjzt == 1">
<el-button type="text" @click="handleCz(scope.row)" v-hasPermi="['business:resource:sj:cz']">{{

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

@ -228,7 +228,7 @@ export default {
this.$modal.loading()
studyFormPre_bcOnly(this.form).then(response => {
this.form = response.data
this.templateData.bdmc = this.form.bdmc
this.templateData = deepClone(this.form)
this.showIndex = 2
this.$modal.closeLoading()
}).finally(() => {

Loading…
Cancel
Save