外协
This commit is contained in:
@@ -75,6 +75,16 @@
|
||||
{{ scope.row.发货节点 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="设备预验节点" align="center" width="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.设备预验收节点 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="安装调试节点" align="center" width="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.安装调试节点 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="客户名称" align="center" width="280px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.客户名称 }}
|
||||
@@ -459,6 +469,12 @@ export default {
|
||||
if (response.data.rows[i].发货节点 !== '' && response.data.rows[i].发货节点 !== null) {
|
||||
response.data.rows[i].发货节点 = response.data.rows[i].发货节点.split(' ')[0]
|
||||
}
|
||||
if (response.data.rows[i].设备预验收节点 !== '' && response.data.rows[i].设备预验收节点 !== null) {
|
||||
response.data.rows[i].设备预验收节点 = response.data.rows[i].设备预验收节点.split(' ')[0]
|
||||
}
|
||||
if (response.data.rows[i].安装调试节点 !== '' && response.data.rows[i].安装调试节点 !== null) {
|
||||
response.data.rows[i].安装调试节点 = response.data.rows[i].安装调试节点.split(' ')[0]
|
||||
}
|
||||
if (response.data.rows[i].机床设计完成时间 !== '' && response.data.rows[i].机床设计完成时间 !== null) {
|
||||
response.data.rows[i].机床设计完成时间 = response.data.rows[i].机床设计完成时间.split(' ')[0]
|
||||
}
|
||||
@@ -507,6 +523,8 @@ export default {
|
||||
机床数量: response.data.rows[i].机床数量,
|
||||
合同签订日期: response.data.rows[i].合同签订日期,
|
||||
发货节点: response.data.rows[i].发货节点,
|
||||
设备预验收节点: response.data.rows[i].设备预验收节点,
|
||||
安装调试节点: response.data.rows[i].安装调试节点,
|
||||
客户名称: response.data.rows[i].客户名称,
|
||||
机床设计者: response.data.rows[i].机床设计者,
|
||||
机床设计完成时间: response.data.rows[i].机床设计完成时间,
|
||||
|
||||
@@ -89,6 +89,16 @@
|
||||
<span :class="colorJudge(scope.row.发货节点)">{{ scope.row.发货节点 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="设备预验节点" align="center" width="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.设备预验收节点 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="安装调试节点" align="center" width="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.安装调试节点 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="审图(计划开始)" align="center" min-width="170px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.审图计划开始时间 }}
|
||||
@@ -106,7 +116,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="发图" align="center" min-width="140px">
|
||||
<template slot-scope="scope">
|
||||
<span :class="colorJudge(scope.row.机床设计完成时间, scope.row.机床设计实际完成时间)">{{ scope.row.机床设计完成时间.split(' ')[0] }}</span>
|
||||
<span :class="colorJudge(scope.row.机床设计完成时间, scope.row.机床设计实际完成时间)">{{ scope.row.机床设计完成时间 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="发图(实际)" align="center" width="140px">
|
||||
@@ -116,7 +126,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="采购" align="center" min-width="140px">
|
||||
<template slot-scope="scope">
|
||||
<span :class="colorJudge(scope.row.采购完成时间, scope.row.采购实际完成时间)">{{ scope.row.采购完成时间.split(' ')[0] }}</span>
|
||||
<span :class="colorJudge(scope.row.采购完成时间, scope.row.采购实际完成时间)">{{ scope.row.采购完成时间 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="采购(实际)" align="center" width="140px">
|
||||
@@ -126,7 +136,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="备料" align="center" min-width="140px">
|
||||
<template slot-scope="scope">
|
||||
<span :class="colorJudge(scope.row.备料完成时间, scope.row.备料实际完成时间)">{{ scope.row.备料完成时间.split(' ')[0] }}</span>
|
||||
<span :class="colorJudge(scope.row.备料完成时间, scope.row.备料实际完成时间)">{{ scope.row.备料完成时间 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备料(实际)" align="center" width="140px">
|
||||
@@ -136,7 +146,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="制造" align="center" min-width="140px">
|
||||
<template slot-scope="scope">
|
||||
<span :class="colorJudge(scope.row.机床生产完成时间, scope.row.机床生产实际完成时间)">{{ scope.row.机床生产完成时间.split(' ')[0] }}</span>
|
||||
<span :class="colorJudge(scope.row.机床生产完成时间, scope.row.机床生产实际完成时间)">{{ scope.row.机床生产完成时间 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="制造(实际)" align="center" width="140px">
|
||||
@@ -146,7 +156,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="装配" align="center" min-width="140px">
|
||||
<template slot-scope="scope">
|
||||
<span :class="colorJudge(scope.row.机床装配完成时间, scope.row.机床装配实际完成时间)">{{ scope.row.机床装配完成时间.split(' ')[0] }}</span>
|
||||
<span :class="colorJudge(scope.row.机床装配完成时间, scope.row.机床装配实际完成时间)">{{ scope.row.机床装配完成时间 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="装配(实际)" align="center" width="140px">
|
||||
@@ -455,9 +465,54 @@ export default {
|
||||
if (response.data[i].发货节点 !== '' && response.data[i].发货节点 !== null) {
|
||||
response.data[i].发货节点 = response.data[i].发货节点.split(' ')[0]
|
||||
}
|
||||
if (response.data.rows[i].设备预验收节点 !== '' && response.data.rows[i].设备预验收节点 !== null) {
|
||||
response.data.rows[i].设备预验收节点 = response.data.rows[i].设备预验收节点.split(' ')[0]
|
||||
}
|
||||
if (response.data.rows[i].安装调试节点 !== '' && response.data.rows[i].安装调试节点 !== null) {
|
||||
response.data.rows[i].安装调试节点 = response.data.rows[i].安装调试节点.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].审图计划开始时间 !== '' && response.data[i].审图计划开始时间 !== null) {
|
||||
response.data[i].审图计划开始时间 = response.data[i].审图计划开始时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].审图计划完成时间 !== '' && response.data[i].审图计划完成时间 !== null) {
|
||||
response.data[i].审图计划完成时间 = response.data[i].审图计划完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].审图实际完成时间 !== '' && response.data[i].审图实际完成时间 !== null) {
|
||||
response.data[i].审图实际完成时间 = response.data[i].审图实际完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].机床设计完成时间 !== '' && response.data[i].机床设计完成时间 !== null) {
|
||||
response.data[i].机床设计完成时间 = response.data[i].机床设计完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].机床设计实际完成时间 !== '' && response.data[i].机床设计实际完成时间 !== null) {
|
||||
response.data[i].机床设计实际完成时间 = response.data[i].机床设计实际完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].采购完成时间 !== '' && response.data[i].采购完成时间 !== null) {
|
||||
response.data[i].采购完成时间 = response.data[i].采购完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].采购实际完成时间 !== '' && response.data[i].采购实际完成时间 !== null) {
|
||||
response.data[i].采购实际完成时间 = response.data[i].采购实际完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].备料完成时间 !== '' && response.data[i].备料完成时间 !== null) {
|
||||
response.data[i].备料完成时间 = response.data[i].备料完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].备料实际完成时间 !== '' && response.data[i].备料实际完成时间 !== null) {
|
||||
response.data[i].备料实际完成时间 = response.data[i].备料实际完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].机床生产完成时间 !== '' && response.data[i].机床生产完成时间 !== null) {
|
||||
response.data[i].机床生产完成时间 = response.data[i].机床生产完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].机床生产实际完成时间 !== '' && response.data[i].机床生产实际完成时间 !== null) {
|
||||
response.data[i].机床生产实际完成时间 = response.data[i].机床生产实际完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].机床装配完成时间 !== '' && response.data[i].机床装配完成时间 !== null) {
|
||||
response.data[i].机床装配完成时间 = response.data[i].机床装配完成时间.split(' ')[0]
|
||||
}
|
||||
if (response.data[i].机床装配实际完成时间 !== '' && response.data[i].机床装配实际完成时间 !== null) {
|
||||
response.data[i].机床装配实际完成时间 = response.data[i].机床装配实际完成时间.split(' ')[0]
|
||||
}
|
||||
}
|
||||
this.loading = false
|
||||
console.log(response.data)
|
||||
console.log(response.data, 222222)
|
||||
this.tableData = response.data
|
||||
}).then(() => {
|
||||
searchtable2(this.machineValue, 1).then(response => {
|
||||
|
||||
@@ -275,7 +275,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="成交" align="center" width="130px">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="加工价格_成交[scope.$index]"/>
|
||||
<el-input v-model="加工价格_成交[scope.$index]" readonly/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
|
||||
@@ -297,12 +297,68 @@ export default {
|
||||
edit(row.工序流水号, this.InOut).then(response => {
|
||||
edit2(row.工序流水号, row.工艺计划流水号, 1).then(response => {
|
||||
this.$message.success('工序外协状态更改成功')
|
||||
this.loading2 = true
|
||||
this.checkBox = []
|
||||
this.tableData2 = []
|
||||
searchTable2(this.num1).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
console.log(response.data[i].工序顺序)
|
||||
}
|
||||
console.log(response.data, 1111111)
|
||||
if (response.data.length === 0) {
|
||||
this.loading0 = false
|
||||
} else {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
if (response.data[i].工序间是否外协 === 1) {
|
||||
this.checkBox.push(false)
|
||||
} else {
|
||||
this.checkBox.push(true)
|
||||
}
|
||||
}
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
response.data[i].机加工开始时间 = response.data[i].机加工开始时间.split(' ')[0]
|
||||
response.data[i].机加工结束时间 = response.data[i].机加工结束时间.split(' ')[0]
|
||||
response.data[i].计划日期 = response.data[i].计划日期.split(' ')[0]
|
||||
}
|
||||
this.tableData2 = response.data
|
||||
}
|
||||
}).then(() => {
|
||||
this.loading2 = false
|
||||
})
|
||||
})
|
||||
})
|
||||
} else {
|
||||
this.InOut = 1
|
||||
edit(row.工序流水号, this.InOut).then(response => {
|
||||
this.$message.success('工序外协状态更改成功')
|
||||
this.loading2 = true
|
||||
this.checkBox = []
|
||||
this.tableData2 = []
|
||||
searchTable2(this.num1).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
console.log(response.data[i].工序顺序)
|
||||
}
|
||||
console.log(response.data, 1111111)
|
||||
if (response.data.length === 0) {
|
||||
this.loading0 = false
|
||||
} else {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
if (response.data[i].工序间是否外协 === 1) {
|
||||
this.checkBox.push(false)
|
||||
} else {
|
||||
this.checkBox.push(true)
|
||||
}
|
||||
}
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
response.data[i].机加工开始时间 = response.data[i].机加工开始时间.split(' ')[0]
|
||||
response.data[i].机加工结束时间 = response.data[i].机加工结束时间.split(' ')[0]
|
||||
response.data[i].计划日期 = response.data[i].计划日期.split(' ')[0]
|
||||
}
|
||||
this.tableData2 = response.data
|
||||
}
|
||||
}).then(() => {
|
||||
this.loading2 = false
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@@ -640,7 +640,7 @@ export default {
|
||||
|
||||
<style>
|
||||
.el-table .warning-row {
|
||||
background: oldlace;
|
||||
background: yellowgreen;
|
||||
}
|
||||
.rgb196{
|
||||
background: palevioletred;
|
||||
|
||||
@@ -379,7 +379,7 @@ export default {
|
||||
sums[index] = '总重量'
|
||||
return
|
||||
} else if (index === 7) {
|
||||
const values = data.map(item => Number(item['重量1']))
|
||||
const values = data.map(item => Number(item['重量1'] * item['批次数量']))
|
||||
if (!values.every(value => isNaN(value))) {
|
||||
sums[index] = values.reduce((prev, curr) => {
|
||||
const value = Number(curr)
|
||||
|
||||
Reference in New Issue
Block a user