filterQuery.vue 23 KB

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