|
@@ -6,14 +6,20 @@
|
|
|
>
|
|
|
<p>{{ status }}---{{ powers }}</p>
|
|
|
<div class="detail-page-title">
|
|
|
- <span>采购单编号:</span><span>{{ queryId }}---{{ sitem.bkcode }}</span>
|
|
|
+ <span>采购单编号:</span
|
|
|
+ ><span
|
|
|
+ >{{ queryId }}
|
|
|
+ <!-- ---{{ sitem.bkcode }} -->
|
|
|
+ </span>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
:size="'mini'"
|
|
|
class="fr"
|
|
|
v-if="
|
|
|
(status === '1' || status === '2') &&
|
|
|
- powers.some((item) => item == '007')&&sitem && sitem.noble_name
|
|
|
+ powers.some((item) => item == '007') &&
|
|
|
+ sitem &&
|
|
|
+ sitem.noble_name
|
|
|
"
|
|
|
style="margin: 0 0 0 12px"
|
|
|
@click="diffAdd = true"
|
|
@@ -94,8 +100,7 @@
|
|
|
</el-popover>
|
|
|
</span>
|
|
|
</template>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
<template slot="status">
|
|
|
<el-tag
|
|
|
:size="'mini'"
|
|
@@ -109,6 +114,28 @@
|
|
|
"
|
|
|
></el-tag>
|
|
|
</template>
|
|
|
+ <template slot="order_type">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ v-text="
|
|
|
+ (
|
|
|
+ order_type_options.find(
|
|
|
+ (item) => item.value == sitem.order_type
|
|
|
+ ) || {}
|
|
|
+ ).label || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ <el-popover placement="top" width="300" v-if="sitem.order_type==='1'" trigger="hover">
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <span>备库单编号:</span
|
|
|
+ ><span>{{ sitem.bkcode }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <i class="el-icon-warning-outline fr" slot="reference"></i>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+
|
|
|
<template slot="wsm">
|
|
|
<span>{{ sitem.wsm_supplier }}/{{ sitem.wsm_name }}</span>
|
|
|
<el-popover placement="top" width="300" trigger="hover">
|
|
@@ -125,7 +152,6 @@
|
|
|
<i class="el-icon-warning-outline fr" slot="reference"></i>
|
|
|
</el-popover>
|
|
|
</template>
|
|
|
-
|
|
|
</show-data-table>
|
|
|
</el-collapse-item>
|
|
|
<el-collapse-item title="商品信息" name="2">
|
|
@@ -191,6 +217,7 @@ import asyncRequest from "@/apis/service/purchaseIn/purchaseOrder";
|
|
|
import orderInTable from "./components/order-in-table";
|
|
|
import ShowDataTableColumns from "./components/ShowDataTableColumns";
|
|
|
import orderAddeditModel from "./components/order-addedit-model";
|
|
|
+import { order_type_options, statusOptions } from "./columns";
|
|
|
export default {
|
|
|
name: "purchaseOrderDetail",
|
|
|
mixins: [mixinPage, resToken],
|
|
@@ -223,27 +250,8 @@ export default {
|
|
|
finishStatus: "finish",
|
|
|
activeNames: ["0", "1", "2", "3", "4", "5", "10"],
|
|
|
sitem: null,
|
|
|
- statusOptions: [
|
|
|
- { value: "1", label: "待发货" },
|
|
|
- { value: "2", label: "部分发货" },
|
|
|
- { value: "3", label: "发货完成" },
|
|
|
- { value: "4", label: "已取消订单" },
|
|
|
- ],
|
|
|
- statusList: [
|
|
|
- {
|
|
|
- code: "1",
|
|
|
- label: "待发货",
|
|
|
- },
|
|
|
- {
|
|
|
- code: "2",
|
|
|
- label: "部分发货",
|
|
|
- },
|
|
|
- {
|
|
|
- code: "3",
|
|
|
- label: "发货完成",
|
|
|
- },
|
|
|
- { value: "4", label: "已取消订单" },
|
|
|
- ],
|
|
|
+ statusOptions: statusOptions,
|
|
|
+ order_type_options: order_type_options,
|
|
|
status: "",
|
|
|
newTime: "",
|
|
|
loading: false,
|