|
@@ -83,6 +83,7 @@
|
|
|
style="width: 132px; margin-left: auto"
|
|
|
>
|
|
|
<el-button
|
|
|
+ v-if="powers && powers.length > 0 && powers.some((item) => item == '085')"
|
|
|
size="mini"
|
|
|
type="primary"
|
|
|
icon="el-icon-search"
|
|
@@ -95,10 +96,10 @@
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="primary"
|
|
|
- icon="el-icon-search"
|
|
|
+ icon="el-icon-refresh-right"
|
|
|
class="btn"
|
|
|
- @click="search"
|
|
|
- >搜索</el-button
|
|
|
+ @click="reset"
|
|
|
+ >刷新</el-button
|
|
|
>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -151,6 +152,7 @@
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
+ v-if="powers && powers.length > 0 && powers.some((item) => item == '013')"
|
|
|
icon="el-icon-download"
|
|
|
class="btn"
|
|
|
size="mini"
|
|
@@ -161,7 +163,7 @@
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="2" class="fr" style="width: 90px">
|
|
|
- <el-button class="btn entry" @click="entry" size="mini" type="success"
|
|
|
+ <el-button class="btn entry" @click="entry" size="mini" type="success" v-if="powers && powers.length > 0 && powers.some((item) => item == '086')"
|
|
|
>订单导入</el-button
|
|
|
>
|
|
|
</el-col>
|
|
@@ -180,7 +182,8 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #statusTxt="{ scope }">
|
|
|
- <span>{{ statusActive(scope.row.status) }}</span>
|
|
|
+ <!-- <span></span> -->
|
|
|
+ <el-tag :type="statusActiveTag(scope.row.status)" style="margin:auto;">{{ statusActive(scope.row.status) }}</el-tag>
|
|
|
</template>
|
|
|
<template #operation="{ scope }">
|
|
|
<el-tooltip
|
|
@@ -303,6 +306,29 @@ export default {
|
|
|
return active;
|
|
|
};
|
|
|
},
|
|
|
+ statusActiveTag() {
|
|
|
+ return function (status) {
|
|
|
+ let active = "";
|
|
|
+ switch (status) {
|
|
|
+ case "1":
|
|
|
+ active = "";
|
|
|
+ break;
|
|
|
+ case "2":
|
|
|
+ active = "info";
|
|
|
+ break;
|
|
|
+ case "3":
|
|
|
+ active = "warning";
|
|
|
+ break;
|
|
|
+ case "4":
|
|
|
+ active = "danger";
|
|
|
+ break;
|
|
|
+ case "5":
|
|
|
+ active = "success";
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return active;
|
|
|
+ };
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
this.tableData = [];
|
|
@@ -381,7 +407,7 @@ export default {
|
|
|
throw new Error("End Loop");
|
|
|
}
|
|
|
} else {
|
|
|
- this.$message.warning(`当前第${index + 1}行状态不是库存不足品`);
|
|
|
+ this.$message.warning(`选中第${index + 1}行状态不是库存不足品`);
|
|
|
flag = false;
|
|
|
throw new Error("End Loop");
|
|
|
}
|