|
|
|
@ -32,30 +32,6 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="功能名称" prop="name" width="250"></el-table-column>
|
|
|
|
|
<el-table-column label="模板名称" width="250">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<p v-if="scope.row.templateName === null">
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="scope.row.templateType == 2"
|
|
|
|
|
@click.native.stop="moduleSelectTemplate(scope.row)"
|
|
|
|
|
>选择模板
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
</p>
|
|
|
|
|
<p v-if="scope.row.templateName !== null">
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
:disabled="scope.row.templateType == 2"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click.native.stop="moduleSelectTemplate(scope.row)"
|
|
|
|
|
>{{ scope.row.templateName }}
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
</p>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="备注" prop="remark"></el-table-column>
|
|
|
|
|
<el-table-column label="操作" fixed="right" width="250">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
@ -394,16 +370,16 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
systemPDFTemplateList,
|
|
|
|
|
systemPDFTemplateSave,
|
|
|
|
|
systemPDFTemplateDeleteById,
|
|
|
|
|
systemPDFModuleList,
|
|
|
|
|
systemPDFModuleSave, updateDetailRel,
|
|
|
|
|
getSystemPDFModules, moduleDetail
|
|
|
|
|
getSystemPDFModules, moduleDetail, getCustomerTemplates
|
|
|
|
|
} from "../../../api/param/systemPDFTemplate";
|
|
|
|
|
import {saveAs} from "file-saver";
|
|
|
|
|
import {BASE_URL} from "../../../config/app";
|
|
|
|
|
import {demoPrint} from "@/api/itextpdf/itextpdf";
|
|
|
|
|
import store from "@/store";
|
|
|
|
|
|
|
|
|
|
const formJson = {
|
|
|
|
|
id: "",
|
|
|
|
@ -447,6 +423,7 @@ export default {
|
|
|
|
|
busRlId: null,
|
|
|
|
|
name: "",
|
|
|
|
|
module: null,
|
|
|
|
|
customerId: store.getters.customerId,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20
|
|
|
|
|
},
|
|
|
|
@ -617,20 +594,6 @@ export default {
|
|
|
|
|
this.selectTemplateQuery.module = null;
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
moduleSelectTemplate(row) {
|
|
|
|
|
this.moduleFormData = {
|
|
|
|
|
id: row.id,
|
|
|
|
|
templateId: row.templateId
|
|
|
|
|
};
|
|
|
|
|
this.moduleFormVisible = true;
|
|
|
|
|
this.selectTemplateQuery = {
|
|
|
|
|
module: row.templateType,
|
|
|
|
|
name: "",
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20
|
|
|
|
|
};
|
|
|
|
|
this.selectTemplateGetList();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
busSelectTemplate(row) {
|
|
|
|
|
this.moduleFormData = {
|
|
|
|
@ -643,6 +606,7 @@ export default {
|
|
|
|
|
busRlId: row.id,
|
|
|
|
|
type: 1,
|
|
|
|
|
name: "",
|
|
|
|
|
customerId: store.getters.customerId,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10
|
|
|
|
|
};
|
|
|
|
@ -651,7 +615,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
selectTemplateGetList() {
|
|
|
|
|
this.selectTemplateLoading = true;
|
|
|
|
|
systemPDFTemplateList(this.selectTemplateQuery)
|
|
|
|
|
getCustomerTemplates(this.selectTemplateQuery)
|
|
|
|
|
.then(response => {
|
|
|
|
|
this.selectTemplateLoading = false;
|
|
|
|
|
this.selectTemplateList = response.data.list || [];
|
|
|
|
|