|
|
@ -35,6 +35,14 @@ |
|
|
|
@click="handleCreateBills()" |
|
|
|
>生成出库单(支持批量)</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
class="filter-item" |
|
|
|
type="success" |
|
|
|
icon="el-icon-check" |
|
|
|
size="mini" |
|
|
|
@click="handleConfirm()" |
|
|
|
>已确认</el-button |
|
|
|
> |
|
|
|
</flexbox> |
|
|
|
</div> |
|
|
|
<!-- 刷新 --> |
|
|
@ -395,6 +403,7 @@ |
|
|
|
<el-form-item prop="materialGroupValue"> |
|
|
|
<el-select |
|
|
|
v-model="formCount.materialGroupValue" |
|
|
|
class="my-el-select" |
|
|
|
style="width: 350px;margin-right: 15px" |
|
|
|
size="medium" |
|
|
|
multiple |
|
|
@ -883,17 +892,65 @@ export default { |
|
|
|
prop: "remark", |
|
|
|
width: 220, |
|
|
|
}); |
|
|
|
// tempsTabs.push({ |
|
|
|
// label: "状态", |
|
|
|
// prop: "stateName", |
|
|
|
// width: 100, |
|
|
|
// }); |
|
|
|
tempsTabs.push({ |
|
|
|
label: "状态", |
|
|
|
prop: "FileName", |
|
|
|
width: 100, |
|
|
|
}); |
|
|
|
return tempsTabs; |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleSelectionChange(val) { |
|
|
|
this.multipleSelection = val; |
|
|
|
}, |
|
|
|
handleConfirm(row){ |
|
|
|
if (this.multipleSelection.length == 0) { |
|
|
|
this.$message({ |
|
|
|
message: "至少选择一行!", |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
var params = []; |
|
|
|
let myalert = ""; //声明变量,其变量必须在此声明后使用 |
|
|
|
if (row) { |
|
|
|
//单行 |
|
|
|
params.push(row.id); |
|
|
|
myalert = row.name; |
|
|
|
} else { |
|
|
|
//多选 |
|
|
|
this.multipleSelection.forEach((element) => { |
|
|
|
let id = element.id; |
|
|
|
params.push(id); |
|
|
|
}); |
|
|
|
myalert = "选中项"; |
|
|
|
} |
|
|
|
this.$confirm("是否确认" + myalert + "?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.$axios |
|
|
|
.posts("/api/settleaccount/wms/WmsJitOutPut", params) |
|
|
|
.then((response) => { |
|
|
|
const index = this.list.indexOf(row); |
|
|
|
this.$notify({ |
|
|
|
title: "成功", |
|
|
|
message: "生成成功", |
|
|
|
type: "success", |
|
|
|
duration: 2000, |
|
|
|
}); |
|
|
|
this.getList(); |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ |
|
|
|
type: "info", |
|
|
|
message: "已取消操作", |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
//出库单 |
|
|
|
handleCreateBills(row){ |
|
|
@ -1417,7 +1474,6 @@ export default { |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
@import "../../styles/crmtable.scss"; |
|
|
|
@import "../../styles/steps.scss"; |
|
|
@ -1428,4 +1484,4 @@ export default { |
|
|
|
border: 0px; |
|
|
|
box-shadow: none !important; |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |