tags added and tslint error fixed
This commit is contained in:
parent
960f05c1e7
commit
e7027941eb
@ -41,6 +41,16 @@
|
|||||||
<input type="radio" id="three" value="right" v-model="textAlign">
|
<input type="radio" id="three" value="right" v-model="textAlign">
|
||||||
<label for="three">居右</label>
|
<label for="three">居右</label>
|
||||||
<br>
|
<br>
|
||||||
|
<div>
|
||||||
|
<button @click="backToDesignTemplate">返回我的设计报表</button>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h2>标签:</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li v-for="(tag,index) of tags" @click="tagClickHandler(tag)" :key="index">{{tag}}</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
@ -64,24 +74,51 @@
|
|||||||
<div>
|
<div>
|
||||||
<button @click="printAsPdf">打印PDF文件</button>
|
<button @click="printAsPdf">打印PDF文件</button>
|
||||||
</div>
|
</div>
|
||||||
<div>{{this.infos}}</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import initialTemplateData from '@/assets/templateInitialData'; // report template for testing
|
|
||||||
import startUpRowColumn from '@/assets/startUpRowColumn'; // report template for testing
|
|
||||||
import data from '@/assets/data'; // userdata for testing use
|
|
||||||
import reportCell from './reportCell.vue';
|
|
||||||
import { Tool } from '@/assets/methodTool';
|
|
||||||
import 'expose-loader?$!jquery';
|
import 'expose-loader?$!jquery';
|
||||||
import { hightlight } from '@/assets/hightlight';
|
import initialTemplateData from '@/components/reportTemplate/rescource/templateInitialData';
|
||||||
|
import startUpRowColumn from '@/components/reportTemplate/rescource/startUpRowColumn'; // report template for testing
|
||||||
|
import data from '@/components/reportTemplate/rescource/orderDetails'; // userdata for testing use
|
||||||
|
import reportCell from './reportCell.vue';
|
||||||
|
import { Tool } from '@/components/reportTemplate/rescource/methodTool';
|
||||||
|
|
||||||
|
import { hightlight } from '@/components/reportTemplate/rescource/hightlight';
|
||||||
|
|
||||||
let rowId = 30; // this figure is for testing use
|
let rowId = 30; // this figure is for testing use
|
||||||
let cellId = 9060; // this figure is for testing use
|
let cellId = 9060; // this figure is for testing use
|
||||||
let copiedRowHolder: any;
|
let copiedRowHolder: any;
|
||||||
|
let orderHeadTags = [
|
||||||
|
'${订单号}',
|
||||||
|
'${客户名}',
|
||||||
|
'${出售日期}',
|
||||||
|
'${联系人}',
|
||||||
|
'${联系电话}',
|
||||||
|
'${送货地址}',
|
||||||
|
'${订单备注}',
|
||||||
|
];
|
||||||
|
let banCaiHeadTags = ['${板材材料}', '${板材颜色}'];
|
||||||
|
let banCaiBodyTags = [
|
||||||
|
'${板材房名}',
|
||||||
|
'${板材柜名}',
|
||||||
|
'${板材号}',
|
||||||
|
'${板材名}',
|
||||||
|
'${长度}',
|
||||||
|
'${宽度}',
|
||||||
|
'${厚度}',
|
||||||
|
'${数量}',
|
||||||
|
'${面积}',
|
||||||
|
'${变异}',
|
||||||
|
'${形状}',
|
||||||
|
'${方向}',
|
||||||
|
'${条纹}',
|
||||||
|
'${板材备注}',
|
||||||
|
];
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
components: { reportCell },
|
components: { reportCell },
|
||||||
@ -122,6 +159,8 @@ export default Vue.extend({
|
|||||||
};
|
};
|
||||||
banCaiHeadStartLineIndex: string;
|
banCaiHeadStartLineIndex: string;
|
||||||
banCaiHeadEndLineIndex: string;
|
banCaiHeadEndLineIndex: string;
|
||||||
|
tags: string[];
|
||||||
|
designTemplate: any;
|
||||||
} {
|
} {
|
||||||
return {
|
return {
|
||||||
infos: startUpRowColumn,
|
infos: startUpRowColumn,
|
||||||
@ -147,6 +186,32 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
banCaiHeadStartLineIndex: '5',
|
banCaiHeadStartLineIndex: '5',
|
||||||
banCaiHeadEndLineIndex: '8',
|
banCaiHeadEndLineIndex: '8',
|
||||||
|
tags: [
|
||||||
|
'${订单号}',
|
||||||
|
'${客户名}',
|
||||||
|
'${出售日期}',
|
||||||
|
'${联系人}',
|
||||||
|
'${联系电话}',
|
||||||
|
'${送货地址}',
|
||||||
|
'${订单备注}',
|
||||||
|
'${板材材料}',
|
||||||
|
'${板材颜色}',
|
||||||
|
'${板材房名}',
|
||||||
|
'${板材柜名}',
|
||||||
|
'${板材号}',
|
||||||
|
'${板材名}',
|
||||||
|
'${长度}',
|
||||||
|
'${宽度}',
|
||||||
|
'${厚度}',
|
||||||
|
'${数量}',
|
||||||
|
'${面积}',
|
||||||
|
'${变异}',
|
||||||
|
'${形状}',
|
||||||
|
'${方向}',
|
||||||
|
'${条纹}',
|
||||||
|
'${板材备注}',
|
||||||
|
],
|
||||||
|
designTemplate: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -238,7 +303,16 @@ export default Vue.extend({
|
|||||||
rowClickHandler(row: any): void {
|
rowClickHandler(row: any): void {
|
||||||
this.selectedRow = row.rowId;
|
this.selectedRow = row.rowId;
|
||||||
},
|
},
|
||||||
|
tagClickHandler(tag: string) {
|
||||||
|
this.inputTitle = tag;
|
||||||
|
},
|
||||||
|
backToDesignTemplate() {
|
||||||
|
if (this.designTemplate) {
|
||||||
|
this.infos = this.designTemplate;
|
||||||
|
} else {
|
||||||
|
alert('没有保存的设计报表');
|
||||||
|
}
|
||||||
|
},
|
||||||
addTotalAmount(query: string) {
|
addTotalAmount(query: string) {
|
||||||
return Tool.addTotalAmount(query);
|
return Tool.addTotalAmount(query);
|
||||||
},
|
},
|
||||||
@ -263,42 +337,63 @@ export default Vue.extend({
|
|||||||
Tool.pasteBanCaiHeadTemplate(this, copyBanCaiTemplate);
|
Tool.pasteBanCaiHeadTemplate(this, copyBanCaiTemplate);
|
||||||
},
|
},
|
||||||
copyBanCaiBodyTemplate() {
|
copyBanCaiBodyTemplate() {
|
||||||
for (const row of this.infos) {
|
Tool.copyBanCaiTemplate(this);
|
||||||
for (const cell of row.cells) {
|
|
||||||
if (
|
|
||||||
Object.keys(data.boards[0].boardInfos[0]).indexOf(cell.title) !== -1
|
|
||||||
) {
|
|
||||||
return this.infos.indexOf(row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
pasteBanCaiBody(boardIndex: number) {
|
pasteBanCaiBody(boardIndex: number) {
|
||||||
Tool.pasteBanCaiBody(this, boardIndex);
|
Tool.pasteBanCaiBody(this, boardIndex);
|
||||||
},
|
},
|
||||||
|
hasOrderHeadTags() {
|
||||||
importData() {
|
for (const row of this.infos) {
|
||||||
// 复制完整板材的模板
|
for (const cell of row.cells) {
|
||||||
const copiedBanCaiTemplateRows = [];
|
if (orderHeadTags.indexOf(cell.title) !== -1) {
|
||||||
for (const board of data.boards) {
|
return true;
|
||||||
copiedBanCaiTemplateRows.push(this.copyBanCaiTemplate());
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
|
||||||
const copiedRemaingForm = this.copyRemainingForm(); // 复制板材之外的剩余表格
|
hasBanCaiBodyTags() {
|
||||||
|
for (const row of this.infos) {
|
||||||
Tool.addOrderDetails(this); // 添加表单头部信息
|
for (const cell of row.cells) {
|
||||||
|
if (banCaiBodyTags.indexOf(cell.title) !== -1) {
|
||||||
for (let i = 0; i < data.boards.length; i++) {
|
return true;
|
||||||
Tool.addBanCaiHeader(this, i); // 添加板材的头部信息
|
}
|
||||||
this.addBoardInfoAmount(data.boards[i]);
|
|
||||||
this.pasteBanCaiBody(i); // 添加板材的身部信息
|
|
||||||
Tool.addsubQuantity(this, data.boards[i]); // 添加小计信息
|
|
||||||
if (i < data.boards.length - 1) {
|
|
||||||
this.pasteBanCaiHeadTemplate(copiedBanCaiTemplateRows[i]); // 添加板材样板
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.pasteRemainingForm(copiedRemaingForm); // 粘贴剩余的表格
|
return false;
|
||||||
|
},
|
||||||
|
importData() {
|
||||||
|
if (this.hasOrderHeadTags()) {
|
||||||
|
// 复制完整板材的模板
|
||||||
|
this.selectedCell = 0; // 如果selectedCell 不等于0 选择的cell 将不会被更新
|
||||||
|
this.designTemplate = JSON.parse(JSON.stringify(this.infos)); // 复制设计好的表
|
||||||
|
|
||||||
|
const copiedBanCaiTemplateRows = [];
|
||||||
|
for (const board of data.boards) {
|
||||||
|
copiedBanCaiTemplateRows.push(this.copyBanCaiTemplate());
|
||||||
|
}
|
||||||
|
const copiedRemaingForm = this.copyRemainingForm(); // 复制板材之外的剩余表格
|
||||||
|
Tool.addOrderDetails(this); // 添加表单头部信息
|
||||||
|
|
||||||
|
if (this.hasBanCaiBodyTags()) {
|
||||||
|
for (let i = 0; i < data.boards.length; i++) {
|
||||||
|
Tool.addBanCaiHeader(this, i); // 添加板材的头部信息
|
||||||
|
this.addBoardInfoAmount(data.boards[i]);
|
||||||
|
this.pasteBanCaiBody(i); // 添加板材的身部信息
|
||||||
|
Tool.addsubQuantity(this, data.boards[i]); // 添加小计信息
|
||||||
|
if (i < data.boards.length - 1) {
|
||||||
|
this.pasteBanCaiHeadTemplate(copiedBanCaiTemplateRows[i]); // 添加板材样板
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 粘贴剩余的表格
|
||||||
|
this.pasteRemainingForm(copiedRemaingForm);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
alert('没有需要添加的数据');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// for testing use -----import data from other file
|
// for testing use -----import data from other file
|
||||||
@ -307,51 +402,10 @@ export default Vue.extend({
|
|||||||
this.infos = initialTemplateData;
|
this.infos = initialTemplateData;
|
||||||
},
|
},
|
||||||
exportAsExcel() {
|
exportAsExcel() {
|
||||||
const tabs = document.getElementsByTagName('table');
|
Tool.exportAsExcel();
|
||||||
let allElementText: any = '';
|
|
||||||
for (const tab of tabs) {
|
|
||||||
let tabText: string = '<table border="2px"><tr>';
|
|
||||||
for (let i = 1; i < tab.rows.length; i++) {
|
|
||||||
const tds = tab.rows[i].getElementsByTagName('td');
|
|
||||||
let tdText = '';
|
|
||||||
for (const td of tds) {
|
|
||||||
tdText += td.outerHTML;
|
|
||||||
}
|
|
||||||
tabText += tdText + '</tr>';
|
|
||||||
}
|
|
||||||
allElementText += tabText + '</table>';
|
|
||||||
}
|
|
||||||
window.open(
|
|
||||||
'data:application/vnd.ms-excel,' + encodeURIComponent(allElementText),
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
printAsPdf() {
|
printAsPdf() {
|
||||||
const tabs = document.getElementsByTagName('table');
|
Tool.printAsPdf();
|
||||||
let allElementText: any = '';
|
|
||||||
for (const tab of tabs) {
|
|
||||||
let tabText: string =
|
|
||||||
'<table style="border-collapse: collapse;" border="2px"><tr>';
|
|
||||||
for (let i = 1; i < tab.rows.length; i++) {
|
|
||||||
const tds = tab.rows[i].getElementsByTagName('td');
|
|
||||||
let tdText = '';
|
|
||||||
for (const td of tds) {
|
|
||||||
tdText += td.outerHTML;
|
|
||||||
}
|
|
||||||
tabText += tdText + '</tr>';
|
|
||||||
}
|
|
||||||
allElementText += tabText + '</table>';
|
|
||||||
}
|
|
||||||
|
|
||||||
const WinPrint: any = window.open(
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
'left=0,top=0,width=800,height=900,toolbar=0,scrollbars=0,status=0',
|
|
||||||
);
|
|
||||||
WinPrint.document.write(allElementText);
|
|
||||||
WinPrint.document.close();
|
|
||||||
WinPrint.focus();
|
|
||||||
WinPrint.print();
|
|
||||||
WinPrint.close();
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
<template>
|
|
||||||
|
|
||||||
</template>
|
|
||||||
<script lang="ts">
|
|
||||||
import Vue from 'vue';
|
|
||||||
export default Vue.extend({});
|
|
||||||
</script>
|
|
||||||
|
|
@ -65,8 +65,6 @@ export function hightlight(table) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$(document).mouseup(function() {
|
$(document).mouseup(function() {
|
||||||
var text = $('.selected').text();
|
|
||||||
console.log(text);
|
|
||||||
isMouseDown = false;
|
isMouseDown = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
@ -1,5 +1,62 @@
|
|||||||
import data from '@/assets/data'; // userdata for testing use
|
import data from '@/components/reportTemplate/rescource/orderDetails'; // use data for testing use
|
||||||
|
|
||||||
|
const orderDetails: {
|
||||||
|
[index: string]: string | object;
|
||||||
|
orderNo: string;
|
||||||
|
clientName: string;
|
||||||
|
soldDate: string;
|
||||||
|
contactName: string;
|
||||||
|
contactNo: string;
|
||||||
|
deliveryAddress: string;
|
||||||
|
addOn: string;
|
||||||
|
boards: Array<{
|
||||||
|
[index: string]: number | string | object;
|
||||||
|
id: number;
|
||||||
|
material: string;
|
||||||
|
color: string;
|
||||||
|
boardInfos: Array<{
|
||||||
|
houseName: string;
|
||||||
|
closetName: string;
|
||||||
|
boardNo: string;
|
||||||
|
boardName: string;
|
||||||
|
length: number;
|
||||||
|
width: number;
|
||||||
|
thickness: number;
|
||||||
|
quantity: number;
|
||||||
|
area: number;
|
||||||
|
mutation: string;
|
||||||
|
shape: string;
|
||||||
|
direction: string;
|
||||||
|
stripe: string;
|
||||||
|
boardAddOn: string;
|
||||||
|
|
||||||
|
[index: string]: number | string;
|
||||||
|
}>;
|
||||||
|
}>;
|
||||||
|
} = data;
|
||||||
|
|
||||||
|
interface BoardFormat {
|
||||||
|
id: number;
|
||||||
|
material: string;
|
||||||
|
color: string;
|
||||||
|
boardInfos: Array<{
|
||||||
|
houseName: string;
|
||||||
|
closetName: string;
|
||||||
|
boardNo: string;
|
||||||
|
boardName: string;
|
||||||
|
length: number;
|
||||||
|
width: number;
|
||||||
|
thickness: number;
|
||||||
|
quantity: number;
|
||||||
|
area: number;
|
||||||
|
mutation: string;
|
||||||
|
shape: string;
|
||||||
|
direction: string;
|
||||||
|
stripe: string;
|
||||||
|
boardAddOn: string;
|
||||||
|
[index: string]: number | string;
|
||||||
|
}>;
|
||||||
|
}
|
||||||
const subKeyWords = [
|
const subKeyWords = [
|
||||||
'sublength',
|
'sublength',
|
||||||
'subwidth',
|
'subwidth',
|
||||||
@ -14,21 +71,46 @@ const totalKeyWords = [
|
|||||||
'totalquantity',
|
'totalquantity',
|
||||||
'totalarea',
|
'totalarea',
|
||||||
];
|
];
|
||||||
|
const tagsObject: any = {
|
||||||
|
'${订单号}': 'orderNo',
|
||||||
|
'${客户名}': 'clientName',
|
||||||
|
'${出售日期}': 'soldDate',
|
||||||
|
'${联系人}': 'contactName',
|
||||||
|
'${联系电话}': 'contactNo',
|
||||||
|
'${送货地址}': 'deliveryAddress',
|
||||||
|
'${订单备注}': 'addOn',
|
||||||
|
'${板材材料}': 'material',
|
||||||
|
'${板材颜色}': 'color',
|
||||||
|
'${板材房名}': 'houseName',
|
||||||
|
'${板材柜名}': 'closetName',
|
||||||
|
'${板材号}': 'boardNo',
|
||||||
|
'${板材名}': 'boardName',
|
||||||
|
'${长度}': 'length',
|
||||||
|
'${宽度}': 'width',
|
||||||
|
'${厚度}': 'thickness',
|
||||||
|
'${数量}': 'quantity',
|
||||||
|
'${面积}': 'area',
|
||||||
|
'${变异}': 'mutation',
|
||||||
|
'${形状}': 'shape',
|
||||||
|
'${方向}': 'direction',
|
||||||
|
'${条纹}': 'stripe',
|
||||||
|
'${板材备注}': 'boardAddOn',
|
||||||
|
};
|
||||||
const orderDetailsKeys: string[] = [];
|
const orderDetailsKeys: string[] = [];
|
||||||
const banCaiHeaderKeys: string[] = [];
|
const banCaiHeaderKeys: string[] = [];
|
||||||
const banCaiDetailsKeys: string[] = [];
|
const banCaiDetailsKeys: string[] = [];
|
||||||
const temRowHolder: string[] = [];
|
const temRowHolder: string[] = [];
|
||||||
for (const key in data) {
|
for (const key in orderDetails) {
|
||||||
if (key !== 'boards') {
|
if (key !== 'boards') {
|
||||||
orderDetailsKeys.push(key);
|
orderDetailsKeys.push(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const key in data.boards[0]) {
|
for (const key in orderDetails.boards[0]) {
|
||||||
if (key !== 'boardInfos') {
|
if (key !== 'boardInfos') {
|
||||||
banCaiHeaderKeys.push(key);
|
banCaiHeaderKeys.push(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const key of Object.keys(data.boards[0].boardInfos[0])) {
|
for (const key of Object.keys(orderDetails.boards[0].boardInfos[0])) {
|
||||||
banCaiDetailsKeys.push(key);
|
banCaiDetailsKeys.push(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -91,15 +173,26 @@ const Tool = {
|
|||||||
for (const cell in row.cells) {
|
for (const cell in row.cells) {
|
||||||
if (row.cells[cell].cellId === that.selectedCell) {
|
if (row.cells[cell].cellId === that.selectedCell) {
|
||||||
row.cells.splice(Number(cell), 1);
|
row.cells.splice(Number(cell), 1);
|
||||||
|
|
||||||
|
// Vue.nextTick(() => {
|
||||||
|
// row.cells.splice(Number(cell), 1);
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
that.selectedCell = 9000;
|
that.selectedCell = 9000;
|
||||||
},
|
},
|
||||||
|
isTagName(cellTitle: string) {
|
||||||
|
if (cellTitle.slice(0, 2) === '${') {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
},
|
||||||
addTotalAmount: (query: string) => {
|
addTotalAmount: (query: string) => {
|
||||||
let total = 0;
|
let total: any = 0;
|
||||||
const query1 = query.slice(5);
|
const query1 = query.slice(5);
|
||||||
for (const board of data.boards) {
|
for (const board of orderDetails.boards) {
|
||||||
for (const eachBoardInfo of board.boardInfos) {
|
for (const eachBoardInfo of board.boardInfos) {
|
||||||
if (Object.keys(eachBoardInfo).indexOf(query1) !== -1) {
|
if (Object.keys(eachBoardInfo).indexOf(query1) !== -1) {
|
||||||
total += eachBoardInfo[query1];
|
total += eachBoardInfo[query1];
|
||||||
@ -112,8 +205,8 @@ const Tool = {
|
|||||||
return total.toFixed(3);
|
return total.toFixed(3);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
addSubAmount: (query, board) => {
|
addSubAmount: (query: string, board: BoardFormat) => {
|
||||||
let sub = 0;
|
let sub: any = 0;
|
||||||
const query1 = query.slice(3);
|
const query1 = query.slice(3);
|
||||||
|
|
||||||
for (const eachBoardInfo of board.boardInfos) {
|
for (const eachBoardInfo of board.boardInfos) {
|
||||||
@ -127,7 +220,7 @@ const Tool = {
|
|||||||
return sub.toFixed(3);
|
return sub.toFixed(3);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
addBoardInfoAmount: (that, board) => {
|
addBoardInfoAmount: (that: any, board: BoardFormat) => {
|
||||||
for (const row of that.infos) {
|
for (const row of that.infos) {
|
||||||
for (const cell of row.cells) {
|
for (const cell of row.cells) {
|
||||||
if (cell.title === 'bancaiinfoamount') {
|
if (cell.title === 'bancaiinfoamount') {
|
||||||
@ -167,7 +260,7 @@ const Tool = {
|
|||||||
}
|
}
|
||||||
return remainingFormHolder;
|
return remainingFormHolder;
|
||||||
},
|
},
|
||||||
pasteRemainingForm: (that, remainingFormHolder) => {
|
pasteRemainingForm: (that: any, remainingFormHolder: any[]) => {
|
||||||
for (const eachRemainingRow of remainingFormHolder) {
|
for (const eachRemainingRow of remainingFormHolder) {
|
||||||
for (const row of that.infos) {
|
for (const row of that.infos) {
|
||||||
if (row.cells.length === 0) {
|
if (row.cells.length === 0) {
|
||||||
@ -184,7 +277,7 @@ const Tool = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pasteBanCaiHeadTemplate: (that, copyBanCaiTemplate: any) => {
|
pasteBanCaiHeadTemplate: (that: any, copyBanCaiTemplate: any) => {
|
||||||
const temCopyBanCaiTemplate = copyBanCaiTemplate;
|
const temCopyBanCaiTemplate = copyBanCaiTemplate;
|
||||||
for (const banCaiRow of temCopyBanCaiTemplate) {
|
for (const banCaiRow of temCopyBanCaiTemplate) {
|
||||||
for (const row of that.infos) {
|
for (const row of that.infos) {
|
||||||
@ -195,11 +288,25 @@ const Tool = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pasteBanCaiBody: (that, boardIndex: number) => {
|
copyBanCaiBodyTemplate: (that) => {
|
||||||
const boardInfosTemplateHolder = [];
|
for (const row of that.infos) {
|
||||||
const copyBanCaiBodyTemplateIndex: any = that.copyBanCaiBodyTemplate();
|
for (const cell of row.cells) {
|
||||||
|
if (
|
||||||
|
Object.keys(data.boards[0].boardInfos[0]).indexOf(
|
||||||
|
tagsObject[cell.title],
|
||||||
|
) !== -1
|
||||||
|
) {
|
||||||
|
return that.infos.indexOf(row);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
for (const i of data.boards[boardIndex].boardInfos) {
|
pasteBanCaiBody: (that: any, boardIndex: number) => {
|
||||||
|
const boardInfosTemplateHolder = [];
|
||||||
|
const copyBanCaiBodyTemplateIndex: any = Tool.copyBanCaiBodyTemplate(that);
|
||||||
|
|
||||||
|
for (const i of orderDetails.boards[boardIndex].boardInfos) {
|
||||||
boardInfosTemplateHolder.push(
|
boardInfosTemplateHolder.push(
|
||||||
that.copySingleRow(that.infos[copyBanCaiBodyTemplateIndex].rowId),
|
that.copySingleRow(that.infos[copyBanCaiBodyTemplateIndex].rowId),
|
||||||
);
|
);
|
||||||
@ -207,9 +314,9 @@ const Tool = {
|
|||||||
|
|
||||||
for (let i = 0; i < boardInfosTemplateHolder.length; i++) {
|
for (let i = 0; i < boardInfosTemplateHolder.length; i++) {
|
||||||
for (const cell of boardInfosTemplateHolder[i].cells) {
|
for (const cell of boardInfosTemplateHolder[i].cells) {
|
||||||
for (const key in data.boards[boardIndex].boardInfos[i]) {
|
for (const key in orderDetails.boards[boardIndex].boardInfos[i]) {
|
||||||
if (key === cell.title) {
|
if (key === tagsObject[cell.title]) {
|
||||||
cell.title = data.boards[boardIndex].boardInfos[i][key];
|
cell.title = orderDetails.boards[boardIndex].boardInfos[i][key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -224,28 +331,29 @@ const Tool = {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
addBanCaiHeader: (that, index: number) => {
|
addBanCaiHeader: (that: any, index: number) => {
|
||||||
for (const row of that.infos) {
|
for (const row of that.infos) {
|
||||||
for (const cell of row.cells) {
|
for (const cell of row.cells) {
|
||||||
if (banCaiHeaderKeys.indexOf(cell.title) !== -1) {
|
if (banCaiHeaderKeys.indexOf(tagsObject[cell.title]) !== -1) {
|
||||||
if (temRowHolder.indexOf(row) === -1) {
|
if (temRowHolder.indexOf(row) === -1) {
|
||||||
temRowHolder.push(that.copySingleRow(row.rowId));
|
temRowHolder.push(that.copySingleRow(row.rowId));
|
||||||
}
|
}
|
||||||
cell.title = data.boards[index][cell.title];
|
|
||||||
|
cell.title = orderDetails.boards[index][tagsObject[cell.title]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
addOrderDetails: (that) => {
|
addOrderDetails: (that: any) => {
|
||||||
for (const row of that.infos) {
|
for (const row of that.infos) {
|
||||||
for (const cell of row.cells) {
|
for (const cell of row.cells) {
|
||||||
if (orderDetailsKeys.indexOf(cell.title) !== -1) {
|
if (orderDetailsKeys.indexOf(tagsObject[cell.title]) !== -1) {
|
||||||
cell.title = data[cell.title];
|
cell.title = orderDetails[tagsObject[cell.title]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
addsubQuantity: (that, board: any) => {
|
addsubQuantity: (that: any, board: any) => {
|
||||||
for (const row of that.infos) {
|
for (const row of that.infos) {
|
||||||
for (const cell of row.cells) {
|
for (const cell of row.cells) {
|
||||||
if (subKeyWords.indexOf(cell.title) !== -1) {
|
if (subKeyWords.indexOf(cell.title) !== -1) {
|
||||||
@ -254,5 +362,53 @@ const Tool = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
exportAsExcel: () => {
|
||||||
|
const tabs = document.getElementsByTagName('table');
|
||||||
|
let allElementText: any = '';
|
||||||
|
for (const tab of tabs) {
|
||||||
|
let tabText: string = '<table border="2px"><tr>';
|
||||||
|
for (let i = 1; i < tab.rows.length; i++) {
|
||||||
|
const tds = tab.rows[i].getElementsByTagName('td');
|
||||||
|
let tdText = '';
|
||||||
|
for (const td of tds) {
|
||||||
|
tdText += td.outerHTML;
|
||||||
|
}
|
||||||
|
tabText += tdText + '</tr>';
|
||||||
|
}
|
||||||
|
allElementText += tabText + '</table>';
|
||||||
|
}
|
||||||
|
|
||||||
|
window.open(
|
||||||
|
'data:application/vnd.ms-excel,' + encodeURIComponent(allElementText),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
printAsPdf: () => {
|
||||||
|
const tabs = document.getElementsByTagName('table');
|
||||||
|
let allElementText: any = '';
|
||||||
|
for (const tab of tabs) {
|
||||||
|
let tabText: string =
|
||||||
|
'<table style="border-collapse: collapse;" border="2px"><tr>';
|
||||||
|
for (let i = 1; i < tab.rows.length; i++) {
|
||||||
|
const tds = tab.rows[i].getElementsByTagName('td');
|
||||||
|
let tdText = '';
|
||||||
|
for (const td of tds) {
|
||||||
|
tdText += td.outerHTML;
|
||||||
|
}
|
||||||
|
tabText += tdText + '</tr>';
|
||||||
|
}
|
||||||
|
allElementText += tabText + '</table>';
|
||||||
|
}
|
||||||
|
|
||||||
|
const WinPrint: any = window.open(
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'left=0,top=0,width=800,height=900,toolbar=0,scrollbars=0,status=0',
|
||||||
|
);
|
||||||
|
WinPrint.document.write(allElementText);
|
||||||
|
WinPrint.document.close();
|
||||||
|
WinPrint.focus();
|
||||||
|
WinPrint.print();
|
||||||
|
WinPrint.close();
|
||||||
|
},
|
||||||
};
|
};
|
||||||
export { Tool };
|
export { Tool };
|
@ -243,7 +243,7 @@ const initialTemplateData = [
|
|||||||
{
|
{
|
||||||
cellId: 9002,
|
cellId: 9002,
|
||||||
title: '订单号',
|
title: '订单号',
|
||||||
colspan: '3',
|
colspan: 3,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -251,8 +251,8 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9003,
|
cellId: 9003,
|
||||||
title: 'orderNo',
|
title: '${订单号}',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -261,7 +261,7 @@ const initialTemplateData = [
|
|||||||
{
|
{
|
||||||
cellId: 9004,
|
cellId: 9004,
|
||||||
title: '客户名',
|
title: '客户名',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -269,8 +269,8 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9005,
|
cellId: 9005,
|
||||||
title: 'clientName',
|
title: '${客户名}',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -279,7 +279,7 @@ const initialTemplateData = [
|
|||||||
{
|
{
|
||||||
cellId: 9006,
|
cellId: 9006,
|
||||||
title: '出售日期',
|
title: '出售日期',
|
||||||
colspan: '5',
|
colspan: 5,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -287,8 +287,8 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9007,
|
cellId: 9007,
|
||||||
title: 'soldDate',
|
title: '${出售日期}',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -303,7 +303,7 @@ const initialTemplateData = [
|
|||||||
{
|
{
|
||||||
cellId: 9008,
|
cellId: 9008,
|
||||||
title: '联系人',
|
title: '联系人',
|
||||||
colspan: '3',
|
colspan: 3,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -311,8 +311,8 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9009,
|
cellId: 9009,
|
||||||
title: 'contactName',
|
title: '${联系人}',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -321,7 +321,7 @@ const initialTemplateData = [
|
|||||||
{
|
{
|
||||||
cellId: 9010,
|
cellId: 9010,
|
||||||
title: '联系电话',
|
title: '联系电话',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -329,8 +329,8 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9011,
|
cellId: 9011,
|
||||||
title: 'contactNo',
|
title: '${联系电话}',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -339,7 +339,7 @@ const initialTemplateData = [
|
|||||||
{
|
{
|
||||||
cellId: 9012,
|
cellId: 9012,
|
||||||
title: '送货地址',
|
title: '送货地址',
|
||||||
colspan: '5',
|
colspan: 5,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -347,8 +347,8 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9013,
|
cellId: 9013,
|
||||||
title: 'deliveryAddress',
|
title: '${送货地址}',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -363,7 +363,7 @@ const initialTemplateData = [
|
|||||||
{
|
{
|
||||||
cellId: 9014,
|
cellId: 9014,
|
||||||
title: '备注',
|
title: '备注',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -371,8 +371,8 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9015,
|
cellId: 9015,
|
||||||
title: 'addOn',
|
title: '${订单备注}',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -387,7 +387,7 @@ const initialTemplateData = [
|
|||||||
{
|
{
|
||||||
cellId: 9016,
|
cellId: 9016,
|
||||||
title: '材料',
|
title: '材料',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'left',
|
textAlign: 'left',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -395,8 +395,8 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9017,
|
cellId: 9017,
|
||||||
title: 'material',
|
title: '${板材材料}',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'left',
|
textAlign: 'left',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -405,7 +405,7 @@ const initialTemplateData = [
|
|||||||
{
|
{
|
||||||
cellId: 9018,
|
cellId: 9018,
|
||||||
title: '颜色',
|
title: '颜色',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'left',
|
textAlign: 'left',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -413,8 +413,8 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 19018,
|
cellId: 19018,
|
||||||
title: 'color',
|
title: '${板材颜色}',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'left',
|
textAlign: 'left',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -423,7 +423,7 @@ const initialTemplateData = [
|
|||||||
{
|
{
|
||||||
cellId: 29018,
|
cellId: 29018,
|
||||||
title: '板材信息数量:',
|
title: '板材信息数量:',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -432,7 +432,7 @@ const initialTemplateData = [
|
|||||||
{
|
{
|
||||||
cellId: 9060,
|
cellId: 9060,
|
||||||
title: 'bancaiinfoamount',
|
title: 'bancaiinfoamount',
|
||||||
colspan: '4',
|
colspan: 4,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'left',
|
textAlign: 'left',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -446,7 +446,7 @@ const initialTemplateData = [
|
|||||||
cells: [
|
cells: [
|
||||||
{
|
{
|
||||||
cellId: 9019,
|
cellId: 9019,
|
||||||
title: '房名',
|
title: '板材房名',
|
||||||
colspan: 2,
|
colspan: 2,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@ -455,7 +455,7 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9020,
|
cellId: 9020,
|
||||||
title: '柜名',
|
title: '板材柜名',
|
||||||
colspan: 0,
|
colspan: 0,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@ -578,7 +578,7 @@ const initialTemplateData = [
|
|||||||
cells: [
|
cells: [
|
||||||
{
|
{
|
||||||
cellId: 9033,
|
cellId: 9033,
|
||||||
title: 'houseName',
|
title: '${板材房名}',
|
||||||
colspan: 2,
|
colspan: 2,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@ -587,7 +587,7 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9034,
|
cellId: 9034,
|
||||||
title: 'closetName',
|
title: '${板材柜名}',
|
||||||
colspan: 0,
|
colspan: 0,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@ -596,7 +596,7 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9035,
|
cellId: 9035,
|
||||||
title: 'boardNo',
|
title: '${板材号}',
|
||||||
colspan: 2,
|
colspan: 2,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@ -605,7 +605,7 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9036,
|
cellId: 9036,
|
||||||
title: 'boardName',
|
title: '${板材名}',
|
||||||
colspan: 2,
|
colspan: 2,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@ -614,7 +614,7 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9037,
|
cellId: 9037,
|
||||||
title: 'length',
|
title: '${长度}',
|
||||||
colspan: 0,
|
colspan: 0,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@ -623,7 +623,7 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9038,
|
cellId: 9038,
|
||||||
title: 'width',
|
title: '${宽度}',
|
||||||
colspan: 0,
|
colspan: 0,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@ -632,7 +632,7 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9039,
|
cellId: 9039,
|
||||||
title: 'thickness',
|
title: '${厚度}',
|
||||||
colspan: 0,
|
colspan: 0,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@ -641,7 +641,7 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9040,
|
cellId: 9040,
|
||||||
title: 'quantity',
|
title: '${数量}',
|
||||||
colspan: 0,
|
colspan: 0,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@ -650,7 +650,7 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9041,
|
cellId: 9041,
|
||||||
title: 'area',
|
title: '${面积}',
|
||||||
colspan: 0,
|
colspan: 0,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@ -659,7 +659,7 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9042,
|
cellId: 9042,
|
||||||
title: 'mutation',
|
title: '${变异}',
|
||||||
colspan: 0,
|
colspan: 0,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@ -668,7 +668,7 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9043,
|
cellId: 9043,
|
||||||
title: 'shape',
|
title: '${形状}',
|
||||||
colspan: 0,
|
colspan: 0,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@ -677,7 +677,7 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9044,
|
cellId: 9044,
|
||||||
title: 'direction',
|
title: '${方向}',
|
||||||
colspan: 3,
|
colspan: 3,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@ -686,7 +686,7 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9045,
|
cellId: 9045,
|
||||||
title: 'stripe',
|
title: '${条纹}',
|
||||||
colspan: 2,
|
colspan: 2,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@ -695,7 +695,7 @@ const initialTemplateData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cellId: 9046,
|
cellId: 9046,
|
||||||
title: 'boardAddOn',
|
title: '${板材备注}',
|
||||||
colspan: 5,
|
colspan: 5,
|
||||||
height: 30,
|
height: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
@ -11,30 +11,19 @@
|
|||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"types": [
|
"types": ["node", "jest"],
|
||||||
"node",
|
|
||||||
"jest"
|
|
||||||
],
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": [
|
"@/*": ["src/*"]
|
||||||
"src/*"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"lib": [
|
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
|
||||||
"esnext",
|
|
||||||
"dom",
|
|
||||||
"dom.iterable",
|
|
||||||
"scripthost"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
"src/**/*.tsx",
|
"src/**/*.tsx",
|
||||||
"src/**/*.vue",
|
"src/**/*.vue",
|
||||||
"tests/**/*.ts",
|
"tests/**/*.ts",
|
||||||
"tests/**/*.tsx"
|
"tests/**/*.tsx",
|
||||||
|
"src/components/reportTemplate/rescource/hightlight.js"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": ["node_modules"]
|
||||||
"node_modules"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user