فهرست منبع

返回列表查询保存

lichao 3 سال پیش
والد
کامیت
7e821cd42e

+ 18 - 2
src/views/businessManagement/deliveryNotice/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <basic-container v-if="isShow">
+    <basic-container v-show="isShow">
       <avue-crud :option="option"
                  :data="dataList"
                  ref="crud"
@@ -89,7 +89,7 @@
       ref="detail"
       @goBack="goBack"
       :detailData="detailData"
-      v-else
+      v-if="!isShow"
     ></detail-page>
   </div>
 </template>
@@ -365,6 +365,22 @@ export default {
       }
       this.isShow = true;
       this.$store.commit("IN_OUT_DETAIL");
+      this.gobackSearch(this.search)
+    },
+    gobackSearch(params) {
+      let data = {};
+      data = Object.assign({}, params)
+      if (data.businessDate) {
+        data.businessStartDate = data.businessDate[0]+ " " + "00:00:00"
+        data.businessEndDate = data.businessDate[1]+ " " + "23:59:59"
+      }
+      if (data.createTime) {
+        data.createTimeStart = data.createTime[0]+ " " + "00:00:00"
+        data.createTimeEnd = data.createTime[1]+ " " + "23:59:59"
+        this.$delete(data,'createTime')
+      }
+      this.page.currentPage = 1;
+      this.onLoad(this.page, data);
     },
     //列保存触发
     async saveColumn() {

+ 19 - 2
src/views/businessManagement/purchaseOrder/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <basic-container v-if="isShow">
+    <basic-container v-show="isShow">
       <avue-crud :option="option"
                  :data="dataList"
                  ref="crud"
@@ -70,7 +70,7 @@
       ref="detail"
       @goBack="goBack"
       :detailData="detailData"
-      v-else
+      v-if="!isShow"
     ></detail-page>
 
     <el-dialog
@@ -337,6 +337,23 @@ export default {
       this.multiple = true
       this.detailData=this.$options.data().detailData
       this.isShow = true;
+      this.gobackSearch(this.search)
+    },
+    gobackSearch(params) {
+      let data = {};
+      data = Object.assign({}, params)
+      if (data.requiredArrivalDate) {
+        this.$set(data, 'requiredArrivalStartDate', data.requiredArrivalDate[0]+ " " + "00:00:00")
+        this.$set(data, 'requiredArrivalEndDate', data.requiredArrivalDate[1]+ " " + "23:59:59")
+        this.$delete(data,'requiredArrivalDate')
+      }
+      if (data.createTime) {
+        data.createStartTime = data.createTime[0]+ " " + "00:00:00"
+        data.createEndTime = data.createTime[1]+ " " + "23:59:59"
+        this.$delete(data,'createTime')
+      }
+      this.page.currentPage = 1;
+      this.onLoad(this.page, data);
     },
     //列保存触发
     async saveColumn() {

+ 19 - 2
src/views/businessManagement/receipt/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <basic-container v-if="isShow">
+    <basic-container v-show="isShow">
       <avue-crud :option="option"
                  :data="dataList"
                  ref="crud"
@@ -89,7 +89,7 @@
       ref="detail"
       @goBack="goBack"
       :detailData="detailData"
-      v-else
+      v-if="!isShow"
     ></detail-page>
   </div>
 </template>
@@ -371,6 +371,23 @@ export default {
       }
       this.isShow = true;
       this.$store.commit("DOM_OUT_DETAIL");
+      this.gobackSearch(this.search)
+    },
+    gobackSearch(params) {
+      let data = {};
+      data = Object.assign({}, params)
+      if (data.businessDate) {
+        this.$set(data, 'businessStartDate', data.businessDate[0]+ " " + "00:00:00")
+        this.$set(data, 'businessEndDate', data.businessDate[1]+ " " + "23:59:59")
+        this.$delete(data,'businessDate')
+      }
+      if (data.createTime) {
+        this.$set(data, 'createStartTime', data.createTime[0]+ " " + "00:00:00")
+        this.$set(data, 'createEndTime', data.createTime[1]+ " " + "23:59:59")
+        this.$delete(data,'createTime')
+      }
+      this.page.currentPage = 1;
+      this.onLoad(this.page, data);
     },
     //列保存触发
     async saveColumn() {

+ 32 - 1
src/views/businessManagement/salesOrder/index.vue

@@ -337,7 +337,6 @@ export default {
         params.createTimeEnd = params.createTime[1]+ " " + "23:59:59"
         this.$delete(params,'createTime')
       }
-      console.log(this.search)
       this.page.currentPage = 1;
       this.onLoad(this.page, params);
       done()
@@ -413,6 +412,38 @@ export default {
     goBack() {
       this.detailData=this.$options.data().detailData
       this.isShow = true;
+      this.gobackSearch(this.search)
+    },
+    gobackSearch(params) {
+      let data = {};
+      data = Object.assign({}, params)
+      if (data.businesDate) {
+        data.orderStartDate = data.businesDate[0]+ " " + "00:00:00"
+        data.orderEndDate = data.businesDate[1]+ " " + "23:59:59"
+        delete data.businesDate;
+      }
+      if (data.requiredDeliveryDate) {
+        data.deliveryStartDate = data.requiredDeliveryDate[0]+ " " + "00:00:00"
+        data.deliveryEndDate = data.requiredDeliveryDate[1]+ " " + "23:59:59"
+        this.$delete(data,'requiredDeliveryDate')
+      }
+      if (data.requiredArrivalDate) {
+        data.arrivalDateStart = data.requiredArrivalDate[0]+ " " + "00:00:00"
+        data.arrivalDateEnd = data.requiredArrivalDate[1]+ " " + "23:59:59"
+        this.$delete(data,'requiredArrivalDate')
+      }
+      if (data.actualDeliveryDate) {
+        data.actualDeliveryDateStart = data.actualDeliveryDate[0]+ " " + "00:00:00"
+        data.actualDeliveryDateEnd = data.actualDeliveryDate[1]+ " " + "23:59:59"
+        this.$delete(data,'actualDeliveryDate')
+      }
+      if (data.createTime) {
+        data.createTimeStart = data.createTime[0]+ " " + "00:00:00"
+        data.createTimeEnd = data.createTime[1]+ " " + "23:59:59"
+        this.$delete(data,'createTime')
+      }
+      this.page.currentPage = 1;
+      this.onLoad(this.page, data);
     },
   }
 }