|
@@ -7,9 +7,9 @@
|
|
|
<el-tabs v-model="projectTabs">
|
|
|
<el-tab-pane label="议价单详情" name="1">
|
|
|
<el-collapse v-model="activeNames" style="margin: -18px 0 0 0">
|
|
|
- <el-collapse-item :title="''" name="0">
|
|
|
+ <el-collapse-item :title="'议价详情'" name="1">
|
|
|
<show-data-table
|
|
|
- style="padding: 10px 0 5px 0"
|
|
|
+ style="padding: -5px 0 10px 0"
|
|
|
:newTime="newTime"
|
|
|
v-if="newTime !== '' && queryType === 'view'"
|
|
|
:sitem="sitem"
|
|
@@ -25,17 +25,48 @@
|
|
|
></el-tag>
|
|
|
</template>
|
|
|
|
|
|
- <template slot="departinfo">
|
|
|
- <span>{{ sitem.salesman }}--</span>
|
|
|
- <span v-for="(si, sii) in sitem.departinfo" :key="si + sii"
|
|
|
- ><span v-if="sii !== 0">/</span>{{ si.name }}</span
|
|
|
+ <template slot="good_name">
|
|
|
+ <img
|
|
|
+ v-if="sitem.good_img"
|
|
|
+ :src="sitem.good_img"
|
|
|
+ class="hover"
|
|
|
+ v-viewer
|
|
|
+ style="
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
+ margin: 8px 10px 0 0;
|
|
|
+ vertical-align: top;
|
|
|
+ "
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <span style="vertical-align: top">{{ sitem.good_name }}</span>
|
|
|
+ </template>
|
|
|
+ <template slot="specinfo">
|
|
|
+ <span
|
|
|
+ v-for="(si, sii) in sitem.specinfo"
|
|
|
+ :key="si.specid + sii"
|
|
|
+ >
|
|
|
+ <span v-if="sii !== 0">--</span>{{ si.spec_name }}[{{
|
|
|
+ si.spec_value_name
|
|
|
+ }}]</span
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ <template slot="can">
|
|
|
+ <span v-for="(si, sii) in sitem.can" :key="si.id + sii">
|
|
|
+ <span v-if="sii !== 0">_</span>{{ si.name }}</span
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ <template slot="good_num">
|
|
|
+ <span
|
|
|
+ >{{ sitem.good_num ? sitem.good_num : "0"
|
|
|
+ }}{{ sitem.unit }}</span
|
|
|
>
|
|
|
</template>
|
|
|
</show-data-table>
|
|
|
</el-collapse-item>
|
|
|
<el-collapse-item
|
|
|
title="业务部门审批"
|
|
|
- name="1"
|
|
|
+ name="2"
|
|
|
v-if="status == '0' && powers.some((item) => item == '056')"
|
|
|
>
|
|
|
<exam-form
|
|
@@ -48,7 +79,7 @@
|
|
|
</el-collapse-item>
|
|
|
<el-collapse-item
|
|
|
title="财务专员审批"
|
|
|
- name="1"
|
|
|
+ name="3"
|
|
|
v-if="status == '0' && powers.some((item) => item == '056')"
|
|
|
>
|
|
|
<exam-form
|
|
@@ -61,7 +92,7 @@
|
|
|
</el-collapse-item>
|
|
|
<el-collapse-item
|
|
|
title="财务主管审批"
|
|
|
- name="1"
|
|
|
+ name="4"
|
|
|
v-if="status == '0' && powers.some((item) => item == '056')"
|
|
|
>
|
|
|
<exam-form
|
|
@@ -89,7 +120,20 @@ import { mapGetters } from "vuex";
|
|
|
import addForm from "./components/addEditForm";
|
|
|
import editForm from "./components/editForm";
|
|
|
import feedbackList from "./components/feedbackList";
|
|
|
-import { editColumns } from "./components/ShowDataTableColumns";
|
|
|
+import {
|
|
|
+ editColumns,
|
|
|
+ options1,
|
|
|
+ options2,
|
|
|
+ options3,
|
|
|
+ options4,
|
|
|
+ options5,
|
|
|
+ options6,
|
|
|
+ options7,
|
|
|
+ options8,
|
|
|
+ options9,
|
|
|
+ options10,
|
|
|
+ options11,
|
|
|
+} from "./components/ShowDataTableColumns";
|
|
|
export default {
|
|
|
name: "bargainListDetail",
|
|
|
mixins: [resToken],
|
|
@@ -119,7 +163,7 @@ export default {
|
|
|
size: "small",
|
|
|
editColumns: editColumns,
|
|
|
projectTabs: "1",
|
|
|
- projectNames: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
|
+ activeNames: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
|
newTime: "",
|
|
|
loading: false,
|
|
|
queryType: "",
|
|
@@ -127,14 +171,13 @@ export default {
|
|
|
status: "",
|
|
|
sitem: null,
|
|
|
options: [
|
|
|
- { id: "0", label: "待发布竞标" },
|
|
|
- { id: "1", label: "招标进行中" },
|
|
|
- { id: "2", label: "招标已结束" },
|
|
|
- { id: "3", label: "等待议价结果" },
|
|
|
- { id: "4", label: "待选择商品" },
|
|
|
- { id: "5", label: "已成功转单" },
|
|
|
- { id: "6", label: "已取消转单" },
|
|
|
- { id: "7", label: "招标已暂停" },
|
|
|
+ { id: "1", label: "待主管审批" },
|
|
|
+ { id: "2", label: "待财务专员审批" },
|
|
|
+ { id: "3", label: "待财务主管审批" },
|
|
|
+ { id: "4", label: "审批通过" },
|
|
|
+ { id: "5", label: "主管驳回" },
|
|
|
+ { id: "6", label: "财务主管驳回" },
|
|
|
+ { id: "7", label: "已取消议价" },
|
|
|
],
|
|
|
};
|
|
|
},
|
|
@@ -146,15 +189,9 @@ export default {
|
|
|
const { id, type } = this.$route.query;
|
|
|
this.queryId = id;
|
|
|
this.queryType = type;
|
|
|
- this.projectTabs = type === "add" ? "0" : "1";
|
|
|
+ this.projectTabs = "1";
|
|
|
this.loading = true;
|
|
|
- if (this.queryType === "add") {
|
|
|
- this.sitem = {};
|
|
|
- this.getNewTime();
|
|
|
- } else {
|
|
|
- await this.initData();
|
|
|
- }
|
|
|
-
|
|
|
+ await this.initData();
|
|
|
this.loading = false;
|
|
|
},
|
|
|
|
|
@@ -167,22 +204,21 @@ export default {
|
|
|
async initData() {
|
|
|
this.loading = true;
|
|
|
const { code, message, data } = await asyncRequest.detail({
|
|
|
- infoNo: this.queryId,
|
|
|
+ bargainNo: this.queryId,
|
|
|
});
|
|
|
this.loading = false;
|
|
|
- console.log(data);
|
|
|
if (code === 0) {
|
|
|
this.sitem = JSON.parse(JSON.stringify(data));
|
|
|
const { status, can } = this.sitem;
|
|
|
- if (can && can.length > 0) {
|
|
|
- let cat_id = [];
|
|
|
- can.forEach((e) => {
|
|
|
- cat_id.push(e.id);
|
|
|
- });
|
|
|
- this.sitem.cat_id = cat_id;
|
|
|
- } else {
|
|
|
- this.sitem.cat_id = [];
|
|
|
- }
|
|
|
+ // if (can && can.length > 0) {
|
|
|
+ // let cat_id = [];
|
|
|
+ // can.forEach((e) => {
|
|
|
+ // cat_id.push(e.id);
|
|
|
+ // });
|
|
|
+ // this.sitem.cat_id = cat_id;
|
|
|
+ // } else {
|
|
|
+ // this.sitem.cat_id = [];
|
|
|
+ // }
|
|
|
|
|
|
this.status = status;
|
|
|
this.getNewTime();
|