filterQuery.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832
  1. <template>
  2. <view>
  3. <u-popup :show="showFilter" mode="bottom" closeable @close="handleClose" @open="handleOpen">
  4. <scroll-view scroll-y :style="{ height: mapHeight }" @touchmove.stop="() => {}">
  5. <view class="filterQuery" :style="{ height : mapHeight }">
  6. <view class="query_wrap">
  7. <view class="title">
  8. 线索创建时间
  9. </view>
  10. <view class="dept_wrap form_input_pointer_events" @click="handleShowJtimePickerPopup">
  11. <u--input v-model="createTimeTxt" disabled style='pointer-events: none !important'
  12. disabledColor="#ffffff" placeholder="点击选择" border="none">
  13. </u--input>
  14. <u-icon slot="right" name="arrow-right"></u-icon>
  15. </view>
  16. <view class="title">
  17. 归属机构
  18. </view>
  19. <view class="dept_wrap form_input_pointer_events" @click="handleShowclueDept">
  20. <u--input v-model="value.deptName" disabled style='pointer-events: none !important'
  21. disabledColor="#ffffff" placeholder="点击选择" border="none">
  22. </u--input>
  23. <u-icon slot="right" name="arrow-right"></u-icon>
  24. </view>
  25. <view class="title">
  26. 来源
  27. </view>
  28. <view class="dept_wrap form_input_pointer_events" @click="handleShowclueAppName">
  29. <u--input v-model="value.appNameLabel" disabled style='pointer-events: none !important'
  30. disabledColor="#ffffff" placeholder="点击选择" border="none">
  31. </u--input>
  32. <u-icon slot="right" name="arrow-right"></u-icon>
  33. </view>
  34. <view class="title">
  35. 是否撞单
  36. </view>
  37. <view class="dept_wrap form_input_pointer_events">
  38. <ld-select :list="repetitionDict" label-key="dictLabel" value-key="dictValue"
  39. placeholder="请选择" v-model="value.isRepetitionOperationName" :border="false"></ld-select>
  40. <u-icon slot="right" name="arrow-right"></u-icon>
  41. </view>
  42. <!-- <view class="title">
  43. 是否微信撞单
  44. </view>
  45. <view class="dept_wrap form_input_pointer_events">
  46. <ld-select :list="repetitionDict" label-key="dictLabel" value-key="dictValue"
  47. placeholder="请选择" v-model="value.isRepetitionOperWeixinName" :border="false"></ld-select>
  48. <u-icon slot="right" name="arrow-right"></u-icon>
  49. </view> -->
  50. <view class="title">
  51. 是否有视频ID
  52. </view>
  53. <view class="dept_wrap form_input_pointer_events">
  54. <ld-select :list="repetitionDict" label-key="dictLabel" value-key="dictValue"
  55. placeholder="请选择" v-model="value.isVideoIdIsNull" :border="false" ></ld-select>
  56. <u-icon slot="right" name="arrow-right"></u-icon>
  57. </view>
  58. <view class="title">
  59. 归属人
  60. </view>
  61. <view class="person_wrap">
  62. <view class="person_item" v-for="(item,index) in clueOwners.userInfos" :key="item.userId">
  63. <view class="person_top">
  64. <u-avatar :src="$avatar(item.avatar)" size="40px"></u-avatar>
  65. </view>
  66. <view class="person_bottom">
  67. {{item.nickName}}
  68. </view>
  69. </view>
  70. <view class="person_item more_item" @click="handleShowclueOwner">
  71. <view class="person_top">
  72. <image src="/static/case/icon-more.png" mode="" class="more"></image>
  73. </view>
  74. <view class="person_bottom">
  75. 更多
  76. </view>
  77. </view>
  78. </view>
  79. <view class="title">
  80. 运营人
  81. </view>
  82. <view class="person_wrap">
  83. <view class="person_item" v-for="(item,index) in clueOperations.userInfos" :key="item.userId">
  84. <view class="person_top">
  85. <u-avatar :src="$avatar(item.avatar)" size="40px"></u-avatar>
  86. </view>
  87. <view class="person_bottom">
  88. {{item.nickName}}
  89. </view>
  90. </view>
  91. <view class="person_item more_item" @click="handleShowclueOperation">
  92. <view class="person_top">
  93. <image src="/static/case/icon-more.png" mode="" class="more"></image>
  94. </view>
  95. <view class="person_bottom">
  96. 更多
  97. </view>
  98. </view>
  99. </view>
  100. <view class="title">
  101. 线索阶段
  102. </view>
  103. <view class="option_list">
  104. <u-tag :text="item.dictLabel" plain :color="item.isCheck ? '#bd0017' : '#aaa'"
  105. :borderColor="item.isCheck ? '#bd0017' : '#aaa'" class="option_item"
  106. v-for="(item,index) in clueStateDicts" :key="index"
  107. @click="handleClickTag(item,'clueStateList')"></u-tag>
  108. </view>
  109. <!-- <view class="title">
  110. 线索标签
  111. </view>
  112. <view class="option_list">
  113. <ld-select :list="clueTagGroupVoList" label-key="name" value-key="id" placeholder="请选择线索标签"
  114. v-model="value.allTagList" multiple clearable></ld-select>
  115. </view> -->
  116. <view class="title">
  117. 手机号码或微信
  118. </view>
  119. <view class="search_input">
  120. <u--input clearable prefixIcon="search" v-model="value.telephone"
  121. placeholder="请输入手机号码或微信"></u--input>
  122. </view>
  123. <view class="title">
  124. 姓名
  125. </view>
  126. <view class="search_input">
  127. <u--input clearable prefixIcon="search" v-model="value.name" placeholder="请输入姓名"></u--input>
  128. </view>
  129. <view class="title">
  130. 广告主名称
  131. </view>
  132. <view class="search_input">
  133. <u--input clearable prefixIcon="search" v-model="value.advName"
  134. placeholder="请输入广告主名称"></u--input>
  135. </view>
  136. <view class="title">
  137. 广告名称
  138. </view>
  139. <view class="search_input">
  140. <u--input clearable prefixIcon="search" v-model="value.promotionName"
  141. placeholder="请输入广告名称"></u--input>
  142. </view>
  143. <view class="title">
  144. 广告主ID
  145. </view>
  146. <view class="search_input">
  147. <u--input clearable prefixIcon="search" v-model="value.advId" placeholder="请输入广告主ID"></u--input>
  148. </view>
  149. <view class="title">
  150. 广告ID
  151. </view>
  152. <view class="search_input">
  153. <u--input clearable prefixIcon="search" v-model="value.promotionId"
  154. placeholder="请输入广告ID"></u--input>
  155. </view>
  156. <view class="title">
  157. 标题ID
  158. </view>
  159. <view class="search_input">
  160. <u--input clearable prefixIcon="search" v-model="value.titleId"
  161. placeholder="请输入标题ID"></u--input>
  162. </view>
  163. <view class="title">
  164. 视频ID
  165. </view>
  166. <view class="search_input">
  167. <u--input clearable prefixIcon="search" v-model="value.videoId"
  168. placeholder="请输入视频ID"></u--input>
  169. </view>
  170. <view class="title">
  171. 自动定位城市
  172. </view>
  173. <view class="pick_regions_wrap form_input_pointer_events">
  174. <pick-regions :defaultRegion="defaultRegion" @getRegion="handleGetRegion1">
  175. <view class="province">
  176. <template v-if="value.autoProvince">
  177. <u--input :value="value.autoProvince + '/' + value.autoCity + '/' + value.autoArea"
  178. placeholder="点击选择" readonly suffixIcon="arrow-right"
  179. suffixIconStyle="color : #c0c4cc"></u--input>
  180. </template>
  181. <template v-else>
  182. <u--input placeholder="点击选择" readonly suffixIcon="arrow-right"
  183. suffixIconStyle="color : #c0c4cc"></u--input>
  184. </template>
  185. </view>
  186. </pick-regions>
  187. </view>
  188. <view class="title">
  189. 手动填写地域
  190. </view>
  191. <view class="pick_regions_wrap form_input_pointer_events">
  192. <pick-regions :defaultRegion="defaultRegion" @getRegion="handleGetRegion2">
  193. <view class="province">
  194. <template v-if="value.manualProvince">
  195. <u--input
  196. :value="value.manualProvince + '/' + value.manualCity + '/' + value.manualArea"
  197. placeholder="点击选择" readonly suffixIcon="arrow-right"
  198. suffixIconStyle="color : #c0c4cc"></u--input>
  199. </template>
  200. <template v-else>
  201. <u--input placeholder="点击选择" readonly suffixIcon="arrow-right"
  202. suffixIconStyle="color : #c0c4cc"></u--input>
  203. </template>
  204. </view>
  205. </pick-regions>
  206. </view>
  207. <view class="title">
  208. 跟进状态
  209. </view>
  210. <view class="option_list">
  211. <u-tag :text="item.dictLabel" plain :color="item.isCheck ? '#bd0017' : '#aaa'"
  212. :borderColor="item.isCheck ? '#bd0017' : '#aaa'" class="option_item"
  213. v-for="(item,index) in followStatusDicts" :key="index"
  214. @click="handleClickTag(item,'handleStateList')"></u-tag>
  215. </view>
  216. <view class="title">
  217. 通话状态
  218. </view>
  219. <view class="option_list">
  220. <u-tag :text="item.dictLabel" plain :color="item.isCheck ? '#bd0017' : '#aaa'"
  221. :borderColor="item.isCheck ? '#bd0017' : '#aaa'" class="option_item"
  222. v-for="(item,index) in callStatusDicts" :key="index"
  223. @click="handleClickTag(item,'followStatusList')"></u-tag>
  224. </view>
  225. <view class="title">
  226. 入池方式
  227. </view>
  228. <view class="option_list">
  229. <u-tag :text="item.dictLabel" plain :color="item.isCheck ? '#bd0017' : '#aaa'"
  230. :borderColor="item.isCheck ? '#bd0017' : '#aaa'" class="option_item"
  231. v-for="(item,index) in clueEntranceTypeDicts" :key="index"
  232. @click="handleClickTag(item,'clueEntranceType')"></u-tag>
  233. </view>
  234. <view class="title">
  235. 业务类别
  236. </view>
  237. <view class="dept_wrap form_input_pointer_events">
  238. <ld-select :list="dicts.crmClueBiz" label-key="dictLabel" value-key="dictValue" placeholder="请选择业务类别"
  239. v-model="value.clueBizType" :border="false" clearable></ld-select>
  240. <u-icon slot="right" name="arrow-right"></u-icon>
  241. </view>
  242. <view class="title">
  243. 物品类别
  244. </view>
  245. <view class="dept_wrap form_input_pointer_events">
  246. <ld-select :list="dicts.crmClueObj" label-key="dictLabel" value-key="dictValue" placeholder="请选择物品类别"
  247. v-model="value.clueObjType" :border="false" clearable></ld-select>
  248. <u-icon slot="right" name="arrow-right"></u-icon>
  249. </view>
  250. <view class="title">
  251. 线索类别
  252. </view>
  253. <view class="dept_wrap form_input_pointer_events">
  254. <ld-select :list="dicts.crmClueType" label-key="dictLabel" value-key="dictValue" placeholder="请选择线索类别"
  255. v-model="value.clueAdType" :border="false" clearable></ld-select>
  256. <u-icon slot="right" name="arrow-right"></u-icon>
  257. </view>
  258. </view>
  259. <u-tabbar :fixed="true" inactiveColor="#ffffff" class="case_tabbar" :placeholder="true"
  260. :safeAreaInsetBottom="true">
  261. <u-tabbar-item text="重置" :customStyle="{backgroundColor : '#fff'}" class="uTabbarItem close_btn"
  262. @click="handleReset"></u-tabbar-item>
  263. <u-tabbar-item text="确定" :customStyle="{backgroundColor : '#4c8afe'}" class="uTabbarItem"
  264. @click="handleEnter"></u-tabbar-item>
  265. </u-tabbar>
  266. <ba-tree-picker :selectParent="false" v-if="clueOwnerListData.length > 0" ref="clueOwner" :multiple="false"
  267. border title="归属人" :localdata="clueOwnerListData" valueKey="id" textKey="label" childrenKey="children"
  268. :selectedValues="value.clueOwnerId" @select-change="clueOwnerSeletchang" />
  269. <ba-tree-picker :selectParent="false" v-if="clueOperationListData.length > 0" ref="clueOperation" :multiple="false"
  270. border title="运营人" :localdata="clueOperationListData" valueKey="id" textKey="label" childrenKey="children"
  271. :selectedValues="value.clueOperationId" @select-change="clueOperationSeletchang" />
  272. <ba-tree-picker :selectParent="true" v-if="deptList.length > 0" ref="dept" :multiple='false'
  273. @select-change="deptSeletchang" border title="归属机构" :localdata="deptList" valueKey="deptId"
  274. textKey="deptName" childrenKey="children" :selectedValues="value.deptId"
  275. :personNames="value.deptName" />
  276. <ba-tree-picker :selectParent="true" v-if="dictCascadeData.length > 0" ref="appName" :multiple='false'
  277. @select-change="appNameSeletchang" border title="来源" :localdata="dictCascadeData" valueKey="id"
  278. textKey="name" childrenKey="children" :selectedValues="value.appNames"
  279. :personNames="value.appNameLabel" />
  280. <jtimePickerPopup :isShowShortTimeList="true" shortTimeTitle="快捷时间" :shortTimeList="shortTimeList"
  281. :isShowSeletTimeTitle="true" seletTimeTitle="时间选择" cancelText="取消" confirmText="确认"
  282. :endSelectMonth="-1" :endSelectDay="-1" beginTimePlaceHolder='开始时间' endTimePlaceHolder="结束时间"
  283. :isDateTypeRange="true" :isShowSelectedTimeEcho="true" @confirm="getSelectTime"
  284. ref="jtimePickerPopup" :defaultSelect="1">
  285. </jtimePickerPopup>
  286. </view>
  287. </scroll-view>
  288. </u-popup>
  289. </view>
  290. </template>
  291. <script>
  292. import {
  293. filterCustomerManager,
  294. handleTree
  295. } from '@/utils/util';
  296. import jtimePickerPopup from '@/uni_modules/jtime-picker-popup/components/JTimePicker/JTimePicker.vue';
  297. export default {
  298. components: {
  299. jtimePickerPopup
  300. },
  301. props: {
  302. value: {
  303. type: Object,
  304. },
  305. mapHeight: {
  306. type: String,
  307. },
  308. dicts: {
  309. type: Object
  310. },
  311. },
  312. emits: ["getList"],
  313. computed: {
  314. clueStateDicts() {
  315. this.dicts.caseStatusDicts.forEach(v => {
  316. const item = this.value.clueStateList.find(s => s == v.dictValue);
  317. v.isCheck = item ? true : false;
  318. });
  319. return this.dicts.caseStatusDicts;
  320. },
  321. followStatusDicts() {
  322. this.dicts.crmFollowStatus.forEach(v => {
  323. const item = this.value.handleStateList.find(s => s == v.dictValue);
  324. v.isCheck = item ? true : false;
  325. });
  326. return this.dicts.crmFollowStatus;
  327. },
  328. callStatusDicts() {
  329. this.dicts.crmCallStatus.forEach(v => {
  330. const item = this.value.followStatusList.find(s => s == v.dictValue);
  331. v.isCheck = item ? true : false;
  332. });
  333. return this.dicts.crmCallStatus;
  334. },
  335. clueEntranceTypeDicts() {
  336. this.dicts.clueEntranceType.forEach(v => {
  337. const item = this.value.clueEntranceType.find(s => s == v.dictValue);
  338. v.isCheck = item ? true : false;
  339. });
  340. return this.dicts.clueEntranceType;
  341. },
  342. },
  343. data() {
  344. return {
  345. repetitionDict: [{
  346. dictLabel: '是',
  347. dictValue: '1'
  348. },
  349. {
  350. dictLabel: '否',
  351. dictValue: '2'
  352. },
  353. {
  354. dictLabel: '查所有',
  355. dictValue: ''
  356. },
  357. ],
  358. showFilter: false,
  359. dictCascadeData: [],
  360. clueOwnerListData: [], // 人员列表
  361. clueOperationListData: [], // 人员列表
  362. deptList: [],
  363. dateRange: [], // 日期范围
  364. shortTimeList: [{
  365. unit: 'day',
  366. key: '全部',
  367. value: 0
  368. },
  369. {
  370. unit: 'day',
  371. key: '今天',
  372. value: 1
  373. },
  374. {
  375. unit: 'day',
  376. key: '昨天',
  377. value: -1
  378. },
  379. {
  380. unit: 'day',
  381. key: '近3天',
  382. value: 3
  383. },
  384. {
  385. unit: 'day',
  386. key: '近7天',
  387. value: 7
  388. },
  389. {
  390. unit: 'day',
  391. key: '近15天',
  392. value: 15
  393. },
  394. {
  395. unit: 'month',
  396. key: '本月',
  397. value: 1
  398. },
  399. {
  400. unit: 'month',
  401. key: '上月',
  402. value: -1
  403. },
  404. ],
  405. createTimeTxt: null,
  406. clueOwners: {
  407. ids: [],
  408. names: [],
  409. userInfos: [],
  410. },
  411. clueOperations: {
  412. ids: [],
  413. names: [],
  414. userInfos: [],
  415. },
  416. clueTagGroupVoList: [],
  417. defaultRegion: ['广东省', '广州市', '番禺区'],
  418. sortParams: [{
  419. value: 1,
  420. text: '企业名称'
  421. }, {
  422. value: 2,
  423. text: '项目名称'
  424. }, {
  425. value: 3,
  426. text: '项目状态'
  427. }, {
  428. value: 4,
  429. text: '项目等级'
  430. }, {
  431. value: 5,
  432. text: '省市区'
  433. }, {
  434. value: 6,
  435. text: '委托日期'
  436. }, {
  437. value: 7,
  438. text: '创建日期'
  439. }, {
  440. value: 8,
  441. text: '跟进时间'
  442. }]
  443. }
  444. },
  445. mounted() {
  446. this.handleInitTag();
  447. },
  448. methods: {
  449. handleOpen(){
  450. if(this.createTimeTxt === null){
  451. this.$refs.jtimePickerPopup.handleInit();
  452. }
  453. },
  454. handleShowclueAppName() {
  455. this.$refs.appName._show();
  456. },
  457. getSelectTime(timeValue) {
  458. this.value.createTimeStart = timeValue.beginTime;
  459. this.value.createTimeEnd = timeValue.endTime;
  460. if (this.value.createTimeStart && this.value.createTimeEnd) {
  461. this.createTimeTxt = this.value.createTimeStart + "至" + this.value.createTimeEnd;
  462. } else {
  463. this.createTimeTxt = "";
  464. }
  465. },
  466. deptSeletchang(ids, names) {
  467. this.value.deptId = ids[0];
  468. this.value.deptName = names[0];
  469. },
  470. handleShowJtimePickerPopup() {
  471. this.$refs.jtimePickerPopup.pickerShow();
  472. },
  473. handleShowclueDept() {
  474. this.$refs.dept._show();
  475. },
  476. // 自动定位城市
  477. handleGetRegion1(region) {
  478. const {
  479. 0: provinceData,
  480. 1: cityData,
  481. 2: areaData
  482. } = region;
  483. this.value.autoProvince = provinceData.name;
  484. this.value.autoCity = cityData.name;
  485. this.value.autoArea = areaData.name;
  486. },
  487. // 手动填写地域
  488. handleGetRegion2(region) {
  489. const {
  490. 0: provinceData,
  491. 1: cityData,
  492. 2: areaData
  493. } = region;
  494. this.value.manualProvince = provinceData.name;
  495. this.value.manualCity = cityData.name;
  496. this.value.manualArea = areaData.name;
  497. },
  498. appNameSeletchang(ids, names) {
  499. this.value.appNames = ids;
  500. this.value.appNameLabel = names[0];
  501. },
  502. clueOperationSeletchang(ids, names) {
  503. this.clueOperations.ids = ids;
  504. this.clueOperations.names = ids;
  505. this.value.clueOperationId = ids[0];
  506. if (ids.length > 0) {
  507. // 暂时只做单向
  508. uni.$u.api.getUserByUserIds({
  509. userIds: ids.join(",")
  510. }).then(res => {
  511. const {
  512. data
  513. } = res;
  514. this.clueOperations.userInfos = data;
  515. })
  516. } else {
  517. this.clueOperations.userInfos = [];
  518. }
  519. },
  520. clueOwnerSeletchang(ids, names) {
  521. this.clueOwners.ids = ids;
  522. this.clueOwners.names = ids;
  523. this.value.clueOwnerId = ids[0];
  524. if (ids.length > 0) {
  525. // 暂时只做单向
  526. uni.$u.api.getUserByUserIds({
  527. userIds: ids.join(",")
  528. }).then(res => {
  529. const {
  530. data
  531. } = res;
  532. this.clueOwners.userInfos = data;
  533. })
  534. } else {
  535. this.clueOwners.userInfos = [];
  536. }
  537. },
  538. handleShowclueOperation() {
  539. this.$refs.clueOperation._show();
  540. },
  541. handleShowclueOwner() {
  542. this.$refs.clueOwner._show();
  543. },
  544. handleInitTag() {
  545. uni.$u.api.selectAllDeptList({
  546. isDept: 2
  547. }).then(({
  548. data
  549. }) => {
  550. this.deptList = handleTree(data, 'deptId');
  551. });
  552. // 获取人员
  553. uni.$u.api.getDeptOwner({ excludeDeptIds : [100,369,378,356] }).then(res => {
  554. this.clueOwnerListData = filterCustomerManager(res.data);
  555. });
  556. // 获取人员
  557. uni.$u.api.getDeptCustomerByOrg({ deptId : 369 }).then(res => {
  558. this.clueOperationListData = filterCustomerManager(res.data);
  559. });
  560. // 获取所有线索标签
  561. uni.$u.api.getClueTagGroupVoList({ tagGroupApplication : '1' }).then(({
  562. data
  563. }) => {
  564. this.clueTagGroupVoList = data.reduce((acc, cur) => {
  565. return acc.concat(cur.clueTagDataList);
  566. }, []);
  567. });
  568. // 来源
  569. uni.$u.api.getDictCascadeData().then(({
  570. data
  571. }) => {
  572. this.dictCascadeData = handleTree(data, 'id');
  573. });
  574. },
  575. handleClose() {
  576. this.showFilter = false;
  577. },
  578. handleClickTag(item, attr) {
  579. if (item.isCheck) {
  580. const index = this.value[attr].findIndex(v => v == item.dictValue);
  581. this.value[attr].splice(index, 1);
  582. } else {
  583. this.value[attr].push(item.dictValue);
  584. }
  585. },
  586. handleReset() {
  587. this.value.clueStateList = [];
  588. this.value.followStatusList = [];
  589. this.value.handleStateList = [];
  590. this.value.clueEntranceType = [];
  591. this.value.clueBizType = undefined;
  592. this.value.clueObjType = undefined;
  593. this.value.clueAdType = undefined;
  594. this.value.manualProvince = undefined;
  595. this.value.manualCity = undefined;
  596. this.value.manualArea = undefined;
  597. this.value.autoProvince = undefined;
  598. this.value.autoCity = undefined;
  599. this.value.autoArea = undefined;
  600. this.value.clueOperationId = undefined;
  601. this.value.clueOwnerId = undefined;
  602. this.value.allTagList = [];
  603. this.value.telephone = undefined;
  604. this.value.deptId = undefined;
  605. this.value.deptName = undefined;
  606. this.value.appNames = [];
  607. this.value.appNameLabel = undefined;
  608. this.value.isRepetitionOperWeixinName = '';
  609. this.value.isRepetitionOperationName = '';
  610. this.value.isVideoIdIsNull = '';
  611. this.value.advName = "";
  612. this.value.promotionName = "";
  613. this.value.advId = "";
  614. this.value.promotionId = "";
  615. this.value.titleId = "";
  616. this.value.videoId = "";
  617. this.clueOwners = {
  618. ids: [],
  619. names: [],
  620. userInfos: [],
  621. };
  622. this.clueOperations = {
  623. ids: [],
  624. names: [],
  625. userInfos: [],
  626. };
  627. },
  628. handleEnter() {
  629. if (this.value.titleId && isNaN(this.value.titleId)) {
  630. this.$u.toast("标题ID必须为纯数值");
  631. return;
  632. }
  633. if (this.value.videoId && isNaN(this.value.videoId)) {
  634. this.$u.toast("视频ID必须为纯数值");
  635. return;
  636. }
  637. if (this.value.promotionId && isNaN(this.value.promotionId)) {
  638. this.$u.toast("广告ID必须为纯数值");
  639. return;
  640. }
  641. if (this.value.advId && isNaN(this.value.advId)) {
  642. this.$u.toast("广告主ID必须为纯数值");
  643. return;
  644. }
  645. this.$emit("getList");
  646. this.showFilter = false;
  647. },
  648. handleChangeSort(sort) {
  649. this.value.sort = sort;
  650. },
  651. handleChangeSortField(value) {
  652. this.value.sortField = value;
  653. },
  654. show() {
  655. this.showFilter = true;
  656. }
  657. },
  658. }
  659. </script>
  660. <style lang="scss" scoped>
  661. .filterQuery {
  662. padding: 20px;
  663. box-sizing: border-box;
  664. overflow: scroll;
  665. padding-top: 40px;
  666. .dept_wrap {
  667. border: 2px solid #ddd;
  668. display: flex;
  669. padding: 10rpx 20rpx;
  670. border-radius: 6rpx;
  671. margin-bottom: 20rpx;
  672. }
  673. .pick_regions_wrap {}
  674. .person_wrap {
  675. display: flex;
  676. flex-wrap: wrap;
  677. align-items: center;
  678. margin-bottom: 15px;
  679. .person_item {
  680. width: 10%;
  681. display: flex;
  682. flex-direction: column;
  683. align-items: center;
  684. margin-bottom: 10px;
  685. .person_top {
  686. width: 40px;
  687. height: 40px;
  688. display: flex;
  689. align-items: center;
  690. justify-content: center;
  691. }
  692. .person_bottom {
  693. margin-top: 5px;
  694. font-size: 12px;
  695. color: #202020;
  696. }
  697. }
  698. .more_item {
  699. .more {
  700. width: 28px;
  701. height: 28px;
  702. }
  703. .person_bottom {
  704. color: #4c8afe;
  705. font-size: 12px;
  706. margin-top: 0px;
  707. }
  708. }
  709. }
  710. .search_input {
  711. border: 1px solid #ddd;
  712. border-radius: 4px;
  713. overflow: hidden;
  714. margin-bottom: 15px;
  715. }
  716. .query_wrap {
  717. .title {
  718. font-size: 18px;
  719. color: #202020;
  720. margin-bottom: 10px;
  721. }
  722. .option_list {
  723. display: flex;
  724. flex-wrap: wrap;
  725. margin-bottom: 15px;
  726. .option_item {
  727. width: calc(33.33% - 10px);
  728. margin-right: 10px;
  729. margin-bottom: 10px;
  730. ::v-deep .u-tag__text {
  731. margin: auto;
  732. font-size: 14px;
  733. }
  734. &:nth-child(6n) {
  735. margin-right: 0px;
  736. }
  737. }
  738. }
  739. .follow_option_list {
  740. .option_item {
  741. ::v-deep .u-tag__text {
  742. font-size: 12px;
  743. }
  744. }
  745. }
  746. }
  747. }
  748. .case_tabbar {
  749. .uTabbarItem {
  750. ::v-deep .u-tabbar-item__text {
  751. font-size: 18px;
  752. }
  753. }
  754. .close_btn {
  755. ::v-deep .u-tabbar-item__text {
  756. font-size: 18px;
  757. color: #606060 !important;
  758. }
  759. }
  760. }
  761. </style>