liuyunfeng
1 year ago
12 changed files with 1518 additions and 43 deletions
@ -1,8 +1,8 @@ |
|||||
{ |
{ |
||||
//"profiles": { |
"profiles": { |
||||
// "WSL": { |
"WSL": { |
||||
// "commandName": "WSL2", |
"commandName": "WSL2", |
||||
// "distributionName": "" |
"distributionName": "" |
||||
// } |
} |
||||
//} |
} |
||||
} |
} |
@ -0,0 +1,354 @@ |
|||||
|
<!--M100上线信息-明细数据--> |
||||
|
<template> |
||||
|
<div class="cr-body-content"> |
||||
|
<!--表格渲染--> |
||||
|
<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" |
||||
|
:row-key="getRowKeys" |
||||
|
:expand-row-keys="expands" |
||||
|
@expand-change="exChange" |
||||
|
> |
||||
|
<!-- <el-table-column type="selection" width="44px"></el-table-column> --> |
||||
|
<!-- <el-table-column |
||||
|
prop="总成名称" |
||||
|
label="erpAssemblyName" |
||||
|
sortable |
||||
|
width="180" |
||||
|
> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="erpAssemblyVersion" |
||||
|
label="总成版本号" |
||||
|
sortable |
||||
|
width="180" |
||||
|
> |
||||
|
style="width: calc(100% - 47px)" |
||||
|
class="two-list" |
||||
|
</el-table-column> --> |
||||
|
|
||||
|
<el-table-column type="expand" prop="details"> |
||||
|
<template slot-scope="scope"> |
||||
|
<el-table :data="scope.row.details"> |
||||
|
<el-table-column |
||||
|
prop="partCode" |
||||
|
label="客户零件代码" |
||||
|
></el-table-column> |
||||
|
<el-table-column |
||||
|
prop="partNum" |
||||
|
label="客户零件数量" |
||||
|
></el-table-column> |
||||
|
<el-table-column prop="description" label="描述"></el-table-column> |
||||
|
<el-table-column prop="isKey" label="是否Key件"> |
||||
|
<template slot-scope="scope"> |
||||
|
<span v-if="scope.row.isKey == true"> |
||||
|
<span style="color: #00b46d">是</span> |
||||
|
</span> |
||||
|
<span v-else> |
||||
|
<span style="color: #d75c89">否</span> |
||||
|
</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</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" |
||||
|
> |
||||
|
<template slot="header" slot-scope="scope"> |
||||
|
{{ scope.column.label }} |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="erpAssemblyVersion" |
||||
|
label="总成版本号" |
||||
|
sortable |
||||
|
width="360" |
||||
|
> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
<div class="table-footer"> |
||||
|
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> |
||||
|
<pagination |
||||
|
v-show="totalCount > 0" |
||||
|
:total="totalCount" |
||||
|
:page.sync="page" |
||||
|
:limit.sync="listQuery.MaxResultCount" |
||||
|
@pagination="getList" |
||||
|
/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination |
||||
|
import permission from "@/directive/permission/index.js"; |
||||
|
import CRMTableHead from "../../components/CRMTableHead"; |
||||
|
import { downloadFile } from "@/utils/crmindex.js"; |
||||
|
import Detail from "./detail"; |
||||
|
|
||||
|
export default { |
||||
|
name: "sendUnsettledDiffReport", |
||||
|
components: { Pagination, CRMTableHead, Detail }, |
||||
|
directives: { permission }, |
||||
|
filters: { |
||||
|
IsCustomerSignFilter(status) { |
||||
|
//翻译是否签字 |
||||
|
const statusMap = { |
||||
|
true: "是", |
||||
|
false: "否", |
||||
|
}; |
||||
|
return statusMap[status]; |
||||
|
}, |
||||
|
}, |
||||
|
props: { |
||||
|
customerInfos: { |
||||
|
type: Array, |
||||
|
default: () => { |
||||
|
return []; |
||||
|
}, |
||||
|
}, |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
crmType: "stockFisDiffReport", |
||||
|
rules: { |
||||
|
//前端定义的规则,后端也有验证 |
||||
|
erpMaterialCode: [ |
||||
|
{ required: true, message: "必须输入!", trigger: "blur" }, |
||||
|
], |
||||
|
}, |
||||
|
expands: [], //只展开一行放入当前行id |
||||
|
getRowKeys: (row) => { |
||||
|
return row.id; //这里看这一行中需要根据哪个属性值是id |
||||
|
}, |
||||
|
searchContent: "", // 输入内容 |
||||
|
customerInfo: { |
||||
|
parentId: "", |
||||
|
}, |
||||
|
form: { |
||||
|
dicDetailID: "", |
||||
|
customerId: "", |
||||
|
projectId: "", |
||||
|
}, |
||||
|
list: null, |
||||
|
totalCount: 0, |
||||
|
listLoading: true, |
||||
|
formLoading: false, |
||||
|
// 高级搜索 |
||||
|
filterObj: { |
||||
|
type: Object, |
||||
|
default: () => { |
||||
|
return {}; |
||||
|
}, |
||||
|
}, |
||||
|
listQuery: { |
||||
|
Filters: [ |
||||
|
{ |
||||
|
logic: 0, |
||||
|
column: "Enabled", |
||||
|
action: 0, |
||||
|
value: "true", |
||||
|
}, //默认查询可用的 |
||||
|
], |
||||
|
SkipCount: 0, |
||||
|
MaxResultCount: 15, |
||||
|
id: "", |
||||
|
}, |
||||
|
page: 1, |
||||
|
dialogFormVisible: false, |
||||
|
multipleSelection: [], |
||||
|
formTitle: "", |
||||
|
drawer: false, |
||||
|
showExcelImport: false, |
||||
|
tableHeight: document.documentElement.clientHeight - 30, |
||||
|
isEdit: false, |
||||
|
}; |
||||
|
}, |
||||
|
mounted() { |
||||
|
var self = this; |
||||
|
window.onresize = function () { |
||||
|
var offsetHei = document.documentElement.clientHeight; |
||||
|
self.tableHeight = offsetHei - 30; |
||||
|
}; |
||||
|
}, |
||||
|
created() { |
||||
|
this.getList(); |
||||
|
}, |
||||
|
watch: { |
||||
|
customerInfos: { |
||||
|
handler(newVal) { |
||||
|
if (newVal == "" || newVal == "undefined") { |
||||
|
//TODO |
||||
|
} else { |
||||
|
newVal.forEach((element) => { |
||||
|
this.customerInfo.parentId = element.ParentId; |
||||
|
}); |
||||
|
if (this.customerInfo.parentId != "") { |
||||
|
this.getList(); |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
immediate: true, |
||||
|
}, |
||||
|
}, |
||||
|
computed: { |
||||
|
/** 列表字段 */ |
||||
|
getDefaultField() { |
||||
|
var tempsTabs = []; |
||||
|
tempsTabs.push({ |
||||
|
label: "总成编号", |
||||
|
prop: "erpAssemblyCode", |
||||
|
width: 160, |
||||
|
}); |
||||
|
tempsTabs.push({ |
||||
|
label: "总成名称", |
||||
|
prop: "erpAssemblyName", |
||||
|
width: 160, |
||||
|
}); |
||||
|
// tempsTabs.push({ |
||||
|
// label: "总成版本号", |
||||
|
// prop: "erpAssemblyName", |
||||
|
// width: 160, |
||||
|
// }); |
||||
|
return tempsTabs; |
||||
|
}, |
||||
|
}, |
||||
|
methods: { |
||||
|
exChange(row, rowList) { |
||||
|
this.loading = true; |
||||
|
|
||||
|
var that = this; |
||||
|
if (rowList.length) { |
||||
|
that.expands = []; |
||||
|
if (row) { |
||||
|
that.expands.push(row.id); // 只展开当前行id |
||||
|
} |
||||
|
} else { |
||||
|
that.expands = []; |
||||
|
} |
||||
|
}, |
||||
|
/** 刷新列表 */ |
||||
|
handleHandle(data) { |
||||
|
if (data.type !== "edit") { |
||||
|
this.getList(); |
||||
|
} |
||||
|
}, |
||||
|
/** 格式化字段 */ |
||||
|
fieldFormatter(row, column) { |
||||
|
return row[column.property] || "--"; |
||||
|
}, |
||||
|
importExcelData() { |
||||
|
//关闭导入窗体时调用 |
||||
|
this.showExcelImport = false; |
||||
|
this.getList(); |
||||
|
}, |
||||
|
getList() { |
||||
|
this.listLoading = true; |
||||
|
console.log("详表条件:" + JSON.stringify(this.customerInfo.parentId)); |
||||
|
//alert("详表条件:" + JSON.stringify(this.customerInfo.parentId)); |
||||
|
let vehicleAssemblyId = { vehicleAssemblyId: this.customerInfo.parentId }; |
||||
|
this.$axios |
||||
|
.gets("/api/newjit/assembly-cfg-vehicle/list", vehicleAssemblyId) |
||||
|
.then((response) => { |
||||
|
this.list = response; |
||||
|
setTimeout(() => { |
||||
|
//大数据量加载时 |
||||
|
this.listLoading = false; |
||||
|
}, 500); |
||||
|
}) |
||||
|
.catch(() => { |
||||
|
this.listLoading = false; |
||||
|
}); |
||||
|
}, |
||||
|
/** 筛选操作 */ |
||||
|
handleFilter() { |
||||
|
this.page = 1; |
||||
|
this.getList(); |
||||
|
this.listQuery.Filters = []; |
||||
|
if (this.searchContent != "") { |
||||
|
var column = "partCode"; |
||||
|
let filter = { |
||||
|
logic: 0, |
||||
|
column: column, |
||||
|
action: 6, |
||||
|
value: this.searchContent, |
||||
|
}; |
||||
|
this.listQuery.Filters.push(filter); |
||||
|
} |
||||
|
this.getList(); |
||||
|
}, |
||||
|
resetQuery() {}, |
||||
|
|
||||
|
sortChange(data) { |
||||
|
const { prop, order } = data; |
||||
|
if (!prop || !order) { |
||||
|
this.handleFilter(); |
||||
|
return; |
||||
|
} |
||||
|
this.listQuery.Sorting = prop + " " + order; |
||||
|
this.handleFilter(); |
||||
|
}, |
||||
|
handleSelectionChange(val) { |
||||
|
this.multipleSelection = val; |
||||
|
}, |
||||
|
/** 通过回调控制style */ |
||||
|
cellStyle({ row, column, rowIndex, columnIndex }) { |
||||
|
if ( |
||||
|
column.property === "fisQty" || |
||||
|
column.property === "diffQty" || |
||||
|
column.property === "stockQty" |
||||
|
) { |
||||
|
return { textAlign: "right" }; |
||||
|
} else { |
||||
|
return { textAlign: "left" }; |
||||
|
} |
||||
|
}, |
||||
|
/** 通过回调控制表头style */ |
||||
|
headerRowStyle({ row, column, rowIndex, columnIndex }) { |
||||
|
if ( |
||||
|
column.property === "fisQty" || |
||||
|
column.property === "diffQty" || |
||||
|
column.property === "stockQty" |
||||
|
) { |
||||
|
return { textAlign: "right", background: "#FAFAFA" }; |
||||
|
} else { |
||||
|
return { textAlign: "left", background: "#FAFAFA" }; |
||||
|
} |
||||
|
}, |
||||
|
handleRowClick(row, column, event) { |
||||
|
this.$refs.multipleTable.clearSelection(); |
||||
|
this.$refs.multipleTable.toggleRowSelection(row); |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
@import "../../../pg-fis/styles/crmtable.scss"; |
||||
|
</style> |
||||
|
|
@ -0,0 +1,974 @@ |
|||||
|
<!--已打印查询模块--> |
||||
|
<template> |
||||
|
<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-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> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="" prop="productLine"> |
||||
|
<el-select |
||||
|
v-model="listQuery.productLine" |
||||
|
clearable |
||||
|
placeholder="请选择" |
||||
|
size="medium" |
||||
|
style="margin-right: 10px" |
||||
|
@change="productLineSelectValueChanged" |
||||
|
> |
||||
|
<el-option |
||||
|
v-for="item in PLChildList" |
||||
|
:key="item.id" |
||||
|
:label="item.productLineName" |
||||
|
:value="item.productLineCode" |
||||
|
/> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<!-- 柱护板时候显示 --> |
||||
|
<el-form-item |
||||
|
prop="GroupName" |
||||
|
v-show="listQuery.productType == 2" |
||||
|
> |
||||
|
<el-select |
||||
|
v-model="listQuery.GroupName" |
||||
|
clearable |
||||
|
placeholder="请选择" |
||||
|
size="medium" |
||||
|
style="margin-right: 10px" |
||||
|
@change="productLineSelectValueChanged" |
||||
|
> |
||||
|
<el-option |
||||
|
v-for="(item,key) in PLChildGroupList" |
||||
|
:key="key" |
||||
|
:label="item.groupName" |
||||
|
:value="item.groupCode" |
||||
|
/> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<!-- <el-row> --> |
||||
|
<el-form-item label="大众顺序号:" prop="hostSN"> |
||||
|
<el-input |
||||
|
v-model="listQuery.HostSNBegin" |
||||
|
placeholder="" |
||||
|
clearable |
||||
|
size="small" |
||||
|
style="width: 200px" |
||||
|
@keyup.enter.native="handleKeyup" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="-" prop="HostSNEnd"> |
||||
|
<el-input |
||||
|
v-model="listQuery.HostSNEnd" |
||||
|
placeholder="" |
||||
|
clearable |
||||
|
size="small" |
||||
|
style="width: 200px" |
||||
|
@keyup.enter.native="handleKeyup" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-form-item label="KNR:" prop="KNRBegin"> |
||||
|
<el-input |
||||
|
v-model="listQuery.KNRBegin" |
||||
|
placeholder="" |
||||
|
clearable |
||||
|
size="small" |
||||
|
style="width: 200px" |
||||
|
@keyup.enter.native="handleKeyup" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="-" prop="KNREnd"> |
||||
|
<el-input |
||||
|
v-model="listQuery.KNREnd" |
||||
|
placeholder="" |
||||
|
clearable |
||||
|
size="small" |
||||
|
style="width: 200px" |
||||
|
@keyup.enter.native="handleKeyup" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
<!-- </el-row> --> |
||||
|
<!-- <el-row> --> |
||||
|
<el-form-item label="底盘号:" prop="VINBegin"> |
||||
|
<el-input |
||||
|
v-model="listQuery.VINBegin" |
||||
|
placeholder="" |
||||
|
clearable |
||||
|
size="small" |
||||
|
style="width: 200px" |
||||
|
@keyup.enter.native="handleKeyup" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="-" prop="VINEnd"> |
||||
|
<el-input |
||||
|
v-model="listQuery.VINEnd" |
||||
|
placeholder="" |
||||
|
clearable |
||||
|
size="small" |
||||
|
style="width: 200px" |
||||
|
@keyup.enter.native="handleKeyup" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-form-item label="上线日期"> |
||||
|
<el-date-picker |
||||
|
v-model="listQuery.OnlineTimeValue" |
||||
|
size="small" |
||||
|
style="width: 380px" |
||||
|
value-format="yyyy-MM-dd HH:mm:ss" |
||||
|
type="datetimerange" |
||||
|
:default-time="['00:00:00', '23:59:59']" |
||||
|
range-separator="-" |
||||
|
start-placeholder="开始日期" |
||||
|
end-placeholder="结束日期" |
||||
|
></el-date-picker> |
||||
|
</el-form-item> |
||||
|
<!-- </el-row> --> |
||||
|
<!-- <el-row> --> |
||||
|
<el-form-item label="接收日期"> |
||||
|
<el-date-picker |
||||
|
v-model="listQuery.ReceiveTimeValue" |
||||
|
size="small" |
||||
|
style="width: 380px" |
||||
|
value-format="yyyy-MM-dd HH:mm:ss" |
||||
|
type="datetimerange" |
||||
|
:default-time="['00:00:00', '23:59:59']" |
||||
|
range-separator="-" |
||||
|
start-placeholder="开始日期" |
||||
|
end-placeholder="结束日期" |
||||
|
></el-date-picker> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="单据状态" prop="State" v-show="isShowState"> |
||||
|
<el-checkbox-group v-model="listQuery.state"> |
||||
|
<el-checkbox |
||||
|
v-for="(item, index) in billState" |
||||
|
:key="item.id" |
||||
|
:label="item.id" |
||||
|
@change="billStateCheckChanged(index)" |
||||
|
> |
||||
|
{{ item.name }} |
||||
|
</el-checkbox> |
||||
|
</el-checkbox-group> |
||||
|
</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> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<!-- </el-row> --> |
||||
|
</el-form> |
||||
|
</flexbox> |
||||
|
</div> |
||||
|
|
||||
|
<div class="l-table" style="margin-top: -30px"> |
||||
|
<!--表格渲染--> |
||||
|
<el-table |
||||
|
ref="multipleTable" |
||||
|
v-loading="listLoading" |
||||
|
element-loading-text="拼命加载中..." |
||||
|
element-loading-spinner="el-icon-loading" |
||||
|
class="cr-table" |
||||
|
:data="retList" |
||||
|
: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" |
||||
|
> |
||||
|
<template slot="header" slot-scope="scope"> |
||||
|
{{ scope.column.label }} |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</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" |
||||
|
/> |
||||
|
<!-- 抽屉控件 --> |
||||
|
<el-drawer |
||||
|
title="信息详细页" |
||||
|
size="75%" |
||||
|
direction="rtl" |
||||
|
:visible.sync="drawerShow" |
||||
|
:before-close="handleDrawerClose" |
||||
|
> |
||||
|
<div> |
||||
|
<Detail |
||||
|
v-bind:customerInfos="customerInfos" |
||||
|
style="margin-top: -35px" |
||||
|
></Detail> |
||||
|
</div> |
||||
|
</el-drawer> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import Pagination from "@/components/Pagination"; |
||||
|
import permission from "@/directive/permission/index.js"; |
||||
|
import CRMTableHead from "../../components/CRMTableHead"; |
||||
|
import importExcel from "@/components/ImportExcel-vw"; |
||||
|
import Lockr from "lockr"; |
||||
|
import Detail from "./detail.vue"; |
||||
|
import { mapGetters } from "vuex"; |
||||
|
import moment from "moment"; |
||||
|
|
||||
|
import { downloadFile } from "@/utils/crmindex.js"; |
||||
|
import qs from "qs"; |
||||
|
|
||||
|
export default { |
||||
|
name: "alreadyPrint", |
||||
|
components: { |
||||
|
Pagination, |
||||
|
CRMTableHead, |
||||
|
importExcel, |
||||
|
Detail, |
||||
|
}, |
||||
|
directives: { permission }, |
||||
|
|
||||
|
data() { |
||||
|
|
||||
|
return { |
||||
|
chkindex: 0, //复选按钮选择索引 |
||||
|
// rules: { |
||||
|
// erpAssemblyName: [ |
||||
|
// { required: true, message: "必须输入!", trigger: "blur" }, |
||||
|
// ], |
||||
|
// }, |
||||
|
billState: [ |
||||
|
{ id: 1, name: "未解析" }, |
||||
|
{ id: 2, name: "已解析" }, |
||||
|
{ id: 4, name: "断号" }, |
||||
|
], |
||||
|
//valueSelect: "", |
||||
|
customerInfos: [], |
||||
|
//customerInfosMB: [], |
||||
|
//customerInfosZHB: [], |
||||
|
//dialogOptions: [], |
||||
|
//versionValue: "", |
||||
|
//searchContent: "", // 输入内容 |
||||
|
//showExcelImport: false, |
||||
|
//form: {}, |
||||
|
drawerShow: false, |
||||
|
retList: null, |
||||
|
totalCount: 0, |
||||
|
listLoading: true, //正在加载 |
||||
|
customerInfo: { |
||||
|
bomId: "", |
||||
|
}, |
||||
|
// 高级搜索 |
||||
|
// filterObj: { |
||||
|
// type: Object, |
||||
|
// default: () => { |
||||
|
// return {}; |
||||
|
// }, |
||||
|
// }, |
||||
|
listQuery: { |
||||
|
SkipCount: 0, |
||||
|
MaxResultCount: 15, |
||||
|
productType: 1, //1:门板;2:柱护板 |
||||
|
ProductLine: undefined, |
||||
|
GroupName:undefined,//仅在柱护板时候显示 |
||||
|
Version: undefined, |
||||
|
printBillNum: undefined, |
||||
|
serialNumBegin: undefined, |
||||
|
serialNumEnd: undefined, |
||||
|
HostSNBegin: undefined, |
||||
|
HostSNEnd: undefined, |
||||
|
KNRBegin: undefined, |
||||
|
KNREnd: undefined, |
||||
|
VINBegin: undefined, |
||||
|
VINEnd: undefined, |
||||
|
OnlineTimeValue: [], |
||||
|
OnlineTimeBegin: undefined, |
||||
|
OnlineTimeEnd: undefined, |
||||
|
ReceiveTimeValue: [], |
||||
|
ReceiveTimeBegin: undefined, |
||||
|
ReceiveTimeEnd: undefined, |
||||
|
billStatus: undefined, |
||||
|
state: [], |
||||
|
ZHBBillStatus: undefined, |
||||
|
Description:undefined |
||||
|
}, |
||||
|
//导出时用到 |
||||
|
listExportQuery: { |
||||
|
erpAssemblyCode: undefined, |
||||
|
erpAssemblyName: undefined, |
||||
|
}, |
||||
|
//取生产线时用到 |
||||
|
listPLQuery: { |
||||
|
BillType: 2, |
||||
|
//UserId: this.userinfo.UserId, |
||||
|
}, |
||||
|
// hostSNQuery: { |
||||
|
// productLine: undefined, |
||||
|
// }, |
||||
|
// hostCheckQuery: { |
||||
|
// printType: undefined, //0:打印;1:重打;2:补打; |
||||
|
// productLine: undefined, |
||||
|
// beginHostSN: undefined, |
||||
|
// endHostSN: undefined, |
||||
|
// beginVin: undefined, |
||||
|
// endVin: undefined, |
||||
|
// }, |
||||
|
// hostPrintQuery: { |
||||
|
// printType: undefined, //0:打印;1:重打;2:补打; |
||||
|
// productLine: undefined, |
||||
|
// beginHostSN: undefined, |
||||
|
// endHostSN: undefined, |
||||
|
// beginVin: undefined, |
||||
|
// endVin: undefined, |
||||
|
// }, |
||||
|
// vinPrintQuery: { |
||||
|
// printType: undefined, //0:打印;1:重打;2:补打; |
||||
|
// productLine: undefined, |
||||
|
// beginHostSN: undefined, |
||||
|
// endHostSN: undefined, |
||||
|
// beginVin: undefined, |
||||
|
// endVin: undefined, |
||||
|
// }, |
||||
|
// fileQuery: { |
||||
|
// dataname: undefined, |
||||
|
// }, |
||||
|
form: { |
||||
|
details: [], |
||||
|
}, |
||||
|
page: 1, //页索引 |
||||
|
// 显示搜索条件 |
||||
|
showSearch: true, |
||||
|
//drawerShow: false, |
||||
|
//formTitle: "", |
||||
|
//isEdit: false, |
||||
|
//formLoading: false, |
||||
|
tableHeight: document.documentElement.clientHeight - 335, |
||||
|
//detailTableHeight: 250, |
||||
|
//details: [], //修改子表数据源 |
||||
|
PLList: [], //产线下拉 |
||||
|
PLChildList: [], //筛选后产线下拉 |
||||
|
PLChildGroupList: [], //筛选生产线为柱护板下拉后的第三个下拉位 |
||||
|
productTypeList: [ |
||||
|
{ id: 1, name: "门板" }, |
||||
|
{ id: 2, name: "柱护板" }, |
||||
|
], |
||||
|
//isShowHostSN: false, |
||||
|
//isShowVin: false, |
||||
|
isShowState: true, //是否显示【单据状态】查询条件 |
||||
|
}; |
||||
|
}, |
||||
|
mounted() { |
||||
|
let _this = this |
||||
|
window.addEventListener('resize',function(){ |
||||
|
_this.changeMainTableHeight() |
||||
|
}) |
||||
|
this.getPLChildGroupList() //取分组内容 |
||||
|
}, |
||||
|
created() { |
||||
|
this.billState.forEach((element, index) => { |
||||
|
if (index === 0) { |
||||
|
this.listQuery.state.push(element.id); |
||||
|
} |
||||
|
}); |
||||
|
this.getProductLine(); |
||||
|
}, |
||||
|
computed: { |
||||
|
getDefaultField() { |
||||
|
var tempsTabs = []; |
||||
|
//tempsTabs.push({ label: "流水号", prop: "serialNum", width: 100 }); |
||||
|
tempsTabs.push({ label: "大众顺序号", prop: "hostSN", width: 120 }); |
||||
|
// tempsTabs.push({ |
||||
|
// label: "底盘号", |
||||
|
// prop: "vin", |
||||
|
// width: 130, |
||||
|
// }); |
||||
|
tempsTabs.push({ |
||||
|
label: "KNR", |
||||
|
prop: "knr", |
||||
|
width: 150, |
||||
|
}); |
||||
|
tempsTabs.push({ |
||||
|
label: "上线时间", |
||||
|
prop: "onlineTime", |
||||
|
width: 150, |
||||
|
}); |
||||
|
tempsTabs.push({ |
||||
|
label: "接收时间", |
||||
|
prop: "receiveTime", |
||||
|
width: 180, |
||||
|
}); |
||||
|
tempsTabs.push({ |
||||
|
label: "车型代码", |
||||
|
prop: "vehicleModelCode", |
||||
|
width: 120, |
||||
|
}); |
||||
|
// tempsTabs.push({ |
||||
|
// label: "版本", |
||||
|
// prop: "version", |
||||
|
// width: 150, |
||||
|
// }); |
||||
|
tempsTabs.push({ |
||||
|
label: "产线", |
||||
|
prop: "productLine", |
||||
|
width: 120, |
||||
|
}); |
||||
|
tempsTabs.push({ |
||||
|
label: "状态", |
||||
|
prop: "billStatus", |
||||
|
width: 120, |
||||
|
}); |
||||
|
tempsTabs.push({ |
||||
|
label: "顺序号", |
||||
|
prop: "hostSN2", |
||||
|
width: 120, |
||||
|
}); |
||||
|
// tempsTabs.push({ |
||||
|
// label: "柱护板状态", |
||||
|
// prop: "printBillNum", |
||||
|
// width: 120, |
||||
|
// }); |
||||
|
// tempsTabs.push({ |
||||
|
// label: "不可打印", |
||||
|
// prop: "canNotPrint", |
||||
|
// width: 120, |
||||
|
// }); |
||||
|
tempsTabs.push({ |
||||
|
label: "R100上线时间", |
||||
|
prop: "r100OnlineTime", |
||||
|
width: 150, |
||||
|
}); |
||||
|
tempsTabs.push({ |
||||
|
label: "R100接收时间", |
||||
|
prop: "r100ReceiveTime", |
||||
|
width: 180, |
||||
|
}); |
||||
|
tempsTabs.push({ |
||||
|
label: "备注", |
||||
|
prop: "description", |
||||
|
width: 120, |
||||
|
}); |
||||
|
return tempsTabs; |
||||
|
}, |
||||
|
...mapGetters(["userInfo"]), //获取当前用户信息 |
||||
|
}, |
||||
|
methods: { |
||||
|
// 更改主表格高度 |
||||
|
changeMainTableHeight(){ |
||||
|
this.$nextTick(()=>{ |
||||
|
var offsetHei = document.documentElement.clientHeight; |
||||
|
//console.log(offsetHei); |
||||
|
let boxH = this.$refs.box.offsetHeight; |
||||
|
this.tableHeight = offsetHeight - boxH - 37 - 79; //57为footer高度,79为页面上部标签高度 |
||||
|
//this.tableHeight = offsetHei -260 |
||||
|
}) |
||||
|
}, |
||||
|
// 获取PLChildGroupList |
||||
|
getPLChildGroupList(){ |
||||
|
this.$axios |
||||
|
.gets( |
||||
|
"/api/newjit/print-template-configuration/group-list", |
||||
|
) |
||||
|
.then((response) => { |
||||
|
if (response.item !== null) { |
||||
|
this.PLChildGroupList= response.item; |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
//抽屉 |
||||
|
handleDrawerOpen(param) { |
||||
|
this.drawerShow = true; |
||||
|
//console.log(510) |
||||
|
//console.log(param) |
||||
|
var parentId = param.assemblyID; //主键id |
||||
|
this.customerInfos = [ |
||||
|
{ |
||||
|
ParentId: parentId, |
||||
|
}, |
||||
|
]; |
||||
|
}, |
||||
|
handleDrawerClose(done) { |
||||
|
done(); |
||||
|
}, |
||||
|
// fetchData(id) { |
||||
|
// //循环动态 |
||||
|
// this.$axios |
||||
|
// .gets("/api/newjit/assembly-cfg-erp/" + id) |
||||
|
// .then((response) => { |
||||
|
// this.form = response.item; |
||||
|
// //this.details = response.item.details; |
||||
|
// //console.log(this.details); |
||||
|
// }); |
||||
|
// }, |
||||
|
/** 导出功能**/ |
||||
|
handleDownload() { |
||||
|
this.listLoading = true; |
||||
|
this.listExportQuery.erpAssemblyCode = this.listQuery.ErpAssemblyCode; |
||||
|
this.listExportQuery.erpAssemblyName = this.listQuery.ErpAssemblyName; |
||||
|
console.log(JSON.stringify(this.listQuery)); |
||||
|
this.$axios |
||||
|
.posts("/api/newjit/already-print/export", this.listQuery) |
||||
|
.then((res) => { |
||||
|
let filename = res.item; |
||||
|
this.$axios |
||||
|
.BolbGets("/api/newjit/exclude-part-cfg/download/" + filename) |
||||
|
.then((response) => { |
||||
|
if (filename.indexOf("_") != -1) { |
||||
|
let downName = |
||||
|
filename.slice(0, filename.lastIndexOf("_")) + |
||||
|
filename.slice(filename.lastIndexOf(".")); |
||||
|
downloadFile(response, downName); |
||||
|
this.$notify({ |
||||
|
title: "成功", |
||||
|
message: "数据-导出成功!", |
||||
|
type: "success", |
||||
|
duration: 2000, |
||||
|
}); |
||||
|
} else { |
||||
|
downloadFile(response, filename); |
||||
|
this.$notify({ |
||||
|
title: "成功", |
||||
|
message: "数据-导出成功!", |
||||
|
type: "success", |
||||
|
duration: 2000, |
||||
|
}); |
||||
|
} |
||||
|
this.listLoading = false; |
||||
|
}); |
||||
|
}); |
||||
|
this.listLoading = false; |
||||
|
}, |
||||
|
/** 重置按钮操作 */ |
||||
|
resetQuery(refName) { |
||||
|
this.$refs[refName].resetFields(); |
||||
|
this.listQuery.OnlineTimeValue = []; |
||||
|
this.listQuery.ReceiveTimeValue = []; |
||||
|
this.listQuery.state = []; |
||||
|
this.handleKeyup(); |
||||
|
this.getProductLine(); |
||||
|
}, |
||||
|
/** 搜索按钮操作 */ |
||||
|
handleKeyup() { |
||||
|
this.listQuery.SkipCount = 1; |
||||
|
//this.getList(); |
||||
|
}, |
||||
|
// selectValue(params) { |
||||
|
// //版本下拉选择 |
||||
|
// this.versionValue = params.value; |
||||
|
// this.getList(); |
||||
|
// }, |
||||
|
|
||||
|
// selectOptionsChange(item) { |
||||
|
// this.getList(); |
||||
|
// }, |
||||
|
// importExcelData() { |
||||
|
// //关闭导入窗体时调用 |
||||
|
// this.showExcelImport = false; |
||||
|
// //this.getList(); |
||||
|
// }, |
||||
|
|
||||
|
/** 刷新列表 */ |
||||
|
// handleHandle(data) { |
||||
|
// if (data.type !== "edit") { |
||||
|
// this.getList(); |
||||
|
// } |
||||
|
// }, |
||||
|
|
||||
|
// handleAddDetails() { |
||||
|
// if (this.form.details === undefined) { |
||||
|
// this.form.details = []; |
||||
|
// //console.log(679); |
||||
|
// } |
||||
|
// let obj = {}; |
||||
|
// obj.partCode = ""; |
||||
|
// obj.partName = ""; |
||||
|
// obj.partNum = ""; |
||||
|
// obj.isKey = false; |
||||
|
// obj.description = ""; |
||||
|
|
||||
|
// //console.log(this.form.details); |
||||
|
// this.form.details.push(obj); |
||||
|
// //console.log(688); |
||||
|
// }, |
||||
|
// handleDeleteDetails(index) { |
||||
|
// this.form.details.splice(index, 1); |
||||
|
// //console.log(693); |
||||
|
// }, |
||||
|
|
||||
|
/** 格式化字段 */ |
||||
|
fieldFormatter(row, column) { |
||||
|
// if(column.property === "printBillNum"){ |
||||
|
// let value = row[column.property] |
||||
|
// if(value!=null&&value.length > 0){ |
||||
|
// return "柱护板已打印"; |
||||
|
// } |
||||
|
// else{ |
||||
|
// return "柱护板未打印"; |
||||
|
// } |
||||
|
// } |
||||
|
if (column.property === "billStatus") { |
||||
|
return { 1: "未解析", 2: "已解析", 3: "已打印", 4: "断号" }[row[column.property]]; |
||||
|
} |
||||
|
if (column.property == "onlineTime" || column.property == "receiveTime") { |
||||
|
var date = row[column.property]; |
||||
|
if (date == undefined) { |
||||
|
return ""; |
||||
|
} |
||||
|
return moment(date).format("YYYY-MM-DD HH:mm:ss"); |
||||
|
} |
||||
|
// if (column.property === "canNotPrint") { |
||||
|
// return { true: "是", false: "否" }[row[column.property]]; |
||||
|
// } |
||||
|
return row[column.property] || "--"; |
||||
|
}, |
||||
|
getList(data) { |
||||
|
this.listLoading = true; |
||||
|
if (data != undefined) { |
||||
|
this.listQuery.SkipCount = (this.page - 1) * data.limit; |
||||
|
} else { |
||||
|
this.listQuery.SkipCount = (this.page - 1) * 15; |
||||
|
} |
||||
|
if (this.listQuery.OnlineTimeValue !== undefined) { |
||||
|
this.listQuery.OnlineTimeBegin = this.listQuery.OnlineTimeValue[0]; |
||||
|
this.listQuery.OnlineTimeEnd = this.listQuery.OnlineTimeValue[1]; |
||||
|
} |
||||
|
if (this.listQuery.ReceiveTimeValue !== undefined) { |
||||
|
this.listQuery.ReceiveTimeBegin = this.listQuery.ReceiveTimeValue[0]; |
||||
|
this.listQuery.ReceiveTimeEnd = this.listQuery.ReceiveTimeValue[1]; |
||||
|
} |
||||
|
|
||||
|
if (this.chkindex == 2) { |
||||
|
//断号 |
||||
|
//this.listQuery.canNotPrint = true; |
||||
|
this.listQuery.billStatus = 4; |
||||
|
//this.listQuery.ZHBBillStatus = null; |
||||
|
} else { |
||||
|
//this.listQuery.canNotPrint = null; |
||||
|
if (this.listQuery.state !== undefined) { |
||||
|
this.listQuery.billStatus = this.listQuery.state[0]; |
||||
|
} |
||||
|
|
||||
|
// if (this.listQuery.productType === 2) { |
||||
|
// this.listQuery.ZHBBillStatus = this.listQuery.billStatus; |
||||
|
// } else { |
||||
|
// this.listQuery.ZHBBillStatus = null; |
||||
|
// } |
||||
|
if (this.listQuery.productType === 2) { // 1 门板 2 柱护板 |
||||
|
if (this.listQuery.GroupName == "3") { // 分组名称:2 其它柱护板 3 AC柱护板 |
||||
|
this.listQuery.BusinessType = 3; |
||||
|
} else { |
||||
|
this.listQuery.BusinessType = 2; |
||||
|
} |
||||
|
} else { |
||||
|
this.listQuery.BusinessType = 1 |
||||
|
} |
||||
|
this.listQuery.PrintType = 1; |
||||
|
} |
||||
|
|
||||
|
console.log("M100查询条件:" + JSON.stringify(this.listQuery)); |
||||
|
this.$axios |
||||
|
.gets("/api/newjit/already-print/list", this.listQuery) |
||||
|
.then((response) => { |
||||
|
this.retList = response.items; |
||||
|
this.totalCount = response.totalCount; |
||||
|
console.log("M100结果:" + JSON.stringify(this.retList)); |
||||
|
setTimeout(() => { |
||||
|
//大数据量加载时 |
||||
|
this.listLoading = false; |
||||
|
}, 500); |
||||
|
}) |
||||
|
.catch(() => { |
||||
|
this.listLoading = false; |
||||
|
}); |
||||
|
|
||||
|
this.changeMainTableHeight() |
||||
|
}, |
||||
|
|
||||
|
// getDetialList(partCode) { |
||||
|
// this.listLoading = true; |
||||
|
// console.log("详表条件:" + JSON.stringify(this.customerInfo.parentId)); |
||||
|
// this.$axios |
||||
|
// .gets("/api/newjit/assembly-cfg-erp/" + this.customerInfo.parentId) |
||||
|
// .then((response) => { |
||||
|
// //console.log(partCode) |
||||
|
// if (partCode !== "" && partCode !== undefined) { |
||||
|
// //console.log(partCode) |
||||
|
// this.retList = response.item.details.filter( |
||||
|
// (u) => u.partCode === partCode |
||||
|
// ); |
||||
|
// } else { |
||||
|
// this.retList = response.item.details; |
||||
|
// } |
||||
|
// //alert(JSON.stringify(response.Items)) |
||||
|
// //this.totalCount = response.totalCount; |
||||
|
// setTimeout(() => { |
||||
|
// //大数据量加载时 |
||||
|
// this.listLoading = false; |
||||
|
// }, 500); |
||||
|
// }) |
||||
|
// .catch(() => { |
||||
|
// this.listLoading = false; |
||||
|
// }); |
||||
|
// }, |
||||
|
|
||||
|
productLineSelectValueChanged(val) { |
||||
|
this.$forceUpdate(); |
||||
|
|
||||
|
if (this.listQuery.productType === 2) { // 1 门板 2 柱护板 |
||||
|
if (this.listQuery.GroupName == "3") { // 分组名称:2 其它柱护板 3 AC柱护板 |
||||
|
this.listQueryList.BusinessType = 3; |
||||
|
} else { |
||||
|
this.listQueryList.BusinessType = 2; |
||||
|
} |
||||
|
|
||||
|
} else { |
||||
|
//this.listQueryList.ZHBBillStatus = 0; |
||||
|
this.listQueryList.BusinessType = 1 |
||||
|
} |
||||
|
|
||||
|
//this.customerInfosMB = []; |
||||
|
//this.customerInfosZHB = []; |
||||
|
if (this.listQuery.productType === 1) { |
||||
|
//把产线值传到子组件 |
||||
|
// this.customerInfosMB = [ |
||||
|
// { |
||||
|
// PrintType: 1, |
||||
|
// ProductLine: val, |
||||
|
// }, |
||||
|
// ]; |
||||
|
} |
||||
|
if (this.listQuery.productType === 2) { |
||||
|
//把产线值传到子组件 |
||||
|
// this.customerInfosZHB = [ |
||||
|
// { |
||||
|
// PrintType: 1, |
||||
|
// ProductLine: val, |
||||
|
// }, |
||||
|
// ]; |
||||
|
} |
||||
|
}, |
||||
|
//handleImportSAP() {}, |
||||
|
|
||||
|
handleFilter() { |
||||
|
this.page = 1; |
||||
|
this.getList(); |
||||
|
}, |
||||
|
sortChange(data) { |
||||
|
const { prop, order } = data; |
||||
|
if (!prop || !order) { |
||||
|
this.handleFilter(); |
||||
|
return; |
||||
|
} |
||||
|
this.listQuery.Sorting = prop + " " + order; |
||||
|
this.handleFilter(); |
||||
|
}, |
||||
|
handleSelectionChange(val) { |
||||
|
this.multipleSelection = val; |
||||
|
}, |
||||
|
/** 通过回调控制style */ |
||||
|
cellStyle({ row, column, rowIndex, columnIndex }) { |
||||
|
if (column.property === "qty") { |
||||
|
return { textAlign: "right" }; |
||||
|
} else { |
||||
|
return { textAlign: "left" }; |
||||
|
} |
||||
|
}, |
||||
|
/** 通过回调控制表头style */ |
||||
|
headerRowStyle({ row, column, rowIndex, columnIndex }) { |
||||
|
if (column.property === "qty") { |
||||
|
return { textAlign: "right", background: "#FAFAFA" }; |
||||
|
} else { |
||||
|
return { textAlign: "left", background: "#FAFAFA" }; |
||||
|
} |
||||
|
}, |
||||
|
handleRowClick(row, column, event) { |
||||
|
this.$refs.multipleTable.clearSelection(); |
||||
|
this.$refs.multipleTable.toggleRowSelection(row); |
||||
|
}, |
||||
|
|
||||
|
//closeDialog() {}, |
||||
|
|
||||
|
//获取所有产线 |
||||
|
getProductLine() { |
||||
|
this.listPLQuery.UserId = this.userInfo.userId; |
||||
|
this.$axios |
||||
|
.gets("/api/newjit/product-line/list", this.listPLQuery) |
||||
|
.then((response) => { |
||||
|
//console.log(response); |
||||
|
this.PLList = response.item; |
||||
|
this.PLChildList = this.PLList.filter( |
||||
|
(u) => u.productType === parseInt(this.listQuery.productType) |
||||
|
).sort((a, b) => { |
||||
|
return a.productLineCode - b.productLineCode; |
||||
|
}); |
||||
|
this.listQuery.productLine = this.PLChildList[0].productLineCode; |
||||
|
if (this.listQuery.productLine != "") { |
||||
|
//把产线值传到子组件 |
||||
|
// this.customerInfosMB = [ |
||||
|
// { |
||||
|
// PrintType: 1, |
||||
|
// ProductLine: this.PLChildList[0].productLineCode, |
||||
|
// }, |
||||
|
// ]; |
||||
|
} |
||||
|
this.getList(); |
||||
|
//console.log(this.PLList) |
||||
|
}) |
||||
|
.catch(() => {}); |
||||
|
}, |
||||
|
//产线类型变更 |
||||
|
ptypeselectChange() { |
||||
|
this.$forceUpdate(); |
||||
|
//console.log(this.listQuery.productType); |
||||
|
this.PLChildList = this.PLList.filter( |
||||
|
(u) => u.productType === parseInt(this.listQuery.productType) |
||||
|
).sort((a, b) => { |
||||
|
return a.productLineCode - b.productLineCode; |
||||
|
}); |
||||
|
this.listQuery.productLine = this.PLChildList[0].productLineCode; |
||||
|
this.changeMainTableHeight() |
||||
|
//console.log(this.PLList) |
||||
|
//变更打印按钮文字 |
||||
|
if (this.listQuery.productType === 1) { |
||||
|
this.listQuery.GroupName = undefined |
||||
|
this.$refs.btn1.$el.innerText = "打印门板发货排序单"; |
||||
|
this.$refs.btn2.$el.innerText = "重新打印门板发货排序单"; |
||||
|
this.$refs.btn3.$el.innerText = "补打门板发货排序单"; |
||||
|
this.listQuery.state.push(this.billState[0].id); |
||||
|
this.isShowState = true; |
||||
|
} else if (this.listQuery.productType === 2) { |
||||
|
this.listQuery.GroupName = this.PLChildGroupList[0] |
||||
|
this.$refs.btn1.$el.innerText = "打印柱护板发货排序单"; |
||||
|
this.$refs.btn2.$el.innerText = "重新打印柱护板发货排序单"; |
||||
|
this.$refs.btn3.$el.innerText = "补打柱护板发货排序单"; |
||||
|
this.listQuery.state = []; |
||||
|
this.isShowState = false; |
||||
|
} |
||||
|
}, |
||||
|
/*单据状态变更 */ |
||||
|
billStateCheckChanged(index) { |
||||
|
this.chkindex = index; |
||||
|
|
||||
|
if (this.listQuery.state.length <= 1) { |
||||
|
this.listQuery.state.push(this.billState[index].id); |
||||
|
} else { |
||||
|
this.listQuery.state = []; |
||||
|
this.listQuery.state.push(this.billState[index].id); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
@import "../../../pg-fis/styles/crmtable.scss"; |
||||
|
|
||||
|
// /*表格全选框去除空框*/ |
||||
|
// .el-table >>> .DisabledSelection .cell .el-checkbox__inner { |
||||
|
// display: none; |
||||
|
// position: relative; |
||||
|
// } |
||||
|
// /*表格全选框改为:选择*/ |
||||
|
// .el-table >>> .DisabledSelection .cell:before { |
||||
|
// content: "是否Key件"; |
||||
|
// position: absolute; |
||||
|
// left: 7px; |
||||
|
// } |
||||
|
.divider1 { |
||||
|
margin: 0; |
||||
|
} |
||||
|
.divider2 { |
||||
|
margin: 10px; |
||||
|
margin-bottom: 20px; |
||||
|
width: 95%; |
||||
|
} |
||||
|
.label1 { |
||||
|
margin-left: 5px; |
||||
|
margin-right: 5px; |
||||
|
} |
||||
|
</style> |
||||
|
|
||||
|
|
Loading…
Reference in new issue