Commit b061f136 authored by jingnan's avatar jingnan 👀

税率和含税单价为0的时候入库单价与含税金额也同时为0

parent 6e94d489
......@@ -276,9 +276,9 @@ export default {
isVirtualFlag = true
this.$set(this.form, 'taxRate', 0)
this.$set(this.form, 'taxUnitPrice', 0)
!this.form.stockUnitPrice && this.$set(this.form, 'stockUnitPrice', 0)
this.$set(this.form, 'stockUnitPrice', 0)
!this.form.stockPrice && this.$set(this.form, 'stockPrice', 0)
!this.form.taxPrice && this.$set(this.form, 'taxPrice', 0)
this.$set(this.form, 'taxPrice', 0)
} else {
isVirtualFlag = false
}
......@@ -295,9 +295,9 @@ export default {
isVirtualFlag = true
this.$set(this.form, 'taxRate', 0)
this.$set(this.form, 'taxUnitPrice', 0)
!this.form.stockUnitPrice && this.$set(this.form, 'stockUnitPrice', 0)
this.$set(this.form, 'stockUnitPrice', 0)
!this.form.stockPrice && this.$set(this.form, 'stockPrice', 0)
!this.form.taxPrice && this.$set(this.form, 'taxPrice', 0)
this.$set(this.form, 'taxPrice', 0)
} else {
isVirtualFlag = false
}
......
......@@ -279,9 +279,9 @@ export default {
isVirtualFlag = true
this.$set(this.form, 'taxRate', 0)
this.$set(this.form, 'taxUnitPrice', 0)
!this.form.stockUnitPrice && this.$set(this.form, 'stockUnitPrice', 0)
this.$set(this.form, 'stockUnitPrice', 0)
!this.form.stockPrice && this.$set(this.form, 'stockPrice', 0)
!this.form.taxPrice && this.$set(this.form, 'taxPrice', 0)
this.$set(this.form, 'taxPrice', 0)
} else {
isVirtualFlag = false
}
......@@ -298,9 +298,9 @@ export default {
isVirtualFlag = true
this.$set(this.form, 'taxRate', 0)
this.$set(this.form, 'taxUnitPrice', 0)
!this.form.stockUnitPrice && this.$set(this.form, 'stockUnitPrice', 0)
this.$set(this.form, 'stockUnitPrice', 0)
!this.form.stockPrice && this.$set(this.form, 'stockPrice', 0)
!this.form.taxPrice && this.$set(this.form, 'taxPrice', 0)
this.$set(this.form, 'taxPrice', 0)
} else {
isVirtualFlag = false
}
......
......@@ -277,9 +277,9 @@ export default {
isVirtualFlag = true
this.$set(this.form, 'taxRate', 0)
this.$set(this.form, 'taxUnitPrice', 0)
!this.form.stockUnitPrice && this.$set(this.form, 'stockUnitPrice', 0)
this.$set(this.form, 'stockUnitPrice', 0)
!this.form.stockPrice && this.$set(this.form, 'stockPrice', 0)
!this.form.taxPrice && this.$set(this.form, 'taxPrice', 0)
this.$set(this.form, 'taxPrice', 0)
} else {
isVirtualFlag = false
}
......@@ -296,9 +296,9 @@ export default {
isVirtualFlag = true
this.$set(this.form, 'taxRate', 0)
this.$set(this.form, 'taxUnitPrice', 0)
!this.form.stockUnitPrice && this.$set(this.form, 'stockUnitPrice', 0)
this.$set(this.form, 'stockUnitPrice', 0)
!this.form.stockPrice && this.$set(this.form, 'stockPrice', 0)
!this.form.taxPrice && this.$set(this.form, 'taxPrice', 0)
this.$set(this.form, 'taxPrice', 0)
} else {
isVirtualFlag = false
}
......
......@@ -64,7 +64,7 @@ export default {
return {
loading: false,
currBasicData: null,
form: { hasTaxExemption : '否' },
form: { hasTaxExemption: '否' },
formData: [{
title: '基本信息',
split: 2,
......
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