|
@ -1,27 +1,32 @@ |
|
|
<!--FIS发运数据对比输出表-明细数据--> |
|
|
<!--大众无条码看板-明细数据--> |
|
|
<template> |
|
|
<template> |
|
|
<div class="cr-body-content"> |
|
|
<div class="cr-body-content"> |
|
|
<flexbox class="content-header"> |
|
|
<flexbox class="content-header"> |
|
|
<!-- <el-button |
|
|
|
|
|
class="filter-item" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
type="info" |
|
|
|
|
|
icon="el-icon-download" |
|
|
|
|
|
@click="handleDownload()" |
|
|
|
|
|
>导出全部 |
|
|
|
|
|
</el-button> --> |
|
|
|
|
|
<JobSelectVerson |
|
|
<JobSelectVerson |
|
|
:options="JobVersionList" |
|
|
:options="JobVersionList" |
|
|
style="width: 150px; margin-left: -10px" |
|
|
style="width: 150px; margin-left: -10px" |
|
|
class="search-container" |
|
|
class="search-container" |
|
|
@value-change="JobVersionValue" |
|
|
@value-change="JobVersionValue" |
|
|
></JobSelectVerson> |
|
|
></JobSelectVerson> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="PurchaseDateValue" |
|
|
|
|
|
clearable |
|
|
|
|
|
style="width: 188px; margin-left: -10px; margin-right: 5px" |
|
|
|
|
|
placeholder="请选择采购日期" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in PurchaseDateList" |
|
|
|
|
|
:key="item.value" |
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
:value="item.value" |
|
|
|
|
|
></el-option> |
|
|
|
|
|
</el-select> |
|
|
<el-button |
|
|
<el-button |
|
|
class="filter-item" |
|
|
class="filter-item" |
|
|
type="success" |
|
|
type="success" |
|
|
icon="el-icon-check" |
|
|
icon="el-icon-check" |
|
|
size="mini" |
|
|
size="mini" |
|
|
@click="print()" |
|
|
@click="handleCreateBills()" |
|
|
>确认出库单</el-button |
|
|
>确认出库单</el-button |
|
|
> |
|
|
> |
|
|
<el-button |
|
|
<el-button |
|
@ -29,17 +34,17 @@ |
|
|
size="mini" |
|
|
size="mini" |
|
|
type="warning" |
|
|
type="warning" |
|
|
icon="el-icon-download" |
|
|
icon="el-icon-download" |
|
|
@click="handleCancelBills()" |
|
|
@click="print()" |
|
|
>取消出库(支持批量) |
|
|
>取消出库(支持批量) |
|
|
</el-button> |
|
|
</el-button> |
|
|
<!-- <el-button |
|
|
<el-button |
|
|
class="filter-item" |
|
|
class="filter-item" |
|
|
size="mini" |
|
|
size="mini" |
|
|
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 |
|
@ -101,6 +106,30 @@ |
|
|
{{ scope.column.label }} |
|
|
{{ scope.column.label }} |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="outputQty" |
|
|
|
|
|
label="出库数量" |
|
|
|
|
|
v-model="outPutQtylist.outputQty" |
|
|
|
|
|
width="100" |
|
|
|
|
|
> |
|
|
|
|
|
<template slot-scope="list"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
size="small" |
|
|
|
|
|
v-model="list.row.outputQty" |
|
|
|
|
|
@change="handleEdit(list.$index, list.row)" |
|
|
|
|
|
></el-input> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
|
|
<template slot-scope="list"> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="primary" |
|
|
|
|
|
v-if="(list.$index = 1)" |
|
|
|
|
|
@click="handle(list.row)" |
|
|
|
|
|
>确定</el-button |
|
|
|
|
|
> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
<div class="table-footer"> |
|
|
<div class="table-footer"> |
|
|
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> |
|
|
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> |
|
@ -145,9 +174,7 @@ |
|
|
<el-button |
|
|
<el-button |
|
|
v-loading="formLoading" |
|
|
v-loading="formLoading" |
|
|
type="primary" |
|
|
type="primary" |
|
|
|
|
|
|
|
|
@click="handleCreateBills()" |
|
|
@click="handleCreateBills()" |
|
|
|
|
|
|
|
|
>确认</el-button |
|
|
>确认</el-button |
|
|
> |
|
|
> |
|
|
</div> |
|
|
</div> |
|
@ -177,13 +204,13 @@ export default { |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
crmType: "kanbanOutOrder", |
|
|
crmType: "sparepartOutOrder", |
|
|
rules: { |
|
|
rules: { |
|
|
//前端定义的规则,后端也有验证 |
|
|
//前端定义的规则,后端也有验证 |
|
|
erpMaterialCode: [ |
|
|
erpMaterialCode: [ |
|
|
{ required: true, message: "必须输入!", trigger: "blur" }, |
|
|
{ required: true, message: "必须输入!", trigger: "blur" }, |
|
|
], |
|
|
], |
|
|
accountDate: [ |
|
|
accountDate: [ |
|
|
{ required: true, message: "日期必须输入!", trigger: "blur" }, |
|
|
{ required: true, message: "日期必须输入!", trigger: "blur" }, |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
@ -208,6 +235,7 @@ export default { |
|
|
{ value: "3", label: "不能出库" }, |
|
|
{ value: "3", label: "不能出库" }, |
|
|
{ value: "4", label: "取消出库" }, |
|
|
{ value: "4", label: "取消出库" }, |
|
|
], |
|
|
], |
|
|
|
|
|
PurchaseDateList: [], |
|
|
// 高级搜索 |
|
|
// 高级搜索 |
|
|
filterObj: { |
|
|
filterObj: { |
|
|
type: Object, |
|
|
type: Object, |
|
@ -232,21 +260,29 @@ export default { |
|
|
version: "", |
|
|
version: "", |
|
|
guids: "", |
|
|
guids: "", |
|
|
billNum: "", |
|
|
billNum: "", |
|
|
accountDate:"" |
|
|
accountDate: "", |
|
|
|
|
|
}, |
|
|
|
|
|
listDeleteQuery: { |
|
|
|
|
|
billNum: "", |
|
|
}, |
|
|
}, |
|
|
page: 1, |
|
|
page: 1, |
|
|
JobversionValue: "", |
|
|
JobversionValue: "", |
|
|
|
|
|
PurchaseDateValue: "", |
|
|
JobversionValueVerson: "", |
|
|
JobversionValueVerson: "", |
|
|
dialogFormVisible: false, |
|
|
dialogFormVisible: false, |
|
|
multipleSelection: [], |
|
|
multipleSelection: [], |
|
|
|
|
|
outPutQtylist: { |
|
|
|
|
|
outputQty: "", |
|
|
|
|
|
taskId: "", |
|
|
|
|
|
}, |
|
|
formTitle: "", |
|
|
formTitle: "", |
|
|
drawer: false, |
|
|
drawer: false, |
|
|
showExcelImport: false, |
|
|
showExcelImport: false, |
|
|
tableHeight: document.documentElement.clientHeight - 230, |
|
|
tableHeight: document.documentElement.clientHeight - 230, |
|
|
isEdit: false, |
|
|
isEdit: false, |
|
|
accountDatelist:{ |
|
|
accountDatelist: { |
|
|
accountDate:"" |
|
|
accountDate: "", |
|
|
} |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
@ -286,20 +322,26 @@ export default { |
|
|
prop: "version", |
|
|
prop: "version", |
|
|
width: 110, |
|
|
width: 110, |
|
|
}); |
|
|
}); |
|
|
|
|
|
tempsTabs.push({ label: "单据号", prop: "billNum", width: 100 }); |
|
|
|
|
|
tempsTabs.push({ label: "物料号", prop: "sapMaterialCode", width: 100 }); |
|
|
tempsTabs.push({ |
|
|
tempsTabs.push({ |
|
|
label: "零件号", |
|
|
label: "物料描述", |
|
|
prop: "materialCode", |
|
|
prop: "materialDesc", |
|
|
width: 150, |
|
|
width: 250, |
|
|
}); |
|
|
}); |
|
|
tempsTabs.push({ label: "零件描述", prop: "materialDesc", width: 250 }); |
|
|
tempsTabs.push({ label: "结算数量", prop: "qty", width: 100 }); |
|
|
tempsTabs.push({ label: "物料组", prop: "materialGroup", width: 220 }); |
|
|
tempsTabs.push({ label: "寄售库存数量", prop: "sockQty", width: 120 }); |
|
|
tempsTabs.push({ label: "交货单号", prop: "wmsBillNum", width: 100 }); |
|
|
tempsTabs.push({ label: "实际数量", prop: "realityNumber", width: 100 }); |
|
|
tempsTabs.push({ label: "数量", prop: "qty", width: 100 }); |
|
|
|
|
|
tempsTabs.push({ label: "状态", prop: "state", width: 100 }); |
|
|
tempsTabs.push({ label: "状态", prop: "state", width: 100 }); |
|
|
return tempsTabs; |
|
|
return tempsTabs; |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
//可获取到编辑的数据 |
|
|
|
|
|
handleEdit(index, row) { |
|
|
|
|
|
console.log(index, row); |
|
|
|
|
|
}, |
|
|
//版本下拉列表选择项 |
|
|
//版本下拉列表选择项 |
|
|
JobVersionValue(params) { |
|
|
JobVersionValue(params) { |
|
|
//版本下拉选择 |
|
|
//版本下拉选择 |
|
@ -314,6 +356,46 @@ export default { |
|
|
this.listQuery.Filters.push(filter); |
|
|
this.listQuery.Filters.push(filter); |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
handle(row) { |
|
|
|
|
|
this.multipleSelection.forEach((element) => { |
|
|
|
|
|
let outPutQty = element.outPutQty; |
|
|
|
|
|
}); |
|
|
|
|
|
if (row.outPutQty > row.sockQty) { |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: "出库数量大于寄售库存,不允许出库!", |
|
|
|
|
|
type: "warning", |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
if (row.branchId != "") { |
|
|
|
|
|
this.listOutPutQuery.branchId = row.id; |
|
|
|
|
|
} |
|
|
|
|
|
if (row.outPutQty != "") { |
|
|
|
|
|
this.listOutPutQuery.outputQty = row.outputQty; |
|
|
|
|
|
} |
|
|
|
|
|
console.log( |
|
|
|
|
|
"大众备件调整结算数量按钮:" + JSON.stringify(this.listOutPutQuery) |
|
|
|
|
|
); |
|
|
|
|
|
//"taskId": "3fa85f64-5717-4562-b3fc-2c963f66afa6","outPutQty": 0 |
|
|
|
|
|
this.$axios |
|
|
|
|
|
.posts( |
|
|
|
|
|
"/api/settleaccount/wmskanbanoutputextend/WmsSharePartOutPutModify", |
|
|
|
|
|
this.listOutPutQuery |
|
|
|
|
|
) |
|
|
|
|
|
.then((response) => { |
|
|
|
|
|
const index = this.list.indexOf(row); |
|
|
|
|
|
this.$notify({ |
|
|
|
|
|
title: "成功", |
|
|
|
|
|
message: "操作成功", |
|
|
|
|
|
type: "success", |
|
|
|
|
|
duration: 2000, |
|
|
|
|
|
}); |
|
|
|
|
|
this.getList(); |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(() => { |
|
|
|
|
|
this.listLoading = false; |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
//取消出库单 |
|
|
//取消出库单 |
|
|
handleCancelBills(row) { |
|
|
handleCancelBills(row) { |
|
|
if (this.multipleSelection.length == 0) { |
|
|
if (this.multipleSelection.length == 0) { |
|
@ -350,7 +432,7 @@ export default { |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
this.$axios |
|
|
this.$axios |
|
|
.posts( |
|
|
.posts( |
|
|
"/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Cancel", |
|
|
"/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Cancel", |
|
|
this.listOutPutQuery |
|
|
this.listOutPutQuery |
|
|
) |
|
|
) |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
@ -373,18 +455,18 @@ export default { |
|
|
}, |
|
|
}, |
|
|
print() { |
|
|
print() { |
|
|
this.dialogFormVisible = true; |
|
|
this.dialogFormVisible = true; |
|
|
if (this.$refs["accountDatelist"] !== undefined) { |
|
|
if (this.$refs["accountDatelist"] !== undefined) { |
|
|
this.$refs["accountDatelist"].resetFields(); |
|
|
this.$refs["accountDatelist"].resetFields(); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
//出库单 |
|
|
//出库单 |
|
|
handleCreateBills(row) { |
|
|
handleCreateBills(row) { |
|
|
this.dialogFormVisible = true; |
|
|
this.dialogFormVisible = true; |
|
|
this.listLoading = true; |
|
|
this.formLoading = true; |
|
|
this.listOutPutQuery.guids = []; |
|
|
this.listOutPutQuery.guids = []; |
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
if (this.accountDatelist.accountDate == "") { |
|
|
if (this.accountDatelist.accountDate == "") { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: "请选择日期!", |
|
|
message: "请选择日期!", |
|
|
type: "warning", |
|
|
type: "warning", |
|
@ -394,8 +476,8 @@ export default { |
|
|
//this.getList(); |
|
|
//this.getList(); |
|
|
} else { |
|
|
} else { |
|
|
if (this.accountDatelist != "") { |
|
|
if (this.accountDatelist != "") { |
|
|
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
} |
|
|
} |
|
|
//this.listOutPutQuery.accountDate = this.accountDatelist; |
|
|
//this.listOutPutQuery.accountDate = this.accountDatelist; |
|
|
console.log( |
|
|
console.log( |
|
|
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) |
|
|
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) |
|
@ -403,7 +485,7 @@ export default { |
|
|
|
|
|
|
|
|
this.$axios |
|
|
this.$axios |
|
|
.posts( |
|
|
.posts( |
|
|
"/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Pass", |
|
|
"/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Pass", |
|
|
this.listOutPutQuery |
|
|
this.listOutPutQuery |
|
|
) |
|
|
) |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
@ -417,55 +499,60 @@ export default { |
|
|
this.accountDatelist.accountDate = ""; |
|
|
this.accountDatelist.accountDate = ""; |
|
|
this.dialogFormVisible = false; |
|
|
this.dialogFormVisible = false; |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
this.listLoading = false; |
|
|
this.formLoading = false; |
|
|
}) |
|
|
}) |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
|
this.listLoading = false; |
|
|
this.formLoading = false; |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
//删除出库单 |
|
|
//删除出库单 |
|
|
// handleDelete(row){ |
|
|
handleDelete(row) { |
|
|
// var params = []; |
|
|
var params = []; |
|
|
// let myalert = ""; //声明变量,其变量必须在此声明后使用 |
|
|
let myalert = ""; //声明变量,其变量必须在此声明后使用 |
|
|
// if (row) { |
|
|
if (row) { |
|
|
// //单行 |
|
|
//单行 |
|
|
// params.push(row.id); |
|
|
params.push(row.id); |
|
|
// myalert = row.name; |
|
|
myalert = row.name; |
|
|
// } else { |
|
|
} else { |
|
|
// //多选 |
|
|
//多选 |
|
|
// this.multipleSelection.forEach((element) => { |
|
|
this.multipleSelection.forEach((element) => { |
|
|
// let id = element.id; |
|
|
let id = element.id; |
|
|
// params.push(id); |
|
|
params.push(id); |
|
|
// }); |
|
|
}); |
|
|
// myalert = "选中项"; |
|
|
myalert = "选中项"; |
|
|
// } |
|
|
} |
|
|
// this.$confirm("是否删除" + myalert + "?", "提示", { |
|
|
this.listDeleteQuery.billNum = this.listQuery.billNum; |
|
|
// confirmButtonText: "确定", |
|
|
console.log("单据号:" + JSON.stringify(this.listDeleteQuery)); |
|
|
// cancelButtonText: "取消", |
|
|
this.$confirm("是否删除" + myalert + "?", "提示", { |
|
|
// type: "warning", |
|
|
confirmButtonText: "确定", |
|
|
// }) |
|
|
cancelButtonText: "取消", |
|
|
// .then(() => { |
|
|
type: "warning", |
|
|
// this.$axios |
|
|
}) |
|
|
// .posts("/api/settleaccount/Job/delete", params) |
|
|
.then(() => { |
|
|
// .then((response) => { |
|
|
this.$axios |
|
|
// const index = this.list.indexOf(row); |
|
|
.posts( |
|
|
// this.$notify({ |
|
|
"/api/settleaccount/wmskanbanoutputextend/WmsOutPutDelete", |
|
|
// title: "成功", |
|
|
this.listDeleteQuery |
|
|
// message: "删除成功", |
|
|
) |
|
|
// type: "success", |
|
|
.then((response) => { |
|
|
// duration: 2000, |
|
|
const index = this.list.indexOf(row); |
|
|
// }); |
|
|
this.$notify({ |
|
|
// this.getList(); |
|
|
title: "成功", |
|
|
// }); |
|
|
message: "删除成功", |
|
|
// }) |
|
|
type: "success", |
|
|
// .catch(() => { |
|
|
duration: 2000, |
|
|
// this.$message({ |
|
|
}); |
|
|
// type: "info", |
|
|
this.getList(); |
|
|
// message: "已取消操作", |
|
|
}); |
|
|
// }); |
|
|
}) |
|
|
// }); |
|
|
.catch(() => { |
|
|
// }, |
|
|
this.$message({ |
|
|
|
|
|
type: "info", |
|
|
|
|
|
message: "已取消操作", |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
/** 刷新列表 */ |
|
|
/** 刷新列表 */ |
|
|
handleHandle(data) { |
|
|
handleHandle(data) { |
|
|
if (data.type !== "edit") { |
|
|
if (data.type !== "edit") { |
|
@ -543,7 +630,7 @@ export default { |
|
|
console.log("查询条件:" + JSON.stringify(this.listQuery)); |
|
|
console.log("查询条件:" + JSON.stringify(this.listQuery)); |
|
|
this.$axios |
|
|
this.$axios |
|
|
.posts( |
|
|
.posts( |
|
|
"/api/settleaccount/wmskanbanoutput/WmsKanbanDetailList", |
|
|
"/api/settleaccount/wmskanbanoutputextend/WmsKanbanDetailList", |
|
|
this.listQuery |
|
|
this.listQuery |
|
|
) |
|
|
) |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
@ -637,7 +724,7 @@ export default { |
|
|
if ( |
|
|
if ( |
|
|
column.property === "fisQty" || |
|
|
column.property === "fisQty" || |
|
|
column.property === "diffQty" || |
|
|
column.property === "diffQty" || |
|
|
column.property === "stockQty" |
|
|
column.property === "sockQty" |
|
|
) { |
|
|
) { |
|
|
return { textAlign: "right" }; |
|
|
return { textAlign: "right" }; |
|
|
} else { |
|
|
} else { |
|
@ -649,7 +736,7 @@ export default { |
|
|
if ( |
|
|
if ( |
|
|
column.property === "fisQty" || |
|
|
column.property === "fisQty" || |
|
|
column.property === "diffQty" || |
|
|
column.property === "diffQty" || |
|
|
column.property === "stockQty" |
|
|
column.property === "sockQty" |
|
|
) { |
|
|
) { |
|
|
return { textAlign: "right", background: "#FAFAFA" }; |
|
|
return { textAlign: "right", background: "#FAFAFA" }; |
|
|
} else { |
|
|
} else { |
|
@ -669,3 +756,4 @@ export default { |
|
|
@import "../../styles/crmtable.scss"; |
|
|
@import "../../styles/crmtable.scss"; |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|