部分bug
parent
81297db7a8
commit
f9d09365ea
|
@ -16,6 +16,7 @@
|
||||||
/>
|
/>
|
||||||
<i class="cart-badge">{{ cartNum < 100 ? cartNum : "99" }}</i>
|
<i class="cart-badge">{{ cartNum < 100 ? cartNum : "99" }}</i>
|
||||||
</div>
|
</div>
|
||||||
|
<hr class="hr"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -59,6 +60,10 @@ export default {
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.hr{
|
||||||
|
height:1px;
|
||||||
|
background:$theme_color;
|
||||||
|
}
|
||||||
.content {
|
.content {
|
||||||
width: 1200px;
|
width: 1200px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
<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(selectedWay)" v-model="month" placeholder="年月查询"
|
<Select @on-change="changeSelect(selectedWay)" v-model="month" placeholder="年月查询" clearable
|
||||||
style="width:200px;margin-left:10px;">
|
style="width:200px;margin-left:10px;">
|
||||||
<Option v-for="(item,index) in dates" :value="item.year+'-'+item.month" :key="index">
|
<Option v-for="(item,index) in dates" :value="item.year+'-'+item.month" :key="index" clearable>
|
||||||
{{ item.year+'年'+item.month+'月' }}</Option>
|
{{ item.year+'年'+item.month+'月' }}</Option>
|
||||||
</Select>
|
</Select>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -598,10 +598,10 @@ export default {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "小计",
|
title: "小计",
|
||||||
key: "flowPrice",
|
key: "subTotal",
|
||||||
minWidth: 100,
|
minWidth: 100,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", this.$options.filters.unitPrice(params.row.flowPrice, "¥"));
|
return h("div", this.$options.filters.unitPrice(params.row.subTotal, "¥"));
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -674,7 +674,8 @@ export default {
|
||||||
},
|
},
|
||||||
modifyPrice() {
|
modifyPrice() {
|
||||||
//默认要修改的金额为订单总金额
|
//默认要修改的金额为订单总金额
|
||||||
this.modifyPriceForm.price = this.orderInfo.order.flowPrice;
|
this.modifyPriceForm.price = this.orderInfo.order.subTotal;
|
||||||
|
console.log(this.modifyPriceForm.price)
|
||||||
this.modal = true;
|
this.modal = true;
|
||||||
},
|
},
|
||||||
//修改订单金额提交
|
//修改订单金额提交
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
<div>
|
<div>
|
||||||
<Card>
|
<Card>
|
||||||
<div class="operation mb_10">
|
<div class="operation mb_10">
|
||||||
<Button @click="addParent" type="primary" icon="md-add">添加一级分类</Button>
|
<Button @click="addParent" type="primary" icon="md-add"
|
||||||
|
>添加一级分类</Button
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
<tree-table
|
<tree-table
|
||||||
ref="treeTable"
|
ref="treeTable"
|
||||||
|
@ -116,17 +118,12 @@ export default {
|
||||||
parentId: "",
|
parentId: "",
|
||||||
sort: 1,
|
sort: 1,
|
||||||
level: 0,
|
level: 0,
|
||||||
articleCategoryName:""
|
articleCategoryName: "",
|
||||||
},
|
},
|
||||||
// 表单验证规则
|
// 表单验证规则
|
||||||
formValidate: {
|
formValidate: {
|
||||||
articleCategoryName:[
|
articleCategoryName: [regular.REQUIRED],
|
||||||
regular.REQUIRED
|
sort: [regular.REQUIRED,regular.INTEGER],
|
||||||
],
|
|
||||||
sort:[
|
|
||||||
regular.REQUIRED,
|
|
||||||
regular.INTEGER
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
|
@ -149,7 +146,7 @@ export default {
|
||||||
template: "action",
|
template: "action",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
tableData: [] // 表格数据
|
tableData: [], // 表格数据
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -205,7 +202,13 @@ export default {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$Message.success("添加成功");
|
this.$Message.success("添加成功");
|
||||||
|
|
||||||
this.formAdd = {};
|
this.formAdd = {
|
||||||
|
// 添加或编辑表单对象初始化数据
|
||||||
|
parentId: "",
|
||||||
|
sort: 1,
|
||||||
|
level: 0,
|
||||||
|
articleCategoryName: "",
|
||||||
|
};
|
||||||
} else {
|
} else {
|
||||||
// this.$Message.error(res.message);
|
// this.$Message.error(res.message);
|
||||||
}
|
}
|
||||||
|
@ -248,7 +251,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 获取分类数据
|
// 获取分类数据
|
||||||
getAllList() {
|
getAllList(newval) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
getArticleCategory().then((res) => {
|
getArticleCategory().then((res) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
|
@ -145,3 +145,10 @@ export default {
|
||||||
margin: 20px;
|
margin: 20px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<style>
|
||||||
|
.ivu-card-extra{
|
||||||
|
right: 3px;
|
||||||
|
top:15px;
|
||||||
|
z-index: 99;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -571,6 +571,6 @@ export default {
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
.menu-input {
|
.menu-input {
|
||||||
width: 500px;
|
width: 162px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -110,7 +110,7 @@
|
||||||
mobile: [
|
mobile: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: "请输入地址纬度",
|
message: "请输入联系电话号",
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
},
|
},
|
||||||
{ validator: validateMobile,
|
{ validator: validateMobile,
|
||||||
|
|
|
@ -224,7 +224,7 @@ export default {
|
||||||
},
|
},
|
||||||
stockWarningFormValidate: {
|
stockWarningFormValidate: {
|
||||||
stockWarning: [
|
stockWarning: [
|
||||||
{ required: true, message: "请输入库存预警数", trigger: "blur" },
|
{ required: true, type:'number', message: "请输入库存预警数", trigger: "blur" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
udeskFormValidate: {
|
udeskFormValidate: {
|
||||||
|
|
Loading…
Reference in New Issue