修改台账

dev
lilu 2 years ago
parent 9317d15a78
commit 88aaaba647

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

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

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

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

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

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

Loading…
Cancel
Save