|
|
@ -9,6 +9,7 @@ |
|
|
|
@value-change="JobVersionValue" |
|
|
|
></JobSelectVerson> |
|
|
|
<el-button |
|
|
|
v-if="this.selectJobVersionValue == 0" |
|
|
|
class="filter-item" |
|
|
|
type="success" |
|
|
|
icon="el-icon-check" |
|
|
@ -16,6 +17,15 @@ |
|
|
|
@click="handleCreateBills()" |
|
|
|
>确认出库单</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
v-else |
|
|
|
disabled |
|
|
|
class="filter-item" |
|
|
|
type="success" |
|
|
|
icon="el-icon-check" |
|
|
|
size="mini" |
|
|
|
>确认出库单</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
class="filter-item" |
|
|
|
size="mini" |
|
|
@ -30,13 +40,13 @@ |
|
|
|
type="danger" |
|
|
|
icon="el-icon-download" |
|
|
|
@click="handleDelete()" |
|
|
|
>删除出库单(支持批量) |
|
|
|
>出库单删除 |
|
|
|
</el-button> |
|
|
|
<el-input |
|
|
|
v-model="searchContent" |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
placeholder="按照看板号搜索..." |
|
|
|
placeholder="按照Sap编码搜索..." |
|
|
|
style="width: 230px" |
|
|
|
class="search-container" |
|
|
|
@keyup.enter.native="handleFilter" |
|
|
@ -68,7 +78,7 @@ |
|
|
|
<!--表格渲染--> |
|
|
|
<el-table |
|
|
|
ref="multipleTable" |
|
|
|
v-loading="listLoading" |
|
|
|
v-loading.fullscreen.lock="listLoading" |
|
|
|
element-loading-text="拼命加载中..." |
|
|
|
element-loading-spinner="el-icon-loading" |
|
|
|
class="cr-table" |
|
|
@ -235,6 +245,14 @@ export default { |
|
|
|
billNum: "", |
|
|
|
}, |
|
|
|
listOutPutQuery: { |
|
|
|
Filters: [ |
|
|
|
{ |
|
|
|
logic: 0, |
|
|
|
column: "state", |
|
|
|
action: 0, |
|
|
|
value: "0", |
|
|
|
}, //默认查询可用的 |
|
|
|
], |
|
|
|
version: "", |
|
|
|
guids: "", |
|
|
|
billNum: "", |
|
|
@ -267,7 +285,7 @@ export default { |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getList(); |
|
|
|
// this.getList(); |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
customerInfos: { |
|
|
@ -280,6 +298,24 @@ export default { |
|
|
|
this.customerInfo.version = element.Version; |
|
|
|
}); |
|
|
|
if (this.customerInfo.parentId != "") { |
|
|
|
this.JobVersionList = [ |
|
|
|
{ value: "0", label: "未处理" }, |
|
|
|
{ value: "1", label: "申请出库" }, |
|
|
|
{ value: "2", label: "确认出库" }, |
|
|
|
{ value: "3", label: "不能出库" }, |
|
|
|
{ value: "4", label: "取消出库" }, |
|
|
|
]; |
|
|
|
this.selectJobVersionValue = 0; |
|
|
|
//版本下拉选择 |
|
|
|
this.listQuery.Filters = []; |
|
|
|
var column = "state"; |
|
|
|
let filter = { |
|
|
|
logic: 0, |
|
|
|
column: column, |
|
|
|
action: 0, |
|
|
|
value: "0", |
|
|
|
}; |
|
|
|
this.listQuery.Filters.push(filter); |
|
|
|
this.getList(); |
|
|
|
} |
|
|
|
} |
|
|
@ -307,7 +343,7 @@ export default { |
|
|
|
prop: "kanban", |
|
|
|
width: 150, |
|
|
|
}); |
|
|
|
tempsTabs.push({ label: "交货单号", prop: "wmsBillNum", width: 110 }); |
|
|
|
tempsTabs.push({ label: "交货单号", prop: "wmsBillNum", width: 180 }); |
|
|
|
tempsTabs.push({ label: "Sap编码", prop: "materialCode", width: 150 }); |
|
|
|
tempsTabs.push({ |
|
|
|
label: "物料组(车型)", |
|
|
@ -329,6 +365,17 @@ export default { |
|
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
|
|
|
|
|
//版本下拉选择 |
|
|
|
this.listOutPutQuery.Filters = []; |
|
|
|
var column = "state"; |
|
|
|
let filter = { |
|
|
|
logic: 0, |
|
|
|
column: column, |
|
|
|
action: 0, |
|
|
|
value:this.selectJobVersionValue, |
|
|
|
}; |
|
|
|
this.listOutPutQuery.Filters.push(filter); |
|
|
|
|
|
|
|
console.log( |
|
|
|
"红旗H平台出库单导出:" + JSON.stringify(this.listOutPutQuery) |
|
|
|
); |
|
|
@ -373,6 +420,8 @@ export default { |
|
|
|
}, |
|
|
|
//版本下拉列表选择项 |
|
|
|
JobVersionValue(params) { |
|
|
|
this.selectJobVersionValue = params.value; |
|
|
|
this.searchContent = ""; |
|
|
|
//版本下拉选择 |
|
|
|
this.listQuery.Filters = []; |
|
|
|
var column = "state"; |
|
|
@ -382,9 +431,7 @@ export default { |
|
|
|
action: 0, |
|
|
|
value: params.value, |
|
|
|
}; |
|
|
|
this.selectJobVersionValue = params.value; |
|
|
|
this.listQuery.Filters.push(filter); |
|
|
|
//this.listQuery.state = params.value; |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
|
|
|
@ -881,13 +928,7 @@ export default { |
|
|
|
this.listQuery.SkipCount = (this.page - 1) * 15; |
|
|
|
} |
|
|
|
this.listQuery.billNum = this.customerInfo.parentId; |
|
|
|
let filter = { |
|
|
|
Column: "state", |
|
|
|
Value: this.selectJobVersionValue, |
|
|
|
Logic: 0, |
|
|
|
Action: 0, |
|
|
|
}; |
|
|
|
this.listQuery.Filters.push(filter); |
|
|
|
|
|
|
|
console.log("查询条件:" + JSON.stringify(this.listQuery)); |
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
@ -908,12 +949,15 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
/** 筛选操作 */ |
|
|
|
handleFilter() { |
|
|
|
|
|
|
|
handleFilter(data) { |
|
|
|
this.page = 1; |
|
|
|
this.getList(); |
|
|
|
this.listQuery.Filters = []; |
|
|
|
if (data === null) { |
|
|
|
this.getList(); //查询所有 |
|
|
|
} else { |
|
|
|
if (this.searchContent != "") { |
|
|
|
var column = "billNum"; |
|
|
|
var column = "materialCode"; |
|
|
|
let filter = { |
|
|
|
logic: 0, |
|
|
|
column: column, |
|
|
@ -923,6 +967,7 @@ export default { |
|
|
|
this.listQuery.Filters.push(filter); |
|
|
|
} |
|
|
|
this.getList(); |
|
|
|
} |
|
|
|
}, |
|
|
|
/** 多项筛选操作 */ |
|
|
|
/** 筛选操作 */ |
|
|
|