Explorar o código

公出面谈代码优化

雷佳斌 hai 2 meses
pai
achega
8f7f3ba34c
Modificáronse 3 ficheiros con 26 adicións e 429 borrados
  1. 23 0
      src/app.config.js
  2. 1 1
      src/pages/applyDepart/index.jsx
  3. 2 428
      src/pages/interview/index.jsx

+ 23 - 0
src/app.config.js

@@ -12,6 +12,29 @@ export default {
     'pages/situation/index',//公出情况
     'pages/addEnterprise/index',//新增企业/渠道
   ],
+//   subpackages: [
+//     {
+//         root: 'pages/egressDetails',
+//         pages: ['index'],
+//         "independent": true
+//     },
+//     {
+//         root: 'pages/customerProfile',
+//         pages: ['index'],
+//         "independent": true
+//     },
+//     {
+//         root: 'pages/situation',
+//         pages: ['index'],
+//         "independent": true
+//     },
+//     {
+//         root: 'pages/addEnterprise',
+//         pages: ['index'],
+//         "independent": true
+//     },
+    
+//   ],
   tabBar: {
     list: [
       {

+ 1 - 1
src/pages/applyDepart/index.jsx

@@ -207,7 +207,7 @@ class ApplyDepart extends Component {
                         />
                     )
                 }
-
+         
             </View>
             <View
               style={{ display: this.state.current === 2 ? "block" : "none" }}

+ 2 - 428
src/pages/interview/index.jsx

@@ -1653,214 +1653,6 @@ class CustomerProfile extends Component {
                     </View>
                   </View>
               }
-              {/* {
-                dtails.newChannel == 1
-                  ?
-                  <View className="two">
-                    <View className="title">面谈前渠道情况</View>
-                    <View className="tit">
-                      <Text>
-                        面谈项目
-                      </Text>
-                      {
-                        dtails.myUser == 1 &&
-                        <View className="up"
-                          onClick={e => {
-                            e.stopPropagation()
-                            this.getBusinessProjectByName("")
-                            this.setState({
-                              upType: 5,
-                              isOpened: true,
-                              info: {
-                                uid: this.$instance.router.params.id,
-                                intendedProject: dtails.intendedProject,
-                              },
-                              checkOptions: !!dtails.intendedProject ? dtails.intendedProject.split(",") : []
-                            })
-                          }}
-                        >修改</View>
-                      }
-                    </View>
-                    <View className="val">{dtails.intendedProject || "无"}</View>
-                    <View className="tit">
-                      <Text>
-                        面谈思路及目的
-                      </Text>
-                      {
-                        dtails.myUser == 1 &&
-                        <View className="up"
-                          onClick={e => {
-                            e.stopPropagation()
-                            this.setState({
-                              upType: 4,
-                              isOpened: true,
-                              info: {
-                                uid: this.$instance.router.params.id,
-                                id: dtails.id,
-                                interviewIdeas: dtails.interviewIdeas,
-                              }
-                            })
-                          }}
-                        >修改</View>
-                      }
-                    </View>
-                    <View className="val">{dtails.interviewIdeas || "无"}</View>
-                    <View className="tit">
-                      <Text>
-                        我方主要面谈人及分工
-                      </Text>
-                      {
-                        dtails.myUser == 1 &&
-                        <View className="up"
-                          onClick={e => {
-                            e.stopPropagation()
-                            this.setState({
-                              upType: 6,
-                              isOpened: true,
-                              info: {
-                                uid: this.$instance.router.params.id,
-                                id: dtails.id,
-                                interviewDistribution: dtails.interviewDistribution,
-                              }
-                            })
-                          }}
-                        >修改</View>
-                      }
-                    </View>
-                    <View className="val">{dtails.interviewDistribution || "无"}</View>
-                  </View>
-                  :
-                  <View className="two">
-                      
-                    <View className="title">面谈企业情况</View>
-                    <AtInput
-                        name='mzgssl'
-                        title='母/子公司数'
-                        type='number'
-                        placeholder='请输入数量'
-                    />
-                     <AtInput
-                        name='sbrs'
-                        title=''
-                        type='number'
-                        placeholder='请输入数量'
-                        size='mini'
-                    />
-                    <AtInput
-                        name='qyes'
-                        title='对外投资控股的企业数'
-                        type='number'
-                        placeholder='请输入数量'
-                    />
-                    <View className="tit">
-                      <Text>
-                        知识产权情况
-                        <Text className="txt">(专利信息、标准、专利、软著)</Text>
-                      </Text>
-                      {
-                        dtails.myUser == 1 &&
-                        <View className="up"
-                          onClick={e => {
-                            e.stopPropagation()
-                            this.setState({
-                              upType: 1,
-                              isOpened: true,
-                              info: {
-                                uid: this.$instance.router.params.id,
-                                id: dtails.id,
-                                inventionPatentCount: dtails.inventionPatentCount || 0,
-                                utilityModelCount: dtails.utilityModelCount || 0,
-                                appearancePatentCount: dtails.appearancePatentCount || 0,
-                                softwareWorksCount: dtails.softwareWorksCount || 0,
-                                otherCount: dtails.otherCount || 0,
-                              }
-                            })
-                          }}
-                        >修改</View>
-                      }
-                    </View>
-                    <View className="val">
-                      专利&nbsp;<Text className="num">{dtails.patentCount || 0}</Text>&nbsp;&nbsp;&nbsp;
-                      其中发明专利&nbsp;<Text className="num">{dtails.inventionPatentCount || 0}</Text>&nbsp;&nbsp;&nbsp;
-                      实用新型&nbsp;<Text className="num">{dtails.utilityModelCount || 0}</Text>&nbsp;&nbsp;&nbsp;
-                      外观设计&nbsp;<Text className="num">{dtails.appearancePatentCount || 0}</Text>&nbsp;&nbsp;&nbsp;
-                      软著&nbsp;<Text className="num">{dtails.softwareWorksCount || 0}</Text>&nbsp;&nbsp;&nbsp;
-                      标准&nbsp;<Text className="num">{'有'}</Text>&nbsp;&nbsp;&nbsp;
-                      其他类型&nbsp;<Text className="num">{dtails.otherCount || 0}</Text>&nbsp;&nbsp;&nbsp;
-                    </View>
-                    <View className="tit">
-                      <Text>
-                        财务数据
-                        <Text className="txt">(包括营收、税收、资产、研发费用等)</Text>
-                      </Text>
-                      {
-                        dtails.myUser == 1 &&
-                        <View className="up"
-                          onClick={e => {
-                            e.stopPropagation()
-                            this.setState({
-                              upType: 2,
-                              isOpened: true,
-                              info: {
-                                uid: this.$instance.router.params.id,
-                                id: dtails.id,
-                                financialData: dtails.financialData,
-                              }
-                            })
-                          }}
-                        >修改</View>
-                      }
-                    </View>
-                    <View className="val">{dtails.financialData || "无"}</View>
-                    <View className="tit">
-                      <Text>
-                        前期沟通
-                        <Text className="txt">(客户的难处、需求)</Text>
-                      </Text>
-                      {
-                        dtails.myUser == 1 &&
-                        <View className="up"
-                          onClick={e => {
-                            e.stopPropagation()
-                            this.setState({
-                              upType: 3,
-                              isOpened: true,
-                              info: {
-                                uid: this.$instance.router.params.id,
-                                id: dtails.id,
-                                earlyCommunication: dtails.earlyCommunication,
-                              }
-                            })
-                          }}
-                        >修改</View>
-                      }
-                    </View>
-                    <View className="val">{dtails.earlyCommunication || "无"}</View>
-                    <View className="tit">
-                      <Text>
-                        面谈思路及目的
-                      </Text>
-                      {
-                        dtails.myUser == 1 &&
-                        <View className="up"
-                          onClick={e => {
-                            e.stopPropagation()
-                            this.setState({
-                              upType: 4,
-                              isOpened: true,
-                              info: {
-                                uid: this.$instance.router.params.id,
-                                id: dtails.id,
-                                interviewIdeas: dtails.interviewIdeas,
-                              }
-                            })
-                          }}
-                        >修改</View>
-                      }
-                    </View>
-                    <View className="val">{dtails.interviewIdeas || "无"}</View>
-                  </View>
-              } */}
             </View>
           )}
         </View>
@@ -1878,42 +1670,6 @@ class CustomerProfile extends Component {
           <AtModalHeader>信息修改</AtModalHeader>
           <AtModalContent>
             {
-              upType == 0 &&
-              <View>
-                <View className='selectTitle'>企业行业</View>
-                <Picker
-                  value={this.state.sector.id}
-                  range={industry} rangeKey='title' mode='selector'
-                  onChange={(e) => {
-                    this.setState({
-                      sector: industry[e.detail.value],
-                      info: Object.assign(info, {
-                        industry: industry[e.detail.value].id,
-                      })
-                    })
-                  }}>
-                  <View style={{ marginBottom: "10px", color: !this.state.sector.title && "#CCCCCC" }}>
-                    {!this.state.sector.title ? "请选择" : this.state.sector.title}
-                  </View>
-                </Picker>
-                <View className='selectTitle'>企业主营产品/服务</View>
-                <Input
-                  // name='value'
-                  // title='企业主营产品/服务'
-                  type='text'
-                  placeholder='请用,符号隔开关键字'
-                  value={info.businessScope}
-                  onInput={e => {
-                    this.setState({
-                      info: Object.assign(info, {
-                        businessScope: e.detail.value,
-                      })
-                    })
-                  }}
-                />
-              </View>
-            }
-            {
               upType == 1 &&
               <View>
                 <AtInput
@@ -1998,60 +1754,6 @@ class CustomerProfile extends Component {
               </View>
             }
             {
-              upType == 2 &&
-              <View>
-                <View className='selectTitle'>财务数据</View>
-                <AtTextarea
-                  value={info.financialData || ""}
-                  onChange={e => {
-                    this.setState({
-                      info: Object.assign(info, {
-                        financialData: e,
-                      }),
-                    })
-                  }}
-                  maxLength={200}
-                  placeholder='请填写财务数据~'
-                />
-              </View>
-            }
-            {
-              upType == 3 &&
-              <View>
-                <View className='selectTitle'>前期沟通</View>
-                <AtTextarea
-                  value={info.earlyCommunication || ""}
-                  onChange={e => {
-                    this.setState({
-                      info: Object.assign(info, {
-                        earlyCommunication: e,
-                      }),
-                    })
-                  }}
-                  maxLength={200}
-                  placeholder='请填写前期沟通~'
-                />
-              </View>
-            }
-            {
-              upType == 4 &&
-              <View>
-                <View className='selectTitle'>面谈思路及目的</View>
-                <AtTextarea
-                  value={info.interviewIdeas || ""}
-                  onChange={e => {
-                    this.setState({
-                      info: Object.assign(info, {
-                        interviewIdeas: e,
-                      }),
-                    })
-                  }}
-                  maxLength={200}
-                  placeholder='请填写面谈思路及目的~'
-                />
-              </View>
-            }
-            {
               upType == 5 &&
               <View>
                 <AtSearchBar
@@ -2068,44 +1770,6 @@ class CustomerProfile extends Component {
                     }, () => { this.getBusinessProjectByName(this.state.value) });
                   }}
                 />
-                {/* {
-                  this.state.checkOptions.length > 0 &&
-                  <View className="selproject">
-                    已选择:
-                    {
-                      this.state.checkOptions.map((v, i) =>
-                        <View className="selptxt" key={i}
-                          onClick={() => {
-                            let list = this.state.checkOptions
-                            for (var j = 0; j < list.length; j++) {
-                              if (list[j] == v) {
-                                list.splice(j, 1)
-                                this.setState({
-                                  checkOptions: list,
-                                  info: Object.assign(info, {
-                                    intendedProject: list.toString(),
-                                  }),
-                                })
-                              }
-                            }
-                          }}
-                        >{v}&nbsp;<AtIcon className='atIcon' value='close-circle' size='12' color='#fff' /></View>
-                      )
-                    }
-                  </View>
-                } */}
-                {/* <AtCheckbox
-                  options={this.state.options}
-                  selectedList={this.state.checkOptions}
-                  onChange={e => {
-                    this.setState({
-                      checkOptions: e,
-                      info: Object.assign(info, {
-                        intendedProject: e.toString(),
-                      }),
-                    })
-                  }}
-                /> */}
 
                 {/* 高新项目 */}
                 { this.state.checkProject.length && this.state.checkProject[0].cSort == 9 ? <View style={{backgroundColor: '#eee', padding: '20rpx 24rpx', margin: '24rpx'}}>
@@ -2167,76 +1831,7 @@ class CustomerProfile extends Component {
               </RadioGroup>}
               </View>
             }
-            {
-              upType == 6 &&
-              <View>
-                <View className='selectTitle'>我方主要面谈人及分工</View>
-                <AtTextarea
-                  value={info.interviewDistribution || ""}
-                  onChange={e => {
-                    this.setState({
-                      info: Object.assign(info, {
-                        interviewDistribution: e,
-                      }),
-                    })
-                  }}
-                  maxLength={200}
-                  placeholder='请填写我方主要面谈人及分工~'
-                />
-              </View>
-            }
-            {
-              upType == 7 &&
-              <View>
-                <View className='selectTitle' style={{ height: "30px" }}>
-                  渠道类别:
-                  <Picker
-                    value={this.state.channe.id}
-                    range={channelTypeList} rangeKey='title' mode='selector'
-                    onChange={(e) => {
-                      this.setState({
-                        channe: channelTypeList[e.detail.value],
-                        info: Object.assign(info, {
-                          channelType: channelTypeList[e.detail.value].id,
-                        })
-                      })
-                    }}>
-                    <View style={{ marginBottom: "10px", width: "160px", color: !this.state.channe.title && "#CCCCCC" }}>
-                      {!this.state.channe.title ? "请选择" : this.state.channe.title}
-                    </View>
-                  </Picker>
-                </View>
-                <View className='selectTitle' style={{ height: "30px" }}>
-                  覆盖企业数:
-                  <Input
-                    style={{ width: "50%" }}
-                    type='number'
-                    placeholder='请填写个数'
-                    value={info.enterpriseCount}
-                    onInput={e => {
-                      this.setState({
-                        info: Object.assign(info, {
-                          enterpriseCount: e.detail.value,
-                        })
-                      })
-                    }}
-                  />
-                </View>
-                <View className='selectTitle' >渠道考核指标</View>
-                <AtTextarea
-                  value={info.channelIndicators || ""}
-                  onChange={e => {
-                    this.setState({
-                      info: Object.assign(info, {
-                        channelIndicators: e,
-                      }),
-                    })
-                  }}
-                  maxLength={200}
-                  placeholder='请填写渠道考核指标~'
-                />
-              </View>
-            }
+            
           </AtModalContent>
           <AtModalAction>
             <Button type='secondary' onClick={() => {
@@ -2352,30 +1947,9 @@ class CustomerProfile extends Component {
           </AtModalAction>
         </AtModal>
 
-        <AtModal
-            isOpened={this.state.addItemShow}
-            onClose={this.handleCloseAddItemDialog}
-        >
-          <AtModalHeader>新增对外投资控股的企业</AtModalHeader>
-          <AtModalContent>
-            <AtInput
-              required
-              name='mobile'
-              title='企业名称'
-              placeholder='请输入企业名称'
-              value={this.state.addItemInputVal}
-              onChange={value => this.setState({ addItemInputVal: value })}
-            />
-          </AtModalContent>
-          <AtModalAction>
-            <Button type='secondary' onClick={this.handleCloseAddItemDialog}>取消</Button>
-            <Button type='primary' onClick={this.handleAddItemSave}>保存</Button>
-          </AtModalAction>
-        </AtModal>
-
         {/* 新增项目 */}
         <AtModal
-            isOpened={this.state.addProjectShow}
+            isOpened={this.state.addItemShow}
             onClose={this.handleCloseAddItemDialog}
         >
           <AtModalHeader>新增对外投资控股的企业</AtModalHeader>