2023-12-25
This commit is contained in:
@@ -8,6 +8,6 @@ VUE_APP_BASE_API = '/api'
|
||||
# VUE_APP_URL = "http://jianguan.yyundong.com/shgfapi"
|
||||
|
||||
|
||||
VUE_APP_URL = "http://192.168.2.106:7201"
|
||||
VUE_APP_URL = "http://192.168.2.101:7201"
|
||||
VUE_APP_REPORT_URL = "http://192.168.2.106:7202"
|
||||
##VUE_APP_URL = "http://8.130.39.13:8112"
|
||||
|
||||
@@ -93,6 +93,15 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
// 作废提货卡
|
||||
cancelCard: function(sid) {
|
||||
return request({
|
||||
url: '/lpkgiftcard/cancelCard/'+sid,
|
||||
method: 'get'
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
|
||||
// 获取提货卡页面 礼包列表
|
||||
giftBagList: function(data) {
|
||||
|
||||
@@ -42,12 +42,12 @@
|
||||
<el-table-column label="是否上架" align="center" width="140">
|
||||
<template slot-scope="scope">
|
||||
<el-switch
|
||||
v-model="scope.row.isEnable"
|
||||
v-model="scope.row.isGrounding"
|
||||
active-text="上架"
|
||||
inactive-text="下架"
|
||||
active-value="1"
|
||||
inactive-value="0"
|
||||
@change="enableChange(scope.row.sid,scope.row.isEnable)"
|
||||
@change="enableChange(scope.row.sid,scope.row.isGrounding)"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@@ -35,10 +35,10 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="150px" align="center">
|
||||
<template slot-scope="scope">
|
||||
<!-- <el-button type="primary" size="mini" @click="editRow(scope.row)">
|
||||
<el-button type="primary" size="mini" @click="editRow(scope.row)">
|
||||
发放
|
||||
</el-button> -->
|
||||
<el-button type="primary" size="mini" @click="showRow(scope.row)">
|
||||
</el-button>
|
||||
<el-button type="primary" size="mini" @click="showRow(scope.row.sid)">
|
||||
明细
|
||||
</el-button>
|
||||
</template>
|
||||
@@ -100,13 +100,13 @@
|
||||
:row-style="{height: '40px'}">
|
||||
<el-table-column label="序号" width="70px" type="index" align="center">
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="操作" width="150px" align="center">
|
||||
<el-table-column label="操作" width="150px" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="primary" size="mini" @click="editRow(scope.row)">
|
||||
明细
|
||||
<el-button type="primary" :disabled="scope.row.customerSid!=''||scope.row.state=='已作废'" size="mini" @click="delectItem(scope.row)">
|
||||
作废
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
</el-table-column>
|
||||
<el-table-column prop="serialNumber" label="序列号" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="code" label="提货码" align="center">
|
||||
@@ -485,8 +485,8 @@
|
||||
editRow(row) {
|
||||
this.editDialog = true
|
||||
},
|
||||
showRow(row) {
|
||||
this.listQuery.params.sid = row.sid
|
||||
showRow(sid) {
|
||||
this.listQuery.params.sid =sid
|
||||
this.viewState = 2
|
||||
req.recordDetails(this.listQuery)
|
||||
.then(resp => {
|
||||
@@ -624,11 +624,14 @@
|
||||
|
||||
req.cardGrant(this.from)
|
||||
.then(resp => {
|
||||
|
||||
if(resp.success){
|
||||
this.$message({
|
||||
showClose: true,
|
||||
type: 'success',
|
||||
message: resp.msg
|
||||
})
|
||||
}
|
||||
this.editDialog = false
|
||||
this.from = {
|
||||
start: "",
|
||||
@@ -684,20 +687,44 @@
|
||||
// _this.reportFileList.push(upfile)
|
||||
},
|
||||
handleRemove(file, fileList) {
|
||||
const _this = this
|
||||
let delete_index = 0
|
||||
for (let i = 0, len = _this.reportFileList.length; i < len; i++) {
|
||||
if (file.uid === _this.reportFileList[i].fileuid) {
|
||||
delete_index = i
|
||||
break
|
||||
}
|
||||
}
|
||||
_this.reportFileList.splice(delete_index, 1)
|
||||
},
|
||||
|
||||
submitUpload() {
|
||||
this.$refs.upload.submit()
|
||||
|
||||
},
|
||||
delectItem(row){
|
||||
console.log("row", row);
|
||||
|
||||
const tip = '请确认是否作废所选卡券?'
|
||||
this.$confirm(tip, '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: 'Loading',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
req.cancelCard(row.sid).then((resp) => {
|
||||
loading.close()
|
||||
if (resp.success) {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: resp.msg,
|
||||
showClose: true
|
||||
})
|
||||
this.showRow(this.listQuery.params.sid)
|
||||
} else {
|
||||
// 根据resp.code进行异常情况处理
|
||||
}
|
||||
}).catch(e => {
|
||||
loading.close()
|
||||
})
|
||||
}).catch(() => {})
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user