Commit 11c353b7 authored by Damon's avatar Damon

fix: 完工提交配件

parent f00f63e0
...@@ -567,14 +567,14 @@ ...@@ -567,14 +567,14 @@
}, },
// 提交配件信息 // 提交配件信息
submitParts() { submitParts() {
if (this.form.orderAccessorys) { if (this.form.orderSpareParts) {
const lists = this.form.orderAccessorys.filter(v => v.quantity > 0) const orderSpareParts = JSON.parse(this.form.orderSpareParts)
const lists = orderSpareParts.filter(v => v.quantity > 0)
const params = { const params = {
workOrderId: this.orderId, workOrderId: this.orderId,
applyType: '10', applyType: '10',
parts: JSON.stringify(lists) parts: lists
} }
this.$u.api.createParts(params).then(res => { this.$u.api.createParts(params).then(res => {
if (res.code !== 200) { if (res.code !== 200) {
this.$refs.uToast.show({ 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