修改自动盘点匹配的接口,添加还料打印单据
This commit is contained in:
@@ -21,7 +21,7 @@ export function getScan(query) {
|
|||||||
// 开始匹配
|
// 开始匹配
|
||||||
export function getMatch(data) {
|
export function getMatch(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/AutoInventory/match',
|
url: '/AutoInventory/matchPure',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="print-container">
|
<div class="print-container">
|
||||||
|
|
||||||
<div class="header-section">
|
<div class="header-section">
|
||||||
<div class="main-title">{{ isRuKu ? '物资入库单' : billAllObj[0]?.isChuku == 1 ? '物资出库单' : '物资借料单' }}</div>
|
<div class="main-title">{{ isRuKu ? '物资入库单' : billAllObj[0]?.bizType == 1 ? '物资出库单' : billAllObj[0]?.bizType == 2 ? '物资借料单' : '物资还料单' }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 修改点:将原来的文本列表改为 表格形式 的基础信息 -->
|
<!-- 修改点:将原来的文本列表改为 表格形式 的基础信息 -->
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
<div class="sign-item">制单人:唐山公司</div>
|
<div class="sign-item">制单人:唐山公司</div>
|
||||||
<div class="sign-item">理货员:</div>
|
<div class="sign-item">理货员:</div>
|
||||||
<div class="sign-item">仓库主管审核:</div>
|
<div class="sign-item">仓库主管审核:</div>
|
||||||
<div class="sign-item" v-if="!isRuKu">领料人:</div>
|
<div class="sign-item" v-if="!isRuKu">{{ billAllObj[0]?.bizType == 3 ? '还料人:' : '领料人:' }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-sign-area" style="margin-top: 5px;">
|
<div class="footer-sign-area" style="margin-top: 5px;">
|
||||||
<div class="sign-item">打印时间:{{ parseTime(new Date().getTime(), '{y}-{m}-{d} {h}:{i}:{s}') }}</div>
|
<div class="sign-item">打印时间:{{ parseTime(new Date().getTime(), '{y}-{m}-{d} {h}:{i}:{s}') }}</div>
|
||||||
@@ -145,7 +145,7 @@ function isChukuFun(isChuku){
|
|||||||
}
|
}
|
||||||
|
|
||||||
const isRuKu = computed(() => {
|
const isRuKu = computed(() => {
|
||||||
return props.billAllObj[0]?.isChuku == 0 || props.billAllObj[0]?.isChuku == 5;
|
return props.billAllObj[0]?.bizType == 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
// 获取第一条数据作为头部基础信息来源
|
// 获取第一条数据作为头部基础信息来源
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="success"
|
type="success"
|
||||||
plain
|
plain
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
v-print="printViewInfo"
|
v-print="printViewInfo"
|
||||||
v-hasPermi="['wisdom:return:print']"
|
v-hasPermi="['wisdom:return:print']"
|
||||||
>打印单据</el-button>
|
>打印单据</el-button>
|
||||||
</el-col> -->
|
</el-col>
|
||||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
@@ -125,95 +125,14 @@
|
|||||||
/>
|
/>
|
||||||
<!-- 打印 -->
|
<!-- 打印 -->
|
||||||
<div id="printMe" class="printMeBox" v-show="showContent">
|
<div id="printMe" class="printMeBox" v-show="showContent">
|
||||||
<div class="titleBox">物资还料单</div>
|
<printBill :billAllObj="printList" />
|
||||||
<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>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="outbound">
|
<script setup name="outbound">
|
||||||
import { listStock } from "@/api/wisdom/record";
|
import { listStock } from "@/api/wisdom/record";
|
||||||
|
import printBill from "@/components/printBill/bill.vue";
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user