零件导入,零件分配,车间采购系统
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
</el-select>
|
||||
<span>供应商:</span>
|
||||
<el-input v-model="supplierName" placeholder="供应商" size="small" clearable/>
|
||||
<span>提前</span>
|
||||
<el-input-number v-model="warningValue" :min="1" controls-position="right" size="small" style="width: 90px"/>
|
||||
<span>天预警</span>
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
@@ -70,7 +73,7 @@
|
||||
<el-progress
|
||||
:text-inside="true"
|
||||
:stroke-width="18"
|
||||
:percentage="100*(parseInt(scope.row.合同物料到货总数)/parseInt(scope.row.合同物料采购总数)).toFixed(4)"
|
||||
:percentage="parseFloat((100*scope.row.合同物料到货总数/scope.row.合同物料采购总数).toFixed(2))"
|
||||
status="success"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -162,6 +165,7 @@ export default {
|
||||
name: '', // 项目总价查询
|
||||
data() {
|
||||
return {
|
||||
warningValue: 3,
|
||||
check1: 0,
|
||||
check2: 0,
|
||||
contractNumValue: '',
|
||||
@@ -202,6 +206,7 @@ export default {
|
||||
})
|
||||
},
|
||||
searchTable1() {
|
||||
this.warningValue ? this.warningValue : this.warningValue = 1
|
||||
this.arrival = [] // 规定到货时间数组
|
||||
this.now = new Date()
|
||||
this.contractNumValue ? this.check1 = 1 : this.check1 = 0
|
||||
@@ -210,13 +215,13 @@ export default {
|
||||
for (let i = 0; i < response.data.rows.length; i++) {
|
||||
this.arrival.push(new Date(response.data.rows[i].规定到货时间))
|
||||
if (parseInt(response.data.rows[i].合同物料到货总数) === parseInt(response.data.rows[i].合同物料采购总数)) {
|
||||
this.judge[i] = 1
|
||||
} else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.now - this.arrival[i]) > 0 && (this.now - this.arrival[i]) < 86400000) {
|
||||
this.judge[i] = 2
|
||||
} else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.now - this.arrival[i]) > 86400000) {
|
||||
this.judge[i] = 3
|
||||
} else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.now - this.arrival[i]) < 0) {
|
||||
this.judge[i] = 4
|
||||
this.judge[i] = 1 // 全部到货
|
||||
} else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.arrival[i] - this.now) > 0 && (this.arrival[i] - this.now) < (86400000 * this.warningValue)) {
|
||||
this.judge[i] = 2 // 即将拖期
|
||||
} else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.arrival[i] - this.now) < 0) {
|
||||
this.judge[i] = 3 // 已拖期
|
||||
} else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.arrival[i] - this.now) > (86400000 * this.warningValue)) {
|
||||
this.judge[i] = 4 // 进度正常
|
||||
}
|
||||
}
|
||||
this.tableData1 = response.data.rows
|
||||
|
||||
@@ -26,13 +26,14 @@
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="预付款">
|
||||
<el-select v-model="payMethodValue" placeholder="预付款" size="small" @change="payMethodChange">
|
||||
<el-option
|
||||
v-for="item in payMethod"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<el-input v-model="AdvanceCharge" size="small" placeholder="预付款"/>
|
||||
<!--<el-select v-model="payMethodValue" placeholder="预付款" size="small" @change="payMethodChange">-->
|
||||
<!--<el-option-->
|
||||
<!--v-for="item in payMethod"-->
|
||||
<!--:key="item.value"-->
|
||||
<!--:label="item.label"-->
|
||||
<!--:value="item.value"/>-->
|
||||
<!--</el-select>-->
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -355,7 +356,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { searchSupplier, initPayMethod, initPayTimeNode, update, doneContract, initPurchaseOrder, searchData, searchData1, searchData2, searchContractDemo } from '@/api/WorkshopProcurement/CreatingProcurementContracts'
|
||||
import { searchSupplier, update, doneContract, initPurchaseOrder, searchData, searchData1, searchData2, searchContractDemo } from '@/api/WorkshopProcurement/CreatingProcurementContracts'
|
||||
import { mapGetters } from 'vuex'
|
||||
export default {
|
||||
inject: ['reload'],
|
||||
@@ -370,6 +371,7 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
AdvanceCharge: '',
|
||||
loading: false,
|
||||
dialogVisible1: false,
|
||||
disable2: true,
|
||||
@@ -545,14 +547,14 @@ export default {
|
||||
}
|
||||
},
|
||||
searchDemo(row = this.paramRow) {
|
||||
for (let i = 0; i < this.payMethod.length; i++) {
|
||||
if (this.payMethod[i].value === this.payMethodValue) {
|
||||
this.payMethodName = this.payMethod[i].label
|
||||
}
|
||||
}
|
||||
// for (let i = 0; i < this.payMethod.length; i++) {
|
||||
// if (this.payMethod[i].value === this.payMethodValue) {
|
||||
// this.payMethodName = this.payMethod[i].label
|
||||
// }
|
||||
// }
|
||||
this.paramRow = row
|
||||
searchContractDemo(this.paramRow.合同模板流水号).then(response => {
|
||||
this.textArea = response.data[0].合同模板内容.replace('stipulateArrivalTime', this.stipulateArrivalTime).replace('payMethodName', this.payMethodName)
|
||||
this.textArea = response.data[0].合同模板内容.replace('stipulateArrivalTime', this.stipulateArrivalTime).replace('AdvanceCharge', this.AdvanceCharge)
|
||||
})
|
||||
},
|
||||
contractChange() {
|
||||
@@ -562,49 +564,49 @@ export default {
|
||||
searchContractDemo().then(response => { // 初始化合同模板
|
||||
this.tableData2 = response.data
|
||||
})
|
||||
this.payMethod = []
|
||||
initPayMethod().then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.payMethod.push({
|
||||
label: response.data[i].付款方式内容,
|
||||
value: response.data[i].付款方式流水号
|
||||
})
|
||||
}
|
||||
})
|
||||
this.payTime1 = []
|
||||
this.payTime2 = []
|
||||
this.payTime3 = []
|
||||
this.payTime4 = []
|
||||
this.payTime5 = []
|
||||
this.payTime6 = []
|
||||
initPayTimeNode().then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.payTime1.push({
|
||||
label: response.data[i].付款时间节点名称,
|
||||
value: response.data[i].付款时间节点流水号
|
||||
})
|
||||
this.payTime2.push({
|
||||
label: response.data[i].付款时间节点名称,
|
||||
value: response.data[i].付款时间节点流水号
|
||||
})
|
||||
this.payTime3.push({
|
||||
label: response.data[i].付款时间节点名称,
|
||||
value: response.data[i].付款时间节点流水号
|
||||
})
|
||||
this.payTime4.push({
|
||||
label: response.data[i].付款时间节点名称,
|
||||
value: response.data[i].付款时间节点流水号
|
||||
})
|
||||
this.payTime5.push({
|
||||
label: response.data[i].付款时间节点名称,
|
||||
value: response.data[i].付款时间节点流水号
|
||||
})
|
||||
this.payTime6.push({
|
||||
label: response.data[i].付款时间节点名称,
|
||||
value: response.data[i].付款时间节点流水号
|
||||
})
|
||||
}
|
||||
})
|
||||
// this.payMethod = []
|
||||
// initPayMethod().then(response => {
|
||||
// for (let i = 0; i < response.data.length; i++) {
|
||||
// this.payMethod.push({
|
||||
// label: response.data[i].付款方式内容,
|
||||
// value: response.data[i].付款方式流水号
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
// this.payTime1 = []
|
||||
// this.payTime2 = []
|
||||
// this.payTime3 = []
|
||||
// this.payTime4 = []
|
||||
// this.payTime5 = []
|
||||
// this.payTime6 = []
|
||||
// initPayTimeNode().then(response => {
|
||||
// for (let i = 0; i < response.data.length; i++) {
|
||||
// this.payTime1.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// this.payTime2.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// this.payTime3.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// this.payTime4.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// this.payTime5.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// this.payTime6.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
this.getSelect(initPurchaseOrder, ['请购单编号', '请购单流水号'], 'contractNum')
|
||||
},
|
||||
searchSupplier() { // 查询创立日期和注册资本大于符合条件的数据
|
||||
@@ -676,8 +678,8 @@ export default {
|
||||
this.group1 = ''
|
||||
this.group2 = ''
|
||||
this.group3 = ''
|
||||
this.group5 = ''
|
||||
this.group6 = ''
|
||||
// this.group5 = ''
|
||||
// this.group6 = ''
|
||||
this.group7 = ''
|
||||
this.group8 = ''
|
||||
this.group9 = ''
|
||||
@@ -703,50 +705,50 @@ export default {
|
||||
this.RequisitionNumber = this.contractNum[i].label
|
||||
}
|
||||
}
|
||||
for (let i = 0; i < this.payMethod.length; i++) {
|
||||
if (this.payMethod[i].value === this.payMethodValue) {
|
||||
this.payMethodName = this.payMethod[i].label
|
||||
}
|
||||
}
|
||||
const payTimeNum = this.payMethodName.split(':')
|
||||
if (payTimeNum.length > 1) {
|
||||
for (let i = 0; i < payTimeNum.length; i++) {
|
||||
switch (i) {
|
||||
case 0:
|
||||
this.group6 += this.payTime1Value + ','
|
||||
break
|
||||
case 1:
|
||||
this.group6 += this.payTime2Value + ','
|
||||
break
|
||||
case 2:
|
||||
this.group6 += this.payTime3Value + ','
|
||||
break
|
||||
case 3:
|
||||
this.group6 += this.payTime4Value + ','
|
||||
break
|
||||
case 4:
|
||||
this.group6 += this.payTime5Value + ','
|
||||
break
|
||||
case 5:
|
||||
this.group6 += this.payTime6Value + ','
|
||||
break
|
||||
}
|
||||
this.group5 += payTimeNum[i] + ',' // 付款比例 付款方式 付款计划
|
||||
}
|
||||
} else {
|
||||
this.group5 = '10,' // 付款比例 付款方式 付款计划
|
||||
this.group6 = this.payTime1Value + ',' // 付款时间
|
||||
}
|
||||
// for (let i = 0; i < this.payMethod.length; i++) {
|
||||
// if (this.payMethod[i].value === this.payMethodValue) {
|
||||
// this.payMethodName = this.payMethod[i].label
|
||||
// }
|
||||
// }
|
||||
// const payTimeNum = this.payMethodName.split(':')
|
||||
// if (payTimeNum.length > 1) {
|
||||
// for (let i = 0; i < payTimeNum.length; i++) {
|
||||
// switch (i) {
|
||||
// case 0:
|
||||
// this.group6 += this.payTime1Value + ','
|
||||
// break
|
||||
// case 1:
|
||||
// this.group6 += this.payTime2Value + ','
|
||||
// break
|
||||
// case 2:
|
||||
// this.group6 += this.payTime3Value + ','
|
||||
// break
|
||||
// case 3:
|
||||
// this.group6 += this.payTime4Value + ','
|
||||
// break
|
||||
// case 4:
|
||||
// this.group6 += this.payTime5Value + ','
|
||||
// break
|
||||
// case 5:
|
||||
// this.group6 += this.payTime6Value + ','
|
||||
// break
|
||||
// }
|
||||
// this.group5 += payTimeNum[i] + ',' // 付款比例 付款方式 付款计划
|
||||
// }
|
||||
// } else {
|
||||
// this.group5 = '10,' // 付款比例 付款方式 付款计划
|
||||
// this.group6 = this.payTime1Value + ',' // 付款时间
|
||||
// }
|
||||
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)
|
||||
this.group5 = this.group5.substr(0, this.group5.length - 1)
|
||||
this.group6 = this.group6.substr(0, this.group6.length - 1)
|
||||
this.group7 = this.group7.substr(0, this.group7.length - 1)
|
||||
this.group8 = this.group8.substr(0, this.group8.length - 1)
|
||||
this.group9 = this.group9.substr(0, this.group9.length - 1)
|
||||
this.group10 = this.group10.substr(0, this.group10.length - 1)
|
||||
doneContract(this.contractNumValue, this.RequisitionNumber, this.contractName, this.planArrivalTime, this.stipulateArrivalTime, this.payMethodName, this.supplierValue, this.textArea, this.freight, this.group1, this.group2, this.group3, this.group5, this.group6, this.group7, this.group8, this.group9, this.id).then(response => {
|
||||
// this.group5 = this.group5.substr(0, this.group5.length - 1)
|
||||
// this.group6 = this.group6.substr(0, this.group6.length - 1)
|
||||
// this.group7 = this.group7.substr(0, this.group7.length - 1)
|
||||
// this.group8 = this.group8.substr(0, this.group8.length - 1)
|
||||
// this.group9 = this.group9.substr(0, this.group9.length - 1)
|
||||
// this.group10 = this.group10.substr(0, this.group10.length - 1)
|
||||
doneContract(this.contractNumValue, this.RequisitionNumber, this.contractName, this.planArrivalTime, this.stipulateArrivalTime, this.supplierValue, this.textArea, this.freight, this.group1, this.group2, this.group3, this.group7, this.group8, this.group9, this.id, this.AdvanceCharge).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('生成合同成功')
|
||||
this.reload()
|
||||
@@ -754,59 +756,59 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
payMethodChange() { // 付款方式改变
|
||||
for (let i = 0; i < this.payMethod.length; i++) {
|
||||
if (this.payMethod[i].value === this.payMethodValue) {
|
||||
this.payMethodName = this.payMethod[i].label
|
||||
}
|
||||
}
|
||||
const payTimeNum = this.payMethodName.split(':')
|
||||
switch (payTimeNum.length) {
|
||||
case 1:
|
||||
this.disable2 = true
|
||||
this.disable3 = true
|
||||
this.disable4 = true
|
||||
this.disable5 = true
|
||||
this.disable6 = true
|
||||
break
|
||||
case 2:
|
||||
this.disable2 = false
|
||||
this.disable3 = true
|
||||
this.disable4 = true
|
||||
this.disable5 = true
|
||||
this.disable6 = true
|
||||
break
|
||||
case 3:
|
||||
this.disable2 = false
|
||||
this.disable3 = false
|
||||
this.disable4 = true
|
||||
this.disable5 = true
|
||||
this.disable6 = true
|
||||
break
|
||||
case 4:
|
||||
this.disable2 = false
|
||||
this.disable3 = false
|
||||
this.disable4 = false
|
||||
this.disable5 = true
|
||||
this.disable6 = true
|
||||
break
|
||||
case 5:
|
||||
this.disable2 = false
|
||||
this.disable3 = false
|
||||
this.disable4 = false
|
||||
this.disable5 = false
|
||||
this.disable6 = true
|
||||
break
|
||||
case 6:
|
||||
this.disable2 = false
|
||||
this.disable3 = false
|
||||
this.disable4 = false
|
||||
this.disable5 = false
|
||||
this.disable6 = false
|
||||
break
|
||||
}
|
||||
this.fetchData()
|
||||
},
|
||||
// payMethodChange() { // 付款方式改变
|
||||
// for (let i = 0; i < this.payMethod.length; i++) {
|
||||
// if (this.payMethod[i].value === this.payMethodValue) {
|
||||
// this.payMethodName = this.payMethod[i].label
|
||||
// }
|
||||
// }
|
||||
// const payTimeNum = this.payMethodName.split(':')
|
||||
// switch (payTimeNum.length) {
|
||||
// case 1:
|
||||
// this.disable2 = true
|
||||
// this.disable3 = true
|
||||
// this.disable4 = true
|
||||
// this.disable5 = true
|
||||
// this.disable6 = true
|
||||
// break
|
||||
// case 2:
|
||||
// this.disable2 = false
|
||||
// this.disable3 = true
|
||||
// this.disable4 = true
|
||||
// this.disable5 = true
|
||||
// this.disable6 = true
|
||||
// break
|
||||
// case 3:
|
||||
// this.disable2 = false
|
||||
// this.disable3 = false
|
||||
// this.disable4 = true
|
||||
// this.disable5 = true
|
||||
// this.disable6 = true
|
||||
// break
|
||||
// case 4:
|
||||
// this.disable2 = false
|
||||
// this.disable3 = false
|
||||
// this.disable4 = false
|
||||
// this.disable5 = true
|
||||
// this.disable6 = true
|
||||
// break
|
||||
// case 5:
|
||||
// this.disable2 = false
|
||||
// this.disable3 = false
|
||||
// this.disable4 = false
|
||||
// this.disable5 = false
|
||||
// this.disable6 = true
|
||||
// break
|
||||
// case 6:
|
||||
// this.disable2 = false
|
||||
// this.disable3 = false
|
||||
// this.disable4 = false
|
||||
// this.disable5 = false
|
||||
// this.disable6 = false
|
||||
// break
|
||||
// }
|
||||
// this.fetchData()
|
||||
// },
|
||||
exportExcel() {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,9 +78,9 @@
|
||||
{{ scope.row.总金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="付款方式" width="80" align="center">
|
||||
<el-table-column label="预付款" width="80" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.付款方式内容 }}
|
||||
{{ scope.row.预付款 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="欠款金额" min-width="70" align="center">
|
||||
@@ -226,9 +226,9 @@
|
||||
{{ scope.row.总金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="付款方式" min-width="80" align="center">
|
||||
<el-table-column label="预付款" min-width="80" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.付款方式内容 }}
|
||||
{{ scope.row.预付款 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="欠款金额" min-width="80" align="center">
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
{{ scope.row.供应商名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="付款方式" align="center" min-width="100">
|
||||
<el-table-column label="预付款" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.付款方式内容 }}
|
||||
{{ scope.row.预付款 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="采购员" align="center" min-width="70">
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
{{ scope.row.供应商名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="付款方式" align="center" min-width="100">
|
||||
<el-table-column label="预付款" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.付款方式内容 }}
|
||||
{{ scope.row.预付款 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="采购员" align="center" min-width="70">
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
{{ scope.row.供应商名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="付款方式" align="center" min-width="100">
|
||||
<el-table-column label="预付款" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.付款方式内容 }}
|
||||
{{ scope.row.预付款 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="采购员" align="center" min-width="70">
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="到票情况" min-width="200px">
|
||||
<template slot-scope="scope">
|
||||
<el-progress :text-inside="true" :stroke-width="18" :percentage="100*(scope.row.到票总金额/scope.row.合同总金额).toFixed(4)" status="success"/>
|
||||
<el-progress :text-inside="true" :stroke-width="18" :percentage="100*(scope.row.到票总金额/scope.row.合同总金额).toFixed(2)" status="success"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
@@ -44,9 +44,9 @@
|
||||
{{ scope.row.供应商名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="付款方式" align="center" min-width="100">
|
||||
<el-table-column label="预付款" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.付款方式内容 }}
|
||||
{{ scope.row.预付款 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="采购员" align="center" min-width="70">
|
||||
|
||||
@@ -64,9 +64,9 @@
|
||||
{{ scope.row.总金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="付款方式" align="center" width="200">
|
||||
<el-table-column label="预付款" align="center" width="200">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.付款方式内容 }}
|
||||
{{ scope.row.预付款 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="100">
|
||||
@@ -116,6 +116,8 @@
|
||||
<td colspan="2" 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>
|
||||
@@ -129,6 +131,8 @@
|
||||
<td colspan="2" 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>
|
||||
@@ -136,13 +140,17 @@
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="6">运费:</td>
|
||||
<td colspan="8">运费:</td>
|
||||
<td colspan="1" align="center">{{ freight }}</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="6">总价: (人民币){{ RMB }}(含0.17增值税) </td>
|
||||
<td colspan="8">总价: (人民币){{ RMB }}(未税) </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount }}</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="8">总价: (人民币){{ RMB1 }}(含{{ taxRate }}增值税) </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount1 }}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div id="23"/>
|
||||
@@ -235,6 +243,9 @@ export default {
|
||||
supplier: '',
|
||||
supplierName: '',
|
||||
supplierValue: '',
|
||||
taxRate: '',
|
||||
TotalAmount1: '',
|
||||
RMB1: '',
|
||||
total1: 0,
|
||||
pageCurrent1: 1,
|
||||
pageSize1: 10,
|
||||
@@ -369,9 +380,12 @@ export default {
|
||||
this.textarea = row.合同文本
|
||||
this.supplier = row.供应商名称
|
||||
this.contract = row.采购合同编号
|
||||
this.taxRate = row.税率
|
||||
this.freight = parseInt(row.总金额) - parseInt(row.总金额_小计)
|
||||
this.RMB = row.总金额_文本
|
||||
this.TotalAmount = row.总金额
|
||||
this.TotalAmount1 = parseInt((row.含税总金额) * 100) / 100
|
||||
this.RMB1 = row.含税总金额_文本
|
||||
document.getElementById('23').innerText = this.textarea
|
||||
this.contractValue = parseInt(row.采购合同流水号)
|
||||
searchTable2(this.contractValue).then(response => {
|
||||
@@ -388,16 +402,18 @@ export default {
|
||||
tr[i] = document.createElement('tr')
|
||||
tr[i].setAttribute('class', 'tableData')
|
||||
tr[i].innerHTML = '<td colspan="2" 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>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>'
|
||||
document.getElementById('tableHead').after(tr[i])
|
||||
}
|
||||
for (let j = 0; j < this.returns.length; j++) {
|
||||
document.getElementsByClassName('tableData')[j].children[0].innerHTML = response.data[j].物料名称
|
||||
document.getElementsByClassName('tableData')[j].children[1].innerHTML = response.data[j].物料规格
|
||||
document.getElementsByClassName('tableData')[j].children[2].innerHTML = response.data[j].物料型号
|
||||
document.getElementsByClassName('tableData')[j].children[3].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData')[j].children[4].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData')[j].children[5].innerHTML = response.data[j].金额
|
||||
document.getElementsByClassName('tableData')[j].children[3].innerHTML = response.data[j].物料计划到货时间.split(' ')[0]
|
||||
document.getElementsByClassName('tableData')[j].children[4].innerHTML = response.data[j].备注
|
||||
document.getElementsByClassName('tableData')[j].children[5].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData')[j].children[6].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData')[j].children[7].innerHTML = response.data[j].金额
|
||||
}
|
||||
})
|
||||
searchTable3(this.contractValue).then(response => {
|
||||
@@ -414,16 +430,18 @@ export default {
|
||||
tr[i] = document.createElement('tr')
|
||||
tr[i].setAttribute('class', 'tableData1')
|
||||
tr[i].innerHTML = '<td colspan="2" 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>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>'
|
||||
document.getElementById('tableHead1').after(tr[i])
|
||||
}
|
||||
for (let j = 0; j < this.returns1.length; 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].材料
|
||||
document.getElementsByClassName('tableData1')[j].children[3].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData1')[j].children[4].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData1')[j].children[5].innerHTML = response.data[j].金额
|
||||
document.getElementsByClassName('tableData1')[j].children[3].innerHTML = response.data[j].物料计划到货时间.split(' ')[0]
|
||||
document.getElementsByClassName('tableData1')[j].children[4].innerHTML = response.data[j].备注
|
||||
document.getElementsByClassName('tableData1')[j].children[5].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData1')[j].children[6].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData1')[j].children[7].innerHTML = response.data[j].金额
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -73,9 +73,9 @@
|
||||
{{ scope.row.总金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="付款方式" align="center" width="200">
|
||||
<el-table-column label="预付款" align="center" width="200">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.付款方式内容 }}
|
||||
{{ scope.row.预付款 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="审批情况" align="center" width="100">
|
||||
@@ -135,6 +135,8 @@
|
||||
<td colspan="2" 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>
|
||||
@@ -148,6 +150,8 @@
|
||||
<td colspan="2" 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>
|
||||
@@ -155,13 +159,17 @@
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="6">运费:</td>
|
||||
<td colspan="8">运费:</td>
|
||||
<td colspan="1" align="center">{{ freight }}</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="6">总价: (人民币){{ RMB }}(含0.17增值税) </td>
|
||||
<td colspan="8">总价: (人民币){{ RMB }}(未税) </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount }}</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="8">总价: (人民币){{ RMB1 }}(含{{ taxRate }}增值税) </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount1 }}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div id="23"/>
|
||||
@@ -242,6 +250,9 @@ export default {
|
||||
startEndDate: '',
|
||||
contract: '',
|
||||
freight: '',
|
||||
taxRate: '',
|
||||
TotalAmount1: '',
|
||||
RMB1: '',
|
||||
contractNumValue: '',
|
||||
contractNum: [],
|
||||
ProcurementContractNum: '',
|
||||
@@ -365,9 +376,12 @@ export default {
|
||||
this.textarea = row.合同文本
|
||||
this.supplier = row.供应商名称
|
||||
this.contract = row.采购合同编号
|
||||
this.taxRate = row.税率
|
||||
this.freight = parseInt(row.总金额) - parseInt(row.总金额_小计)
|
||||
this.RMB = row.总金额_文本
|
||||
this.TotalAmount = row.总金额
|
||||
this.TotalAmount1 = parseInt((row.含税总金额) * 100) / 100
|
||||
this.RMB1 = row.含税总金额_文本
|
||||
document.getElementById('23').innerText = this.textarea
|
||||
this.contractValue = parseInt(row.采购合同流水号)
|
||||
searchTable2(this.contractValue).then(response => {
|
||||
@@ -384,16 +398,18 @@ export default {
|
||||
tr[i] = document.createElement('tr')
|
||||
tr[i].setAttribute('class', 'tableData')
|
||||
tr[i].innerHTML = '<td colspan="2" 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>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>'
|
||||
document.getElementById('tableHead').after(tr[i])
|
||||
}
|
||||
for (let j = 0; j < this.returns.length; j++) {
|
||||
document.getElementsByClassName('tableData')[j].children[0].innerHTML = response.data[j].物料名称
|
||||
document.getElementsByClassName('tableData')[j].children[1].innerHTML = response.data[j].物料规格
|
||||
document.getElementsByClassName('tableData')[j].children[2].innerHTML = response.data[j].物料型号
|
||||
document.getElementsByClassName('tableData')[j].children[3].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData')[j].children[4].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData')[j].children[5].innerHTML = response.data[j].金额
|
||||
document.getElementsByClassName('tableData')[j].children[3].innerHTML = response.data[j].物料计划到货时间.split(' ')[0]
|
||||
document.getElementsByClassName('tableData')[j].children[4].innerHTML = response.data[j].备注
|
||||
document.getElementsByClassName('tableData')[j].children[5].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData')[j].children[6].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData')[j].children[7].innerHTML = response.data[j].金额
|
||||
}
|
||||
})
|
||||
searchTable3(this.contractValue).then(response => {
|
||||
@@ -410,16 +426,18 @@ export default {
|
||||
tr[i] = document.createElement('tr')
|
||||
tr[i].setAttribute('class', 'tableData1')
|
||||
tr[i].innerHTML = '<td colspan="2" 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>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>'
|
||||
document.getElementById('tableHead1').after(tr[i])
|
||||
}
|
||||
for (let j = 0; j < this.returns1.length; 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].材料
|
||||
document.getElementsByClassName('tableData1')[j].children[3].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData1')[j].children[4].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData1')[j].children[5].innerHTML = response.data[j].金额
|
||||
document.getElementsByClassName('tableData1')[j].children[3].innerHTML = response.data[j].物料计划到货时间.split(' ')[0]
|
||||
document.getElementsByClassName('tableData1')[j].children[4].innerHTML = response.data[j].备注
|
||||
document.getElementsByClassName('tableData1')[j].children[5].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData1')[j].children[6].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData1')[j].children[7].innerHTML = response.data[j].金额
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -59,9 +59,9 @@
|
||||
{{ scope.row.总金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="付款方式" align="center">
|
||||
<el-table-column label="预付款" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.付款方式内容 }}
|
||||
{{ scope.row.预付款 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="100" fixed="right">
|
||||
@@ -110,6 +110,8 @@
|
||||
<td colspan="2" 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>
|
||||
@@ -123,6 +125,8 @@
|
||||
<td colspan="2" 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>
|
||||
@@ -130,16 +134,16 @@
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="6">运费:</td>
|
||||
<td colspan="8">运费:</td>
|
||||
<td colspan="1" align="center">{{ freight }}</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="6">总价: (人民币){{ RMB }} </td>
|
||||
<td colspan="8">总价: (人民币){{ RMB }} </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount }}</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="6">总价: (人民币){{ RMB1 }}(含{{ taxRate }}增值税) </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount1 }}</td>
|
||||
<td colspan="8">总价: (人民币){{ RMB3 }}(含{{ taxRate }}增值税) </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount3 }}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -213,9 +217,9 @@
|
||||
{{ scope.row.总金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="付款方式" align="center">
|
||||
<el-table-column label="预付款" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.付款方式内容 }}
|
||||
{{ scope.row.预付款 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="变更原因" align="center">
|
||||
@@ -269,6 +273,8 @@
|
||||
<td colspan="2" 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>
|
||||
@@ -282,6 +288,8 @@
|
||||
<td colspan="2" 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>
|
||||
@@ -289,13 +297,17 @@
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="6">运费:</td>
|
||||
<td colspan="8">运费:</td>
|
||||
<td colspan="1" align="center">{{ freight1 }}</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="6">总价: (人民币){{ RMB1 }}(含0.16增值税) </td>
|
||||
<td colspan="8">总价: (人民币){{ RMB1 }} </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount1 }}</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="8">总价: (人民币){{ RMB4 }}(含{{ taxRate1 }}增值税) </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount4 }}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div id="24"/>
|
||||
@@ -367,7 +379,11 @@ export default {
|
||||
RMB: '',
|
||||
TotalAmount: '',
|
||||
RMB1: '',
|
||||
RMB3: '',
|
||||
RMB4: '',
|
||||
TotalAmount1: '',
|
||||
TotalAmount3: '',
|
||||
TotalAmount4: '',
|
||||
check1: 0,
|
||||
check2: 0,
|
||||
check3: 0,
|
||||
@@ -380,6 +396,7 @@ export default {
|
||||
freight: '',
|
||||
freight1: '',
|
||||
taxRate: '',
|
||||
taxRate1: '',
|
||||
contractNumValue: '',
|
||||
contractNum: [],
|
||||
contractNumValue1: '',
|
||||
@@ -567,14 +584,15 @@ export default {
|
||||
this.textarea = row.合同文本
|
||||
this.supplier = row.供应商名称
|
||||
this.contract = row.采购合同编号
|
||||
this.taxRate = row.税率
|
||||
this.freight = parseInt(row.总金额) - parseInt(row.总金额_小计)
|
||||
this.RMB = row.总金额_文本
|
||||
this.TotalAmount = row.总金额
|
||||
this.TotalAmount3 = parseInt((row.含税总金额) * 100) / 100
|
||||
this.RMB3 = row.含税总金额_文本
|
||||
document.getElementById('23').innerText = this.textarea
|
||||
this.contractValue = parseInt(row.采购合同流水号)
|
||||
searchTable2(this.contractValue).then(response => {
|
||||
console.log(response.data)
|
||||
this.taxRate = response.data[0].税率
|
||||
this.returns = response.data
|
||||
const children = document.getElementsByClassName('tableData')
|
||||
const parent = document.getElementById('4')
|
||||
@@ -588,16 +606,18 @@ export default {
|
||||
tr[i] = document.createElement('tr')
|
||||
tr[i].setAttribute('class', 'tableData')
|
||||
tr[i].innerHTML = '<td colspan="2" 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>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>'
|
||||
document.getElementById('tableHead').after(tr[i])
|
||||
}
|
||||
for (let j = 0; j < this.returns.length; j++) {
|
||||
document.getElementsByClassName('tableData')[j].children[0].innerHTML = response.data[j].物料名称
|
||||
document.getElementsByClassName('tableData')[j].children[1].innerHTML = response.data[j].物料规格
|
||||
document.getElementsByClassName('tableData')[j].children[2].innerHTML = response.data[j].物料型号
|
||||
document.getElementsByClassName('tableData')[j].children[3].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData')[j].children[4].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData')[j].children[5].innerHTML = response.data[j].金额
|
||||
document.getElementsByClassName('tableData')[j].children[3].innerHTML = response.data[j].物料计划到货时间.split(' ')[0]
|
||||
document.getElementsByClassName('tableData')[j].children[4].innerHTML = response.data[j].备注
|
||||
document.getElementsByClassName('tableData')[j].children[5].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData')[j].children[6].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData')[j].children[7].innerHTML = response.data[j].金额
|
||||
}
|
||||
})
|
||||
searchTable5(this.contractValue).then(response => {
|
||||
@@ -614,16 +634,18 @@ export default {
|
||||
tr[i] = document.createElement('tr')
|
||||
tr[i].setAttribute('class', 'tableData2')
|
||||
tr[i].innerHTML = '<td colspan="2" 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>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>'
|
||||
document.getElementById('tableHead2').after(tr[i])
|
||||
}
|
||||
for (let j = 0; j < this.returns2.length; j++) {
|
||||
document.getElementsByClassName('tableData2')[j].children[0].innerHTML = response.data[j].物料名称
|
||||
document.getElementsByClassName('tableData2')[j].children[1].innerHTML = response.data[j].零件图号
|
||||
document.getElementsByClassName('tableData2')[j].children[2].innerHTML = response.data[j].材料
|
||||
document.getElementsByClassName('tableData2')[j].children[3].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData2')[j].children[4].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData2')[j].children[5].innerHTML = response.data[j].金额
|
||||
document.getElementsByClassName('tableData2')[j].children[3].innerHTML = response.data[j].物料计划到货时间.split(' ')[0]
|
||||
document.getElementsByClassName('tableData2')[j].children[4].innerHTML = response.data[j].备注
|
||||
document.getElementsByClassName('tableData2')[j].children[5].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData2')[j].children[6].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData2')[j].children[7].innerHTML = response.data[j].金额
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -632,9 +654,12 @@ export default {
|
||||
this.textarea1 = row.合同文本
|
||||
this.supplier1 = row.供应商名称
|
||||
this.contract1 = row.采购合同编号
|
||||
this.taxRate1 = row.税率
|
||||
this.freight1 = parseInt(row.总金额) - parseInt(row.总金额_小计)
|
||||
this.RMB1 = row.总金额_文本
|
||||
this.TotalAmount1 = row.总金额
|
||||
this.TotalAmount4 = parseInt((row.含税总金额) * 100) / 100
|
||||
this.RMB4 = row.含税总金额_文本
|
||||
document.getElementById('24').innerText = this.textarea1
|
||||
this.contractValue1 = parseInt(row.采购合同变更流水号)
|
||||
searchTable4(this.contractValue1).then(response => {
|
||||
@@ -651,16 +676,18 @@ export default {
|
||||
tr[i] = document.createElement('tr')
|
||||
tr[i].setAttribute('class', 'tableData1')
|
||||
tr[i].innerHTML = '<td colspan="2" 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>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>'
|
||||
document.getElementById('tableHead1').after(tr[i])
|
||||
}
|
||||
for (let j = 0; j < this.returns1.length; 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].物料型号
|
||||
document.getElementsByClassName('tableData1')[j].children[3].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData1')[j].children[4].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData1')[j].children[5].innerHTML = response.data[j].金额
|
||||
document.getElementsByClassName('tableData1')[j].children[3].innerHTML = response.data[j].物料计划到货时间.split(' ')[0]
|
||||
document.getElementsByClassName('tableData1')[j].children[4].innerHTML = response.data[j].备注
|
||||
document.getElementsByClassName('tableData1')[j].children[5].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData1')[j].children[6].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData1')[j].children[7].innerHTML = response.data[j].金额
|
||||
}
|
||||
})
|
||||
searchTable6(this.contractValue1).then(response => {
|
||||
@@ -677,16 +704,18 @@ export default {
|
||||
tr[i] = document.createElement('tr')
|
||||
tr[i].setAttribute('class', 'tableData3')
|
||||
tr[i].innerHTML = '<td colspan="2" 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>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>'
|
||||
document.getElementById('tableHead3').after(tr[i])
|
||||
}
|
||||
for (let j = 0; j < this.returns3.length; j++) {
|
||||
document.getElementsByClassName('tableData3')[j].children[0].innerHTML = response.data[j].物料名称
|
||||
document.getElementsByClassName('tableData3')[j].children[1].innerHTML = response.data[j].零件图号
|
||||
document.getElementsByClassName('tableData3')[j].children[2].innerHTML = response.data[j].材料
|
||||
document.getElementsByClassName('tableData3')[j].children[3].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData3')[j].children[4].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData3')[j].children[5].innerHTML = response.data[j].金额
|
||||
document.getElementsByClassName('tableData3')[j].children[3].innerHTML = response.data[j].物料计划到货时间.split(' ')[0]
|
||||
document.getElementsByClassName('tableData3')[j].children[4].innerHTML = response.data[j].备注
|
||||
document.getElementsByClassName('tableData3')[j].children[5].innerHTML = response.data[j].数量
|
||||
document.getElementsByClassName('tableData3')[j].children[6].innerHTML = response.data[j].单价
|
||||
document.getElementsByClassName('tableData3')[j].children[7].innerHTML = response.data[j].金额
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user