|
|
@ -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 => { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
type: 'success', |
|
|
|
message: resp.msg |
|
|
|
}) |
|
|
|
|
|
|
|
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(() => {}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|