外协零件到货
This commit is contained in:
@@ -164,7 +164,7 @@
|
||||
</template>
|
||||
|
||||
<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 { convertCurrency } from '@/vendor/int2Chinese'
|
||||
import { mapGetters } from 'vuex'
|
||||
@@ -176,6 +176,8 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
wancheng: '',
|
||||
gongxulsh: [],
|
||||
bianliang: [],
|
||||
card: false,
|
||||
费用: '',
|
||||
@@ -292,12 +294,20 @@ export default {
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
shouhuo(row.外协加工任务单流水号).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.fetchData()
|
||||
this.getList()
|
||||
if (this.wancheng === 1) {
|
||||
for (let i = 0; i < this.gongxulsh.length; i++) {
|
||||
handlechange(this.gongxulsh[i].工序流水号, '0000')
|
||||
if (i === this.gongxulsh.length - 1) {
|
||||
console.log(1)
|
||||
shouhuo(row.外协加工任务单流水号).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.fetchData()
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'info',
|
||||
@@ -365,6 +375,8 @@ export default {
|
||||
},
|
||||
// 查询
|
||||
searchProcess(row) {
|
||||
this.wancheng = ''
|
||||
this.gongxulsh = []
|
||||
this.任务单号 = row.表单号
|
||||
this.任务下达日期 = row.任务下达日期
|
||||
this.外协厂家 = row.外协厂家
|
||||
@@ -478,11 +490,14 @@ export default {
|
||||
for (let i = 0; i < this.returns.length; i++) {
|
||||
spareParts(this.returns[i].工艺计划流水号, this.returns[i].单件是否外协).then(response => {
|
||||
for (let k = 0; k < response.data.length; k++) {
|
||||
this.gongxulsh.push({
|
||||
工序流水号: response.data[k].工序流水号
|
||||
})
|
||||
this.process[i][k] = response.data[k].工艺名称简称
|
||||
document.getElementsByClassName('tableData')[i].children[4].innerHTML += response.data[k].工艺名称简称 + '/'
|
||||
}
|
||||
}).then(() => {
|
||||
// this.bianliang.push(this.returns[i])
|
||||
this.wancheng = 1
|
||||
})
|
||||
}
|
||||
}).then(() => {
|
||||
|
||||
Reference in New Issue
Block a user