subquantity added on each bancai

This commit is contained in:
郑茂强 2018-09-30 08:49:55 +08:00
parent 5c5acf08d1
commit 681c6a43cc
2 changed files with 19 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<div id="app"> <div id="app">
<router-view/> <router-view />
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">

View File

@ -317,7 +317,6 @@ export default Vue.extend({
if (dataKey === cell.title) { if (dataKey === cell.title) {
foundMatchedString = true; foundMatchedString = true;
cell.title = this.data[dataKey]; cell.title = this.data[dataKey];
console.log('找到', this.data[dataKey]);
} }
} }
} }
@ -454,7 +453,24 @@ export default Vue.extend({
} }
} }
}; };
const addSubTotal = (boardInfos) => { const addSubTotal = (
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;
}>,
) => {
let amountHolder = 0; let amountHolder = 0;
for (const row of this.infos) { for (const row of this.infos) {