|
|
|
@ -36,6 +36,18 @@
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
|
|
|
|
v-hasPermi="['wms:outorder:add']">生成退货单</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="info"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-printer"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="printIdCard"
|
|
|
|
|
v-hasPermi="['mes:pro:workorder:edit']"
|
|
|
|
|
>打印标识卡
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
|
|
|
@ -237,6 +249,7 @@ import {
|
|
|
|
|
listOutorderZC,
|
|
|
|
|
listreturnderZC,
|
|
|
|
|
addreturnderZC,
|
|
|
|
|
getIdCardListTH,
|
|
|
|
|
listOutorderZU
|
|
|
|
|
} from '@/api/wms/outorderfc'
|
|
|
|
|
|
|
|
|
@ -655,6 +668,32 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
printIdCard() {
|
|
|
|
|
// 确保有选中的 ID
|
|
|
|
|
if (this.ids.length === 0) {
|
|
|
|
|
this.$modal.msgError("请先选择至少一条订单进行打印。");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 获取所有选中的 ID
|
|
|
|
|
const selectedIds = this.ids;
|
|
|
|
|
|
|
|
|
|
// 批量获取身份证信息
|
|
|
|
|
Promise.all(selectedIds.map(id => getIdCardListTH({ id })))
|
|
|
|
|
.then(responses => {
|
|
|
|
|
responses.forEach(response => {
|
|
|
|
|
// 检查响应的状态
|
|
|
|
|
if (response.code === 200 ) {
|
|
|
|
|
this.$modal.msgSuccess(response.msg);
|
|
|
|
|
}
|
|
|
|
|
// 你可以在这里处理其他的业务逻辑,比如打印身份证信息等
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.catch(error => {
|
|
|
|
|
|
|
|
|
|
this.$modal.msgError("打印失败: " + error.message);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
updatePaginatedMaterials() {
|
|
|
|
|
const start = (this.currentPage - 1) * this.pageSize;
|
|
|
|
|
this.paginatedMaterialList = this.materialList.slice(start, start + this.pageSize);
|
|
|
|
|