|
@@ -75,7 +75,7 @@
|
|
|
</el-form>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- <el-row v-if="status == '' || status == '0'">
|
|
|
+ <el-row v-if="status == '' || status === '0' && powers.some((item) => item == '005')">
|
|
|
<el-col :span="24" style="padding: 0 0 10px 0">
|
|
|
<span>调拨商品:</span>
|
|
|
<el-button
|
|
@@ -87,7 +87,6 @@
|
|
|
></el-col
|
|
|
>
|
|
|
</el-row>
|
|
|
- <!-- v-if="status === '0'" -->
|
|
|
<el-form
|
|
|
:model="tableForm"
|
|
|
:rules="tableFormThis"
|
|
@@ -525,19 +524,13 @@ export default {
|
|
|
res = await asyncRequest.update(model);
|
|
|
}
|
|
|
this.loading = false;
|
|
|
- console.log("----------------!!!!!!!!!!!!!!!!!!!!----------------");
|
|
|
if (res && res.code === 0) {
|
|
|
const title = this.id === "add" ? "添加成功" : "修改成功";
|
|
|
this.$notify.success({
|
|
|
title,
|
|
|
message: "",
|
|
|
});
|
|
|
-
|
|
|
- if (this.id === "add") {
|
|
|
- this.showModelThis = false;
|
|
|
- // 刷新
|
|
|
- this.$emit("refresh");
|
|
|
- }
|
|
|
+ this.$emit("refresh");
|
|
|
} else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
await this.logout();
|
|
|
} else {
|
|
@@ -559,7 +552,7 @@ export default {
|
|
|
id: v1.id || "",
|
|
|
good_code: v1.type_code,
|
|
|
allot_num: v1.allot_num,
|
|
|
- is_del: "1",
|
|
|
+ is_del: "0",
|
|
|
};
|
|
|
resList.push(goodModel);
|
|
|
});
|
|
@@ -568,7 +561,7 @@ export default {
|
|
|
id: v2.id || "",
|
|
|
good_code: v2.type_code,
|
|
|
allot_num: v2.allot_num,
|
|
|
- is_del: "0",
|
|
|
+ is_del: "1",
|
|
|
};
|
|
|
resList.push(goodModel);
|
|
|
});
|