Преглед изворни кода

Merge remote-tracking branch 'origin/master'

yu jie пре 4 година
родитељ
комит
de678c8023

+ 2 - 2
src/App.vue

@@ -83,7 +83,7 @@ export default defineComponent({
             );
         });
         // 登录成功
-        // eventBus.$onOnly('loginSuccess', setOvertime);
+        eventBus.$onOnly('loginSuccess', setOvertime);
         // 监听路由的变化
         watchEffect(() => Router.currentRoute && provide('current-route', Router.currentRoute));
 
@@ -110,7 +110,7 @@ export default defineComponent({
             true
         );
 
-        // setOvertime();
+        setOvertime();
         // 订阅交易通知
         notice((msg: string) => {
             Modal.info({

+ 10 - 0
src/assets/styles/mixin.less

@@ -1593,4 +1593,14 @@ input:-internal-autofill-selected {
             }
         }
     }
+}
+
+.filter-check {
+    > span {
+        &:nth-of-type(2) {
+            color: @m-grey2;
+            height: 30px;
+            line-height: 30px;
+        }
+    }
 }

+ 1 - 1
src/services/go/ermcp/qhj/interface.ts

@@ -700,7 +700,7 @@ export interface Ermcp3SpotGoodsPriceLog {
 
 
 export interface QueryContractLogReq {
-    scfcontractid: number; // scf合同id
+    scfcontractid: string; // scf合同id
     amounttype?: string; // 资金类型(逗号隔开) - 1:首付款 2:尾款 3:利息 4:追加款
 }
 

+ 1 - 0
src/services/socket/login/index.ts

@@ -65,6 +65,7 @@ export const tokenCheck = (): Promise<string> => {
         if (isLogin()) {
             const loginId = getLongTypeLoginID() as LongType;
             const token = getToken();
+            console.log('token::::::', token)
             const systemDate = APP.get('systemDate');
             const targetDate = Date.parse(systemDate) + Date.now() - preDate;
             const params = {

+ 2 - 1
src/views/platinum/platinum_customer_info/compoments/filterTable/index.vue

@@ -5,7 +5,8 @@
                   :inputList="inputList"
                   :fixedBtnList="fixedBtnList">
       <template #selectAfter>
-        <a-checkbox v-model:checked="includesub">包含子级</a-checkbox>
+        <a-checkbox v-model:checked="includesub"
+                    class="filter-check">包含子级</a-checkbox>
       </template>
     </FilterOption>
     <slot></slot>

+ 2 - 1
src/views/platinum/platinum_document_query/compoments/filter/index.vue

@@ -10,7 +10,8 @@
                   :inputList="inputList"
                   :fixedBtnList="fixedBtnList">
       <template #selectAfter>
-        <a-checkbox v-model:checked="includesub">包含子级</a-checkbox>
+        <a-checkbox v-model:checked="includesub"
+                    class="filter-check">包含子级</a-checkbox>
       </template>
     </FilterOption>
     <slot></slot>

+ 2 - 1
src/views/platinum/platinum_document_query/list/position/compoments/filter/index.vue

@@ -5,7 +5,8 @@
                   :inputList="inputList"
                   :fixedBtnList="fixedBtnList">
       <template #selectAfter>
-        <a-checkbox v-model:checked="includesub">包含子级</a-checkbox>
+        <a-checkbox v-model:checked="includesub"
+                    class="filter-check">包含子级</a-checkbox>
       </template>
     </FilterOption>
     <slot></slot>

+ 154 - 0
src/views/platinum/platinum_document_query/list/waiting/compoments/filter/index.vue

@@ -0,0 +1,154 @@
+<template>
+  <!-- 过滤 -->
+  <div class="filterTable">
+    <a-range-picker v-model:value="date"
+                    class="commonPicker"
+                    style="width: 200px"
+                    :show-time="{hideDisabledOptions: true}"
+                    format="YYYY-MM-DD" />
+    <FilterOption :selectList="selectList"
+                  :inputList="inputList"
+                  :fixedBtnList="fixedBtnList">
+      <template #selectAfter>
+        <a-select label-in-value
+                  class="conditionSelect"
+                  style="width: 120px"
+                  v-model:value="goodsid"
+                  placeholder="选择商品">
+          <a-select-option v-for="(option, j) in goodsList"
+                           :key="j + '22'"
+                           :value="option.value">
+            {{option.lable}}
+          </a-select-option>
+        </a-select>
+        <a-checkbox v-model:checked="isOverTime"
+                    class="filter-check">过滤超时单</a-checkbox>
+        <a-select label-in-value
+                  class="conditionSelect"
+                  style="width: 120px"
+                  v-model:value="userid"
+                  placeholder="选择商品">
+          <a-select-option v-for="(option, j) in areaList"
+                           :key="j + '22'"
+                           :value="option.value">
+            {{option.lable}}
+          </a-select-option>
+        </a-select>
+        <a-checkbox v-model:checked="includesub"
+                    class="filter-check">包含子级</a-checkbox>
+      </template>
+    </FilterOption>
+    <slot></slot>
+  </div>
+</template>
+
+<script lang="ts">
+import FilterOption from '@/common/components/filter/index.vue';
+import { defineComponent, ref } from 'vue';
+import { handleFilter, InputList, SelectList } from '@/common/setup/filter';
+import { initData } from '@/common/methods';
+import { handleSelectOption } from '../../../../setup';
+import { getGoodsList } from '@/services/bus/goods';
+import { queryTableList } from '@/common/setup/table';
+import { QhjParentAreaList } from '@/services/go/ermcp/qhj/interface';
+import { queryParentAreaList } from '@/services/go/ermcp/qhj';
+import { SelectOption } from '@/common/setup/filter/interface';
+import { Moment } from 'moment';
+import { getRangeTime } from '@/utils/time';
+
+interface Value {
+    key?: string;
+    label?: string;
+}
+
+export default defineComponent({
+    name: 'filter-platinum_pick_query',
+    components: { FilterOption },
+    setup(props, context) {
+        const select = ref<SelectList[]>([
+            {
+                value: undefined,
+                key: 'userinfotype',
+                placeholder: '账号类型',
+                list: [
+                    { value: 1, lable: '个人' },
+                    { value: 2, lable: '企业' },
+                ],
+            },
+        ]);
+        // 商品
+        const goodsid = ref<Value | undefined>();
+        const goodsList = ref<SelectOption[]>([]);
+        const isOverTime = ref<boolean>(false);
+        // 机构列表
+        const userid = ref<Value | undefined>();
+        const areaList = ref<SelectOption[]>([]);
+        // 是否包含子级 1-包含
+        const includesub = ref<boolean>(false);
+        const input: InputList[] = [{ value: '', placeholder: '模糊搜索账号', key: 'filtername' }];
+
+        const date = ref<Moment[]>([]);
+
+        const param = {
+            search(result: any) {
+                result.includesub = includesub.value ? 1 : 0;
+                result.isOverTime = isOverTime.value;
+                result.goodsid = goodsid.value ? [goodsid.value.key] : [''];
+                result.userid = userid.value ? [userid.value.key] : [''];
+                // 处理范围时间内搜索
+                const time = date.value;
+                const temp = time.length > 1 ? getRangeTime(time[0], time[1]) : [''];
+                result.ordertime = temp;
+            },
+            reset() {
+                includesub.value = false;
+                isOverTime.value = false;
+                goodsid.value = undefined;
+                userid.value = undefined;
+                date.value = [];
+            },
+        };
+        const { selectList, inputList, fixedBtnList } = handleFilter(select, input, context, param);
+        const { queryTable } = queryTableList<QhjParentAreaList>();
+        initData(() => {
+            goodsList.value = getGoodsList().map((e) => {
+                return { value: e.goodsid, lable: e.goodsname };
+            });
+
+            // 机构列表
+            queryTable(queryParentAreaList).then((res) => {
+                areaList.value = res.map((e) => {
+                    return { value: e.userid, lable: e.accountname };
+                });
+            });
+        });
+        return {
+            date,
+            isOverTime,
+            goodsid,
+            userid,
+            goodsList,
+            areaList,
+            includesub,
+            selectList,
+            inputList,
+            fixedBtnList,
+        };
+    },
+});
+</script>
+
+<style lang="less">
+.filterTable {
+    .commonPicker.ant-calendar-picker {
+        display: inline-flex;
+        padding-top: 9px;
+        padding-bottom: 6px;
+        margin-right: 10px;
+        .ant-input {
+            border: 0;
+            background: @m-grey9;
+        }
+    }
+}
+</style>;

+ 4 - 3
src/views/platinum/platinum_document_query/list/waiting/index.vue

@@ -31,7 +31,7 @@ import { defineComponent, initData, getTableColumns, getTableEvent, queryTableLi
 import { getUserId } from '@/services/bus/account';
 import { queryTradePayOrder } from '@/services/go/ermcp/qhj';
 import { QhjPayOrder, QueryTradePayOrderReq } from '@/services/go/ermcp/qhj/interface';
-import Filter from '../../compoments/filter/index.vue';
+import Filter from './compoments/filter/index.vue';
 // import ControlModal from './compoments/controlModal/index.vue';
 
 export default defineComponent({
@@ -47,7 +47,7 @@ export default defineComponent({
         // 表格列表数据
         const { loading, tableList, queryTable } = queryTableList(true);
         function search(value: any) {
-            const { includesub, goodsid, filtername, userid, ordertime, userinfotype } = value;
+            const { includesub, goodsid, filtername, userid, ordertime, userinfotype, isOverTime } = value;
             const len = ordertime.length;
             const param: QueryTradePayOrderReq = {
                 userid: userid[0] ? userid[0] : getUserId(),
@@ -57,12 +57,13 @@ export default defineComponent({
                 enddate: len > 1 ? ordertime[len - 1] : '',
                 goodsid: goodsid[0],
                 includesub,
+                payflag: isOverTime ? '1' : '1,3,5', // 付款标识(逗号隔开,如1,2) - 1:未支付 2:已支付 3:已过期 4:已撤销 5:结算过期 6:预售终止
             };
             queryTable(queryTradePayOrder, param);
         }
         initData(() => {
             // 获取列表数据
-            queryTable(queryTradePayOrder, { userid: getUserId() });
+            queryTable(queryTradePayOrder, { userid: getUserId(), payflag: '1,3,5' });
             // 注册表头信息 过滤
             registerColumn('table_pcweb_qhj_pay_bill', []);
         });

+ 4 - 4
src/views/platinum/platinum_financing_information/list/tab/compoments/detail/index.vue

@@ -16,7 +16,7 @@
       <fieldset class="formFieldSet">
         <legend>融资信息</legend>
         <Des :list="desList" />
-</fieldset>
+      </fieldset>
       <fieldset class="formFieldSet">
         <legend>还款信息</legend>
         <div class="tableDatas tableContextCenter">
@@ -41,7 +41,7 @@ import { closeModal } from '@/common/setup/modal';
 import { queryTableList } from '@/common/export/table';
 import { QhjContract, QueryContractLogReq } from '@/services/go/ermcp/qhj/interface';
 import { queryContractLog } from '@/services/go/ermcp/qhj';
-import Long from "long";
+import Long from 'long';
 
 export default defineComponent({
     name: 'platinum_financing_information_detail',
@@ -204,7 +204,7 @@ export default defineComponent({
                 const person = [
                     { label: '账号', value: formatValue(data.logincode) },
                     { label: '名称', value: formatValue(data.username) },
-                    { label: '账户类型', value: formatValue(data.userinfotype === 1 ? "个人" : "企业" ) },
+                    { label: '账户类型', value: formatValue(data.userinfotype === 1 ? '个人' : '企业') },
                     { label: '商品', value: formatValue(data.goodsname) },
                     { label: '价格', value: formatValue(data.tradeprice) },
                     { label: '数 量', value: formatValue(data.wrqty) },
@@ -216,7 +216,7 @@ export default defineComponent({
                 ];
                 getDesList(person);
                 const param: QueryContractLogReq = {
-                    scfcontractid: Long.fromString(data.scfcontractid),
+                    scfcontractid: data.scfcontractid,
                 };
                 queryTable(queryContractLog, param);
             }