|
|
@ -1,7 +1,13 @@ |
|
|
|
<!--轿车看板-发出未结算--> |
|
|
|
<!--准时化出库单--> |
|
|
|
<template> |
|
|
|
<div class="cr-body-content"> |
|
|
|
<flexbox class="content-header"> |
|
|
|
<!-- <XhJSSelect |
|
|
|
:options="versionList" |
|
|
|
style="width: 200px" |
|
|
|
class="search-container" |
|
|
|
@value-change="selectValue" |
|
|
|
></XhJSSelect> --> |
|
|
|
<el-input |
|
|
|
v-model="searchContent" |
|
|
|
clearable |
|
|
@ -11,6 +17,15 @@ |
|
|
|
class="search-container" |
|
|
|
@keyup.enter.native="handleFilter" |
|
|
|
/> |
|
|
|
<el-input |
|
|
|
v-model="searchVersion" |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
placeholder="按照版本号搜索..." |
|
|
|
style="width: 200px" |
|
|
|
class="search-container" |
|
|
|
@keyup.enter.native="handleFilter" |
|
|
|
/> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="success" |
|
|
@ -18,6 +33,9 @@ |
|
|
|
@click="handleFilter" |
|
|
|
>搜索 |
|
|
|
</el-button> |
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery()" |
|
|
|
>重置</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
class="filter-item" |
|
|
|
size="mini" |
|
|
@ -154,10 +172,11 @@ import Detail from "./detail"; |
|
|
|
import moment from "moment"; |
|
|
|
import importExcel from "@/components/ImportExcel-base"; |
|
|
|
import { formatTimeToTimestamp } from "@/utils/index"; |
|
|
|
import XhJSSelect from "@/components/CreateCom/Xh-JS-Select-Label.vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "sendUnsettledDiffReport", |
|
|
|
components: { Pagination, Detail, importExcel }, |
|
|
|
components: { Pagination, Detail, importExcel, XhJSSelect }, |
|
|
|
directives: { permission }, |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -169,6 +188,7 @@ export default { |
|
|
|
}, |
|
|
|
customerInfos: [], |
|
|
|
searchContent: "", // 输入内容 |
|
|
|
searchVersion: "", // 输入内容 |
|
|
|
drawer: false, |
|
|
|
form: { |
|
|
|
version: "", |
|
|
@ -243,6 +263,11 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
selectValue(params) { |
|
|
|
//版本下拉选择 |
|
|
|
this.versionValue = params.value; |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
dblhandleCurrentChange(row, column, cell, event) { |
|
|
|
if (column.label === "备注") { |
|
|
|
row.isEditCell = true; |
|
|
@ -300,20 +325,44 @@ export default { |
|
|
|
this.showExcelImport = true; |
|
|
|
this.$refs.importexcel.handleImportExcelClick(); |
|
|
|
}, |
|
|
|
// getVersionInfo() { |
|
|
|
// //取版本列表信息 |
|
|
|
// this.listLoading = true; |
|
|
|
// this.listQuery.SkipCount = (this.page - 1) * 1000; |
|
|
|
// this.$axios |
|
|
|
// .posts("/api/settleaccount/CentralizedControl/openlist") |
|
|
|
// .then((response) => { |
|
|
|
// this.versionList = []; |
|
|
|
// response.forEach((element) => { |
|
|
|
// let options = {}; |
|
|
|
// options.value = element.version; |
|
|
|
// options.label = element.version; |
|
|
|
// this.versionList.push(options); |
|
|
|
// }); |
|
|
|
// }) |
|
|
|
// .catch(() => { |
|
|
|
// this.listLoading = false; |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
getVersionInfo() { |
|
|
|
//取版本列表信息 |
|
|
|
this.listLoading = true; |
|
|
|
this.listQuery.SkipCount = (this.page - 1) * 1000; |
|
|
|
this.$axios |
|
|
|
.posts("/api/settleaccount/CentralizedControl/openlist") |
|
|
|
.posts("/api/settleaccount/wmsjitoutput/WmsJitList", this.listQuery) |
|
|
|
.then((response) => { |
|
|
|
this.versionList = []; |
|
|
|
response.forEach((element) => { |
|
|
|
response.items.forEach((element) => { |
|
|
|
let options = {}; |
|
|
|
options.value = element.version; |
|
|
|
options.value = element.id; |
|
|
|
options.label = element.version; |
|
|
|
this.versionList.push(options); |
|
|
|
}); |
|
|
|
if (JSON.stringify(this.versionList) != "[]") { |
|
|
|
//因版本下拉有默认值,所以详表要自动绑定子表数据 |
|
|
|
this.versionValueVerson = this.versionList[0].label; |
|
|
|
this.getList(); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.listLoading = false; |
|
|
@ -386,7 +435,7 @@ export default { |
|
|
|
handleFilter() { |
|
|
|
this.page = 1; |
|
|
|
this.getList(); |
|
|
|
this.listQuery.Filters = []; |
|
|
|
let Filter = []; |
|
|
|
if (this.searchContent != "") { |
|
|
|
var column = "billNum"; |
|
|
|
let filter = { |
|
|
@ -395,11 +444,30 @@ export default { |
|
|
|
action: 6, |
|
|
|
value: this.searchContent, |
|
|
|
}; |
|
|
|
this.listQuery.Filters.push(filter); |
|
|
|
Filter.push(filter); |
|
|
|
} |
|
|
|
if (this.searchVersion != "") { |
|
|
|
var column = "version"; |
|
|
|
let filter = { |
|
|
|
logic: 0, |
|
|
|
column: column, |
|
|
|
action: 6, |
|
|
|
value: this.searchVersion, |
|
|
|
}; |
|
|
|
Filter.push(filter); |
|
|
|
} |
|
|
|
console.log("筛选条件" + JSON.stringify(Filter)); |
|
|
|
this.listQuery.Filters = Filter; |
|
|
|
|
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
resetQuery() { |
|
|
|
this.searchContent = ""; |
|
|
|
this.searchVersion = ""; |
|
|
|
this.listQuery.Filters = []; |
|
|
|
this.listQuery.SkipCount = 1; |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
resetQuery() {}, |
|
|
|
sortChange(data) { |
|
|
|
const { prop, order } = data; |
|
|
|
if (!prop || !order) { |
|
|
|