成组采购

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

@@ -91,7 +91,7 @@
<el-card>
<div style="width:60%;margin-left: 18%">
<el-card v-show="type==='1' || type==='2'">
<table id="1" cellspacing="0px" align="center" border width="100%" style="">
<table id="1" cellspacing="0px" align="center" border width="100%" style="margin-top: 10px">
<tr style="height: 40px">
<td colspan="2" align="center" style="font-weight: bold">GAOJING</td>
<td colspan="5" align="center" style="font-weight: bold">产品销售合同</td>
@@ -213,10 +213,10 @@
</tbody>
</table>
<div style="line-height: 25px;margin-top: 10px">签订时间____年__月__日</div>
<div style="line-height: 25px">有效期限____年__月__日至____年__月__日</div>
<div style="line-height: 25px;margin-bottom: 10px">有效期限____年__月__日至____年__月__日</div>
</el-card>
<el-card v-show="type==='3'">
<table cellspacing="0px" align="center" border="1 solid black" width="100%">
<table cellspacing="0px" align="center" border="1 solid black" width="100%" style="margin-top: 10px">
<tr style="height: 60px">
<th colspan="14"><h3>江苏高精机电装备有限公司</h3></th>
</tr>
@@ -256,7 +256,52 @@
<td colspan="2" style="text-align: center;width: 17%">{{ list.备注 }}</td>
</tr>
</table>
<div style="margin-top: 20px">联系人:___________ 联系电话:___________ </div>
<div style="margin-top: 20px;margin-bottom: 10px">联系人:___________ 联系电话:___________ </div>
</el-card>
<el-card v-show="type === '4'">
<div id="CZCG" style="width: 880px;margin: 0 auto">
<table cellspacing="0px" align="center" border="1 solid black" width="100%" style="margin-top: 10px">
<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;margin-bottom: 10px">联系人:___________ 联系电话:___________ </div>
</div>
</el-card>
</div>
</el-card>
@@ -320,7 +365,7 @@
</template>
<script>
import { initContract, initBuyer, searchTable1, searchTable2, submitApproval } from '@/api/WorkshopProcurement/ProcurementContractApproval'
import { initContract, initBuyer, searchTable1, searchTable2, submitApproval, searchTable3 } from '@/api/WorkshopProcurement/ProcurementContractApproval'
import $ from 'jquery'
import QRCode from 'qrcode'
@@ -361,6 +406,7 @@ export default {
form1: {},
returns: [],
returns1: [],
returns2: [],
tableData01: [],
tableData02: [],
submitDisable: true,
@@ -377,7 +423,7 @@ export default {
],
disabled: true,
form2: {
审批是否通过: '是',
审批是否通过: 1,
未通过原因: ''
},
rules2: {
@@ -390,6 +436,7 @@ export default {
},
created() {
this.fetchData()
this.searchTable1()
},
methods: {
fetchData() {
@@ -543,11 +590,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
})
}
}
}