gaoluyang
16 小时以前 affb0876f58e628c31fee12cf8cf7e9f1748142c
src/views/productionManagement/productionReporting/index.vue
@@ -17,7 +17,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 +109,7 @@
                           size="small"
                           @click="changeEditType(scope.row)"
                           v-if="!scope.row.editType"
                           :disabled="scope.row.parentStatus === 3"
                        >编辑</el-button
                        >
                        <el-button
@@ -168,7 +169,7 @@
      prop: "status",
      dataType: "tag",
      formatData: (params) => {
         if (params == 0) {
         if (params == 3) {
            return "已报工";
         } else if (params == 1) {
            return "待生产";
@@ -177,7 +178,7 @@
         }
      },
      formatType: (params) => {
         if (params == 0) {
         if (params == 3) {
            return "success";
         } else if (params == 1) {
            return "primary";
@@ -314,7 +315,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);