成组采购

This commit is contained in:
liushuai
2019-11-18 19:51:48 +08:00
parent 7ccc5db920
commit fb950f38bd
25 changed files with 1525 additions and 394 deletions

View File

@@ -281,6 +281,49 @@
</table>
<div style="margin-top: 20px">联系人:___________ 联系电话:___________ </div>
</div>
<div v-show="type === '4'" id="CZCG" style="width: 880px;margin: 0 auto">
<table cellspacing="0px" align="center" border="1 solid black" width="100%">
<tr style="height: 60px">
<th colspan="14"><h3>江苏高精机电装备有限公司</h3></th>
</tr>
<tr style="height: 40px">
<th colspan="14"><h4>{{ 采购合同名称 }}</h4></th>
</tr>
<tr style="height: 40px">
<td colspan="2" style="text-align: center;width: 15%">下单单位</td>
<td colspan="5" style="text-align: center;width: 35%">{{ supplier }}</td>
<td colspan="2" style="text-align: center;width: 15%">单号</td>
<td colspan="5" style="text-align: center;width: 35%">{{ contract }}</td>
</tr>
<tr style="height: 40px">
<td colspan="2" style="text-align: center;width: 15%">下单日期</td>
<td colspan="5" style="text-align: center;width: 35%">{{ 操作日期 }}</td>
<td colspan="2" style="text-align: center;width: 15%">计划完成日期</td>
<td colspan="5" style="text-align: center;width: 35%">{{ 规定到货时间 }}</td>
</tr>
</table>
<table cellspacing="0px" align="center" border="1 solid black" width="100%" style="margin-top: 0px">
<tr id="tablehead100" style="height: 35px">
<td style="text-align: center;width: 7%">序号</td>
<td colspan="2" style="text-align: center;width: 10%">组号</td>
<td colspan="2" style="text-align: center;width: 20%">组件名称</td>
<td colspan="2" style="text-align: center;width: 10%">单价</td>
<td colspan="2" style="text-align: center;width: 8%">金额</td>
<td colspan="2" style="text-align: center;width: 8%">数量</td>
<td colspan="2" style="text-align: center;width: 17%">备注</td>
</tr>
<tr v-for="(list, index) in returns2" :key="index" style="height: 35px">
<td style="text-align: center;width: 7%">{{ index + 1 }}</td>
<td colspan="2" style="text-align: center;width: 10%">{{ list.组号 }}</td>
<td colspan="2" style="text-align: center;width: 20%">{{ list.组件名称 }}</td>
<td colspan="2" style="text-align: center;width: 10%">{{ list.单价 }}</td>
<td colspan="2" style="text-align: center;width: 8%">{{ list.金额 }}</td>
<td colspan="2" style="text-align: center;width: 8%">{{ list.数量 }}</td>
<td colspan="2" style="text-align: center;width: 17%">{{ list.备注 }}</td>
</tr>
</table>
<div style="margin-top: 20px">联系人:___________ 联系电话:___________ </div>
</div>
</el-card>
</div>
</el-card>
@@ -324,7 +367,7 @@
</template>
<script>
import { initContract, initBuyer, searchTable1, searchTable2, Disable } from '@/api/WorkshopProcurement/ProcurementContractEnquiry'
import { initContract, initBuyer, searchTable1, searchTable2, Disable, searchTable3 } from '@/api/WorkshopProcurement/ProcurementContractEnquiry'
import $ from 'jquery'
import QRCode from 'qrcode'
@@ -379,6 +422,7 @@ export default {
goodTime: '',
returns: [],
returns1: [],
returns2: [],
tableData02: [],
submitDisable: true,
dialogVisible2: false,
@@ -388,6 +432,7 @@ export default {
},
created() {
this.fetchData()
this.searchTable1()
},
methods: {
fetchData() {
@@ -481,7 +526,7 @@ export default {
body.children().not('script').show()
body.children().not('#app').hide()
printNode.remove()
} else {
} else if (this.type === '3') {
const htmlNode = $('#WGBLD').html()
const body = $('body')
body.children().hide()
@@ -491,6 +536,16 @@ export default {
body.children().not('script').show()
body.children().not('#app').hide()
printNode.remove()
} else {
const htmlNode = $('#CZCG').html()
const body = $('body')
body.children().hide()
const printNode = $(htmlNode)
body.append(printNode)
window.print()
body.children().not('script').show()
body.children().not('#app').hide()
printNode.remove()
}
},
handleSizeChange1(val) {
@@ -564,11 +619,16 @@ export default {
document.getElementsByClassName('tableData')[j].children[7].innerHTML = response.data[j].金额
}
})
} else {
} else if (this.type === '3') {
this.contractValue = parseInt(row.采购合同流水号)
searchTable2(this.contractValue).then(response => {
this.returns = response.data
})
} else {
this.contractValue = parseInt(row.采购合同流水号)
searchTable3(this.contractValue).then(response => {
this.returns2 = response.data
})
}
// searchTable3(this.contractValue).then(response => {
// this.returns1 = response.data