Commit f16d5285 by liqiang

fix: fix

parent 42af27d0
[{"D:\\fe\\haoban-3\\src\\components\\app\\card\\card-get-record.vue":"1"},{"size":11565,"mtime":1649605066514}]
\ No newline at end of file
......@@ -2,7 +2,7 @@
<el-dialog title="领取记录" :visible.sync="dialogVisible" width="864px" :before-close="handleClose">
<div class="table-condition flex flex-space-between m-b-20">
<div class="table-condition-left">
<el-input :placeholder="conditionObj.searchType == 2 ? '请输入会员手机号/卡号 ' : '请输入导购姓名/手机号/code'" maxlength="50" v-model="conditionObj.searchInput" class="w-336" @keyup.native="value => toInput(value, conditionObj.searchInput)" clearable @clear="clearInput">
<el-input :placeholder="conditionObj.searchType == 2 ? '请输入会员手机号/卡号 ' : '请输入导购姓名/手机号/code'" maxlength="50" v-model="conditionObj.searchInput" class="w-336" @keyup.native="(value) => toInput(value, conditionObj.searchInput)" clearable @clear="clearInput">
<el-select class="w-103" v-model="conditionObj.searchType" slot="prepend" placeholder="请选择">
<el-option label="按导购" value="1"> </el-option>
<!-- <el-option label="按会员" value="2"></el-option> -->
......@@ -112,7 +112,7 @@ export default {
this.choiceDateCopy = [];
}
},
disabledDate: time => {
disabledDate: (time) => {
if (this.choiceDateCopy.length) {
const one = 365 * 24 * 3600 * 1000;
const minTime = this.choiceDateCopy[0] - one;
......@@ -133,7 +133,7 @@ export default {
/**
* 导出
*/
exportExcel: _debounce(function() {
exportExcel: _debounce(function () {
const that = this;
that.loadingBtn = true;
if (!that.conditionObj.dateRange) {
......@@ -151,7 +151,7 @@ export default {
postExcel(para) {
const that = this;
postRequest('/haoban-app-customer-web/cardCoupon/export-consume-card', para)
.then(res => {
.then((res) => {
let resData = res.data;
that.loadingBtn = false;
if (resData.errorCode == 1) {
......@@ -174,7 +174,7 @@ export default {
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
.catch(function (error) {
that.loadingBtn = false;
that.$message.error({
duration: 1000,
......@@ -189,7 +189,7 @@ export default {
/**
* 输入
*/
toInput: _debounce(function(e, value) {
toInput: _debounce(function (e, value) {
const that = this;
that.currentPage = 1;
that.getTableList();
......@@ -241,7 +241,7 @@ export default {
let storeGroups = [];
let filterStoreIds = [];
let clerkIds = [];
that.conditionObj.storeGroup.forEach(ele => {
that.conditionObj.storeGroup.forEach((ele) => {
if (ele.type == 1) {
clerkIds.push(ele.employeeClerkId);
}
......@@ -270,7 +270,7 @@ export default {
// taskType: 1 //0不良评价,1话务任务
};
postRequest('/haoban-app-customer-web/cardCoupon/find-receive-card-page', para)
.then(res => {
.then((res) => {
let resData = res.data;
that.loading = false;
if (resData.errorCode == 1) {
......@@ -280,7 +280,7 @@ export default {
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
.catch(function (error) {
that.loading = false;
that.$message.error({
duration: 1000,
......@@ -290,14 +290,14 @@ export default {
}
},
watch: {
brandId: function(newData, oldData) {
brandId: function (newData, oldData) {
const that = this;
if (!!newData) {
that.activeBrand = newData;
that.getTableList();
}
},
coupCardId: function(newData, oldData) {
coupCardId: function (newData, oldData) {
const that = this;
if (!!newData) {
that.getTableList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment