Browse Source

单边会员和简单会员会员类型默认勾选问题

dev01 1 week ago
parent
commit
9ead58724f

+ 1 - 0
js/component/common/projectOperation/newAddProject.jsx

@@ -448,6 +448,7 @@ class NewAddProject extends Component {
       commodityQuantity: kid.cSort == 6 ? 1 : undefined,//服务数量
       histYear: [],
       projectType: kid.projectType, // 会员项目类型
+      checkType: [2, 3].indexOf(kid.projectType) > -1 ? [1] : []
     });
     if (newData && newData.length > 0 && kid.cSort == 6) {
       for (var i = newData.length - 1; i >= 0; i--) {

+ 9 - 1
js/component/common/projectOperation/newEditProject.jsx

@@ -150,7 +150,14 @@ class newEditProject extends Component {
         }
       }
     }
-    let newCheckType = this.getCheckTypeList([dataInfor]);
+
+    let newCheckType = [];
+    if ([2, 3].indexOf(dataInfor.projectType)) {
+      // 单边会员和简单会员
+      newCheckType = [1];
+    } else {
+      newCheckType = this.getCheckTypeList([dataInfor]);
+    }
     // if (dataInfor.projectType == 1) {
     //   if (dataInfor.htMember == 1) {
     //     newCheckType.push(1)
@@ -660,6 +667,7 @@ class newEditProject extends Component {
     const { RangePicker } = DatePicker;
     const { readOnly } = this.props;
     const { isVip, histYear, isMedit } = this.state
+
     return (
       <Modal
         maskClosable={false}