230320a303 1 year ago
parent
commit
b55dbf6efa

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.53de275a.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.839bccbb.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-d6a879e8.0002dc23.js


+ 3 - 0
src/api/other.js

@@ -25,5 +25,8 @@ export default {
   admlotteryuserlist: params => { // 参与用户列表
     return getRequest('/adm/lottery/user/list', params)
   },
+  admlotteryprixchange: params => { // 中奖核销
+    return getRequest('/adm/lottery/prix/change', params)
+  },
 }
 

+ 1 - 0
src/views/jiangtou/components/searchForm/Prizeulist.vue

@@ -30,6 +30,7 @@ export default {
       this.searchData = [
         { label: '用户id', key: 'user_id' },
         { label: '手机号', key: 'phone' },
+        { label: '已核销', key: 'is_handle', type: 'select', options: this.$dictData.sys_yesno},
       ]
       this.setDefaultValue(params, 'searchData')
     },

+ 21 - 3
src/views/jiangtou/prizeulist.vue

@@ -43,7 +43,9 @@ export default {
   computed: {
     tableData2() {
       const arr = [...this.tableData]
-      arr.map(item => {})
+      arr.map(item => {
+        if (item.is_handle == 1) item.isEd = true
+      })
       return arr
     }
   },
@@ -51,15 +53,31 @@ export default {
   mounted() {
     this.listConfig = {
       rows: [
-        { label: '用户id', prop: 'user_id' },
         { label: '手机号', prop: 'phone' },
-        { label: 'openid', prop: 'openid' },
+        { label: '已核销', prop: 'is_handle', type: 'tag', tags: arrToObj(this.$dictData.sys_yesno) },
         { label: '奖品', prop: 'prize' },
+        { label: 'openid', prop: 'openid' },
+        { label: '用户id', prop: 'user_id' },
         { label: '创建时间', prop: 'create_at' },
+        { label: '操作', width: 80, type: 'handle2', operations:
+          [
+            { label: '核销', func: this.dealHandle, btnType: 'primary', hide: 'isEd' },
+          ]
+        }
       ]
     }
   },
   methods: {
+    dealHandle (row) {
+      this.$msg(`确定核销${row.phone}吗?`, 'confirm', () => {
+        this.$api.other.admlotteryprixchange({
+          id: row.id
+        }).then(data => {
+          this.$msgs(`已核销!`)
+          this.fetchData()
+        })
+      }, null, true)
+    },
   }
 }
 </script>

Some files were not shown because too many files changed in this diff