Commit 36c61518 by lichengming

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

parent b9533568
......@@ -128,6 +128,11 @@ export default {
id: 'meter-certificate-make-pageoffice-make',
name: '在线编制证书'
},
{
type: 'ios-bookmarks',
id: 'meter-out-personal-task-create-o',
name: '按模板编制证书'
},
// {
// type: 'md-create',
// id: '',
......@@ -347,6 +352,9 @@ export default {
case '在线编制证书':
this._makeCertificateExcel(data)
break
case '按模板编制证书':
this._makeCertificateExcelByTemp(data)
break
case '仪器领用':
this.$refs.InstruEdit._open()
break
......@@ -496,6 +504,9 @@ export default {
this._reportMakeLook(data)
}
},
_makeCertificateExcelByTemp(data) {
this.$refs.SelectOriTempRecordExcel._open(data.id, data)
},
_reportMakeLook: async function(data) {
const result = await meterSample.getCertificateReport(data.id)
if (result) {
......
......@@ -136,6 +136,11 @@ export default {
name: '在线编制证书'
},
{
type: 'ios-bookmarks',
id: 'meter-out-personal-task-create-o',
name: '按模板编制证书'
},
{
type: 'md-create',
id: 'meter-sample-input-edit',
name: '编辑'
......@@ -344,6 +349,9 @@ export default {
case '在线编制证书':
this._makeCertificateExcel(data)
break
case '按模板编制证书':
this._makeCertificateExcelByTemp(data)
break
case '仪器领用':
this.$refs.InstruEdit._open()
break
......@@ -385,7 +393,9 @@ export default {
this._reportMakeLook(data)
}
},
_makeCertificateExcelByTemp(data) {
this.$refs.SelectOriTempRecordExcel._open(data.id, data)
},
_reportMakeLook: async function(data) {
const result = await meterSample.getCertificateReport(data.id)
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