|
@@ -23,7 +23,14 @@
|
|
|
</div>
|
|
|
<div style="margin-top:36px;text-align:center;">
|
|
|
<a-button @click="cancel" style="margin-right: 15px" id="chooseCustom-btn-back">取消</a-button>
|
|
|
- <a-button type="primary" :loading="confirmLoading" @click="handleSubmit" id="chooseCustom-btn-submit">确定</a-button>
|
|
|
+ <a-button
|
|
|
+ type="primary"
|
|
|
+ style="margin-right: 10px"
|
|
|
+ class="button-info"
|
|
|
+ :loading="confirmLoading"
|
|
|
+ @click="handleSubmit(0)"
|
|
|
+ id="chooseCustom-btn-submit1">仅添加</a-button>
|
|
|
+ <a-button type="primary" :loading="confirmLoading" @click="handleSubmit(1)" id="chooseCustom-btn-submit2">添加并适配</a-button>
|
|
|
</div>
|
|
|
</a-spin>
|
|
|
</a-modal>
|
|
@@ -50,11 +57,12 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
// 保存
|
|
|
- handleSubmit () {
|
|
|
+ handleSubmit (flag) {
|
|
|
const _this = this
|
|
|
if (_this.newPromoSnList.length) {
|
|
|
_this.confirmLoading = true
|
|
|
salesDetailAddPromo({
|
|
|
+ 'addPromoFlag': flag,
|
|
|
'salesBillSn': _this.salesBillSn,
|
|
|
'promoSnList': _this.newPromoSnList
|
|
|
}).then(res => {
|