更新工序工价、库存查询、库位、领料、出库明细、入库等仓储模块,新增采购合同入库单移动端设计及SQL脚本

This commit is contained in:
Developer
2026-07-23 08:45:50 +08:00
parent 2b9058c69c
commit 33549c3787
17 changed files with 1124 additions and 46 deletions

View File

@@ -450,24 +450,53 @@ export default {
'id'
])
},
watch: {
// 修改人:Ld 修改时间:2026-07-17 16:30:55; 同一路由再次跳转时组件会复用,监听 query 变化后重新赋值并查询
'$route.query': function(query) {
this.applyJumpQuery(query)
}
},
created() {
// 修改人:Ld 修改时间:2026-07-17 08:44:08; 支持从工时统计跳转后按携带值直接查询工价
if (this.$route.query.订单号) {
this.jumpQuery订单号 = this.$route.query.订单号
}
if (this.$route.query.零件名称 || this.$route.query.图号 || this.$route.query.工序名称) {
this.queryForm.零件名称 = this.$route.query.零件名称 || ''
this.queryForm.图号 = this.$route.query.图号 || ''
this.queryForm.工序名称 = this.$route.query.工序名称 || ''
this.jumpDirectQuery = true
}
this.applyJumpQuery(this.$route.query, true)
this.getOrderNumberType()
if (this.jumpDirectQuery) {
this.pageCurrent = 1
}
this.searchTable()
},
methods: {
// 修改人:Ld 修改时间:2026-07-17 16:30:55; 统一处理工时统计跳转参数,避免再次跳转时保留上一次查询条件
applyJumpQuery(query) {
if (!query || (!query.订单号 && !query.零件名称 && !query.图号 && !query.工序名称)) {
return
}
this.jumpQuery订单号 = query.订单号 || ''
this.jumpDirectQuery = !!(query.零件名称 || query.图号 || query.工序名称)
this.jumpAutoCascade = false
if (this.jumpDirectQuery) {
this.queryForm.组件流水号 = ''
this.queryForm.工艺计划流水号 = ''
this.queryForm.零件名称 = query.零件名称 || ''
this.queryForm.图号 = query.图号 || ''
this.queryForm.工序名称 = query.工序名称 || ''
this.productName = []
this.partName = []
}
this.setJumpOrderValue()
this.pageCurrent = 1
this.searchTable()
},
// 修改人:Ld 修改时间:2026-07-17 16:30:55; 已加载订单下拉时,按跳转订单号补充订单流水号
setJumpOrderValue() {
if (!this.jumpQuery订单号 || !this.orderNumberType || this.orderNumberType.length === 0) {
return false
}
for (var i = 0; i < this.orderNumberType.length; i++) {
if (this.orderNumberType[i].label === this.jumpQuery订单号) {
this.queryForm.订单流水号 = this.orderNumberType[i].value
this.jumpQuery订单号 = ''
return true
}
}
return false
},
// 修改人:Ld 修改时间:2026-07-06 08:36:02
// 获取制定工艺组件同源订单下拉
getOrderNumberType() {
@@ -481,21 +510,14 @@ export default {
value: response.data[i].订单流水号
})
}
// 修改人:Ld 修改时间:2026-07-17 08:44:08; 跳转携带明细条件时仅补充订单赋值并按当前条件查询,避免自动选中第一个零件覆盖查询条件
if (this.jumpQuery订单号) {
for (var j = 0; j < this.orderNumberType.length; j++) {
if (this.orderNumberType[j].label === this.jumpQuery订单号) {
this.queryForm.订单流水号 = this.orderNumberType[j].value
if (this.jumpDirectQuery) {
this.pageCurrent = 1
this.searchTable()
} else {
this.jumpAutoCascade = true
this.getproductName()
}
this.jumpQuery订单号 = ''
break
}
// 修改人:Ld 修改时间:2026-07-17 16:30:55; 订单下拉异步加载完成后补充订单流水号,再按跳转条件查询
if (this.setJumpOrderValue()) {
if (this.jumpDirectQuery) {
this.pageCurrent = 1
this.searchTable()
} else {
this.jumpAutoCascade = true
this.getproductName()
}
}
})