@@ -79,17 +83,19 @@ export default {
}
},
filters: {
- getFillType(type) {
+
+
+ },
+ methods: {
+ getFillTypeStyle(type) {
+ const {fillType} = this.item;
const typeObj = {
actFill: "orange-border",//实际填写的边框颜色
green: "green-border",
preFill: "blue-border",//预填写的边框颜色
}
- return typeObj[type] || ""
+ return typeObj[fillType] || ""
},
-
- },
- methods: {
//获取question图标颜色
getQuestionColor() {
//gray 灰色 green 绿色 orange 橙色
@@ -101,6 +107,12 @@ export default {
this.$emit('input', value);
this.$emit('change', value);
},
+ handleClickable(item,event){
+ if(item.fillType !== 'actFill'){
+ return
+ }
+ this.$emit("clickable",item)
+ },
//判断是否显示复制按钮
getIsShowCopyIcon() {
const { copyFrom } = this.item;
@@ -186,7 +198,7 @@ export default {
.orange-border {
- input,
+ .el-input-group__prepend,input,
textarea {
border-color: #f9c588;
@@ -207,7 +219,7 @@ export default {
.green-border {
- input,
+ .el-input-group__prepend,input,
textarea {
border-color: green;
@@ -228,7 +240,7 @@ export default {
.blue-border {
- input,
+ .el-input-group__prepend,input,
textarea {
border-color: #4ea2ff;
@@ -246,4 +258,24 @@ export default {
}
}
+.clickable{
+ cursor: pointer;
+ width: auto;
+ margin-left: 10px;
+ min-width: 100px;
+ height: 28px;
+ border-radius: 4px;
+ border:1px solid #4ea2ff;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 14px;
+ font-weight: normal;
+ color: #606266;
+ &.disabled{
+ cursor: not-allowed;
+ color: #c0c4cc;
+ background-color: #f5f7fa;
+ }
+}
\ No newline at end of file
diff --git a/src/components/Template/Step.vue b/src/components/Template/Step.vue
index cd60912..0af4db2 100644
--- a/src/components/Template/Step.vue
+++ b/src/components/Template/Step.vue
@@ -81,8 +81,8 @@ export default {
name: 'Step',
props: {
formData: {
- type: Object,
- default: () => ({stepData:[]})
+ type: Array,
+ default: () => []
}
},
data() {
@@ -164,7 +164,7 @@ export default {
},
deep: true
},
- 'formData.stepData': {
+ 'formData': {
handler(newVal) {
console.log('newVal', newVal)
if(!newVal || newVal.length === 0) return
@@ -174,7 +174,8 @@ export default {
formData: step.formData || {}
}))
},
- deep: true
+ deep: true,
+ immediate: true
}
},
methods: {
@@ -233,7 +234,7 @@ export default {
type: step.type,
...step.formData
}))
- resolve({stepData})
+ resolve(stepData)
})
},
diff --git a/src/lang/en/template/commonTemplate.js b/src/lang/en/template/commonTemplate.js
index 0d522f3..02a80de 100644
--- a/src/lang/en/template/commonTemplate.js
+++ b/src/lang/en/template/commonTemplate.js
@@ -52,5 +52,10 @@ export default {
instrumentName: 'Instrument Name',
instrumentModel: 'Instrument Model',
instrumentCode: 'Instrument Number',
- nextTestDate: 'Next Test/Calibration/Verification Date'
+ nextTestDate: 'Next Test/Calibration/Verification Date',
+
+ // 试验物质配制计划列
+ administrationDoseOrGroup: 'Administration Dose or Group',
+ preparationConcentration: 'Preparation Concentration',
+ preparationVolume: 'Preparation Volume'
}
diff --git a/src/lang/zh/template/commonTemplate.js b/src/lang/zh/template/commonTemplate.js
index ec056bd..483d48d 100644
--- a/src/lang/zh/template/commonTemplate.js
+++ b/src/lang/zh/template/commonTemplate.js
@@ -52,5 +52,10 @@ export default {
instrumentName: '仪器名称',
instrumentModel: '仪器型号',
instrumentCode: '仪器编号',
- nextTestDate: '下次测试/校准/检定日期'
+ nextTestDate: '下次测试/校准/检定日期',
+
+ // 试验物质配制计划列
+ administrationDoseOrGroup: '给药剂量或组别',
+ preparationConcentration: '配制浓度',
+ preparationVolume: '配制体积'
}
diff --git a/src/views/business/comps/template/TemplateTable.vue b/src/views/business/comps/template/TemplateTable.vue
index 7bce4a8..a5ad308 100644
--- a/src/views/business/comps/template/TemplateTable.vue
+++ b/src/views/business/comps/template/TemplateTable.vue
@@ -13,11 +13,12 @@ import SP001 from './comps/sp/SP001';
import SWYPFXRYPZB from "./comps/sp/SWYPFXRYPZB.vue";
import SWYPFXCBYPZB from "./comps/sp/SWYPFXCBYPZB.vue";
import SWYPBQGZYZBB from "./comps/sp/SWYPBQGZYZBB.vue";
+import SYWZPZJHB from "./comps/dl/SYWZPZJHB.vue";
import Demo from "./comps/sp/Demo.vue";
export default {
name: "TemplateTable",
components: {
- SP001,SWYPFXRYPZB ,Demo,SWYPFXCBYPZB,SWYPBQGZYZBB,
+ SP001,SWYPFXRYPZB ,Demo,SWYPFXCBYPZB,SWYPBQGZYZBB,SYWZPZJHB,
},
props: {
sn: {
@@ -41,6 +42,7 @@ export default {
'SP001': 'SWYPFXRYPZB',
'SP002': 'SWYPFXCBYPZB',
'SP003': 'SWYPBQGZYZBB',
+ 'DL001': 'SYWZPZJHB',
// 'SP001': 'Demo',
}
}
diff --git a/src/views/business/comps/template/comps/dl/SYWZPZJHB.vue b/src/views/business/comps/template/comps/dl/SYWZPZJHB.vue
new file mode 100644
index 0000000..bf2b407
--- /dev/null
+++ b/src/views/business/comps/template/comps/dl/SYWZPZJHB.vue
@@ -0,0 +1,240 @@
+
+
+
+
+

试验物质配制计划表

+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue b/src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue
index 3084b42..636359a 100644
--- a/src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue
+++ b/src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue
@@ -23,7 +23,7 @@