Commit e215613d authored by 仇晓婷's avatar 仇晓婷

报价样式

parent 7e5aa41a
<template> <template>
<div class="order-quotation"> <Layout class="full">
<!-- 左侧树 --> <!-- 左侧树 -->
<div class="zh-tree" :style="{ height: treeHeight + 'px' }"> <Sider hide-trigger :style="{background: '#fff'}" width="260">
<Tree-Type @func="getMsgFormSon"></Tree-Type> <div class="zh-tree" :style="{ height: treeHeight + 'px' }">
</div> <Tree-Type @func="getMsgFormSon"></Tree-Type>
</div>
</Sider>
<!-- 右侧内容 --> <!-- 右侧内容 -->
<div class="content-right"> <Content class="content">
<Tabs v-model="selectName" @on-click="handleClick"> <Tabs v-model="selectName" @on-click="handleClick">
<TabPane label="订单报价" key="offer" name="offer"> <TabPane label="订单报价" key="offer" name="offer">
<div class="search-form"> <div class="search-form">
...@@ -76,7 +78,7 @@ ...@@ -76,7 +78,7 @@
@on-change="pageChange" @on-change="pageChange"
@on-page-size-change="pageSizeChange" @on-page-size-change="pageSizeChange"
/> />
</div> </Content>
<!-- 待审核弹框 --> <!-- 待审核弹框 -->
<Modal v-model="modalDai" width="360" :mask-closable="false" title="待审核"> <Modal v-model="modalDai" width="360" :mask-closable="false" title="待审核">
<Form :model="formItem" :label-width="80"> <Form :model="formItem" :label-width="80">
...@@ -128,22 +130,22 @@ ...@@ -128,22 +130,22 @@
<!-- 报价记录里送审 --> <!-- 报价记录里送审 -->
<MetalQuotation-Generation ref="metalQuotationExamine" :childData="zPhotosensitive"></MetalQuotation-Generation> <MetalQuotation-Generation ref="metalQuotationExamine" :childData="zPhotosensitive"></MetalQuotation-Generation>
<Photosensitive-Generation ref="photosensitiveExamine" :childData="zPhotosensitive"></Photosensitive-Generation> <Photosensitive-Generation ref="photosensitiveExamine" :childData="zPhotosensitive"></Photosensitive-Generation>
</div> </Layout>
</template> </template>
<script> <script>
import DrawerSet from './components/drawerSet.vue' //抽屉列表 import DrawerSet from "./components/drawerSet.vue"; //抽屉列表
import TreeType from './components/treeType.vue' //左侧树列表 import TreeType from "./components/treeType.vue"; //左侧树列表
import SearchBox from './components/searchBox.vue' //高级搜索弹框 import SearchBox from "./components/searchBox.vue"; //高级搜索弹框
import QuotationBox from './components/quotationBox.vue' //订单报价弹框外协 import QuotationBox from "./components/quotationBox.vue"; //订单报价弹框外协
import MetalQuotation from './components/metalQuotation.vue' //订单报价弹框铺粉 import MetalQuotation from "./components/metalQuotation.vue"; //订单报价弹框铺粉
import Photosensitive from './components/photosensitive.vue' //订单报价弹框光敏 import Photosensitive from "./components/photosensitive.vue"; //订单报价弹框光敏
import MetalDetails from './components/metalDetails.vue' //报价历史记录铺粉详情弹框 import MetalDetails from "./components/metalDetails.vue"; //报价历史记录铺粉详情弹框
import PhotosensitiveDetails from './components/photosensitiveDetails.vue' //报价历史记录光敏详情弹框 import PhotosensitiveDetails from "./components/photosensitiveDetails.vue"; //报价历史记录光敏详情弹框
import MetalQuotationGeneration from './components/metalQuotationGeneration.vue' //生成报价单弹框 import MetalQuotationGeneration from "./components/metalQuotationGeneration.vue"; //生成报价单弹框
import PhotosensitiveGeneration from './components/photosensitiveGeneration.vue' //生成报价单弹框 import PhotosensitiveGeneration from "./components/photosensitiveGeneration.vue"; //生成报价单弹框
var userId = JSON.parse(sessionStorage.getItem('userInfo')).userId var userId = JSON.parse(sessionStorage.getItem("userInfo")).userId;
export default { export default {
components: { components: {
DrawerSet, DrawerSet,
...@@ -162,34 +164,34 @@ export default { ...@@ -162,34 +164,34 @@ export default {
zPhotosensitive: { zPhotosensitive: {
result: [] result: []
}, },
model1: '', model1: "",
rows: {}, rows: {},
modalDai: false, //待审核 modalDai: false, //待审核
modal_loading: false, modal_loading: false,
modalSong: false, modalSong: false,
formItem: { formItem: {
auditIdea: '', auditIdea: "",
animal: '3' animal: "3"
}, },
cxResult: [], cxResult: [],
orderSearchForm: {}, //高级搜索 orderSearchForm: {}, //高级搜索
mesCode: '', //搜索 mesCode: "", //搜索
mesCodeT: '', mesCodeT: "",
simpleSearch: '', simpleSearch: "",
resultDetils: [], //报价记录详情 resultDetils: [], //报价记录详情
materialId: '', //用料id判断订单报价为铺粉还是光敏 materialId: "", //用料id判断订单报价为铺粉还是光敏
total: null, total: null,
bjData: [], bjData: [],
newJsData: [], newJsData: [],
remark: '', remark: "",
Party: false, Party: false,
productId: '', productId: "",
selectName: 'offer', selectName: "offer",
recordColumn: [], //报价记录 recordColumn: [], //报价记录
recordTable: [], //报价记录 recordTable: [], //报价记录
loading: true, loading: true,
treeHeight: '', treeHeight: "",
showPagesize: [20, 50, 100], showPagesize: [20, 50, 100],
pageSize: 20, pageSize: 20,
current: 1, //当前页 整形 选填 默认1 current: 1, //当前页 整形 选填 默认1
...@@ -197,230 +199,230 @@ export default { ...@@ -197,230 +199,230 @@ export default {
value1: false, value1: false,
drawerShow: false, drawerShow: false,
newColumn: [], //订单报价 newColumn: [], //订单报价
tableHeight: '', tableHeight: "",
column: [ column: [
{ type: 'selection', width: 70, align: 'center', fixed: 'left' }, { type: "selection", width: 70, align: "center", fixed: "left" },
{ {
title: '序号', title: "序号",
type: 'index', type: "index",
width: 70, width: 70,
align: 'center', align: "center",
fixed: 'left' fixed: "left"
}, },
{ {
title: '订单编号', title: "订单编号",
key: 'mesCode', key: "mesCode",
minWidth: 200, minWidth: 200,
align: 'center', align: "center",
fixed: 'left' fixed: "left"
}, },
{ title: '产品名称', key: 'productName', width: 120, fixed: 'left' }, { title: "产品名称", key: "productName", width: 120, fixed: "left" },
{ {
title: '报价状态', title: "报价状态",
key: 'orderQuotationStatus', key: "orderQuotationStatus",
align: 'center', align: "center",
width: 120, width: 120,
fixed: 'left', fixed: "left",
filters: this.getArry( filters: this.getArry(
this.$store.getters.dictionaryByKey( this.$store.getters.dictionaryByKey(
'plan.quotation.orderQuotationStatusName' "plan.quotation.orderQuotationStatusName"
) )
), ),
filterMethod(value, row) { filterMethod(value, row) {
let statusChar = row.orderQuotationStatus + '' let statusChar = row.orderQuotationStatus + "";
return statusChar.indexOf(value) > -1 return statusChar.indexOf(value) > -1;
}, },
render: (h, params) => { render: (h, params) => {
return h('state', { return h("state", {
props: { props: {
code: 'plan.quotation.orderQuotationStatusName', code: "plan.quotation.orderQuotationStatusName",
type: 'text', type: "text",
value: params.row.orderQuotationStatus + '' value: params.row.orderQuotationStatus + ""
} }
}) });
} }
}, },
{ {
title: '任务类型', title: "任务类型",
key: 'taskType', key: "taskType",
width: 120, width: 120,
filters: this.getArry( filters: this.getArry(
this.$store.getters.dictionaryByKey('plan.order.taskType') this.$store.getters.dictionaryByKey("plan.order.taskType")
), ),
filterMethod(value, row) { filterMethod(value, row) {
return row.taskType.indexOf(value) > -1 return row.taskType.indexOf(value) > -1;
}, },
render: (h, params) => { render: (h, params) => {
return h('state', { return h("state", {
props: { props: {
code: 'plan.order.taskType', code: "plan.order.taskType",
type: 'text', type: "text",
value: params.row.taskType + '' value: params.row.taskType + ""
} }
}) });
} }
}, },
{ {
title: '阶段', title: "阶段",
key: 'stage', key: "stage",
width: 80, width: 80,
render: (h, params) => { render: (h, params) => {
return h('state', { return h("state", {
props: { props: {
code: 'plan.order.stage', code: "plan.order.stage",
type: 'text', type: "text",
value: params.row.stage + '' value: params.row.stage + ""
} }
}) });
} }
}, },
{ {
title: '材料', title: "材料",
key: 'materialId', key: "materialId",
width: 100, width: 100,
render: (h, params) => { render: (h, params) => {
return h('state', { return h("state", {
props: { props: {
code: 'plan.order.material', code: "plan.order.material",
type: 'text', type: "text",
value: params.row.materialId + '' value: params.row.materialId + ""
} }
}) });
} }
}, },
{ title: '数量', key: 'quantity', minWidth: 80, align: 'right' }, { title: "数量", key: "quantity", minWidth: 80, align: "right" },
{ {
title: '甲方客户', title: "甲方客户",
key: 'guestName', key: "guestName",
width: 120, width: 120,
tooltip: true, tooltip: true,
render: (h, params) => { render: (h, params) => {
return h('state', { return h("state", {
props: { props: {
code: 'plan.order.guestName', code: "plan.order.guestName",
type: 'text', type: "text",
value: params.row.guestName + '' value: params.row.guestName + ""
} }
}) });
} }
}, },
{ {
title: '3D打印承制单位', title: "3D打印承制单位",
key: 'printSupply', key: "printSupply",
width: 160, width: 160,
render: (h, params) => { render: (h, params) => {
return h('state', { return h("state", {
props: { props: {
code: 'plan.order.printSupply', code: "plan.order.printSupply",
type: 'text', type: "text",
value: params.row.printSupply + '' value: params.row.printSupply + ""
} }
}) });
} }
}, },
{ title: '厂内责任机关', key: 'functionaryOffice', width: 140 }, { title: "厂内责任机关", key: "functionaryOffice", width: 140 },
{ {
title: '厂内主体责任部门', title: "厂内主体责任部门",
key: 'mainDepartmentId', key: "mainDepartmentId",
width: 180, width: 180,
render: (h, params) => { render: (h, params) => {
return h('state', { return h("state", {
props: { props: {
code: 'plan.order.mainDepartment', code: "plan.order.mainDepartment",
type: 'text', type: "text",
value: params.row.mainDepartmentId + '' value: params.row.mainDepartmentId + ""
} }
}) });
} }
}, },
{ title: '备注', key: 'remark', width: 120, tooltip: true }, { title: "备注", key: "remark", width: 120, tooltip: true },
{ {
title: '任务输入日期', title: "任务输入日期",
key: 'taskInputDate', key: "taskInputDate",
width: 180, width: 180,
align: 'center' align: "center"
}, },
{ title: '任务节点要求', key: 'taskRequire', width: 150 }, { title: "任务节点要求", key: "taskRequire", width: 150 },
{ {
title: '甲方投产输入文件(编号)', title: "甲方投产输入文件(编号)",
key: 'putintDocmentCode', key: "putintDocmentCode",
width: 220 width: 220
}, },
{ {
title: '甲方技术输入文件(编号)', title: "甲方技术输入文件(编号)",
key: 'technologyDocmentCode', key: "technologyDocmentCode",
width: 220 width: 220
}, },
{ title: '外部图号/模型号', key: 'outerDrawnNumber', width: 180 }, { title: "外部图号/模型号", key: "outerDrawnNumber", width: 180 },
{ title: '模型版本', key: 'modelVersion', width: 120 }, { title: "模型版本", key: "modelVersion", width: 120 },
{ title: '甲方任务号', key: 'taskCode', width: 120 }, { title: "甲方任务号", key: "taskCode", width: 120 },
{ title: '甲方设计人员', key: 'designer', width: 150 }, { title: "甲方设计人员", key: "designer", width: 150 },
{ title: '厂内机关负责人', key: 'officeFunctionary', width: 150 }, { title: "厂内机关负责人", key: "officeFunctionary", width: 150 },
{ title: '厂内主工艺人员', key: 'mainRoutingPeople', width: 150 } { title: "厂内主工艺人员", key: "mainRoutingPeople", width: 150 }
], ],
dataTable: [] dataTable: []
} };
}, },
created() { created() {
this.treeHeight = window.innerHeight - 100 this.treeHeight = window.innerHeight - 155;
this.tableHeight = window.innerHeight - 235 this.tableHeight = window.innerHeight - 290;
this.newColumn = this.column this.newColumn = this.column;
this.tableTata(this.selectName) this.tableTata(this.selectName);
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
mounted() { mounted() {
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight;
this.treeHeight = window.screenHeight - 100 this.treeHeight = window.screenHeight - 155;
this.tableHeight = window.innerHeight - 215 this.tableHeight = window.innerHeight - 290;
})() })();
} };
}, },
methods: { methods: {
update() { update() {
this.tableTata(this.selectName) this.tableTata(this.selectName);
}, },
getMsgFormSon(data) { getMsgFormSon(data) {
this.productId = data.join(',') this.productId = data.join(",");
this.tableTata(this.selectName) this.tableTata(this.selectName);
}, },
//select选项 多选 //select选项 多选
selectInfo(val) { selectInfo(val) {
this.bjData = val this.bjData = val;
var list = [] var list = [];
var listId = [] var listId = [];
val.forEach((data) => { val.forEach(data => {
list.push(data.guestName) list.push(data.guestName);
listId.push(data.materialId) listId.push(data.materialId);
for (var i = 0; i < list.length; i++) { for (var i = 0; i < list.length; i++) {
if (list[i] === data.guestName) { if (list[i] === data.guestName) {
for (var j = 0; j < listId.length; j++) { for (var j = 0; j < listId.length; j++) {
if (listId[j] === data.materialId) { if (listId[j] === data.materialId) {
return (this.Party = true) return (this.Party = true);
} else { } else {
this.$Message.info('请选择同一个材质进行报价') this.$Message.info("请选择同一个材质进行报价");
return (this.Party = false) return (this.Party = false);
} }
} }
} else { } else {
this.$Message.info('请选择同一个甲方客户') this.$Message.info("请选择同一个甲方客户");
return (this.Party = false) return (this.Party = false);
} }
} }
}) });
}, },
//tab切换 //tab切换
handleClick(name) { handleClick(name) {
this.selectName = name this.selectName = name;
this.tableTata(this.selectName) this.tableTata(this.selectName);
}, },
tableTata() { tableTata() {
console.log(this.selectName) console.log(this.selectName);
if (this.selectName == 'offer') { if (this.selectName == "offer") {
this.$http.quotation this.$http.quotation
.getListTable({ .getListTable({
productId: this.productId, productId: this.productId,
...@@ -438,40 +440,40 @@ export default { ...@@ -438,40 +440,40 @@ export default {
functionaryOffice: this.orderSearchForm.functionaryOffice, //厂内责任机关 functionaryOffice: this.orderSearchForm.functionaryOffice, //厂内责任机关
mainDepartmentId: this.orderSearchForm.mainDepartmentId //厂内责任主体部门 mainDepartmentId: this.orderSearchForm.mainDepartmentId //厂内责任主体部门
}) })
.then((res) => { .then(res => {
this.loading = false this.loading = false;
this.total = res.result.totalCount this.total = res.result.totalCount;
res.result.items.forEach((u) => { res.result.items.forEach(u => {
if (u.orderQuotationStatus === 0) { if (u.orderQuotationStatus === 0) {
u._disabled = false u._disabled = false;
} else { } else {
u._disabled = true u._disabled = true;
} }
}) });
this.dataTable = res.result.items this.dataTable = res.result.items;
this.materialId = res.result.items[0].materialId this.materialId = res.result.items[0].materialId;
}) });
} }
if (this.selectName == 'record') { if (this.selectName == "record") {
this.recordColumn = [ this.recordColumn = [
{ {
type: 'index', type: "index",
width: 60, width: 60,
title: '序号', title: "序号",
align: 'center' align: "center"
}, },
{ {
title: '报价单编号', title: "报价单编号",
key: 'code', key: "code",
align: 'center', align: "center",
render: (h, params) => render: (h, params) =>
h('div', [ h("div", [
h( h(
'a', "a",
{ {
on: { on: {
click: () => { click: () => {
this.infoDetail(params.row) this.infoDetail(params.row);
} }
} }
}, },
...@@ -480,47 +482,47 @@ export default { ...@@ -480,47 +482,47 @@ export default {
]) ])
}, },
{ {
title: '报价时间', title: "报价时间",
key: 'creationTime', key: "creationTime",
align: 'center' align: "center"
}, },
{ {
title: '制单人', title: "制单人",
key: 'maker', key: "maker",
align: 'center' align: "center"
}, },
{ {
title: '发往单位', title: "发往单位",
key: 'postCompany', key: "postCompany",
align: 'center' align: "center"
}, },
{ {
title: '联系人', title: "联系人",
key: 'contactUser', key: "contactUser",
align: 'center' align: "center"
}, },
{ {
title: '电话', title: "电话",
key: 'contactTel', key: "contactTel",
align: 'center' align: "center"
}, },
{ {
title: '报价状态', title: "报价状态",
key: 'status', key: "status",
align: 'center', align: "center",
width: 120, width: 120,
filters: this.getArry( filters: this.getArry(
this.$store.getters.dictionaryByKey( this.$store.getters.dictionaryByKey(
'plan.quotation.orderQuotationStatusName' "plan.quotation.orderQuotationStatusName"
) )
), ),
filterMethod(value, row) { filterMethod(value, row) {
let statusChar = row.status + '' let statusChar = row.status + "";
return statusChar.indexOf(value) > -1 return statusChar.indexOf(value) > -1;
}, },
render: (h, params) => { render: (h, params) => {
return h( return h(
'a', "a",
{ {
// on: { // on: {
// click: () => { // click: () => {
...@@ -529,108 +531,109 @@ export default { ...@@ -529,108 +531,109 @@ export default {
// } // }
}, },
[ [
h('state', { h("state", {
props: { props: {
code: 'plan.quotation.orderQuotationStatusName', code: "plan.quotation.orderQuotationStatusName",
type: 'text', type: "text",
value: params.row.status + '' value: params.row.status + ""
} }
}) })
] ]
) );
} }
}, },
{ {
title: '备注', title: "备注",
key: 'remark', key: "remark",
align: 'center' align: "center"
}, },
{ {
title: '操作', title: "操作",
key: 'action', key: "action",
width: 150, width: 150,
align: 'center', align: "center",
render: (h, params) => { render: (h, params) => {
return h('div', { class: 'action' }, [ return h("div", { class: "action" }, [
h( h(
params.row.status === 3 || params.row.status === 4 params.row.status === 3 || params.row.status === 4
? 'op' ? "op"
: params.row.status === 1 : params.row.status === 1
? 'op' ? "op"
: '', : "",
{ {
attrs: { attrs: {
oprate: 'detail' oprate: "detail"
}, },
on: { on: {
click: () => { click: () => {
if (params.row.status === 1) { if (params.row.status === 1) {
this.resetGeneration(params.row) this.resetGeneration(params.row);
} else { } else {
this.requote(params.row) this.requote(params.row);
} }
} }
} }
}, },
(params.row.status === 3 || params.row.status === 4) && (!params.row.upCode) (params.row.status === 3 || params.row.status === 4) &&
? '重新报价' !params.row.upCode
? "重新报价"
: params.row.status === 1 : params.row.status === 1
? '送审' ? "送审"
: '' : ""
) )
]) ]);
} }
} }
] ];
this.$http.quotation this.$http.quotation
.quotationRecordList({ .quotationRecordList({
pageSize: this.pageSize, pageSize: this.pageSize,
current: this.current, current: this.current,
mesCode: this.mesCodeT mesCode: this.mesCodeT
}) })
.then((res) => { .then(res => {
console.log(res) console.log(res);
this.loading = false this.loading = false;
this.recordTable = res.result.items this.recordTable = res.result.items;
this.total = res.result.totalCount this.total = res.result.totalCount;
// recordTable // recordTable
}) })
.catch((error) => {}) .catch(error => {});
} }
}, },
updateColumn(checkShowColumn) { updateColumn(checkShowColumn) {
this.newColumn = checkShowColumn this.newColumn = checkShowColumn;
}, },
//订单报价按钮 //订单报价按钮
orderQuotation() { orderQuotation() {
// 通过甲方客户判断定价报单的类型(类型分为三种情况:铺粉、光敏、外协) // 通过甲方客户判断定价报单的类型(类型分为三种情况:铺粉、光敏、外协)
this.newJsData = [] this.newJsData = [];
if (this.Party === true) { if (this.Party === true) {
this.bjData.forEach((data) => { this.bjData.forEach(data => {
let obj = { let obj = {
mesCode: data.mesCode, mesCode: data.mesCode,
orderId: data.id, orderId: data.id,
productName: data.productName, productName: data.productName,
num: data.quantity, num: data.quantity,
sizeCheckPrice: '' sizeCheckPrice: ""
} };
this.newJsData.push(obj) this.newJsData.push(obj);
this.materialId = data.materialId this.materialId = data.materialId;
}) });
//用料id判断订单报价为铺粉还是光敏 //用料id判断订单报价为铺粉还是光敏
if (this.materialId == 2) { if (this.materialId == 2) {
//光敏 //光敏
this.$refs.photosensitive.modalShow = true this.$refs.photosensitive.modalShow = true;
this.$refs.photosensitive.formItem = {} this.$refs.photosensitive.formItem = {};
this.$refs.photosensitive.formItem.quotationType = '光敏树脂' this.$refs.photosensitive.formItem.quotationType = "光敏树脂";
} else { } else {
//铺粉 //铺粉
this.$refs.metalQuotation.modalShow = true this.$refs.metalQuotation.modalShow = true;
this.$refs.metalQuotation.formItem = {} this.$refs.metalQuotation.formItem = {};
this.$refs.metalQuotation.formItem.quotationType = 'AlSi10Mg' this.$refs.metalQuotation.formItem.quotationType = "AlSi10Mg";
} }
} else { } else {
this.$Message.info('请选择至少一个订单,并为同一个甲方客户') this.$Message.info("请选择至少一个订单,并为同一个甲方客户");
} }
}, },
//报价状态 //报价状态
...@@ -638,20 +641,20 @@ export default { ...@@ -638,20 +641,20 @@ export default {
if (row.status === 2) { if (row.status === 2) {
if (row.auditUser == userId) { if (row.auditUser == userId) {
//待审核 //待审核
this.modalDai = true this.modalDai = true;
this.rows = {} this.rows = {};
this.rows = row this.rows = row;
} else { } else {
this.$Message.error('您不是当前数据处理的指定人员') this.$Message.error("您不是当前数据处理的指定人员");
} }
} else if (row.status === 1) { } else if (row.status === 1) {
if (row.creatorUserId == userId) { if (row.creatorUserId == userId) {
//待送审 //待送审
this.modalSong = true this.modalSong = true;
this.rows = {} this.rows = {};
this.rows = row this.rows = row;
} else { } else {
this.$Message.error('您不是当前数据的创建人员,不能进行送审') this.$Message.error("您不是当前数据的创建人员,不能进行送审");
} }
} }
}, },
...@@ -660,157 +663,157 @@ export default { ...@@ -660,157 +663,157 @@ export default {
id: this.rows.id, id: this.rows.id,
status: this.formItem.animal, status: this.formItem.animal,
auditIdea: this.formItem.auditIdea, auditIdea: this.formItem.auditIdea,
orderIds: this.rows.orderIds.join(',') orderIds: this.rows.orderIds.join(",")
} };
this.$http.quotation this.$http.quotation
.submitCensorship(data) .submitCensorship(data)
.then((res) => { .then(res => {
this.modalDai = false this.modalDai = false;
this.tableTata(this.selectName) this.tableTata(this.selectName);
})
.then((error) => {
this.$Message.error(error.result.message)
}) })
.then(error => {
this.$Message.error(error.result.message);
});
}, },
dalSong() { dalSong() {
var data = { var data = {
auditUser: parseInt(this.model1), auditUser: parseInt(this.model1),
id: this.rows.id, id: this.rows.id,
status: this.rows.status + 1, status: this.rows.status + 1,
orderIds: this.rows.orderIds.join(',') orderIds: this.rows.orderIds.join(",")
} };
this.$http.quotation.submitCensorship(data).then((res) => { this.$http.quotation.submitCensorship(data).then(res => {
this.modalSong = false this.modalSong = false;
this.tableTata(this.selectName) this.tableTata(this.selectName);
}) });
}, },
//高级搜索 //高级搜索
advancedSearch() { advancedSearch() {
this.$refs.searchBox.modalShow = true this.$refs.searchBox.modalShow = true;
}, },
gSearch(data) { gSearch(data) {
this.orderSearchForm = data this.orderSearchForm = data;
this.$refs.searchBox.modalShow = false this.$refs.searchBox.modalShow = false;
this.tableTata(this.selectName) this.tableTata(this.selectName);
}, },
//搜索查询 //搜索查询
easySearch(val) { easySearch(val) {
this.mesCode = val this.mesCode = val;
this.simpleSearch = 'SimpleSearch' this.simpleSearch = "SimpleSearch";
this.tableTata(this.selectName) this.tableTata(this.selectName);
}, },
//报价记录搜索 //报价记录搜索
jlSearch(val) { jlSearch(val) {
console.log(val) console.log(val);
this.mesCodeT = val this.mesCodeT = val;
// this.simpleSearch = 'SimpleSearch' // this.simpleSearch = 'SimpleSearch'
this.tableTata(this.selectName) this.tableTata(this.selectName);
}, },
//重新报价 //重新报价
requote(row) { requote(row) {
this.newJsData = [] this.newJsData = [];
if (row.quotationType == 'AlSi10Mg') { if (row.quotationType == "AlSi10Mg") {
//铺粉 //铺粉
this.$refs.metalQuotation.modalShow = true this.$refs.metalQuotation.modalShow = true;
} else if (row.quotationType == '光敏树脂') { } else if (row.quotationType == "光敏树脂") {
this.$refs.photosensitive.modalShow = true this.$refs.photosensitive.modalShow = true;
} }
this.$http.quotation this.$http.quotation
.orderList({ .orderList({
id: row.id id: row.id
}) })
.then((res) => { .then(res => {
this.loading = false this.loading = false;
this.newJsData = res.result this.newJsData = res.result;
this.cxResult = res.result this.cxResult = res.result;
this.newJsData.forEach((el) => { this.newJsData.forEach(el => {
return (el.id = null) return (el.id = null);
}) });
this.$refs.metalQuotation.formItem.quotationId = row.id this.$refs.metalQuotation.formItem.quotationId = row.id;
this.$refs.metalQuotation.formItem.postCompany = this.cxResult[0].postCompany this.$refs.metalQuotation.formItem.postCompany = this.cxResult[0].postCompany;
this.$refs.metalQuotation.formItem.contactUser = this.cxResult[0].contactUser this.$refs.metalQuotation.formItem.contactUser = this.cxResult[0].contactUser;
this.$refs.metalQuotation.formItem.contactUser = this.cxResult[0].contactTel this.$refs.metalQuotation.formItem.contactUser = this.cxResult[0].contactTel;
this.$refs.metalQuotation.formItem.contactUser = this.cxResult[0].quotationType this.$refs.metalQuotation.formItem.contactUser = this.cxResult[0].quotationType;
this.$refs.metalQuotation.formItem.contactUser = this.cxResult[0].remark this.$refs.metalQuotation.formItem.contactUser = this.cxResult[0].remark;
this.$refs.photosensitive.formItem.postCompany = this.cxResult[0].postCompany this.$refs.photosensitive.formItem.postCompany = this.cxResult[0].postCompany;
this.$refs.photosensitive.formItem.contactUser = this.cxResult[0].contactUser this.$refs.photosensitive.formItem.contactUser = this.cxResult[0].contactUser;
this.$refs.photosensitive.formItem.contactUser = this.cxResult[0].contactTel this.$refs.photosensitive.formItem.contactUser = this.cxResult[0].contactTel;
this.$refs.photosensitive.formItem.contactUser = this.cxResult[0].quotationType this.$refs.photosensitive.formItem.contactUser = this.cxResult[0].quotationType;
this.$refs.photosensitive.formItem.contactUser = this.cxResult[0].remark this.$refs.photosensitive.formItem.contactUser = this.cxResult[0].remark;
this.$refs.metalQuotation.formItem.quotationId = row.id this.$refs.metalQuotation.formItem.quotationId = row.id;
})
.catch((error) => {
this.$Message.error('请求失败')
}) })
.catch(error => {
this.$Message.error("请求失败");
});
}, },
// 分页 // 分页
pageChange(num) { pageChange(num) {
this.current = num this.current = num;
this.tableTata(this.selectName) this.tableTata(this.selectName);
}, },
pageSizeChange(limit) { pageSizeChange(limit) {
//console.log(limit) //console.log(limit)
this.pageSize = limit this.pageSize = limit;
this.tableTata(this.selectName) this.tableTata(this.selectName);
}, },
//详情 //详情
infoDetail(row) { infoDetail(row) {
//判断报价单类型是金属还是光敏 //判断报价单类型是金属还是光敏
if (row.quotationType == 'AlSi10Mg') { if (row.quotationType == "AlSi10Mg") {
this.$refs.metalDetail.modalShow = true this.$refs.metalDetail.modalShow = true;
} }
if (row.quotationType == '光敏树脂') { if (row.quotationType == "光敏树脂") {
this.$refs.photosensitiveDetail.modalShow = true this.$refs.photosensitiveDetail.modalShow = true;
} }
this.$http.quotation this.$http.quotation
.orderList({ .orderList({
id: row.id id: row.id
}) })
.then((res) => { .then(res => {
console.log(res) console.log(res);
this.resultDetils = res.result this.resultDetils = res.result;
console.log(this.resultDetils) console.log(this.resultDetils);
})
.catch((error) => {
this.$Message.error('请求失败')
}) })
.catch(error => {
this.$Message.error("请求失败");
});
}, },
//重新送审 //重新送审
resetGeneration(row) { resetGeneration(row) {
//判断报价单类型是金属还是光敏 当前除了ALSi10Mg的类型以外,其他的都是光敏树脂型 //判断报价单类型是金属还是光敏 当前除了ALSi10Mg的类型以外,其他的都是光敏树脂型
if (row.quotationType == 'AlSi10Mg') { if (row.quotationType == "AlSi10Mg") {
this.$refs.metalQuotationExamine.modalShow = true this.$refs.metalQuotationExamine.modalShow = true;
} }
if (row.quotationType == '光敏树脂') { if (row.quotationType == "光敏树脂") {
this.$refs.photosensitiveExamine.modalShow = true this.$refs.photosensitiveExamine.modalShow = true;
} }
this.$http.quotation this.$http.quotation
.orderList({ .orderList({
id: row.id id: row.id
}) })
.then((res) => { .then(res => {
this.zPhotosensitive.result = res.result this.zPhotosensitive.result = res.result;
})
.catch((error) => {
this.$Message.error('请求失败')
}) })
.catch(error => {
this.$Message.error("请求失败");
});
}, },
//得到数据字典对应的label和value,用于table排序 //得到数据字典对应的label和value,用于table排序
getArry(arryList) { getArry(arryList) {
let arry = [] let arry = [];
arryList.forEach((data) => { arryList.forEach(data => {
var that = this var that = this;
let arryObj = {} let arryObj = {};
arryObj['label'] = data.name arryObj["label"] = data.name;
arryObj['value'] = data.code arryObj["value"] = data.code;
arry.push(arryObj) arry.push(arryObj);
}) });
return arry return arry;
} }
} }
} };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.table { .table {
...@@ -820,8 +823,4 @@ export default { ...@@ -820,8 +823,4 @@ export default {
margin-top: 15px; margin-top: 15px;
} }
</style> </style>
<style>
.single-page-con {
overflow-y: hidden !important;
}
</style>
...@@ -1436,7 +1436,7 @@ export default { ...@@ -1436,7 +1436,7 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.order-quotation { .order-quotation {
height: 100vh !important; // height: 100vh !important;
} }
.table { .table {
margin-top: 15px; margin-top: 15px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment