零件定额制定
This commit is contained in:
@@ -15,7 +15,7 @@ const service = axios.create({
|
|||||||
// baseURL: `http://192.168.1.149:8411/submit/MESCommonBase.ashx`,
|
// baseURL: `http://192.168.1.149:8411/submit/MESCommonBase.ashx`,
|
||||||
// baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`,
|
// baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`,
|
||||||
|
|
||||||
baseURL: `http://192.168.0.105:8411/submit/MESCommonBase.ashx`,
|
baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`,
|
||||||
// baseURL: `http://192.168.1.149:8411/submit/MESCommonBase.ashx`,
|
// baseURL: `http://192.168.1.149:8411/submit/MESCommonBase.ashx`,
|
||||||
|
|
||||||
// baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`,
|
// baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`,
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ export default {
|
|||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchData() { // 初始化未编制零件号、材料、公差
|
fetchData() { // 初始化未编制零件号
|
||||||
getPerson().then(response => {
|
getPerson().then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.person.push({
|
this.person.push({
|
||||||
@@ -255,13 +255,18 @@ export default {
|
|||||||
this.num0 = ''
|
this.num0 = ''
|
||||||
if (this.radio === 1) {
|
if (this.radio === 1) {
|
||||||
detailInfo(this.partNumValue).then(response => {
|
detailInfo(this.partNumValue).then(response => {
|
||||||
|
if (response.data.length !== 0) {
|
||||||
this.typeValue = response.data[0].零件类型名称
|
this.typeValue = response.data[0].零件类型名称
|
||||||
this.partName = response.data[0].零件名称
|
this.partName = response.data[0].零件名称
|
||||||
this.batchNum = response.data[0].批次数量
|
this.batchNum = response.data[0].批次数量
|
||||||
this.num0 = response.data[0].工艺计划流水号
|
this.num0 = response.data[0].工艺计划流水号
|
||||||
console.log(response.data[0].工艺计划流水号, 520)
|
|
||||||
this.material = response.data[0].材料
|
this.material = response.data[0].材料
|
||||||
|
}
|
||||||
|
}).then(() => {
|
||||||
mainTable(this.num0).then(response => {
|
mainTable(this.num0).then(response => {
|
||||||
|
if (response.data.length === 0) {
|
||||||
|
this.listLoading = false
|
||||||
|
} else {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.tableData.push({
|
this.tableData.push({
|
||||||
name: response.data[i].工艺名称,
|
name: response.data[i].工艺名称,
|
||||||
@@ -274,17 +279,23 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.listLoading = false
|
this.listLoading = false
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
detailInfo(this.partNumValue).then(response => {
|
detailInfo(this.partNumValue).then(response => {
|
||||||
|
if (response.data.length !== 0) {
|
||||||
this.typeValue = response.data[0].零件类型名称
|
this.typeValue = response.data[0].零件类型名称
|
||||||
this.partName = response.data[0].零件名称
|
this.partName = response.data[0].零件名称
|
||||||
this.batchNum = response.data[0].批次数量
|
this.batchNum = response.data[0].批次数量
|
||||||
this.num0 = response.data[0].工艺计划流水号
|
this.num0 = response.data[0].工艺计划流水号
|
||||||
this.material = response.data[0].材料
|
this.material = response.data[0].材料
|
||||||
})
|
}
|
||||||
|
}).then(() => {
|
||||||
mainTable1(this.partNumValue).then(response => {
|
mainTable1(this.partNumValue).then(response => {
|
||||||
|
if (response.data.length === 0) {
|
||||||
|
this.listLoading = false
|
||||||
|
} else {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.tableData.push({
|
this.tableData.push({
|
||||||
name: response.data[i].工艺名称,
|
name: response.data[i].工艺名称,
|
||||||
@@ -297,7 +308,8 @@ export default {
|
|||||||
numm: response.data[i].工艺计划流水号
|
numm: response.data[i].工艺计划流水号
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.listLoading = false
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user