|
|
@ -38,7 +38,8 @@ |
|
|
<el-button v-if="!authSave" type="primary" @click="addModal()">新增</el-button> |
|
|
<el-button v-if="!authSave" type="primary" @click="addModal()">新增</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="' '"> |
|
|
<el-form-item :label="' '"> |
|
|
<el-button v-if="!authSave" type="primary" icon="el-icon-upload" @click="qcUpload()">导入</el-button> |
|
|
|
|
|
|
|
|
<el-button v-if="!authSave" type="primary" icon="el-icon-upload" @click="qcUpload()">模板导入</el-button> |
|
|
|
|
|
<el-button v-if="!authSave" type="primary" icon="el-icon-upload" @click="qcItemDetailUpload()">检验项目导入</el-button> |
|
|
<download-excel |
|
|
<download-excel |
|
|
:fields="fields()" |
|
|
:fields="fields()" |
|
|
:data="exportData" |
|
|
:data="exportData" |
|
|
@ -1764,14 +1765,27 @@ |
|
|
return s |
|
|
return s |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 导入 |
|
|
|
|
|
|
|
|
// 模板导入 |
|
|
qcUpload () { |
|
|
qcUpload () { |
|
|
let currentData = { |
|
|
let currentData = { |
|
|
flag: 'template', |
|
|
flag: 'template', |
|
|
createBy: this.$store.state.user.name, |
|
|
createBy: this.$store.state.user.name, |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
title: '模板导入' |
|
|
|
|
|
} |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.qcUpload.init(currentData) |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 检验项目导入 |
|
|
|
|
|
qcItemDetailUpload () { |
|
|
|
|
|
let currentData = { |
|
|
|
|
|
flag: 'templateItem', |
|
|
|
|
|
createBy: this.$store.state.user.name, |
|
|
|
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
title: '检验项目导入' |
|
|
} |
|
|
} |
|
|
//打开组件 去做新增业务 |
|
|
|
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs.qcUpload.init(currentData) |
|
|
this.$refs.qcUpload.init(currentData) |
|
|
}) |
|
|
}) |
|
|
|