|
@@ -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 = {
|