jufubao-admin-library 1.0.0-beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +90 -0
  3. package/library/gulpfile.js/const.js +51 -0
  4. package/library/gulpfile.js/index.js +237 -0
  5. package/library/gulpfile.js/util.js +114 -0
  6. package/library/viewModules/config.js +75 -0
  7. package/library/viewModules/viewStat/router/supplierStat.js +33 -0
  8. package/library/viewModules/viewStat/schemas/supplier.stat.js +70 -0
  9. package/library/viewModules/viewStat/schemas.js +18 -0
  10. package/library/viewModules/viewStat/viewsStat/index/components/stat-all.vue +233 -0
  11. package/library/viewModules/viewStat/viewsStat/index/components/stat-product.vue +129 -0
  12. package/library/viewModules/viewStat/viewsStat/index/components/stat-supplier.vue +124 -0
  13. package/library/viewModules/viewStat/viewsStat/index/components/table-category.vue +309 -0
  14. package/library/viewModules/viewStat/viewsStat/index/components/table-product.vue +316 -0
  15. package/library/viewModules/viewStat/viewsStat/index/components/table-supplier.vue +276 -0
  16. package/library/viewModules/viewStat/viewsStat/index/index.vue +117 -0
  17. package/library/viewModules/viewTask/router/tasks.js +34 -0
  18. package/library/viewModules/viewTask/schemas/tasks.js +52 -0
  19. package/library/viewModules/viewTask/viewTask/list.vue +195 -0
  20. package/library/viewModules/viewsEnterpriseBuy/router/enterprise_buy.js +91 -0
  21. package/library/viewModules/viewsEnterpriseBuy/schemas/enterprise_buy.js +420 -0
  22. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/compontents/OrderInfoButton.vue +550 -0
  23. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/compontents/cardList.vue +119 -0
  24. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/compontents/expressCopy.vue +259 -0
  25. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/compontents/operateHistory.vue +164 -0
  26. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/compontents/send_list.vue +395 -0
  27. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/compontents/storeList.vue +100 -0
  28. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/compontents/workHistory.vue +163 -0
  29. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/detail.vue +503 -0
  30. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/list.vue +635 -0
  31. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/order_detail.vue +860 -0
  32. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/set_create.vue +219 -0
  33. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/set_list.vue +237 -0
  34. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/table-card.vue +180 -0
  35. package/library/viewModules/viewsFinance/router/balance.js +75 -0
  36. package/library/viewModules/viewsFinance/router/finance.js +30 -0
  37. package/library/viewModules/viewsFinance/schemas/trade.record.js +153 -0
  38. package/library/viewModules/viewsFinance/schemas/wallet.js +116 -0
  39. package/library/viewModules/viewsFinance/viewsFinance/balance/components/listChannel.vue +220 -0
  40. package/library/viewModules/viewsFinance/viewsFinance/balance/components/listOpenapi.vue +260 -0
  41. package/library/viewModules/viewsFinance/viewsFinance/balance/components/listPartner.vue +217 -0
  42. package/library/viewModules/viewsFinance/viewsFinance/balance/components/listSupplier.vue +229 -0
  43. package/library/viewModules/viewsFinance/viewsFinance/balance/detail_channel.vue +401 -0
  44. package/library/viewModules/viewsFinance/viewsFinance/balance/detail_openapi.vue +364 -0
  45. package/library/viewModules/viewsFinance/viewsFinance/balance/detail_partner.vue +633 -0
  46. package/library/viewModules/viewsFinance/viewsFinance/balance/detail_supplier.vue +417 -0
  47. package/library/viewModules/viewsFinance/viewsFinance/balance/list.vue +75 -0
  48. package/library/viewModules/viewsFinance/viewsFinance/index.vue +191 -0
  49. package/library/viewModules/viewsLimit/router/buyLimit/buyLimit.js +31 -0
  50. package/library/viewModules/viewsLimit/schemas/buyLimit.js +22 -0
  51. package/library/viewModules/viewsLimit/viewsLimit/index.vue +211 -0
  52. package/package.json +114 -0
@@ -0,0 +1,219 @@
1
+ <template>
2
+ <div class="app-container">
3
+ <el-card class="app-container__list">
4
+ <xd-base-dynamic-field
5
+ v-if="formList!==null"
6
+ ref="form"
7
+ v-model="formParams"
8
+ label-width="150px"
9
+ :list="formList"
10
+ :key="renderFormKey"
11
+ size="medium"
12
+ @success="handleSuccess"
13
+ @onApiSuccessUrl="handleApiSuccessUrl"
14
+ @onGetParamsAndHeader="handleGetParamsAndHeader"
15
+ ></xd-base-dynamic-field>
16
+ <div style="padding-left: 150px">
17
+ <el-button @click="goBack" type="primary">返回</el-button>
18
+ <el-button @click="handleConfirm" type="primary">保存</el-button>
19
+ </div>
20
+ </el-card>
21
+ </div>
22
+ </template>
23
+
24
+
25
+ <script>
26
+ import XdBaseDynamicField from "@/components/XdBaseDynamicField"
27
+ import { getOptions } from "@/utils/options"
28
+ import { Loading } from 'element-ui'
29
+ import checkPermission from "@/utils/permission"
30
+ import {
31
+ mapActions,
32
+ mapState,
33
+ } from 'vuex'
34
+
35
+ export default {
36
+ name: "enterprise_buy_detail",
37
+ components: {
38
+ XdBaseDynamicField,
39
+ },
40
+ watch: {},
41
+ data () {
42
+ return {
43
+ formList: null,
44
+ formParams: {},
45
+ renderFormKey: Date.now(),
46
+ customForm: {
47
+ company_id: '',
48
+ department_id: '',
49
+ },
50
+ customRules: {},
51
+ id: null,
52
+ }
53
+ },
54
+ created () {
55
+ this.id = this.$route.params.id
56
+ if (this.id) {
57
+ let params = {
58
+ partner_id: this.id,
59
+ }
60
+ this.taxRatioConfigGet(params).then(res => {
61
+ console.log(res, 'aaaaaa')
62
+ this.initFormList(res.data)
63
+ }).catch(err => {
64
+ console.log(err, 'err')
65
+ })
66
+ } else {
67
+ this.initFormList({})
68
+ }
69
+ },
70
+
71
+ methods: {
72
+ ...mapActions('enterprise_buy', [
73
+ 'taxRatioConfigGet',
74
+ 'taxRatioConfigSet',
75
+ ]),
76
+ initFormList (params, isWitch) {
77
+ console.log(params, 'params')
78
+ getOptions({
79
+ server: 'idaas-admin',
80
+ fn: 'partner',
81
+ path: 'p1',
82
+ },).then(res => {
83
+ let partnerData = []
84
+ res.data.list.map(item => {
85
+ if (item.value !== 0) {
86
+ partnerData.push(item)
87
+ }
88
+ })
89
+ let formList = [
90
+ {
91
+ label: '加盟商:', //label
92
+ ele: 'xd-select-list', //package 名称
93
+ valueKey: 'partner_id', //form[valueKey]
94
+ value: params.partner_id === 0 ? 0 : params.partner_id ? params.partner_id.toString() : '',
95
+ placeholder: '请选择加盟商',
96
+ multiple: false,
97
+ collapseTags: false,
98
+ list: partnerData,
99
+ classNmae: 'input40',
100
+ disabled: this.id ? true : false,
101
+ rules: [
102
+ {
103
+ required: true,
104
+ message: '请选择加盟商',
105
+ trigger: 'blur'
106
+ },
107
+ ]
108
+ },
109
+ {
110
+ label: '集采税点(%):', //label
111
+ ele: 'el-input', //package 名称
112
+ type: 'text',
113
+ valueKey: 'tax_ratio', //form[valueKey]
114
+ value: params.tax_ratio || '', //v-model
115
+ placeholder: '输入集采税点',
116
+ classNmae: 'input40',
117
+ rules: [
118
+ {
119
+ required: true,
120
+ message: '请输入集采税点',
121
+ trigger: 'blur'
122
+ },
123
+ ]
124
+ },
125
+ {
126
+ label: '状态:', //label
127
+ ele: "xd-radio",
128
+ valueKey: 'status', //form[valueKey]
129
+ value: params.status || 'Y', //v-model
130
+ placeholder: '请选择状态',
131
+ list: [
132
+ {
133
+ value: 'Y',
134
+ label: '开启'
135
+ },
136
+ {
137
+ value: 'N',
138
+ label: '关闭'
139
+ }
140
+ ],
141
+ rules: [
142
+ { required: true, message: '请选择状态', trigger: ['blur', 'change'] },
143
+ ]
144
+ },
145
+ ]
146
+ this.formList = formList.filter(i => i)
147
+ this.renderFormKey = Date.now()
148
+ })
149
+ .catch(err=>{
150
+ console.log(err,'err')
151
+ })
152
+ },
153
+
154
+ handleConfirm () {
155
+ console.log(this.formParams, 'formParams')
156
+ this.$refs.form.submit().then(res => {
157
+ let data = {
158
+ ...this.formParams
159
+ }
160
+ this.taxRatioConfigSet(data).then(res => {
161
+ this.$message({
162
+ type: "success",
163
+ message: "操作成功"
164
+ })
165
+ this.$bus.$emit('delTags', this.$route, {}, 'set_list')
166
+ }).catch(err => {
167
+ console.log(err, 'err')
168
+ })
169
+ })
170
+ },
171
+
172
+ goBack () {
173
+ this.$router.replace('/enterprise_buy/set_list')
174
+ },
175
+
176
+ }
177
+ }
178
+
179
+ </script>
180
+
181
+ <style scoped lang="scss">
182
+ .header-item {
183
+ padding: 0 20px;
184
+ font-size: 14px;
185
+ }
186
+
187
+ .show {
188
+ padding: 0 0 10px 0;
189
+ margin-bottom: 10px;
190
+ border-bottom: 1px solid #e5e5e5;
191
+ display: flex;
192
+ justify-content: flex-end;
193
+ }
194
+
195
+ .app-container {
196
+ &__link {
197
+ display: flex;
198
+
199
+ &-use {
200
+ display: flex;
201
+ flex-direction: column;
202
+ width: 150px;
203
+ padding: 20px;
204
+ background: #f7f7f7;
205
+ margin-right: 20px;
206
+
207
+ .el-button + .el-button {
208
+ margin-left: 0px;
209
+ margin-top: 30px;
210
+ }
211
+ }
212
+
213
+ &-tabs {
214
+ flex: 1;
215
+ }
216
+ }
217
+ }
218
+ </style>
219
+
@@ -0,0 +1,237 @@
1
+ <template>
2
+ <div class="app-container">
3
+ <el-card class="app-container__search">
4
+ <div slot="header">集采配置</div>
5
+ <xd-search
6
+ dateFilter
7
+ mainFilterKey="is_associate"
8
+ labelWidth="100px"
9
+ v-if="searchForm.length > 0"
10
+ v-model="searchParams"
11
+ :list="searchForm"
12
+ @onSearch="handleSearch"
13
+ @onDone="getList"
14
+ ></xd-search>
15
+ </el-card>
16
+ <el-card class="app-container__list">
17
+ <div class="app-container__list-pagination">
18
+ <div></div>
19
+ <div v-if="isAdd">
20
+ <el-button type="primary" @click="$router.push('/enterprise_buy/set_create')">添加</el-button>
21
+ </div>
22
+ </div>
23
+ <div class="app-container__list-table">
24
+ <xd-table
25
+ :key="renderTableKey"
26
+ :get-link="getLink"
27
+ :headers="headers"
28
+ :list="tables"
29
+ is-border
30
+ @onClick="handleTableClick"
31
+ ></xd-table>
32
+ </div>
33
+ <div class="app-container__list-pagination">
34
+ <xd-pagination
35
+ :total="total"
36
+ :limit.sync="limit"
37
+ :page="page"
38
+ :auto-scroll="false"
39
+ @onPagination="handlePagination"
40
+ ></xd-pagination>
41
+ </div>
42
+ </el-card>
43
+ </div>
44
+ </template>
45
+
46
+
47
+ <script>
48
+ import XdSearch from "@/components/XdSearch"
49
+ import XdPagination from "@/components/XdPagination.vue"
50
+ import XdTable from "@/components/XdTable"
51
+ import { Loading } from 'element-ui'
52
+ import checkPermission from "@/utils/permission"
53
+ import permissions from "@/constant/permissions"
54
+ import { getOptions } from "@/utils/options"
55
+ import {
56
+ mapActions,
57
+ mapState,
58
+ } from 'vuex'
59
+
60
+ export default {
61
+ name: "enterprise_buy_list",
62
+ components: {
63
+ XdPagination, //翻译插件
64
+ XdSearch, //搜查插件
65
+ XdTable
66
+ },
67
+ computed: {
68
+ isAdd () {
69
+ return checkPermission([permissions.enterprise_buy.taxRatioConfigSet])
70
+ },
71
+ isUpdate () {
72
+ return checkPermission([permissions.enterprise_buy.taxRatioConfigGet])
73
+ },
74
+ headers () {
75
+ return [
76
+ { "type": "normal", "prop": "partner_name", "align": "center", "label": "加盟商名称" },
77
+ { "type": "normal", "prop": "tax_ratio", "align": "center", "label": "结算税点(%)" },
78
+ { "type": "status", "prop": "status", "align": "center", "label": "状态" },
79
+ {
80
+ "type": "operate", "align": "center", "width": 180, "label": "操作",
81
+ "values": [
82
+ this.isUpdate&&{ "ui": "text-button", "name": "编辑", "type": "text", "event": 'edit' },
83
+ ].filter(i => i)
84
+ }
85
+ ]
86
+ }
87
+ },
88
+ watch: {
89
+
90
+ },
91
+ data () {
92
+ return {
93
+
94
+ //分页参数
95
+ page: 1, //当前页面数量
96
+ hasNextPage: true, //是否有下一页
97
+ limit: 20, //搜索参数
98
+ total: 0,
99
+ searchForm: [], //搜索区域模块表单
100
+ searchParams: {}, //搜索参数
101
+
102
+ //列表对象
103
+ tables: [],
104
+ renderTableKey: Date.now(),
105
+ mainFilterIndex: ""
106
+ }
107
+ },
108
+ created () {
109
+ this.initSearchForm()
110
+ },
111
+ methods: {
112
+ ...mapActions('enterprise_buy', [
113
+ 'taxRatioConfigList',
114
+ ]),
115
+ /**
116
+ * @description 获取数据列表
117
+ */
118
+ getList () {
119
+ //请求数据
120
+ let params = {
121
+ ...this.searchParams,
122
+ page_token: this.page,
123
+ page_size: this.limit
124
+ }
125
+ console.log(params)
126
+ let loading = Loading.service({})
127
+ this.taxRatioConfigList(params).then(res => {
128
+ const { list, page_total_size } = res.data
129
+ this.tables = list.map(item => {
130
+ item.updated_time = window.getTimeFormat(item.updated_time)
131
+ return item
132
+ })
133
+ this.total = page_total_size
134
+ loading.close()
135
+ }).catch(e => loading.close())
136
+ },
137
+ handleTableClick ({ row, value, index, rowIndex }) {
138
+ if (value.event === 'edit') {
139
+ this.$router.push(`/enterprise_buy/set_update/${row.partner_id}`)
140
+ }
141
+ },
142
+ /**
143
+ * @description 预设获取页面跳转地址方法
144
+ * @param item
145
+ */
146
+ getLink (item) {
147
+ return '/users/detail/1'
148
+ },
149
+ /**
150
+ * @description 预设操作需要用户确认方法
151
+ * @param item
152
+ */
153
+ handleConfirm (item) {
154
+ this.$confirm('您确定要将当前记录删除吗?', '提示', {
155
+ confirmButtonText: '确定',
156
+ cancelButtonText: '取消',
157
+ type: 'warning'
158
+ })
159
+ .then(() => {
160
+
161
+ //todo
162
+ })
163
+ .catch(() => {
164
+
165
+ //todo
166
+ })
167
+ },
168
+ /**
169
+ * @description 点击搜索进行搜索操作
170
+ * @param action 动作
171
+ * @param form 搜索请求参数
172
+ */
173
+ handleSearch ({ action, form }) {
174
+ this.page = 1
175
+ this.hasNextPage = true
176
+ this.getList()
177
+ },
178
+ /**
179
+ * @description 初始化搜索模块
180
+ */
181
+ initSearchForm () {
182
+ getOptions({
183
+ server: 'idaas-admin',
184
+ fn: 'partner',
185
+ path: 'p1',
186
+ },).then(res => {
187
+ let partnerData = []
188
+ res.data.list.map(item => {
189
+ if (item.value !== 0) {
190
+ partnerData.push(item)
191
+ }
192
+ })
193
+ this.searchForm = [
194
+ {
195
+ label: '加盟商:', //label
196
+ ele: 'xd-select-list', //package 名称
197
+ valueKey: 'partner_id', //form[valueKey]
198
+ value:'',
199
+ placeholder: '请选择加盟商',
200
+ multiple: false,
201
+ collapseTags: false,
202
+ list: partnerData,
203
+ classNmae: 'input40',
204
+ rules: [
205
+ {
206
+ required: true,
207
+ message: '请选择加盟商',
208
+ trigger: 'blur'
209
+ },
210
+ ]
211
+ },
212
+ ]
213
+ })
214
+ .catch(err=>{
215
+ conosle.log(err,'err')
216
+ })
217
+
218
+ },
219
+ /**
220
+ * @description 翻页处理方法
221
+ * @param page {Number} 访问页面页码数
222
+ */
223
+ handlePagination (page) {
224
+ this.page = page
225
+ this.getList()
226
+ }, //todo
227
+ onJfbTagForReload () {
228
+ this.getList()
229
+ },
230
+ }
231
+ }
232
+
233
+ </script>
234
+
235
+ <style scoped lang="scss">
236
+ </style>
237
+
@@ -0,0 +1,180 @@
1
+ <template>
2
+ <div class='card-box'>
3
+ <div class="card-box_title">
4
+ <span>清单编号:</span> <span>{{baseData.purchase_main_order_id}}</span>
5
+ <i
6
+ style="cursor: pointer"
7
+ class="el-icon-copy-document"
8
+ @click="copyOrderId"
9
+ ></i>
10
+ </div>
11
+ <div class="card-box_base">
12
+ <div class="card-box_base_item">
13
+ <span>清单预算:</span><span class="red">{{$xdHelper.divisionFloatNumber(baseData.purchase_plan_amount, 100)}}</span>
14
+ </div>
15
+ <div class="card-box_base_item">
16
+ <span>总金额:</span><span class="red">{{$xdHelper.divisionFloatNumber(baseData.total_amount, 100)}}</span>
17
+ <el-tooltip
18
+ popper-class="notice-popper"
19
+ placement="top"
20
+ :content="priceTip"
21
+ ><i class="el-icon-question"></i></el-tooltip>
22
+ </div>
23
+ <!-- #ifdef oa-finance -->
24
+ <div class="card-box_base_item">
25
+ <span>供货商总金额:</span><span class="red">{{$xdHelper.divisionFloatNumber(baseData.supplier_settlement_amount, 100)}}</span>
26
+ </div>
27
+ <!-- #endif -->
28
+ <div class="card-box_base_item">
29
+ <span>用户实际结算金额:</span><span class="red">{{baseData.user_settlement_amount===-1?'--':$xdHelper.divisionFloatNumber(baseData.user_settlement_amount, 100)}}</span>
30
+ </div>
31
+ <!-- #ifdef oa-finance -->
32
+ <div class="card-box_base_item">
33
+ <span>加盟商实际支付金额:</span><span class="red">{{$xdHelper.divisionFloatNumber(baseData.partner_actual_pay_amount, 100)}}</span>
34
+ </div>
35
+ <div class="card-box_base_item">
36
+ <span>平台税点:</span><span class="red">{{baseData.tax_ratio}}%</span>
37
+ </div>
38
+ <div class="card-box_base_item">
39
+ <span>平台税点金额:</span><span class="red">{{$xdHelper.divisionFloatNumber(baseData.tax_amount, 100)}}</span>
40
+ </div>
41
+ <div class="card-box_base_item">
42
+ <span>实际结算货款:</span><span class="red">{{$xdHelper.divisionFloatNumber(baseData.actual_settlement_amount, 100)}}</span>
43
+ </div>
44
+ <!-- #endif -->
45
+ <div class="card-box_base_item">
46
+ <span>创建时间:</span><span>{{baseData.created_time}}</span>
47
+ </div>
48
+ <div class="card-box_base_item">
49
+ <span>确认时间:</span><span>{{baseData.confirm_time}}</span>
50
+ </div>
51
+ <div class="card-box_base_item">
52
+ <span>打款时间:</span><span>{{baseData.pay_time}}</span>
53
+ </div>
54
+ <div class="card-box_base_item" v-if="baseData.jfb_main_order_id">
55
+ <span>关联订单:</span><span @click="handleToOrder" style="color:#409EFF;cursor:pointer">查看</span>
56
+ </div>
57
+ <div class="card-box_base_item">
58
+ <span>清单说明:</span><span>{{baseData.purchase_desc}}</span>
59
+ </div>
60
+ </div>
61
+ <!-- #ifdef oa-finance -->
62
+ <div class="card-box_base_item">
63
+ <span>加盟商发票:</span><span>{{baseData.invoice}}</span>
64
+ </div>
65
+ <div>
66
+ <div style="color: #606266;margin-bottom:10px">供货商发票: </div>
67
+ <div v-for="(item,index) in subData" :key="index" style="margin:10px 0;display:block">
68
+ <div v-if="item.invoice"><span><span style="color: #606266;margin-right:10px">{{item.supplier_name}}:</span><span style="color: #333;">{{item.invoice}}</span></span></div>
69
+ </div>
70
+ </div>
71
+ <!-- #endif -->
72
+ </div>
73
+ </template>
74
+ <script>
75
+ export default {
76
+ data() {
77
+ return {
78
+ infoData:[
79
+ // {label:'清单预算',value:'100',notes:'提示信息'},
80
+ {label:'总金额',value:'提示信息1提示信息1提示信息1提示信息1',notes:'123'},
81
+ {label:'总金额',value:'提示信息1提示信息1提示信息1提示信息1',notes:'123'},
82
+ {label:'总金额',value:'1提示信息1提示信息1提示信息1提示信息100',notes:'1'},
83
+ {label:'总金额',value:'提示信息1提示信息1提示信息1提示信息1',notes:'2'},
84
+ {label:'总金额',value:'提示信息1提示信息1提示信息1提示信息1',notes:'3'},
85
+ {label:'总金额',value:'提示信息1提示信息1提示信息1提示信息1',notes:'4'},
86
+ {label:'清单说明',value:'清单说明清单说明清单说明清单说明清单说明清单说明',},
87
+ ],
88
+ baseData:null,
89
+ priceTip:'因商品价格实时变动,故此为预估总价,仅作参考,最终以下单商品价格为准',
90
+ subData:[],
91
+ }
92
+ },
93
+ props:{
94
+ orderData: {
95
+ type: Object| Array| null,
96
+ default: null
97
+ },
98
+ },
99
+ created(){
100
+ console.log(123123123,this.orderData)
101
+ this.baseData = this.$xdHelper.cloneDeep(this.orderData).main_order
102
+ this.baseData.created_time=window.getTimeFormat(this.baseData.created_time)
103
+ this.baseData.confirm_time=window.getTimeFormat(this.baseData.confirm_time)
104
+ this.baseData.pay_time=window.getTimeFormat(this.baseData.pay_time)
105
+ this.baseData.invoice = this.baseData.invoice?'https:'+this.getImageFullPath(this.baseData.invoice):''
106
+ this.subData = this.$xdHelper.cloneDeep(this.orderData).sub_orders
107
+ console.log(this.baseData,'this.baseData')
108
+ },
109
+ methods:{
110
+ copyOrderId () {
111
+ this.copy(this.baseData.purchase_main_order_id)
112
+ },
113
+ copy (data) {
114
+ let url = data
115
+ let oInput = document.createElement('input')
116
+ oInput.value = url
117
+ document.body.appendChild(oInput)
118
+ oInput.select() // 选择对象
119
+ document.execCommand("Copy") // 执行浏览器复制命令
120
+ this.$message({
121
+ message: '复制成功',
122
+ type: 'success'
123
+ })
124
+ oInput.remove()
125
+ },
126
+ //查看订单
127
+ handleToOrder(){
128
+ this.$router.push(`/enterprise_buy/order_detail/${this.baseData.jfb_main_order_id}`)
129
+ },
130
+ }
131
+ }
132
+
133
+ </script>
134
+ <style scoped lang="scss">
135
+ .card-box{
136
+ font-size: 14px;
137
+ &_title{
138
+ display:flex;
139
+ margin-bottom: 10px;
140
+ &>span:first-child{
141
+ color: #606266;
142
+ }
143
+ &>span:nth-child(2){
144
+ display: inline-block;
145
+ color: #333;
146
+ padding-left: 10px;
147
+ margin-right: 10px;
148
+ }
149
+ }
150
+ &_base{
151
+ display:flex;
152
+ flex-wrap: wrap;
153
+ &_item{
154
+ display:flex;
155
+ flex-wrap: wrap;
156
+ margin: 10px 40px 10px 0;
157
+ font-size: 14px;
158
+ position: relative;
159
+ &>span:first-child{
160
+ color: #606266;
161
+ }
162
+ &>span:nth-child(2){
163
+ color: #333;
164
+ padding-left: 10px;
165
+ }
166
+ &>i{
167
+ position: absolute;
168
+ right: -15px;
169
+ top:-10px;
170
+ }
171
+ }
172
+ }
173
+ }
174
+ .red{
175
+ color: red!important;
176
+ }
177
+ .dis-block{
178
+ display: block !important;
179
+ }
180
+ </style>
@@ -0,0 +1,75 @@
1
+ import Layout from '@/layout'
2
+ import tradeRecord from "@/constant/modules/tradeRecord.js"
3
+ import wallet from "@/constant/modules/wallet.js"
4
+ const balanceRouter = {
5
+ path: '/balance',
6
+ component: Layout,
7
+ sort: 95,
8
+ name: '账户余额',
9
+ redirect: '/balance/list',
10
+ alwaysShow: true,
11
+ meta: {
12
+ title: '账户余额',
13
+ icon: 'xdicon_shoukuanyeji',
14
+ iconSize: 20,
15
+ roles: [wallet.listPartnerWallet, wallet.listSupplierWallet, wallet.listChannelWallet]
16
+ },
17
+ children: [
18
+ {
19
+ path: 'list',
20
+ name: 'PageBalanceList',
21
+ component: () => import('@/viewsFinance/balance/list'),
22
+ meta: {
23
+ title: '账户余额列表',
24
+ icon: 'xdicon_shoukuanyeji',
25
+ roles: [wallet.listPartnerWallet, wallet.listSupplierWallet, wallet.listChannelWallet]
26
+ }
27
+ },
28
+ {
29
+ path: "detail_partner/:id",
30
+ name: "PagePartnerDetail",
31
+ component: () => import("@/viewsFinance/balance/detail_partner"),
32
+ hidden: true,
33
+ meta: {
34
+ title: "加盟商明细对账",
35
+ activeMenu: "/balance/list",
36
+ roles: [tradeRecord.listPartner]
37
+ }
38
+ },
39
+ {
40
+ path: "detail_channel/:id",
41
+ name: "PageChannelDetail",
42
+ component: () => import("@/viewsFinance/balance/detail_channel"),
43
+ hidden: true,
44
+ meta: {
45
+ title: "渠道明细对账",
46
+ activeMenu: "/balance/list",
47
+ roles: [tradeRecord.listSupplier]
48
+ }
49
+ },
50
+ {
51
+ path: "detail_supplier/:id",
52
+ name: "PageSupplierDetail",
53
+ component: () => import("@/viewsFinance/balance/detail_supplier"),
54
+ hidden: true,
55
+ meta: {
56
+ title: "供应商明细对账",
57
+ activeMenu: "/balance/list",
58
+ roles: [tradeRecord.listSupplier]
59
+ }
60
+ },
61
+ {
62
+ path: "detail_openapi/:id",
63
+ name: "PageOpenapiDetail",
64
+ component: () => import("@/viewsFinance/balance/detail_openapi"),
65
+ hidden: true,
66
+ meta: {
67
+ title: "openapi明细对账",
68
+ activeMenu: "/balance/list",
69
+ roles: [tradeRecord.listOpenApi]
70
+ }
71
+ }
72
+ ]
73
+ }
74
+
75
+ export default balanceRouter