Browse Source

falsefalsefalse

huangbin 4 years ago
parent
commit
f611024868

+ 10 - 0
src/common/methods/format/index.ts

@@ -74,3 +74,13 @@ export function formatTime(value: string | Date | Moment, type: TIME) {
     if (value) return moment(value).format(str);
     return value;
 }
+
+/**
+ * 格式化 小数位
+ * @param value 
+ * @param decimal 
+ * @returns 
+ */
+export function formateDecimal(value: any, decimal: number) {
+    return value ? value.toFixed(decimal) : value
+}

+ 1 - 1
src/utils/number/index.ts

@@ -18,4 +18,4 @@ export function getDecimalsNum(val: any, decimal = 2, maxCount = 6) {
         }
     }
     return result
-}
+}

+ 6 - 6
src/views/platinum/platinum_document_query/list/order/index.vue

@@ -20,10 +20,10 @@
         <template #userinfotype="{ record }">
           <a>{{ record.userinfotype === 1 ? "个人" : "企业" }}</a>
         </template>
-          <!-- 委托状态 -->
-          <template #orderstatus="{ record }">
-              <a>{{ getOrderStatusName(record.orderstatus) }}</a>
-          </template>
+        <!-- 委托状态 -->
+        <template #orderstatus="{ record }">
+          <a>{{ getOrderStatusName(record.orderstatus) }}</a>
+        </template>
 
       </a-table>
     </contextMenu>
@@ -38,7 +38,7 @@ import { QueryTradeOrderDetailRsp } from '@/services/go/ermcp/order/interface';
 import Filter from '../../compoments/filter/index.vue';
 import { QueryTradeOrderDetailReq } from '@/services/go/ermcp/qhj/interface';
 import { getUserId } from '@/services/bus/account';
-import {getOrderStatusName} from "@/common/constants/enumsName";
+import { getOrderStatusName } from '@/common/constants/enumsName';
 
 export default defineComponent({
     name: 'platinum_document_query_order',
@@ -51,7 +51,7 @@ export default defineComponent({
         // 表格操作按钮列表
         const [firstBtn] = _getBtnList('platinum_document_query_order', false).value;
         // 表格列表数据
-        const { loading, tableList, queryTable } = queryTableList(true);
+        const { loading, tableList, queryTable } = queryTableList();
         function search(value: any) {
             const { includesub, goodsid, filtername, userid, ordertime, userinfotype } = value;
             const len = ordertime.length;

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

@@ -45,7 +45,7 @@ export default defineComponent({
         // 表格操作按钮列表
         const [firstBtn] = _getBtnList('platinum_document_query_position', false).value;
         // 表格列表数据
-        const { loading, tableList, queryTable } = queryTableList<QueryTradePositionRsp>(true);
+        const { loading, tableList, queryTable } = queryTableList<QueryTradePositionRsp>();
         function search(value: any) {
             const { includesub, goodsid, filtername, userid, userinfotype } = value;
             const param: QueryTradePositionReq = {

+ 1 - 1
src/views/platinum/platinum_document_query/list/success/index.vue

@@ -50,7 +50,7 @@ export default defineComponent({
         // 表格操作按钮列表
         const [firstBtn] = _getBtnList('platinum_document_query_success', false).value;
         // 表格列表数据
-        const { loading, tableList, queryTable } = queryTableList(true);
+        const { loading, tableList, queryTable } = queryTableList();
         function search(value: any) {
             const { includesub, goodsid, filtername, userid, ordertime, userinfotype } = value;
             const len = ordertime.length;

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

@@ -45,7 +45,7 @@ export default defineComponent({
         // 表格操作按钮列表
         const [firstBtn] = _getBtnList('platinum_document_query_waiting', false).value;
         // 表格列表数据
-        const { loading, tableList, queryTable } = queryTableList(true);
+        const { loading, tableList, queryTable } = queryTableList();
         function search(value: any) {
             const { includesub, goodsid, filtername, userid, ordertime, userinfotype, isOverTime } = value;
             const len = ordertime.length;