Merge branch 'base-dev' of gitee.com:cabbage_qd/web-base-admin into bd-dev
This commit is contained in:
commit
affc6ff9bf
|
@ -129,8 +129,8 @@
|
|||
<div class="linecontent">复购累计</div>
|
||||
<div class="linecontent">首购结余</div>
|
||||
<div class="linecontent">复购结余</div>
|
||||
<div class="linecontent">新増套数</div>
|
||||
<div class="linecontent">累计套数</div>
|
||||
<!-- <div class="linecontent">新増套数</div>
|
||||
<div class="linecontent">累计套数</div> -->
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="thetitle">左区</div>
|
||||
|
@ -148,8 +148,8 @@
|
|||
<div class="linecontent">
|
||||
{{ treeData.leftRepeatPurchaseSurplus }}
|
||||
</div>
|
||||
<div class="linecontent">{{ treeData.aNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ treeData.aSumBox || 0 }}</div>
|
||||
<!-- <div class="linecontent">{{ treeData.aNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ treeData.aSumBox || 0 }}</div> -->
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="thetitle">右区</div>
|
||||
|
@ -169,8 +169,8 @@
|
|||
<div class="linecontent">
|
||||
{{ treeData.rightRepeatPurchaseSurplus }}
|
||||
</div>
|
||||
<div class="linecontent">{{ treeData.bNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ treeData.bSumBox || 0 }}</div>
|
||||
<!-- <div class="linecontent">{{ treeData.bNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ treeData.bSumBox || 0 }}</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -131,8 +131,8 @@
|
|||
<div class="linecontent">复购累计</div>
|
||||
<div class="linecontent">首购结余</div>
|
||||
<div class="linecontent">复购结余</div>
|
||||
<div class="linecontent">新増套数</div>
|
||||
<div class="linecontent">累计套数</div>
|
||||
<!-- <div class="linecontent">新増套数</div>
|
||||
<div class="linecontent">累计套数</div> -->
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="thetitle">左区</div>
|
||||
|
@ -144,8 +144,8 @@
|
|||
<div class="linecontent">{{ popdata.leftRepeatPurchaseTotal }}</div>
|
||||
<div class="linecontent">{{ popdata.leftFirstSurplus }}</div>
|
||||
<div class="linecontent">{{ popdata.leftRepeatPurchaseSurplus }}</div>
|
||||
<div class="linecontent">{{ popdata.aNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ popdata.aSumBox || 0 }}</div>
|
||||
<!-- <div class="linecontent">{{ popdata.aNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ popdata.aSumBox || 0 }}</div> -->
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="thetitle">右区</div>
|
||||
|
@ -159,8 +159,8 @@
|
|||
<div class="linecontent">
|
||||
{{ popdata.rightRepeatPurchaseSurplus }}
|
||||
</div>
|
||||
<div class="linecontent">{{ popdata.bNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ popdata.bSumBox || 0 }}</div>
|
||||
<!-- <div class="linecontent">{{ popdata.bNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ popdata.bSumBox || 0 }}</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -121,8 +121,8 @@
|
|||
<div class="linecontent">复购累计</div>
|
||||
<div class="linecontent">首购结余</div>
|
||||
<div class="linecontent">复购结余</div>
|
||||
<div class="linecontent">新増套数</div>
|
||||
<div class="linecontent">累计套数</div>
|
||||
<!-- <div class="linecontent">新増套数</div>
|
||||
<div class="linecontent">累计套数</div> -->
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="thetitle">左区</div>
|
||||
|
@ -136,8 +136,8 @@
|
|||
<div class="linecontent">
|
||||
{{ data.leftRepeatPurchaseSurplus }}
|
||||
</div>
|
||||
<div class="linecontent">{{ data.aNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ data.aSumBox || 0 }}</div>
|
||||
<!-- <div class="linecontent">{{ data.aNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ data.aSumBox || 0 }}</div> -->
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="thetitle">右区</div>
|
||||
|
@ -151,8 +151,8 @@
|
|||
<div class="linecontent">
|
||||
{{ data.rightRepeatPurchaseSurplus }}
|
||||
</div>
|
||||
<div class="linecontent">{{ data.bNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ data.bSumBox || 0 }}</div>
|
||||
<!-- <div class="linecontent">{{ data.bNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ data.bSumBox || 0 }}</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -119,8 +119,8 @@
|
|||
<div class="linecontent">复购累计</div>
|
||||
<div class="linecontent">首购结余</div>
|
||||
<div class="linecontent">复购结余</div>
|
||||
<div class="linecontent">新増套数</div>
|
||||
<div class="linecontent">累计套数</div>
|
||||
<!-- <div class="linecontent">新増套数</div>
|
||||
<div class="linecontent">累计套数</div> -->
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="thetitle">左区</div>
|
||||
|
@ -138,8 +138,8 @@
|
|||
<div class="linecontent">
|
||||
{{ treeData.leftRepeatPurchaseSurplus }}
|
||||
</div>
|
||||
<div class="linecontent">{{ treeData.aNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ treeData.aSumBox || 0 }}</div>
|
||||
<!-- <div class="linecontent">{{ treeData.aNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ treeData.aSumBox || 0 }}</div> -->
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="thetitle">右区</div>
|
||||
|
@ -159,8 +159,8 @@
|
|||
<div class="linecontent">
|
||||
{{ treeData.rightRepeatPurchaseSurplus }}
|
||||
</div>
|
||||
<div class="linecontent">{{ treeData.bNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ treeData.bSumBox || 0 }}</div>
|
||||
<!-- <div class="linecontent">{{ treeData.bNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ treeData.bSumBox || 0 }}</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -135,8 +135,8 @@
|
|||
<div class="linecontent">复购累计</div>
|
||||
<div class="linecontent">首购结余</div>
|
||||
<div class="linecontent">复购结余</div>
|
||||
<div class="linecontent">新増套数</div>
|
||||
<div class="linecontent">累计套数</div>
|
||||
<!-- <div class="linecontent">新増套数</div>
|
||||
<div class="linecontent">累计套数</div> -->
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="thetitle">左区</div>
|
||||
|
@ -154,8 +154,8 @@
|
|||
<div class="linecontent">
|
||||
{{ treeData.leftRepeatPurchaseSurplus || 0 }}
|
||||
</div>
|
||||
<div class="linecontent">{{ treeData.aNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ treeData.aSumBox || 0 }}</div>
|
||||
<!-- <div class="linecontent">{{ treeData.aNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ treeData.aSumBox || 0 }}</div> -->
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="thetitle">右区</div>
|
||||
|
@ -175,8 +175,8 @@
|
|||
<div class="linecontent">
|
||||
{{ treeData.rightRepeatPurchaseSurplus }}
|
||||
</div>
|
||||
<div class="linecontent">{{ treeData.bNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ treeData.bSumBox || 0 }}</div>
|
||||
<!-- <div class="linecontent">{{ treeData.bNewBox || 0 }}</div>
|
||||
<div class="linecontent">{{ treeData.bSumBox || 0 }}</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -710,26 +710,19 @@
|
|||
label="服务协议"
|
||||
width="180"
|
||||
/>
|
||||
|
||||
<el-table-column
|
||||
v-if="menuList[16].checked == true && allTxt.superStudioVal"
|
||||
key="purchaseStatus"
|
||||
align="center"
|
||||
prop="superStudioVal"
|
||||
:label="'超级工作室'"
|
||||
prop="purchaseStatus"
|
||||
label="复购免考"
|
||||
width="180"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span
|
||||
v-if="scope.row.superStudio == 0"
|
||||
style="color: #009b58"
|
||||
>已认证</span>
|
||||
<span
|
||||
v-if="scope.row.superStudio == 1"
|
||||
style="color: #c8161d"
|
||||
>未认证</span>
|
||||
<span>
|
||||
{{ scope.row.purchaseStatus === 0 ? '是' : '否' }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
v-if="menuList[17].checked == true && allTxt.accountStatusVal"
|
||||
align="center"
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
type="primary"
|
||||
size="mini"
|
||||
@click="addNewGoods"
|
||||
>{{'添加'}}
|
||||
>{{ '添加' }}
|
||||
</el-button>
|
||||
</th>
|
||||
<th
|
||||
|
@ -64,9 +64,9 @@
|
|||
<tr style="border-top:0">
|
||||
<td colspan="2">{{ '会员编号' }}</td>
|
||||
<td colspan="2">{{ '会员名称' }}</td>
|
||||
<td colspan="4">{{'产品名称'}}</td>
|
||||
<td colspan="4">{{'产品规格'}}</td>
|
||||
<td colspan="2">{{'提货基数'}}</td>
|
||||
<td colspan="4">{{ '产品名称' }}</td>
|
||||
<td colspan="4">{{ '产品规格' }}</td>
|
||||
<td colspan="2">{{ '提货基数' }}</td>
|
||||
<td colspan="2">可提数量</td>
|
||||
<td colspan="2">增加数量</td>
|
||||
<td colspan="2">{{ '截止日期' }}</td>
|
||||
|
@ -120,7 +120,7 @@
|
|||
v-show="ctem.waresGiftConfigList.length==0"
|
||||
class="tableAddPro"
|
||||
>
|
||||
{{'添加产品'}}
|
||||
{{ '添加产品' }}
|
||||
<img
|
||||
src="@/assets/images/iconadd.png"
|
||||
alt=""
|
||||
|
@ -129,21 +129,21 @@
|
|||
</div>
|
||||
</td>
|
||||
<td colspan="2" style="border-right: 1px solid #fff">
|
||||
<el-input :disabled="deled" v-model="ctem.baseQuantity" />
|
||||
<el-input v-model="ctem.baseQuantity" :disabled="deled" />
|
||||
</td>
|
||||
<!-- 可提数量 -->
|
||||
<td colspan="2" style="border-right: 1px solid #fff">
|
||||
<el-input disabled v-model="ctem.usableQuantity" />
|
||||
<el-input v-model="ctem.usableQuantity" disabled />
|
||||
</td>
|
||||
<!-- 增加数量 -->
|
||||
<td colspan="2" style="border-right: 1px solid #fff">
|
||||
<el-input :disabled="deled" v-model="ctem.quantity" />
|
||||
<el-input v-model="ctem.quantity" :disabled="deled" />
|
||||
</td>
|
||||
<td colspan="2" style="border-right: 1px solid #fff">
|
||||
<!-- <el-input v-model="ctem.orderAchieve"></el-input>-->
|
||||
<el-date-picker
|
||||
:disabled="deled"
|
||||
v-model="ctem.receiveTime"
|
||||
:disabled="deled"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
format="yyyy-MM-dd"
|
||||
|
@ -233,18 +233,22 @@
|
|||
>
|
||||
<div class="cpHeight">
|
||||
<el-row>
|
||||
<el-col :span="22"> <el-input v-model="select.queryInfo"
|
||||
clearable
|
||||
:placeholder="'请输入'"
|
||||
@keyup.enter.native="getDataList"
|
||||
prefix-icon="el-icon-search"></el-input>
|
||||
</el-col>
|
||||
<el-col :span="2">
|
||||
<el-button type="primary"
|
||||
size="small"
|
||||
@click="getDataList"> {{ '搜索' }}</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-col :span="22"> <el-input
|
||||
v-model="select.queryInfo"
|
||||
clearable
|
||||
:placeholder="'请输入'"
|
||||
prefix-icon="el-icon-search"
|
||||
@keyup.enter.native="getDataList"
|
||||
/>
|
||||
</el-col>
|
||||
<el-col :span="2">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="getDataList"
|
||||
> {{ '搜索' }}</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<div style="height:10px" />
|
||||
<el-table
|
||||
ref="multipleTable"
|
||||
|
@ -264,10 +268,11 @@
|
|||
prop="productName"
|
||||
:label="'产品名称'"
|
||||
/>
|
||||
<el-table-column align="center"
|
||||
prop="productCode"
|
||||
:label="'产品编号'">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
prop="productCode"
|
||||
:label="'产品编号'"
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
prop="productName"
|
||||
|
@ -278,7 +283,7 @@
|
|||
v-show="scope.row.selSkuNameList==''||scope.row.selSkuNameList==undefined"
|
||||
class="blueCor"
|
||||
@click="selSku(scope.row.pkId,scope.$index)"
|
||||
>{{'选择规格'}}</div>
|
||||
>{{ '选择规格' }}</div>
|
||||
<div
|
||||
v-show="scope.row.selSkuNameList!=''&&scope.row.selSkuNameList!=undefined"
|
||||
class="blueCor"
|
||||
|
@ -313,11 +318,11 @@
|
|||
slot="footer"
|
||||
class="dialog-footer"
|
||||
>
|
||||
<el-button @click="handleClose">{{'取消'}}</el-button>
|
||||
<el-button @click="handleClose">{{ '取消' }}</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="sureProduct"
|
||||
>{{'确认'}}</el-button>
|
||||
>{{ '确认' }}</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
<el-dialog
|
||||
|
@ -350,11 +355,11 @@
|
|||
slot="footer"
|
||||
class="dialog-footer"
|
||||
>
|
||||
<el-button @click="handleCloseGg">{{'取消'}}</el-button>
|
||||
<el-button @click="handleCloseGg">{{ '取消' }}</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="sureSku"
|
||||
>{{'确认'}}</el-button>
|
||||
>{{ '确认' }}</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</div>
|
||||
|
@ -366,14 +371,14 @@
|
|||
@click="cancelCz"
|
||||
> {{ '取消' }}</el-button>
|
||||
<el-button
|
||||
v-if="!deled"
|
||||
v-if="!deled"
|
||||
type="primary"
|
||||
class="thebtn"
|
||||
style="margin-left:20px"
|
||||
@click="saveDate"
|
||||
> {{ '确认' }}</el-button>
|
||||
<el-button
|
||||
v-else
|
||||
v-else
|
||||
type="primary"
|
||||
class="thebtn"
|
||||
style="margin-left:20px"
|
||||
|
@ -424,7 +429,7 @@ export default {
|
|||
plcz: {},
|
||||
select: {}, // 产品筛选
|
||||
dialogList: [], // 产品数组
|
||||
selectData: [], // 选中
|
||||
selectData: undefined, // 选中
|
||||
skuList: [], // 规格数组
|
||||
selSkuList: '',
|
||||
selSkuNameList: '',
|
||||
|
@ -464,13 +469,13 @@ export default {
|
|||
this.disableds = true
|
||||
this.addFlag = false
|
||||
this.isArea = 1
|
||||
}else if (type == 3) {
|
||||
} else if (type == 3) {
|
||||
this.getThDetails(pkId)
|
||||
this.disableds = true
|
||||
this.deled = true
|
||||
this.addFlag = false
|
||||
this.isArea = 1
|
||||
} else {
|
||||
} else {
|
||||
this.getData()
|
||||
}
|
||||
},
|
||||
|
@ -480,46 +485,45 @@ export default {
|
|||
const that = this
|
||||
pickDetail({ pkId: pkId }).then((res) => {
|
||||
// console.error(res)
|
||||
if(res.data.detailList){
|
||||
if (res.data.detailList) {
|
||||
that.allData = [{ 'consumeRuleConfigList': [{
|
||||
memberName: res.data.memberName,
|
||||
memberCode: res.data.memberCode,
|
||||
pkId: res.data.pkId,
|
||||
baseQuantity: res.data.baseQuantity,
|
||||
receiveTime: res.data.receiveTime,
|
||||
usableQuantity: res.data.usableQuantity,
|
||||
quantity: 0,
|
||||
isFreeMail: res.data.isFreeMail,
|
||||
waresGiftConfigList: [
|
||||
{
|
||||
pkProduct: res.data.detailList[0].pkProduct,
|
||||
productName: res.data.detailList[0].productName,
|
||||
specsName: res.data.detailList[0].specsName,
|
||||
specsNameId: res.data.detailList[0].specsNameId,
|
||||
quantity: res.data.detailList[0].quantity
|
||||
}
|
||||
] }], 'orderType': 1 }]
|
||||
}else{
|
||||
memberName: res.data.memberName,
|
||||
memberCode: res.data.memberCode,
|
||||
pkId: res.data.pkId,
|
||||
baseQuantity: res.data.baseQuantity,
|
||||
receiveTime: res.data.receiveTime,
|
||||
usableQuantity: res.data.usableQuantity,
|
||||
quantity: 0,
|
||||
isFreeMail: res.data.isFreeMail,
|
||||
waresGiftConfigList: [
|
||||
{
|
||||
pkProduct: res.data.detailList[0].pkProduct,
|
||||
productName: res.data.detailList[0].productName,
|
||||
specsName: res.data.detailList[0].specsName,
|
||||
specsNameId: res.data.detailList[0].specsNameId,
|
||||
quantity: res.data.detailList[0].quantity
|
||||
}
|
||||
] }], 'orderType': 1 }]
|
||||
} else {
|
||||
that.allData = [{ 'consumeRuleConfigList': [{
|
||||
memberName: res.data.memberName,
|
||||
memberCode: res.data.memberCode,
|
||||
pkId: res.data.pkId,
|
||||
baseQuantity: res.data.baseQuantity,
|
||||
receiveTime: res.data.receiveTime,
|
||||
usableQuantity: res.data.usableQuantity,
|
||||
quantity: 0,
|
||||
isFreeMail: res.data.isFreeMail,
|
||||
waresGiftConfigList: [
|
||||
{
|
||||
pkProduct:'',
|
||||
productName: '',
|
||||
specsName: '',
|
||||
specsNameId: '',
|
||||
quantity: 0
|
||||
}
|
||||
] }], 'orderType': 1 }]
|
||||
memberName: res.data.memberName,
|
||||
memberCode: res.data.memberCode,
|
||||
pkId: res.data.pkId,
|
||||
baseQuantity: res.data.baseQuantity,
|
||||
receiveTime: res.data.receiveTime,
|
||||
usableQuantity: res.data.usableQuantity,
|
||||
quantity: 0,
|
||||
isFreeMail: res.data.isFreeMail,
|
||||
waresGiftConfigList: [
|
||||
{
|
||||
pkProduct: '',
|
||||
productName: '',
|
||||
specsName: '',
|
||||
specsNameId: '',
|
||||
quantity: 0
|
||||
}
|
||||
] }], 'orderType': 1 }]
|
||||
}
|
||||
|
||||
})
|
||||
this.$forceUpdate()
|
||||
},
|
||||
|
@ -558,7 +562,7 @@ export default {
|
|||
'receiveTime': res.receiveTime,
|
||||
'specsName': res.waresGiftConfigList[0].specsName, 'specsNameId': res.waresGiftConfigList[0].specsNameId,
|
||||
'baseQuantity': res.baseQuantity, 'quantity': res.quantity, 'isFreeMail': res.isFreeMail, 'pkPostage': res.pkPostage,
|
||||
"pkId":res.pkId?res.pkId:''
|
||||
'pkId': res.pkId ? res.pkId : ''
|
||||
}
|
||||
)
|
||||
})
|
||||
|
@ -590,7 +594,7 @@ export default {
|
|||
}
|
||||
if (res.quantity === '' || res.quantity == undefined) {
|
||||
this.flags = 3
|
||||
|
||||
|
||||
return false
|
||||
} else {
|
||||
this.flags = 2
|
||||
|
@ -619,20 +623,20 @@ export default {
|
|||
})
|
||||
} else if (this.flags == 3) {
|
||||
this.$message({
|
||||
message: '请输入增加数量',
|
||||
type: 'warning'
|
||||
})
|
||||
}else {
|
||||
message: '请输入增加数量',
|
||||
type: 'warning'
|
||||
})
|
||||
} else {
|
||||
this.$router.push({
|
||||
path: 'rechargeQc',
|
||||
query: {
|
||||
data: JSON.stringify(dataList),
|
||||
approvalBusiness: 700,
|
||||
approvalBusiness: 700
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
saveDate1(){
|
||||
saveDate1() {
|
||||
const dataList = []
|
||||
this.allData[0].consumeRuleConfigList.forEach((res) => {
|
||||
dataList.push(
|
||||
|
@ -641,18 +645,18 @@ export default {
|
|||
'receiveTime': res.receiveTime,
|
||||
'specsName': res.waresGiftConfigList[0].specsName, 'specsNameId': res.waresGiftConfigList[0].specsNameId,
|
||||
'baseQuantity': res.baseQuantity, 'quantity': res.quantity, 'isFreeMail': res.isFreeMail, 'pkPostage': res.pkPostage,
|
||||
"pkId":res.pkId?res.pkId:''
|
||||
'pkId': res.pkId ? res.pkId : ''
|
||||
}
|
||||
)
|
||||
})
|
||||
this.$router.push({
|
||||
path: 'rechargeQc',
|
||||
query: {
|
||||
data: JSON.stringify(dataList),
|
||||
approvalBusiness: 701,
|
||||
type:this.deled
|
||||
}
|
||||
})
|
||||
path: 'rechargeQc',
|
||||
query: {
|
||||
data: JSON.stringify(dataList),
|
||||
approvalBusiness: 701,
|
||||
type: this.deled
|
||||
}
|
||||
})
|
||||
},
|
||||
getPage(allData) {
|
||||
this.allData = allData
|
||||
|
@ -690,13 +694,19 @@ export default {
|
|||
this.ggVisible = false
|
||||
},
|
||||
sureProduct() {
|
||||
if (this.selectData.length == 0) {
|
||||
if (!this.selectData) {
|
||||
this.$message({
|
||||
message: '请选择产品',
|
||||
type: 'warning'
|
||||
})
|
||||
return false
|
||||
} else {
|
||||
if (!this.selectData.selSkuNameList || this.selectData.selSkuNameList.length === 0) {
|
||||
this.$message({
|
||||
message: '请选择产品规格',
|
||||
type: 'warning'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.allData.forEach((item) => {
|
||||
if (this.isArea == item.orderType) {
|
||||
item.consumeRuleConfigList[this.showCndex].waresGiftConfigList[
|
||||
|
@ -758,7 +768,7 @@ export default {
|
|||
this.isArea = val
|
||||
},
|
||||
handleClose() {
|
||||
this.selectData = []
|
||||
this.selectData = undefined
|
||||
this.dialogVisible = false
|
||||
},
|
||||
handleCloseGg() {
|
||||
|
@ -838,7 +848,7 @@ export default {
|
|||
},
|
||||
getDataList() {
|
||||
api
|
||||
.getProductAll(Object.assign({isPutOn:0}, this.queryParams, this.select,{isExistSpecs:1}))
|
||||
.getProductAll(Object.assign({ isPutOn: 0 }, this.queryParams, this.select, { isExistSpecs: 1 }))
|
||||
.then((res) => {
|
||||
res.rows.forEach((item) => {
|
||||
item.quantity = 1
|
||||
|
@ -872,18 +882,23 @@ export default {
|
|||
},
|
||||
selected(selection, row) {
|
||||
// 清除 所有勾选项
|
||||
if (selection.length === 0) {
|
||||
this.selectData = undefined
|
||||
} else {
|
||||
this.selectData = row
|
||||
}
|
||||
|
||||
this.$refs.multipleTable.clearSelection()
|
||||
// 当表格数据都没有被勾选的时候 就返回
|
||||
// 主要用于将当前勾选的表格状态清除
|
||||
if (selection.length == 0) return
|
||||
this.$refs.multipleTable.toggleRowSelection(row, true)
|
||||
this.selectData = row
|
||||
},
|
||||
// 表格的选中 可以获得当前选中的数据
|
||||
selectionChange(val) {
|
||||
// 将选中的数据存储起来
|
||||
this.selectData = val
|
||||
// // 当表格数据都没有被勾选的时候 就返回
|
||||
// // 主要用于将当前勾选的表格状态清除
|
||||
// this.$nextTick(() => {
|
||||
// if (selection.length == 0) return
|
||||
// this.$refs.multipleTable.toggleRowSelection(row, true)
|
||||
// this.selectData = row
|
||||
// })
|
||||
},
|
||||
|
||||
tableRowClassName({ row, rowIndex }) {
|
||||
if (rowIndex % 2 == 1) {
|
||||
return 'warning-row'
|
||||
|
|
Loading…
Reference in New Issue