进仓单反馈异常

This commit is contained in:
wuteng 2025-11-19 16:48:40 +08:00
parent 2c7a92dc30
commit 5edfbe11ea
3 changed files with 95 additions and 23 deletions

View File

@ -60,4 +60,22 @@ export function getWarehouseInDetail(query) {
inNo: query.inNo
}
})
}
}
// 客户确认进仓
export function cusConfirmWsIn(data) {
return request({
url: '/oms2c/emisWarehouseIn/cusConfirmWsIn',
method: 'post',
data: data
})
}
// 客户反馈进仓单异常
export function reportBatchWsInError(data) {
return request({
url: '/oms2c/emisWarehouseIn/reportBatchWsInError',
method: 'post',
data: data
})
}

View File

@ -48,7 +48,13 @@
</el-row>
</div>
<div style="margin-top:10px">
<el-row :gutter="0" style="display: flex;flex-wrap: wrap;margin-top: 8px;margin-bottom:8px;color:black;font-weight:bold">
<el-col :span="5">
异常反馈备注: {{item.abnormalDesc}}
</el-col>
</el-row>
</div>
<div >
<el-table
@ -137,9 +143,11 @@
</el-table-column>
</el-table>
</div>
<div style="text-align: right;margin-top: 10px;">
<el-button size="mini" @click="handleFeedDialogClick(item)">反馈异常</el-button>
<el-button type="primary" size="mini" @click="confirmJinCang(item.inNo)">进仓确认</el-button>
</div>
<div style="margin-top: 10px;padding: 10px 0px;border-top: 1px solid #e6ebf5;">
<!-- <div>进仓图片:</div> -->
<div v-if="item.picUrl" style="display:inline-flex">
@ -151,15 +159,28 @@
</template>
</CardWithHeader>
</div>
<!-- 反馈异常弹窗 -->
<el-dialog
:visible.sync="feedDialogVisible"
width="30%"
>
<el-form :model="feedForm" :rules="feedRules" ref="feedFormRef" label-width="85px">
<el-form-item label="反馈内容" prop="abnormalDesc">
<el-input v-model="feedForm.abnormalDesc" type="textarea" placeholder="请输入反馈内容" :autosize="{ minRows: 2, maxRows: 4 }"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitFeedForm">确 认</el-button>
<el-button @click="feedDialogVisible = false">取 消</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker';
import CardWithHeader from '@/components/CardWithHeader/index.vue';
import { getWarehouseInDetail} from "@/api/oms/emisWarehouseIn";
import { getWarehouseInDetail,cusConfirmWsIn ,reportBatchWsInError} from "@/api/oms/emisWarehouseIn";
export default {
name: "emisWarehouseInBatch",
@ -211,6 +232,13 @@ export default {
daterangeCreateTime: [],
// 更新站点时间范围
daterangeUpdateTime: [],
//异常提交表单
feedForm: {
abnormalDesc: '',
},
feedDialogVisible:false,
selectedItem:null,
openViewForm:false,
// 查询参数
queryParams: {
pageNum: 1,
@ -233,6 +261,11 @@ export default {
remark: null,
delFlag: null,
},
feedRules: {
abnormalDesc: [
{ required: true, message: '请输入反馈内容', trigger: 'blur' }
],
},
};
},
created() {
@ -243,20 +276,8 @@ export default {
/** 查询进仓单批次列表 */
getList() {
this.loading = true;
// listEmisWarehouseInBatch(this.addDateRange(this.queryParams, this.dateTimeRange)).then(response => {
// this.emisWarehouseInBatchList = response.rows;
// this.resetRefreshId="wsbatch-"+Math.random().toString(36).substring(3,10);
// this.total = response.total;
// this.loading = false;
// });
getWarehouseInDetail(this.inNo).then(response => {
// this.emisWarehouseInBatchList = response.data;
// this.resetRefreshId="wsbatch-"+Math.random().toString(36).substring(3,10);
// this.total = response.total;
// this.loading = false;
getWarehouseInDetail({inNo:this.inNo}).then(response => {
this.emisWarehouseInBatchList = response.data.stockInBatchList;
});
},
@ -375,6 +396,36 @@ export default {
dateTimeChange(value){
this.dateTimeRange=value;
},
async confirmJinCang(inNo) {
let confirmStatus = '2' // 部分入仓
if (!inNo) {
confirmStatus = '1' // 全部入仓
inNo = this.billInfo.inNo
}
let res = await cusConfirmWsIn({ inNo, confirmStatus, _loading: true }).then(() => {
this.$modal.msgSuccess("操作成功");
})
},
async handleFeedDialogClick(item) {
this.selectedItem=item;
this.feedForm.abnormalDesc = '';
this.feedDialogVisible = true;
},
submitFeedForm() {
this.$refs.feedFormRef.validate((valid) => {
if (valid) {
reportBatchWsInError({
inNo: this.inNo,
abnormalDesc: this.feedForm.abnormalDesc,
serialNo: this.selectedItem.serialNo
}).then(() => {
this.$modal.msgSuccess("反馈异常成功");
this.feedDialogVisible = false;
this.getList();
}).catch(() => {});
}
});
}
}
};
</script>

View File

@ -1,4 +1,4 @@
<template>
<template>
<XdPageContainer >
<SearchForm slot="pageHeader" :model="queryParams" ref="queryForm" size="mini" :maxShow="20" label-width="68px" v-show="showSearch" @search="handleQuery" @reset="resetQuery">
@ -63,7 +63,7 @@
</el-date-picker>
</el-form-item> -->
<el-form-item :label="$t('确认状态')" prop="confirmStatus">
<el-select clearable v-model="queryParams.confirmStatus" placeholder="">
<el-select clearable v-model="queryParams.params.queryStatusType" placeholder="">
<el-option key="0" label="未确认" value="0"></el-option>
<el-option key="1" label="已确认" value="1"></el-option>
<el-option key="2" label="部分确认" value="2"></el-option>
@ -254,6 +254,9 @@ export default {
status: null,
remark: null,
delFlag: null,
params:{
queryStatusType:null
}
},
};
},