mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-19 01:15:53 +08:00
Merge branch 'master' of https://gitee.com/beijing_hongye_huicheng/lilishop-ui
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
@@ -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 交互
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user