This commit is contained in:
zhangdingyu
2019-04-01 16:10:22 +08:00
parent 4b83cec6a0
commit 00352f0039
3 changed files with 31 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ export function getTable(num1, num2, num3, num4, num5, num6, pageCurrent, pageSi
method: 'post', method: 'post',
data: { data: {
type: '1', type: '1',
name: '车间生产管理工艺_库存管理_基本件库存查询', name: '车间生产管理工艺_库存管理_基本件出库记录查询',
param: '机床流水号_check=' + num1 + '&机床流水号=' + num2 + '&组件流水号_check=' + num3 + '&组件流水号=' + num4 + '&零件图号_check=' + num5 + '&零件图号=' + num6, param: '机床流水号_check=' + num1 + '&机床流水号=' + num2 + '&组件流水号_check=' + num3 + '&组件流水号=' + num4 + '&零件图号_check=' + num5 + '&零件图号=' + num6,
Pagination: pageCurrent + '&' + pageSize Pagination: pageCurrent + '&' + pageSize
} }

View File

@@ -74,3 +74,15 @@ export function change2(Number, code, num) {
} }
}) })
} }
export function handlechange2(Number, code) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_修改数据_修改实际完成时间',
param: '工序流水号=' + Number + '&实际完成时间=' + code
}
})
}

View File

@@ -115,11 +115,12 @@
</template> </template>
<script> <script>
import { searchtable, searchtable2, change, handlechange, searchtable3, change2 } from '@/api/ManufacturingCenter/MaterialArrivalManagement' import { searchtable, searchtable2, change, handlechange, searchtable3, change2, handlechange2 } from '@/api/ManufacturingCenter/MaterialArrivalManagement'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
data() { data() {
return { return {
editTime: '',
bianliang1: [], bianliang1: [],
bianliang2: [], bianliang2: [],
num: 0, num: 0,
@@ -179,13 +180,21 @@ export default {
备料到货: this.Data[i].备料到货, 备料到货: this.Data[i].备料到货,
工艺要求: response.data[0].工艺要求, 工艺要求: response.data[0].工艺要求,
工序流水号: response.data[0].工序流水号, 工序流水号: response.data[0].工序流水号,
重量: response.data[0].重量 重量: response.data[0].重量,
单价: 0
}) })
}) })
this.loading = false this.loading = false
} }
}) })
}, },
zeroFill(i) {
if (i >= 0 && i <= 9) {
return '0' + i
} else {
return i
}
},
// 自家备料出库 // 自家备料出库
handleChange1(row) { handleChange1(row) {
if (row.重量 === '' || row.重量 === null) { if (row.重量 === '' || row.重量 === null) {
@@ -193,8 +202,14 @@ export default {
} else if (row.单价 === '' || row.单价 === null) { } else if (row.单价 === '' || row.单价 === null) {
this.$message.error('请输入单价') this.$message.error('请输入单价')
} else { } else {
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(() => { change(row.工艺计划流水号, row.重量, row.单价).then(() => {
handlechange(row.工序流水号, '0000') handlechange(row.工序流水号, '0000').then(response => {
handlechange2(row.工序流水号, this.form.完成时间)
})
}).then(response => { }).then(response => {
this.searchTable() this.searchTable()
}) })