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