更新
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
</el-card>
|
||||
<el-card>
|
||||
<el-table v-show="contractNumType===1" :data="tableData5" border style="width: 1200px" height="100px" size="mini">
|
||||
<el-table-column align="center" width="50" type="selection"/>
|
||||
<el-table-column label="组件名称" align="center" width="180">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.组件名称 }}
|
||||
@@ -90,7 +91,8 @@
|
||||
</el-table>
|
||||
</el-card>
|
||||
<el-card>
|
||||
<el-table v-show="contractNumType===0" :data="tableData4" border style="width: 1200px;max-height: 420px;" height="320px" size="mini">
|
||||
<el-table v-show="contractNumType===0" :data="tableData4" border style="width: 1200px;max-height: 420px;" height="320px" size="mini" @selection-change="handleSelectionChange">
|
||||
<el-table-column align="center" width="50" type="selection"/>
|
||||
<el-table-column label="物料名称" align="center" min-width="180">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料名称 }}
|
||||
@@ -433,14 +435,16 @@ export default {
|
||||
tableData5: [],
|
||||
groupNum2: [],
|
||||
groupNum5: [],
|
||||
multipleSelection: [],
|
||||
Selection: [],
|
||||
group1: '',
|
||||
group2: '',
|
||||
group3: '',
|
||||
group5: '',
|
||||
group5: [],
|
||||
group6: '',
|
||||
group7: '',
|
||||
group8: '',
|
||||
group9: '',
|
||||
group9: [],
|
||||
group10: '',
|
||||
group11: '',
|
||||
group12: ''
|
||||
@@ -495,6 +499,12 @@ export default {
|
||||
this.tableData5[index][date] = value
|
||||
this.update1(row)
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.multipleSelection = val
|
||||
for (let i = 0; i < this.multipleSelection.length; i++) {
|
||||
this.Selection.push(Number(this.multipleSelection[i].请购单明细流水号))
|
||||
}
|
||||
},
|
||||
submitGroup() {
|
||||
submitGroup(this.contractNumValue, this.form3.groupNumValue).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
@@ -759,21 +769,31 @@ export default {
|
||||
this.group1 = ''
|
||||
this.group2 = ''
|
||||
this.group3 = ''
|
||||
this.group5 = []
|
||||
this.group7 = ''
|
||||
this.group8 = ''
|
||||
this.group9 = ''
|
||||
this.group9 = []
|
||||
this.group10 = ''
|
||||
this.group11 = ''
|
||||
this.group12 = ''
|
||||
for (let i = 0; i < this.tableData4.length; i++) {
|
||||
this.group1 += this.tableData4[i].物料流水号 + ','
|
||||
this.group2 += this.tableData4[i].零件数量 + ','
|
||||
this.group3 += this.tableData4[i].单价 + ','
|
||||
this.group7 += this.taxRate + ','
|
||||
this.group8 += this.currencyValue + ','
|
||||
this.group9 += this.tableData4[i].请购单明细流水号 + ','
|
||||
this.group11 += this.tableData4[i].单件定额工时 + ','
|
||||
this.group12 += this.tableData4[i].准结定额工时 + ','
|
||||
for (let j = 0; j < this.multipleSelection.length; j++) {
|
||||
if (this.tableData4[i].请购单明细流水号 === this.multipleSelection[j].请购单明细流水号) {
|
||||
console.log(333333)
|
||||
this.group1 += this.tableData4[i].物料流水号 + ','
|
||||
this.group2 += this.tableData4[i].零件数量 + ','
|
||||
this.group3 += this.tableData4[i].单价 + ','
|
||||
this.group7 += this.taxRate + ','
|
||||
this.group8 += this.currencyValue + ','
|
||||
this.group9.push(Number(this.tableData4[i].请购单明细流水号))
|
||||
this.group11 += this.tableData4[i].单件定额工时 + ','
|
||||
this.group12 += this.tableData4[i].准结定额工时 + ','
|
||||
} else {
|
||||
if (this.group5.indexOf(Number(this.tableData4[i].请购单明细流水号)) === -1 && this.Selection.indexOf(Number(this.tableData4[i].请购单明细流水号)) === -1) {
|
||||
this.group5.push(Number(this.tableData4[i].请购单明细流水号))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for (let i = 0; i < this.contractNum.length; i++) {
|
||||
if (this.contractNum[i].value === this.contractNumValue) {
|
||||
@@ -783,7 +803,7 @@ export default {
|
||||
this.group1 = this.group1.substr(0, this.group1.length - 1)
|
||||
this.group2 = this.group2.substr(0, this.group2.length - 1)
|
||||
this.group3 = this.group3.substr(0, this.group3.length - 1)
|
||||
doneContract(this.contractNumValue, this.RequisitionNumber, this.contractName, this.planArrivalTime, this.stipulateArrivalTime, this.supplierValue, this.textArea, this.contractValue, this.freight, this.group1, this.group2, this.group3, this.group7, this.group8, this.group9, this.id, this.group11, this.group12, this.AdvanceCharge).then(response => {
|
||||
doneContract(this.contractNumValue, this.RequisitionNumber, this.contractName, this.planArrivalTime, this.stipulateArrivalTime, this.supplierValue, this.textArea, this.contractValue, this.freight, this.group1, this.group2, this.group3, this.group7, this.group8, this.group9, this.id, this.group11, this.group12, this.AdvanceCharge, this.group5).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('生成合同成功')
|
||||
this.reload()
|
||||
|
||||
Reference in New Issue
Block a user