Commit f3c878ec by chenwq

嘀加上架-表格,确认

1 parent 3f3d80c9
...@@ -645,11 +645,11 @@ export const routerName = { ...@@ -645,11 +645,11 @@ export const routerName = {
authId: "9031304", authId: "9031304",
parentId: "90313", parentId: "90313",
label: "查看", label: "查看",
handle: "handleContractView", handle: "handleContractDetail",
addRoutePath: [ addRoutePath: [
{ {
authId: "9031305", authId: "9031305",
name: "查看合同", name: "运营确认",
parentId: "90313" parentId: "90313"
} }
] ]
...@@ -658,11 +658,11 @@ export const routerName = { ...@@ -658,11 +658,11 @@ export const routerName = {
authId: "9031306", authId: "9031306",
parentId: "90313", parentId: "90313",
label: "确认", label: "确认",
handle: "handleContractView", handle: "handleEditContract",
addRoutePath: [ addRoutePath: [
{ {
authId: "9031307", authId: "9031307",
name: "编辑合同", name: "运营确认",
parentId: "90313" parentId: "90313"
} }
] ]
...@@ -705,8 +705,8 @@ export const routerName = { ...@@ -705,8 +705,8 @@ export const routerName = {
path: "/contractDetail", path: "/contractDetail",
name: "contractDetail", name: "contractDetail",
meta: { meta: {
title: "查看合同", title: "运营确认",
authId: "9031302", authId: "9031305",
parentId: "90313", parentId: "90313",
sideHidden: true, sideHidden: true,
activePath: "/shelfManage" activePath: "/shelfManage"
...@@ -717,8 +717,8 @@ export const routerName = { ...@@ -717,8 +717,8 @@ export const routerName = {
path: "/editContract", path: "/editContract",
name: "editContract", name: "editContract",
meta: { meta: {
title: "编辑合同", title: "运营确认",
authId: "9031302", authId: "9031307",
parentId: "90313", parentId: "90313",
sideHidden: true, sideHidden: true,
activePath: "/shelfManage" activePath: "/shelfManage"
......
<template>
<div class="base-info">
<div class="title">
<span>基础信息</span>
</div>
<div style="padding: 20px;">
<div>啦啦啦</div>
</div>
</div>
</template>
<script>
export default {
name: 'BaseInfo',
props: {},
data() {
//这里存放数据
return {
}
},
methods: {},
};
</script>
<style lang="scss" scoped>
.base-info {
margin: 0 0px 20px;
background: #ffffff;
.title {
height: 58px;
line-height: 58px;
padding: 0 20px;
border-bottom: 1px solid #e5e5e5;
font-size: 20px;
font-weight: 600;
color: #333333;
}
}
</style>
<template>
<div class="division-config">
<div class="title">
<span>分账配置</span>
</div>
<div style="padding: 20px;">
<div>啦啦啦</div>
</div>
</div>
</template>
<script>
export default {
name: 'DivisionConfig',
props: {},
data() {
//这里存放数据
return {
}
},
methods: {},
};
</script>
<style lang="scss" scoped>
.division-config {
margin: 0 0px 20px;
background: #ffffff;
.title {
height: 58px;
line-height: 58px;
padding: 0 20px;
border-bottom: 1px solid #e5e5e5;
font-size: 20px;
font-weight: 600;
color: #333333;
}
}
</style>
<template>
<div class="finance-config">
<div class="title">
<span>对账配置</span>
</div>
<div style="padding: 20px;">
<div>啦啦啦</div>
</div>
</div>
</template>
<script>
export default {
name: 'FinanceConfig',
props: {},
data() {
//这里存放数据
return {
}
},
methods: {},
};
</script>
<style lang="scss" scoped>
.finance-config {
margin: 0 0px 20px;
background: #ffffff;
.title {
height: 58px;
line-height: 58px;
padding: 0 20px;
border-bottom: 1px solid #e5e5e5;
font-size: 20px;
font-weight: 600;
color: #333333;
}
}
</style>
<template>
<div class="goods-info">
<div class="title">
<span>上架商品及测算</span>
</div>
<div style="padding: 20px;">
<div>啦啦啦</div>
</div>
</div>
</template>
<script>
export default {
name: 'GoodsInfo',
props: {},
data() {
//这里存放数据
return {
}
},
methods: {},
};
</script>
<style lang="scss" scoped>
.goods-info {
margin: 0 0px 20px;
background: #ffffff;
.title {
height: 58px;
line-height: 58px;
padding: 0 20px;
border-bottom: 1px solid #e5e5e5;
font-size: 20px;
font-weight: 600;
color: #333333;
}
}
</style>
<template>
<div class="shop-merchant-info">
<div class="title">
<span>流量方信息</span>
</div>
<div style="padding: 20px;">
<div>啦啦啦</div>
</div>
</div>
</template>
<script>
export default {
name: 'ShopMerchantInfo',
props: {},
data() {
//这里存放数据
return {
}
},
methods: {},
};
</script>
<style lang="scss" scoped>
.shop-merchant-info {
margin: 0 0px 20px;
background: #ffffff;
.title {
height: 58px;
line-height: 58px;
padding: 0 20px;
border-bottom: 1px solid #e5e5e5;
font-size: 20px;
font-weight: 600;
color: #333333;
}
}
</style>
<!-- 编辑 - 运营确认 -->
<template>
<d2-container class="edit-contract" v-loading="isLoad">
<!-- 基础信息 -->
<base-info></base-info>
<!-- 流量方信息 -->
<shop-merchant-info></shop-merchant-info>
<!-- 上架商品及测算 -->
<goods-info></goods-info>
<!-- 分账配置 -->
<division-config></division-config>
<!-- 对账配置 -->
<finance-config></finance-config>
<div style="margin-top: 40px;text-align: center;">
<el-button type="primary" @click="handleConfirm(1)">
提交
</el-button>
<!-- 草稿状态/已下架/新增显示 -->
<el-button type="primary" plain @click="handleConfirm(2)">
暂存
</el-button>
<el-button class="cancel-btn" @click="handleCancel">
取消
</el-button>
</div>
</d2-container>
</template>
<script>
import { mapActions } from 'vuex'
import BaseInfo from './components/editCon/BaseInfo.vue'
import ShopMerchantInfo from './components/editCon/ShopMerchantInfo'
import GoodsInfo from './components/editCon/GoodsInfo.vue'
import DivisionConfig from './components/editCon/DivisionConfig.vue'
import FinanceConfig from './components/editCon/FinanceConfig.vue'
export default {
name: 'EditContract',
data() {
return {
isLoad: true,
editData: {},
};
},
components: {
BaseInfo,
ShopMerchantInfo,
GoodsInfo,
DivisionConfig,
FinanceConfig
},
mounted() {
this.getDetail()
},
//方法集合
methods: {
...mapActions({
close: 'd2admin/page/close'
}),
getDetail() {
this.isLoad = false
},
handleConfirm() {},
handleCancel() {
this.close({ tagName: '/shelfManage' })
this.$router.push({ name: 'shelfManage' })
this.close({ tagName: '/editContract' })
}
},
};
</script>
<style lang="scss" scoped>
.cancel-btn {
width: 70px;
}
</style>
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
</d2-container> </d2-container>
</template> </template>
<script> <script>
import { mapActions } from 'vuex'
export default { export default {
name: 'ShelfManage', name: 'ShelfManage',
data() { data() {
...@@ -68,6 +69,7 @@ export default { ...@@ -68,6 +69,7 @@ export default {
}] }]
}, },
tableData: [{ tableData: [{
id: '1',
orderNum: '11' orderNum: '11'
}], }],
// 基本数据 // 基本数据
...@@ -79,9 +81,25 @@ export default { ...@@ -79,9 +81,25 @@ export default {
console.log(this.tableParams, 'tableParams---') console.log(this.tableParams, 'tableParams---')
}, },
methods: { methods: {
...mapActions({
close: 'd2admin/page/close'
}),
getShelfManageList() { }, getShelfManageList() { },
beforeSearchFn() { }, beforeSearchFn() { },
handleReset() { }, handleReset() { },
// 编辑合同
handleEditContract(row) {
this.close({ tagName: '/editContract' })
this.$router.push({
name: 'editContract',
params: {
id: row.id
}
})
},
// 查看合同
handleContractDetail() {}
} }
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!