Selaa lähdekoodia

* 母婴产品订单

liugc 6 vuotta sitten
vanhempi
commit
656680c709
31 muutettua tiedostoa jossa 47 lisäystä ja 30 poistoa
  1. 1
    0
      hksystem/dist/dist/0.131bc0cee547f32eb572.chunk.js
  2. 0
    1
      hksystem/dist/dist/0.88ece71d8c73ef32a642.chunk.js
  3. 0
    0
      hksystem/dist/dist/1.131bc0cee547f32eb572.chunk.js
  4. 0
    0
      hksystem/dist/dist/10.131bc0cee547f32eb572.chunk.js
  5. 0
    0
      hksystem/dist/dist/11.131bc0cee547f32eb572.chunk.js
  6. 0
    0
      hksystem/dist/dist/12.131bc0cee547f32eb572.chunk.js
  7. 0
    0
      hksystem/dist/dist/13.131bc0cee547f32eb572.chunk.js
  8. 0
    0
      hksystem/dist/dist/14.131bc0cee547f32eb572.chunk.js
  9. 0
    0
      hksystem/dist/dist/2.131bc0cee547f32eb572.chunk.js
  10. 1
    0
      hksystem/dist/dist/3.131bc0cee547f32eb572.chunk.js
  11. 0
    1
      hksystem/dist/dist/3.88ece71d8c73ef32a642.chunk.js
  12. 1
    0
      hksystem/dist/dist/4.131bc0cee547f32eb572.chunk.js
  13. 0
    1
      hksystem/dist/dist/4.88ece71d8c73ef32a642.chunk.js
  14. 0
    0
      hksystem/dist/dist/5.131bc0cee547f32eb572.chunk.js
  15. 1
    0
      hksystem/dist/dist/6.131bc0cee547f32eb572.chunk.js
  16. 0
    1
      hksystem/dist/dist/6.88ece71d8c73ef32a642.chunk.js
  17. 1
    0
      hksystem/dist/dist/7.131bc0cee547f32eb572.chunk.js
  18. 0
    1
      hksystem/dist/dist/7.88ece71d8c73ef32a642.chunk.js
  19. 0
    0
      hksystem/dist/dist/8.131bc0cee547f32eb572.chunk.js
  20. 0
    0
      hksystem/dist/dist/9.131bc0cee547f32eb572.chunk.js
  21. 0
    0
      hksystem/dist/dist/main.131bc0cee547f32eb572.css
  22. 6
    0
      hksystem/dist/dist/main.131bc0cee547f32eb572.js
  23. 0
    6
      hksystem/dist/dist/main.88ece71d8c73ef32a642.js
  24. 1
    1
      hksystem/dist/dist/vender-base.131bc0cee547f32eb572.js
  25. 0
    0
      hksystem/dist/dist/vender-exten.131bc0cee547f32eb572.js
  26. 4
    4
      hksystem/dist/index.html
  27. 1
    1
      hksystem/src/libs/util.js
  28. 1
    1
      hksystem/src/views/homework/homework.vue
  29. 10
    9
      hksystem/src/views/product-order/detail.vue
  30. 18
    2
      hksystem/src/views/product-order/index.vue
  31. 1
    1
      hksystem/src/views/tables/editable-table.vue

+ 1
- 0
hksystem/dist/dist/0.131bc0cee547f32eb572.chunk.js
File diff suppressed because it is too large
Näytä tiedosto


+ 0
- 1
hksystem/dist/dist/0.88ece71d8c73ef32a642.chunk.js
File diff suppressed because it is too large
Näytä tiedosto


hksystem/dist/dist/1.88ece71d8c73ef32a642.chunk.js → hksystem/dist/dist/1.131bc0cee547f32eb572.chunk.js Näytä tiedosto


hksystem/dist/dist/10.88ece71d8c73ef32a642.chunk.js → hksystem/dist/dist/10.131bc0cee547f32eb572.chunk.js Näytä tiedosto


hksystem/dist/dist/11.88ece71d8c73ef32a642.chunk.js → hksystem/dist/dist/11.131bc0cee547f32eb572.chunk.js Näytä tiedosto


hksystem/dist/dist/12.88ece71d8c73ef32a642.chunk.js → hksystem/dist/dist/12.131bc0cee547f32eb572.chunk.js Näytä tiedosto


hksystem/dist/dist/13.88ece71d8c73ef32a642.chunk.js → hksystem/dist/dist/13.131bc0cee547f32eb572.chunk.js Näytä tiedosto


hksystem/dist/dist/14.88ece71d8c73ef32a642.chunk.js → hksystem/dist/dist/14.131bc0cee547f32eb572.chunk.js Näytä tiedosto


hksystem/dist/dist/2.88ece71d8c73ef32a642.chunk.js → hksystem/dist/dist/2.131bc0cee547f32eb572.chunk.js Näytä tiedosto


+ 1
- 0
hksystem/dist/dist/3.131bc0cee547f32eb572.chunk.js
File diff suppressed because it is too large
Näytä tiedosto


+ 0
- 1
hksystem/dist/dist/3.88ece71d8c73ef32a642.chunk.js
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 0
hksystem/dist/dist/4.131bc0cee547f32eb572.chunk.js
File diff suppressed because it is too large
Näytä tiedosto


+ 0
- 1
hksystem/dist/dist/4.88ece71d8c73ef32a642.chunk.js
File diff suppressed because it is too large
Näytä tiedosto


hksystem/dist/dist/5.88ece71d8c73ef32a642.chunk.js → hksystem/dist/dist/5.131bc0cee547f32eb572.chunk.js Näytä tiedosto


+ 1
- 0
hksystem/dist/dist/6.131bc0cee547f32eb572.chunk.js
File diff suppressed because it is too large
Näytä tiedosto


+ 0
- 1
hksystem/dist/dist/6.88ece71d8c73ef32a642.chunk.js
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 0
hksystem/dist/dist/7.131bc0cee547f32eb572.chunk.js
File diff suppressed because it is too large
Näytä tiedosto


+ 0
- 1
hksystem/dist/dist/7.88ece71d8c73ef32a642.chunk.js
File diff suppressed because it is too large
Näytä tiedosto


hksystem/dist/dist/8.88ece71d8c73ef32a642.chunk.js → hksystem/dist/dist/8.131bc0cee547f32eb572.chunk.js Näytä tiedosto


hksystem/dist/dist/9.88ece71d8c73ef32a642.chunk.js → hksystem/dist/dist/9.131bc0cee547f32eb572.chunk.js Näytä tiedosto


hksystem/dist/dist/main.88ece71d8c73ef32a642.css → hksystem/dist/dist/main.131bc0cee547f32eb572.css Näytä tiedosto


+ 6
- 0
hksystem/dist/dist/main.131bc0cee547f32eb572.js
File diff suppressed because it is too large
Näytä tiedosto


+ 0
- 6
hksystem/dist/dist/main.88ece71d8c73ef32a642.js
File diff suppressed because it is too large
Näytä tiedosto


hksystem/dist/dist/vender-base.131bc0cee547f32eb572.js
File diff suppressed because it is too large
Näytä tiedosto


hksystem/dist/dist/vender-exten.88ece71d8c73ef32a642.js → hksystem/dist/dist/vender-exten.131bc0cee547f32eb572.js Näytä tiedosto


+ 4
- 4
hksystem/dist/index.html Näytä tiedosto

@@ -5,7 +5,7 @@
5 5
     <title>家政后台</title>
6 6
     <meta charset="UTF-8">
7 7
     <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
8
-    <link rel="stylesheet" href="/dist/main.88ece71d8c73ef32a642.css">
8
+    <link rel="stylesheet" href="/dist/main.131bc0cee547f32eb572.css">
9 9
     <link rel="stylesheet" name="theme" href="">
10 10
     <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
11 11
 </head>
@@ -13,9 +13,9 @@
13 13
 <body>
14 14
     <div id="app"></div>
15 15
     <div class="lock-screen-back" id="lock_screen_back"></div>
16
-    <script type="text/javascript" src="/dist/vender-base.88ece71d8c73ef32a642.js"></script>
17
-    <script type="text/javascript" src="/dist/vender-exten.88ece71d8c73ef32a642.js"></script>
18
-    <script type="text/javascript" src="/dist/main.88ece71d8c73ef32a642.js"></script>
16
+    <script type="text/javascript" src="/dist/vender-base.131bc0cee547f32eb572.js"></script>
17
+    <script type="text/javascript" src="/dist/vender-exten.131bc0cee547f32eb572.js"></script>
18
+    <script type="text/javascript" src="/dist/main.131bc0cee547f32eb572.js"></script>
19 19
 </body>
20 20
 
21 21
 </html>

+ 1
- 1
hksystem/src/libs/util.js Näytä tiedosto

@@ -40,7 +40,7 @@ util.ajax.interceptors.request.use((config) => {
40 40
 });
41 41
 
42 42
 util.ajax.interceptors.response.use((response) => {
43
-    console.log(response);
43
+    // console.log(response);
44 44
     if (response.data.error && response.data.error == 403) {
45 45
         Vue.$login();
46 46
     }

+ 1
- 1
hksystem/src/views/homework/homework.vue Näytä tiedosto

@@ -180,7 +180,7 @@ export default {
180 180
                     content: tinymce.activeEditor.getContent()
181 181
                 }).then((res) => {
182 182
                     this.publishLoading = false;
183
-                    console.log(res);
183
+                    // console.log(res);
184 184
                 })
185 185
                 
186 186
                 // setTimeout(() => {

+ 10
- 9
hksystem/src/views/product-order/detail.vue Näytä tiedosto

@@ -9,13 +9,10 @@
9 9
                 <Card>
10 10
                     <Form :label-width="100">
11 11
                         <FormItem label="产品id:">
12
-                            <span>{{formContent.product_id}}</span>
12
+                            <span>{{formContent.id}}</span>
13 13
                         </FormItem>
14
-                        <FormItem label="产品名称:">
15
-                            <span>{{formContent.product_name}}</span>
16
-                        </FormItem>
17
-                        <FormItem label="购买数量:">
18
-                            <span>{{formContent.amount}}</span>
14
+                        <FormItem label="产品列表:">
15
+                            <span v-html="formContent.list"></span>
19 16
                         </FormItem>
20 17
                         <FormItem label="买家备注:">
21 18
                             <span>{{formContent.remark}}</span>
@@ -66,11 +63,15 @@ export default {
66 63
     computed: {
67 64
         photo() {
68 65
             let src = this.formContent.photo;
66
+            let html = "";
69 67
             if (src) {
70
-                return `<img src="${src}" />`;
71
-            } else {
72
-                return '';
68
+                let imgs = src.split(";");
69
+                imgs.forEach((img) => {
70
+                    html += `<img src="${img}" style="margin-right:3px;" />`;
71
+                });
72
+
73 73
             }
74
+            return html;
74 75
         }
75 76
     },
76 77
     data () {

+ 18
- 2
hksystem/src/views/product-order/index.vue Näytä tiedosto

@@ -69,7 +69,8 @@ export default {
69 69
             keyword: '',
70 70
             formContent: {},
71 71
             columns: [
72
-                {title: "产品名称", key: 'product'},
72
+                {title: "产品列表", key: 'list', type: 'html', width: 300},
73
+                // {title: "产品名称", key: 'name'},
73 74
                 // {title: "购买数量", key: 'amount'},
74 75
                 // {title: "买家备注", key: 'remark'},
75 76
                 // {title: "卖家备注", key: 'info'},
@@ -178,7 +179,22 @@ export default {
178 179
                     page: num || 1
179 180
                 }
180 181
             }).then((res) => {
181
-                this.products = res.data.data;
182
+                let products = [];
183
+                res.data.data.forEach((product, i) => {
184
+                    let obj = JSON.parse(JSON.stringify(product));
185
+                    let list = [];
186
+                    let photo = [];
187
+                    product.products.forEach((pro) => {
188
+                        list.push(`分类:${pro.classify},产品:${pro.name},数量:${pro.pivot.product_amount}`);
189
+                        if (pro.photo) {
190
+                            photo.push(pro.photo);
191
+                        }
192
+                    });
193
+                    obj.list = list.join("<br>");
194
+                    obj.photo = photo.join(";");
195
+                    products.push(obj);
196
+                });
197
+                this.products = products;
182 198
                 this.pageSize = res.data.per_page;
183 199
                 this.total = res.data.total;
184 200
             });

+ 1
- 1
hksystem/src/views/tables/editable-table.vue Näytä tiedosto

@@ -108,7 +108,7 @@ export default {
108 108
                                         let id = params.row.id;
109 109
                                         this.axios.delete(`/api/campaign/${id}`)
110 110
                                             .then((res) => {
111
-                                                console.log(res);
111
+                                                // console.log(res);
112 112
                                             });
113 113
                                     }
114 114
                                 }

Loading…
Peruuta
Tallenna