XMLWAN 2 年 前
コミット
a87956668e

+ 16 - 0
src/api/drug/drug.js ファイルの表示

611
     params: params
611
     params: params
612
   })
612
   })
613
 }
613
 }
614
+
615
+export function getGoodOverCount(params) {
616
+  return request({
617
+    url: '/api/stock/getgoodovercount',
618
+    method: 'get',
619
+    params: params
620
+
621
+  })
622
+}
623
+export function getDrugOverCount(params) {
624
+  return request({
625
+    url: '/api/stock/getdrugovercount',
626
+    method: 'Get',
627
+    params: params
628
+  })
629
+}

+ 1 - 0
src/api/drug/drug_stock.js ファイルの表示

644
     params: params
644
     params: params
645
   })
645
   })
646
 }
646
 }
647
+

+ 8 - 0
src/router/modules/stock.js ファイルの表示

453
       is_menu: false,
453
       is_menu: false,
454
       meta: { title: 'purchaseDrugQueryPrint', noCache: true }
454
       meta: { title: 'purchaseDrugQueryPrint', noCache: true }
455
     },
455
     },
456
+    {
457
+      path: '/drugs/purchase/new/query/print',
458
+      component: () => import('@/xt_pages/stock/drugs/components/purchaseNewDrugQueryPrint'),
459
+      name: 'purchaseDrugNewQueryPrint',
460
+      hidden: true,
461
+      is_menu: false,
462
+      meta: { title: 'purchaseDrugNewQueryPrint', noCache: true }
463
+    },
456
     {
464
     {
457
       path: '/drugs/expiry/date/query/print',
465
       path: '/drugs/expiry/date/query/print',
458
       component: () => import('@/xt_pages/stock/drugs/components/expiryDateDrugQueryPrint'),
466
       component: () => import('@/xt_pages/stock/drugs/components/expiryDateDrugQueryPrint'),

+ 1 - 0
src/xt_pages/stock/drugs/components/drugPatientQuery.vue ファイルの表示

17
                       format="yyyy-MM-dd"
17
                       format="yyyy-MM-dd"
18
                       value-format="yyyy-MM-dd"
18
                       value-format="yyyy-MM-dd"
19
                       @change="startTimeChange"
19
                       @change="startTimeChange"
20
+                      :clearable="false"
20
                     ></el-date-picker> 
21
                     ></el-date-picker> 
21
                       <span>-</span> 
22
                       <span>-</span> 
22
                       <el-date-picker
23
                       <el-date-picker

+ 13 - 2
src/xt_pages/stock/drugs/components/purchaseDrugQuery.vue ファイルの表示

18
             format="yyyy-MM-dd"
18
             format="yyyy-MM-dd"
19
             value-format="yyyy-MM-dd"
19
             value-format="yyyy-MM-dd"
20
             @change="startTimeChange"
20
             @change="startTimeChange"
21
+             :picker-options="pickerOptions"
22
+             :clearable="false"
21
            ></el-date-picker>
23
            ></el-date-picker>
22
             <span>-</span>
24
             <span>-</span>
23
             <el-date-picker
25
             <el-date-picker
32
               format="yyyy-MM-dd"
34
               format="yyyy-MM-dd"
33
               value-format="yyyy-MM-dd"
35
               value-format="yyyy-MM-dd"
34
               @change="endTimeChange"
36
               @change="endTimeChange"
37
+              :picker-options="pickerOptions"
38
+              :clearable="false"
35
           ></el-date-picker>
39
           ></el-date-picker>
36
           <span style="font-size:14px;color:#606266">药品类型:</span>
40
           <span style="font-size:14px;color:#606266">药品类型:</span>
37
           <el-select v-model="good_type" style="width:200px;margin-right:10px;" placeholder="请选择"
41
           <el-select v-model="good_type" style="width:200px;margin-right:10px;" placeholder="请选择"
175
      total:0,
179
      total:0,
176
      keyword:"",
180
      keyword:"",
177
      drugTypeList:[],
181
      drugTypeList:[],
178
-     start_time:moment().startOf('month').format("YYYY-MM-DD"),
179
-     end_time:moment().endOf('month').format("YYYY-MM-DD"),
182
+     start_time:"",
183
+     end_time:"",
180
      countList:[],
184
      countList:[],
181
      outCountList:[],
185
      outCountList:[],
182
      autoCountList:[],
186
      autoCountList:[],
191
      good_name:"",
195
      good_name:"",
192
      specification_name:"",
196
      specification_name:"",
193
      loading:false,
197
      loading:false,
198
+     pickerOptions:{ //禁用当前日期之前的日期
199
+           disabledDate(v) {
200
+            return v.getTime() < 1667232000000
201
+          },
202
+      },
194
     }
203
     }
195
 
204
 
196
   },
205
   },
995
    }
1004
    }
996
   },
1005
   },
997
    open(){
1006
    open(){
1007
+    this.start_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
1008
+    this.end_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
998
     this.houseList= []
1009
     this.houseList= []
999
     this.drugTypeList = []
1010
     this.drugTypeList = []
1000
     this.getStorehouseList()
1011
     this.getStorehouseList()

+ 95 - 15
src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue ファイルの表示

17
             align="right"
17
             align="right"
18
             format="yyyy-MM-dd"
18
             format="yyyy-MM-dd"
19
             value-format="yyyy-MM-dd"
19
             value-format="yyyy-MM-dd"
20
+            :picker-options="pickerOptions"
20
             @change="startTimeChange"
21
             @change="startTimeChange"
22
+            :clearable="false"
21
            ></el-date-picker>
23
            ></el-date-picker>
22
             <span>-</span>
24
             <span>-</span>
23
             <el-date-picker
25
             <el-date-picker
31
               align="right"
33
               align="right"
32
               format="yyyy-MM-dd"
34
               format="yyyy-MM-dd"
33
               value-format="yyyy-MM-dd"
35
               value-format="yyyy-MM-dd"
36
+              :picker-options="pickerOptions"
34
               @change="endTimeChange"
37
               @change="endTimeChange"
38
+              :clearable="false"
35
           ></el-date-picker>
39
           ></el-date-picker>
36
           <span style="font-size:14px;color:#606266">药品类型:</span>
40
           <span style="font-size:14px;color:#606266">药品类型:</span>
37
           <el-select v-model="good_type" style="width:200px;margin-right:10px;" placeholder="请选择"
41
           <el-select v-model="good_type" style="width:200px;margin-right:10px;" placeholder="请选择"
48
           <el-button  type="primary" icon="el-icon-search" @click="seach">搜索</el-button>
52
           <el-button  type="primary" icon="el-icon-search" @click="seach">搜索</el-button>
49
          </div>
53
          </div>
50
          <div>
54
          <div>
55
+          <el-button  type="primary" @click="toOverCount">调试</el-button>
51
            <el-button  type="primary" @click="toPrint">打印</el-button>
56
            <el-button  type="primary" @click="toPrint">打印</el-button>
52
            <el-button  type="primary" @click="exportList">导出</el-button>
57
            <el-button  type="primary" @click="exportList">导出</el-button>
53
          </div>
58
          </div>
152
   </div>
157
   </div>
153
 </template>
158
 </template>
154
 <script>
159
 <script>
155
-import { getStorehouseList,getPurchaseNewDrugQuery } from "@/api/drug/drug"
160
+import { getStorehouseList,getPurchaseNewDrugQuery,getDrugOverCount } from "@/api/drug/drug"
156
 const moment = require('moment')
161
 const moment = require('moment')
157
 import { uParseTime } from '@/utils/tools'
162
 import { uParseTime } from '@/utils/tools'
158
 export default {
163
 export default {
175
      total:0,
180
      total:0,
176
      keyword:"",
181
      keyword:"",
177
      drugTypeList:[],
182
      drugTypeList:[],
178
-     start_time:moment().startOf('month').format("YYYY-MM-DD"),
179
-     end_time:moment().endOf('month').format("YYYY-MM-DD"),
183
+     start_time:"",
184
+     end_time:"",
180
      countList:[],
185
      countList:[],
181
      outCountList:[],
186
      outCountList:[],
182
      autoCountList:[],
187
      autoCountList:[],
191
      good_name:"",
196
      good_name:"",
192
      specification_name:"",
197
      specification_name:"",
193
      loading:false,
198
      loading:false,
199
+     pickerOptions:{ //禁用当前日期之前的日期
200
+           disabledDate(v) {
201
+            return v.getTime() < 1667232000000
202
+          },
203
+      },
194
     }
204
     }
195
 
205
 
196
   },
206
   },
375
             console.log("list23323223322332232323322323wode",list)
385
             console.log("list23323223322332232323322323wode",list)
376
             for(let i=0;i<list.length;i++){
386
             for(let i=0;i<list.length;i++){
377
               list[i].last_price_in = 0
387
               list[i].last_price_in = 0
378
-              list[i].drugIn = this.getDrugWarehouseInfoOne(list[i].DrugWarehouseInfoStart,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].DrugWarehouseOutInfoStart,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].WareStartStockCancelInfo)
379
-              list[i].drugInMoney = this.getDrugInMoneyOne(list[i].DrugWarehouseInfoStart,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].DrugWarehouseOutInfoStart,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].WareStartStockCancelInfo)
380
-              list[i].drugSaleMoney = this.getSaleMoneyOne(list[i].DrugWarehouseInfoStart,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].DrugWarehouseOutInfoStart,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].WareStartStockCancelInfo)
388
+              list[i].drugIn = this.GetDrugStartFlow(list[i].DrugStatFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit) 
389
+            //   list[i].drugIn = this.getDrugWarehouseInfoOne(list[i].DrugWarehouseInfoStart,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].DrugWarehouseOutInfoStart,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].WareStartStockCancelInfo)
390
+            //   list[i].drugInMoney = this.getDrugInMoneyOne(list[i].DrugWarehouseInfoStart,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].DrugWarehouseOutInfoStart,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].WareStartStockCancelInfo)
391
+            //   list[i].drugSaleMoney = this.getSaleMoneyOne(list[i].DrugWarehouseInfoStart,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].DrugWarehouseOutInfoStart,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].WareStartStockCancelInfo)
392
+              list[i].drugInMoney = "/"
393
+              list[i].drugSaleMoney = "/"
381
 
394
 
382
               list[i].drugAdd = this.drugAddInfo(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
395
               list[i].drugAdd = this.drugAddInfo(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
383
-              list[i].drugAddPrice = this.getdrugAddPrice(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
384
-              list[i].drugAddSalePrice = this.drugAddSalePrice(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
396
+            //   list[i].drugAddPrice = this.getdrugAddPrice(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
397
+            //   list[i].drugAddSalePrice = this.drugAddSalePrice(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
398
+              list[i].drugAddPrice = "/"
399
+              list[i].drugAddSalePrice = "/"
385
 
400
 
386
               list[i].drugOut=  this.getDrugOut(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
401
               list[i].drugOut=  this.getDrugOut(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
387
-              list[i].drugOutPrice = this.getDrugOutPrice(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
388
-              list[i].drugOutSalePrice = this.getDrugOutSaleprice(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
389
-
390
-              list[i].overDrug = this.getDrugWarehouseInfo(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
391
-              list[i].overDrugPrice =  this.getDrugInMoney(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
392
-              list[i].oveDrugSaleMoney =  this.getSaleMoney(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
402
+            //   list[i].drugOutPrice = this.getDrugOutPrice(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
403
+            //   list[i].drugOutSalePrice = this.getDrugOutSaleprice(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
404
+              list[i].drugOutPrice = "/"
405
+              list[i].drugOutSalePrice = "/"
406
+
407
+            //   list[i].overDrug = this.getDrugWarehouseInfo(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
408
+            //   list[i].overDrugPrice =  this.getDrugInMoney(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
409
+            //   list[i].oveDrugSaleMoney =  this.getSaleMoney(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
410
+             list[i].overDrug = this.GetDrugEndFlow(list[i].DrugEndFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit)
411
+             list[i].overDrugPrice = "/"
412
+             list[i].oveDrugSaleMoney = "/"
393
             }
413
             }
394
             this.tableList = list;
414
             this.tableList = list;
395
             this.total = response.data.data.total
415
             this.total = response.data.data.total
995
    }
1015
    }
996
   },
1016
   },
997
    open(){
1017
    open(){
1018
+   
1019
+    this.start_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
1020
+    this.end_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
998
     this.houseList= []
1021
     this.houseList= []
999
     this.drugTypeList = []
1022
     this.drugTypeList = []
1000
     this.getStorehouseList()
1023
     this.getStorehouseList()
1199
 
1222
 
1200
    },
1223
    },
1201
    toPrint(){
1224
    toPrint(){
1202
-    this.$router.push({path:"/drugs/purchase/query/print?start_time="+this.start_time+"&end_time="+this.end_time+"&page="+this.page+"&limit="+this.limit+"&keyword="+this.keyword+"&good_type="+this.good_type})
1225
+    this.$router.push({path:"/drugs/purchase/new/query/print?start_time="+this.start_time+"&end_time="+this.end_time+"&page="+this.page+"&limit="+this.limit+"&keyword="+this.keyword+"&good_type="+this.good_type})
1203
    },
1226
    },
1204
     exportList: function() {
1227
     exportList: function() {
1205
        for(let i=0;i<this.tableList.length;i++){
1228
        for(let i=0;i<this.tableList.length;i++){
1233
     formatJson(filterVal, jsonData) {
1256
     formatJson(filterVal, jsonData) {
1234
       return jsonData.map(v => filterVal.map(j => v[j]));
1257
       return jsonData.map(v => filterVal.map(j => v[j]));
1235
     },
1258
     },
1259
+    GetDrugStartFlow(total,min_number,min_unit,max_unit){
1260
+      var min_str = ""
1261
+      var max_str = ""
1262
+      if (total < min_number) {
1263
+        min_str = total + min_unit;
1264
+      }
1265
+      if (total == 0) {
1266
+        min_str = "";
1267
+        max_str = "";
1268
+      }
1269
+      if (total >= min_number) {
1270
+        if (parseInt(total / min_number) != 0) {
1271
+            max_str = parseInt(total / min_number) + max_unit;
1272
+        }
1273
+        if (total % min_number != 0) {
1274
+            min_str = (total % min_number) + min_unit;
1275
+        }
1276
+      }
1277
+        if(max_str == "" && min_str == ""){
1278
+            return "0"
1279
+        }else{
1280
+            return max_str + min_str;
1281
+        }
1282
+    },
1283
+    GetDrugEndFlow(total,min_number,min_unit,max_unit){
1284
+
1285
+     var min_str = ""
1286
+     var max_str = ""    
1287
+     if (total < min_number) {
1288
+        min_str = total + min_unit;
1289
+      }
1290
+      if (total == 0) {
1291
+        min_str = "";
1292
+        max_str = "";
1293
+      }
1294
+      if (total >= min_number) {
1295
+        if (parseInt(total / min_number) != 0) {
1296
+            max_str = parseInt(total / min_number) + max_unit;
1297
+        }
1298
+        if (total % min_number != 0) {
1299
+            min_str = (total % min_number) + min_unit;
1300
+        }
1301
+      }
1302
+     if(max_str == "" && min_str == ""){
1303
+            return "0"
1304
+        }else{
1305
+            return max_str + min_str;
1306
+       }
1307
+    },
1308
+    toOverCount(){
1309
+      getDrugOverCount().then(response=>{
1310
+        if(response.data.state == 1){
1311
+          var msg = response.data.data.msg
1312
+          this.$message.success("调试成功")
1313
+        }
1314
+      })  
1315
+    }
1236
   }
1316
   }
1237
 }
1317
 }
1238
 </script>
1318
 </script>

File diff suppressed because it is too large
+ 1251 - 0
src/xt_pages/stock/drugs/components/purchaseNewDrugQueryPrint.vue


+ 2 - 0
src/xt_pages/stock/query/patientQuery.vue ファイルの表示

19
                       format="yyyy-MM-dd"
19
                       format="yyyy-MM-dd"
20
                       value-format="yyyy-MM-dd"
20
                       value-format="yyyy-MM-dd"
21
                       @change="startTimeChange"
21
                       @change="startTimeChange"
22
+                      :clearable="false"
22
                     ></el-date-picker> 
23
                     ></el-date-picker> 
23
                       <span>-</span> 
24
                       <span>-</span> 
24
                       <el-date-picker
25
                       <el-date-picker
32
                         format="yyyy-MM-dd"
33
                         format="yyyy-MM-dd"
33
                         value-format="yyyy-MM-dd"
34
                         value-format="yyyy-MM-dd"
34
                         @change="endTimeChange"
35
                         @change="endTimeChange"
36
+                        :clearable="false"
35
                     ></el-date-picker>
37
                     ></el-date-picker>
36
                 </el-row>
38
                 </el-row>
37
                 <el-row></el-row>
39
                 <el-row></el-row>

+ 19 - 7
src/xt_pages/stock/query/purchaseNewStockQuery.vue ファイルの表示

19
             format="yyyy-MM-dd"
19
             format="yyyy-MM-dd"
20
             value-format="yyyy-MM-dd"
20
             value-format="yyyy-MM-dd"
21
             @change="startTimeChange"
21
             @change="startTimeChange"
22
+            :picker-options="pickerOptions"
23
+            :clearable="false"
22
            ></el-date-picker> 
24
            ></el-date-picker> 
23
             <span>-</span> 
25
             <span>-</span> 
24
             <el-date-picker
26
             <el-date-picker
33
               format="yyyy-MM-dd"
35
               format="yyyy-MM-dd"
34
               value-format="yyyy-MM-dd"
36
               value-format="yyyy-MM-dd"
35
               @change="endTimeChange"
37
               @change="endTimeChange"
38
+              :picker-options="pickerOptions"
39
+              :clearable="false"
36
           ></el-date-picker>  
40
           ></el-date-picker>  
37
           <span style="font-size:14px;color:#606266">耗材类型:</span>
41
           <span style="font-size:14px;color:#606266">耗材类型:</span>
38
           <el-select v-model="good_type" style="width:200px;margin-right:10px;" placeholder="请选择"
42
           <el-select v-model="good_type" style="width:200px;margin-right:10px;" placeholder="请选择"
49
           <el-button  type="primary" icon="el-icon-search" @click="seach">搜索</el-button>
53
           <el-button  type="primary" icon="el-icon-search" @click="seach">搜索</el-button>
50
          </div>
54
          </div>
51
          <div>
55
          <div>
56
+          <el-button type="primary" size="small" @click="toOverCount">调试</el-button>
52
            <el-button type="primary" size="small" @click="toPrint">打印</el-button>
57
            <el-button type="primary" size="small" @click="toPrint">打印</el-button>
53
            <el-button type="primary" size="small" @click="exportList">导出</el-button>
58
            <el-button type="primary" size="small" @click="exportList">导出</el-button>
54
          </div>
59
          </div>
153
   </div>
158
   </div>
154
 </template>
159
 </template>
155
 <script>
160
 <script>
156
-import { getStorehouseList,getNewPurchaseStockQuery } from "@/api/drug/drug"
161
+import { getStorehouseList,getNewPurchaseStockQuery,getGoodOverCount } from "@/api/drug/drug"
157
 import {
162
 import {
158
   getStockDrugCount
163
   getStockDrugCount
159
 } from "@/api/stock";
164
 } from "@/api/stock";
179
      total:0,
184
      total:0,
180
      keyword:"",
185
      keyword:"",
181
      goodTypeList:[],
186
      goodTypeList:[],
182
-     start_time:moment().startOf('month').format("YYYY-MM-DD"),
183
-     end_time:moment().endOf('month').format("YYYY-MM-DD"),
187
+     start_time:"",
188
+     end_time:"",
184
      countList:[],
189
      countList:[],
185
      outCountList:[],
190
      outCountList:[],
186
      autoCountList:[],
191
      autoCountList:[],
197
      loading:false,
202
      loading:false,
198
      pickerOptions:{ //禁用当前日期之前的日期
203
      pickerOptions:{ //禁用当前日期之前的日期
199
            disabledDate(v) {
204
            disabledDate(v) {
200
-            //Date.now()是javascript中的内置函数,它返回自1970年1月1日00:00:00 UTC以来经过的毫秒数。
201
-            console.log("vvvvvvvvvv",v.getTime(), new Date().getTime() - 86400000)
202
-            return v.getTime() < new Date().getTime() - 86400000;
205
+            return v.getTime() < 1667232000000
203
           },
206
           },
204
       },
207
       },
205
     }
208
     }
679
     }
682
     }
680
    },
683
    },
681
    open(){
684
    open(){
685
+    this.start_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
686
+    this.end_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
682
     this.houseList = []
687
     this.houseList = []
683
     this.goodTypeList= []
688
     this.goodTypeList= []
684
     this.getStorehouseList()
689
     this.getStorehouseList()
1009
       formatJson(filterVal, jsonData) {
1014
       formatJson(filterVal, jsonData) {
1010
         return jsonData.map(v => filterVal.map(j => v[j]));
1015
         return jsonData.map(v => filterVal.map(j => v[j]));
1011
       },
1016
       },
1012
-     
1017
+     toOverCount(){
1018
+       getGoodOverCount().then(response=>{
1019
+         if(response.data.state == 1){
1020
+           var msg = response.data.data.msg
1021
+           this.$message.success("调试成功")
1022
+         }
1023
+       })
1024
+     }
1013
   },
1025
   },
1014
 
1026
 
1015
 }
1027
 }

+ 9 - 5
src/xt_pages/stock/query/purchaseStockQuery.vue ファイルの表示

19
             format="yyyy-MM-dd"
19
             format="yyyy-MM-dd"
20
             value-format="yyyy-MM-dd"
20
             value-format="yyyy-MM-dd"
21
             @change="startTimeChange"
21
             @change="startTimeChange"
22
+            :picker-options="pickerOptions"
23
+            :clearable="false"
22
            ></el-date-picker> 
24
            ></el-date-picker> 
23
             <span>-</span> 
25
             <span>-</span> 
24
             <el-date-picker
26
             <el-date-picker
33
               format="yyyy-MM-dd"
35
               format="yyyy-MM-dd"
34
               value-format="yyyy-MM-dd"
36
               value-format="yyyy-MM-dd"
35
               @change="endTimeChange"
37
               @change="endTimeChange"
38
+              :picker-options="pickerOptions"
39
+              :clearable="false"
36
           ></el-date-picker>  
40
           ></el-date-picker>  
37
           <span style="font-size:14px;color:#606266">耗材类型:</span>
41
           <span style="font-size:14px;color:#606266">耗材类型:</span>
38
           <el-select v-model="good_type" style="width:200px;margin-right:10px;" placeholder="请选择"
42
           <el-select v-model="good_type" style="width:200px;margin-right:10px;" placeholder="请选择"
179
      total:0,
183
      total:0,
180
      keyword:"",
184
      keyword:"",
181
      goodTypeList:[],
185
      goodTypeList:[],
182
-     start_time:moment().startOf('month').format("YYYY-MM-DD"),
183
-     end_time:moment().endOf('month').format("YYYY-MM-DD"),
186
+     start_time:"",
187
+     end_time:"",
184
      countList:[],
188
      countList:[],
185
      outCountList:[],
189
      outCountList:[],
186
      autoCountList:[],
190
      autoCountList:[],
197
      loading:false,
201
      loading:false,
198
      pickerOptions:{ //禁用当前日期之前的日期
202
      pickerOptions:{ //禁用当前日期之前的日期
199
            disabledDate(v) {
203
            disabledDate(v) {
200
-            //Date.now()是javascript中的内置函数,它返回自1970年1月1日00:00:00 UTC以来经过的毫秒数。
201
-            console.log("vvvvvvvvvv",v.getTime(), new Date().getTime() - 86400000)
202
-            return v.getTime() < new Date().getTime() - 86400000;
204
+            return v.getTime() < 1667232000000
203
           },
205
           },
204
       },
206
       },
205
     }
207
     }
670
     }
672
     }
671
    },
673
    },
672
    open(){
674
    open(){
675
+    this.start_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
676
+    this.end_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
673
     this.houseList = []
677
     this.houseList = []
674
     this.goodTypeList= []
678
     this.goodTypeList= []
675
     this.getStorehouseList()
679
     this.getStorehouseList()