lshcom 1.0.21 → 1.0.22
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
|
@@ -407,7 +407,6 @@ export default {
|
|
|
407
407
|
],
|
|
408
408
|
_relation: {},
|
|
409
409
|
frameNo_ls: "",
|
|
410
|
-
bm6: '',
|
|
411
410
|
};
|
|
412
411
|
},
|
|
413
412
|
watch: {
|
|
@@ -963,9 +962,6 @@ export default {
|
|
|
963
962
|
label: `${item.displayName}---&---${item.carModelCode}`,
|
|
964
963
|
}
|
|
965
964
|
})
|
|
966
|
-
if(obj.list && obj.list.length){
|
|
967
|
-
this.bm6 = obj.list[0].carModelCode.slice(0,6)
|
|
968
|
-
}
|
|
969
965
|
})
|
|
970
966
|
},
|
|
971
967
|
|
|
@@ -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
|
-
|
|
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:
|
|
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
|
},
|