Эх сурвалжийг харах

【客户消耗单】
1.列表、详情增加字段“汇总时间”createTime,禁止修改
2.查询条件增加“汇总时间”字段sumTimeRange = 类型为yyyy-MM-dd HH:mm:ss
3.重置查询条件后调用查询

002390 1 жил өмнө
parent
commit
1891e0338f

+ 1 - 1
src/views/expend/customerExpend/che-hui/index.vue

@@ -12,7 +12,7 @@ export default {
   data() {
   data() {
     return {
     return {
       // title: "撤回",
       // title: "撤回",
-      title: "作废",
+      title: "不转销售订单审批流收回",
       loading: false,
       loading: false,
     };
     };
   },
   },

+ 16 - 0
src/views/expend/customerExpend/columns.js

@@ -85,7 +85,19 @@ export default function useColumns() {
         clearable: true,
         clearable: true,
       }
       }
     },
     },
+    {
+      item: { key: "sumTimeRange", title: "汇总时间", span: 12 },
+      attr: {
+        is: "el-date-picker",
+        type: "datetimerange",
+        placeholder: "请选择",
+        valueFormat: "yyyy-MM-dd HH:mm:ss",
+        clearable: true,
+      }
+    },
   ];
   ];
+
+
   const TableColumns = [
   const TableColumns = [
     {
     {
       item: { key: "status", title: "单据状态", width: 100, },
       item: { key: "status", title: "单据状态", width: 100, },
@@ -192,6 +204,10 @@ export default function useColumns() {
         clearable: true,
         clearable: true,
       }
       }
     },
     },
+    {
+      item: { key: "createTime", title: "汇总时间", width: 150, },
+      attr: {}
+    },
   ].map(({ item, attr }) => ({
   ].map(({ item, attr }) => ({
     attr,
     attr,
     item: {
     item: {

+ 9 - 0
src/views/expend/customerExpend/edit/columns.js

@@ -171,6 +171,15 @@ export default function useColumns() {
         disabled: true,
         disabled: true,
       }
       }
     },
     },
+    {
+      item: { key: "createTime", title: "汇总时间", width: 150, },
+      attr: {
+        is: "el-date-picker",
+        type: "datetime",
+        valueFormat: "yyyy-MM-dd HH:mm:ss",
+        disabled: true,
+      }
+    },
 
 
   ].map(({ item, attr }) => ({
   ].map(({ item, attr }) => ({
     attr,
     attr,

+ 1 - 0
src/views/expend/customerExpend/index.vue

@@ -60,6 +60,7 @@ export default {
     useReset() {
     useReset() {
       this.page = this.$init.page();
       this.page = this.$init.page();
       this.params = this.$init.params(this.SearchColumns);
       this.params = this.$init.params(this.SearchColumns);
+      this.useQuery(this.params, this.page);
     },
     },
     // 选 择
     // 选 择
     useSelect(prop) {
     useSelect(prop) {

+ 1 - 1
src/views/expend/customerExpend/ti-jiao/index.vue

@@ -11,7 +11,7 @@ export default {
   data() {
   data() {
     return {
     return {
       // title: "提交",
       // title: "提交",
-      title: "审批",
+      title: "不转销售订单审批",
       loading: false,
       loading: false,
     };
     };
   },
   },