|
|
@ -58,6 +58,7 @@ |
|
|
|
</c-r-m-table-head> |
|
|
|
</flexbox> |
|
|
|
<!--表格渲染--> |
|
|
|
|
|
|
|
<el-table |
|
|
|
ref="multipleTable" |
|
|
|
v-loading="listLoading" |
|
|
@ -94,18 +95,35 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="OutPutQty" |
|
|
|
prop="outPutQty" |
|
|
|
label="出库数量" |
|
|
|
width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input size="small" v-model="scope.row.deliverytype" @change="handleEdit(scope.$index, scope.row)"></el-input> |
|
|
|
</template> |
|
|
|
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 |
|
|
|
prop="state" |
|
|
|
:formatter="fieldFormatter" |
|
|
|
label="状态" |
|
|
|
width="100"> |
|
|
|
width="100" |
|
|
|
> |
|
|
|
</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> |
|
|
|
<div class="table-footer"> |
|
|
@ -125,7 +143,7 @@ |
|
|
|
:title="formTitle" |
|
|
|
width="700px" |
|
|
|
> |
|
|
|
<el-form |
|
|
|
<el-form |
|
|
|
ref="accountDatelist" |
|
|
|
:inline="true" |
|
|
|
:model="accountDatelist" |
|
|
@ -229,7 +247,7 @@ export default { |
|
|
|
}, //默认查询可用的 |
|
|
|
], |
|
|
|
SkipCount: 0, |
|
|
|
MaxResultCount: 15, |
|
|
|
MaxResultCount: 1000, |
|
|
|
billNum: "", |
|
|
|
}, |
|
|
|
listOutPutQuery: { |
|
|
@ -237,6 +255,8 @@ export default { |
|
|
|
guids: "", |
|
|
|
billNum: "", |
|
|
|
accountDate: "", |
|
|
|
branchId: "", |
|
|
|
outPutQty: "", |
|
|
|
}, |
|
|
|
page: 1, |
|
|
|
JobversionValue: "", |
|
|
@ -244,12 +264,23 @@ export default { |
|
|
|
dialogFormVisible: false, |
|
|
|
multipleSelection: [], |
|
|
|
formTitle: "", |
|
|
|
stockQty: "", |
|
|
|
qty:"", |
|
|
|
drawer: false, |
|
|
|
showExcelImport: false, |
|
|
|
tableHeight: document.documentElement.clientHeight - 230, |
|
|
|
isEdit: false, |
|
|
|
accountDatelist: { |
|
|
|
accountDate: "", |
|
|
|
// materialCode:"", |
|
|
|
// state:"", |
|
|
|
// extend1:"", |
|
|
|
// qty:"", |
|
|
|
// outPutQty:"", |
|
|
|
}, |
|
|
|
outPutQtylist: { |
|
|
|
outPutQty: "", |
|
|
|
taskId: "", |
|
|
|
}, |
|
|
|
}; |
|
|
|
}, |
|
|
@ -305,7 +336,7 @@ export default { |
|
|
|
}); |
|
|
|
tempsTabs.push({ label: "结算零件号", prop: "extend1", width: 220 }); |
|
|
|
//tempsTabs.push({ label: "收货仓库", prop: "extend2", width: 120 }); |
|
|
|
tempsTabs.push({ label: "寄售库存", prop: "StockQty", width: 100 }); |
|
|
|
tempsTabs.push({ label: "寄售库存", prop: "stockQty", width: 100 }); |
|
|
|
tempsTabs.push({ label: "结算数量", prop: "qty", width: 100 }); |
|
|
|
//tempsTabs.push({ label: "状态", prop: "state", width: 100 }); |
|
|
|
|
|
|
@ -313,6 +344,61 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//可获取到编辑的数据 |
|
|
|
handleEdit(index, row) { |
|
|
|
console.log(index, row); |
|
|
|
}, |
|
|
|
// rowstyle({ row, rowIndex }) { |
|
|
|
// console.log(row, rowIndex); |
|
|
|
// let stylejson = {}; |
|
|
|
// if (this.listOutPutQuery.outPutQty>this.stockQty) { |
|
|
|
// stylejson.background = "red";// 背景颜色 |
|
|
|
// return stylejson; |
|
|
|
// } else { |
|
|
|
// return ""; |
|
|
|
// } |
|
|
|
// }, |
|
|
|
handle(row) { |
|
|
|
this.multipleSelection.forEach((element) => { |
|
|
|
let outPutQty=element.outPutQty; |
|
|
|
}); |
|
|
|
if (row.outPutQty > row.stockQty) { |
|
|
|
this.$message({ |
|
|
|
message: "出库数量大于寄售库存,不允许出库!", |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
} else { |
|
|
|
if (row.branchId != "") { |
|
|
|
this.listOutPutQuery.branchId = row.branchId; |
|
|
|
} |
|
|
|
if (row.outPutQty != "") { |
|
|
|
this.listOutPutQuery.outPutQty = row.outPutQty; |
|
|
|
} |
|
|
|
console.log( |
|
|
|
"111111结算数量按钮:" + JSON.stringify(this.listOutPutQuery) |
|
|
|
); |
|
|
|
//"taskId": "3fa85f64-5717-4562-b3fc-2c963f66afa6","outPutQty": 0 |
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/settleaccount/WmsHQHSharePartoutput/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; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
//版本下拉列表选择项 |
|
|
|
JobVersionValue(params) { |
|
|
|
//版本下拉选择 |
|
|
@ -397,6 +483,24 @@ export default { |
|
|
|
if (this.accountDatelist != "") { |
|
|
|
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
|
} |
|
|
|
// if (this.accountDatelist != "") { |
|
|
|
// this.listOutPutQuery.materialCode = this.accountDatelist.materialCode; |
|
|
|
// } |
|
|
|
// if (this.accountDatelist != "") { |
|
|
|
// this.listOutPutQuery.materialGroup = this.accountDatelist.materialGroup; |
|
|
|
// } |
|
|
|
// if (this.accountDatelist != "") { |
|
|
|
// this.listOutPutQuery.extend1 = this.accountDatelist.extend1; |
|
|
|
// } |
|
|
|
// if (this.accountDatelist != "") { |
|
|
|
// this.listOutPutQuery.qty = this.accountDatelist.qty; |
|
|
|
// } |
|
|
|
// if (this.accountDatelist != "") { |
|
|
|
// this.listOutPutQuery.outPutQty = this.accountDatelist.outPutQty; |
|
|
|
// } |
|
|
|
// if (this.accountDatelist != "") { |
|
|
|
// this.listOutPutQuery.state = this.accountDatelist.state; |
|
|
|
// } |
|
|
|
//this.listOutPutQuery.accountDate = this.accountDatelist; |
|
|
|
console.log( |
|
|
|
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) |
|
|
@ -417,6 +521,7 @@ export default { |
|
|
|
}); |
|
|
|
this.getList(); |
|
|
|
this.listLoading = false; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.listLoading = false; |
|
|
|