零件定额制定
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,49 +255,61 @@ export default {
|
|||||||
this.num0 = ''
|
this.num0 = ''
|
||||||
if (this.radio === 1) {
|
if (this.radio === 1) {
|
||||||
detailInfo(this.partNumValue).then(response => {
|
detailInfo(this.partNumValue).then(response => {
|
||||||
this.typeValue = response.data[0].零件类型名称
|
if (response.data.length !== 0) {
|
||||||
this.partName = response.data[0].零件名称
|
this.typeValue = response.data[0].零件类型名称
|
||||||
this.batchNum = response.data[0].批次数量
|
this.partName = response.data[0].零件名称
|
||||||
this.num0 = response.data[0].工艺计划流水号
|
this.batchNum = response.data[0].批次数量
|
||||||
console.log(response.data[0].工艺计划流水号, 520)
|
this.num0 = response.data[0].工艺计划流水号
|
||||||
this.material = response.data[0].材料
|
this.material = response.data[0].材料
|
||||||
|
}
|
||||||
|
}).then(() => {
|
||||||
mainTable(this.num0).then(response => {
|
mainTable(this.num0).then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
if (response.data.length === 0) {
|
||||||
this.tableData.push({
|
this.listLoading = false
|
||||||
name: response.data[i].工艺名称,
|
} else {
|
||||||
request: response.data[i].工艺要求,
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
num1: response.data[i].工序流水号,
|
this.tableData.push({
|
||||||
Settlement: response.data[i].准结定额工时,
|
name: response.data[i].工艺名称,
|
||||||
singleton: response.data[i].单件定额工时,
|
request: response.data[i].工艺要求,
|
||||||
lingjian: response.data[i].零件图号,
|
num1: response.data[i].工序流水号,
|
||||||
numm: response.data[i].工艺计划流水号
|
Settlement: response.data[i].准结定额工时,
|
||||||
})
|
singleton: response.data[i].单件定额工时,
|
||||||
|
lingjian: response.data[i].零件图号,
|
||||||
|
numm: response.data[i].工艺计划流水号
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.listLoading = false
|
||||||
}
|
}
|
||||||
this.listLoading = false
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
detailInfo(this.partNumValue).then(response => {
|
detailInfo(this.partNumValue).then(response => {
|
||||||
this.typeValue = response.data[0].零件类型名称
|
if (response.data.length !== 0) {
|
||||||
this.partName = response.data[0].零件名称
|
this.typeValue = response.data[0].零件类型名称
|
||||||
this.batchNum = response.data[0].批次数量
|
this.partName = response.data[0].零件名称
|
||||||
this.num0 = response.data[0].工艺计划流水号
|
this.batchNum = response.data[0].批次数量
|
||||||
this.material = response.data[0].材料
|
this.num0 = response.data[0].工艺计划流水号
|
||||||
})
|
this.material = response.data[0].材料
|
||||||
mainTable1(this.partNumValue).then(response => {
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
|
||||||
this.tableData.push({
|
|
||||||
name: response.data[i].工艺名称,
|
|
||||||
request: response.data[i].工艺要求,
|
|
||||||
num1: response.data[i].工序流水号,
|
|
||||||
Settlement: response.data[i].准结定额工时,
|
|
||||||
singleton: response.data[i].单件定额工时,
|
|
||||||
budget: response.data[i].外协预算价格1,
|
|
||||||
lingjian: response.data[i].零件图号,
|
|
||||||
numm: response.data[i].工艺计划流水号
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
this.listLoading = false
|
}).then(() => {
|
||||||
|
mainTable1(this.partNumValue).then(response => {
|
||||||
|
if (response.data.length === 0) {
|
||||||
|
this.listLoading = false
|
||||||
|
} else {
|
||||||
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
|
this.tableData.push({
|
||||||
|
name: response.data[i].工艺名称,
|
||||||
|
request: response.data[i].工艺要求,
|
||||||
|
num1: response.data[i].工序流水号,
|
||||||
|
Settlement: response.data[i].准结定额工时,
|
||||||
|
singleton: response.data[i].单件定额工时,
|
||||||
|
budget: response.data[i].外协预算价格1,
|
||||||
|
lingjian: response.data[i].零件图号,
|
||||||
|
numm: response.data[i].工艺计划流水号
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user