This commit is contained in:
pikachu1995@126.com
2023-10-26 14:34:49 +08:00
14 changed files with 75 additions and 38 deletions

View File

@@ -156,12 +156,12 @@
<div v-for="(item, $index) in skuInfo" :key="$index" class="sku-item-content">
<Card :bordered="true" class="ivu-card-body">
<Button slot="extra" type="primary" @click="handleCloseSkuItem($index, item)">
删除规格
删除规格
</Button>
<div>
<FormItem class="sku-item-content-val flex" label="规格名">
<FormItem class="sku-item-content-val flex" label="规格名">
<AutoComplete v-model="item.name" :data="skuData" :filter-method="filterMethod"
:maxlength="30" placeholder="请输入规格名称" style="width: 150px"
:maxlength="30" placeholder="请输入规格名称" style="width: 150px"
@on-focus="changeSkuItem(item.name)" @on-change="
editSkuItem(item.name, $index, item)
">
@@ -1568,6 +1568,13 @@ export default {
this.submitLoading = false;
return;
}
if (this.goodsUnitList && !this.goodsUnitList.find(i => i === this.baseInfoForm.goodsUnit)) {
submit.goodsUnit = ""
this.$Message.error("商品单位不存在");
this.submitLoading = false;
return;
}
let skuInfoNames = this.skuInfo.map((n) => n.name);
submit.skuList = [];
this.skuTableData.map((sku) => {

View File

@@ -4,18 +4,10 @@
<span @click="clickBreadcrumb(item, index)" :class="{ 'active': item.selected }" v-for="(item, index) in dateList"
:key="index"> {{ item.title }}</span>
<div class="date-picker">
<Select @on-change="changeSelect($event, selectedWay)" :value="month" placeholder="年月查询" clearable
<Select @on-change="changeSelect($event, selectedWay)" :value="month" placeholder="年月查询"
style="width:200px;margin-left:10px;">
<Option v-for="(item, i) in dates" :value="item.year + '-' + item.month" :key="i" clearable>
{{ item.year + '年' + item.month + '月' }}</Option>
</Select>
</div>
<div class="shop-list" v-if="!closeShop">
<Select clearable @on-change="changeshop(selectedWay)" v-model="storeId" placeholder="店铺查询"
style="width:200px;margin-left:10px;">
<Scroll :on-reach-bottom="handleReachBottom">
<Option v-for="(item, index) in shopsData" :value="item.id" :key="index">{{ item.storeName }}</Option>
</Scroll>
<Option v-for="(item, index) in dates" :value="item.year + '-' + item.month" :key="index">{{
item.year + '' + item.month + '' }}</Option>
</Select>
</div>
</div>

View File

@@ -277,6 +277,7 @@ export default {
delGoods(index) {
// 删除商品
this.goodsData.splice(index, 1);
this.selectCount = 0;
},
delAll() {
// 批量删除商品
@@ -295,6 +296,7 @@ export default {
this.goodsData = this.goodsData.filter((item) => {
return !ids.includes(item.skuId);
});
this.selectCount = 0;
},
});
},

View File

@@ -152,7 +152,7 @@
<div>
<Table stripe :columns="columns" :data="data"></Table>
</div>
<Page @on-change="(index)=>{refundParams.pageNumber = index}" @on-page-size-change="(size)=>{refundParams.pageSize= size}" class="mt_10" show-total show-elevator :total="total" />
<Page @on-change="pageNumberChange" @on-page-size-change="pageSizeChange" class="mt_10" show-total show-elevator :total="total" />
</div>
</Card>
@@ -377,12 +377,12 @@ export default {
value: "YESTERDAY",
},
{
title: "最近7天",
title: "过去7天",
selected: true,
value: "LAST_SEVEN",
},
{
title: "最近30天",
title: "过去30天",
selected: false,
value: "LAST_THIRTY",
},
@@ -459,6 +459,14 @@ export default {
},
},
methods: {
pageNumberChange(val){
this.refundParams.pageNumber = val
this.getOrderList();
},
pageSizeChange(val){
this.refundParams.pageSize = val
this.getOrderList();
},
// 订单图
initOrderChart() {
// 默认已经加载 legend-filter 交互

View File

@@ -74,12 +74,12 @@ export default {
value: "YESTERDAY",
},
{
title: "最近7天",
title: "过去7天",
selected: true,
value: "LAST_SEVEN",
},
{
title: "最近30天",
title: "过去30天",
selected: false,
value: "LAST_THIRTY",
},