index.vue 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <template>
  2. <view class="ti_page">
  3. <view class="form">
  4. <view class="form-item adfacjb">
  5. <view class="form-item-title">团队名称</view>
  6. <view class="form-item-inp">
  7. <u-input v-model="teamInfo.teamName" placeholder="请输入团队名称" border="none" inputAlign="right" fontSize="28rpx" color="#002846"/>
  8. </view>
  9. </view>
  10. <view class="form-item adfacjb">
  11. <view class="form-item-title">所在公司</view>
  12. <view class="form-item-inp">
  13. <u-input v-model="teamInfo.enterpriseName" placeholder="请输入公司名称" border="none" inputAlign="right" fontSize="28rpx" color="#002846"/>
  14. </view>
  15. </view>
  16. <view class="form-item adfacjb">
  17. <view class="form-item-title">所属地区</view>
  18. <view class="form-item-inp adfac" @click="pickerShow('areaShow')">
  19. <text :class="{'active':areaText!=='请选择'}">{{areaText}}</text>
  20. <u-icon name="arrow-right" size="24rpx" color="#B9C0C8"></u-icon>
  21. </view>
  22. </view>
  23. <view class="form-item adfacjb">
  24. <view class="form-item-title red">所属行业</view>
  25. <view class="form-item-inp adfac" @click="pickerShow('industryShow')">
  26. <text :class="{'active':industryText!=='请选择'}">{{industryText}}</text>
  27. <u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
  28. </view>
  29. </view>
  30. <view class="form-item adfacjb">
  31. <view class="form-item-title red">团队职能类型</view>
  32. <view class="form-item-inp adfac" @click="pickerShow('functionTypeShow')">
  33. <text :class="{'active':functionTypeText!=='请选择'}">{{functionTypeText}}</text>
  34. <u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
  35. </view>
  36. </view>
  37. <view class="form-item adfacjb">
  38. <view class="form-item-title red">团队架构类型</view>
  39. <view class="form-item-inp adfac" @click="pickerShow('architectureTypeShow')">
  40. <text :class="{'active':architectureTypeText!=='请选择'}">{{architectureTypeText}}</text>
  41. <u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
  42. </view>
  43. </view>
  44. <view class="form-item adfacjb">
  45. <view class="form-item-title">团队规模</view>
  46. <view class="form-item-inp adfac" @click="pickerShow('teamScaleShow')">
  47. <text :class="{'active':teamScaleText!=='请选择'}">{{teamScaleText}}</text>
  48. <u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
  49. </view>
  50. </view>
  51. <view class="form-item adfacjb">
  52. <view class="form-item-title">团队层级</view>
  53. <view class="form-item-inp adfac" @click="pickerShow('teamLevelShow')">
  54. <text :class="{'active':teamLevelText!=='请选择'}">{{teamLevelText}}</text>
  55. <u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="box">
  60. <view class="box-title">团队介绍</view>
  61. <view class="box-textarea">
  62. <u-textarea border="none" height="470rpx" maxlength="-1" fontSize="28rpx" color="#002846" v-model="teamInfo.brief" placeholder="示例:海普洛斯是肿瘤液体活检和基因大数据国家高新技术企业,专精特新“小巨人”企业,在基因测序、液体活检、生命信息和大数据等领域具有核心技术优势,以科技创新造福人类,致力于成为全球领先的生命科技公司。业务覆盖肿瘤全病程管理、遗传性疾病筛查、重大感染性疾病筛查等领域,已为全国数百家三甲医院、科研院所、体检机构、保险公司以及各地政府提供基因检测技术服务和整体解决方案。此次评估对象为海普洛斯销售板块中的临床销售管理团队,团队人数22人,包括团队负责人(营销副总裁)1人、总监级6人、高级经理级5人、经理级10人。团队主要职能是负责向全国医院系统的推广销售海普洛斯的基因测序、液体活检服务和生命信息数据产品。"></u-textarea>
  63. </view>
  64. </view>
  65. <view class="zt_btn" @click="handleConfirm">{{confirmText}}</view>
  66. <view class="dialog" v-if="areaShow">
  67. <view class="dialog-box">
  68. <cus-province-city-area @cancel="areaShow=false" @confirm="areaConfirm"></cus-province-city-area>
  69. </view>
  70. </view>
  71. <u-picker :itemHeight="88" :immediateChange="true" :show="industryShow" :columns="industryData" title="所属行业"
  72. @cancel="industryShow=false" @confirm="e=>pickerConfirm(e,'industryId','industryText','industryShow')"></u-picker>
  73. <u-picker :itemHeight="88" :immediateChange="true" :show="functionTypeShow" :columns="functionTypeData" title="团队职能类型"
  74. @cancel="functionTypeShow=false" @confirm="e=>pickerConfirm(e,'functionIds','functionTypeText','functionTypeShow')"></u-picker>
  75. <u-picker :itemHeight="88" :immediateChange="true" :show="architectureTypeShow" :columns="architectureTypeData" title="团队架构类型"
  76. @cancel="architectureTypeShow=false" @confirm="e=>pickerConfirm(e,'orgIds','architectureTypeText','architectureTypeShow')"></u-picker>
  77. <u-picker :itemHeight="88" :immediateChange="true" :show="teamScaleShow" :columns="teamScaleData" title="团队规模" keyName="name"
  78. @cancel="teamScaleShow=false" @confirm="e=>pickerConfirm(e,'scale','teamScaleText','teamScaleShow')"></u-picker>
  79. <u-picker :itemHeight="88" :immediateChange="true" :show="teamLevelShow" :columns="teamLevelData" title="团队层级" keyName="name"
  80. @cancel="teamLevelShow=false" @confirm="e=>pickerConfirm(e,'hierarchy','teamLevelText','teamLevelShow')"></u-picker>
  81. </view>
  82. </template>
  83. <script>
  84. import CusProvinceCityArea from '@/components/CusProvinceCityArea/index.vue'
  85. export default {
  86. components:{ CusProvinceCityArea },
  87. props:{
  88. confirmText:{
  89. typeof:String,
  90. default:'下一步'
  91. }
  92. },
  93. data(){
  94. return {
  95. teamInfo:{
  96. teamName:'',
  97. enterpriseName:'',
  98. provinceId:'',
  99. cityId:'',
  100. districtId:'',
  101. industryId:'',
  102. functionIds:[],
  103. orgIds:[],
  104. scale:'',
  105. hierarchy:'',
  106. brief:'',
  107. },
  108. areaShow:false,
  109. areaText:'请选择',
  110. industryShow:false,
  111. industryData:[['行业1','行业2']],
  112. industryText:'请选择',
  113. functionTypeShow:false,
  114. functionTypeData:[['职能类型1','职能类型2']],
  115. functionTypeText:'请选择',
  116. architectureTypeShow:false,
  117. architectureTypeData:[['架构类型1','架构类型2']],
  118. architectureTypeText:'请选择',
  119. teamScaleShow:false,
  120. teamScaleData:[],
  121. teamScaleText:'请选择',
  122. teamLevelShow:false,
  123. teamLevelData:[],
  124. teamLevelText:'请选择',
  125. }
  126. },
  127. mounted() {
  128. this.getTeamScaleData()
  129. this.getTeamHierarchyData()
  130. },
  131. methods:{
  132. getTeamScaleData(){
  133. this.$api.get('/getListByType/team_scale').then(({data:res})=>{
  134. if(res.code!==0) return this.$showToast(res.msg)
  135. this.teamScaleData = [res.data.map(d=>({name:d.dictLabel,id:d.dictValue}))]
  136. })
  137. },
  138. getTeamHierarchyData(){
  139. this.$api.get('/getListByType/team_hierarchy').then(({data:res})=>{
  140. if(res.code!==0) return this.$showToast(res.msg)
  141. this.teamLevelData = [res.data.map(d=>({name:d.dictLabel,id:d.dictValue}))]
  142. })
  143. },
  144. confirm(e) {
  145. const { value } = e;
  146. this.areaText = value.map(item => item.label).join('-');
  147. this.areaShow = false;
  148. },
  149. cancel() {
  150. this.areaShow = false;
  151. },
  152. close() {
  153. this.areaShow = false;
  154. },
  155. pickerShow(key){
  156. this[key] = true;
  157. },
  158. pickerConfirm(e,key1,key2,key3){
  159. this.teamInfo[key1] = e.value[0].id;
  160. this[key2] = e.value[0].name;
  161. this[key3] = false;
  162. },
  163. handleConfirm(){
  164. // if(!this.teamInfo.industryId) return this.$showToast('请选择所属行业')
  165. // if(!this.teamInfo.functionIds) return this.$showToast('请选择团队职能类型')
  166. // if(!this.teamInfo.orgIds) return this.$showToast('请选择团队架构类型')
  167. this.$emit('handleConfirm',this.teamInfo)
  168. },
  169. areaConfirm(e){
  170. const { provinceId, cityId,districtId,provinceName,cityName,districtName } = e
  171. this.teamInfo.provinceId = provinceId;
  172. this.teamInfo.cityId = cityId;
  173. this.teamInfo.districtId = districtId;
  174. this.areaText = provinceName+' '+cityName+' '+districtName;
  175. this.areaShow = false;
  176. }
  177. }
  178. }
  179. </script>
  180. <style scoped lang="scss">
  181. .ti_page{
  182. width: 100%;
  183. padding: 0 24rpx 162rpx;
  184. box-sizing: border-box;
  185. .form{
  186. margin-top: 20rpx;
  187. background: #FFFFFF;
  188. border-radius: 24rpx;
  189. &-item{
  190. padding: 28rpx 24rpx;
  191. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #EFEFEF;
  192. &-title{
  193. font-family: PingFangSC, PingFang SC;
  194. font-weight: 400;
  195. font-size: 30rpx;
  196. color: #002846;
  197. line-height: 42rpx;
  198. position: relative;
  199. padding-right: 23rpx;
  200. &.red{
  201. &::after{
  202. content: "*";
  203. font-family: PingFangSC, PingFang SC;
  204. font-weight: 400;
  205. font-size: 30rpx;
  206. color: #FD4F66;
  207. line-height: 42rpx;
  208. position: absolute;
  209. right: 0;
  210. }
  211. }
  212. }
  213. &-inp{
  214. text{
  215. font-family: PingFangSC, PingFang SC;
  216. font-weight: 400;
  217. font-size: 28rpx;
  218. color: #B3BFC8;
  219. line-height: 40rpx;
  220. margin-right: 10rpx;
  221. &.active{
  222. color: #002846;
  223. line-height: 30rpx;
  224. }
  225. }
  226. }
  227. }
  228. }
  229. .box{
  230. background: #FFFFFF;
  231. box-shadow: inset 0rpx -1rpx 0rpx 0rpx rgba(229,231,235,0.5);
  232. border-radius: 24rpx;
  233. margin-top: 20rpx;
  234. padding: 28rpx 24rpx;
  235. }
  236. .zt_btn{
  237. width: calc(100% - 100rpx);
  238. position: fixed;
  239. left: 50rpx;
  240. bottom: 54rpx;
  241. z-index: 1000;
  242. }
  243. }
  244. </style>