|
|
|
|
@ -308,9 +308,15 @@ |
|
|
|
|
class="dialog-footer" |
|
|
|
|
v-if="outDialogType != 'details'" |
|
|
|
|
> |
|
|
|
|
<el-button @click="handleCloseDetail()">取 消</el-button> |
|
|
|
|
<el-button type="primary" @click="submit(1)">暂存</el-button> |
|
|
|
|
<el-button type="primary" @click="submit(2)">提交</el-button> |
|
|
|
|
<el-button @click="handleCloseDetail()" :loading="saveLoading" |
|
|
|
|
>取 消</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="primary" @click="submit(1)" :loading="saveLoading" |
|
|
|
|
>暂存</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="primary" @click="submit(2)" :loading="saveLoading" |
|
|
|
|
>提交</el-button |
|
|
|
|
> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
<!-- 批量出库 选择数据源弹窗 --> |
|
|
|
|
@ -497,6 +503,7 @@ export default { |
|
|
|
|
quarterYearMap: {}, |
|
|
|
|
quarterQuarterMap: {}, |
|
|
|
|
materials: [], //需求单的物料 |
|
|
|
|
saveLoading: false, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
@ -712,7 +719,6 @@ export default { |
|
|
|
|
}); |
|
|
|
|
if (res.data && res.data.result) { |
|
|
|
|
this.departmentList = res.data.result; |
|
|
|
|
console.log(this.departmentList, "departmentList"); |
|
|
|
|
} else { |
|
|
|
|
this.departmentList = []; |
|
|
|
|
} |
|
|
|
|
@ -799,7 +805,6 @@ export default { |
|
|
|
|
this.inBatchForm.optionType === "YH" ? "易耗品" : "耐用品" |
|
|
|
|
}数据失败:${error.message}` |
|
|
|
|
); |
|
|
|
|
console.error("批量提交接口调用失败:", error); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//获取单条选择的部门名称列表 |
|
|
|
|
@ -916,6 +921,7 @@ export default { |
|
|
|
|
this.sizeForm.optionType = this.inBatchForm.optionType; |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
this.saveLoading = true; |
|
|
|
|
const res = await submitData(this.sizeForm); |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message({ |
|
|
|
|
@ -923,11 +929,14 @@ export default { |
|
|
|
|
message: "提交成功", |
|
|
|
|
}); |
|
|
|
|
this.$emit("submitSuccess"); |
|
|
|
|
this.saveLoading = false; |
|
|
|
|
this.handleCloseDetail(); |
|
|
|
|
} else { |
|
|
|
|
this.saveLoading = false; |
|
|
|
|
this.$message.error(res.data.message || "提交失败"); |
|
|
|
|
} |
|
|
|
|
} catch (error) { |
|
|
|
|
this.saveLoading = false; |
|
|
|
|
this.$message.error(error.message || "服务器错误"); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
@ -936,7 +945,6 @@ export default { |
|
|
|
|
async inInit() { |
|
|
|
|
if (this.outDialogType == "details" || this.outDialogType == "edit") { |
|
|
|
|
editList(this.id).then((res) => { |
|
|
|
|
console.log(res.data.result, "详情数据"); |
|
|
|
|
const { ldOneOutStorage, ldOneOutStorageDetails } = |
|
|
|
|
res.data.result || {}; |
|
|
|
|
// this.sizeForm = res.data.result.ldOneOutStorage |
|
|
|
|
@ -950,7 +958,6 @@ export default { |
|
|
|
|
this.batchSelectionVisible = false; |
|
|
|
|
|
|
|
|
|
if (this.sizeForm.options == 2 && this.sizeForm.optionType == "YH") { |
|
|
|
|
|
|
|
|
|
this.getMaterialList(); |
|
|
|
|
} |
|
|
|
|
this.$set(this.sizeForm, "inTableData", ldOneOutStorageDetails); |
|
|
|
|
|