snow 1 year ago
parent
commit
321849c9f4

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/0.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.js


+ 0 - 2
src/components/globalComponents/showGoodImg/index.vue

@@ -95,7 +95,6 @@ export default {
         // 前进越界
         if (sL + cW >= sW) return;
         const offset = sW - (cW + sL) >= cW ? cW : sW - (cW + sL);
-        // horizontalRef.scrollTo({left:sL + offset,  behavior: 'smooth'})
         this.animationToNext(sL, sL + offset);
       }
 
@@ -103,7 +102,6 @@ export default {
         // 后退越界
         if (sL <= 0) return;
         const offset = sL - cW >= 0 ? cW : sL;
-        // horizontalRef.scrollTo({ left:sL - offset, behavior: 'smooth'})
         this.animationToPrev(sL, sL - offset);
       }
     },

+ 27 - 0
src/views/purchaseIn/deliveryWorkOrder/index.vue

@@ -490,6 +490,14 @@ export default {
       }
       this.searchList();
     },
+    getDiffDay(date_1, date_2) {
+      let totalDays, diffDate
+      const myDate_1 = Date.parse(date_1)
+      const myDate_2 = Date.parse(date_2)
+      diffDate = Math.abs(myDate_1 - myDate_2)
+      totalDays = Math.floor(diffDate / (1000 * 3600 * 24))
+      return totalDays // 相差的天数
+    },
     handleExport() {
       if (!this.loading) {
         this.loading = true;
@@ -497,6 +505,25 @@ export default {
         let model = JSON.parse(JSON.stringify(this.parmValue));
         delete model["s_input"];
         delete model["use_type"];
+        const { start, end, status } = this.parmValue;
+
+        if(!start || !end){
+          this.$message.error("请选择时间范围");
+          this.loading = false;
+          return
+        }
+
+        if(this.getDiffDay(start,end) > 7){
+          this.$message.error("时间范围不能超过7天");
+          this.loading = false;
+          return;
+        }
+
+        if(!status){
+          this.$message.error("请选择状态");
+          this.loading = false;
+          return
+        }
 
         axios({
           method: "post",

+ 28 - 1
src/views/supplierPurchaseIn/supplierDeliveryWorkOrder/index.vue

@@ -243,7 +243,7 @@
                 >
               </div>
 
-              <div style="float: right" v-if="powers.includes('087') && !isSupertube">
+              <div style="float: right" v-if="powers.includes('087')">
                 <el-button type="primary" size="mini" @click="handleExport"
                   >发货工单导出</el-button
                 >
@@ -476,6 +476,14 @@ export default {
       }
       this.searchList();
     },
+    getDiffDay(date_1, date_2) {
+      let totalDays, diffDate
+      const myDate_1 = Date.parse(date_1)
+      const myDate_2 = Date.parse(date_2)
+      diffDate = Math.abs(myDate_1 - myDate_2)
+      totalDays = Math.floor(diffDate / (1000 * 3600 * 24))
+      return totalDays // 相差的天数
+    },
     handleExport() {
       if (!this.loading) {
         this.loading = true;
@@ -486,6 +494,25 @@ export default {
         delete model['customer_name']
         delete model['select']
         delete model['use_type']
+        const { start, end, status } = this.parmValue;
+
+        if(!start || !end){
+          this.$message.error("请选择时间范围");
+          this.loading = false;
+          return
+        }
+
+        if(this.getDiffDay(start,end) > 7){
+          this.$message.error("时间范围不能超过7天");
+          this.loading = false;
+          return;
+        }
+
+        if(!status){
+          this.$message.error("请选择状态");
+          this.loading = false;
+          return
+        }
 
         axios({
           method: "post",

+ 0 - 1
src/views/supplierPurchaseIn/supplierPurchaseOrder/index.vue

@@ -218,7 +218,6 @@
                     <el-option label="商品创建人" value="6"></el-option>
                     <!-- <el-option label="采购供应商编号" value="7"></el-option> -->
                     <!-- <el-option label="采购供应商名称" value="10"></el-option> -->
-
                     <el-option label="商品创建人部门" value="9"></el-option>
                   </el-select>
                 </el-input>

Some files were not shown because too many files changed in this diff