更新
This commit is contained in:
@@ -255,7 +255,10 @@ export default {
|
||||
this.checkBox = []
|
||||
this.tableData2 = []
|
||||
searchTable2(row.工艺计划流水号).then(response => {
|
||||
console.log(response.data)
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
console.log(response.data[i].工序顺序)
|
||||
}
|
||||
console.log(response.data, 1111111)
|
||||
this.num1 = row.工艺计划流水号
|
||||
if (response.data.length === 0) {
|
||||
this.loading0 = false
|
||||
|
||||
@@ -145,21 +145,21 @@
|
||||
<td colspan="1" align="center">单价</td>
|
||||
<td colspan="1" align="center">总价</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr>
|
||||
<table id="2" cellspacing="0px" align="center" border width="100%" style="">
|
||||
<tbody id="4">
|
||||
<tr id="tableHead" style="height: 40px">
|
||||
<td colspan="1" align="center">物料名称</td>
|
||||
<td colspan="1" align="center">物料规格</td>
|
||||
<td colspan="1" align="center">物料型号</td>
|
||||
<td colspan="1" align="center">交货期</td>
|
||||
<td colspan="1" align="center">备注</td>
|
||||
<td colspan="1" align="center">数量</td>
|
||||
<td colspan="1" align="center">单价</td>
|
||||
<td colspan="1" align="center">总价</td>
|
||||
</tr>
|
||||
<!--</tbody>-->
|
||||
<!--</table>-->
|
||||
<!--<hr>-->
|
||||
<!--<table id="2" cellspacing="0px" align="center" border width="100%" style="">-->
|
||||
<!--<!–<tbody id="4">–>-->
|
||||
<!--<!–<tr id="tableHead" style="height: 40px">–>-->
|
||||
<!--<!–<td colspan="1" align="center">物料名称</td>–>-->
|
||||
<!--<!–<td colspan="1" align="center">物料规格</td>–>-->
|
||||
<!--<!–<td colspan="1" align="center">物料型号</td>–>-->
|
||||
<!--<!–<td colspan="1" align="center">交货期</td>–>-->
|
||||
<!--<!–<td colspan="1" align="center">备注</td>–>-->
|
||||
<!--<!–<td colspan="1" align="center">数量</td>–>-->
|
||||
<!--<!–<td colspan="1" align="center">单价</td>–>-->
|
||||
<!--<!–<td colspan="1" align="center">总价</td>–>-->
|
||||
<!--<!–</tr>–>-->
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr style="height: 40px">
|
||||
@@ -172,7 +172,7 @@
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div style="line-height: 30px">以上价格为含税增值税价格,供方开具真实有效的16%增值税发票</div>
|
||||
<div style="line-height: 30px">以上价格为含税增值税价格,供方开具真实有效的{{ taxRate }}增值税发票</div>
|
||||
<div id="23" style="line-height: 30px"/>
|
||||
<table id="66" cellspacing="0px" align="center" border width="100%" style="margin-top: 30px">
|
||||
<tbody id="67">
|
||||
@@ -204,36 +204,36 @@
|
||||
<th style="width: 15%">电话</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">传真</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">传真</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">开户银行</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">开户银行</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">账号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">账号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">税号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">税号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">邮政编码</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">邮政编码</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<!--<tr style="height: 35px">-->
|
||||
<!--<th style="width: 15%">传真</th>-->
|
||||
<!--<td style="width: 35%" colspan="3" align="center"/>-->
|
||||
<!--<th style="width: 15%">传真</th>-->
|
||||
<!--<td style="width: 35%" colspan="3" align="center"/>-->
|
||||
<!--</tr>-->
|
||||
<!--<tr style="height: 35px">-->
|
||||
<!--<th style="width: 15%">开户银行</th>-->
|
||||
<!--<td style="width: 35%" colspan="3" align="center"/>-->
|
||||
<!--<th style="width: 15%">开户银行</th>-->
|
||||
<!--<td style="width: 35%" colspan="3" align="center"/>-->
|
||||
<!--</tr>-->
|
||||
<!--<tr style="height: 35px">-->
|
||||
<!--<th style="width: 15%">账号</th>-->
|
||||
<!--<td style="width: 35%" colspan="3" align="center"/>-->
|
||||
<!--<th style="width: 15%">账号</th>-->
|
||||
<!--<td style="width: 35%" colspan="3" align="center"/>-->
|
||||
<!--</tr>-->
|
||||
<!--<tr style="height: 35px">-->
|
||||
<!--<th style="width: 15%">税号</th>-->
|
||||
<!--<td style="width: 35%" colspan="3" align="center"/>-->
|
||||
<!--<th style="width: 15%">税号</th>-->
|
||||
<!--<td style="width: 35%" colspan="3" align="center"/>-->
|
||||
<!--</tr>-->
|
||||
<!--<tr style="height: 35px">-->
|
||||
<!--<th style="width: 15%">邮政编码</th>-->
|
||||
<!--<td style="width: 35%" colspan="3" align="center"/>-->
|
||||
<!--<th style="width: 15%">邮政编码</th>-->
|
||||
<!--<td style="width: 35%" colspan="3" align="center"/>-->
|
||||
<!--</tr>-->
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="line-height: 25px;margin-top: 10px">签订时间:____年__月__日</div>
|
||||
@@ -449,8 +449,13 @@ export default {
|
||||
this.contract = row.采购合同编号
|
||||
this.taxRate = row.税率
|
||||
this.RMB = row.总金额_文本
|
||||
this.TotalAmount = row.总金额
|
||||
this.TotalAmount1 = parseInt((row.含税总金额) * 100) / 100
|
||||
if (row.总金额 === '0') {
|
||||
this.TotalAmount = ''
|
||||
this.TotalAmount1 = ''
|
||||
} else {
|
||||
this.TotalAmount = row.总金额
|
||||
this.TotalAmount1 = parseInt((row.含税总金额) * 100) / 100
|
||||
}
|
||||
this.RMB1 = row.含税总金额_文本
|
||||
document.getElementById('23').innerText = this.textarea
|
||||
this.contractValue = parseInt(row.采购合同流水号)
|
||||
@@ -481,7 +486,7 @@ export default {
|
||||
tr[i].setAttribute('class', 'tableData')
|
||||
tr[i].innerHTML = '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' +
|
||||
'<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>'
|
||||
document.getElementById('tableHead').after(tr[i])
|
||||
$('#tableHead').after(tr[i])
|
||||
}
|
||||
for (let j = 0; j < this.returns.length; j++) {
|
||||
document.getElementsByClassName('tableData')[j].children[0].innerHTML = response.data[j].物料名称
|
||||
@@ -509,9 +514,18 @@ export default {
|
||||
tr[i].setAttribute('class', 'tableData1')
|
||||
tr[i].innerHTML = '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' +
|
||||
'<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>'
|
||||
document.getElementById('tableHead1').after(tr[i])
|
||||
$('#tableHead1').after(tr[i])
|
||||
}
|
||||
for (let j = 0; j < this.returns1.length; j++) {
|
||||
if (response.data[j].备注 === null) {
|
||||
response.data[j].备注 = ''
|
||||
}
|
||||
if (response.data[j].单价 === 0) {
|
||||
response.data[j].单价 = ''
|
||||
}
|
||||
if (response.data[j].金额 === 0) {
|
||||
response.data[j].金额 = ''
|
||||
}
|
||||
document.getElementsByClassName('tableData1')[j].children[0].innerHTML = response.data[j].物料名称
|
||||
document.getElementsByClassName('tableData1')[j].children[1].innerHTML = response.data[j].零件图号
|
||||
document.getElementsByClassName('tableData1')[j].children[2].innerHTML = response.data[j].材料
|
||||
|
||||
Reference in New Issue
Block a user