Commit f02db6e4 authored by renjintao's avatar renjintao

mesplan

parent 67ccc8b9
......@@ -24,7 +24,7 @@
</div>
<Content class="content" :class="!showMenu?'con_bord':''">
<!--:data="dataT"-->
<DataGrid :action="action" :columns="columns" :conditions="easySearch" ref="grid" @on-selection-change="onSelect" :batch="true" :border="false" rowKey="id" exportTitle="订单管理" @on-import-data="onImportData">
<DataGrid :action="action" :columns="columns" :conditions="easySearch" ref="grid" @on-selection-change="onSelect" :batch="true" :border="false" rowKey="id">
<template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline>
<FormItem prop="keys">
......@@ -376,7 +376,7 @@ export default {
h(
"op", {
attrs: {
oprate: "remove"
// oprate: "delete"
},
on: {
click: () => this.remove(params.row)
......@@ -389,14 +389,14 @@ export default {
params.row.id != params.row.rootId ||
params.row.status != 1 ?
"display:none" :
"") : (
"color:red") : (
(params.row.status == 3 &&
params.row.id == params.row.rootId &&
params.row.divideMark != 0) ||
params.row.id != params.row.rootId ||
params.row.status != 3 ?
"display:none" :
"")
"color:red")
},
"删除"
),
......@@ -770,7 +770,7 @@ export default {
this.delMsg = "";
this.delNum = 0;
this.actIds = [];
this.$refs.grid.cancelFooterToolbar();
//this.$refs.grid.cancelFooterToolbar();
this.actIds.push(row.id);
if (row.id != row.rootId) {
this.sondeletecheck(row.rootId);
......
<template>
<Layout class="quotation">
<Layout class="quotation">
<!-- 左侧树 -->
<!-- <Sider hide-trigger :style="{background: '#fff'}" width="260">
<Tree-Type @func="getMsgFormSon" :style="{ height: treeHeight + 'px' }"></Tree-Type>
......@@ -19,14 +19,7 @@
<div class="search-form">
<Row>
<Col span="12" style="display: flex;">
<Input
search
v-model="mesCode"
enter-button
placeholder="订单编号、产品编码..."
@on-search="easySearch(mesCode)"
style="width:235px;flaot:left;"
/>
<Input search v-model="mesCode" enter-button placeholder="订单编号、产品编码..." @on-search="easySearch(mesCode)" style="width:235px;flaot:left;" />
<Button @click="advancedSearch" type="primary" style="margin-left:8px;">高级搜索</Button>
</Col>
<Col span="12" style=" text-align: right;">
......@@ -38,52 +31,17 @@
</Row>
</div>
<div style="margin-top:10px;">
<Table
border
highlight-row
ref="selection"
:columns="newColumn"
:data="dataTable"
:loading="loading"
:height="tableHeight"
class="tableCommon"
@on-selection-change="selectInfo"
></Table>
<Table border highlight-row ref="selection" :columns="newColumn" :data="dataTable" :loading="loading" :height="tableHeight" class="tableCommon" @on-selection-change="selectInfo"></Table>
</div>
</TabPane>
<TabPane label="报价记录" key="record" name="record">
<Input
search
enter-button
placeholder="订单编号、报价单编号..."
v-model="mesCodeT"
@on-search="jlSearch(mesCodeT)"
style="width:235px;flaot:left;"
/>
<Input search enter-button placeholder="订单编号、报价单编号..." v-model="mesCodeT" @on-search="jlSearch(mesCodeT)" style="width:235px;flaot:left;" />
<div style="margin-top:10px;">
<Table
border
ref="selection"
:columns="recordColumn"
:data="recordTable"
:loading="loading"
class="tableCommon"
:height="tableHeight"
></Table>
<Table border ref="selection" :columns="recordColumn" :data="recordTable" :loading="loading" class="tableCommon" :height="tableHeight"></Table>
</div>
</TabPane>
</Tabs>
<Page
style="margin-top:10px;"
show-elevator
show-sizer
:total="total"
:page-size-opts="showPagesize"
:page-size="pageSize"
:current="current"
@on-change="pageChange"
@on-page-size-change="pageSizeChange"
/>
<Page style="margin-top:10px;" show-elevator show-sizer :total="total" :page-size-opts="showPagesize" :page-size="pageSize" :current="current" @on-change="pageChange" @on-page-size-change="pageSizeChange" />
</Content>
<!-- 待审核弹框 -->
<Modal v-model="modalDai" width="360" :mask-closable="false" title="待审核">
......@@ -95,12 +53,7 @@
</RadioGroup>
</FormItem>
<FormItem label="备注">
<Input
v-model="formItem.auditIdea"
type="textarea"
:autosize="{ minRows: 2, maxRows: 5 }"
placeholder="Enter something..."
></Input>
<Input v-model="formItem.auditIdea" type="textarea" :autosize="{ minRows: 2, maxRows: 5 }" placeholder="Enter something..."></Input>
</FormItem>
</Form>
<div slot="footer">
......@@ -118,13 +71,7 @@
</div>
</Modal>
<!-- 列设置抽屉 -->
<Drawer-Set
:isShow="drawerShow"
:tcolumn="column"
:newColumn="newColumn"
@close="drawerShow = false"
@updateCol="updateColumn"
></Drawer-Set>
<Drawer-Set :isShow="drawerShow" :tcolumn="column" :newColumn="newColumn" @close="drawerShow = false" @updateCol="updateColumn"></Drawer-Set>
<!-- 高级搜索弹框 -->
<Search-Box ref="searchBox" @heightSearch="gSearch"></Search-Box>
<!-- 订单报价 -->
......@@ -134,17 +81,9 @@
<Metal-Details ref="metalDetail" :resultDetils="resultDetils"></Metal-Details>
<Photosensitive-Details ref="photosensitiveDetail" :resultDetils="resultDetils"></Photosensitive-Details>
<!-- 报价记录里送审 -->
<MetalQuotation-Generation
ref="metalQuotationExamine"
:childData="zPhotosensitive"
@update="update"
></MetalQuotation-Generation>
<Photosensitive-Generation
ref="photosensitiveExamine"
:childData="zPhotosensitive"
@update="update"
></Photosensitive-Generation>
</Layout>
<MetalQuotation-Generation ref="metalQuotationExamine" :childData="zPhotosensitive" @update="update"></MetalQuotation-Generation>
<Photosensitive-Generation ref="photosensitiveExamine" :childData="zPhotosensitive" @update="update"></Photosensitive-Generation>
</Layout>
</template>
<script>
......@@ -217,8 +156,12 @@ export default {
drawerShow: false,
newColumn: [], //订单报价
tableHeight: "",
column: [
{ type: "selection", width: 70, align: "center", fixed: "left" },
column: [{
type: "selection",
width: 70,
align: "center",
fixed: "left"
},
{
title: "序号",
type: "index",
......@@ -233,7 +176,12 @@ export default {
align: "center",
fixed: "left"
},
{ title: "产品名称", key: "productName", width: 120, fixed: "left" },
{
title: "产品名称",
key: "productName",
width: 120,
fixed: "left"
},
{
title: "报价状态",
key: "orderQuotationStatus",
......@@ -302,12 +250,17 @@ export default {
props: {
code: "plan.order.material",
type: "text",
value: params.row.materialId + ""
value: params.row.materialId ? (params.row.materialId + "") : ""
}
});
}
},
{ title: "数量", key: "quantity", minWidth: 80, align: "right" },
{
title: "数量",
key: "quantity",
minWidth: 80,
align: "right"
},
{
title: "甲方客户",
key: "guestName",
......@@ -337,7 +290,11 @@ export default {
});
}
},
{ title: "厂内责任机关", key: "functionaryOffice", width: 140 },
{
title: "厂内责任机关",
key: "functionaryOffice",
width: 140
},
{
title: "厂内主体责任部门",
key: "mainDepartmentId",
......@@ -352,14 +309,23 @@ export default {
});
}
},
{ title: "备注", key: "remark", width: 120, tooltip: true },
{
title: "备注",
key: "remark",
width: 120,
tooltip: true
},
{
title: "任务输入日期",
key: "taskInputDate",
width: 180,
align: "center"
},
{ title: "任务节点要求", key: "taskRequire", width: 150 },
{
title: "任务节点要求",
key: "taskRequire",
width: 150
},
{
title: "甲方投产输入文件(编号)",
key: "putintDocmentCode",
......@@ -370,12 +336,36 @@ export default {
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: []
};
......@@ -395,7 +385,10 @@ export default {
}
});
},
async fetch({ store, params }) {
async fetch({
store,
params
}) {
await store.dispatch("loadDictionary"); // 加载数据字典
},
mounted() {
......@@ -494,8 +487,7 @@ export default {
});
}
if (this.selectName == "record") {
this.recordColumn = [
{
this.recordColumn = [{
type: "index",
width: 65,
title: "序号",
......@@ -508,8 +500,7 @@ export default {
render: (h, params) =>
h("div", [
h(
"a",
{
"a", {
on: {
click: () => {
this.infoDetail(params.row);
......@@ -561,8 +552,7 @@ export default {
},
render: (h, params) => {
return h(
"a",
{
"a", {
// on: {
// click: () => {
// this.statusData(params.row)
......@@ -592,14 +582,15 @@ export default {
width: 150,
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"
: params.row.status === 1
? "op"
: "",
{
params.row.status === 3 || params.row.status === 4 ?
"op" :
params.row.status === 1 ?
"op" :
"", {
attrs: {
oprate: "detail"
},
......@@ -614,11 +605,11 @@ export default {
}
},
(params.row.status === 3 || params.row.status === 4) &&
!params.row.upCode
? "重新报价"
: params.row.status === 1 && this.status == 0
? "送审"
: ""
!params.row.upCode ?
"重新报价" :
params.row.status === 1 && this.status == 0 ?
"送审" :
""
)
]);
}
......@@ -855,5 +846,3 @@ export default {
}
};
</script>
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