|
|
@ -226,7 +226,7 @@ export default { |
|
|
|
style="height:100%;" |
|
|
|
/> |
|
|
|
</template> |
|
|
|
<template v-else-if="editFormMode==='export'"> |
|
|
|
<template v-else-if="editFormMode==='compare'"> |
|
|
|
<el-form :model="exportModel" style="height:100%;"> |
|
|
|
<el-form-item label="选择期间" label-width="100px"> |
|
|
|
<el-select v-model="exportModel.version"> |
|
|
@ -235,14 +235,14 @@ export default { |
|
|
|
</el-form-item> |
|
|
|
<template v-if="isNotJit"> |
|
|
|
<el-form-item label="发运日期" label-width="100px"> |
|
|
|
<el-date-picker v-model="exportModel.date1" value-format="YYYY-MM-DD" /> |
|
|
|
<el-date-picker v-model="exportModel.seStartDateTime" value-format="YYYY-MM-DD" /> |
|
|
|
<span style="margin:0 .5em;">-</span> |
|
|
|
<el-date-picker v-model="exportModel.date2" value-format="YYYY-MM-DD" /> |
|
|
|
<el-date-picker v-model="exportModel.seEndDateTime" value-format="YYYY-MM-DD" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="下线日期" label-width="100px"> |
|
|
|
<el-date-picker v-model="exportModel.date3" value-format="YYYY-MM-DD" /> |
|
|
|
<el-date-picker v-model="exportModel.downLineStartDateTime" value-format="YYYY-MM-DD" /> |
|
|
|
<span style="margin:0 .5em;">-</span> |
|
|
|
<el-date-picker v-model="exportModel.date4" value-format="YYYY-MM-DD" /> |
|
|
|
<el-date-picker v-model="exportModel.downLineEndDateTime" value-format="YYYY-MM-DD" /> |
|
|
|
</el-form-item> |
|
|
|
</template> |
|
|
|
<el-form-item label="通用码" label-width="100px"> |
|
|
@ -410,10 +410,10 @@ export default { |
|
|
|
const editFormModel = ref(null); |
|
|
|
const defaultExportModel = { |
|
|
|
version: "", |
|
|
|
date1: "", |
|
|
|
date2: "", |
|
|
|
date3: "", |
|
|
|
date4: "", |
|
|
|
seStartDateTime: "", |
|
|
|
seEndDateTime: "", |
|
|
|
downLineStartDateTime: "", |
|
|
|
downLineEndDateTime: "", |
|
|
|
ln: "", |
|
|
|
pn: "", |
|
|
|
enumBusinessType: route.meta.enumBusinessType, |
|
|
@ -581,17 +581,17 @@ export default { |
|
|
|
if (!response.errors) { |
|
|
|
window.open(getUrl(`settleaccount/getblobfile/download/${response.data}`)); |
|
|
|
} |
|
|
|
} else if (item.meta.isTop) { |
|
|
|
exportModel.value = defaultExportModel; |
|
|
|
versions.value = ( |
|
|
|
await request("settleaccount/centralized-control/get-all", null, { method: "POST" }) |
|
|
|
).data.items.map((o) => ({ |
|
|
|
value: o.version, |
|
|
|
label: o.version, |
|
|
|
})); |
|
|
|
editFormTitle.value = `${t(item.path)}${config.query.schema.title}`; |
|
|
|
dialogVisible.value = true; |
|
|
|
} |
|
|
|
} else if (item.path === "compare") { |
|
|
|
exportModel.value = defaultExportModel; |
|
|
|
versions.value = ( |
|
|
|
await request("settleaccount/centralized-control/get-all", null, { method: "POST" }) |
|
|
|
).data.items.map((o) => ({ |
|
|
|
value: o.version, |
|
|
|
label: o.version, |
|
|
|
})); |
|
|
|
editFormTitle.value = `${t(item.path)}${config.query.schema.title}`; |
|
|
|
dialogVisible.value = true; |
|
|
|
} else if (item.path === "import") { |
|
|
|
//import
|
|
|
|
try { |
|
|
@ -654,7 +654,7 @@ export default { |
|
|
|
} else if (editFormMode.value === "details") { |
|
|
|
dialogVisible.value = false; |
|
|
|
editFormMode.value = null; |
|
|
|
} else if (editFormMode.value === "export") { |
|
|
|
} else if (editFormMode.value === "compare") { |
|
|
|
// const postData = JSON.parse(JSON.stringify(queryModel.value));
|
|
|
|
// postData.filters = filterList.value.filter((o) => o.property && o.value);
|
|
|
|
// delete postData.query["items"];
|
|
|
@ -662,8 +662,8 @@ export default { |
|
|
|
// const url = `${baseUrl}/${editFormMode.value}?${qs.stringify(exportModel)}`;
|
|
|
|
// const response = await post(url, postData);
|
|
|
|
// download(response);
|
|
|
|
const url = config.edit.exportUrl; |
|
|
|
await request(url, exportModel.value, { method: config.edit.exportMethod }); |
|
|
|
const url = config.edit.compareUrl; |
|
|
|
await request(url, exportModel.value, { method: config.edit.compareMethod }); |
|
|
|
dialogVisible.value = false; |
|
|
|
} else if (editFormMode.value === "import") { |
|
|
|
editFormloading.value = true; |
|
|
|