提交
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
:id="form.versions"
|
||||
:status="form.status"
|
||||
:pageType="routeParams.type"
|
||||
:projectName="routeParams.projectName"
|
||||
/>
|
||||
</el-card>
|
||||
<!-- 表单区域 -->
|
||||
@ -162,7 +163,7 @@ const reset = () => {
|
||||
form.value = { ...initFormData };
|
||||
leaveFormRef.value?.resetFields();
|
||||
};
|
||||
|
||||
const projectId = ref('');
|
||||
/** 获取详情 */
|
||||
const getInfo = () => {
|
||||
loading.value = true;
|
||||
@ -170,6 +171,7 @@ const getInfo = () => {
|
||||
nextTick(async () => {
|
||||
const res = await getVersionDetails(routeParams.value.id);
|
||||
console.log(res);
|
||||
projectId.value = res.data.projectId;
|
||||
Object.assign(form.value, res.data);
|
||||
loading.value = false;
|
||||
buttonLoading.value = false;
|
||||
@ -181,7 +183,7 @@ const sheets = ref([]);
|
||||
const getSheetName = async () => {
|
||||
try {
|
||||
const params = {
|
||||
projectId: currentProject.value?.id,
|
||||
projectId: projectId.value,
|
||||
versions: form.value.versions
|
||||
};
|
||||
const res = await sheetList(params);
|
||||
@ -201,7 +203,7 @@ const changeSheet = () => {
|
||||
//获取列表
|
||||
const getListTable = async () => {
|
||||
const res = await listBillofquantitiesLimitList({
|
||||
projectId: currentProject.value?.id,
|
||||
projectId: projectId.value,
|
||||
versions: form.value.versions,
|
||||
sheet: form.value.sheet
|
||||
});
|
||||
|
Reference in New Issue
Block a user