Compare commits

...

2 Commits

Author SHA1 Message Date
58c5130162 Merge branch '0.8.X' of http://49.232.154.205:10100/DeXun/klp-oa into 0.8.X 2026-05-13 14:01:18 +08:00
05bd620811 refactor(wms/coil): 过滤不必要的请求参数后调用更新接口
在三个钢卷相关的页面中,提取请求载荷时排除status、exclusiveStatus、dataType字段,仅传递有效参数给更新接口
2026-05-13 14:01:13 +08:00
3 changed files with 12 additions and 3 deletions

View File

@@ -832,7 +832,10 @@ export default {
this.buttonLoading = true;
if (this.form.coilId) {
// 更新
updateMaterialCoilSimple(this.form).then(_ => {
const { status, exclusiveStatus, dataType, ...payload} = {
...this.form,
}
updateMaterialCoilSimple(payload).then(_ => {
this.$modal.msgSuccess("修正成功");
this.correctVisible = false;
this.getMaterialCoil();

View File

@@ -812,7 +812,10 @@ export default {
}
this.buttonLoading = true;
// 更新钢卷信息
updateMaterialCoilSimple(this.form).then(_ => {
const { status, exclusiveStatus, dataType, ...payload} = {
...this.form,
}
updateMaterialCoilSimple(payload).then(_ => {
this.$modal.msgSuccess("修正成功");
this.correctVisible = false;
this.getMaterialCoil();

View File

@@ -2061,7 +2061,10 @@ export default {
if (valid) {
this.buttonLoading = true;
if (this.form.coilId != null) {
updateMaterialCoilSimple(this.form).then(_ => {
const { status, exclusiveStatus, dataType, ...payload} = {
...this.form,
}
updateMaterialCoilSimple(payload).then(_ => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();