Merge branch 'master' of http://192.168.0.149:10010/r/高精2.0
This commit is contained in:
87
src/api/Assembly/AssemblyExecution.js
Normal file
87
src/api/Assembly/AssemblyExecution.js
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
// 初始化机床项目
|
||||||
|
export function initProject() {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: 'PDM_项目名称_查询数据'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 组件查询
|
||||||
|
export function searchgroup(num) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: 'PDM_组件名称_查询数据',
|
||||||
|
param: '机床流水号=' + num
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 机床查询
|
||||||
|
export function searchTable1(machineNumberValue, check2) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: '车间装配管理_机床信息_查询数据',
|
||||||
|
param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 组件查询
|
||||||
|
export function searchTable2(machineNumberValue, check2, groupNumberValue, check3) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: '车间管理_基本件采购_查询数据',
|
||||||
|
param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue + '&组件流水号_check=' + check3 + '&组件流水号=' + groupNumberValue
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 机床名称_机床状态_修改数据
|
||||||
|
export function MachineToolStateUpdate(machineNumberValue, check) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: 'PDM_机床名称_机床状态_修改数据',
|
||||||
|
param: '机床流水号=' + machineNumberValue + '&装配状态=' + check
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 机床名称_调试状态_修改数据
|
||||||
|
export function DebugStatusUpdate(machineNumberValue, check) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: 'PDM_机床名称_调试状态_修改数据',
|
||||||
|
param: '机床流水号=' + machineNumberValue + '&调试状态=' + check
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 组件名称_组件状态_修改数据
|
||||||
|
export function ComponentStateUpdate(machineNumberValue, check) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: 'PDM_组件名称_组件状态_修改数据',
|
||||||
|
param: '组件流水号=' + machineNumberValue + '&组件是否完成=' + check
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
38
src/api/Assembly/DeliveryApplication.js
Normal file
38
src/api/Assembly/DeliveryApplication.js
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 初始化机床项目
|
||||||
|
export function initProject() {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: 'PDM_项目名称_查询数据'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// PDM_机床名称_发货状态_查询数据
|
||||||
|
export function selecttable(check2, machineNumberValue) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: 'PDM_机床名称_发货状态_查询数据',
|
||||||
|
param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// PDM_机床名称_发货状态_编辑数据
|
||||||
|
export function updatestate(machineNumberValue, state) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: 'PDM_机床名称_发货状态_编辑数据',
|
||||||
|
param: '机床流水号=' + machineNumberValue + '&发货状态=' + state
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
38
src/api/Assembly/QualityInspectionInformationInquiry.js
Normal file
38
src/api/Assembly/QualityInspectionInformationInquiry.js
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 初始化机床项目
|
||||||
|
export function initProject() {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: 'PDM_项目名称_查询数据'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// PDM_机床名称_发货状态_查询数据
|
||||||
|
export function selecttable(check2, machineNumberValue) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: 'PDM_机床名称_发货状态_查询数据',
|
||||||
|
param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// PDM_机床名称_发货状态_编辑数据
|
||||||
|
export function updatestate(machineNumberValue, state) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: 'PDM_机床名称_发货状态_编辑数据',
|
||||||
|
param: '机床流水号=' + machineNumberValue + '&发货状态=' + state
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
229
src/views/Assembly/AssemblyExecution/index.vue
Normal file
229
src/views/Assembly/AssemblyExecution/index.vue
Normal file
@@ -0,0 +1,229 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-card>
|
||||||
|
<el-row>
|
||||||
|
<span>机床编号:</span>
|
||||||
|
<el-select v-model="machineNumberValue" filterable placeholder="机床编号" size="small" clearable @change="machineChange();searchTable1()">
|
||||||
|
<el-option
|
||||||
|
v-for="item in machineNumber"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
<div style="float: left">{{ item.label }}</div>
|
||||||
|
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</div>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
<span>组号:</span>
|
||||||
|
<el-select v-model="groupNumberValue" filterable placeholder="组号" size="small" clearable @change="searchTable2()">
|
||||||
|
<el-option
|
||||||
|
v-for="item in groupNumber"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"/>
|
||||||
|
</el-select>
|
||||||
|
<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 15px" @click="searchTable1();searchTable2()">查询</el-button>
|
||||||
|
</el-row>
|
||||||
|
</el-card>
|
||||||
|
<el-card>
|
||||||
|
<h3 style="text-align: center;">总装调试</h3>
|
||||||
|
<el-table :data="tableData1" border size="mini" highlight-current-row style="width: 100%;margin-top: 15px" height="280px">
|
||||||
|
<el-table-column label="项目名称" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.项目名称 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="机床编号" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.机床图号 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="机床名称" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.机床名称 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="机床数量" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.机床数量 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" align="center" width="250px" fixed="right">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button v-if="scope.row.装配状态===null || scope.row.装配状态===0" type="success" size="small" @click="handlestart_1(scope.row)">开始装配</el-button>
|
||||||
|
<el-button v-else-if="scope.row.装配状态===1" type="danger" size="small" @click="handleend_1(scope.row)">结束装配</el-button>
|
||||||
|
<el-button v-else type="info" size="small" >装配完成</el-button>
|
||||||
|
<el-button v-if="scope.row.调试状态===null || scope.row.调试状态===0" type="success" size="small" @click="handlestart_2(scope.row)">开始调试</el-button>
|
||||||
|
<el-button v-else-if="scope.row.调试状态==1" type="danger" size="small" @click="handleend_2(scope.row)">结束调试</el-button>
|
||||||
|
<el-button v-else type="info" size="small" >调试完成</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</el-card>
|
||||||
|
<el-card>
|
||||||
|
<h3 style="text-align: center;">部装</h3>
|
||||||
|
<el-table :data="tableData2" border size="mini" highlight-current-row style="width: 100%;margin-top: 15px" height="280px">
|
||||||
|
<el-table-column label="项目名称" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.项目名称 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="机床编号" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.机床图号 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="机床名称" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.机床名称 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="组号" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.组号 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="组件名称" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.组件名称 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="数量" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.数量 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" align="center" width="250px" fixed="right">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button v-if="scope.row.组件是否完成===null || scope.row.组件是否完成===0" type="success" size="small" @click="handlestart_3(scope.row)">开始装配</el-button>
|
||||||
|
<el-button v-else-if="scope.row.组件是否完成===1" type="danger" size="small" @click="handleend_3(scope.row)">结束装配</el-button>
|
||||||
|
<el-button v-else type="info" size="small" >装配完成</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</el-card>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { initProject, searchgroup, searchTable1, searchTable2, MachineToolStateUpdate, DebugStatusUpdate, ComponentStateUpdate } from '@/api/Assembly/AssemblyExecution'
|
||||||
|
// import { mapGetters } from 'vuex'
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
machineNumberValue: '',
|
||||||
|
machineNumber: [],
|
||||||
|
groupNumberValue: '',
|
||||||
|
groupNumber: [],
|
||||||
|
tableData1: [],
|
||||||
|
tableData2: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.initProject()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
initProject() {
|
||||||
|
initProject().then(response => {
|
||||||
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
|
this.machineNumber.push({
|
||||||
|
label: response.data[i].机床图号,
|
||||||
|
name: response.data[i].项目名称,
|
||||||
|
value: response.data[i].机床流水号
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
machineChange() {
|
||||||
|
this.groupNumberValue = ''
|
||||||
|
this.groupNumber = []
|
||||||
|
searchgroup(this.machineNumberValue).then(response => {
|
||||||
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
|
this.groupNumber.push({
|
||||||
|
label: response.data[i].组号,
|
||||||
|
value: response.data[i].组件流水号
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
searchTable1() {
|
||||||
|
this.tableData1 = []
|
||||||
|
if (this.machineNumberValue !== '') { this.check2 = 1 } else { this.check2 = 0 }
|
||||||
|
searchTable1(this.machineNumberValue, this.check2).then(response => {
|
||||||
|
this.tableData1 = response.data
|
||||||
|
console.log(response.data, 1111)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
searchTable2() {
|
||||||
|
this.tableData2 = []
|
||||||
|
if (this.machineNumberValue !== '') { this.check2 = 1 } else { this.check2 = 0 }
|
||||||
|
if (this.groupNumberValue !== '') { this.check3 = 1 } else { this.check3 = 0 }
|
||||||
|
searchTable2(this.machineNumberValue, this.check2).then(response => {
|
||||||
|
console.log(response.data, 222)
|
||||||
|
this.tableData2 = response.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 总装开始装配
|
||||||
|
handlestart_1(row) { // 弹出单据编辑
|
||||||
|
console.log(row)
|
||||||
|
MachineToolStateUpdate(row.机床流水号, 1).then(response => {
|
||||||
|
console.log(response.data)
|
||||||
|
this.searchTable1()
|
||||||
|
this.searchTable2()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 总装结束装配
|
||||||
|
handleend_1(row) { // 弹出单据编辑
|
||||||
|
console.log(row)
|
||||||
|
MachineToolStateUpdate(row.机床流水号, 2).then(response => {
|
||||||
|
console.log(response.data)
|
||||||
|
this.searchTable1()
|
||||||
|
this.searchTable2()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 总装开始调试
|
||||||
|
handlestart_2(row) { // 弹出单据编辑
|
||||||
|
console.log(row)
|
||||||
|
DebugStatusUpdate(row.机床流水号, 1).then(response => {
|
||||||
|
console.log(response.data)
|
||||||
|
this.searchTable1()
|
||||||
|
this.searchTable2()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 总装结束调试
|
||||||
|
handleend_2(row) { // 弹出单据编辑
|
||||||
|
console.log(row)
|
||||||
|
DebugStatusUpdate(row.机床流水号, 2).then(response => {
|
||||||
|
console.log(response.data)
|
||||||
|
this.searchTable1()
|
||||||
|
this.searchTable2()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 部装开始装配
|
||||||
|
handlestart_3(row) { // 弹出单据编辑
|
||||||
|
console.log(row)
|
||||||
|
ComponentStateUpdate(row.组件流水号, 1).then(response => {
|
||||||
|
console.log(response.data)
|
||||||
|
this.searchTable1()
|
||||||
|
this.searchTable2()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 部装结束装配
|
||||||
|
handleend_3(row) { // 弹出单据编辑
|
||||||
|
console.log(row)
|
||||||
|
ComponentStateUpdate(row.组件流水号, 2).then(response => {
|
||||||
|
console.log(response.data)
|
||||||
|
this.searchTable1()
|
||||||
|
this.searchTable2()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
110
src/views/Assembly/DeliveryApplication/index.vue
Normal file
110
src/views/Assembly/DeliveryApplication/index.vue
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-card>
|
||||||
|
<el-row>
|
||||||
|
<span>机床编号:</span>
|
||||||
|
<el-select v-model="machineNumberValue" filterable placeholder="机床编号" size="small" clearable @change="selecttable()">
|
||||||
|
<el-option
|
||||||
|
v-for="item in machineNumber"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
<div style="float: left">{{ item.label }}</div>
|
||||||
|
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</div>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 15px" @click="selecttable">查询</el-button>
|
||||||
|
</el-row>
|
||||||
|
</el-card>
|
||||||
|
<el-card>
|
||||||
|
<el-table :data="tableData1" border size="mini" highlight-current-row style="width: 100%;margin-top: 15px" height="600px">
|
||||||
|
<el-table-column label="项目名称" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.项目名称 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="机床编号" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.机床图号 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="机床名称" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.机床名称 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="机床数量" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.机床数量 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="注意事项" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.注意事项 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" align="center" width="250px" fixed="right">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button v-if="scope.row.发货状态===null || scope.row.发货状态===0" type="success" size="small" @click="handlconfirm(scope.row)">确认发货</el-button>
|
||||||
|
<el-button v-else-if="scope.row.发货状态===1" type="danger" size="small">待 审批</el-button>
|
||||||
|
<el-button v-else type="info" size="small" >已审批</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</el-card>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { initProject, selecttable, updatestate } from '@/api/Assembly/DeliveryApplication'
|
||||||
|
// import { mapGetters } from 'vuex'
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
machineNumberValue: '',
|
||||||
|
machineNumber: [],
|
||||||
|
groupNumberValue: '',
|
||||||
|
groupNumber: [],
|
||||||
|
tableData1: [],
|
||||||
|
tableData2: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.initProject()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
initProject() {
|
||||||
|
initProject().then(response => {
|
||||||
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
|
this.machineNumber.push({
|
||||||
|
label: response.data[i].机床图号,
|
||||||
|
name: response.data[i].项目名称,
|
||||||
|
value: response.data[i].机床流水号
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
selecttable() {
|
||||||
|
this.tableData1 = []
|
||||||
|
if (this.machineNumberValue !== '') { this.check2 = 1 } else { this.check2 = 0 }
|
||||||
|
selecttable(this.check2, this.machineNumberValue).then(response => {
|
||||||
|
this.tableData1 = response.data
|
||||||
|
console.log(response.data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handlconfirm(row) {
|
||||||
|
updatestate(row.机床流水号, 1).then(response => {
|
||||||
|
this.selecttable()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
110
src/views/Assembly/QualityInspectionInformationInquiry/index.vue
Normal file
110
src/views/Assembly/QualityInspectionInformationInquiry/index.vue
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-card>
|
||||||
|
<el-row>
|
||||||
|
<span>机床编号:</span>
|
||||||
|
<el-select v-model="machineNumberValue" filterable placeholder="机床编号" size="small" clearable @change="selecttable()">
|
||||||
|
<el-option
|
||||||
|
v-for="item in machineNumber"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
<div style="float: left">{{ item.label }}</div>
|
||||||
|
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</div>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 15px" @click="selecttable">查询</el-button>
|
||||||
|
</el-row>
|
||||||
|
</el-card>
|
||||||
|
<el-card>
|
||||||
|
<el-table :data="tableData1" border size="mini" highlight-current-row style="width: 100%;margin-top: 15px" height="600px">
|
||||||
|
<el-table-column label="项目名称" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.项目名称 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="机床编号" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.机床图号 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="机床名称" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.机床名称 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="机床数量" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.机床数量 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="注意事项" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.注意事项 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" align="center" width="250px" fixed="right">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button v-if="scope.row.发货状态===null || scope.row.发货状态===0" type="success" size="small" @click="handlconfirm(scope.row)">确认发货</el-button>
|
||||||
|
<el-button v-else-if="scope.row.发货状态===1" type="danger" size="small">待 审批</el-button>
|
||||||
|
<el-button v-else type="info" size="small" >已审批</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</el-card>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { initProject, selecttable, updatestate } from '@/api/Assembly/QualityInspectionInformationInquiry'
|
||||||
|
// import { mapGetters } from 'vuex'
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
machineNumberValue: '',
|
||||||
|
machineNumber: [],
|
||||||
|
groupNumberValue: '',
|
||||||
|
groupNumber: [],
|
||||||
|
tableData1: [],
|
||||||
|
tableData2: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.initProject()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
initProject() {
|
||||||
|
initProject().then(response => {
|
||||||
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
|
this.machineNumber.push({
|
||||||
|
label: response.data[i].机床图号,
|
||||||
|
name: response.data[i].项目名称,
|
||||||
|
value: response.data[i].机床流水号
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
selecttable() {
|
||||||
|
this.tableData1 = []
|
||||||
|
if (this.machineNumberValue !== '') { this.check2 = 1 } else { this.check2 = 0 }
|
||||||
|
selecttable(this.check2, this.machineNumberValue).then(response => {
|
||||||
|
this.tableData1 = response.data
|
||||||
|
console.log(response.data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handlconfirm(row) {
|
||||||
|
updatestate(row.机床流水号, 1).then(response => {
|
||||||
|
this.selecttable()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -285,6 +285,13 @@
|
|||||||
{{ scope.row.机床主管 }}
|
{{ scope.row.机床主管 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="装配状态">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag v-if="scope.row.装配状态===null || scope.row.装配状态===0" type="success" size="small">未装配</el-tag>
|
||||||
|
<el-tag v-else-if="scope.row.装配状态===1" type="danger" size="small" >装配中</el-tag>
|
||||||
|
<el-tag v-else type="info" size="small" >装配完成</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="block" style="margin-top: 10px;">
|
<div class="block" style="margin-top: 10px;">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
@@ -329,9 +336,11 @@
|
|||||||
{{ scope.row.组件名称 }}
|
{{ scope.row.组件名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="组件介绍">
|
<el-table-column align="center" label="装配状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.组件介绍 }}
|
<el-tag v-if="scope.row.组件是否完成===null || scope.row.组件是否完成===0" type="success" size="small">未装配</el-tag>
|
||||||
|
<el-tag v-else-if="scope.row.组件是否完成===1" type="danger" size="small" >装配中</el-tag>
|
||||||
|
<el-tag v-else type="info" size="small" >装配完成</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|||||||
Reference in New Issue
Block a user