lshcom 1.0.18 → 1.0.19

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.18",
3
+ "version": "1.0.19",
4
4
  "files": [
5
5
  "src/assets/*",
6
6
  "src/common/*",
@@ -7,6 +7,8 @@
7
7
  :top="top"
8
8
  :modal="modal"
9
9
  :modal-append-to-body="modalAppendToBody"
10
+ :close-on-click-modal="closeOnClickModal"
11
+ :show-close="showClose"
10
12
  :before-close="handleClose">
11
13
  <template v-if="customTitle" slot="title">
12
14
  <slot name="title"></slot>
@@ -35,6 +37,8 @@
35
37
  top: {type: String,default: '15%'}, // Dialog CSS 中的 top 值(仅在 size 不为 full 时有效)
36
38
  modal: {type: Boolean, default: true}, // 是否需要遮罩层
37
39
  modalAppendToBody: {type: Boolean, default: true}, // 遮罩层是否插入至 body 元素上,若为 false,则遮罩层会插入至 Dialog 的父元素上
40
+ closeOnClickModal: {type: Boolean, default: true}, // 是否可以通过点击 modal 关闭 Dialog
41
+ showClose: {type: Boolean, default: true}, // 是否显示关闭按钮
38
42
  },
39
43
  data() {
40
44
  return {
@@ -61,7 +61,7 @@
61
61
  <el-table-column label="更新时间" prop="updateTimeStr" min-width="168" show-overflow-tooltip />
62
62
  </EleTable>
63
63
 
64
- <EleDialog ref="EleDialog" :title="`${title}适用产品`" size="mini">
64
+ <EleDialog ref="EleDialog" :title="`${title}适用产品`" size="mini" beforeClose>
65
65
  <el-form class="m-form" :model="form" ref="form" label-position="right" label-width="145px">
66
66
  <el-form-item label="是否参与打折" prop="discountFlag" :rules="[{required: true, message: '不能为空'}]">
67
67
  <EleSelect v-model="form.discountFlag" :options="[{label:'是',value:'是'},{label:'否',value:'否'}]"></EleSelect>
@@ -93,6 +93,12 @@
93
93
  </div>
94
94
  </el-form>
95
95
  </EleDialog>
96
+ <EleDialog ref="bm6Dialog" title="选择车型销售代码前6位" size="mini" :closeOnClickModal="false" :showClose="false" showFooter customFooter>
97
+ <EleSelect ref="bm6Select" :options="bm6List" optionLabel="" optionValue=""></EleSelect>
98
+ <template slot="footer">
99
+ <el-button type="primary" @click="bm6Confirm">确 定</el-button>
100
+ </template>
101
+ </EleDialog>
96
102
  <EleDialog ref="BatchProductRef" :title="`历史制卡批次选择`" size="large">
97
103
  <BatchProductRef @cancel="$refs.BatchProductRef.visible=false" @confirm="followProductScope"></BatchProductRef>
98
104
  </EleDialog>
@@ -138,6 +144,7 @@ import BatchProductRef from './BatchProductRef.vue'
138
144
  },
139
145
  form: {},
140
146
  bm6Flag: true,
147
+ bm6List: [],
141
148
  }
142
149
  },
143
150
  mounted() {
@@ -234,6 +241,7 @@ import BatchProductRef from './BatchProductRef.vue'
234
241
  seriesCodeChange(){
235
242
  if(this.bm6Flag){
236
243
  this.$nextTick(() => {
244
+ this.bm6List = []
237
245
  if(this.form.brandCode && this.form.factoryCode && this.form.seriesCode){
238
246
  this.global.post(`${this.global.isdev}/systemFoundation_service/v1/sys/car/getModelBm6Info`,{
239
247
  brandCode: this.form.brandCode,
@@ -241,13 +249,24 @@ import BatchProductRef from './BatchProductRef.vue'
241
249
  seriesCode: this.form.seriesCode,
242
250
  },obj => {
243
251
  if(obj){
244
- this.form.bm6 = obj.bm6
252
+ if(obj.length == 1){
253
+ this.form.bm6 = obj[0].bm6
254
+ } else {
255
+ this.$refs.bm6Dialog.visible = true
256
+ this.bm6List = obj.map(item => item.bm6)
257
+ }
245
258
  }
246
259
  })
247
260
  }
248
261
  });
249
262
  }
250
263
  },
264
+ // 选择bm6确认
265
+ bm6Confirm(){
266
+ if(!this.$refs.bm6Select.selectValue) return this.$message('请选择车型销售代码前6位')
267
+ this.form.bm6 = this.$refs.bm6Select.selectValue
268
+ this.$refs.bm6Dialog.visible = false
269
+ },
251
270
  // 新增/编辑适用产品 确认
252
271
  saveProductScope(){
253
272
  this.$refs.form.validate((valid) => {
@@ -1997,7 +1997,7 @@
1997
1997
  <el-input v-model="portrayalCustomerTagInput" placeholder="请输入标签名称或者标签值" class="f-mr5" style="width:240px !important"></el-input>
1998
1998
  <el-button type="primary" size="large" @click="portrayalCustomerTagSearch">查询</el-button>
1999
1999
  </div>
2000
- <el-collapse v-model="portrayalCustomerTagActiveName" accordion>
2000
+ <el-collapse v-model="portrayalCustomerTagActiveName">
2001
2001
  <el-collapse-item v-for="(item,index) in portrayalCustomerTagArrFilter" :key="index" :title="item.categoryName" :name="index">
2002
2002
  <el-row :gutter="10" v-if="item.tags">
2003
2003
  <el-col :span="6" class="f-mt5 f-mb5" v-for="(item2,index2) in item.tags" :key="index2">
@@ -2396,7 +2396,7 @@ export default {
2396
2396
  typeFilter: { 0: "呼入", 1: "呼出" },
2397
2397
  queryBalanceDataInfoQuery: {},
2398
2398
  getSettlementOfClaimsByVinQuery: {},
2399
- portrayalCustomerTagActiveName: 0, // 客户标签
2399
+ portrayalCustomerTagActiveName: [], // 客户标签
2400
2400
  portrayalCustomerTagArr: [],
2401
2401
  portrayalCustomerTagInput: '',
2402
2402
  portrayalCustomerTagArrFilter: [],
@@ -2946,7 +2946,6 @@ export default {
2946
2946
  this.queryPortrayalPerson();
2947
2947
  this.handleQuery(1);
2948
2948
 
2949
- this.portrayalCustomerTagActiveName = 0
2950
2949
  this.portrayalCustomerTagArr = []
2951
2950
  this.portrayalCustomerTagInput = ''
2952
2951
  this.portrayalCrowdTagArr = []
@@ -3118,7 +3117,6 @@ export default {
3118
3117
  this.handleQuery();
3119
3118
  this.queryFinanceExpiryDate();
3120
3119
 
3121
- this.portrayalCustomerTagActiveName = 0
3122
3120
  this.portrayalCustomerTagArr = []
3123
3121
  this.portrayalCustomerTagInput = ''
3124
3122
  this.portrayalCrowdTagArr = []
@@ -3188,6 +3186,9 @@ export default {
3188
3186
  }, obj => {
3189
3187
  this[this.activeName1 + "Arr"] = obj
3190
3188
  this[this.activeName1 + "Search"]()
3189
+ if(['portrayalCustomerTag'].includes(this.activeName1)){
3190
+ this.portrayalCustomerTagActiveName = obj.map((item,index) => index)
3191
+ }
3191
3192
  })
3192
3193
  }
3193
3194
  });
@@ -108,7 +108,7 @@
108
108
  */
109
109
  minWidth: {
110
110
  type: Object,
111
- default: () => {}
111
+ default: () => ({})
112
112
  },
113
113
  minWidthDefault: {
114
114
  type: String,