|
@@ -1,50 +1,117 @@
|
|
|
<template>
|
|
|
<div class="zxDiffOrderDetail pagePadding">
|
|
|
+ <div>{{ status }}---{{ powers }}</div>
|
|
|
<div
|
|
|
style="width: 100%"
|
|
|
- v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
|
|
|
+ v-if="powers && powers.length > 0 && powers.some((item) => item == '007')"
|
|
|
>
|
|
|
- <div class="detail-page-title">
|
|
|
+ <!-- <div class="detail-page-title">
|
|
|
<span>工差单详情:</span>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<!-- <status-bar
|
|
|
v-if="newTime !== ''"
|
|
|
:newTime="newTime"
|
|
|
:options="statusOptions"
|
|
|
:status="status"
|
|
|
/> -->
|
|
|
- <el-tabs v-model="activeTabs">
|
|
|
+ <el-tabs v-model="activeTabs">
|
|
|
<el-tab-pane label="业务详情" name="1">
|
|
|
- <el-collapse v-model="activeNames" style="margin:-18px 0 0 0">
|
|
|
- <el-collapse-item title="采购工差单信息" name="1">
|
|
|
- <show-form
|
|
|
+ <el-collapse v-model="activeNames" style="margin: -18px 0 0 0">
|
|
|
+ <el-collapse-item title="工差单信息" name="1">
|
|
|
+ <show-data-table
|
|
|
+ style="margin: 0; padding: 0"
|
|
|
+ v-if="newTime !== ''"
|
|
|
+ :newTime="newTime"
|
|
|
+ :sitem="sitem"
|
|
|
+ :columns="showColumns"
|
|
|
+ >
|
|
|
+ <template slot="status">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ v-text="
|
|
|
+ (
|
|
|
+ statusOptions.find(
|
|
|
+ (item) => item.value == sitem.status
|
|
|
+ ) || {}
|
|
|
+ ).label || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
+ <!--<template slot="order_type">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ v-text="
|
|
|
+ (
|
|
|
+ orderOptions.find(
|
|
|
+ (item) => item.id == sitem.order_type
|
|
|
+ ) || {}
|
|
|
+ ).label || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
+
|
|
|
+
|
|
|
+ <template slot="supplierName">
|
|
|
+ <span>{{ sitem.supplierName }}</span>
|
|
|
+ <el-popover placement="top" width="300" trigger="hover">
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <span>销售方公司编号:</span
|
|
|
+ ><span>{{ sitem.supplierNo }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <i class="el-icon-warning-outline fr" slot="reference"></i>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+ <template slot="companyName">
|
|
|
+ <span>{{ sitem.companyName }}</span>
|
|
|
+ <el-popover placement="top" width="300" trigger="hover">
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <span>购买方公司编号:</span
|
|
|
+ ><span>{{ sitem.companyNo }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <i class="el-icon-warning-outline fr" slot="reference"></i>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+ <template slot="is_active">
|
|
|
+ <span v-if="sitem.order_type === '1'"
|
|
|
+ ><span
|
|
|
+ >{{
|
|
|
+ sitem.is_activity === "1" ? "参与活动" : "不参与活动"
|
|
|
+ }}/{{ sitem.good_type }}</span
|
|
|
+ ></span
|
|
|
+ >
|
|
|
+ <span v-else>--</span>
|
|
|
+ </template>
|
|
|
+ <template slot="send_type">
|
|
|
+ <el-tag :size="'mini'">{{
|
|
|
+ sitem.send_type === "1"
|
|
|
+ ? "直接发货"
|
|
|
+ : sitem.send_type === "2"
|
|
|
+ ? "延迟发货"
|
|
|
+ : "--"
|
|
|
+ }}</el-tag> -->
|
|
|
+ <!-- </template> -->
|
|
|
+ </show-data-table>
|
|
|
+ <!-- <show-form
|
|
|
:newTime="newTime"
|
|
|
v-if="newTime !== ''"
|
|
|
:sitem="sitem"
|
|
|
:id="queryId"
|
|
|
- />
|
|
|
- </el-collapse-item>
|
|
|
- <el-collapse-item title="业务审核" name="2">
|
|
|
- <add-form
|
|
|
- :sitem="sitem"
|
|
|
- :newTime="newTime"
|
|
|
- v-if="newTime !== ''"
|
|
|
- @refresh="initData()"
|
|
|
- />
|
|
|
- </el-collapse-item>
|
|
|
- <el-collapse-item
|
|
|
- title="通知业务部门"
|
|
|
- name="3"
|
|
|
- v-if="status === '2' && powers.some((item) => item == '044')"
|
|
|
- >
|
|
|
- <div class="tr" style="padding: 0 30px 20px 0">
|
|
|
- <el-button type="primary" plain :size="'mini'" @click="setStatus"
|
|
|
- >我已知晓</el-button
|
|
|
- >
|
|
|
- </div>
|
|
|
- </el-collapse-item>
|
|
|
- </el-collapse>
|
|
|
- </el-tab-pane>
|
|
|
+ /> -->
|
|
|
+ </el-collapse-item>
|
|
|
+ <el-collapse-item title="业务审核" name="2">
|
|
|
+ <add-form
|
|
|
+ :sitem="sitem"
|
|
|
+ :newTime="newTime"
|
|
|
+ v-if="newTime !== ''"
|
|
|
+ @refresh="initData()"
|
|
|
+ />
|
|
|
+ </el-collapse-item>
|
|
|
+ </el-collapse>
|
|
|
+ </el-tab-pane>
|
|
|
<el-tab-pane label="审批记录" name="2">
|
|
|
<process-time-line
|
|
|
v-if="newTime !== ''"
|
|
@@ -64,13 +131,12 @@
|
|
|
import mixinPage from "@/mixins/elPaginationHandle";
|
|
|
import resToken from "@/mixins/resToken";
|
|
|
import asyncRequest from "@/apis/service/sellOut/zxDiffOrder";
|
|
|
-import showForm from "./components/showForm";
|
|
|
import addForm from "./components/addForm";
|
|
|
+import { showColumns } from "./columns";
|
|
|
export default {
|
|
|
name: "zxDiffOrderDetail",
|
|
|
mixins: [mixinPage, resToken],
|
|
|
components: {
|
|
|
- showForm,
|
|
|
addForm,
|
|
|
},
|
|
|
computed: {
|
|
@@ -89,11 +155,12 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
showModel: false,
|
|
|
+ showColumns: showColumns,
|
|
|
+ activeTabs: "1",
|
|
|
activeNames: ["-1", "0", "1", "2", "3", "4", "5", "10"],
|
|
|
statusOptions: [
|
|
|
{ value: "1", label: "待业务部门审核" },
|
|
|
- { value: "2", label: "待通知业务部门" },
|
|
|
- { value: "3", label: "审批已完成" },
|
|
|
+ { value: "2", label: "审批已完成" },
|
|
|
],
|
|
|
sitem: null,
|
|
|
orderCode: "",
|