修改台账

dev
lilu 2 years ago
parent 9317d15a78
commit 88aaaba647

@ -200,7 +200,12 @@ export default {
DeleteParaContractNoInfo(data.id).then(res => {
if (res.success) {
this.$message.success('删除成功')
this.init()
const { form: { validateFields } } = this
validateFields((err, values) => {
if (!err) {
this.init(values)
}
})
} else {
this.$message.error(res.message)
}
@ -234,7 +239,12 @@ export default {
DeleteParaContractNoInfo(pkIdArr).then(res => {
if (res.success) {
this.$message.success('删除成功')
this.init()
const { form: { validateFields } } = this
validateFields((err, values) => {
if (!err) {
this.init(values)
}
})
} else {
this.$message.error(res.message)
}

@ -4,6 +4,7 @@
:width="900"
:visible="visible"
:confirmLoading="confirmLoading"
:maskClosable="false"
cancelText="关闭"
okText="保存"
@ok="handleSubmit"

@ -199,7 +199,12 @@ export default {
DeleteParaGoodsCategoryInfo(data.id).then((res) => {
if (res.success) {
this.$message.success('删除成功')
this.init()
const { form: { validateFields } } = this
validateFields((err, values) => {
if (!err) {
this.init(values)
}
})
} else {
this.$message.error(res.message)
}
@ -235,7 +240,12 @@ export default {
}).then((res) => {
if (res.success) {
this.$message.success('删除成功')
this.init()
const { form: { validateFields } } = this
validateFields((err, values) => {
if (!err) {
this.init(values)
}
})
} else {
this.$message.error(res.message)
}

@ -4,6 +4,7 @@
:width="900"
:visible="visible"
:confirmLoading="confirmLoading"
:maskClosable="false"
cancelText="关闭"
okText="保存"
@ok="handleSubmit"

@ -217,7 +217,12 @@ export default {
DeleteParaGoodsInfo([data.id]).then((res) => {
if (res.success) {
this.$message.success('删除成功')
this.init()
const { form: { validateFields } } = this
validateFields((err, values) => {
if (!err) {
this.init(values)
}
})
} else {
this.$message.error(res.message)
}
@ -253,7 +258,12 @@ export default {
}).then((res) => {
if (res.success) {
this.$message.success('删除成功')
this.init()
const { form: { validateFields } } = this
validateFields((err, values) => {
if (!err) {
this.init(values)
}
})
} else {
this.$message.error(res.message)
}

@ -4,6 +4,7 @@
:width="900"
:visible="visible"
:confirmLoading="confirmLoading"
:maskClosable="false"
cancelText="关闭"
okText="保存"
@ok="handleSubmit"
@ -137,9 +138,7 @@ import {
if (this.goodsCategory) {
const arr = []
this.goodsCategory.map((item, index) => {
if (!arr.includes(item.goodsCategory)) {
arr.push(item.goodsCategory)
}
})
return arr
} else {
@ -190,6 +189,7 @@ import {
},
goodsCategorySelect(value) {
const index = this.goodsCategoryArr.indexOf(value)
debugger
this.form.setFieldsValue({
goodsCategory: this.goodsCategory[index].goodsCategory || '',
goodsCategoryName: this.goodsCategory[index].goodsCategoryName || ''

Loading…
Cancel
Save