|
|
@@ -2,10 +2,10 @@
|
|
|
<div>
|
|
|
<layout>
|
|
|
<el-row :gutter="24" style="margin-bottom: 6px;">
|
|
|
- <el-input v-model="records_searchInfo" placeholder="请搜索退还单号、订单编号或生产款号进行查询相关退还记录" @input="records_handleInput"
|
|
|
+ <!-- <el-input v-model="records_searchInfo" placeholder="请搜索退还单号、订单编号或生产款号进行查询相关退还记录" @input="records_handleInput"
|
|
|
@keyup.enter="records_onSubmit" id="searchInput" style="width: 460px;height: 50px;margin-left: 10px;">
|
|
|
- </el-input>
|
|
|
- <el-button type="primary" @click="Reporting_onSubmit" style="height: 50px;font-size: 20px;">面料退还</el-button>
|
|
|
+ </el-input> -->
|
|
|
+ <el-button type="primary" @click="Reporting_onSubmit" style="height: 50px;font-size: 20px;margin-left: 20px;">面料退还</el-button>
|
|
|
<!-- <el-button type="danger" @click="deldetail_delclick" style="width: 80px;height: 50px;" v-if="del_details=== true" :disabled="details_Selection === '' " class="bt" >删除</el-button> -->
|
|
|
</el-row>
|
|
|
<layout>
|
|
|
@@ -22,11 +22,12 @@
|
|
|
@selection-change="detailSelectionChange" style="width: 100%;height: 65vh" border
|
|
|
:summary-method="getSummaries" tooltip-effect="dark" :data="recordtableData" row-key="ID" >
|
|
|
<!-- <el-table-column align="center" type="selection" width="40"//> -->
|
|
|
- <el-table-column align="left" label="退还单" prop="退还单" width="170"/>
|
|
|
- <el-table-column align="left" label="订单编号" prop="订单编号" width="150"/>
|
|
|
- <el-table-column align="left" label="款号" prop="款号" width="150"/>
|
|
|
- <el-table-column align="left" label="物料名称" prop="物料名称" width="150"/>
|
|
|
+ <el-table-column align="left" label="退还单" prop="出库单" width="170"/>
|
|
|
+ <!-- <el-table-column align="left" label="订单编号" prop="订单编号" width="150"/> -->
|
|
|
+ <!-- <el-table-column align="left" label="款号" prop="款号" width="150"/> -->
|
|
|
+ <!-- <el-table-column align="left" label="物料名称" prop="物料名称" width="150"/> -->
|
|
|
<el-table-column align="left" label="单号类型" prop="单号类型" width="150"/>
|
|
|
+ <el-table-column align="left" label="退还总数" prop="总数" width="110"/>
|
|
|
<el-table-column align="left" label="退还人员" prop="操作机台" width="110"/>
|
|
|
<el-table-column align="left" label="退还日期" prop="日期" width="160"/>
|
|
|
|
|
|
@@ -34,7 +35,7 @@
|
|
|
<template #default="{ row, $index }">
|
|
|
<el-button @click="record_deleteRow(row,$index)" type="success" size="small"
|
|
|
style="font-size: 16px;padding: 0px;width: 90px;">
|
|
|
- 查看详情
|
|
|
+ 退还明细
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -61,26 +62,28 @@
|
|
|
:cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
|
|
|
:show-overflow-tooltip="true" highlight-current-row="true"
|
|
|
@row-click="detailsclicks" @row-dblclick="Doubleclickdetails"
|
|
|
- @selection-change="detailSelectionChange" style="width: 100%;height: 65vh" border
|
|
|
+ @selection-change="detailSelectionChange" style="width: 100%;height: 75vh" border
|
|
|
:summary-method="getSummaries" tooltip-effect="dark" :data="rdetailstableData" row-key="ID" >
|
|
|
<!-- <el-table-column align="center" type="selection" width="40"/> -->
|
|
|
- <el-table-column align="left" label="退还单号" prop="单号" width="150"/>
|
|
|
+ <el-table-column align="left" label="退还单号" prop="出库单据编号" width="140"/>
|
|
|
<el-table-column align="left" label="批次号" prop="批次号" width="90"/>
|
|
|
- <el-table-column align="left" label="订单编号" prop="订单编号" width="110"/>
|
|
|
- <el-table-column align="left" label="客户" prop="客户编号" width="80"/>
|
|
|
- <el-table-column align="left" label="生产款号" prop="生产款号" width="140"/>
|
|
|
+ <el-table-column align="left" label="订单编号" prop="订单编号" width="105"/>
|
|
|
+ <el-table-column align="left" label="客户" prop="客户编号" width="70"/>
|
|
|
+ <el-table-column align="left" label="生产款号" prop="款号" width="140"/>
|
|
|
<el-table-column align="left" label="款式" prop="款式" width="120"/>
|
|
|
+ <el-table-column align="left" label="物料编码" prop="物料编码" width="150"/>
|
|
|
<el-table-column align="left" label="物料名称" prop="物料名称" width="150"/>
|
|
|
+ <el-table-column align="left" label="颜色" prop="颜色" width="120"/>
|
|
|
<!-- <el-table-column align="left" label="计划用料" prop="计划用料" width="90"/> -->
|
|
|
<!-- <el-table-column align="left" label="计划门幅" prop="计划门幅" width="90"/> -->
|
|
|
<el-table-column align="left" label="定额用料" prop="定额用料" width="90"/>
|
|
|
<el-table-column align="left" label="定额门幅" prop="定额门幅" width="90"/>
|
|
|
- <el-table-column align="left" label="库存数量" prop="库存数量" width="90"/>
|
|
|
+ <el-table-column align="left" label="退还数量" prop="入仓总量" width="90"/>
|
|
|
+ <el-table-column align="left" label="库存总量" prop="库存数量" width="90"/>
|
|
|
<el-table-column align="left" label="面料结余" prop="面料结余" width="90"/>
|
|
|
- <el-table-column align="left" label="退还数量" prop="退还数量" width="90"/>
|
|
|
- <el-table-column align="left" label="投料单位" prop="投料单位" width="90"/>
|
|
|
- <el-table-column align="left" label="退还人员" prop="退还人员" width="100"/>
|
|
|
- <el-table-column align="left" label="退还时间" prop="退还时间" width="160"/>
|
|
|
+ <el-table-column align="left" label="投料单位" prop="单位" width="90"/>
|
|
|
+ <el-table-column align="left" label="退还人员" prop="操作机台" width="100"/>
|
|
|
+ <el-table-column align="left" label="退还日期" prop="日期" width="160"/>
|
|
|
</el-table>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
@@ -115,9 +118,9 @@
|
|
|
highlight-current-row="true" @row-dblclick="updateCompanyFunc"
|
|
|
@row-click="tableRowClick" :show-overflow-tooltip="true"
|
|
|
@selection-change="handleSelectionChange">
|
|
|
+ <el-table-column align="left" label="关联编号" prop="关联编号" width="90" />
|
|
|
<el-table-column align="left" label="订单编号" prop="订单编号" width="110" />
|
|
|
<el-table-column align="left" label="生产款号" prop="生产款号" width="110" />
|
|
|
- <el-table-column align="left" label="关联编号" prop="关联编号" width="90" />
|
|
|
<el-table-column align="left" label="物料名称" prop="物料名称" width="120" />
|
|
|
<el-table-column align="left" label="颜色" prop="颜色" width="100" />
|
|
|
</el-table>
|
|
|
@@ -125,21 +128,22 @@
|
|
|
|
|
|
<!-- 右部分 -->
|
|
|
<div style="position: relative;width: 1300px;height: 310px;">
|
|
|
- <el-descriptions class="margin-top" :column="2" :size="size" border>
|
|
|
+ <el-descriptions class="margin-top" :column="1" :size="size" border>
|
|
|
<el-descriptions-item label="关联订单">{{ mianliaotabData.关联订单 }}</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
<el-descriptions class="margin-top" :column="4" :size="size" border>
|
|
|
<el-descriptions-item label="批次号">{{ mianliaotabData.批次号 }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="关联号">{{ mianliaotabData.关联号 }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="订单编号">{{ ddhformData['ddh'] }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="客户">{{ ddhformData['kh'] }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="订单编号">{{ mianliaotabData.订单编号 }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="客户">{{ mianliaotabData.客户编号 }}</el-descriptions-item>
|
|
|
<!-- <el-descriptions-item label="款式">{{ ddhformData['ks'] }}</el-descriptions-item> -->
|
|
|
<el-descriptions-item label="物料编号">{{ mianliaotabData.物料编号 }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="生产款号">{{ ddhformData['sckh'] }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="生产款号">{{ mianliaotabData.生产款号 }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="颜色">{{ mianliaotabData.颜色 }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="物料名称">{{ mianliaotabData.物料名称 }}</el-descriptions-item>
|
|
|
<!-- <el-descriptions-item label="计划用料">{{ mianliaotabData.计划用料 }}</el-descriptions-item> -->
|
|
|
<!-- <el-descriptions-item label="计划门幅">{{ mianliaotabData.计划门幅 }}</el-descriptions-item> -->
|
|
|
+ <!-- <el-descriptions-item label="单位">{{ mianliaotabData.单位 }}</el-descriptions-item> -->
|
|
|
<el-descriptions-item label="单位">{{ mianliaotabData.单位 }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="库存数量">{{ mianliaotabData.库存数量 }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="累计退还数量">{{ mianliaotabData.入仓总数量 }}</el-descriptions-item>
|
|
|
@@ -156,8 +160,6 @@
|
|
|
<el-input v-model="mianliaotabData.退还数量" id='rksl' placeholder="" style="margin: 0; width: 100px;"/>
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
-
|
|
|
-
|
|
|
<el-descriptions class="margin-top" :column="2" :size="size" border>
|
|
|
<el-descriptions-item label="退还类型">
|
|
|
<el-radio v-model="radio1" label="退面料" border>退面料</el-radio>
|
|
|
@@ -165,7 +167,6 @@
|
|
|
<el-radio v-model="radio1" label="退次品" border>退次品</el-radio>
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
-
|
|
|
<!-- <el-button type="primary" @click="dj_Dialog" style="width: 120px; height: 50px; position: absolute; bottom: 0px; right: 10px;">
|
|
|
添加面料
|
|
|
</el-button> -->
|
|
|
@@ -177,7 +178,6 @@
|
|
|
<el-descriptions-item label="退还日期">{{riqi}}</el-descriptions-item>
|
|
|
<el-descriptions-item label="退还人员">{{chukuren}}</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
-
|
|
|
<br>
|
|
|
<div>
|
|
|
<el-table ref="multipleTable" style="width: 100%;height: 25vh" tooltip-effect="dark"
|
|
|
@@ -277,8 +277,8 @@
|
|
|
import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
|
|
|
import {ref, reactive} from 'vue'
|
|
|
import {getInputDetail,
|
|
|
- inputStash,
|
|
|
- InputOrderSearch,TuihuoReport,FabricDetail,gitReceiptNumber,FabricDetaillist,FabricDetaildel,ReceiptList,ReceiptDetail} from '@/api/mes/job'
|
|
|
+ TuihuoReport,
|
|
|
+ InputOrderSearch,outReport,FabricDetail,gitReceiptNumber,FabricDetaillist,FabricDetaildel,ReceiptList,ReceiptDetail} from '@/api/mes/job'
|
|
|
import { ElMessage, ElMessageBox,ElUpload, ElButton } from 'element-plus';
|
|
|
import { useUserStore } from '@/pinia/modules/user'
|
|
|
// import { get } from 'scriptjs';
|
|
|
@@ -320,6 +320,7 @@
|
|
|
const _orderid = ref('')//订单子编号
|
|
|
const _kh = ref('')//生产款号
|
|
|
const radio1 = ref('退面料')
|
|
|
+
|
|
|
//input实时调用
|
|
|
const handleInput = async ()=>{
|
|
|
restableData.splice(0, restableData.length);//清空表格
|
|
|
@@ -334,7 +335,7 @@
|
|
|
ddhformData.ks = orderSearchdata.data[0]['款式']
|
|
|
add_lysearchInfo.value = add_searchInfo.value
|
|
|
|
|
|
- const gitReceiptNumberdata = await gitReceiptNumber({number:'TH'});
|
|
|
+ const gitReceiptNumberdata = await gitReceiptNumber({number:'CK'});
|
|
|
danhao.value = gitReceiptNumberdata.data.number
|
|
|
chukuren.value = userStore.userInfo.nickName
|
|
|
riqi.value = currentDates
|
|
|
@@ -358,12 +359,11 @@
|
|
|
ddhformData.ks = orderSearchdata.data[0]['款式']
|
|
|
add_lysearchInfo.value = add_searchInfo.value
|
|
|
|
|
|
- const gitReceiptNumberdata = await gitReceiptNumber({number:'TH'});
|
|
|
+ const gitReceiptNumberdata = await gitReceiptNumber({number:'CK'});
|
|
|
console.log(gitReceiptNumberdata)
|
|
|
danhao.value = gitReceiptNumberdata.data.number
|
|
|
chukuren.value = userStore.userInfo.nickName
|
|
|
riqi.value = currentDates
|
|
|
- Reporting_onSubmit()
|
|
|
}else{
|
|
|
restableData.splice(0,orderSearchdata.length,...orderSearchdata.data);
|
|
|
}
|
|
|
@@ -424,6 +424,10 @@
|
|
|
// 将 Detailres.data 中的数据赋值给 mianliaotabData
|
|
|
if (Detailres.code === 0 && Detailres.data) {
|
|
|
mianliaotabData.value = {
|
|
|
+ 订单编号: row.订单编号,
|
|
|
+ 客户编号: row.客户编号,
|
|
|
+ 生产款号: row.生产款号,
|
|
|
+ 款式: row.款式,
|
|
|
物料编号: Detailres.data.BOM_物料编码,
|
|
|
物料名称: Detailres.data.BOM_物料名称,
|
|
|
关联号: Detailres.data.关联编号,
|
|
|
@@ -433,12 +437,12 @@
|
|
|
定额用料: Detailres.data.定额用料,
|
|
|
定额门幅: Detailres.data.BOM_定额门幅,
|
|
|
退还数量: Detailres.data.退还数量,
|
|
|
- 入仓总数量: Detailres.data.入仓总量,
|
|
|
- 库存数量: Detailres.data.库存数量,
|
|
|
+ 入仓总数量: Detailres.data.入仓总量?Detailres.data.入仓总量:0,
|
|
|
+ 库存数量: Detailres.data.库存数量?Detailres.data.库存数量:0,
|
|
|
领用数量: Detailres.data.领用数量,
|
|
|
关联订单: Detailres.data.关联订单,
|
|
|
颜色: Detailres.data.BOM_颜色,
|
|
|
- 单位: Detailres.data.单位,
|
|
|
+ 单位:'米',
|
|
|
实际门幅:Detailres.data.实际门幅
|
|
|
};
|
|
|
} else {
|
|
|
@@ -449,13 +453,18 @@
|
|
|
|
|
|
//添加按钮
|
|
|
const dj_Dialog = () => {
|
|
|
- if (mianliaotabData.value) {
|
|
|
- // 使用 .value 访问 danjutableData 的实际值ddhformData
|
|
|
- danjutableData.value.push({ ...mianliaotabData.value });
|
|
|
-
|
|
|
- } else {
|
|
|
- console.error('mianliaotabData 为空,无法添加到 danjutableData');
|
|
|
- }
|
|
|
+ if (mianliaotabData.value) {
|
|
|
+ // 判断实际门幅是否为空
|
|
|
+ const 实际门幅 = mianliaotabData.value.实际门幅 || mianliaotabData.value.定额门幅;
|
|
|
+
|
|
|
+ // 将 mianliaotabData 的数据添加到 danjutableData
|
|
|
+ danjutableData.value.push({
|
|
|
+ ...mianliaotabData.value, // 展开 mianliaotabData 的所有属性
|
|
|
+ 实际门幅, // 使用计算后的实际门幅
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ console.error('mianliaotabData 为空,无法添加到 danjutableData');
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
//操作移除按钮
|
|
|
@@ -465,29 +474,6 @@
|
|
|
//移除当前行
|
|
|
danjutableData.value.splice(index, 1);
|
|
|
}
|
|
|
- //查询
|
|
|
- const add_lyonSubmit = async ()=>{
|
|
|
- const orderSearchdata = await InputOrderSearch({search:add_lysearchInfo.value});
|
|
|
- if(orderSearchdata.data.length === 1){
|
|
|
- add_lysearchInfo.value = orderSearchdata.data[0]['订单编号']
|
|
|
- ddhformData.ddh = orderSearchdata.data[0]['订单编号']
|
|
|
- ddhformData.kh = orderSearchdata.data[0]['客户编号']
|
|
|
- ddhformData.sckh = orderSearchdata.data[0]['生产款号']
|
|
|
- ddhformData.ks = orderSearchdata.data[0]['款式']
|
|
|
- }
|
|
|
- try {
|
|
|
- const Detailres = await getInputDetail({
|
|
|
- 关联编号:ddhformData.glbh,
|
|
|
- 订单编号:ddhformData.ddh,
|
|
|
- 物料编码:ddhformData.wlbh
|
|
|
- });
|
|
|
- console.log(Detailres)
|
|
|
-
|
|
|
- add_lysearchInfo.value = ''
|
|
|
- } catch (error) {
|
|
|
- console.error(error);
|
|
|
- }
|
|
|
- };
|
|
|
|
|
|
//选择退还弹窗
|
|
|
const res_bomdialogFormVisible = ref(false)
|
|
|
@@ -523,6 +509,8 @@
|
|
|
|
|
|
//选择退还
|
|
|
const Reporting_onSubmit = async ()=>{
|
|
|
+ ddhformData.value = []
|
|
|
+ mianliaotabData.value = []
|
|
|
// if(_orderid.value === '' || _orderid.value === null){
|
|
|
// ElMessage({type: 'warning',message: '请扫描订单后,再操作此功能'})
|
|
|
// }else{
|
|
|
@@ -537,7 +525,7 @@
|
|
|
}, 100);//100毫秒
|
|
|
|
|
|
//获取单据编号接口
|
|
|
- const gitReceiptNumberdata = await gitReceiptNumber({number:'TH'});
|
|
|
+ const gitReceiptNumberdata = await gitReceiptNumber({number:'CK'});
|
|
|
danhao.value = gitReceiptNumberdata.data.number
|
|
|
chukuren.value = userStore.userInfo.nickName
|
|
|
riqi.value = currentDates
|
|
|
@@ -639,7 +627,7 @@
|
|
|
ElMessage({ type: 'error', message: '退还失败' });
|
|
|
}
|
|
|
} catch (error) {
|
|
|
- console.error('退还失败:', error);
|
|
|
+ console.error('出库失败:', error);
|
|
|
ElMessage({ type: 'error', message: '退还失败' });
|
|
|
}
|
|
|
}
|
|
|
@@ -700,7 +688,7 @@
|
|
|
recorddialogFormVisible.value = true
|
|
|
rdetailstableData.splice(0,rdetailstableData.length);
|
|
|
|
|
|
- const FabricDetaillists = await ReceiptDetail({receipt:row['退还单']});
|
|
|
+ const FabricDetaillists = await ReceiptDetail({receipt:row['出库单']});
|
|
|
rdetailstableData.splice(0,FabricDetaillists.length,...FabricDetaillists.data);
|
|
|
}
|
|
|
|
|
|
@@ -802,7 +790,7 @@
|
|
|
};
|
|
|
</script>
|
|
|
<style scoped>
|
|
|
- /* 根据退还状态文字颜色 */
|
|
|
+ /* 根据出库状态文字颜色 */
|
|
|
:deep(.status-plan-usage-low div) {
|
|
|
color: #8c939d !important;
|
|
|
}
|
|
|
@@ -907,9 +895,9 @@
|
|
|
width: 120px;
|
|
|
}
|
|
|
:deep(.el-descriptions__content) {
|
|
|
- width: 80px !important;
|
|
|
- min-width: 80px !important;
|
|
|
- max-width: 80px !important;
|
|
|
+ width: 120px !important;
|
|
|
+ min-width: 120px !important;
|
|
|
+ max-width: 120px !important;
|
|
|
overflow: hidden !important;
|
|
|
text-overflow: ellipsis !important;
|
|
|
}
|