单位
This commit is contained in:
@@ -641,7 +641,8 @@
|
|||||||
<td>规格</td>
|
<td>规格</td>
|
||||||
<td colspan="2">型号</td>
|
<td colspan="2">型号</td>
|
||||||
<td>数量</td>
|
<td>数量</td>
|
||||||
<td colspan="2">单价</td>
|
<td>单价</td>
|
||||||
|
<td>单位</td>
|
||||||
<td colspan="2">合计</td>
|
<td colspan="2">合计</td>
|
||||||
<td>交货期</td>
|
<td>交货期</td>
|
||||||
<td colspan="2">备注</td>
|
<td colspan="2">备注</td>
|
||||||
@@ -1296,7 +1297,7 @@ export default {
|
|||||||
for (let i = 0; i < length; i++) {
|
for (let i = 0; i < length; i++) {
|
||||||
tr[i] = document.createElement('tr')
|
tr[i] = document.createElement('tr')
|
||||||
tr[i].setAttribute('class', 'tableData')
|
tr[i].setAttribute('class', 'tableData')
|
||||||
tr[i].innerHTML = `<td style="height: 40px"/><td colspan="2" style="height: 40px"/><td style="height: 40px"/><td colspan="2" style="height: 40px"/><td style="height: 40px"/><td colspan="2" style="height: 40px"/><td colspan="2" style="height: 40px"/><td style="height: 40px"/><td colspan="2" style="height: 40px"/>`
|
tr[i].innerHTML = `<td style="height: 40px"/><td colspan="2" style="height: 40px"/><td style="height: 40px"/><td colspan="2" style="height: 40px"/><td style="height: 40px"/><td style="height: 40px"/><td style="height: 40px"/><td colspan="2" style="height: 40px"/><td style="height: 40px"/><td colspan="2" style="height: 40px"/>`
|
||||||
$('#tablehead').after(tr[i])
|
$('#tablehead').after(tr[i])
|
||||||
}
|
}
|
||||||
let total = 0
|
let total = 0
|
||||||
@@ -1307,9 +1308,10 @@ export default {
|
|||||||
document.getElementsByClassName('tableData')[j].children[3].innerHTML = this.tableData3[j].物料型号
|
document.getElementsByClassName('tableData')[j].children[3].innerHTML = this.tableData3[j].物料型号
|
||||||
document.getElementsByClassName('tableData')[j].children[4].innerHTML = this.tableData3[j].数量
|
document.getElementsByClassName('tableData')[j].children[4].innerHTML = this.tableData3[j].数量
|
||||||
document.getElementsByClassName('tableData')[j].children[5].innerHTML = this.tableData3[j].单价
|
document.getElementsByClassName('tableData')[j].children[5].innerHTML = this.tableData3[j].单价
|
||||||
document.getElementsByClassName('tableData')[j].children[6].innerHTML = (this.tableData3[j].数量 * this.tableData3[j].单价).toFixed(2)
|
document.getElementsByClassName('tableData')[j].children[6].innerHTML = this.tableData3[j].计量单位
|
||||||
document.getElementsByClassName('tableData')[j].children[7].innerHTML = this.tableData3[j].交货期要求
|
document.getElementsByClassName('tableData')[j].children[7].innerHTML = (this.tableData3[j].数量 * this.tableData3[j].单价).toFixed(2)
|
||||||
document.getElementsByClassName('tableData')[j].children[8].innerHTML = this.tableData3[j].备注
|
document.getElementsByClassName('tableData')[j].children[8].innerHTML = this.tableData3[j].交货期要求
|
||||||
|
document.getElementsByClassName('tableData')[j].children[9].innerHTML = this.tableData3[j].备注
|
||||||
total += Number(this.tableData3[j].数量 * this.tableData3[j].单价)
|
total += Number(this.tableData3[j].数量 * this.tableData3[j].单价)
|
||||||
}
|
}
|
||||||
total = total.toFixed(2)
|
total = total.toFixed(2)
|
||||||
|
|||||||
Reference in New Issue
Block a user