Commit e93d32f8 by zhouzy

改bug

1 parent 332234d7
......@@ -2650,11 +2650,12 @@
"dev": true
},
"cfb": {
"version": "1.0.8",
"resolved": "http://registry.npm.taobao.org/cfb/download/cfb-1.0.8.tgz",
"integrity": "sha1-d/ITST1pfXVP2cD1UR6rWtctAs8=",
"version": "1.2.0",
"resolved": "https://registry.npm.taobao.org/cfb/download/cfb-1.2.0.tgz",
"integrity": "sha1-ak0IcrUl7WA0nh71H7Swv3Psqag=",
"requires": {
"commander": "^2.14.1",
"adler-32": "~1.2.0",
"crc-32": "~1.2.0",
"printj": "~1.1.2"
}
},
......@@ -5032,6 +5033,11 @@
"websocket-driver": ">=0.5.1"
}
},
"fflate": {
"version": "0.3.11",
"resolved": "https://registry.npm.taobao.org/fflate/download/fflate-0.3.11.tgz?cache=0&sync_timestamp=1616295166909&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffflate%2Fdownload%2Ffflate-0.3.11.tgz",
"integrity": "sha1-LEQNcYD964GeZImNiFivMnsEKl0="
},
"figures": {
"version": "2.0.0",
"resolved": "http://registry.npm.taobao.org/figures/download/figures-2.0.0.tgz",
......@@ -5061,6 +5067,11 @@
"schema-utils": "^0.4.5"
}
},
"file-saver": {
"version": "2.0.5",
"resolved": "https://registry.npm.taobao.org/file-saver/download/file-saver-2.0.5.tgz",
"integrity": "sha1-1hz+LOBZ9BTYmendbUEH7iVnDDg="
},
"file-uri-to-path": {
"version": "1.0.0",
"resolved": "https://r.cnpmjs.org/file-uri-to-path/download/file-uri-to-path-1.0.0.tgz",
......@@ -5476,6 +5487,20 @@
"xlsx": "^0.13.3"
},
"dependencies": {
"cfb": {
"version": "1.0.8",
"resolved": "https://registry.npm.taobao.org/cfb/download/cfb-1.0.8.tgz",
"integrity": "sha1-d/ITST1pfXVP2cD1UR6rWtctAs8=",
"requires": {
"commander": "^2.14.1",
"printj": "~1.1.2"
}
},
"commander": {
"version": "2.15.1",
"resolved": "https://registry.npm.taobao.org/commander/download/commander-2.15.1.tgz?cache=0&sync_timestamp=1616363849438&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-2.15.1.tgz",
"integrity": "sha1-30boZ9D8Kuxmo0ZitAapzK//Ww8="
},
"element-ui": {
"version": "2.3.4",
"resolved": "http://registry.npm.taobao.org/element-ui/download/element-ui-2.3.4.tgz",
......@@ -5488,10 +5513,32 @@
"throttle-debounce": "^1.0.1"
}
},
"ssf": {
"version": "0.10.3",
"resolved": "https://registry.npm.taobao.org/ssf/download/ssf-0.10.3.tgz",
"integrity": "sha1-jq4fwpyQpVLnkhII+BiS1vd6yys=",
"requires": {
"frac": "~1.1.2"
}
},
"vue": {
"version": "2.5.10",
"resolved": "http://registry.npm.taobao.org/vue/download/vue-2.5.10.tgz",
"integrity": "sha1-3Ndy4llLqZQUXy8JUiFJ2aHnhBo="
},
"xlsx": {
"version": "0.13.5",
"resolved": "https://registry.npm.taobao.org/xlsx/download/xlsx-0.13.5.tgz",
"integrity": "sha1-ZYJroZRMb01sAjt+tsiea24Ncbc=",
"requires": {
"adler-32": "~1.2.0",
"cfb": "~1.0.8",
"codepage": "~1.14.0",
"commander": "~2.15.1",
"crc-32": "~1.2.0",
"exit-on-epipe": "~1.0.1",
"ssf": "~0.10.2"
}
}
}
},
......@@ -9636,6 +9683,12 @@
}
}
},
"raw-loader": {
"version": "0.5.1",
"resolved": "https://registry.npm.taobao.org/raw-loader/download/raw-loader-0.5.1.tgz",
"integrity": "sha1-DD0L6u2KAclm2Xh793goElKpeao=",
"dev": true
},
"read-pkg": {
"version": "4.0.1",
"resolved": "http://registry.npm.taobao.org/read-pkg/download/read-pkg-4.0.1.tgz",
......@@ -10199,6 +10252,15 @@
}
}
},
"script-loader": {
"version": "0.7.2",
"resolved": "https://registry.npm.taobao.org/script-loader/download/script-loader-0.7.2.tgz",
"integrity": "sha1-IBbbb4byX1z1baOJFdgzeLsWa6c=",
"dev": true,
"requires": {
"raw-loader": "~0.5.1"
}
},
"select": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz",
......@@ -10720,9 +10782,9 @@
"dev": true
},
"ssf": {
"version": "0.10.2",
"resolved": "http://registry.npm.taobao.org/ssf/download/ssf-0.10.2.tgz",
"integrity": "sha1-ZbK0/N/ZZ7yOg4OkE0kAmJMRWXY=",
"version": "0.11.2",
"resolved": "https://registry.npm.taobao.org/ssf/download/ssf-0.11.2.tgz",
"integrity": "sha1-C5lpiyN1SNCI/EPN8rcMGnUSwGw=",
"requires": {
"frac": "~1.1.2"
}
......@@ -12365,6 +12427,16 @@
"integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=",
"dev": true
},
"wmf": {
"version": "1.0.2",
"resolved": "https://registry.npm.taobao.org/wmf/download/wmf-1.0.2.tgz",
"integrity": "sha1-fRnWIQcaCMK9xrfmiKnENSmMwto="
},
"word": {
"version": "0.3.0",
"resolved": "https://registry.npm.taobao.org/word/download/word-0.3.0.tgz",
"integrity": "sha1-hUIVfk+OhJ9KNjooiZLUdhLbmWE="
},
"wordwrap": {
"version": "1.0.0",
"resolved": "http://registry.npm.taobao.org/wordwrap/download/wordwrap-1.0.0.tgz",
......@@ -12453,24 +12525,20 @@
}
},
"xlsx": {
"version": "0.13.5",
"resolved": "http://registry.npm.taobao.org/xlsx/download/xlsx-0.13.5.tgz",
"integrity": "sha1-ZYJroZRMb01sAjt+tsiea24Ncbc=",
"version": "0.16.9",
"resolved": "https://registry.npm.taobao.org/xlsx/download/xlsx-0.16.9.tgz",
"integrity": "sha1-2s1btGvabdN0OUDJw9weIXGCYlY=",
"requires": {
"adler-32": "~1.2.0",
"cfb": "~1.0.8",
"cfb": "^1.1.4",
"codepage": "~1.14.0",
"commander": "~2.15.1",
"commander": "~2.17.1",
"crc-32": "~1.2.0",
"exit-on-epipe": "~1.0.1",
"ssf": "~0.10.2"
},
"dependencies": {
"commander": {
"version": "2.15.1",
"resolved": "http://registry.npm.taobao.org/commander/download/commander-2.15.1.tgz",
"integrity": "sha1-30boZ9D8Kuxmo0ZitAapzK//Ww8="
}
"fflate": "^0.3.8",
"ssf": "~0.11.2",
"wmf": "~1.0.1",
"word": "~0.3.0"
}
},
"xtend": {
......
......@@ -10,11 +10,13 @@
"dependencies": {
"axios": "^0.18.0",
"element-ui": "^2.15.1",
"file-saver": "^2.0.5",
"glsx-vue-common": "^1.2.8",
"glsx-vue-components": "^1.0.13",
"vee-validate": "^2.1.7",
"vue": "^2.5.17",
"vue-clipboard2": "^0.2.1"
"vue-clipboard2": "^0.2.1",
"xlsx": "^0.16.9"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.0.1",
......@@ -24,6 +26,7 @@
"eslint-plugin-html": "^4.0.5",
"less": "^3.0.4",
"less-loader": "^4.1.0",
"script-loader": "^0.7.2",
"vue-template-compiler": "^2.5.17"
}
}
......@@ -44,7 +44,7 @@ function getMemberCardDetail(params) {
return GlAxios.get(`${path}/getMemberCardDetail`,{ params })
}
function exportMemberCardByBatchId(params) {
return GlAxios.post(`${path}/exportMemberCardByBatchId`,params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString'})
return GlAxios.post(`${path}/exportMemberCardByBatchId`,params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
}
export {
......
......@@ -47,14 +47,14 @@
<div class="firstpickerContainer">
权益套餐:
<el-select
v-model="batchListSearch.defineCode"
v-model="batchListSearch.defindId"
placeholder="请选择权益套餐"
>
<el-option
v-for="(item, index) in baseDate.equityList"
:key="index"
:label="item.memberName"
:value="item.defineCode"
:value="item.id"
></el-option>
</el-select>
</div>
......@@ -204,7 +204,10 @@
prop="cardsNumber"
style="width: 60%"
>
<el-input v-model="generateRightCardsForm.cardsNumber"></el-input>
<el-input-number
:min="1"
v-model="generateRightCardsForm.cardsNumber"
></el-input-number>
</el-form-item>
<el-form-item
label="备注"
......@@ -323,14 +326,14 @@
<div class="firstpickerContainer">
权益套餐:
<el-select
v-model="collectionListSearch.condition.defineCode"
v-model="collectionListSearch.condition.definId"
placeholder="请选择权益套餐"
>
<el-option
v-for="(item, index) in baseDate.equityList"
:key="index"
:label="item.memberName"
:value="item.defineCode"
:value="item.id"
></el-option>
</el-select>
<!-- <el-cascader
......@@ -497,7 +500,7 @@ export default {
endTime: "" || null,
sn: "",
mobile: "",
defineCode: "" || null,
defineId: "" || null,
},
},
// 批次弹窗列表搜索项
......@@ -511,7 +514,7 @@ export default {
selectBatchId: "",
batchListSearch: {
batchId: +"",
defineCode: "",
defindId: "",
createdDateStart: "",
createdDateEnd: "",
},
......@@ -636,6 +639,9 @@ export default {
{
label: "激活时间",
prop: "updatedDate",
formatter: (cellValue) => {
return this.date_format(cellValue.updatedDate);
}
// width: 110,
// tagLabel: true
},
......@@ -877,75 +883,26 @@ export default {
},
//批次界面导出
exportbatchdetail() {
var params = {
var data = {
batchId: this.batchPopupListSearch.batchId,
mobile: this.BatchDetailInformationForm.account,
};
exportMemberCardByBatchId(params).then((res) => {
if (res) {
console.log(res)
const aLink = document.createElement("a")
let blob = new Blob([res], { type: "application/x-excel" })
aLink.href = URL.createObjectURL(blob)
aLink.setAttribute('download', '批次列表导出文档' + '.xls') // 设置下载文件名称
aLink.click()
document.body.appendChild(aLink)
// this.$refs.batchDetailTable.refreshTable();
} else {
this.$message({
message: "导出失败!",
type: "error",
});
}
});
const url = this.$get_session_common_config().axios.baseURL + "/memberInfo/exportMemberCardByBatchId";
exportExcel({ url, data });
},
//领用界面导出
exportCollection() {
var params = {
var data = {
beginTime: this.collectionListSearch.condition.beginTime,
endTime: this.collectionListSearch.condition.endTime,
sn: this.collectionListSearch.condition.sn,
mobile: this.collectionListSearch.condition.mobile,
defineCode: this.collectionListSearch.condition.defineCode,
defineId: this.baseDate.equityList.id,
};
const url =
this.$get_session_common_config().axios.baseURL + "/memberInfo/exportMemberCard";
// axios({ method: 'post', url:this.$get_session_common_config().axios.baseURL+'/memberInfo/exportMemberCard', }) .then(res => {
// const data = res.data
// const url = window.URL.createObjectURL(new Blob([data], {type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}))
// const link = document.createElement('a')
// link.style.display = 'none'
// link.href = url
// link.setAttribute('download', 'excel.xlsx')
// document.body.appendChild(link)
// link.click()
// document.body.removeChild(link)
// })
// this.fetch(url,JSON.stringify(params))
// this.$http.post(url,params).then(res=>{
// console.log(res);
// })
// fetch(url, {
// method: 'POST', // or 'PUT'
// body: JSON.stringify(params), // data can be `string` or {object}!
// headers: new Headers({
// 'Content-Type': 'application/json'
// })
// }).then(res =>{
// })
// .catch(error => console.error('Error:', error))
// .then(res => {
// const aLink = document.createElement("a");
// let blob = new Blob([res], {type: "application/vnd.ms-excel"})
// aLink.href = URL.createObjectURL(blob)
// aLink.setAttribute('download', 'a' + '.xlsx') // 设置下载文件名称
// aLink.click()
// this.$refs.loadElement.appendChild(aLink)
// });
exportExcel({ url, params });
const url = this.$get_session_common_config().axios.baseURL + "/memberInfo/exportMemberCard";
exportExcel({ url, data });
// exportMemberCard(params).then((res) => {
// if (res) {
// console.log(res);
......@@ -1049,12 +1006,34 @@ export default {
// },
// 批次管理弹窗搜索
beforebatchPopupListSearch() {
return new Promise((resolve, reject) => {
this.batchPopupListSearch.batchId = +this.cardsInformationForm.batchId;
this.batchPopupListSearch.cardNo = this.BatchDetailInformationForm.cardName
this.batchPopupListSearch.mobile = this.BatchDetailInformationForm.account
resolve()
})
if (this.BatchDetailInformationForm.cardName.length > 2 ||
this.BatchDetailInformationForm.cardName.length < 1
) {
if (this.BatchDetailInformationForm.account.length > 2 ||
this.BatchDetailInformationForm.account.length < 1
) {
return new Promise((resolve, reject) => {
this.batchPopupListSearch.batchId = +this.cardsInformationForm.batchId;
this.batchPopupListSearch.cardNo = this.BatchDetailInformationForm.cardName
this.batchPopupListSearch.mobile = this.BatchDetailInformationForm.account
resolve()
})
}else{
this.$message({
message: '请至少输入三位卡号!',
type: 'error',
})
reject()
}
}else{
this.$message({
message: '请至少输入三位账号!',
type: 'error',
})
reject()
}
},
handleClick(tab, event) { },
handleChange(value) { },
......
......@@ -217,7 +217,6 @@ export default {
],
validity: [{ required: true, message: "请选择有效期", trigger: "blur" }],
currencyInpution: [{ required: false, message: "请填写嘀币值", trigger: "blur" }],
oilInpution: [{ required: false, message: "请填写半径值", trigger: "blur" }],
timeInpution: [{ required: false, message: "请填写最长间隔", trigger: "blur" }],
rebateRatio: [{ required: false, message: "嘀币返利比例", trigger: "blur" }]
......@@ -367,7 +366,8 @@ export default {
// "name": 'nameId'
// }
// this.jumpScroll(temp[Object.keys(options)[0]])
this.jumpScroll(Object.keys(options)[0])
// this.jumpScroll(Object.keys(options)[0])
console.log('----------------');
return false;
}
});
......
......@@ -56,9 +56,9 @@ export default {
},
{
label: '有效期',
prop: 'validitDateStr',
prop: 'dateExpire',
formatter: (cellValue) => {
return this.date_format(cellValue.validitDateStr)
return cellValue.dateExpire +'月'
}
},
{
......@@ -82,9 +82,6 @@ export default {
{
label: '创建时间',
prop: 'createdDateStr',
formatter: (cellValue) => {
return this.date_format(cellValue.createdDateStr)
}
// minWidth: '200'
},
{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!