From 7d852a03c2cf669086605e45a4f90c897c9bda36 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 01 八月 2025 10:26:13 +0800 Subject: [PATCH] 1.样式修改 --- src/views/productionManagement/productionReporting/index.vue | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/productionManagement/productionReporting/index.vue b/src/views/productionManagement/productionReporting/index.vue index f65697d..42036f8 100644 --- a/src/views/productionManagement/productionReporting/index.vue +++ b/src/views/productionManagement/productionReporting/index.vue @@ -4,10 +4,12 @@ <el-form :model="searchForm" :inline="true"> <el-form-item label="瀹㈡埛鍚嶇О:"> <el-input v-model="searchForm.customerName" placeholder="璇疯緭鍏�" clearable prefix-icon="Search" + style="width: 200px;" @change="handleQuery" /> </el-form-item> <el-form-item label="椤圭洰鍚嶇О:"> <el-input v-model="searchForm.projectName" placeholder="璇疯緭鍏�" clearable prefix-icon="Search" + style="width: 200px;" @change="handleQuery" /> </el-form-item> <el-form-item label="鎺掍骇鏃ユ湡:"> @@ -17,7 +19,7 @@ <el-form-item label="鐘舵��:"> <el-select v-model="searchForm.status" placeholder="璇烽�夋嫨鐘舵��" style="width: 140px" clearable> <el-option label="寰呯敓浜�" :value="1"></el-option> - <el-option label="宸叉姤宸�" :value="0"></el-option> + <el-option label="宸叉姤宸�" :value="3"></el-option> <el-option label="鐢熶骇涓�" :value="2"></el-option> </el-select> </el-form-item> @@ -109,6 +111,7 @@ size="small" @click="changeEditType(scope.row)" v-if="!scope.row.editType" + :disabled="scope.row.parentStatus === 3" >缂栬緫</el-button > <el-button @@ -168,7 +171,7 @@ prop: "status", dataType: "tag", formatData: (params) => { - if (params == 0) { + if (params == 3) { return "宸叉姤宸�"; } else if (params == 1) { return "寰呯敓浜�"; @@ -177,7 +180,7 @@ } }, formatType: (params) => { - if (params == 0) { + if (params == 3) { return "success"; } else if (params == 1) { return "primary"; @@ -314,7 +317,8 @@ if (index > -1) { expandData.value = res.data.map(item => ({ ...item, - pendingNum: (Number(item.schedulingNum) || 0) - (Number(item.finishedNum) || 0) + pendingNum: (Number(item.schedulingNum) || 0) - (Number(item.finishedNum) || 0), + parentStatus: row.status // 鏂板鐖惰〃鐘舵�� })); } expandedRowKeys.value.push(row.id); -- Gitblit v1.9.3