This commit is contained in:
liushuai
2019-06-15 17:24:34 +08:00
parent c1f58eeeb2
commit e328fb0c54
4 changed files with 21 additions and 28 deletions

View File

@@ -90,7 +90,7 @@
</template>
<script>
import { searchtable, searchtable2, change, handlechange, searchtable3, change2, handlechange2, change3 } from '@/api/ManufacturingCenter/MaterialArrivalManagement'
import { searchtable, searchtable2, searchtable3, change2, change3 } from '@/api/ManufacturingCenter/MaterialArrivalManagement'
import { mapGetters } from 'vuex'
export default {
data() {
@@ -143,7 +143,7 @@ export default {
this.bianliang1.push(this.arrest2[i].工艺计划流水号)
this.bianliang2.push(this.arrest2[i].工序流水号)
}
change3(this.bianliang2, '0000', this.bianliang1).then(response => {
change3(this.bianliang2, this.userId, this.bianliang1).then(response => {
this.searchTable()
})
}
@@ -190,20 +190,20 @@ export default {
return i
}
},
// 自家备料确认
handleChange1(row) {
var date = new Date()
var month = this.zeroFill(date.getMonth() + 1)
var day = this.zeroFill(date.getDate())
this.editTime = date.getFullYear() + '-' + month + '-' + day
change(row.工艺计划流水号, row.重量, row.单价).then(() => {
handlechange(row.工序流水号, '0000').then(response => {
handlechange2(row.工序流水号, this.editTime).then(response => {
this.searchTable()
})
})
})
},
// // 自家备料确认
// handleChange1(row) {
// var date = new Date()
// var month = this.zeroFill(date.getMonth() + 1)
// var day = this.zeroFill(date.getDate())
// this.editTime = date.getFullYear() + '-' + month + '-' + day
// change(row.工艺计划流水号, row.重量, row.单价).then(() => {
// handlechange(row.工序流水号, this.userId).then(response => {
// handlechange2(row.工序流水号, this.editTime).then(response => {
// this.searchTable()
// })
// })
// })
// },
handleSelectionChange(val) {
this.arrest = val
},
@@ -250,7 +250,7 @@ export default {
this.bianliang1.push(this.arrest[i].工艺计划流水号)
this.bianliang2.push(this.arrest[i].工序流水号)
}
change2(this.bianliang2, '0000', this.bianliang1).then(response => {
change2(this.bianliang2, this.userId, this.bianliang1).then(response => {
this.searchTable2()
})
}

View File

@@ -519,9 +519,6 @@ export default {
this.process[i][k] = response.data[k].工艺名称简称
this.planDate[i][k] = response.data[k].计划日期_短
this.realDate[i][k] = response.data[k].完成日期_短
if (response.data[k].工艺编号 === 29) {
response.data[k].员工姓名 = '备料'
}
if (response.data[k].工序间是否外协 === 2) {
response.data[k].员工姓名 = '外协'
}