|
|
@@ -2,7 +2,7 @@
|
|
|
<div>
|
|
|
<el-form>
|
|
|
<el-form-item>
|
|
|
- <el-input v-model="searchInfo" placeholder="搜索订单编号或生产款号" @keyup.enter="handleSearch()" style="width: 180px;" />
|
|
|
+ <el-input v-model="searchInfo" placeholder="搜索订单编号、款号、物料名称、颜色" @keyup.enter="handleSearch()" style="width: 260px;" />
|
|
|
<el-button type="primary" icon="search" class="search" @click="handleSearch">搜索</el-button>
|
|
|
<el-button type="primary" icon="Download" @click="exportToExcel" style="margin: 5px;float: right;">导出库存Excel</el-button>
|
|
|
</el-form-item>
|
|
|
@@ -32,6 +32,7 @@
|
|
|
<el-table-column align="left" label="关联号" prop="关联号" width="90" />
|
|
|
<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="90"/>
|
|
|
<!-- <el-table-column align="left" label="计划用料" prop="计划用料" width="90"/> -->
|
|
|
<!-- <el-table-column align="left" label="计划门幅" prop="计划门幅" width="90"/> -->
|
|
|
@@ -275,9 +276,12 @@ const handleNodeClick = async (node, check) => {
|
|
|
const searchInfo = ref('')
|
|
|
//查询按钮
|
|
|
const handleSearch = async ()=>{
|
|
|
+ if(searchInfo.value == ''){
|
|
|
+ return;
|
|
|
+ }
|
|
|
restableData.splice(0, restableData.length);//清空表格
|
|
|
//订单信息数据查询【接口】
|
|
|
- const fabricListdata = await FabricLotList({date:nodedata.value});
|
|
|
+ const fabricListdata = await FabricLotList({data:'',search:searchInfo.value});
|
|
|
console.log(fabricListdata)
|
|
|
restableData.splice(0,fabricListdata.length,...fabricListdata.data);
|
|
|
total.value = fabricListdata.data.total;
|