进仓单反馈异常

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

@ -61,3 +61,21 @@ export function getWarehouseInDetail(query) {
} }
}) })
} }
// 客户确认进仓
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> </el-row>
</div> </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 > <div >
<el-table <el-table
@ -137,9 +143,11 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </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 style="margin-top: 10px;padding: 10px 0px;border-top: 1px solid #e6ebf5;">
<!-- <div>进仓图片:</div> --> <!-- <div>进仓图片:</div> -->
<div v-if="item.picUrl" style="display:inline-flex"> <div v-if="item.picUrl" style="display:inline-flex">
@ -151,15 +159,28 @@
</template> </template>
</CardWithHeader> </CardWithHeader>
</div> </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> </div>
</template> </template>
<script> <script>
import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker'; import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker';
import CardWithHeader from '@/components/CardWithHeader/index.vue'; import CardWithHeader from '@/components/CardWithHeader/index.vue';
import { getWarehouseInDetail} from "@/api/oms/emisWarehouseIn"; import { getWarehouseInDetail,cusConfirmWsIn ,reportBatchWsInError} from "@/api/oms/emisWarehouseIn";
export default { export default {
name: "emisWarehouseInBatch", name: "emisWarehouseInBatch",
@ -211,6 +232,13 @@ export default {
daterangeCreateTime: [], daterangeCreateTime: [],
// 更新站点时间范围 // 更新站点时间范围
daterangeUpdateTime: [], daterangeUpdateTime: [],
//异常提交表单
feedForm: {
abnormalDesc: '',
},
feedDialogVisible:false,
selectedItem:null,
openViewForm:false,
// 查询参数 // 查询参数
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
@ -233,6 +261,11 @@ export default {
remark: null, remark: null,
delFlag: null, delFlag: null,
}, },
feedRules: {
abnormalDesc: [
{ required: true, message: '请输入反馈内容', trigger: 'blur' }
],
},
}; };
}, },
created() { created() {
@ -243,20 +276,8 @@ export default {
/** 查询进仓单批次列表 */ /** 查询进仓单批次列表 */
getList() { getList() {
this.loading = true; this.loading = true;
// listEmisWarehouseInBatch(this.addDateRange(this.queryParams, this.dateTimeRange)).then(response => { getWarehouseInDetail({inNo:this.inNo}).then(response => {
this.emisWarehouseInBatchList = response.data.stockInBatchList;
// 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;
}); });
}, },
@ -375,6 +396,36 @@ export default {
dateTimeChange(value){ dateTimeChange(value){
this.dateTimeRange=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> </script>

View File

@ -63,7 +63,7 @@
</el-date-picker> </el-date-picker>
</el-form-item> --> </el-form-item> -->
<el-form-item :label="$t('确认状态')" prop="confirmStatus"> <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="0" label="未确认" value="0"></el-option>
<el-option key="1" label="已确认" value="1"></el-option> <el-option key="1" label="已确认" value="1"></el-option>
<el-option key="2" label="部分确认" value="2"></el-option> <el-option key="2" label="部分确认" value="2"></el-option>
@ -254,6 +254,9 @@ export default {
status: null, status: null,
remark: null, remark: null,
delFlag: null, delFlag: null,
params:{
queryStatusType:null
}
}, },
}; };
}, },