|
@@ -149,7 +149,7 @@
|
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="促销品与正品一致" prop="regularPromotionSameFlag">
|
|
|
<div class="fixWidthBox">
|
|
|
- <a-radio-group v-model="form.regularPromotionSameFlag" button-style="solid" size="small" :disabled="form.regularSameFlag==0">
|
|
|
+ <a-radio-group v-model="form.regularPromotionSameFlag" button-style="solid" size="small" :disabled="form.regularSameFlag==0" @change="handleSameFlag">
|
|
|
<a-radio-button value="1">
|
|
|
是
|
|
|
</a-radio-button>
|
|
@@ -312,8 +312,16 @@ export default {
|
|
|
this.openGuideModal = false
|
|
|
},
|
|
|
hanldeOk (arr) {
|
|
|
- const name = this.chooseVal == 'a' ? 'cill' : this.chooseVal == 'b' ? 'normalPrice' : 'offer'
|
|
|
- this.$refs[name + 'Product'].importRow(arr)
|
|
|
+ if (this.chooseVal == 'a') {
|
|
|
+ this.$refs['cillProduct'].importRow(arr)
|
|
|
+ } else if (this.chooseVal == 'b') {
|
|
|
+ this.$refs['normalPriceProduct'].importRow(arr)
|
|
|
+ } else {
|
|
|
+ const pos = this.fullGiftRuleList.findIndex(item => { return 'c' + item.id == this.chooseVal })
|
|
|
+ if (pos != -1) {
|
|
|
+ this.$refs['offerProduct' + pos][0].importRow(arr)
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
// 限制正价产品款数
|
|
|
onChange (e) {
|
|
@@ -333,6 +341,11 @@ export default {
|
|
|
this.chooseVal = 'a'
|
|
|
}
|
|
|
},
|
|
|
+ handleSameFlag (e) {
|
|
|
+ if (e.target.value != '0') {
|
|
|
+ this.chooseVal = this.form.gateFlag == '1' ? 'a' : 'b'
|
|
|
+ }
|
|
|
+ },
|
|
|
changeGateTypeFlag (val) {
|
|
|
this.form.gateType = val
|
|
|
this.form.gateValue = undefined
|