wangfei 6 år sedan
förälder
incheckning
af7676185d

+ 1
- 1
config/index.js Visa fil

@@ -12,7 +12,7 @@ module.exports = {
12 12
     proxyTable: {
13 13
       '/api': {
14 14
         // target: 'https://dp.huiju360.com.cn/hj_operations',
15
-        target: 'http://192.168.0.62:8080', //wf
15
+        target: 'http://localhost:8080', //wf
16 16
         // target: 'http://192.168.0.11:8088', //zys
17 17
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
18 18
         // pathRewrite: {

+ 0
- 2
dist/static/css/app.9a8721a89ee6a280033371ac1a4cd30e.css
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 0
- 1
dist/static/css/app.9a8721a89ee6a280033371ac1a4cd30e.css.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


Binär
dist/static/fonts/element-icons.6f0a763.ttf Visa fil


+ 0
- 2
dist/static/js/app.f3f484966c7795e437dd.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 0
- 1
dist/static/js/app.f3f484966c7795e437dd.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 0
- 2
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js Visa fil

@@ -1,2 +0,0 @@
1
-!function(r){var n=window.webpackJsonp;window.webpackJsonp=function(e,u,c){for(var f,i,p,a=0,l=[];a<e.length;a++)i=e[a],o[i]&&l.push(o[i][0]),o[i]=0;for(f in u)Object.prototype.hasOwnProperty.call(u,f)&&(r[f]=u[f]);for(n&&n(e,u,c);l.length;)l.shift()();if(c)for(a=0;a<c.length;a++)p=t(t.s=c[a]);return p};var e={},o={2:0};function t(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return r[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=r,t.c=e,t.d=function(r,n,e){t.o(r,n)||Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:e})},t.n=function(r){var n=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(n,"a",n),n},t.o=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)},t.p="./",t.oe=function(r){throw console.error(r),r}}([]);
2
-//# sourceMappingURL=manifest.3ad1d5771e9b13dbdad2.js.map

+ 0
- 1
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map Visa fil

@@ -1 +0,0 @@
1
-{"version":3,"sources":["webpack:///webpack/bootstrap 67f48e46710049e36669"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","p","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAT,EAGAE,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACAhB,OAAAmB,eAAAT,EAAAM,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAX,EAAAiB,EAAA,SAAAZ,GACA,IAAAM,EAAAN,KAAAa,WACA,WAA2B,OAAAb,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAO,EAAAC,GAAsD,OAAA1B,OAAAC,UAAAC,eAAAC,KAAAsB,EAAAC,IAGtDpB,EAAAqB,EAAA,KAGArB,EAAAsB,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.3ad1d5771e9b13dbdad2.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 67f48e46710049e36669"],"sourceRoot":""}

+ 0
- 71
dist/static/js/vendor.9ceafbb898c5feb95a34.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 0
- 1
dist/static/js/vendor.9ceafbb898c5feb95a34.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 4
- 4
src/pages/system/cardAndCouponManager/vipManager/edit.vue Visa fil

@@ -23,7 +23,7 @@
23 23
             <div style="width:50%">
24 24
               <el-input
25 25
                 placeholder="请输入VIP卡数量"
26
-                v-model="postData.CardNum"
26
+                v-model="postData.TotalCount"
27 27
                 clearable>
28 28
               </el-input>
29 29
             </div>
@@ -35,7 +35,7 @@
35 35
             <div style="width:50%">
36 36
               <el-input
37 37
                 placeholder="请输入价格"
38
-                v-model="postData.Price"
38
+                v-model="postData.CardAmount"
39 39
                 clearable>
40 40
               </el-input>
41 41
             </div>
@@ -57,8 +57,8 @@ export default {
57 57
   data () {
58 58
     return {
59 59
       postData: {
60
-        CardNum: '', // 卡数量
61
-        Price: '', // 价格
60
+        TotalCount: '', // 卡数量
61
+        CardAmount: '', // 价格
62 62
         CaseId: '', // 案场id
63 63
       }
64 64
     }

+ 12
- 12
src/pages/system/cardAndCouponManager/vipManager/index.vue Visa fil

@@ -53,7 +53,7 @@
53 53
     </div>
54 54
     <div class="system-table-box">
55 55
       <el-table
56
-        :data="currentList"
56
+        :data="vips.list"
57 57
         stripe
58 58
         style="width: 100%">
59 59
         <el-table-column
@@ -101,7 +101,9 @@
101 101
 </template>
102 102
 
103 103
 <script>
104
-import { mapState } from 'vuex'
104
+import { createNamespacedHelpers, mapState } from 'vuex'
105
+
106
+const { mapState: mapVipState, mapActions: mapVipActions } = createNamespacedHelpers('vip')
105 107
 
106 108
 export default {
107 109
   name: '',
@@ -116,16 +118,6 @@ export default {
116 118
         sellerName: '', // 销售姓名
117 119
         userName: '', // 用户名
118 120
       },
119
-      currentList: [{
120
-        CardNo: 'xxx',
121
-        Price: 'xxx',
122
-        Status: 'xxx',
123
-        SellerName: 'xxx',
124
-        CaseName: 'xxx',
125
-        UserName: 'xxx',
126
-        ActivationTime: 'xxx',
127
-        CreatTime: 'xxx',
128
-      }]
129 121
     }
130 122
   },
131 123
   mounted () {
@@ -134,6 +126,9 @@ export default {
134 126
     })
135 127
   },
136 128
   computed: {
129
+    ...mapVipState({
130
+      vips: x => x.vipList,
131
+    }),
137 132
     ...mapState({
138 133
       cases: x => x.app.cases.list,
139 134
       defaultCaseId: x => x.app.cases.default
@@ -148,14 +143,19 @@ export default {
148 143
     }
149 144
   },
150 145
   methods: {
146
+    ...mapVipActions([
147
+      'GetVipList',
148
+    ]),
151 149
     search () { // 搜索
152 150
       this.postData.page = 1
153 151
       this.currentList = []
154 152
       this.getList()
155 153
     },
156 154
     getList () { // 获取列表
155
+      this.GetVipList({...this.postData, caseid: this.CaseId})
157 156
     },
158 157
     handleCurrentChange (val) { // 跳转到分页
158
+      this.postData.page = val
159 159
       this.getList()
160 160
     },
161 161
     addVIP () {

+ 41
- 0
src/store/card/vip.js Visa fil

@@ -0,0 +1,41 @@
1
+import ajax from '../../util/ajax'
2
+import api from '../../util/api'
3
+
4
+export default {
5
+  namespaced: true,
6
+  state: {
7
+    vipList: [],
8
+  },
9
+  mutations: {
10
+    updateList (state, payload) {
11
+      state.vipList = payload || []
12
+    },
13
+  },
14
+  actions: {
15
+    GetVipList ({ commit }, payload) {
16
+      return new Promise((resolve, reject) => {
17
+        ajax(api.cardManager.viplist.url, {
18
+          method: api.cardManager.viplist.method,
19
+          queryData: {
20
+            ...payload,
21
+          }
22
+        }).then(res => {
23
+          commit('updateList', res)
24
+          resolve(res)
25
+        }).catch(reject)
26
+      })
27
+    },
28
+    AddVip ({ commit }, payload) {
29
+      return new Promise((resolve, reject) => {
30
+        ajax(api.cardManager.vipadd.url, {
31
+          method: api.cardManager.vipadd.method,
32
+          data: {
33
+            ...payload,
34
+          }
35
+        }).then(res => {
36
+          resolve(res)
37
+        }).catch(reject)
38
+      })
39
+    }
40
+  }
41
+}

+ 1
- 0
src/store/index.js Visa fil

@@ -25,6 +25,7 @@ export const modules = {
25 25
   goodsorder: () => require('./goods/order').default,
26 26
   cmscase: () => require('./cms/case').default,
27 27
   caserecord: () => require('./case/record').default,
28
+  vip: () => require('./card/vip').default,
28 29
 }
29 30
 
30 31
 Object.keys(modules).forEach((modKey) => {

+ 15
- 1
src/util/api.js Visa fil

@@ -1,4 +1,4 @@
1
-const baseUrl = '/api'
1
+const baseUrl = '/api-v2'
2 2
 const common = '/common/:org'
3 3
 const guest = '/guest/:org'
4 4
 
@@ -543,5 +543,19 @@ const $api = {
543 543
       url: `${baseUrl}${common}/order/goods/record/:id`
544 544
     },
545 545
   },
546
+  cardManager: {
547
+    viplist: {
548
+      method: 'get',
549
+      url: `${baseUrl}${common}/vipcard`
550
+    },
551
+    vipadd: {
552
+      method: 'post',
553
+      url: `${baseUrl}${common}/vipcard`
554
+    },
555
+    vipcharge: {
556
+      method: 'put',
557
+      url: `${baseUrl}${common}/vipcard/:code`
558
+    },
559
+  },
546 560
 }
547 561
 export default $api