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

报价样式

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