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

View File

@ -1,7 +1,6 @@
#代码目录 #代码目录
code_path=$PWD code_path=$PWD
git checkout master
git pull git pull
cd ${code_path}/manager cd ${code_path}/manager

View File

@ -9,7 +9,7 @@
class="width_300" class="width_300"
search search
enter-button enter-button
v-model="params.sn" v-model="params.keywords"
@on-search="getList" @on-search="getList"
placeholder="请输入订单号搜索" placeholder="请输入订单号搜索"
/> />

View File

@ -204,7 +204,6 @@ export default {
.breadcrumb { .breadcrumb {
display: flex; display: flex;
align-items: center; align-items: center;
>span { >span {
margin-right: 15px; margin-right: 15px;
cursor: pointer; cursor: pointer;

View File

@ -114,14 +114,14 @@
<InputNumber v-model="formAdd.sortOrder"></InputNumber> <InputNumber v-model="formAdd.sortOrder"></InputNumber>
</FormItem> </FormItem>
<FormItem label="佣金比例(%)" prop="commissionRate" style="width: 345px"> <FormItem label="佣金比例(%)" prop="commissionRate" style="width: 345px">
<InputNumber v-model="formAdd.commissionRate"></InputNumber> <InputNumber :max="100" :min="0" v-model="formAdd.commissionRate"></InputNumber>
</FormItem> </FormItem>
<FormItem label="是否启用" prop="deleteFlag"> <FormItem label="是否启用" prop="deleteFlag">
<i-switch <i-switch
size="large" size="large"
v-model="formAdd.deleteFlag" v-model="formAdd.deleteFlag"
:true-value="0" :true-value="false"
:false-value="1" :false-value="true"
> >
<span slot="open">启用</span> <span slot="open">启用</span>
<span slot="close">禁用</span> <span slot="close">禁用</span>

View File

@ -66,6 +66,13 @@
> >
</div> </div>
</div> </div>
<div class="decorate-view">
<div class="decorate-view-title">当前页面状态</div>
<div>
<Tag :type="result.pageShow === 'OPEN' ? 'green' : 'red'">{{result.pageShow === 'OPEN' ? '开启' : '关闭'}}</Tag>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -87,6 +94,7 @@ export default {
}, },
data() { data() {
return { return {
result:"",
picModelFlag: false, // picModelFlag: false, //
type: "full", // type: "full", //
@ -131,6 +139,7 @@ export default {
res.result.pageData res.result.pageData
? this.$set(this, "advertising", [JSON.parse(res.result.pageData)]) ? this.$set(this, "advertising", [JSON.parse(res.result.pageData)])
: ""; : "";
this.result = res.result
}); });
}, },
// //

View File

@ -66,6 +66,13 @@
> >
</div> </div>
</div> </div>
<div class="decorate-view">
<div class="decorate-view-title">当前页面状态</div>
<div>
<Tag :type="result.pageShow === 'OPEN' ? 'green' : 'red'">{{result.pageShow === 'OPEN' ? '开启' : '关闭'}}</Tag>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -90,6 +97,7 @@ export default {
}, },
data() { data() {
return { return {
result:"",
picModelFlag: false, // picModelFlag: false, //
type: "full", // type: "full", //
//广 //广
@ -140,6 +148,7 @@ export default {
res.result.pageData res.result.pageData
? this.$set(this, "advertising", [JSON.parse(res.result.pageData)]) ? this.$set(this, "advertising", [JSON.parse(res.result.pageData)])
: ""; : "";
this.result = res.result
}); });
}, },
// //

View File

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

View File

@ -172,18 +172,20 @@
<div> <div>
<Table stripe :columns="columns" :data="data"></Table> <Table stripe :columns="columns" :data="data"></Table>
</div> </div>
<!-- (index) => {
refundParams.pageNumber = index;
} -->
<!-- (size) => {
(refundParams.pageSize = size), (refundParams.pageNumber = 1);
} -->
<Page <Page
v-if="showRecords" v-if="showRecords"
size="small" size="small"
@on-change=" @on-change="
(index) => { pageNumberChange
refundParams.pageNumber = index;
}
" "
@on-page-size-change=" @on-page-size-change="
(size) => { pageSizeChange
(refundParams.pageSize = size), (refundParams.pageNumber = 1);
}
" "
class="mt_10" class="mt_10"
show-total show-total
@ -452,12 +454,12 @@ export default {
value: "YESTERDAY", value: "YESTERDAY",
}, },
{ {
title: "最近7天", title: "过去7天",
selected: true, selected: true,
value: "LAST_SEVEN", value: "LAST_SEVEN",
}, },
{ {
title: "最近30天", title: "过去30天",
selected: false, selected: false,
value: "LAST_THIRTY", value: "LAST_THIRTY",
}, },
@ -523,6 +525,14 @@ export default {
}, },
}, },
methods: { methods: {
pageNumberChange(val){
this.refundParams.pageNumber = val
this.getOrderList();
},
pageSizeChange(val){
this.refundParams.pageSize = val
this.getOrderList();
},
// //
initOrderChart() { initOrderChart() {
// legend-filter // legend-filter
@ -563,11 +573,13 @@ export default {
clickBreadcrumb(item, index) { clickBreadcrumb(item, index) {
let callback = JSON.parse(JSON.stringify(item)); let callback = JSON.parse(JSON.stringify(item));
console.log("callback",callback)
this.orderParams = callback; this.orderParams = callback;
this.overViewParams = callback; this.overViewParams = callback;
this.refundParams = callback; this.refundParams = callback;
this.refundParams.pageNumber = 1
this.refundParams.pageSize = 10
}, },
// //

View File

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

View File

@ -156,12 +156,12 @@
<div v-for="(item, $index) in skuInfo" :key="$index" class="sku-item-content"> <div v-for="(item, $index) in skuInfo" :key="$index" class="sku-item-content">
<Card :bordered="true" class="ivu-card-body"> <Card :bordered="true" class="ivu-card-body">
<Button slot="extra" type="primary" @click="handleCloseSkuItem($index, item)"> <Button slot="extra" type="primary" @click="handleCloseSkuItem($index, item)">
删除规格 删除规格
</Button> </Button>
<div> <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" <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=" @on-focus="changeSkuItem(item.name)" @on-change="
editSkuItem(item.name, $index, item) editSkuItem(item.name, $index, item)
"> ">
@ -1568,6 +1568,13 @@ export default {
this.submitLoading = false; this.submitLoading = false;
return; 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); let skuInfoNames = this.skuInfo.map((n) => n.name);
submit.skuList = []; submit.skuList = [];
this.skuTableData.map((sku) => { 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" <span @click="clickBreadcrumb(item, index)" :class="{ 'active': item.selected }" v-for="(item, index) in dateList"
:key="index"> {{ item.title }}</span> :key="index"> {{ item.title }}</span>
<div class="date-picker"> <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;"> style="width:200px;margin-left:10px;">
<Option v-for="(item, i) in dates" :value="item.year + '-' + item.month" :key="i" clearable> <Option v-for="(item, index) in dates" :value="item.year + '-' + item.month" :key="index">{{
{{ item.year + '年' + item.month + '月' }}</Option> 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>
</Select> </Select>
</div> </div>
</div> </div>

View File

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

View File

@ -152,7 +152,7 @@
<div> <div>
<Table stripe :columns="columns" :data="data"></Table> <Table stripe :columns="columns" :data="data"></Table>
</div> </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> </div>
</Card> </Card>
@ -377,12 +377,12 @@ export default {
value: "YESTERDAY", value: "YESTERDAY",
}, },
{ {
title: "最近7天", title: "过去7天",
selected: true, selected: true,
value: "LAST_SEVEN", value: "LAST_SEVEN",
}, },
{ {
title: "最近30天", title: "过去30天",
selected: false, selected: false,
value: "LAST_THIRTY", value: "LAST_THIRTY",
}, },
@ -459,6 +459,14 @@ export default {
}, },
}, },
methods: { methods: {
pageNumberChange(val){
this.refundParams.pageNumber = val
this.getOrderList();
},
pageSizeChange(val){
this.refundParams.pageSize = val
this.getOrderList();
},
// //
initOrderChart() { initOrderChart() {
// legend-filter // legend-filter

View File

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