Browse Source

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

mainqaq 2 years ago
parent
commit
54ca6c88a6

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

257
                 start-placeholder="开始日期"
257
                 start-placeholder="开始日期"
258
                 end-placeholder="结束日期">
258
                 end-placeholder="结束日期">
259
                 </el-date-picker> -->
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
                                 placeholder="选择时间" v-model="start_time" style="width:200px"
261
                                 placeholder="选择时间" v-model="start_time" style="width:200px"
262
                                 @change="changeStart"
262
                                 @change="changeStart"
263
                 >
263
                 >
264
                 </el-date-picker>
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
                                 placeholder="选择时间" v-model="end_time" style="width:200px"
267
                                 placeholder="选择时间" v-model="end_time" style="width:200px"
268
                                 @change="changeEnd"
268
                                 @change="changeEnd"
269
                 >
269
                 >
488
           { value: 4, label: '免收诊金' },
488
           { value: 4, label: '免收诊金' },
489
           { value: 5, label: '专家' }
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
         limit: 10,
493
         limit: 10,
494
         page: 1,
494
         page: 1,
495
         total: 0,
495
         total: 0,

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

222
                 this.$emit("init");
222
                 this.$emit("init");
223
               } else {
223
               } else {
224
                 this.$message.error("保存失败:" + res.data.msg);
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
           } else {
231
           } else {

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

89
                 v-if="scope.row.StorehouseStatus == 0"
89
                 v-if="scope.row.StorehouseStatus == 0"
90
                 size="small"
90
                 size="small"
91
                 type="primary"
91
                 type="primary"
92
-                @click="toDisable(scope.row, scope.row.$index)"
92
+                @click="toDisable2(scope.row, scope.row.$index)"
93
                 ><img
93
                 ><img
94
                   src="../../../assets/purchase/set.png"
94
                   src="../../../assets/purchase/set.png"
95
                   alt=""
95
                   alt=""
188
       };
188
       };
189
       //请求分页接口
189
       //请求分页接口
190
       storehouselist(params).then((response) => {
190
       storehouselist(params).then((response) => {
191
+        console.log("fenyeeeeeeeeeeeeeeeeeee")
191
         if (response.data.state == 1) {
192
         if (response.data.state == 1) {
192
           this.tableData = response.data.data.list;
193
           this.tableData = response.data.data.list;
193
           this.total = response.data.data.total;
194
           this.total = response.data.data.total;
195
+          console.log("this.tableData",this.tableData)
194
         }
196
         }
195
       });
197
       });
196
     },
198
     },
279
         })
281
         })
280
         }).catch(() => {});
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
     toDelete(val, index) {
311
     toDelete(val, index) {
284
       var params = {
312
       var params = {