Commit 11c353b7 authored by Damon's avatar Damon

fix: 完工提交配件

parent f00f63e0
......@@ -567,14 +567,14 @@
},
// 提交配件信息
submitParts() {
if (this.form.orderAccessorys) {
const lists = this.form.orderAccessorys.filter(v => v.quantity > 0)
if (this.form.orderSpareParts) {
const orderSpareParts = JSON.parse(this.form.orderSpareParts)
const lists = orderSpareParts.filter(v => v.quantity > 0)
const params = {
workOrderId: this.orderId,
applyType: '10',
parts: JSON.stringify(lists)
parts: lists
}
this.$u.api.createParts(params).then(res => {
if (res.code !== 200) {
this.$refs.uToast.show({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment