|
@@ -1,8 +1,6 @@
|
|
|
<template>
|
|
|
<div class="purchaseOrder pagePadding">
|
|
|
- <div
|
|
|
- v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
|
|
|
- >
|
|
|
+ <div v-if="powers && powers.length > 0 && powers.some((item) => item == '001')">
|
|
|
<ex-table
|
|
|
v-loading="loading"
|
|
|
:table="table"
|
|
@@ -42,9 +40,9 @@
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in cg_order_type_options"
|
|
|
- :key="'order_type' + item.value"
|
|
|
+ :key="'order_type' + item.id"
|
|
|
:label="item.label"
|
|
|
- :value="item.value"
|
|
|
+ :value="item.id"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-col>
|
|
@@ -196,9 +194,7 @@
|
|
|
<template #good_name="{ scope }">
|
|
|
<span>{{ scope.row.good_name }}</span>
|
|
|
<span v-for="(si, sii) in scope.row.speclist" :key="si + sii"
|
|
|
- >{{ sii === 0 ? "_" : "-" }}{{ si.spec_name }}[{{
|
|
|
- si.spec_value
|
|
|
- }}]</span
|
|
|
+ >{{ sii === 0 ? "_" : "-" }}{{ si.spec_name }}[{{ si.spec_value }}]</span
|
|
|
>
|
|
|
</template>
|
|
|
<template #order_type="{ scope }">
|
|
@@ -206,9 +202,8 @@
|
|
|
:size="tablebtnSize"
|
|
|
v-text="
|
|
|
(
|
|
|
- cg_order_type_options.find(
|
|
|
- (item) => item.id == scope.row.order_type
|
|
|
- ) || {}
|
|
|
+ cg_order_type_options.find((item) => item.id == scope.row.order_type) ||
|
|
|
+ {}
|
|
|
).label || '--'
|
|
|
"
|
|
|
></el-tag>
|
|
@@ -218,10 +213,8 @@
|
|
|
:size="tablebtnSize"
|
|
|
:type="scope.row.status == '0' ? 'warning' : ''"
|
|
|
v-text="
|
|
|
- (
|
|
|
- statusOptions.find((item) => item.value == scope.row.status) ||
|
|
|
- {}
|
|
|
- ).label || '--'
|
|
|
+ (statusOptions.find((item) => item.value == scope.row.status) || {})
|
|
|
+ .label || '--'
|
|
|
"
|
|
|
></el-tag>
|
|
|
</template>
|
|
@@ -246,7 +239,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <script>
|
|
|
+<script>
|
|
|
import mixinPage from "@/mixins/elPaginationHandle";
|
|
|
import resToken from "@/mixins/resToken";
|
|
|
|
|
@@ -263,9 +256,7 @@ export default {
|
|
|
...mapGetters(["tablebtnSize", "searchSize", "size"]),
|
|
|
powers() {
|
|
|
let tran =
|
|
|
- this.$store.getters.btnList.find(
|
|
|
- (item) => item.menu_route == "wsmInOrder"
|
|
|
- ) || {};
|
|
|
+ this.$store.getters.btnList.find((item) => item.menu_route == "wsmInOrder") || {};
|
|
|
if (tran && tran.action && tran.action.length > 0) {
|
|
|
return tran.action;
|
|
|
} else {
|
|
@@ -564,9 +555,8 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
- <style lang="scss" scoped>
|
|
|
+<style lang="scss" scoped>
|
|
|
.purchaseOrder {
|
|
|
// text-align: right;
|
|
|
}
|
|
|
</style>
|
|
|
-
|