更新设备维修、发货、精工车间工序工价/生产审核/工时统计、仓储盘点/库存查询/库位/入库,新增车间派工移动端及SQL脚本
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
v-model="PartType"
|
||||
type="border-card"
|
||||
style="height: 850px;padding: 0"
|
||||
@tab-click="pageCurrent=1;pageCurrent1=1">
|
||||
@tab-click="handleTabClick">
|
||||
<el-tab-pane label="采购入库" name="采购入库">
|
||||
<div style="margin-top: 7px; margin-bottom: 7px">
|
||||
<el-select
|
||||
@@ -279,6 +279,17 @@
|
||||
size="small"
|
||||
@click="submitInStorage2">入库
|
||||
</el-button>
|
||||
<!-- 修改人:Ld 修改时间:2026-07-14 09:05:57; 自制件入库增加入库单入口,按自制件类型加载待入库单 -->
|
||||
<el-badge :value="selfMadeRKDCount" class="item">
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-s-home"
|
||||
style="margin-left: 10px"
|
||||
plain
|
||||
size="small"
|
||||
@click="showSelfMadeRKDDialog">入库单
|
||||
</el-button>
|
||||
</el-badge>
|
||||
</div>
|
||||
<div>
|
||||
<el-table
|
||||
@@ -546,8 +557,11 @@
|
||||
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisibleRKD" title="入库单" center width="700px">
|
||||
<el-table :data="tableDataRKDMerged" border stripe size="small" height="400px">
|
||||
<el-table-column prop="入库单号" label="入库单号" align="center" show-overflow-tooltip/>
|
||||
<el-table-column prop="采购合同号" label="采购合同" align="center" show-overflow-tooltip/>
|
||||
<el-table-column prop="供应商名称" label="供应商" align="center" show-overflow-tooltip/>
|
||||
<el-table-column v-if="rkdDialogType === '采购'" prop="采购合同号" label="采购合同" align="center" show-overflow-tooltip/>
|
||||
<el-table-column v-if="rkdDialogType === '采购'" prop="供应商名称" label="供应商" align="center" show-overflow-tooltip/>
|
||||
<!-- 修改人:Ld 修改时间:2026-07-14 09:05:57; 自制件入库单弹窗显示订单信息 -->
|
||||
<el-table-column v-if="rkdDialogType === '自制'" prop="订单号" label="订单号" align="center" show-overflow-tooltip/>
|
||||
<el-table-column v-if="rkdDialogType === '自制'" prop="类型" label="类型" align="center" show-overflow-tooltip/>
|
||||
<el-table-column prop="到货数" label="到货数" align="center" show-overflow-tooltip/>
|
||||
<el-table-column label="操作" align="center" width="80px">
|
||||
<template slot-scope="scope">
|
||||
@@ -711,6 +725,7 @@ export default {
|
||||
tableData3: [], // 合同信息表
|
||||
tableData30: [], // 合同信息表
|
||||
dialogFormVisibleRKD: false,
|
||||
rkdDialogType: '采购', // 修改人:Ld 修改时间:2026-07-14 09:05:57; 区分采购/自制件入库单弹窗
|
||||
tableDataRKD: [],
|
||||
pageCurrent: 1, // 分页当前页
|
||||
pageSize: 30, // 分页每页显示条数
|
||||
@@ -739,6 +754,16 @@ export default {
|
||||
}
|
||||
}
|
||||
return result
|
||||
},
|
||||
selfMadeRKDCount() {
|
||||
// 修改人:Ld 修改时间:2026-07-14 09:05:57; 统计自制件待入库单数量用于按钮角标
|
||||
var count = 0
|
||||
for (var i = 0; i < this.tableDataRKD.length; i++) {
|
||||
if (this.tableDataRKD[i].类型 === '自制') {
|
||||
count++
|
||||
}
|
||||
}
|
||||
return this.rkdDialogType === '自制' ? this.tableDataRKDMerged.length : count
|
||||
}
|
||||
},
|
||||
updated() {
|
||||
@@ -762,10 +787,20 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
loadRKDCounter() {
|
||||
// 修改人:Ld 修改时间:2026-07-14 09:05:57; 默认加载采购入库单数量,避免采购页混入自制件入库单
|
||||
this.loadRKDData('采购', false)
|
||||
},
|
||||
loadRKDData(type, showDialog) {
|
||||
// 修改人:Ld 修改时间:2026-07-14 09:05:57; 按采购/自制类型统一加载入库单数据
|
||||
var param = []
|
||||
param[0] = ['类型_check', 1]
|
||||
param[1] = ['类型', type]
|
||||
var Data = this.CreateData('11', '仓储管理_入库单_查询', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
this.tableDataRKD = response.data.filter(item => item.是否入库 === 0 || item.是否入库 === false)
|
||||
if (showDialog) {
|
||||
this.dialogFormVisibleRKD = true
|
||||
}
|
||||
})
|
||||
},
|
||||
handleSupplierChange() {
|
||||
@@ -797,14 +832,23 @@ export default {
|
||||
this.supplierSelectionName = obj ? obj.label : ''
|
||||
},
|
||||
showRKDDialog() {
|
||||
var param = []
|
||||
var Data = this.CreateData('11', '仓储管理_入库单_查询', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
this.tableDataRKD = response.data.filter(item => item.是否入库 === 0 || item.是否入库 === false )
|
||||
this.dialogFormVisibleRKD = true
|
||||
})
|
||||
this.rkdDialogType = '采购'
|
||||
this.loadRKDData('采购', true)
|
||||
},
|
||||
showSelfMadeRKDDialog() {
|
||||
// 修改人:Ld 修改时间:2026-07-14 09:05:57; 自制件入库页打开自制件入库单列表
|
||||
this.rkdDialogType = '自制'
|
||||
this.loadRKDData('自制', true)
|
||||
},
|
||||
selectRKDRow(row) {
|
||||
if (this.rkdDialogType === '自制') {
|
||||
this.orderSelectionValue = Number(row.订单流水号) || row.订单流水号
|
||||
this.numberSelectionValue = ''
|
||||
this.getnumberSelection()
|
||||
this.searchTable3()
|
||||
this.dialogFormVisibleRKD = false
|
||||
return
|
||||
}
|
||||
this.supplierSelectionValue = row.供应商流水号
|
||||
this.getContractState()
|
||||
this.$nextTick(() => {
|
||||
@@ -814,6 +858,13 @@ export default {
|
||||
})
|
||||
this.dialogFormVisibleRKD = false
|
||||
},
|
||||
handleTabClick() {
|
||||
// 修改人:Ld 修改时间:2026-07-14 09:05:57; 切换页签时刷新对应类型的入库单数量
|
||||
this.pageCurrent = 1
|
||||
this.pageCurrent1 = 1
|
||||
this.rkdDialogType = this.PartType === '自制件入库' ? '自制' : '采购'
|
||||
this.loadRKDData(this.rkdDialogType, false)
|
||||
},
|
||||
exportTable() {
|
||||
const htmlNode = $('#WGBLD').html()
|
||||
const body = $('body')
|
||||
|
||||
Reference in New Issue
Block a user