lshcom 1.0.21 → 1.0.23

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.21",
3
+ "version": "1.0.23",
4
4
  "files": [
5
5
  "src/assets/*",
6
6
  "src/common/*",
@@ -29,6 +29,7 @@
29
29
  .el-message-box{
30
30
  .el-message-box__title{height:auto;min-height:18px;}
31
31
  }
32
+ .is-invalid .el-input__inner{border-color:#f86c6b}
32
33
 
33
34
  .f-fr{float:right}
34
35
  .f-ib{display:inline-block !important}
@@ -60,7 +61,7 @@
60
61
  .f-lh2{line-height:2em}
61
62
  .f-tdu,.f-tdu:hover{text-decoration:underline}
62
63
  .f-tdn,.f-tdn:hover{text-decoration:none}
63
- .f-toe{overflow:hidden;word-wrap:normal;white-space:nowrap;text-overflow:ellipsis;}
64
+ .f-toe,.f-toe input{overflow:hidden;word-wrap:normal;white-space:nowrap;text-overflow:ellipsis;}
64
65
  .f-toe2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
65
66
  .f-b1d{border:1px solid #ddd}
66
67
  .f-cp{cursor:pointer}
@@ -69,6 +70,7 @@
69
70
  .f-c6{color:#666}
70
71
  .f-c9{color:#999}
71
72
  .f-cb{color:blue}
73
+ .f-cb1{color:#577EB9}
72
74
  .f-cr{color:red}
73
75
  .f-cf{color:#fff}
74
76
  .f-bgf{background:#fff}
@@ -102,4 +104,5 @@
102
104
  }
103
105
 
104
106
  .u-ti{display:flex;align-items:center;justify-content:space-between}
105
- .u-center{display:flex;align-items:center;justify-content:center}
107
+ .u-center{display:flex;align-items:center;justify-content:center}
108
+ .u-par{position:absolute;top:12px;right:-15px;z-index:1;}
@@ -351,6 +351,30 @@
351
351
  <el-input v-model.trim="queryParams.renewalCustomerMobile" disabled />
352
352
  </b-form-fieldset>
353
353
  </div>
354
+ <div class="col-md-4">
355
+ <b-form-fieldset
356
+ horizontal
357
+ label="数据标记类型"
358
+ label-cols="4"
359
+ class="text-right"
360
+ >
361
+ <EleSelect v-model="queryParams.dataMarkType" :options="global.state('dataDictionarys','CustomerDataMarkType')" disabled/>
362
+ <i v-if="$route.name != 'lsh-customer-view' && global.showBtn('P-lshcustomer#B-ButtonTypeOther-dataMarkType')" class="el-icon-edit u-par f-cb1 f-cp" @click="dataMarkTypeEdit"></i>
363
+ </b-form-fieldset>
364
+ </div>
365
+ <div class="col-md-4">
366
+ <b-form-fieldset
367
+ horizontal
368
+ label="标记原因"
369
+ label-cols="4"
370
+ class="text-right"
371
+ >
372
+ <el-tooltip v-if="queryParams.markReason" class="item" effect="dark" :content="queryParams.markReason" placement="top">
373
+ <el-input class="f-toe" v-model.trim="queryParams.markReason" disabled />
374
+ </el-tooltip>
375
+ <el-input v-else v-model.trim="queryParams.markReason" disabled />
376
+ </b-form-fieldset>
377
+ </div>
354
378
  </div>
355
379
 
356
380
  <div class="f-tar">
@@ -368,6 +392,16 @@
368
392
  <el-button type="primary" @click="checkAuthCustomerInfoConfirm">确定</el-button>
369
393
  </div>
370
394
  </EleDialog>
395
+ <EleDialog title="数据类型编辑" ref="dataTypeDialog" size="tiny" showFooter :modalAppendToBody="false" :modal="false" @confirm="dataTypeConfirm">
396
+ <el-form class="m-form" :model="dataTypeForm" ref="dataTypeForm" label-position="right" label-width="96px">
397
+ <el-form-item label="数据标记类型" prop="dataMarkType">
398
+ <EleSelect v-model="dataTypeForm.dataMarkType" :options="global.state('dataDictionarys','CustomerDataMarkType')" />
399
+ </el-form-item>
400
+ <el-form-item label="标记原因" prop="markReason" :rules="[dataTypeForm.dataMarkType == '3' ? {required: true, message: '不能为空'} : {}]">
401
+ <el-input v-model.trim="dataTypeForm.markReason" :maxlength="500" />
402
+ </el-form-item>
403
+ </el-form>
404
+ </EleDialog>
371
405
  </div>
372
406
  </template>
373
407
 
@@ -436,6 +470,10 @@ export default {
436
470
  visbileFlag: false,
437
471
  btnType: '',
438
472
  custInfo: {},
473
+ dataTypeForm: {
474
+ dataMarkType: '',
475
+ markReason: '',
476
+ },
439
477
  };
440
478
  },
441
479
 
@@ -807,6 +845,22 @@ export default {
807
845
  checkAuthCustomerInfoCancel(){
808
846
  this.$refs.EleDialog.visible = false
809
847
  },
848
+ dataMarkTypeEdit(){
849
+ this.dataTypeForm.dataMarkType = this.queryParams.dataMarkType || ''
850
+ this.dataTypeForm.markReason = this.queryParams.markReason
851
+ this.$refs.dataTypeDialog.visible = true
852
+ },
853
+ dataTypeConfirm(){
854
+ this.$refs.dataTypeForm.validate((valid) => {
855
+ if (valid) {
856
+ this.queryParams = {
857
+ ...this.queryParams,
858
+ ...this.dataTypeForm,
859
+ }
860
+ this.$refs.dataTypeDialog.visible = false
861
+ }
862
+ })
863
+ },
810
864
  },
811
865
  };
812
866
  </script>
@@ -328,6 +328,14 @@
328
328
  </el-select>
329
329
  </b-form-fieldset>
330
330
  </div>
331
+ <div class="col-md-4">
332
+ <b-form-fieldset horizontal label="车辆归属" label-cols="4" class="text-right">
333
+ <EleSelect v-model="queryParams.vehicleOwnership" :disabled="queryParams.vehicleOwnership == 'CompanyVehicle'" :options="global.state('dataDictionarys','CustomerVehicleOwnership').map(item => ({
334
+ ...item,
335
+ disabled: item.value == 'CompanyVehicle' ? true : false,
336
+ }))"/>
337
+ </b-form-fieldset>
338
+ </div>
331
339
 
332
340
  <div class="col-md-12">
333
341
  <div class="pull-right">
@@ -407,7 +415,6 @@ export default {
407
415
  ],
408
416
  _relation: {},
409
417
  frameNo_ls: "",
410
- bm6: '',
411
418
  };
412
419
  },
413
420
  watch: {
@@ -643,6 +650,9 @@ export default {
643
650
  "businessTransactionOptions",
644
651
  false
645
652
  );
653
+ if(this.isAdd){
654
+ this.queryParams.vehicleOwnership = "CustomerVehicle"
655
+ }
646
656
  },
647
657
 
648
658
  /**
@@ -963,9 +973,6 @@ export default {
963
973
  label: `${item.displayName}---&---${item.carModelCode}`,
964
974
  }
965
975
  })
966
- if(obj.list && obj.list.length){
967
- this.bm6 = obj.list[0].carModelCode.slice(0,6)
968
- }
969
976
  })
970
977
  },
971
978
 
@@ -47,6 +47,8 @@
47
47
  phaseType,
48
48
  cardTemplateCode,
49
49
  cardMakeOrderNo,
50
+ cardMakeModifyNo,
51
+ bm6UseSet: bm6UseSet.length ? bm6UseSet : undefined,
50
52
  }" :selectable="selectable" :isStartGetData="['TEMPLATE'].includes(phaseType)" :ifPage="!cardNos.length">
51
53
  <el-table-column type="selection" fixed width="50" :selectable="selectable" />
52
54
  <el-table-column label="是否参与打折" prop="discountFlag" min-width="168" show-overflow-tooltip />
@@ -115,8 +117,9 @@ import BatchProductRef from './BatchProductRef.vue'
115
117
  phaseType: { type: String, default: 'TEMPLATE' }, // TEPLATE-模板,BATCH-批次,MODIFY-批次修改
116
118
  cardTemplateCode: { type: String, default(){return this.$route.query.cardTemplateCode || ''} }, // 模板编号,必填
117
119
  cardMakeOrderNo: { type: String, default(){return undefined} }, // 批次号,['BATCH','MODIFY'].includes(phaseType)时必填
120
+ cardMakeModifyNo: { type: String, default(){return undefined} }, // 修改/删除审批单号,修改审批查询
118
121
  relationNo: { type: String, default(){return undefined} }, // ['MODIFY'].includes(phaseType)查看时必填
119
- bm6: { type: String, default: '' }, // 放车辆卡匹配bm6
122
+ bm6UseSet: { type: Array, default(){return []} }, // 发放车辆卡时,用bm6匹配适用产品
120
123
  cardNos: { type: Array, default(){return []} }, // 通过卡券查询适用产品
121
124
  ifBatchProductRef: { type: Boolean, default: false }, // 是否显示引用历史批次适用产品
122
125
  selectable: { type: Function }, // 仅对 type=selection 的列有效,类型为 Function,Function 的返回值用来决定这一行的 CheckBox 是否可以勾选,Function(row, index)
@@ -126,7 +129,7 @@ import BatchProductRef from './BatchProductRef.vue'
126
129
  return {
127
130
  queryParamsBase: {
128
131
  relationNo: this.relationNo,
129
- bm6: this.bm6,
132
+ bm6: '',
130
133
  typeCodes: [],
131
134
  productNo: '',
132
135
  },
@@ -153,7 +156,7 @@ import BatchProductRef from './BatchProductRef.vue'
153
156
  this.search()
154
157
  }
155
158
  if(this.phaseType == 'MODIFY'){
156
- if(this.relationNo){
159
+ if(this.queryParams.relationNo || this.cardMakeModifyNo){
157
160
  this.search()
158
161
  } else {
159
162
  this.getSequence()
@@ -168,6 +171,7 @@ import BatchProductRef from './BatchProductRef.vue'
168
171
  this.global.post(`${this.global.isdev}/systemFoundation_service/v1/sys/seq/getSequence`,{serviceCode:'CARDMORDRELSEQ'},obj => {
169
172
  this.queryParamsBase.relationNo = obj
170
173
  this.queryParams.relationNo = obj
174
+ this.queryParams = JSON.parse(JSON.stringify(this.queryParams))
171
175
  // 批次修改带入历史
172
176
  this.global.post(`${this.global.isdev}/v2/cardcoupons/scope/modifyInitProductScope`,{
173
177
  phaseType: this.phaseType,
@@ -182,7 +186,7 @@ import BatchProductRef from './BatchProductRef.vue'
182
186
  search(){
183
187
  this.$nextTick(() => {
184
188
  if(['BATCH','MODIFY'].includes(this.phaseType) && (!this.cardTemplateCode || !this.cardMakeOrderNo)) return
185
- if(['MODIFY'].includes(this.phaseType) && !this.queryParams.relationNo) return
189
+ if(['MODIFY'].includes(this.phaseType) && !this.queryParams.relationNo && !this.cardMakeModifyNo) return
186
190
  this.$refs.EleTable.resetData()
187
191
  });
188
192
  },
@@ -38,6 +38,7 @@
38
38
  data() {
39
39
  return {
40
40
  queryBase: {
41
+ storeCodeSet: [this.global.userInfo.userAvailableInfo.storeInfoVo.storeCode],
41
42
  cardTemplateCode: this.$route.query.cardTemplateCode || '',
42
43
  cardMakeOrderNo: '',
43
44
  batchName: '',
@@ -138,6 +138,11 @@
138
138
  prop="vehicleVariant"
139
139
  show-overflow-tooltip
140
140
  min-width="100" />
141
+ <el-table-column align="center" label="车辆归属" min-width="100" show-overflow-tooltip>
142
+ <template slot-scope="{ row }">
143
+ {{ global.stateObj('dataDictionarys','CustomerVehicleOwnership')[row.vehicleOwnership] }}
144
+ </template>
145
+ </el-table-column>
141
146
 
142
147
  <el-table-column
143
148
  v-if="showChange"
@@ -311,7 +316,7 @@ export default {
311
316
  }else{
312
317
  this.$emit('comfirm', {
313
318
  ...this.selCont,
314
- bm6: this.$refs.LshVehicle.bm6,
319
+ bm6: this.selCont.varient.slice(0,6),
315
320
  })
316
321
  }
317
322
  }
@@ -323,7 +328,9 @@ export default {
323
328
  * @desc 新增
324
329
  */
325
330
  add() {
326
- this.selCont = null
331
+ this.selCont = {
332
+ vehicleOwnership: "CustomerVehicle",
333
+ }
327
334
  this.bindFlag =false
328
335
  this.activeName = 'second'
329
336
  this.isAdd = true