|
@@ -1,62 +1,59 @@
|
|
|
<template>
|
|
|
<div class="zixunOrder pagePadding">
|
|
|
- <div
|
|
|
- v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
|
|
|
+ <ex-table
|
|
|
+ v-loading="loading"
|
|
|
+ :table="table"
|
|
|
+ :data="tableData"
|
|
|
+ :columns="columns"
|
|
|
+ :page="pageInfo"
|
|
|
+ :size="size"
|
|
|
+ @page-curr-change="handlePageChange"
|
|
|
+ @page-size-change="handleSizeChange"
|
|
|
+ @screen-reset="
|
|
|
+ pageInfo.curr = 1;
|
|
|
+ parmValue.page = 1;
|
|
|
+ searchList();
|
|
|
+ "
|
|
|
+ @screen-submit="
|
|
|
+ pageInfo.curr = 1;
|
|
|
+ parmValue.page = 1;
|
|
|
+ searchList();
|
|
|
+ "
|
|
|
>
|
|
|
- <ex-table
|
|
|
- v-loading="loading"
|
|
|
- :table="table"
|
|
|
- :data="tableData"
|
|
|
- :columns="columns"
|
|
|
- :page="pageInfo"
|
|
|
- :size="size"
|
|
|
- @page-curr-change="handlePageChange"
|
|
|
- @page-size-change="handleSizeChange"
|
|
|
- @screen-reset="
|
|
|
- pageInfo.curr = 1;
|
|
|
- parmValue.page = 1;
|
|
|
- searchList();
|
|
|
- "
|
|
|
- @screen-submit="
|
|
|
- pageInfo.curr = 1;
|
|
|
- parmValue.page = 1;
|
|
|
- searchList();
|
|
|
- "
|
|
|
- >
|
|
|
- <template #good_img="{ scope }">
|
|
|
- <div
|
|
|
- v-if="scope.row.good_img"
|
|
|
- style="width: 20px; height: 20px"
|
|
|
- class="hover"
|
|
|
- v-viewer
|
|
|
- >
|
|
|
- <img
|
|
|
- :src="scope.row.good_img"
|
|
|
- style="display: inline-block; width: 100%; height: 100%"
|
|
|
- alt=""
|
|
|
- />
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template #status="{ scope }">
|
|
|
- <el-tag
|
|
|
- :size="tablebtnSize"
|
|
|
- :type="scope.row.status == '0' ? 'warning' : ''"
|
|
|
- v-text="
|
|
|
- (statusOptions.find((item) => item.id == scope.row.status) || {})
|
|
|
- .label || '--'
|
|
|
- "
|
|
|
- ></el-tag>
|
|
|
- </template>
|
|
|
- <template #specinfo="{ scope }">
|
|
|
- <span v-for="(si, sii) in scope.row.specinfo" :key="si.specid + sii">
|
|
|
- <span v-if="sii !== 0"></span>{{ si.spec_name }}[{{
|
|
|
- si.spec_value_name
|
|
|
- }}]</span
|
|
|
- >
|
|
|
- </template>
|
|
|
+ <template #good_img="{ scope }">
|
|
|
+ <div
|
|
|
+ v-if="scope.row.good_img"
|
|
|
+ style="width: 20px; height: 20px"
|
|
|
+ class="hover"
|
|
|
+ v-viewer
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ :src="scope.row.good_img"
|
|
|
+ style="display: inline-block; width: 100%; height: 100%"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template #status="{ scope }">
|
|
|
+ <el-tag
|
|
|
+ :size="tablebtnSize"
|
|
|
+ :type="scope.row.status == '0' ? 'warning' : ''"
|
|
|
+ v-text="
|
|
|
+ (statusOptions.find((item) => item.id == scope.row.status) || {})
|
|
|
+ .label || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
+ <template #specinfo="{ scope }">
|
|
|
+ <span v-for="(si, sii) in scope.row.specinfo" :key="si.specid + sii">
|
|
|
+ <span v-if="sii !== 0"></span>{{ si.spec_name }}[{{
|
|
|
+ si.spec_value_name
|
|
|
+ }}]</span
|
|
|
+ >
|
|
|
+ </template>
|
|
|
|
|
|
- <template #operation="{ scope }">
|
|
|
- <el-tooltip
|
|
|
+ <template #operation="{ scope }">
|
|
|
+ <!-- <el-tooltip
|
|
|
v-if="powers.some((item) => item == '007')"
|
|
|
effect="dark"
|
|
|
content="详情"
|
|
@@ -71,36 +68,36 @@
|
|
|
})
|
|
|
"
|
|
|
></i>
|
|
|
- </el-tooltip>
|
|
|
- <el-tooltip
|
|
|
- v-if="powers.some((item) => item == '007')"
|
|
|
- effect="dark"
|
|
|
- content="发起议价流程"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i
|
|
|
- class="el-icon-s-flag tb-icon"
|
|
|
- @click="wantBargaining(scope.row)"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
- </template>
|
|
|
- </ex-table>
|
|
|
- <add-edit-bargain
|
|
|
- :showModel="wantBmodel"
|
|
|
- :sitem="wantBsitem"
|
|
|
- @cancel="wantBmodel = false"
|
|
|
- @refresh="(wantBmodel = false), searchList()"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div v-else>
|
|
|
- <no-auth></no-auth>
|
|
|
- </div>
|
|
|
+ </el-tooltip> -->
|
|
|
+ <el-tooltip
|
|
|
+ v-if="
|
|
|
+ powers &&
|
|
|
+ powers.length > 0 &&
|
|
|
+ powers.some((item) => item == '068') &&
|
|
|
+ !is_project
|
|
|
+ "
|
|
|
+ effect="dark"
|
|
|
+ content="发起议价流程"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ class="el-icon-s-flag tb-icon"
|
|
|
+ @click="wantBargaining(scope.row)"
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
+ </ex-table>
|
|
|
+ <add-edit-bargain
|
|
|
+ :showModel="wantBmodel"
|
|
|
+ :sitem="wantBsitem"
|
|
|
+ @cancel="wantBmodel = false"
|
|
|
+ @refresh="(wantBmodel = false), searchList()"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import mixinPage from "@/mixins/elPaginationHandle";
|
|
|
import resToken from "@/mixins/resToken";
|
|
|
-import statusList from "@/assets/js/statusList";
|
|
|
import asyncRequest from "@/apis/service/sellOut/zixunOrder";
|
|
|
import { feedbackListCol } from "../columns";
|
|
|
import { mapGetters } from "vuex";
|
|
@@ -109,7 +106,7 @@ import addEditBargain from "./addEditBargain";
|
|
|
export default {
|
|
|
name: "zixunOrder",
|
|
|
mixins: [mixinPage, resToken],
|
|
|
- props: ["id", "newTime"],
|
|
|
+ props: ["id", "newTime", "sitem"],
|
|
|
components: {
|
|
|
addEditBargain,
|
|
|
},
|
|
@@ -118,7 +115,7 @@ export default {
|
|
|
powers() {
|
|
|
let tran =
|
|
|
this.$store.getters.btnList.find(
|
|
|
- (item) => item.menu_route == "zixunOrder"
|
|
|
+ (item) => item.menu_route == "zixunOrderDetail"
|
|
|
) || {};
|
|
|
if (tran && tran.action && tran.action.length > 0) {
|
|
|
return tran.action;
|
|
@@ -133,6 +130,7 @@ export default {
|
|
|
wantBsitem: "",
|
|
|
select: "1",
|
|
|
s_input: "",
|
|
|
+ is_project: false,
|
|
|
customerCode: [], //客户公司code
|
|
|
options: [
|
|
|
{ id: "0", label: "待发布竞标" },
|
|
@@ -158,7 +156,6 @@ export default {
|
|
|
{ id: "4", label: "已退货" },
|
|
|
{ id: "5", label: "待客户验收" },
|
|
|
],
|
|
|
- statusList: statusList,
|
|
|
loading: true,
|
|
|
showModel: false,
|
|
|
isDetail: false,
|
|
@@ -239,6 +236,9 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
+ console.log(this.sitem);
|
|
|
+ const { is_project } = this.sitem;
|
|
|
+ this.is_project = is_project;
|
|
|
this.searchList();
|
|
|
},
|
|
|
|