Commit 36c61518 by lichengming

修改了送检管理和证书编制的按模板编制按钮

parent b9533568
...@@ -128,6 +128,11 @@ export default { ...@@ -128,6 +128,11 @@ export default {
id: 'meter-certificate-make-pageoffice-make', id: 'meter-certificate-make-pageoffice-make',
name: '在线编制证书' name: '在线编制证书'
}, },
{
type: 'ios-bookmarks',
id: 'meter-out-personal-task-create-o',
name: '按模板编制证书'
},
// { // {
// type: 'md-create', // type: 'md-create',
// id: '', // id: '',
...@@ -347,6 +352,9 @@ export default { ...@@ -347,6 +352,9 @@ export default {
case '在线编制证书': case '在线编制证书':
this._makeCertificateExcel(data) this._makeCertificateExcel(data)
break break
case '按模板编制证书':
this._makeCertificateExcelByTemp(data)
break
case '仪器领用': case '仪器领用':
this.$refs.InstruEdit._open() this.$refs.InstruEdit._open()
break break
...@@ -496,6 +504,9 @@ export default { ...@@ -496,6 +504,9 @@ export default {
this._reportMakeLook(data) this._reportMakeLook(data)
} }
}, },
_makeCertificateExcelByTemp(data) {
this.$refs.SelectOriTempRecordExcel._open(data.id, data)
},
_reportMakeLook: async function(data) { _reportMakeLook: async function(data) {
const result = await meterSample.getCertificateReport(data.id) const result = await meterSample.getCertificateReport(data.id)
if (result) { if (result) {
......
...@@ -136,6 +136,11 @@ export default { ...@@ -136,6 +136,11 @@ export default {
name: '在线编制证书' name: '在线编制证书'
}, },
{ {
type: 'ios-bookmarks',
id: 'meter-out-personal-task-create-o',
name: '按模板编制证书'
},
{
type: 'md-create', type: 'md-create',
id: 'meter-sample-input-edit', id: 'meter-sample-input-edit',
name: '编辑' name: '编辑'
...@@ -344,6 +349,9 @@ export default { ...@@ -344,6 +349,9 @@ export default {
case '在线编制证书': case '在线编制证书':
this._makeCertificateExcel(data) this._makeCertificateExcel(data)
break break
case '按模板编制证书':
this._makeCertificateExcelByTemp(data)
break
case '仪器领用': case '仪器领用':
this.$refs.InstruEdit._open() this.$refs.InstruEdit._open()
break break
...@@ -385,7 +393,9 @@ export default { ...@@ -385,7 +393,9 @@ export default {
this._reportMakeLook(data) this._reportMakeLook(data)
} }
}, },
_makeCertificateExcelByTemp(data) {
this.$refs.SelectOriTempRecordExcel._open(data.id, data)
},
_reportMakeLook: async function(data) { _reportMakeLook: async function(data) {
const result = await meterSample.getCertificateReport(data.id) const result = await meterSample.getCertificateReport(data.id)
if (result) { if (result) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment