|
|
@@ -30,12 +30,13 @@
|
|
|
:cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
|
|
|
:show-overflow-tooltip="true" @row-click="Click" @row-dblclick="doubleClick">
|
|
|
<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="100" />
|
|
|
<el-table-column align="left" label="订单编号" prop="订单编号" width="190" />
|
|
|
<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="100" />
|
|
|
<el-table-column align="left" label="颜色" prop="颜色" width="100" />
|
|
|
+ <el-table-column align="left" label="尺码" prop="尺码" width="100" />
|
|
|
+ <el-table-column align="left" label="返工数量" prop="数量" width="100" />
|
|
|
+ <el-table-column align="left" label="面料名称" prop="面料名称" width="120" />
|
|
|
<el-table-column align="left" label="问题分类" prop="问题分类" width="120" />
|
|
|
<el-table-column align="left" label="创建时间" prop="Sys_rq" width="120" />
|
|
|
<el-table-column fixed="right" label="操作" width="130">
|
|
|
@@ -237,12 +238,13 @@ width="100%" style="height: 100%;margin: 0%;padding: 0px 10px 0px 10px;" destro
|
|
|
<el-table-column align="left" label="面料分类" prop="面料分类" width="120" />
|
|
|
<el-table-column align="left" label="面料名称" prop="面料名称" width="120" />
|
|
|
<el-table-column align="left" label="颜色" prop="颜色" width="100" />
|
|
|
- <el-table-column align="left" label="数量" prop="数量" width="80" />
|
|
|
- <el-table-column align="left" label="计划用料" prop="计划用料" width="100" />
|
|
|
- <el-table-column align="left" label="实际用料" prop="实际用料" width="100" />
|
|
|
- <el-table-column align="left" label="问题分类" prop="问题分类" width="120" />
|
|
|
+ <el-table-column align="left" label="尺码" prop="尺码" width="100" />
|
|
|
+ <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="100" /> -->
|
|
|
+ <el-table-column align="left" label="返工小组" prop="组别" width="120" />
|
|
|
+ <el-table-column align="left" label="返工问题" prop="问题分类" width="120" />
|
|
|
<el-table-column align="left" label="备注" prop="备注" width="120" />
|
|
|
- <el-table-column align="left" label="组别" prop="组别" width="120" />
|
|
|
<el-table-column align="left" label="操作人员" prop="Sys_id" width="120" />
|
|
|
<el-table-column align="left" label="创建时间" prop="Sys_rq" width="120" />
|
|
|
</el-table>
|
|
|
@@ -374,23 +376,28 @@ const handleNodeClick = async (node) => {
|
|
|
};
|
|
|
|
|
|
const searchinfo = ref('');
|
|
|
-//回车搜索
|
|
|
-const keydown_onSearch = async (event) => {
|
|
|
-if(event.keyCode === 13){
|
|
|
+
|
|
|
+const onSearch = async () => { // 搜索按钮触发的事件处理函数,根据需要修改逻辑和接口调用
|
|
|
const response = await ApiSubPieceAnd({
|
|
|
- search: searchinfo.value,
|
|
|
- page: 1,
|
|
|
- limit: 50,
|
|
|
- code: '返工'
|
|
|
- });
|
|
|
- if (response.code === 0 && response.data?.data) {
|
|
|
- // 清空并更新表格数据
|
|
|
- tableData.splice(0, tableData.length, ...response.data.data);
|
|
|
- } else {
|
|
|
- ElMessage.warning(response.msg || '暂无数据');
|
|
|
- tableData.splice(0, tableData.length);
|
|
|
- }
|
|
|
+ search: searchinfo.value,
|
|
|
+ Sys_rq:'',
|
|
|
+ page: 1,
|
|
|
+ limit: 50,
|
|
|
+ code: '次片'
|
|
|
+ });
|
|
|
+ if (response.code === 0 && response.data?.data) {
|
|
|
+ // 清空并更新表格数据
|
|
|
+ tableData.splice(0, tableData.length, ...response.data.data);
|
|
|
+ } else {
|
|
|
+ ElMessage.warning(response.msg || '暂无数据');
|
|
|
+ tableData.splice(0, tableData.length);
|
|
|
+ }
|
|
|
}
|
|
|
+//回车搜索
|
|
|
+const keydown_onSearch = async (event) => {
|
|
|
+ if(event.keyCode === 13){
|
|
|
+ onSearch();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -685,7 +692,7 @@ try {
|
|
|
}
|
|
|
|
|
|
const exportExcel2 = () => {
|
|
|
-const filename = '导出返工明细EXCEL.xlsx';
|
|
|
+const filename = '服装半成品返工报工页面表.xlsx';
|
|
|
console.log('导出数据', exceltableData);
|
|
|
|
|
|
// 获取 el-table 的列配置
|
|
|
@@ -694,17 +701,18 @@ const columns = [
|
|
|
{ label: "订单编号", prop: "订单编号" },
|
|
|
{ label: "生产款号", prop: "生产款号" },
|
|
|
{ label: "款式", prop: "款式" },
|
|
|
- { label: "面料分类", prop: "面料分类" },
|
|
|
- { label: "面料名称", prop: "面料名称" },
|
|
|
+ // { label: "面料分类", prop: "面料分类" },
|
|
|
+ // { label: "面料名称", prop: "面料名称" },
|
|
|
{ label: "颜色", prop: "颜色" },
|
|
|
- { label: "数量", prop: "数量" },
|
|
|
- { label: "计划用料", prop: "计划用料" },
|
|
|
- { label: "实际用料", prop: "实际用料" },
|
|
|
- { label: "问题分类", prop: "问题分类" },
|
|
|
+ { label: "尺码", prop: "尺码" },
|
|
|
+ { label: "返工数量", prop: "数量" },
|
|
|
+ { label: "返工小组", prop: "组别" },
|
|
|
+ // { label: "计划用料", prop: "计划用料" },
|
|
|
+ // { label: "实际用料", prop: "实际用料" },
|
|
|
+ { label: "返工问题", prop: "问题分类" },
|
|
|
{ label: "备注", prop: "备注" },
|
|
|
- { label: "组别", prop: "组别" },
|
|
|
- { label: "操作人员", prop: "Sys_id" },
|
|
|
- { label: "创建时间", prop: "Sys_rq" }
|
|
|
+ // { label: "操作人员", prop: "Sys_id" },
|
|
|
+ // { label: "创建时间", prop: "Sys_rq" }
|
|
|
];
|
|
|
|
|
|
// 创建表头映射对象
|