修改自动盘点匹配的接口,添加还料打印单据

This commit is contained in:
2026-02-06 11:27:17 +08:00
parent 5cc33e4ef6
commit c466e5fbda
3 changed files with 8 additions and 89 deletions

View File

@@ -61,7 +61,7 @@
<!-- <el-col :span="1.5">
<el-col :span="1.5">
<el-button
type="success"
plain
@@ -70,7 +70,7 @@
v-print="printViewInfo"
v-hasPermi="['wisdom:return:print']"
>打印单据</el-button>
</el-col> -->
</el-col>
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@@ -125,95 +125,14 @@
/>
<!-- 打印 -->
<div id="printMe" class="printMeBox" v-show="showContent">
<div class="titleBox">物资还料单</div>
<div class="topBox">
<div class="topEveryBox">
<span>类型</span>
<span>{{ printList.length>0 ? printList[0].rkTypeName :"" }}</span>
</div>
<div class="topEveryBox">
<span>施工队</span>
<span>{{ printList.length>0?printList[0].teamName:"" }}</span>
</div>
<div class="topEveryBox">
<span>单据号</span>
<span>{{ printList.length>0?printList[0].billNo: '' }}</span>
</div>
<div class="topEveryBox">
<span>还料日期</span>
<span>{{ printList.length>0?parseTime(printList[0].returnTime, '{y}-{m}-{d}'):"" }}</span>
</div>
</div>
<div>
<span>项目名称</span>
<span>{{ printList.length>0?printList[0].xmMs:"" }}</span>
</div>
<div class="tableBox">
<!-- <el-table :data="printList" style="width:100%;">
<el-table-column label="物料号" prop="wlNo" width="100"/>
<el-table-column label="物料描述" prop="wlMs" width="180"/>
<el-table-column label="数量" prop="realQty" />
<el-table-column label="计量单位" prop="dw" width="80"/>
<el-table-column label="订单编号" prop="sapNo" width="100"/>
<el-table-column label="库存地点" prop="cangkuName" />
<el-table-column label="备注" prop="ckRemark" width="150"/>
<el-table-column label="身份码" prop="entityId" width="200"/>
</el-table> -->
<table border="1" style="width: 100%; border-collapse: collapse; font-size: 12px;">
<thead>
<tr>
<th>物料号</th>
<th>物料描述</th>
<th>数量</th>
<th>计量单位</th>
<th>订单编号</th>
<th>库存地点</th>
<th>备注</th>
<th>身份码</th>
</tr>
</thead>
<tbody>
<tr v-for="item in printList" :key="item.id">
<td>{{ item.wlNo }}</td>
<td>{{ item.wlMs }}</td>
<td>{{ item.realQty }}</td>
<td>{{ item.dw }}</td>
<td>{{ item.sapNo }}</td>
<td>{{ item.cangkuName }}</td>
<td>{{ item.ckRemark }}</td>
<td>{{ item.entityId }}</td>
</tr>
</tbody>
</table>
</div>
<div class="bottomBox">
<div class="oneLineBox">
<div class="everyBox">
<span>制单人</span>
<span>唐山公司</span>
</div>
<div class="everyBox">
<span>理货员</span>
</div>
<div class="everyBox">
<span>仓库主管审核</span>
</div>
<div class="everyBox">
<span>还料人</span>
</div>
</div>
<div class="twoLineBox">
<span>打印时间</span>
<span>{{ dateStr }}</span>
</div>
</div>
<printBill :billAllObj="printList" />
</div>
</div>
</template>
<script setup name="outbound">
import { listStock } from "@/api/wisdom/record";
import printBill from "@/components/printBill/bill.vue";
const { proxy } = getCurrentInstance();