Browse Source

二级库-仓库管理bug修改,还有hisbug346

mainqaq 2 years ago
parent
commit
54ca6c88a6

+ 4 - 4
src/xt_pages/outpatientRegistration/registrationHistory.vue View File

@@ -257,13 +257,13 @@
257 257
                 start-placeholder="开始日期"
258 258
                 end-placeholder="结束日期">
259 259
                 </el-date-picker> -->
260
-                <el-date-picker type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
260
+                <el-date-picker type="datetime" format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm"
261 261
                                 placeholder="选择时间" v-model="start_time" style="width:200px"
262 262
                                 @change="changeStart"
263 263
                 >
264 264
                 </el-date-picker>
265 265
                 -
266
-                <el-date-picker type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
266
+                <el-date-picker type="datetime" format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm"
267 267
                                 placeholder="选择时间" v-model="end_time" style="width:200px"
268 268
                                 @change="changeEnd"
269 269
                 >
@@ -488,8 +488,8 @@
488 488
           { value: 4, label: '免收诊金' },
489 489
           { value: 5, label: '专家' }
490 490
         ],
491
-        start_time: moment().format('YYYY-MM-DD'),
492
-        end_time: moment().format('YYYY-MM-DD'),
491
+        start_time: moment().format('YYYY-MM-DD HH:mm'),
492
+        end_time: moment().format('YYYY-MM-DD HH:mm'),
493 493
         limit: 10,
494 494
         page: 1,
495 495
         total: 0,

+ 4 - 3
src/xt_pages/stock/warehouseManage/components/AddWareHouse.vue View File

@@ -222,9 +222,10 @@ export default {
222 222
                 this.$emit("init");
223 223
               } else {
224 224
                 this.$message.error("保存失败:" + res.data.msg);
225
-                setTimeout(() => {
226
-                  this.closePop();
227
-                }, 2000);
225
+                // setTimeout(() => {
226
+                //   this.closePop();
227
+                // }, 2000);
228
+                this.dialogVisible = true
228 229
               }
229 230
             });
230 231
           } else {

+ 29 - 1
src/xt_pages/stock/warehouseManage/query.vue View File

@@ -89,7 +89,7 @@
89 89
                 v-if="scope.row.StorehouseStatus == 0"
90 90
                 size="small"
91 91
                 type="primary"
92
-                @click="toDisable(scope.row, scope.row.$index)"
92
+                @click="toDisable2(scope.row, scope.row.$index)"
93 93
                 ><img
94 94
                   src="../../../assets/purchase/set.png"
95 95
                   alt=""
@@ -188,9 +188,11 @@ export default {
188 188
       };
189 189
       //请求分页接口
190 190
       storehouselist(params).then((response) => {
191
+        console.log("fenyeeeeeeeeeeeeeeeeeee")
191 192
         if (response.data.state == 1) {
192 193
           this.tableData = response.data.data.list;
193 194
           this.total = response.data.data.total;
195
+          console.log("this.tableData",this.tableData)
194 196
         }
195 197
       });
196 198
     },
@@ -279,6 +281,32 @@ export default {
279 281
         })
280 282
         }).catch(() => {});
281 283
     },
284
+    // 启用仓库
285
+    toDisable2(val, index) {
286
+      var params = {
287
+        id:val.ID,
288
+      };
289
+      this.$confirm("是否确定将此仓库启用?", "启用仓库信息", {
290
+        confirmButtonText: "确 定",
291
+        cancelButtonText: "取 消",
292
+        type: "warning",
293
+      }).then(() => {
294
+        updatestatus(params).then((res) => {
295
+          if (res.data.state == 1) {
296
+            this.$message.success(res.data.data.list);
297
+            this.Disable_= 1
298
+          }else {
299
+            this.$message.error(res.data.msg);
300
+          }
301
+        })//刷新
302
+          .then(() =>{
303
+            this.initData();
304
+          })
305
+          .catch((err) => {
306
+            console.log(err)
307
+          })
308
+      }).catch(() => {});
309
+    },
282 310
     //删除仓库
283 311
     toDelete(val, index) {
284 312
       var params = {