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