创建采购备料计划
This commit is contained in:
@@ -182,9 +182,9 @@
|
||||
{{ scope.row.批次数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="求购重量" align="center">
|
||||
<el-table-column label="成品尺寸(长、宽、高)" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.重量1" size="mini" style="width:120px" @change="saveWeight(scope.$index, scope.row)"/>
|
||||
<el-input v-model="scope.row.成品尺寸" size="mini" style="width:120px" @change="saveWeight(scope.$index, scope.row)"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单价" align="center" >
|
||||
@@ -368,7 +368,7 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-card style="width: 1100px;margin: 10px auto">
|
||||
<div id="cjn" style="width: 1000px;margin: 0 auto">
|
||||
<div id="WGBLD" style="width: 1000px;margin: 0 auto">
|
||||
<table cellspacing="0px" align="center" border="1 solid black" width="100%">
|
||||
<tr>
|
||||
<th colspan="14"><h3>江苏高精机电装备有限公司</h3></th>
|
||||
@@ -407,7 +407,7 @@
|
||||
<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: 20%">{{ list.重量 }}</td>
|
||||
<td colspan="2" style="text-align: center;width: 20%">{{ list.成品尺寸 }}</td>
|
||||
<td style="text-align: center;width: 17%">{{ list.备注1 }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -556,13 +556,7 @@ export default {
|
||||
}
|
||||
},
|
||||
saveWeight(index, row) {
|
||||
var reg = /^[0-9]*$/
|
||||
if (!reg.test(row.重量1)) {
|
||||
this.$message.error('请输入正确的重量')
|
||||
row.重量1 = ''
|
||||
} else {
|
||||
saveWeight(row.采购计划明细流水号, row.重量1, row.备注1, row.单价)
|
||||
}
|
||||
saveWeight(row.采购计划明细流水号, row.成品尺寸, row.备注1, row.单价)
|
||||
},
|
||||
saveMoney(index, row) {
|
||||
var reg = /^[0-9]*$/
|
||||
@@ -570,11 +564,11 @@ export default {
|
||||
this.$message.error('请输入正确的单价')
|
||||
row.单价 = ''
|
||||
} else {
|
||||
saveWeight(row.采购计划明细流水号, row.重量1, row.备注1, row.单价)
|
||||
saveWeight(row.采购计划明细流水号, row.成品尺寸, row.备注1, row.单价)
|
||||
}
|
||||
},
|
||||
saveRemarks(index, row) {
|
||||
saveWeight(row.采购计划明细流水号, row.重量1, row.备注1, row.单价)
|
||||
saveWeight(row.采购计划明细流水号, row.成品尺寸, row.备注1, row.单价)
|
||||
},
|
||||
// ///////////////////////////////////////////////////////////////////////////////////////0529新加↑
|
||||
useqrcode(contractNum) {
|
||||
@@ -778,7 +772,6 @@ export default {
|
||||
this.计划完成日期 = row.计划完成日期.split(' ')[0]
|
||||
this.下单日期 = row.下单日期.split(' ')[0]
|
||||
searchMateriel(this.purchasingOrderNumber).then(response => {
|
||||
console.log(response.data)
|
||||
this.tableData3 = response.data
|
||||
})
|
||||
},
|
||||
@@ -864,7 +857,7 @@ export default {
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
const htmlNode = $('#cjn').html()
|
||||
const htmlNode = $('#WGBLD').html()
|
||||
const body = $('body')
|
||||
body.children().hide()
|
||||
const printNode = $(htmlNode)
|
||||
|
||||
Reference in New Issue
Block a user