外协零件到货
This commit is contained in:
@@ -72,7 +72,6 @@ export function searchManufactor(name) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 确定价格
|
|
||||||
export function spareParts(processNum, single) {
|
export function spareParts(processNum, single) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
@@ -204,3 +203,14 @@ export function getPrice(Number, money, money1, money2, money3) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function handlechange(Number, code) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '2',
|
||||||
|
name: '车间生产管理工艺_零件工序_修改数据_工作者',
|
||||||
|
param: '工序流水号=' + Number + '&工作者考勤编号=' + code
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -164,7 +164,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { shouhuo, getTable, getData1, getTable1, getprocedure, searchManufactor, spareParts, addTable, editData, deleteData, insertParts, getParts, getPrice, editData1, deleteData1, getNumber } from '@/api/Outsourcing/OutsourcingTaskQuery'
|
import { handlechange, shouhuo, getTable, getData1, getTable1, getprocedure, searchManufactor, spareParts, addTable, editData, deleteData, insertParts, getParts, getPrice, editData1, deleteData1, getNumber } from '@/api/Outsourcing/OutsourcingTaskQuery'
|
||||||
import { getExplorer, method5, Cleanup } from '@/vendor/exportExcel'
|
import { getExplorer, method5, Cleanup } from '@/vendor/exportExcel'
|
||||||
import { convertCurrency } from '@/vendor/int2Chinese'
|
import { convertCurrency } from '@/vendor/int2Chinese'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
@@ -176,6 +176,8 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
wancheng: '',
|
||||||
|
gongxulsh: [],
|
||||||
bianliang: [],
|
bianliang: [],
|
||||||
card: false,
|
card: false,
|
||||||
费用: '',
|
费用: '',
|
||||||
@@ -292,12 +294,20 @@ export default {
|
|||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
shouhuo(row.外协加工任务单流水号).then(response => {
|
if (this.wancheng === 1) {
|
||||||
if (response.data[0].result === '1') {
|
for (let i = 0; i < this.gongxulsh.length; i++) {
|
||||||
this.fetchData()
|
handlechange(this.gongxulsh[i].工序流水号, '0000')
|
||||||
this.getList()
|
if (i === this.gongxulsh.length - 1) {
|
||||||
|
console.log(1)
|
||||||
|
shouhuo(row.外协加工任务单流水号).then(response => {
|
||||||
|
if (response.data[0].result === '1') {
|
||||||
|
this.fetchData()
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'info',
|
type: 'info',
|
||||||
@@ -365,6 +375,8 @@ export default {
|
|||||||
},
|
},
|
||||||
// 查询
|
// 查询
|
||||||
searchProcess(row) {
|
searchProcess(row) {
|
||||||
|
this.wancheng = ''
|
||||||
|
this.gongxulsh = []
|
||||||
this.任务单号 = row.表单号
|
this.任务单号 = row.表单号
|
||||||
this.任务下达日期 = row.任务下达日期
|
this.任务下达日期 = row.任务下达日期
|
||||||
this.外协厂家 = row.外协厂家
|
this.外协厂家 = row.外协厂家
|
||||||
@@ -478,11 +490,14 @@ export default {
|
|||||||
for (let i = 0; i < this.returns.length; i++) {
|
for (let i = 0; i < this.returns.length; i++) {
|
||||||
spareParts(this.returns[i].工艺计划流水号, this.returns[i].单件是否外协).then(response => {
|
spareParts(this.returns[i].工艺计划流水号, this.returns[i].单件是否外协).then(response => {
|
||||||
for (let k = 0; k < response.data.length; k++) {
|
for (let k = 0; k < response.data.length; k++) {
|
||||||
|
this.gongxulsh.push({
|
||||||
|
工序流水号: response.data[k].工序流水号
|
||||||
|
})
|
||||||
this.process[i][k] = response.data[k].工艺名称简称
|
this.process[i][k] = response.data[k].工艺名称简称
|
||||||
document.getElementsByClassName('tableData')[i].children[4].innerHTML += response.data[k].工艺名称简称 + '/'
|
document.getElementsByClassName('tableData')[i].children[4].innerHTML += response.data[k].工艺名称简称 + '/'
|
||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// this.bianliang.push(this.returns[i])
|
this.wancheng = 1
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user