|
|
@ -4,155 +4,54 @@ |
|
|
|
<div class="cr-body-content"> |
|
|
|
<div ref="box"> |
|
|
|
<flexbox class="content-header"> |
|
|
|
<el-form |
|
|
|
:model="listQuery" |
|
|
|
ref="queryForm" |
|
|
|
v-show="showSearch" |
|
|
|
:inline="true" |
|
|
|
> |
|
|
|
<el-form :model="listQuery" ref="queryForm" v-show="showSearch" :inline="true"> |
|
|
|
<!-- <el-row> --> |
|
|
|
<el-form-item label="生产线:" prop="productType"> |
|
|
|
<el-select |
|
|
|
v-model="listQuery.productType" |
|
|
|
clearable |
|
|
|
placeholder="请选择" |
|
|
|
size="medium" |
|
|
|
style="margin-right: 15px" |
|
|
|
@change="ptypeselectChange" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in productTypeList" |
|
|
|
:key="item.id" |
|
|
|
:label="item.name" |
|
|
|
:value="item.id" |
|
|
|
/> |
|
|
|
<el-select v-model="listQuery.productType" clearable placeholder="请选择" size="medium" style="margin-right: 15px" |
|
|
|
@change="ptypeselectChange"> |
|
|
|
<el-option v-for="item in productTypeList" :key="item.id" :label="item.name" :value="item.id" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="" prop="productLine"> |
|
|
|
<el-select |
|
|
|
v-model="listQuery.productLine" |
|
|
|
clearable |
|
|
|
placeholder="请选择" |
|
|
|
size="medium" |
|
|
|
style="margin-right: 15px" |
|
|
|
@change="valueselectChange" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in PLChildList" |
|
|
|
:key="item.id" |
|
|
|
:label="item.productLineName" |
|
|
|
:value="item.productLineCode" |
|
|
|
/> |
|
|
|
<el-select v-model="listQuery.productLine" clearable placeholder="请选择" size="medium" style="margin-right: 15px" |
|
|
|
@change="valueselectChange"> |
|
|
|
<el-option v-for="item in PLChildList" :key="item.id" :label="item.productLineName" :value="item.productLineCode" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="大众工位" prop="fwStation" v-show="this.listQuery.productType === 2"> |
|
|
|
<el-select |
|
|
|
v-model="listQuery.fwStation" |
|
|
|
clearable |
|
|
|
placeholder="请选择" |
|
|
|
size="medium" |
|
|
|
style="margin-right: 15px" |
|
|
|
@change="fwStation_selectChange" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in fwStationList" |
|
|
|
:key="item.id" |
|
|
|
:label="item.name" |
|
|
|
:value="item.id" |
|
|
|
/> |
|
|
|
<el-select v-model="listQuery.fwStation" clearable placeholder="请选择" size="medium" style="margin-right: 15px" |
|
|
|
@change="fwStation_selectChange"> |
|
|
|
<el-option v-for="item in fwStationList" :key="item.id" :label="item.name" :value="item.id" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
icon="el-icon-search" |
|
|
|
size="mini" |
|
|
|
@click="handleFilter" |
|
|
|
>搜索</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
icon="el-icon-refresh" |
|
|
|
size="mini" |
|
|
|
@click="resetQuery('queryForm')" |
|
|
|
>重置</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
type="warning" |
|
|
|
plain |
|
|
|
icon="el-icon-download" |
|
|
|
size="mini" |
|
|
|
style="margin-left: 15px" |
|
|
|
@click="handleDownload()" |
|
|
|
>导出(Excel) |
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleFilter">搜索</el-button> |
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery('queryForm')">重置</el-button> |
|
|
|
<el-button type="warning" plain icon="el-icon-download" size="mini" style="margin-left: 15px" @click="handleDownload()">导出(Excel) |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
ref="btn1" |
|
|
|
type="primary" |
|
|
|
size="mini" |
|
|
|
style="margin-left: 15px" |
|
|
|
@click="print()" |
|
|
|
>打印门板发货排序单 |
|
|
|
<el-button ref="btn1" type="primary" size="mini" style="margin-left: 15px" @click="print()">打印门板发货排序单 |
|
|
|
</el-button> |
|
|
|
|
|
|
|
<el-button |
|
|
|
v-show="false" |
|
|
|
@click="drawerMBPrint = true" |
|
|
|
size="mini" |
|
|
|
type="warning" |
|
|
|
plain |
|
|
|
> |
|
|
|
<strong>重新打印门板</strong></el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
v-show="false" |
|
|
|
@click="drawerbudaMBPrint = true" |
|
|
|
size="mini" |
|
|
|
type="warning" |
|
|
|
plain |
|
|
|
> |
|
|
|
<strong>门板补打</strong></el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
v-show="false" |
|
|
|
@click="drawerMBDelete = true" |
|
|
|
size="mini" |
|
|
|
type="danger" |
|
|
|
plain |
|
|
|
><strong>门板作废</strong></el-button |
|
|
|
> |
|
|
|
|
|
|
|
<el-button |
|
|
|
v-show="this.listQuery.productType === 2" |
|
|
|
@click="drawerZHBPrint = true" |
|
|
|
size="mini" |
|
|
|
type="warning" |
|
|
|
plain |
|
|
|
> |
|
|
|
<strong>重新打印柱护板</strong></el-button |
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<el-button |
|
|
|
v-show="this.listQuery.productType === 2" |
|
|
|
@click="drawerbudaZHBPrint = true" |
|
|
|
size="mini" |
|
|
|
type="warning" |
|
|
|
plain |
|
|
|
> |
|
|
|
<strong>柱护板补打</strong></el-button |
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<el-button |
|
|
|
v-show="this.listQuery.productType === 2" |
|
|
|
@click="drawerZHBDelete = true" |
|
|
|
size="mini" |
|
|
|
type="danger" |
|
|
|
plain |
|
|
|
><strong>柱护板作废</strong></el-button |
|
|
|
> |
|
|
|
<el-button v-show="false" @click="drawerMBPrint = true" size="mini" type="warning" plain> |
|
|
|
<strong>重新打印门板</strong></el-button> |
|
|
|
<el-button v-show="false" @click="drawerbudaMBPrint = true" size="mini" type="warning" plain> |
|
|
|
<strong>门板补打</strong></el-button> |
|
|
|
<el-button v-show="false" @click="drawerMBDelete = true" size="mini" type="danger" plain><strong>门板作废</strong></el-button> |
|
|
|
|
|
|
|
<el-button v-show="this.listQuery.productType === 2" @click="drawerZHBPrint = true" size="mini" type="warning" |
|
|
|
plain> |
|
|
|
<strong>重新打印柱护板</strong></el-button> |
|
|
|
|
|
|
|
|
|
|
|
<el-button v-show="this.listQuery.productType === 2" @click="drawerbudaZHBPrint = true" size="mini" type="warning" |
|
|
|
plain> |
|
|
|
<strong>柱护板补打</strong></el-button> |
|
|
|
|
|
|
|
|
|
|
|
<el-button v-show="this.listQuery.productType === 2" @click="drawerZHBDelete = true" size="mini" type="danger" |
|
|
|
plain><strong>柱护板作废</strong></el-button> |
|
|
|
<!-- <el-button icon="el-icon-refresh" size="mini" @click="open()" |
|
|
|
>测试</el-button |
|
|
|
>2Z |
|
|
@ -160,14 +59,12 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<div id="app"> |
|
|
|
<div |
|
|
|
style=" |
|
|
|
<div style=" |
|
|
|
border: solid 1px darkgray; |
|
|
|
border-radius: 5px; |
|
|
|
margin: 5px; |
|
|
|
padding: 5px; |
|
|
|
" |
|
|
|
> |
|
|
|
"> |
|
|
|
<span ref="sp01">{{ content01 }}</span> |
|
|
|
|
|
|
|
<span ref="sp05">{{ content05 }}</span> |
|
|
@ -184,111 +81,50 @@ |
|
|
|
</flexbox> |
|
|
|
</div> |
|
|
|
<!--门板重打--> |
|
|
|
<el-drawer |
|
|
|
title="门板重新打印" |
|
|
|
:visible.sync="drawerMBPrint" |
|
|
|
direction="rtl" |
|
|
|
size="65%" |
|
|
|
> |
|
|
|
<el-drawer title="门板重新打印" :visible.sync="drawerMBPrint" direction="rtl" size="65%"> |
|
|
|
<RepetitionMB v-bind:customerInfosMB="customerInfosMB"></RepetitionMB> |
|
|
|
</el-drawer> |
|
|
|
<!--门板补打--> |
|
|
|
<el-drawer |
|
|
|
title="门板补打" |
|
|
|
:visible.sync="drawerbudaMBPrint" |
|
|
|
direction="rtl" |
|
|
|
size="65%" |
|
|
|
> |
|
|
|
<el-drawer title="门板补打" :visible.sync="drawerbudaMBPrint" direction="rtl" size="65%"> |
|
|
|
<budaMB v-bind:customerInfosMB="customerInfosMB"></budaMB> |
|
|
|
</el-drawer> |
|
|
|
<!--门板作废--> |
|
|
|
<el-drawer |
|
|
|
title="门板作废" |
|
|
|
:visible.sync="drawerMBDelete" |
|
|
|
direction="rtl" |
|
|
|
@open="opens()" |
|
|
|
size="65%" |
|
|
|
> |
|
|
|
<el-drawer title="门板作废" :visible.sync="drawerMBDelete" direction="rtl" @open="opens()" size="65%"> |
|
|
|
<ScrapMB v-bind:customerInfosMB="customerInfosMB"></ScrapMB> |
|
|
|
</el-drawer> |
|
|
|
<!--柱护板重打--> |
|
|
|
<el-drawer |
|
|
|
title="柱护板重新打印" |
|
|
|
:visible.sync="drawerZHBPrint" |
|
|
|
direction="rtl" |
|
|
|
size="65%" |
|
|
|
> |
|
|
|
<el-drawer title="柱护板重新打印" :visible.sync="drawerZHBPrint" direction="rtl" size="65%"> |
|
|
|
<RepetitionZHB v-bind:customerInfosZHB="customerInfosZHB"></RepetitionZHB> |
|
|
|
</el-drawer> |
|
|
|
|
|
|
|
|
|
|
|
<!--柱护板补打--> |
|
|
|
<el-drawer |
|
|
|
title="柱护板补打" |
|
|
|
:visible.sync="drawerbudaZHBPrint" |
|
|
|
direction="rtl" |
|
|
|
size="65%" |
|
|
|
> |
|
|
|
<el-drawer title="柱护板补打" :visible.sync="drawerbudaZHBPrint" direction="rtl" size="65%"> |
|
|
|
<budaZHB v-bind:customerInfosZHB="customerInfosZHB"></budaZHB> |
|
|
|
</el-drawer> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--柱护板重打和作废--> |
|
|
|
<el-drawer |
|
|
|
title="柱护板作废" |
|
|
|
:visible.sync="drawerZHBDelete" |
|
|
|
direction="rtl" |
|
|
|
size="65%" |
|
|
|
> |
|
|
|
<el-drawer title="柱护板作废" :visible.sync="drawerZHBDelete" direction="rtl" size="65%"> |
|
|
|
<ScrapZHB v-bind:customerInfosZHB="customerInfosZHB"></ScrapZHB> |
|
|
|
</el-drawer> |
|
|
|
|
|
|
|
<div class="l-table" style="margin-top: -15px"> |
|
|
|
<!--表格渲染--> |
|
|
|
<el-table |
|
|
|
ref="multipleTable" |
|
|
|
v-loading="listLoading" |
|
|
|
element-loading-text="拼命加载中..." |
|
|
|
element-loading-spinner="el-icon-loading" |
|
|
|
class="cr-table" |
|
|
|
:data="list" |
|
|
|
:height="tableHeight" |
|
|
|
:cell-style="cellStyle" |
|
|
|
:header-cell-style="headerRowStyle" |
|
|
|
size="small" |
|
|
|
stripe |
|
|
|
border |
|
|
|
highlight-current-row |
|
|
|
style="width: 100%" |
|
|
|
@sort-change="sortChange" |
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
@row-click="handleRowClick" |
|
|
|
> |
|
|
|
<el-table-column |
|
|
|
label="底盘号" |
|
|
|
prop="vin " |
|
|
|
sortable="custom" |
|
|
|
align="center" |
|
|
|
width="180px" |
|
|
|
> |
|
|
|
<el-table ref="multipleTable" v-loading="listLoading" element-loading-text="拼命加载中..." element-loading-spinner="el-icon-loading" |
|
|
|
class="cr-table" :data="list" :height="tableHeight" :cell-style="cellStyle" :header-cell-style="headerRowStyle" |
|
|
|
size="small" stripe border highlight-current-row style="width: 100%" @sort-change="sortChange" @selection-change="handleSelectionChange" |
|
|
|
@row-click="handleRowClick"> |
|
|
|
<el-table-column label="底盘号" prop="vin " sortable="custom" align="center" width="180px"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span class="link-type" @click="handleDrawerOpen(scope.row)">{{ |
|
|
|
scope.row.vin |
|
|
|
}}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
v-for="(item, index) in getDefaultField" |
|
|
|
:key="index" |
|
|
|
:prop="item.prop" |
|
|
|
:label="item.label" |
|
|
|
:min-width="item.width" |
|
|
|
:formatter="fieldFormatter" |
|
|
|
sortable="custom" |
|
|
|
show-overflow-tooltip |
|
|
|
:gutter="0" |
|
|
|
> |
|
|
|
<el-table-column v-for="(item, index) in getDefaultField" :key="index" :prop="item.prop" :label="item.label" |
|
|
|
:min-width="item.width" :formatter="fieldFormatter" sortable="custom" show-overflow-tooltip :gutter="0"> |
|
|
|
<template slot="header" slot-scope="scope"> |
|
|
|
{{ scope.column.label }} |
|
|
|
</template> |
|
|
@ -296,44 +132,18 @@ |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-dialog |
|
|
|
:visible.sync="dialogFormVisible" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:title="formTitle" |
|
|
|
width="700px" |
|
|
|
@close="closeDialog" |
|
|
|
> |
|
|
|
<el-form |
|
|
|
ref="form" |
|
|
|
:inline="true" |
|
|
|
:model="form" |
|
|
|
:rules="rules" |
|
|
|
size="small" |
|
|
|
label-width="120px" |
|
|
|
> |
|
|
|
<el-dialog :visible.sync="dialogFormVisible" :close-on-click-modal="false" :title="formTitle" width="700px" @close="closeDialog"> |
|
|
|
<el-form ref="form" :inline="true" :model="form" :rules="rules" size="small" label-width="120px"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-row> |
|
|
|
<el-col :md="10" :xs="24"> |
|
|
|
<el-form-item |
|
|
|
label="要打印数量:" |
|
|
|
prop="printNum" |
|
|
|
v-show="this.listQuery.productType === 1" |
|
|
|
> |
|
|
|
<el-input-number |
|
|
|
v-model="printNum" |
|
|
|
:min="1" |
|
|
|
:step="1" |
|
|
|
@change="valueNumChange" |
|
|
|
></el-input-number> |
|
|
|
<el-form-item label="要打印数量:" prop="printNum" v-show="this.listQuery.productType === 1"> |
|
|
|
<el-input-number v-model="printNum" :min="1" :step="1" @change="valueNumChange"></el-input-number> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :md="10" :xs="24"> |
|
|
|
<el-form-item |
|
|
|
label="产线:" |
|
|
|
prop="printNum" |
|
|
|
v-show="this.listQuery.productType === 1" |
|
|
|
> |
|
|
|
<el-form-item label="产线:" prop="printNum" v-show="this.listQuery.productType === 1"> |
|
|
|
{{ this.productName }} |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -341,117 +151,51 @@ |
|
|
|
<el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :md="10" :xs="24"> |
|
|
|
<el-form-item |
|
|
|
label="要打印数量:" |
|
|
|
prop="printNumZHB" |
|
|
|
v-show="this.listQuery.productType === 2" |
|
|
|
> |
|
|
|
<el-input-number |
|
|
|
v-model="printNumZHB" |
|
|
|
:min="1" |
|
|
|
:step="1" |
|
|
|
@change="valueNumChangeZHB" |
|
|
|
></el-input-number> |
|
|
|
<el-form-item label="要打印数量:" prop="printNumZHB" v-show="this.listQuery.productType === 2"> |
|
|
|
<el-input-number v-model="printNumZHB" :min="1" :step="1" @change="valueNumChangeZHB"></el-input-number> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :md="10" :xs="24"> |
|
|
|
<el-form-item |
|
|
|
label="产线:" |
|
|
|
v-show="this.listQuery.productType === 2" |
|
|
|
> |
|
|
|
<el-form-item label="产线:" v-show="this.listQuery.productType === 2"> |
|
|
|
{{ this.productName }} |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
<el-form-item |
|
|
|
label="大众顺序号:" |
|
|
|
prop="beginHostSN" |
|
|
|
v-show="isShowHostSN" |
|
|
|
> |
|
|
|
<el-input |
|
|
|
v-model.number="form.beginHostSN" |
|
|
|
placeholder="" |
|
|
|
clearable |
|
|
|
type="number" |
|
|
|
size="small" |
|
|
|
style="width: 240px" |
|
|
|
@change="beginHostSNChange" |
|
|
|
/> |
|
|
|
<el-form-item label="大众顺序号:" prop="beginHostSN" v-show="isShowHostSN"> |
|
|
|
<el-input v-model.number="form.beginHostSN" placeholder="" clearable type="number" size="small" style="width: 240px" |
|
|
|
@change="beginHostSNChange" /> |
|
|
|
<label class="label1">-</label> |
|
|
|
<el-input |
|
|
|
v-model="form.endHostSN" |
|
|
|
placeholder="" |
|
|
|
clearable |
|
|
|
:disabled="true" |
|
|
|
size="small" |
|
|
|
style="width: 240px;" |
|
|
|
/> |
|
|
|
<el-input v-model="form.endHostSN" placeholder="" clearable :disabled="true" size="small" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="底盘号:" prop="VIN" v-show="isShowVin"> |
|
|
|
<el-input |
|
|
|
v-model="form.beginVin" |
|
|
|
placeholder="" |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
style="width: 240px" |
|
|
|
/> |
|
|
|
<el-input v-model="form.beginVin" placeholder="" clearable size="small" style="width: 240px" /> |
|
|
|
<label class="label1">-</label> |
|
|
|
<el-input |
|
|
|
v-model="form.endVin" |
|
|
|
placeholder="" |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
style="width: 240px" |
|
|
|
/> |
|
|
|
<el-input v-model="form.endVin" placeholder="" clearable size="small" style="width: 240px" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="text" @click="dialogFormVisible = false" |
|
|
|
>取消</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
v-loading="formLoading" |
|
|
|
type="primary" |
|
|
|
:disabled="isDisable" |
|
|
|
@click="save" |
|
|
|
v-debounce="debounceClick" |
|
|
|
>确认</el-button |
|
|
|
> |
|
|
|
<el-button type="text" @click="dialogFormVisible = false">取消</el-button> |
|
|
|
<el-button v-loading="formLoading" type="primary" :disabled="isDisable" @click="save" v-debounce="debounceClick">确认</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="table-footer"> |
|
|
|
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> |
|
|
|
<pagination |
|
|
|
v-show="totalCount > 0" |
|
|
|
:total="totalCount" |
|
|
|
style="float: right" |
|
|
|
:page.sync="page" |
|
|
|
:limit.sync="listQuery.MaxResultCount" |
|
|
|
@pagination="getList" |
|
|
|
/> |
|
|
|
<pagination v-show="totalCount > 0" :total="totalCount" style="float: right" :page.sync="page" :limit.sync="listQuery.MaxResultCount" |
|
|
|
@pagination="getList" /> |
|
|
|
<!-- 抽屉控件 --> |
|
|
|
<el-drawer |
|
|
|
title="信息详细页" |
|
|
|
size="75%" |
|
|
|
direction="rtl" |
|
|
|
:visible.sync="drawer" |
|
|
|
:before-close="handleDrawerClose" |
|
|
|
> |
|
|
|
<el-drawer title="信息详细页" size="75%" direction="rtl" :visible.sync="drawer" :before-close="handleDrawerClose"> |
|
|
|
<div> |
|
|
|
<Detail |
|
|
|
v-bind:customerInfos="customerInfos" |
|
|
|
style="margin-top: -35px" |
|
|
|
></Detail> |
|
|
|
<Detail v-bind:customerInfos="customerInfos" style="margin-top: -35px"></Detail> |
|
|
|
</div> |
|
|
|
</el-drawer> |
|
|
|
</div> |
|
|
@ -464,12 +208,16 @@ import permission from "@/directive/permission/index.js"; |
|
|
|
import CRMTableHead from "../../components/CRMTableHead"; |
|
|
|
import importExcel from "@/components/ImportExcel-vw"; |
|
|
|
import Lockr from "lockr"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
import { |
|
|
|
mapGetters |
|
|
|
} from "vuex"; |
|
|
|
import moment from "moment"; |
|
|
|
import Detail from "./detail.vue"; |
|
|
|
import MBDetail from "./detailMB.vue"; |
|
|
|
import ZHBDetail from "./detailZHB.vue"; |
|
|
|
import { downloadFile } from "@/utils/crmindex.js"; |
|
|
|
import { |
|
|
|
downloadFile |
|
|
|
} from "@/utils/crmindex.js"; |
|
|
|
import qs from "qs"; |
|
|
|
import RepetitionMB from "./RepetitionMB.vue"; |
|
|
|
import budaMB from "./budaMB.vue"; |
|
|
@ -477,7 +225,9 @@ import budaZHB from "./budaZHB.vue"; |
|
|
|
import RepetitionZHB from "./RepetitionZHB.vue"; |
|
|
|
import ScrapMB from "./ScrapMB.vue"; |
|
|
|
import ScrapZHB from "./ScrapZHB.vue"; |
|
|
|
import { forEach } from "jszip/lib/object"; |
|
|
|
import { |
|
|
|
forEach |
|
|
|
} from "jszip/lib/object"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "M100Online", |
|
|
@ -495,7 +245,9 @@ export default { |
|
|
|
budaMB, |
|
|
|
budaZHB |
|
|
|
}, |
|
|
|
directives: { permission }, |
|
|
|
directives: { |
|
|
|
permission |
|
|
|
}, |
|
|
|
filters: { |
|
|
|
IsCustomerSignFilter(status) { |
|
|
|
//翻译是否签字 |
|
|
@ -537,16 +289,25 @@ export default { |
|
|
|
printNum: "12", |
|
|
|
printNumZHB: "24", |
|
|
|
rules: { |
|
|
|
erpAssemblyName: [ |
|
|
|
{ required: true, message: "必须输入!", trigger: "blur" }, |
|
|
|
], |
|
|
|
beginHostSN: [ |
|
|
|
{ required: true, message: "必须输入数字!", trigger: "number" }, |
|
|
|
], |
|
|
|
erpAssemblyName: [{ |
|
|
|
required: true, |
|
|
|
message: "必须输入!", |
|
|
|
trigger: "blur" |
|
|
|
}, ], |
|
|
|
beginHostSN: [{ |
|
|
|
required: true, |
|
|
|
message: "必须输入数字!", |
|
|
|
trigger: "number" |
|
|
|
}, ], |
|
|
|
}, |
|
|
|
billState: [{ |
|
|
|
id: 2, |
|
|
|
name: "未打印" |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 3, |
|
|
|
name: "已打印" |
|
|
|
}, |
|
|
|
billState: [ |
|
|
|
{ id: 2, name: "未打印" }, |
|
|
|
{ id: 3, name: "已打印" }, |
|
|
|
], |
|
|
|
valueSelect: "", |
|
|
|
productName: "", |
|
|
@ -660,13 +421,23 @@ export default { |
|
|
|
details: [], //修改子表数据源 |
|
|
|
PLList: [], //产线下拉 |
|
|
|
PLChildList: [], //筛选后产线下拉 |
|
|
|
productTypeList: [ |
|
|
|
{ id: 1, name: "门板" }, |
|
|
|
{ id: 2, name: "柱护板" }, |
|
|
|
productTypeList: [{ |
|
|
|
id: 1, |
|
|
|
name: "门板" |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 2, |
|
|
|
name: "柱护板" |
|
|
|
}, |
|
|
|
], |
|
|
|
fwStationList: [ |
|
|
|
{ id: "BA2", name: "BA2" }, |
|
|
|
{ id: "BA5", name: "BA5" } |
|
|
|
fwStationList: [{ |
|
|
|
id: "BA2", |
|
|
|
name: "BA2" |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: "BA5", |
|
|
|
name: "BA5" |
|
|
|
} |
|
|
|
], |
|
|
|
isShowHostSN: false, |
|
|
|
isShowVin: false, |
|
|
@ -691,8 +462,16 @@ export default { |
|
|
|
computed: { |
|
|
|
getDefaultField() { |
|
|
|
var tempsTabs = []; |
|
|
|
tempsTabs.push({ label: "流水号", prop: "serialNum", width: 100 }); |
|
|
|
tempsTabs.push({ label: "大众顺序号", prop: "hostSN", width: 120 }); |
|
|
|
tempsTabs.push({ |
|
|
|
label: "流水号", |
|
|
|
prop: "serialNum", |
|
|
|
width: 100 |
|
|
|
}); |
|
|
|
tempsTabs.push({ |
|
|
|
label: "大众顺序号", |
|
|
|
prop: "hostSN", |
|
|
|
width: 120 |
|
|
|
}); |
|
|
|
// tempsTabs.push({ |
|
|
|
// label: "底盘号", |
|
|
|
// prop: "vin", |
|
|
@ -781,20 +560,25 @@ export default { |
|
|
|
// }); |
|
|
|
|
|
|
|
//let productLineList = { productLineList: [this.listQuery.productLine] }; |
|
|
|
if (this.$refs && this.$refs.sp01) { |
|
|
|
this.$refs.sp01.Visible = false; |
|
|
|
this.$refs.sp05.Visible = false; |
|
|
|
this.$refs.sp07.Visible = false; |
|
|
|
this.$refs.sp08.Visible = false; |
|
|
|
} |
|
|
|
|
|
|
|
let productLineListMain = { productLineList: [] }; |
|
|
|
|
|
|
|
let productLineListMain = { |
|
|
|
productLineList: [] |
|
|
|
}; |
|
|
|
|
|
|
|
this.PLChildList.forEach((itm) => { |
|
|
|
productLineListMain.productLineList.push(itm.productLineCode); |
|
|
|
}); |
|
|
|
|
|
|
|
console.log( |
|
|
|
"门版-主界面传过来的值:" + JSON.stringify(productLineListMain) |
|
|
|
); |
|
|
|
// console.log( |
|
|
|
// "门版-主界面传过来的值:" + JSON.stringify(productLineListMain) |
|
|
|
// ); |
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/newjit/bill-m100/product-line-timeout-remind", |
|
|
@ -808,9 +592,9 @@ export default { |
|
|
|
}); |
|
|
|
return; |
|
|
|
} else { |
|
|
|
console.log( |
|
|
|
"超时提醒-接口传过来的值:" + JSON.stringify(response.item) |
|
|
|
); |
|
|
|
// console.log( |
|
|
|
// "超时提醒-接口传过来的值:" + JSON.stringify(response.item) |
|
|
|
// ); |
|
|
|
|
|
|
|
if (response.item !== null) { |
|
|
|
response.item.forEach((JKITEM) => { |
|
|
@ -822,9 +606,9 @@ export default { |
|
|
|
"分钟没收到报文\xa0\xa0\xa0\xa0"; |
|
|
|
if (JKITEM.timeoutMinutes >= JKITEM.configMinutes) { |
|
|
|
//写提示信息 |
|
|
|
console.log( |
|
|
|
"222222222222222222222222222222222222222222222222-1" |
|
|
|
); |
|
|
|
// console.log( |
|
|
|
// "222222222222222222222222222222222222222222222222-1" |
|
|
|
// ); |
|
|
|
this.$refs.sp01.style.color = "red"; |
|
|
|
this.$refs.sp01.style.fontWeight = "bold"; |
|
|
|
} else { |
|
|
@ -839,9 +623,9 @@ export default { |
|
|
|
"分钟没收到报文\xa0\xa0\xa0\xa0"; |
|
|
|
if (JKITEM.timeoutMinutes >= JKITEM.configMinutes) { |
|
|
|
//写提示信息 |
|
|
|
console.log( |
|
|
|
"222222222222222222222222222222222222222222222222-2" |
|
|
|
); |
|
|
|
// console.log( |
|
|
|
// "222222222222222222222222222222222222222222222222-2" |
|
|
|
// ); |
|
|
|
this.setTableHeight() |
|
|
|
this.$refs.sp05.style.color = "red"; |
|
|
|
this.$refs.sp05.style.fontWeight = "bold"; |
|
|
@ -1030,12 +814,10 @@ export default { |
|
|
|
//console.log(510) |
|
|
|
//console.log(param) |
|
|
|
var parentId = param.assemblyID; //主键id |
|
|
|
this.customerInfos = [ |
|
|
|
{ |
|
|
|
this.customerInfos = [{ |
|
|
|
ParentId: parentId, |
|
|
|
BillId: param.id |
|
|
|
}, |
|
|
|
]; |
|
|
|
}, ]; |
|
|
|
}, |
|
|
|
|
|
|
|
handleDrawerClose(done) { |
|
|
@ -1150,10 +932,18 @@ export default { |
|
|
|
/** 格式化字段 */ |
|
|
|
fieldFormatter(row, column) { |
|
|
|
if (column.property === "billStatus") { |
|
|
|
return { 1: "未匹配", 2: "未打印", 3: "已打印" }[row[column.property]]; |
|
|
|
return { |
|
|
|
1: "未匹配", |
|
|
|
2: "未打印", |
|
|
|
3: "已打印" |
|
|
|
} [row[column.property]]; |
|
|
|
} |
|
|
|
if (column.property === "zHBBillStatus") { |
|
|
|
return { 1: "未匹配", 2: "未打印", 3: "已打印" }[row[column.property]]; |
|
|
|
return { |
|
|
|
1: "未匹配", |
|
|
|
2: "未打印", |
|
|
|
3: "已打印" |
|
|
|
} [row[column.property]]; |
|
|
|
} |
|
|
|
if (column.property == "onlineTime" || column.property == "receiveTime") { |
|
|
|
var date = row[column.property]; |
|
|
@ -1241,46 +1031,38 @@ export default { |
|
|
|
this.customerInfosZHB = []; |
|
|
|
if (this.listQuery.productType === 1) { |
|
|
|
//把产线值传到子组件 |
|
|
|
this.customerInfosMB = [ |
|
|
|
{ |
|
|
|
this.customerInfosMB = [{ |
|
|
|
PrintType: 1, |
|
|
|
ProductLine: val, |
|
|
|
fwStation: this.listQuery.fwStation |
|
|
|
}, |
|
|
|
]; |
|
|
|
}, ]; |
|
|
|
} |
|
|
|
if (this.listQuery.productType === 2) { |
|
|
|
//把产线值传到子组件 |
|
|
|
this.customerInfosZHB = [ |
|
|
|
{ |
|
|
|
this.customerInfosZHB = [{ |
|
|
|
PrintType: 1, |
|
|
|
ProductLine: val, |
|
|
|
fwStation: this.listQuery.fwStation |
|
|
|
}, |
|
|
|
]; |
|
|
|
}, ]; |
|
|
|
} |
|
|
|
}, |
|
|
|
fwStation_selectChange(val) { |
|
|
|
this.$forceUpdate(); |
|
|
|
if (this.listQuery.productType === 1) { |
|
|
|
//把产线值传到子组件 |
|
|
|
this.customerInfosMB = [ |
|
|
|
{ |
|
|
|
this.customerInfosMB = [{ |
|
|
|
PrintType: 1, |
|
|
|
ProductLine: this.listQuery.productLine, |
|
|
|
fwStation: val |
|
|
|
}, |
|
|
|
]; |
|
|
|
}, ]; |
|
|
|
} |
|
|
|
if (this.listQuery.productType === 2) { |
|
|
|
//把产线值传到子组件 |
|
|
|
this.customerInfosZHB = [ |
|
|
|
{ |
|
|
|
this.customerInfosZHB = [{ |
|
|
|
PrintType: 1, |
|
|
|
ProductLine: this.listQuery.productLine, |
|
|
|
fwStation: val |
|
|
|
} |
|
|
|
]; |
|
|
|
}]; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@ -1292,7 +1074,10 @@ export default { |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
sortChange(data) { |
|
|
|
const { prop, order } = data; |
|
|
|
const { |
|
|
|
prop, |
|
|
|
order |
|
|
|
} = data; |
|
|
|
if (!prop || !order) { |
|
|
|
this.handleFilter(); |
|
|
|
return; |
|
|
@ -1304,19 +1089,39 @@ export default { |
|
|
|
this.multipleSelection = val; |
|
|
|
}, |
|
|
|
/** 通过回调控制style */ |
|
|
|
cellStyle({ row, column, rowIndex, columnIndex }) { |
|
|
|
cellStyle({ |
|
|
|
row, |
|
|
|
column, |
|
|
|
rowIndex, |
|
|
|
columnIndex |
|
|
|
}) { |
|
|
|
if (column.property === "qty") { |
|
|
|
return { textAlign: "right" }; |
|
|
|
return { |
|
|
|
textAlign: "right" |
|
|
|
}; |
|
|
|
} else { |
|
|
|
return { textAlign: "left" }; |
|
|
|
return { |
|
|
|
textAlign: "left" |
|
|
|
}; |
|
|
|
} |
|
|
|
}, |
|
|
|
/** 通过回调控制表头style */ |
|
|
|
headerRowStyle({ row, column, rowIndex, columnIndex }) { |
|
|
|
headerRowStyle({ |
|
|
|
row, |
|
|
|
column, |
|
|
|
rowIndex, |
|
|
|
columnIndex |
|
|
|
}) { |
|
|
|
if (column.property === "qty") { |
|
|
|
return { textAlign: "right", background: "#FAFAFA" }; |
|
|
|
return { |
|
|
|
textAlign: "right", |
|
|
|
background: "#FAFAFA" |
|
|
|
}; |
|
|
|
} else { |
|
|
|
return { textAlign: "left", background: "#FAFAFA" }; |
|
|
|
return { |
|
|
|
textAlign: "left", |
|
|
|
background: "#FAFAFA" |
|
|
|
}; |
|
|
|
} |
|
|
|
}, |
|
|
|
handleRowClick(row, column, event) { |
|
|
@ -1628,8 +1433,7 @@ export default { |
|
|
|
//有断号 |
|
|
|
this.$confirm( |
|
|
|
"本次打印存在断号是否继续?" + response.item, |
|
|
|
"提示", |
|
|
|
{ |
|
|
|
"提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
@ -1672,8 +1476,7 @@ export default { |
|
|
|
//有断号 |
|
|
|
this.$confirm( |
|
|
|
"本次打印存在断号是否继续?" + response.item, |
|
|
|
"提示", |
|
|
|
{ |
|
|
|
"提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
@ -1720,8 +1523,7 @@ export default { |
|
|
|
/** |
|
|
|
* 保存、加载、打印门板 |
|
|
|
*/ |
|
|
|
private_printMenBan() |
|
|
|
{ |
|
|
|
private_printMenBan() { |
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/newjit/bill-m100/save-menban-report", |
|
|
@ -1790,8 +1592,7 @@ export default { |
|
|
|
/** |
|
|
|
* 保存、加载、打印柱护板 |
|
|
|
*/ |
|
|
|
private_printZhuHuBan(isSelAll = true) |
|
|
|
{ |
|
|
|
private_printZhuHuBan(isSelAll = true) { |
|
|
|
//门板 |
|
|
|
//传递大众顺序号起止 |
|
|
|
this.$axios |
|
|
@ -1842,7 +1643,8 @@ export default { |
|
|
|
console.log("打印json"); |
|
|
|
console.log(this.fileQuery.dataname); |
|
|
|
|
|
|
|
let reporturl = "/Handlers/Handler1.ashx?report=zhuhuban_" + this.hostPrintQuery.productLine + '-' + this.hostPrintQuery.fwStation; //zhuhuban_01-BA2 |
|
|
|
let reporturl = "/Handlers/Handler1.ashx?report=zhuhuban_" + this.hostPrintQuery.productLine + '-' + this.hostPrintQuery |
|
|
|
.fwStation; //zhuhuban_01-BA2 |
|
|
|
|
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
@ -1873,9 +1675,7 @@ export default { |
|
|
|
if (this.userInfo == null || this.userInfo.userId == null) //设置默认值,调试时使用 |
|
|
|
{ |
|
|
|
this.listPLQuery.UserId = 'AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA'; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
} else { |
|
|
|
this.listPLQuery.UserId = this.userInfo.userId; |
|
|
|
} |
|
|
|
|
|
|
@ -1895,12 +1695,10 @@ export default { |
|
|
|
this.listQuery.productLine = this.PLChildList[0].productLineCode; |
|
|
|
if (this.listQuery.productLine != "") { |
|
|
|
//把产线值传到子组件 |
|
|
|
this.customerInfosMB = [ |
|
|
|
{ |
|
|
|
this.customerInfosMB = [{ |
|
|
|
PrintType: 1, |
|
|
|
ProductLine: this.PLChildList[0].productLineCode, |
|
|
|
}, |
|
|
|
]; |
|
|
|
}, ]; |
|
|
|
} |
|
|
|
this.getList(); |
|
|
|
//console.log(this.PLList) |
|
|
@ -1955,7 +1753,9 @@ export default { |
|
|
|
getUrl() { |
|
|
|
//dataResult.data是后台返回的流 |
|
|
|
let pdfUrl = window.URL.createObjectURL( |
|
|
|
new Blob([dataResult.data], { type: `application/pdf` }) |
|
|
|
new Blob([dataResult.data], { |
|
|
|
type: `application/pdf` |
|
|
|
}) |
|
|
|
); |
|
|
|
const fname = item.name + str + "_" + lists[1] + lists[2]; // 下载文件的名字 |
|
|
|
const link = document.createElement("a"); |
|
|
@ -1973,7 +1773,9 @@ export default { |
|
|
|
while (n--) { |
|
|
|
u8arr[n] = bstr.charCodeAt(n); |
|
|
|
} |
|
|
|
return new Blob([u8arr], { type: "application/pdf" }); |
|
|
|
return new Blob([u8arr], { |
|
|
|
type: "application/pdf" |
|
|
|
}); |
|
|
|
}, |
|
|
|
doPrint(val) { |
|
|
|
var ordonnance = document.getElementById(val).contentWindow; |
|
|
@ -2041,15 +1843,15 @@ export default { |
|
|
|
.divider1 { |
|
|
|
margin: 0; |
|
|
|
} |
|
|
|
|
|
|
|
.divider2 { |
|
|
|
margin: 10px; |
|
|
|
margin-bottom: 20px; |
|
|
|
width: 95%; |
|
|
|
} |
|
|
|
|
|
|
|
.label1 { |
|
|
|
margin-left: 5px; |
|
|
|
margin-right: 5px; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|
|
|
|
|