소스 검색

修改bug

chenrui 1 년 전
부모
커밋
a4a63f4682
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      src/views/productManagement/productSourcePath/list.vue

+ 5 - 5
src/views/productManagement/productSourcePath/list.vue

@@ -190,11 +190,11 @@ export default {
       advanced: true, // 高级搜索 展开/关闭
       advanced: true, // 高级搜索 展开/关闭
       tableHeight: 0,
       tableHeight: 0,
       time: [
       time: [
-        getDate.getCurrMonthDays().starttime,
+        getDate.getThreeMonthDays().starttime,
         getDate.getCurrMonthDays().endtime
         getDate.getCurrMonthDays().endtime
       ],
       ],
       queryParam: { //  查询条件
       queryParam: { //  查询条件
-        beginDate: getDate.getCurrMonthDays().starttime,
+        beginDate: getDate.getThreeMonthDays().starttime,
         endDate: getDate.getCurrMonthDays().endtime,
         endDate: getDate.getCurrMonthDays().endtime,
         productCode: '',
         productCode: '',
         productName: '',
         productName: '',
@@ -273,7 +273,7 @@ export default {
     // 导入成功
     // 导入成功
     handleGuideOk (resData) {
     handleGuideOk (resData) {
       traceCodeInsertBatch(resData).then(res => {
       traceCodeInsertBatch(resData).then(res => {
-        if (res.status == 200 && res.data) {
+        if (res.status == 200) {
           this.resetSearchForm()
           this.resetSearchForm()
         }
         }
       })
       })
@@ -306,11 +306,11 @@ export default {
     //  重置
     //  重置
     resetSearchForm () {
     resetSearchForm () {
       this.time = [
       this.time = [
-        getDate.getCurrMonthDays().starttime,
+        getDate.getThreeMonthDays().starttime,
         getDate.getCurrMonthDays().endtime
         getDate.getCurrMonthDays().endtime
       ]
       ]
       this.$refs.rangeDate.resetDate(this.time)
       this.$refs.rangeDate.resetDate(this.time)
-      this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
+      this.queryParam.beginDate = getDate.getThreeMonthDays().starttime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
       this.totalData = null
       this.totalData = null
       this.queryParam.productCode = ''
       this.queryParam.productCode = ''