自制件状态查询
This commit is contained in:
@@ -90,7 +90,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { intPartState, searchTable, searchmachine, searchgroup } from '@/api/ManufacturingCenter/StatusQuery'
|
import { searchTable, searchmachine, searchgroup } from '@/api/ManufacturingCenter/StatusQuery'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -104,7 +104,22 @@ export default {
|
|||||||
partNumber: '', // 零件号
|
partNumber: '', // 零件号
|
||||||
partStateValue: null, // 零件状态
|
partStateValue: null, // 零件状态
|
||||||
partStateValue1: null,
|
partStateValue1: null,
|
||||||
partState: [], // 零件状态数组
|
partState: [{
|
||||||
|
value: 3,
|
||||||
|
label: '已投产'
|
||||||
|
}, {
|
||||||
|
value: 6,
|
||||||
|
label: '工艺完成'
|
||||||
|
}, {
|
||||||
|
value: 7,
|
||||||
|
label: '加工完成'
|
||||||
|
}, {
|
||||||
|
value: 8,
|
||||||
|
label: '入库'
|
||||||
|
}, {
|
||||||
|
value: 9,
|
||||||
|
label: '出库'
|
||||||
|
}], // 零件状态数组
|
||||||
partTypeValue: null, // 零件类型
|
partTypeValue: null, // 零件类型
|
||||||
num: null,
|
num: null,
|
||||||
pageCurrent: 1,
|
pageCurrent: 1,
|
||||||
@@ -131,14 +146,14 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchData() {
|
fetchData() {
|
||||||
intPartState().then(response => {
|
// intPartState().then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
// for (let i = 0; i < response.data.length; i++) {
|
||||||
this.partState.push({
|
// this.partState.push({
|
||||||
label: response.data[i].考核状态名称,
|
// label: response.data[i].考核状态名称,
|
||||||
value: response.data[i].考核状态
|
// value: response.data[i].考核状态
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
searchmachine().then(response => {
|
searchmachine().then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.machineTool.push({
|
this.machineTool.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user