Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
e3632bc3e8

+ 3 - 3
src/views/layout/Layout.vue View File

@@ -17,9 +17,9 @@
17 17
           <p>透析管理</p>
18 18
         </div>
19 19
 
20
-        <div v-if="caigouShow" :class="index == 5 ? 'navOne navActive' : 'navOne'" @click="clickActive(5,'采购管理')">
21
-          <i class="iconfont icon-kccx navIcon"></i>
22
-          <p>采购管理</p>
20
+         <div v-if="caigouShow" :class="index == 5 ? 'navOne navActive' : 'navOne'" @click="clickActive(5,'采购管理')">
21
+           <i class="iconfont icon-kccx navIcon"></i>
22
+           <p>采购管理</p>
23 23
         </div>
24 24
         
25 25
         <div v-if="kucunShow" :class="index == 3 ? 'navOne navActive' : 'navOne'" @click="clickActive(3,'库房管理')">

+ 9 - 2
src/xt_pages/supply/components/editGoodOrder.vue View File

@@ -1351,12 +1351,14 @@ export default {
1351 1351
     },
1352 1352
     //反审核
1353 1353
     MofyGoodOrder() {
1354
-      var id = this.$route.query.id;
1355
-      var warehousing_id = this.$route.query.warehousing_id;
1354
+      var id = parseInt(this.$route.query.id);
1355
+      var warehousing_id = parseInt(this.$route.query.warehousing_id);
1356 1356
       var params = {
1357 1357
         id: id,
1358 1358
         warehousing_id: warehousing_id,
1359 1359
       };
1360
+      console.log("return2332232333",params)
1361
+    
1360 1362
       MofyGoodOrder(params).then((response) => {
1361 1363
         if (response.data.state == 1) {
1362 1364
           var msg = response.data.data.msg;
@@ -1375,6 +1377,11 @@ export default {
1375 1377
             return;
1376 1378
           }
1377 1379
 
1380
+          if (msg == 3) {
1381
+            this.$message.error("已有出库数据,反审核失败!")
1382
+            return;
1383
+          }
1384
+
1378 1385
           var purcaseOrder = response.data.data.purcaseOrder;
1379 1386
           console.log("采购订单", purcaseOrder);
1380 1387
           var goodOrder = response.data.data.goodOrder;

+ 4 - 3
src/xt_pages/supply/goodreturn.vue View File

@@ -204,7 +204,7 @@ export default {
204 204
       multipleSelection: [],
205 205
       signAndWeighBoxPatients: "sign-and-weigh-box-patients",
206 206
       start_time: "",
207
-      end_time:new Date(),
207
+      end_time:"",
208 208
       page: 1,
209 209
       limit: 10,
210 210
       goodType: [],
@@ -267,8 +267,8 @@ export default {
267 267
      getlist(){
268 268
         var params = {
269 269
           check_id:this.check_id,
270
-          start_time:this.getTimes(this.start_time),
271
-          end_time:this.getTimes(this.end_time),
270
+          start_time:this.start_time,
271
+          end_time:this.end_time,
272 272
           keyword:this.keywords,
273 273
           page:this.page,
274 274
           limit:this.limit,
@@ -382,6 +382,7 @@ export default {
382 382
     //本月的开始时间
383 383
     var monthStartDate = new Date(nowYear, nowMonth, 1); 
384 384
     this.start_time = monthStartDate
385
+    this.end_time = this.getTimes(new Date());
385 386
     this.org_id =  this.$store.getters.xt_user.org_id
386 387
     this.getAllSupply()
387 388
     this.getlist()