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,395 @@
1
+ <template>
2
+ <div class="app-container">
3
+ <div class="app-container__title">{{title}}</div>
4
+ <el-card class="app-container__search">
5
+ <el-form :model="searchForm">
6
+ <el-form-item label="发货方式">
7
+ <el-radio v-model="searchForm.is_need_logistics" label="Y">需要物流</el-radio>
8
+ <el-radio v-model="searchForm.is_need_logistics" label="N">不需要物流</el-radio>
9
+ </el-form-item>
10
+ <el-form-item label="快递公司" v-if="searchForm.is_need_logistics==='Y'">
11
+ <el-select v-model="searchForm.company_id" placeholder="快递公司">
12
+ <el-option label="顺丰" value="1"></el-option>
13
+ <el-option label="京东" value="2"></el-option>
14
+ </el-select>
15
+ </el-form-item>
16
+ </el-form>
17
+ </el-card>
18
+ <el-card class="app-container__list">
19
+ <div class="app-container__list-pagination">
20
+ <div>
21
+ <el-button size="medium" type="primary" @click="batchFilling">批量填写快递单号</el-button>
22
+ <el-button size="medium" type="primary" @click="handleImport">导入发货</el-button>
23
+ </div>
24
+ </div>
25
+ <div class="app-container__list-table">
26
+ <xd-table
27
+ :default-select="['12987122','12987126']"
28
+ :get-link="getLink"
29
+ :headers="orderHeaders"
30
+ :list="tables"
31
+ :hasExpand="true"
32
+ :stripe="false"
33
+ :custom-function="handleCustom"
34
+ ref="saveTableRef"
35
+ default-expand-all
36
+ @onClick="handleCilck"
37
+ @onSelect="handleSelect"
38
+ >
39
+ <template slot="expand" slot-scope="scope">
40
+ <xd-table
41
+ is-border
42
+ :stripe="false"
43
+ :show-header="false"
44
+ :get-link="getLinkChild"
45
+ :headers="orderHeadersIn"
46
+ :list="scope.row.product_list"
47
+ :custom-function="handleInCustom"
48
+ @change="saveTableChange"
49
+ default-expand-all
50
+ @onSelect="handleSelectChild"
51
+ >
52
+ <template slot="info" slot-scope="scope">
53
+ <xd-store-product
54
+ :key="tableRefresh"
55
+ :list="getProductInfo(scope.row)"
56
+ width="60"
57
+ height="60"
58
+ ></xd-store-product>
59
+ </template>
60
+ <template slot="comment" slot-scope="scopes">
61
+ <div>收货人:{{scope.row.receipt_username}}</div>
62
+ <div>手机号:{{scope.row.receipt_phone_number}}</div>
63
+ <div>收货地址:{{scope.row.address_detail}}</div>
64
+ <div>配送时间:{{scope.row.subscribe_time}}</div>
65
+ <div>订单备注:{{scope.row.comment}}</div>
66
+ </template>
67
+ <template slot="operate" slot-scope="scopes">
68
+ <el-button
69
+ v-if="scope.row.product_list.length>1"
70
+ style="text-align: center"
71
+ type="primary"
72
+ size="small"
73
+ @click="handleAlone(scope,scopes)"
74
+ >单独发货</el-button>
75
+ </template>
76
+ </xd-table>
77
+ </template>
78
+ </xd-table>
79
+ </div>
80
+ <div style="padding-left: 150px">
81
+ <el-button @click="goBack" type="primary">返回</el-button>
82
+ <el-button @click="handleConfirm" type="primary">批量发货</el-button>
83
+ </div>
84
+ </el-card>
85
+ <xd-dialog
86
+ title="填写快递单号"
87
+ :show.sync="dialogVisibleNumber"
88
+ width="50%"
89
+ @onConfirm="handleVisibleNumber"
90
+ @onClose="handleClose"
91
+ @onCancel="handleClose"
92
+ >
93
+ <div style="margin-bottom: 10px">快递单号:</div>
94
+ <el-input type="input" v-model="express_code"></el-input>
95
+ </xd-dialog>
96
+ </div>
97
+ </template>
98
+
99
+ <script>
100
+ import XdSearch from "@/components/XdSearch"
101
+ import XdTableImage from "@/components/XdTableImage"
102
+ import {
103
+ mapActions,
104
+ mapState,
105
+ } from 'vuex'
106
+ import { Loading } from 'element-ui'
107
+ import XdPagination from "@/components/XdPagination.vue"
108
+ import XdTable from "@/components/XdTable"
109
+ import XdTablePrice from "@/components/XdTablePrice"
110
+ import XdStoreProduct from "@/components/XdStoreProduct"
111
+ import { getOptions } from "@/utils/options"
112
+ import XdDialog from "@/components/XdDialog"
113
+
114
+ export default {
115
+ name: "cake_order",
116
+ components: {
117
+ XdPagination,
118
+ XdSearch,
119
+ XdTableImage,
120
+ XdTable,
121
+ XdTablePrice,
122
+ XdStoreProduct,
123
+ XdDialog
124
+ },
125
+ props: {
126
+ selectData: {
127
+ type: Array | null,
128
+ default: null
129
+ },
130
+ },
131
+ // mixins: [downloadString, getChannelList],
132
+
133
+ data () {
134
+ return {
135
+ searchForm: {
136
+ is_need_logistics: 'Y',
137
+ company_id: '',
138
+ },
139
+ tables: [],
140
+ multipleSelection: [],
141
+ orderNumber: "",
142
+ subOrderNumber: '',
143
+ tableRefresh: 'tableRefresh',
144
+ orderHeaders: [
145
+ { type: 'selection' },
146
+ { type: 'expand', hide: true },
147
+ { type: 'index', prop: 'index', align: 'center', width: 120, },
148
+ { type: 'normal', sort: true, prop: 'info', align: 'center', minWidth: 150, label: '商品信息' },
149
+ { type: 'normal', prop: 'num', align: 'center', width: 120, label: '数量' },
150
+ { type: 'normal', prop: 'comment', align: 'left', label: '配送信息及备注' },
151
+ { type: 'normal', prop: 'logistics_number', align: 'center', width: 150, label: '快递单号' },
152
+ {
153
+ type: 'operate',
154
+ align: 'center',
155
+ prop: 'operate',
156
+ width: 110,
157
+ label: '操作',
158
+ values: [
159
+ { ui: 'text-link', target: '_blank', name: '查看订单', type: 'text' },
160
+ ]
161
+ }
162
+ ],
163
+ orderHeadersIn: [
164
+ { type: 'normal', sort: true, prop: 'info', align: 'left', minWidth: 150, label: '商品信息', rowspan: 4 },
165
+ { type: 'normal', prop: 'num', align: 'center', width: 120, label: '数量' },
166
+ { type: 'normal', prop: 'comment', align: 'left', label: '配送信息及备注' },
167
+ { type: 'input', prop: 'logistics_number', align: 'center', width: 150, label: '快递单号' },
168
+ {
169
+ type: 'operate',
170
+ align: 'center',
171
+ prop: 'operate',
172
+ width: 110,
173
+ label: '操作',
174
+ // values: [
175
+ // {ui: 'text-button', target: '_blank', name: '单独发货', type: 'text'},
176
+ // ]
177
+ }
178
+ ],
179
+ list: [],
180
+ express_code: '',
181
+ dialogVisibleNumber: false,
182
+ tableKey: '',
183
+ multipleSelectionData: [],
184
+ }
185
+ },
186
+ watch: {
187
+ selectData: {
188
+ handler (n, o) {
189
+ if (n) {
190
+ this.tables = n
191
+ }
192
+ },
193
+ deep: true
194
+ },
195
+ },
196
+ created () {
197
+ this.title = this.$route.meta.title
198
+ this.tables = this.selectData
199
+ this.tables.map(item => {
200
+ item.logistics_number = ''
201
+ item.product_list.map(ls => {
202
+ ls.logistics_number = ''
203
+ ls.main_order_id = item.main_order_id
204
+ ls.sub_order_id = item.sub_order_id
205
+ })
206
+ })
207
+ },
208
+
209
+ methods: {
210
+ ...mapActions('corders',
211
+ ['getMainOrderList',
212
+ 'logisticsCheckUnableSend',
213
+ 'logisticsMultiSend'
214
+ ]
215
+ ),
216
+
217
+ /**
218
+ * @description 选中
219
+ */
220
+ handleSelect ({ value, select }) {
221
+ this.multipleSelection = this.$xdHelper.getListKeyForValue(select, 'main_order_id')
222
+ this.multipleSelectionData = select.map(item => item.main_order_id)
223
+ },
224
+
225
+ handleSelectChild ({ value, select }) {
226
+ console.log(value, select, 'selectchild')
227
+ },
228
+
229
+ /**单独发货**/
230
+ handleAlone (e, row) {
231
+ let onlyData = row
232
+ onlyData['product_list'] = [row.row]
233
+ this.tables.push(onlyData)
234
+ this.tables = this.tables[e.index]['product_list'].splice(row.index, 1)
235
+ },
236
+
237
+ handlePagination (page) {
238
+ this.pageSize = page
239
+ this.getList()
240
+ },
241
+
242
+ getLink ({ row, value, index }) {
243
+ return `/corders/detail/${row.main_order_id}/${row.business_code}`
244
+ },
245
+
246
+ handleCustom ({ action, data }) {
247
+ if (action === 'merge') {
248
+ //这里必须启用懂下来列才能使用下来功能
249
+ //合并列操作 从第3列开始一共合并5列,被合并列必须返回[0,0]
250
+ let mergeColumn = 4
251
+ let startColumn = 2
252
+
253
+ //rowIndex,columnIndex的值是从0开始
254
+ let { row, column, rowIndex, columnIndex } = data
255
+
256
+ if (columnIndex === startColumn) {
257
+ return [1, mergeColumn]
258
+ }
259
+ if (columnIndex > startColumn && columnIndex < startColumn + mergeColumn) {
260
+ return [0, 0]
261
+ }
262
+ }
263
+ },
264
+
265
+ handleInCustom ({ action, data }) {
266
+ if (action === 'merge') {
267
+ let mergeRow = 1
268
+ let maxRow = 100 //需要合并的最大行数
269
+ let { row, column, rowIndex, columnIndex } = data
270
+
271
+ //rowIndex,columnIndex的值是从0开始
272
+ let mergeColumns = [2, 3,] //第4列需要合并行,并且合并到数组最大值,
273
+
274
+ const check = (i) => {
275
+ return mergeColumns.filter(key => {
276
+ return key === i
277
+ }).length > 0
278
+ }
279
+
280
+ if (rowIndex === 0) {
281
+ if (check(columnIndex)) {
282
+ return [maxRow, 1]
283
+ } else return [1, 1]
284
+ } else {
285
+ if (check(columnIndex)) {
286
+ return [0, 0]
287
+ } else return [1, 1]
288
+ }
289
+ }
290
+
291
+ },
292
+
293
+
294
+ getInfo (row) {
295
+ return `运单`
296
+ },
297
+ handleCilck ({ row, value, index }) {
298
+ console.log('handleCilck', row, value, index)
299
+ },
300
+
301
+ getLinkChild ({ row, value, index }) {
302
+ return `/table/form/${row.id}`
303
+ },
304
+
305
+ /**商品信息**/
306
+ getProductInfo (value) {
307
+ return {
308
+ thumb: this.getImageFullPath(value.product_thumb),
309
+ title: value.product_name,
310
+ icon: value.type === 'good' ? '实' : value.type === 'virtual' ? '虚' : value.type === 'card' ? '卡' : value.type === 'network' ? '生' : value.type === 'settle' ? '核' : '',
311
+ specific: value.product_sku_name, params: { width: 150, height: 150 },
312
+ status: value.aftersale_status_name
313
+ }
314
+ },
315
+ goBack () {
316
+ this.$emit('back', 1)
317
+ },
318
+ /**确定批量发货**/
319
+ handleConfirm () {
320
+ if (this.multipleSelection.length === 0) {
321
+ this.$message({
322
+ type: 'error',
323
+ message: '请选择运单'
324
+ })
325
+ return
326
+ }
327
+ let data = {
328
+ ...this.searchForm,
329
+ package_list: this.tables.filter(item => this.multipleSelectionData.includes(item.main_order_id)),
330
+ }
331
+ this.logisticsMultiSend(data).then(res => {
332
+ this.$message({
333
+ type: 'error',
334
+ message: '发货成功'
335
+ })
336
+ this.goBack()
337
+ }).catch(err => {
338
+ console.log(err, 'errrr')
339
+ })
340
+
341
+ },
342
+ /**批量填写快递单号**/
343
+ batchFilling () {
344
+ this.dialogVisibleNumber = true
345
+ },
346
+ /**批量填写快递单号确定**/
347
+ handleVisibleNumber () {
348
+ this.tableKey = Date.now()
349
+ this.tables.map((item, index) => {
350
+ item.logistics_number = Number(this.express_code) + index
351
+ item.product_list.map(ls => {
352
+ ls.logistics_number = item.logistics_number
353
+ })
354
+ })
355
+ this.dialogVisibleNumber = false
356
+ },
357
+ handleClose () {
358
+ this.dialogVisibleNumber = false
359
+ },
360
+ /**运单号改变**/
361
+ saveTableChange ({ value, data }) {
362
+ this.tables = this.tables.map(item => {
363
+ let hasProd = item['product_list'].find(prod => prod.product_id == data.product_id)
364
+ if (hasProd) {
365
+ item['logistics_number'] = value
366
+ }
367
+ item['product_list'] = item['product_list'].map(prod => {
368
+ if (prod.product_id == data.product_id) item['logistics_number'] = value
369
+ return prod
370
+ })
371
+ return item
372
+ })
373
+ },
374
+ /**导入发货**/
375
+ handleImport () {
376
+ this.$router.push('/corders/import_list')
377
+ },
378
+ }
379
+ }
380
+ </script>
381
+
382
+ <style scoped lang="scss">
383
+ .app-container__title {
384
+ font-size: 16px;
385
+ line-height: 24px;
386
+ padding: 0 0 20px;
387
+ font-weight: bold;
388
+ }
389
+
390
+ @media screen and (max-width: 768px) {
391
+ .app-container__title {
392
+ padding: 0 0 10px;
393
+ }
394
+ }
395
+ </style>
@@ -0,0 +1,100 @@
1
+ <template>
2
+ <div class="app-container__list-card" style="margin-bottom: 10px;">
3
+ <el-card>
4
+ <div slot="header" class="clearfix">
5
+ <span>门店信息</span>
6
+ </div>
7
+ <div class="app-container__list-table">
8
+ <xd-table :headers="headers" :list="tables" is-border>
9
+ <template slot="info" slot-scope="scope">
10
+ <div>{{scope.row.shop_name}}</div>
11
+ </template>
12
+ </xd-table>
13
+ </div>
14
+ </el-card>
15
+ </div>
16
+ </template>
17
+
18
+ <script>
19
+ import {
20
+ mapActions,
21
+ mapState,
22
+ } from 'vuex'
23
+ import { Loading } from 'element-ui'
24
+ import XdTable from "@/components/XdTable"
25
+
26
+ export default {
27
+ name: "store_list",
28
+ components: {
29
+ XdTable,
30
+ },
31
+
32
+ data () {
33
+ return {
34
+ tables: [],
35
+ multipleSelection: [],
36
+ tableRefresh: 'tableRefresh',
37
+ total: 0,
38
+ headers: [{
39
+ "type": "normal",
40
+ "prop": "shop_id",
41
+ "align": "left",
42
+ "width": 200,
43
+ "label": "门店ID"
44
+ }, {
45
+ "type": "normal",
46
+ "prop": "info",
47
+ "align": "center",
48
+ "minWidth": 200,
49
+ "label": "门店信息"
50
+ }, {
51
+ "type": "normal",
52
+ "prop": "shop_phone_number",
53
+ "align": "center",
54
+ "minWidth": 200,
55
+ "label": "联系方式"
56
+ }, {
57
+ "type": "normal",
58
+ "prop": "shop_address",
59
+ "align": "center",
60
+ "minWidth": 200,
61
+ "label": "门店地址"
62
+ }],
63
+ }
64
+ },
65
+ props: {
66
+ data: {
67
+ type: Array,
68
+ default () {
69
+ return []
70
+ }
71
+ }
72
+ },
73
+ created () {
74
+ this.title = this.$route.meta.title
75
+ this.getList()
76
+ },
77
+
78
+ methods: {
79
+ getList () {
80
+ this.tables = this.$xdHelper.cloneDeep(this.data)
81
+ console.log(this.tables, 'this.tables')
82
+ },
83
+ }
84
+ }
85
+ </script>
86
+
87
+ <style scoped lang="scss">
88
+ .app-container__title {
89
+ font-size: 16px;
90
+ line-height: 24px;
91
+ padding: 0 0 20px;
92
+ font-weight: bold;
93
+ }
94
+
95
+ @media screen and (max-width: 768px) {
96
+ .app-container__title {
97
+ padding: 0 0 10px;
98
+ }
99
+ }
100
+ </style>
@@ -0,0 +1,163 @@
1
+ <template>
2
+ <div class="app-container__list-card" style="margin-bottom: 10px;">
3
+ <el-card>
4
+ <div slot="header" class="clearfix">
5
+ <span>工单记录</span>
6
+ </div>
7
+ <div class="app-container__list-table">
8
+ <xd-table :headers="headers" :list="tables" is-border>
9
+ <template slot="work_order_id" slot-scope="scope">
10
+ <router-link target="_self" :to="toWorkList(scope.row.work_order_id)">
11
+ <el-link type="primary" size="small">{{scope.row.work_order_id}}</el-link>
12
+ </router-link>
13
+ </template>
14
+ <template slot="customer_feedback" slot-scope="scope">
15
+ <div v-html="scope.row.customer_feedback" class="feedBox"></div>
16
+ </template>
17
+ </xd-table>
18
+ </div>
19
+ <div class="app-container__list-pagination">
20
+ <xd-pagination
21
+ :total="total"
22
+ :limit.sync="limit"
23
+ :page="pageSize"
24
+ :auto-scroll="false"
25
+ @onPagination="handlePagination"
26
+ ></xd-pagination>
27
+ </div>
28
+ </el-card>
29
+ </div>
30
+ </template>
31
+
32
+ <script>
33
+ import {
34
+ mapActions,
35
+ mapState,
36
+ } from 'vuex'
37
+ import { Loading } from 'element-ui'
38
+ import XdPagination from "@/components/XdPagination.vue"
39
+ import XdTable from "@/components/XdTable"
40
+
41
+ export default {
42
+ name: "work_history",
43
+ components: {
44
+ XdPagination,
45
+ XdTable,
46
+ },
47
+
48
+ // mixins: [downloadString, getChannelList],
49
+
50
+ data () {
51
+ return {
52
+ pageSize: 1,//当前页面数量
53
+ hasNextPage: true,
54
+ limit: 20,
55
+ tables: [],
56
+ multipleSelection: [],
57
+ tableRefresh: 'tableRefresh',
58
+ total: 0,
59
+ headers: [
60
+ {
61
+ "type": "normal",
62
+ "prop": "deal_user_name",
63
+ "align": "center",
64
+ "width": 200,
65
+ "label": "工单创建人"
66
+ }, {
67
+ "type": "normal",
68
+ "prop": "customer_feedback",
69
+ "align": "center",
70
+ "minWidth": 200,
71
+ "label": "反馈内容"
72
+ }, {
73
+ "type": "normal",
74
+ "prop": "work_order_id",
75
+ "align": "center",
76
+ "minWidth": 200,
77
+ "label": "工单号"
78
+ }, {
79
+ "type": "normal",
80
+ "prop": "created_time",
81
+ "align": "center",
82
+ "minWidth": 200,
83
+ "label": "工单创建时间"
84
+ },
85
+ ],
86
+ }
87
+ },
88
+ props: {
89
+ main_order_id: "",
90
+ sub_order_id: '',
91
+ },
92
+ created () {
93
+ this.title = this.$route.meta.title
94
+ this.getList()
95
+ },
96
+
97
+ methods: {
98
+
99
+ ...mapActions('corders',
100
+ [
101
+ 'workOrderListByOrder',
102
+ ]
103
+ ),
104
+ getList () {
105
+ console.log(!this.main_order_id, 'main_order_id')
106
+ //请求数据
107
+ let params = {
108
+ page_token: this.pageSize,
109
+ page_size: this.limit,
110
+ main_order_id: !this.main_order_id ? '' : this.main_order_id,
111
+ sub_order_id: !this.sub_order_id ? '' : this.sub_order_id,
112
+ }
113
+ console.log(params)
114
+ let loading = Loading.service({})
115
+ this.workOrderListByOrder(params).then(res => {
116
+ const { list, total_size } = res.data
117
+ list.map(item => {
118
+ item.updated_time = window.getTimeFormat(item.updated_time)
119
+ item.created_time = window.getTimeFormat(item.created_time)
120
+ })
121
+ this.tables = list
122
+ console.log(this.tables, ' this.tables,11')
123
+ this.total = total_size
124
+ loading.close()
125
+ }).catch(e => loading.close())
126
+ },
127
+ /**
128
+ * @description 翻页处理方法
129
+ * @param page {Number} 访问页面页码数
130
+ */
131
+ handlePagination (page) {
132
+ this.pageSize = page
133
+ this.getList()
134
+ }, //todo
135
+
136
+ /**跳转工单列表**/
137
+ toWorkList (item) {
138
+ return `/corders/work_detail/${item}`
139
+ },
140
+
141
+ }
142
+ }
143
+ </script>
144
+
145
+ <style scoped lang="scss">
146
+ .app-container__title {
147
+ font-size: 16px;
148
+ line-height: 24px;
149
+ padding: 0 0 20px;
150
+ font-weight: bold;
151
+ }
152
+
153
+ @media screen and (max-width: 768px) {
154
+ .app-container__title {
155
+ padding: 0 0 10px;
156
+ }
157
+ }
158
+ .feedBox{
159
+ & ::v-deep img{
160
+ max-width: 160px!important;
161
+ }
162
+ }
163
+ </style>