diff --git a/src/views/business/comps/template/comps/gsp/GSP015.vue b/src/views/business/comps/template/comps/gsp/GSP015.vue index 139cc57..3f0c67e 100644 --- a/src/views/business/comps/template/comps/gsp/GSP015.vue +++ b/src/views/business/comps/template/comps/gsp/GSP015.vue @@ -15,56 +15,99 @@ 新增 导出 -
-
-
- - {{ - $t('template.common.deleteBtn') - }} - -
- - - - - - - -
+ @click="onExportXqjyxx">导出 + +
+
+
+
+ + {{ + $t('template.common.deleteBtn') + }} + +
+ + + + + + + +
+
+
新增 导出 + @click="onExportEcxsxx()">导出 + +
@@ -83,16 +126,15 @@ @onAddRow="() => addEcTableRow(index, 'ecTableRef')" :formData="item">
+
+
{ + el.remove() + }) + }, + onExportXqjyxx() { + this.$modal.loading() + setTimeout(() => { + this.$refs.html2PdfXqjyxx.generatePdf() + }, 200); + }, + //生成进度 + onProgressEcxsxx(progress) { + console.log(`生成进度: ${progress}%`) + this.removePageBreak() + if (progress == 100) { + this.$modal.closeLoading() + } else { + this.$modal.loading() + } + }, + onExportEcxsxx() { + this.$modal.loading() + setTimeout(() => { + this.$refs.html2PdfEcxsxx.generatePdf() + }, 200); }, //删除样本说明 deleteConfig(item, type = "ybsmDataList") { diff --git a/src/views/business/comps/template/formConfig/gsp/gsp015.js b/src/views/business/comps/template/formConfig/gsp/gsp015.js index c6703b7..11a676d 100644 --- a/src/views/business/comps/template/formConfig/gsp/gsp015.js +++ b/src/views/business/comps/template/formConfig/gsp/gsp015.js @@ -115,21 +115,21 @@ export const getQyTableColumns = ($this) => { { label: '取样编号', prop: 'qybh', - width: 280, + width: 200, bodyType: 'input', bodyFillType: 'preFill', }, { label: '制剂编号', prop: 'zjbh', - width: 280, + width: 200, bodyType: 'gsp', bodyFillType: 'actFill', }, { label: '预设制剂浓度', prop: 'yszjnd', - width: 280, + width: 200, headerSelectKey: 'yszjnddw', fillType: "preFill", headerOptions: $this.getDictOptions('business_nddw'), @@ -140,7 +140,7 @@ export const getQyTableColumns = ($this) => { { label: '实际制剂浓度', prop: 'sjzjnd', - width: 280, + width: 200, headerSelectKey: 'sjzjnddw', fillType: "preFill", headerOptions: $this.getDictOptions('business_nddw'), @@ -176,7 +176,7 @@ export const getQyTableColumns = ($this) => { { label: '预设取样量', prop: 'ysqyl', - width: 280, + width: 200, headerSelectKey: 'ysqyldw', fillType: "preFill", headerOptions: $this.getDictOptions('business_tjdw'), @@ -188,7 +188,7 @@ export const getQyTableColumns = ($this) => { { label: '实际取样量', prop: 'sjqyl', - width: 280, + width: 200, headerSelectKey: 'sjqydw', fillType: "preFill", headerOptions: $this.getDictOptions('business_tjdw'), @@ -206,21 +206,21 @@ export const getJyTableColumns = ($this) => { { label: '进样编号', prop: 'jybh', - width: 280, + width: 200, bodyType: 'input', bodyFillType: 'preFill', }, { label: '取样编号', prop: 'qybh', - width: 280, + width: 200, bodyType: 'gsp', bodyFillType: 'actFill', }, { label: '取样浓度', prop: 'qynd', - width: 280, + width: 200, headerSelectKey: 'qynddw', fillType: "preFill", headerOptions: $this.getDictOptions('business_nddw'), @@ -230,7 +230,7 @@ export const getJyTableColumns = ($this) => { { label: '取样体积', prop: 'qytj', - width: 280, + width: 200, headerSelectKey: 'qytjdw', fillType: "preFill", headerOptions: $this.getDictOptions('business_tjdw'), @@ -240,7 +240,7 @@ export const getJyTableColumns = ($this) => { { label: '标定体积', prop: 'bdtj', - width: 280, + width: 200, headerSelectKey: 'bdtjdw', fillType: "preFill", headerOptions: $this.getDictOptions('business_tjdw'), @@ -250,7 +250,7 @@ export const getJyTableColumns = ($this) => { { label: '进样体积', prop: 'jytj', - width: 280, + width: 200, headerSelectKey: 'jytjdw', fillType: "preFill", headerOptions: $this.getDictOptions('business_tjdw'), @@ -260,7 +260,7 @@ export const getJyTableColumns = ($this) => { { label: '稀释倍数', prop: 'xsbs', - width: 280, + width: 200, bodyType: 'inputNumber', bodyFillType: 'actFill', bodySubType: "inputNumber", @@ -273,7 +273,7 @@ export const getJyTableColumns = ($this) => { { label: '终体积', prop: 'ztj', - width: 280, + width: 200, headerSelectKey: 'ztjdw', fillType: "preFill", headerOptions: $this.getDictOptions('business_tjdw'), @@ -289,7 +289,7 @@ export const getJyTableColumns = ($this) => { { label: '实际进样浓度', prop: 'sjjynd', - width: 280, + width: 200, headerSelectKey: 'sjjynddw', fillType: "preFill", headerOptions: $this.getDictOptions('business_nddw'),