lshcom 1.0.25 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lshcom",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "files": [
5
5
  "src/assets/*",
6
6
  "src/common/*",
@@ -91,7 +91,7 @@
91
91
  .f-fs#{$i*2} { font-size: #{$i*2}px }
92
92
  }
93
93
  // 边距 填充
94
- @for $i from 1 through 4 {
94
+ @for $i from 1 through 6 {
95
95
  .f-m#{$i*5} { margin: #{$i*5}px }
96
96
  .f-mt#{$i*5} { margin-top: #{$i*5}px }
97
97
  .f-mr#{$i*5} { margin-right: #{$i*5}px }
@@ -107,4 +107,5 @@
107
107
  .u-ti{display:flex;align-items:center;justify-content:space-between}
108
108
  .u-center{display:flex;align-items:center;justify-content:center}
109
109
  .u-par{position:absolute;top:12px;right:-15px;z-index:1;}
110
- .u-vh1{height:calc(100vh - 200px)}
110
+ .u-vh1{height:calc(100vh - 200px)}
111
+ .f-borerb-c{border-bottom: 1px solid #ccc}
@@ -87,18 +87,32 @@ const global = {
87
87
  },
88
88
  download(url, name){
89
89
  Message('文件下载中...')
90
- const a = document.createElement('a')
91
90
  // 这里是将链接地址url转成blob地址,
92
91
  fetch(url).then(res => res.blob()).then(blob => {
93
- a.href = URL.createObjectURL(blob)
94
- // 下载文件的名称及文件类型后缀
95
- a.download = name || url.slice(url.lastIndexOf('/') + 1)
96
- document.body.appendChild(a)
97
- a.click()
98
- //在资源下载完成后 清除 占用的缓存资源
99
- window.URL.revokeObjectURL(a.href)
100
- document.body.removeChild(a)
92
+ this.downloadFun(blob, name || url.slice(url.lastIndexOf('/') + 1))
93
+ })
94
+ },
95
+ // post传参
96
+ async downloadPost(url, params, name) {
97
+ Message('文件下载中...')
98
+ const response = await fetch(url, {
99
+ body: JSON.stringify(params),
100
+ method: 'POST',
101
+ headers: {'Content-Type': 'application/json;charset=UTF-8'}
101
102
  })
103
+ const blob = await response.blob()
104
+ this.downloadFun(blob, name || decodeURIComponent(response.headers.get('content-disposition').split(';')[1].split('=')[1]))
105
+ },
106
+ downloadFun(blob, name){
107
+ const a = document.createElement('a')
108
+ a.href = URL.createObjectURL(blob)
109
+ // 下载文件的名称及文件类型后缀
110
+ a.download = name
111
+ document.body.appendChild(a)
112
+ a.click()
113
+ //在资源下载完成后 清除 占用的缓存资源
114
+ window.URL.revokeObjectURL(a.href)
115
+ document.body.removeChild(a)
102
116
  },
103
117
  // 导出Excel
104
118
  exportExcel(params = {fileExportType:'',fileRelactionCode:'',parameters:{}}){
@@ -1562,6 +1562,11 @@ export const liApi = {
1562
1562
  sc(r)
1563
1563
  })
1564
1564
  },
1565
+ getOriginalCardInfo(params, sc) {
1566
+ return axios.post(liUrl.cardSales.getOriginalCardInfo, params).then((r) => {
1567
+ sc(r)
1568
+ })
1569
+ },
1565
1570
 
1566
1571
  },
1567
1572
  giftReason: {
@@ -515,6 +515,8 @@ export default {
515
515
  getBatchCardInfoByCode: `${common.isdev()}/v2/cardcoupons/card/getBatchCardInfoByCode`, // 根据卡券号查询卡券信息
516
516
  batchCardUploadAttachments: `${common.isdev()}/systemFoundation_service/v1/fileSys/file/batchCardUploadAttachments`, // 批量上传绑定文件关系
517
517
  checkOaBatchCardInfo: `${common.isdev()}/v1/card/oa/checkOaBatchCardInfo.htm`, // 校验OA批量发放卡券
518
+ //查询作废的卡券详情
519
+ getOriginalCardInfo: `${common.isdev()}/v1/replacement/card/getOriginalCardInfo`,
518
520
  },
519
521
  giftReason: {
520
522
  getCardGiftReaAccNoMappingInfo: `${common.isdev()}/v1/cardRule/cardGiftReaAccNoMappingInfo/get.htm`,
@@ -164,6 +164,9 @@ import BatchProductRef from './BatchProductRef.vue'
164
164
  }
165
165
  },
166
166
  methods: {
167
+ setList(data){
168
+ this.$refs.EleTable.list = data
169
+ },
167
170
  reset(){
168
171
  this.queryParams = JSON.parse(JSON.stringify(this.queryParamsBase))
169
172
  },
@@ -2731,6 +2731,7 @@ export default {
2731
2731
  this.saveCustomerPhoneNo("");
2732
2732
  this.portrayalVo = {};
2733
2733
  this.vehicleListObj = {};
2734
+ this.name = "";
2734
2735
  this.mobileNo = "";
2735
2736
  this.valueNum = "";
2736
2737
  this.tags = [];
@@ -10,7 +10,7 @@
10
10
  <router-link v-if="isNative == 'livecs'" :to="url" class="nav-link pl7">
11
11
  {{ name }}
12
12
  </router-link>
13
- <a v-else class="nav-link" @click="navLink(url)">
13
+ <a v-else class="nav-link pl7" @click="navLink(url)">
14
14
  {{ name }}
15
15
  </a>
16
16
  </div>