新增单据第三次验收

ywj_dev
anthonywj 2 years ago
parent e9a4d08242
commit 01522980d0

@ -431,6 +431,15 @@ export function updateStatus(query) {
});
}
export function thirdUpdateStatus(query) {
return axios({
url: "/spms/inout/order/third/updateStatus",
method: "post",
data: query
});
}
export function filterOrderTrace(params) {
return axios({
url: "/udiwms/inout/order/filterOrderTrace",

@ -122,7 +122,7 @@
<script>
import A from "../../plugins/KeyScaner"
import {updateStatus, enterCodeWeb} from "@/api/inout/order";
import {updateStatus, enterCodeWeb, thirdUpdateStatus} from "@/api/inout/order";
import {getAcceptOrder, acceptClear, acceptAddCode} from "@/api/inout/acceptOrder";
@ -137,6 +137,11 @@ export default {
type: Object,
required: true,
},
reviewType: {
type: Object,
required: true,
}
},
data() {
return {
@ -255,7 +260,7 @@ export default {
})
.catch(() => {
});
}else {
} else {
this.$message.success("匹配成功!");
}
@ -285,19 +290,38 @@ export default {
let query = {
orderId: this.orderQuery.billNo,
};
updateStatus(query)
.then((response) => {
if (response.code == 20000) {
this.$message.success("验收成功!");
this.closeDialog();
this.$emit('childByValue', 1)
} else {
this.$message.error(response.message);
}
})
.catch(() => {
});
if (this.reviewType != null && this.reviewType == 2) {
thirdUpdateStatus(query)
.then((response) => {
if (response.code == 20000) {
this.$message.success("验收成功!");
this.closeDialog();
this.$emit('childByValue', 1)
} else {
this.$message.error(response.message);
}
})
.catch(() => {
});
} else {
updateStatus(query)
.then((response) => {
if (response.code == 20000) {
this.$message.success("验收成功!");
this.closeDialog();
this.$emit('childByValue', 1)
} else {
this.$message.error(response.message);
}
})
.catch(() => {
});
}
}).catch(() => {
// this.$message.info('退');
});

@ -127,6 +127,13 @@
</el-radio-group>
</el-form-item>
</el-row>
<el-form-item label="是否能被供应商使用" prop="spUse" class="query-form-item">
<el-radio-group v-model="formData.spUse">
<el-radio :label="true"></el-radio>
<el-radio :label="false"></el-radio>
</el-radio-group>
</el-form-item>
<el-row>
<el-form-item label="备注:" prop="remark" label-width="100px">
<el-input

Loading…
Cancel
Save