Commit 907d210c by zhangxw

绩效配置产品选择bug修复

1 parent 56e7eb27
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<el-cascader style="width: 136px" :ref="`cascader${colIndex}`" :options="v.productTypeFocus ? productGoodsTypeList : baseData.goodsTypeList" filterable <el-cascader style="width: 136px" :ref="`cascader${colIndex}`" :options="v.productTypeFocus ? productGoodsTypeList : baseData.goodsTypeList" filterable
v-model="v['productType']" v-model="v['productType']"
@visible-change="handleVisibleChange($event, colIndex)" aria-hidden="false" @visible-change="handleVisibleChange($event, colIndex)" aria-hidden="false"
@change="changeGoodsType($event, colIndex)" clearable @change="changeGoodsType($event, colIndex)"
:props="{ checkStrictly: true, expandTrigger: 'hover', label: 'categoryName', value: 'categoryType' }" :show-all-levels="false"> :props="{ checkStrictly: true, expandTrigger: 'hover', label: 'categoryName', value: 'categoryType' }" :show-all-levels="false">
</el-cascader> </el-cascader>
</el-form-item> </el-form-item>
...@@ -229,7 +229,7 @@ export default { ...@@ -229,7 +229,7 @@ export default {
item1?.children?.forEach((item2) => { item1?.children?.forEach((item2) => {
if (item[1] === item2?.categoryType) item2.disabled = true if (item[1] === item2?.categoryType) item2.disabled = true
item2?.children?.forEach((item3) => { item2?.children?.forEach((item3) => {
if (item[0] === item1?.categoryType) { if (item[1] === item2?.categoryType) {
item3.disabled = true item3.disabled = true
} }
}) })
...@@ -238,7 +238,7 @@ export default { ...@@ -238,7 +238,7 @@ export default {
if (item.length === 3) { if (item.length === 3) {
if (item[0] === item1?.categoryType) item1.disabled = true if (item[0] === item1?.categoryType) item1.disabled = true
item1?.children?.forEach((item2) => { item1?.children?.forEach((item2) => {
if (item[0] === item1.categoryType) item2.disabled = true if (item[1] === item2.categoryType) item2.disabled = true
item2?.children?.forEach(item3 => { item2?.children?.forEach(item3 => {
if (item[2] == item3?.categoryType) item3.disabled = true if (item[2] == item3?.categoryType) item3.disabled = true
}) })
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-form-item :prop="`campusList[${scope.$index}].productType`" :rules="rules.productType" label-width="0"> <el-form-item :prop="`campusList[${scope.$index}].productType`" :rules="rules.productType" label-width="0">
<el-cascader style="width: 160px" :options="scope.row.productTypeFocus ? productGoodsTypeList : baseData.goodsTypeList" filterable <el-cascader style="width: 160px" :options="scope.row.productTypeFocus ? productGoodsTypeList : baseData.goodsTypeList" filterable
v-model="scope.row['productType']" clearable v-model="scope.row['productType']"
@change="changeGoodsType($event, subIndex, scope.$index, 'productType')" aria-hidden="false" @change="changeGoodsType($event, subIndex, scope.$index, 'productType')" aria-hidden="false"
@visible-change="handleVisibleChange($event, subIndex, scope.$index, 'productType')" @visible-change="handleVisibleChange($event, subIndex, scope.$index, 'productType')"
:props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }" :show-all-levels="false"> :props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }" :show-all-levels="false">
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<el-form-item :prop="`campusList[${scope.$index}].conditionProductType`" :rules="rules.conditionProductType" label-width="0"> <el-form-item :prop="`campusList[${scope.$index}].conditionProductType`" :rules="rules.conditionProductType" label-width="0">
<el-cascader style="width: 160px" :options="scope.row.conditionProductTypeFocus ? conditionProductGoodsTypeList : baseData.goodsTypeList" filterable v-model="scope.row['conditionProductType']" <el-cascader style="width: 160px" :options="scope.row.conditionProductTypeFocus ? conditionProductGoodsTypeList : baseData.goodsTypeList" filterable v-model="scope.row['conditionProductType']"
@change="changeGoodsType($event, subIndex, scope.$index, 'conditionProductType')" aria-hidden="false" @change="changeGoodsType($event, subIndex, scope.$index, 'conditionProductType')" aria-hidden="false"
@visible-change="handleVisibleChange($event, subIndex, scope.$index, 'conditionProductType')" clearable @visible-change="handleVisibleChange($event, subIndex, scope.$index, 'conditionProductType')"
:props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }" :show-all-levels="false"> :props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }" :show-all-levels="false">
</el-cascader> </el-cascader>
</el-form-item> </el-form-item>
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<el-form-item :prop="`fixedList[${scope.$index}].productType`" :rules="rules.productType" label-width="0"> <el-form-item :prop="`fixedList[${scope.$index}].productType`" :rules="rules.productType" label-width="0">
<el-cascader style="width: 160px" :options="scope.row.focusFlag ? fixedGoodsTypeList : baseData.goodsTypeList" filterable v-model="scope.row['productType']" <el-cascader style="width: 160px" :options="scope.row.focusFlag ? fixedGoodsTypeList : baseData.goodsTypeList" filterable v-model="scope.row['productType']"
@change="changeGoodsType($event, subIndex, scope.$index, 'productType', 'fixedList')" aria-hidden="false" @change="changeGoodsType($event, subIndex, scope.$index, 'productType', 'fixedList')" aria-hidden="false"
@visible-change="handleVisibleChange($event, subIndex, scope.$index, 'fixedProductType')" clearable @visible-change="handleVisibleChange($event, subIndex, scope.$index, 'fixedProductType')"
:props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }" :show-all-levels="false"> :props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }" :show-all-levels="false">
</el-cascader> </el-cascader>
</el-form-item> </el-form-item>
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
<el-form-item :prop="`customerList[${scope.$index}].productType`" :rules="rules.productType" label-width="0"> <el-form-item :prop="`customerList[${scope.$index}].productType`" :rules="rules.productType" label-width="0">
<el-cascader style="width: 160px" :options="scope.row.focusFlag ? customerGoodsTypeList : baseData.goodsTypeList" filterable v-model="scope.row['productType']" <el-cascader style="width: 160px" :options="scope.row.focusFlag ? customerGoodsTypeList : baseData.goodsTypeList" filterable v-model="scope.row['productType']"
@change="changeGoodsType($event, subIndex, scope.$index, 'productType', 'customerList')" aria-hidden="false" @change="changeGoodsType($event, subIndex, scope.$index, 'productType', 'customerList')" aria-hidden="false"
@visible-change="handleVisibleChange($event, subIndex, scope.$index, 'cusProductType')" clearable @visible-change="handleVisibleChange($event, subIndex, scope.$index, 'cusProductType')"
:props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }" :show-all-levels="false"> :props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }" :show-all-levels="false">
</el-cascader> </el-cascader>
</el-form-item> </el-form-item>
...@@ -363,7 +363,7 @@ export default { ...@@ -363,7 +363,7 @@ export default {
item1?.children?.forEach((item2) => { item1?.children?.forEach((item2) => {
if (item[1] === item2?.categoryType && (key === 'customer' || oList?.includes(item[1]))) item2.disabled = true if (item[1] === item2?.categoryType && (key === 'customer' || oList?.includes(item[1]))) item2.disabled = true
item2?.children?.forEach((item3) => { item2?.children?.forEach((item3) => {
if (item[0] === item1?.categoryType) { if (item[1] === item2?.categoryType) {
item3.disabled = true item3.disabled = true
} }
}) })
...@@ -372,7 +372,7 @@ export default { ...@@ -372,7 +372,7 @@ export default {
if (item.length === 3) { if (item.length === 3) {
if (item[0] === item1?.categoryType) item1.disabled = true if (item[0] === item1?.categoryType) item1.disabled = true
item1?.children?.forEach((item2) => { item1?.children?.forEach((item2) => {
if (item[0] === item1.categoryType) item2.disabled = true if (item[1] === item2.categoryType) item2.disabled = true
item2?.children?.forEach(item3 => { item2?.children?.forEach(item3 => {
if (item[2] == item3?.categoryType && (key === 'customer' || oList?.includes(item[2]))) item3.disabled = true if (item[2] == item3?.categoryType && (key === 'customer' || oList?.includes(item[2]))) item3.disabled = true
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!