|
@ -35,6 +35,14 @@ |
|
|
@click="handleCreateBills()" |
|
|
@click="handleCreateBills()" |
|
|
>生成出库单(支持批量)</el-button |
|
|
>生成出库单(支持批量)</el-button |
|
|
> |
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
class="filter-item" |
|
|
|
|
|
type="success" |
|
|
|
|
|
icon="el-icon-check" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
@click="handleConfirm()" |
|
|
|
|
|
>已确认</el-button |
|
|
|
|
|
> |
|
|
</flexbox> |
|
|
</flexbox> |
|
|
</div> |
|
|
</div> |
|
|
<!-- 刷新 --> |
|
|
<!-- 刷新 --> |
|
@ -395,6 +403,7 @@ |
|
|
<el-form-item prop="materialGroupValue"> |
|
|
<el-form-item prop="materialGroupValue"> |
|
|
<el-select |
|
|
<el-select |
|
|
v-model="formCount.materialGroupValue" |
|
|
v-model="formCount.materialGroupValue" |
|
|
|
|
|
class="my-el-select" |
|
|
style="width: 350px;margin-right: 15px" |
|
|
style="width: 350px;margin-right: 15px" |
|
|
size="medium" |
|
|
size="medium" |
|
|
multiple |
|
|
multiple |
|
@ -883,17 +892,65 @@ export default { |
|
|
prop: "remark", |
|
|
prop: "remark", |
|
|
width: 220, |
|
|
width: 220, |
|
|
}); |
|
|
}); |
|
|
// tempsTabs.push({ |
|
|
tempsTabs.push({ |
|
|
// label: "状态", |
|
|
label: "状态", |
|
|
// prop: "stateName", |
|
|
prop: "FileName", |
|
|
// width: 100, |
|
|
width: 100, |
|
|
// }); |
|
|
}); |
|
|
return tempsTabs; |
|
|
return tempsTabs; |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
handleSelectionChange(val) { |
|
|
handleSelectionChange(val) { |
|
|
this.multipleSelection = 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){ |
|
|
handleCreateBills(row){ |
|
@ -1417,7 +1474,6 @@ export default { |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
@import "../../styles/crmtable.scss"; |
|
|
@import "../../styles/crmtable.scss"; |
|
|
@import "../../styles/steps.scss"; |
|
|
@import "../../styles/steps.scss"; |
|
@ -1428,4 +1484,4 @@ export default { |
|
|
border: 0px; |
|
|
border: 0px; |
|
|
box-shadow: none !important; |
|
|
box-shadow: none !important; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |