liuhairui hace 1 año
padre
commit
f4493e4035
Se han modificado 1 ficheros con 395 adiciones y 461 borrados
  1. 395 461
      src/view/yunyin/shengchanguanli/gongdanshengchan.vue

+ 395 - 461
src/view/yunyin/shengchanguanli/gongdanshengchan.vue

@@ -1,283 +1,286 @@
 <template>
   <div>
     <layout>
-      <layout-sider :resize-directions="['right']" :width="200">
-        <div class="JKWTree-tree" style="height: 746px;">
-          <el-tree :data="treeData" :props="defaultProps" @node-click="handleNodeClick"></el-tree>
-        </div>
-      </layout-sider>
-      <layout-content>
-
-        <el-main>
-          <div class="gva-search-box">
-<!--            弹窗-->
-
-            <!-- 状态设置【弹窗】-->
-            <el-dialog v-model="onstatuslist" title="工单状态设置" width="30%" style="top: 15%">
-              <div style="width: 100%;height: 100%;">
-                <div style="width: 100%; display: flex; align-items: center;">
-                  <el-form-item label="工单编号 :" prop="currentProcess">
-                    <el-input v-model="statusformData['gdbh']" placeholder="" />
-                  </el-form-item>
-                </div>
-                <div style="width: 100%; display: flex; align-items: center; margin-top: 30px;">
-                  <span>状态设置:</span>
-                  <el-radio-group v-model="status" style="margin-left: 10px;">
-                    <el-radio label="计划中">计划中</el-radio>
-                    <el-radio label="生产中">生产中</el-radio>
-                    <el-radio label="已完工">已完工</el-radio>
-                  </el-radio-group>
-                </div>
-                <div class="dialog-footer" style="text-align: right; margin-top: 40px;">
-                  <el-button @click="handleCancel">取消</el-button>
-                  <el-button type="primary"  @click="handleConfirm">确认</el-button>
-                </div>
+      <layout-header>
+        <div class="">
+          <!--          按钮部分-->
+          <el-form ref="elSearchFormRef"  :model="searchInfo" class="demo-form-inline" :rules="searchRule" @keyup.enter="onSubmit">
+            <el-form-item>
+              <!--按钮-->
+              <el-input v-model="searchInfo" placeholder="搜索工单编号" clearable style="width: 180px;"></el-input>
+              <el-button type="primary" icon="search"  @click="onSubmit"></el-button>
+              <div v-if="treeType === 'customTree'">
+                <el-button type="primary" icon="edit" @click="onStatusClick" class="bt">状态设置</el-button>
+                <el-button type="primary" icon="edit" @click="ongxztgzClick" class="bt">工序状态更正</el-button>
+              </div>
+              <div v-else>
+                <el-button type="primary" icon="edit"  @click="onjrpcClick" class="bt">加入排产</el-button>
+                <el-button type="primary" icon="edit"  @click="onztwgClick" class="bt">暂停排产</el-button>
+                <el-button type="primary" icon="edit"  @click="ongxwgClick" class="bt">工序完工</el-button>
+                <!--                <el-button type="primary" icon="edit" disabled @click="onjztzClick" style="margin: 5px">机组调整</el-button>-->
+                <!--                <el-button type="primary" icon="edit" disabled @click="oncjsbpcClick" style="margin: 5px">车间设备排程</el-button>-->
               </div>
-            </el-dialog>
-            <!-- 工序状态更正【弹窗】-->
-            <el-dialog v-model="gxztgzzlist" title="工序状态更正" style="width: 100%;height: 100%;margin: 0px;padding: 0px">
-              <el-button type="" @click="gxztgzzCancel">退出</el-button>
-              <div style="width: 100%; height: 60px; padding: 0px; margin: 10px 0px 0px 0px; display: flex; align-items: center;">
-                <el-form-item label="关键字 :" prop="currentProcess" style="margin-right: 20px; padding: 0px">
-                  <el-input v-model="gxztgzzformData['gdbh']" @keyup.enter="gxztgzzgetProductValue" placeholder="" style="width: 500px;"/>
+              <!--                <el-button type="primary" icon="edit" disabled @click="onprintClick" style="margin: 5px">工单打印</el-button>-->
+              <!--                <el-button type="primary" icon="edit" disabled @click="ongxclhcClick" style="margin: 5px">工序产量核查</el-button>-->
+              <!--                <el-button type="primary" icon="edit" disabled @click="onlcdlistClick" style="margin: 5px">流程单查询</el-button>-->
+            </el-form-item>
+          </el-form>
+
+          <!-- 状态设置【弹窗】-->
+          <el-dialog v-model="onstatuslist" title="工单状态设置" width="30%" style="top: 15%">
+            <div style="width: 100%;height: 100%;">
+              <div style="width: 100%; display: flex; align-items: center;">
+                <el-form-item label="工单编号 :" prop="currentProcess">
+                  <el-input v-model="statusformData['gdbh']" placeholder="" />
                 </el-form-item>
               </div>
-              <el-table ref="multipleTable"
+              <div style="width: 100%; display: flex; align-items: center; margin-top: 30px;">
+                <span>状态设置:</span>
+                <el-radio-group v-model="status" style="margin-left: 10px;">
+                  <el-radio label="计划中">计划中</el-radio>
+                  <el-radio label="生产中">生产中</el-radio>
+                  <el-radio label="已完工">已完工</el-radio>
+                </el-radio-group>
+              </div>
+              <div class="dialog-footer" style="text-align: right; margin-top: 40px;">
+                <el-button @click="handleCancel">取消</el-button>
+                <el-button type="primary"  @click="handleConfirm">确认</el-button>
+              </div>
+            </div>
+          </el-dialog>
+          <!-- 工序状态更正【弹窗】-->
+          <el-dialog v-model="gxztgzzlist" title="工序状态更正" style="width: 100%;height: 100%;margin: 0px;padding: 0px">
+            <el-button type="" @click="gxztgzzCancel">退出</el-button>
+            <div style="width: 100%; height: 60px; padding: 0px; margin: 10px 0px 0px 0px; display: flex; align-items: center;">
+              <el-form-item label="关键字 :" prop="currentProcess" style="margin-right: 20px; padding: 0px">
+                <el-input v-model="gxztgzzformData['gdbh']" @keyup.enter="gxztgzzgetProductValue" placeholder="" style="width: 500px;"/>
+              </el-form-item>
+            </div>
+            <el-table ref="multipleTable"
+                      :show-overflow-tooltip="true"
+                      :row-style="{ height: '0px' }"
+                      :cell-style="{ padding: '0px' }" :header-row-style="{ height: '0px' }"
+                      :header-cell-style="{ padding: '0px' }"
+                      style="width: 100%;height: 710px" border tooltip-effect="dark"
+                      :data="gxztgzztableData" row-key="ID" @selection-change="handleSelectionChange">
+              <el-table-column v-slot="scope" align="left" label=印件及工序 width="600" >
+                <el-input disabled  v-model="scope.row.印件及工序" :clearable="false"/>
+              </el-table-column>
+              <el-table-column v-slot="scope" align="left" label=计划产量/已完成 width="590" >
+                <el-input disabled  v-model="scope.row['计划产量/已完成']" :clearable="false"/>
+              </el-table-column>
+              <el-table-column v-slot="scope" align="left" label=完成率 width="240" >
+                <el-input disabled  v-model="scope.row.完成率" :clearable="false"/>
+              </el-table-column>
+              <el-table-column v-slot="scope" align="left" label=完工时间 width="210" >
+                <el-input disabled  v-model="scope.row.完工时间" :clearable="false"/>
+              </el-table-column>
+              <el-table-column v-slot="scope" align="left" label=设备代号 width="240" >
+                <el-input disabled  v-model="scope.row.设备代号" :clearable="false"/>
+              </el-table-column>
+            </el-table>
+          </el-dialog>
+          <!--加入排产【弹窗】-->
+          <!--暂停完工【弹窗】-->
+          <!--暂停完工【弹窗】-->
+          <!--机组调整【弹窗】-->
+          <!--车间设备排程【弹窗】-->
+          <el-dialog v-model="cjsbpclist" title="车间设备排程" style="width: 100%;height: 100%;margin: 0px;padding: 0px">
+            <el-button type="" icon="edit" @click="oneditpcClick">更新排程</el-button>
+            <el-button type="" @click="cjsbpcCancel">退出</el-button>
+
+            <div style="width: 100%; height: 60px; padding: 0px; margin: 10px 0px 0px 0px; ">
+              <div style="width: 100%; height: 60px; padding: 0px;  display: flex; align-items: center;">
+                <el-form-item label="设备代号 :" prop="currentProcess" style="margin-right: 20px; padding: 0px">
+                  <el-input v-model="cjsbpcformData['sbdh']" disabled placeholder="" />
+                </el-form-item>
+                <el-form-item label="班次选择:" prop="originalName" style="margin-left: 20px;">
+                  <el-select v-model="cjsbpcformData.banci" placeholder="请选择" allow-create filterable>
+                    <el-option
+                        v-for="(option, index) in cjsbpcformData.bancis"
+                        :key="index"
+                        :label="option.label"
+                        :value="option.value"
+                    />
+                  </el-select>
+                </el-form-item>
+                <el-form-item label="" prop="isBanciSelected" style="margin-left: 20px;">
+                  <el-checkbox v-model="cjsbpcformData.isBanciSelected">所有班次</el-checkbox>
+                </el-form-item>
+
+              </div>
+              <el-table ref="paichengRef"
                         :show-overflow-tooltip="true"
                         :row-style="{ height: '0px' }"
                         :cell-style="{ padding: '0px' }" :header-row-style="{ height: '0px' }"
                         :header-cell-style="{ padding: '0px' }"
-                        style="width: 100%;height: 710px" border tooltip-effect="dark"
-                        :data="gxztgzztableData" row-key="ID" @selection-change="handleSelectionChange">
-                <el-table-column v-slot="scope" align="left" label=印件及工序 width="600" >
-                  <el-input disabled  v-model="scope.row.印件及工序" :clearable="false"/>
-                </el-table-column>
-                <el-table-column v-slot="scope" align="left" label=计划产量/已完成 width="590" >
-                  <el-input disabled  v-model="scope.row['计划产量/已完成']" :clearable="false"/>
-                </el-table-column>
-                <el-table-column v-slot="scope" align="left" label=完成率 width="240" >
-                  <el-input disabled  v-model="scope.row.完成率" :clearable="false"/>
-                </el-table-column>
-                <el-table-column v-slot="scope" align="left" label=完工时间 width="210" >
-                  <el-input disabled  v-model="scope.row.完工时间" :clearable="false"/>
-                </el-table-column>
-                <el-table-column v-slot="scope" align="left" label=设备代号 width="240" >
-                  <el-input disabled  v-model="scope.row.设备代号" :clearable="false"/>
-                </el-table-column>
+                        style="width: 100%;height: 74vh" border tooltip-effect="dark"
+                        :data="paichengData" row-key="ID" >
+                <!--                  <el-table-column v-slot="scope" align="left" label=优先次序 width="120" >-->
+                <!--                    <el-input disabled  v-model="scope.row.优先次序" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
+                <!--                  <el-table-column v-slot="scope" align="left" label=工单编号 width="200" >-->
+                <!--                    <el-input disabled  v-model="scope.row.工单编号" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
+                <!--                  <el-table-column v-slot="scope" align="left" label=印件名称 width="220" >-->
+                <!--                    <el-input disabled  v-model="scope.row.印件名称" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
+                <!--                  <el-table-column v-slot="scope" align="left" label=接货数 width="110" >-->
+                <!--                    <el-input disabled  v-model="scope.row.接货数" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
+                <!--                  <el-table-column v-slot="scope" align="left" label=小时产能 width="110" >-->
+                <!--                    <el-input disabled  v-model="scope.row.小时产能" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
+                <!--                  <el-table-column v-slot="scope" align="left" label=产能系数 width="110" >-->
+                <!--                    <el-input disabled  v-model="scope.row.产能系数" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
+                <!--                  <el-table-column v-slot="scope" align="left" label=生产工时 width="110" >-->
+                <!--                    <el-input disabled  v-model="scope.row.生产工时" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
+                <!--                  <el-table-column v-slot="scope" align="left" label=生产工时 width="110" >-->
+                <!--                    <el-input disabled  v-model="scope.row.生产工时" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
+                <!--                  <el-table-column v-slot="scope" align="left" label=辅助工时 width="110" >-->
+                <!--                    <el-input disabled  v-model="scope.row.辅助工时" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
+                <!--                  <el-table-column v-slot="scope" align="left" label=班次安排 width="110" >-->
+                <!--                    <el-input disabled  v-model="scope.row.班次安排" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
+                <!--                  <el-table-column v-slot="scope" align="left" label=排单备注 width="110" >-->
+                <!--                    <el-input disabled  v-model="scope.row.排单备注" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
+                <!--                  <el-table-column v-slot="scope" align="left" label=最早开工时间 width="110" >-->
+                <!--                    <el-input disabled  v-model="scope.row.最早开工时间" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
+                <!--                  <el-table-column v-slot="scope" align="left" label=计划开工时间 width="110" >-->
+                <!--                    <el-input disabled  v-model="scope.row.计划开工时间" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
+                <!--                  <el-table-column v-slot="scope" align="left" label=计划完工时间 width="110" >-->
+                <!--                    <el-input disabled  v-model="scope.row.计划完工时间" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
+                <!--                  <el-table-column v-slot="scope" align="left" label=销售订单号 width="110" >-->
+                <!--                    <el-input disabled  v-model="scope.row.销售订单号" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
+                <!--                  <el-table-column v-slot="scope" align="left" label=印件/工序 width="110" >-->
+                <!--                    <el-input disabled  v-model="scope.row.印件/工序" :clearable="false"/>-->
+                <!--                  </el-table-column>-->
               </el-table>
-            </el-dialog>
-            <!--加入排产【弹窗】-->
-            <!--暂停完工【弹窗】-->
-            <!--暂停完工【弹窗】-->
-            <!--机组调整【弹窗】-->
-            <!--车间设备排程【弹窗】-->
-            <el-dialog v-model="cjsbpclist" title="车间设备排程" style="width: 100%;height: 100%;margin: 0px;padding: 0px">
-              <el-button type="" icon="edit" @click="oneditpcClick">更新排程</el-button>
-              <el-button type="" @click="cjsbpcCancel">退出</el-button>
-
-              <div style="width: 100%; height: 60px; padding: 0px; margin: 10px 0px 0px 0px; ">
-                <div style="width: 100%; height: 60px; padding: 0px;  display: flex; align-items: center;">
-                  <el-form-item label="设备代号 :" prop="currentProcess" style="margin-right: 20px; padding: 0px">
-                    <el-input v-model="cjsbpcformData['sbdh']" disabled placeholder="" />
-                  </el-form-item>
-                  <el-form-item label="班次选择:" prop="originalName" style="margin-left: 20px;">
-                    <el-select v-model="cjsbpcformData.banci" placeholder="请选择" allow-create filterable>
-                      <el-option
-                          v-for="(option, index) in cjsbpcformData.bancis"
-                          :key="index"
-                          :label="option.label"
-                          :value="option.value"
-                      />
-                    </el-select>
-                  </el-form-item>
-                  <el-form-item label="" prop="isBanciSelected" style="margin-left: 20px;">
-                    <el-checkbox v-model="cjsbpcformData.isBanciSelected">所有班次</el-checkbox>
-                  </el-form-item>
-
-                </div>
-                <el-table ref="paichengRef"
-                          :show-overflow-tooltip="true"
-                          :row-style="{ height: '0px' }"
-                          :cell-style="{ padding: '0px' }" :header-row-style="{ height: '0px' }"
-                          :header-cell-style="{ padding: '0px' }"
-                          style="width: 100%;height: 74vh" border tooltip-effect="dark"
-                          :data="paichengData" row-key="ID" >
-<!--                  <el-table-column v-slot="scope" align="left" label=优先次序 width="120" >-->
-<!--                    <el-input disabled  v-model="scope.row.优先次序" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-<!--                  <el-table-column v-slot="scope" align="left" label=工单编号 width="200" >-->
-<!--                    <el-input disabled  v-model="scope.row.工单编号" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-<!--                  <el-table-column v-slot="scope" align="left" label=印件名称 width="220" >-->
-<!--                    <el-input disabled  v-model="scope.row.印件名称" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-<!--                  <el-table-column v-slot="scope" align="left" label=接货数 width="110" >-->
-<!--                    <el-input disabled  v-model="scope.row.接货数" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-<!--                  <el-table-column v-slot="scope" align="left" label=小时产能 width="110" >-->
-<!--                    <el-input disabled  v-model="scope.row.小时产能" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-<!--                  <el-table-column v-slot="scope" align="left" label=产能系数 width="110" >-->
-<!--                    <el-input disabled  v-model="scope.row.产能系数" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-<!--                  <el-table-column v-slot="scope" align="left" label=生产工时 width="110" >-->
-<!--                    <el-input disabled  v-model="scope.row.生产工时" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-<!--                  <el-table-column v-slot="scope" align="left" label=生产工时 width="110" >-->
-<!--                    <el-input disabled  v-model="scope.row.生产工时" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-<!--                  <el-table-column v-slot="scope" align="left" label=辅助工时 width="110" >-->
-<!--                    <el-input disabled  v-model="scope.row.辅助工时" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-<!--                  <el-table-column v-slot="scope" align="left" label=班次安排 width="110" >-->
-<!--                    <el-input disabled  v-model="scope.row.班次安排" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-<!--                  <el-table-column v-slot="scope" align="left" label=排单备注 width="110" >-->
-<!--                    <el-input disabled  v-model="scope.row.排单备注" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-<!--                  <el-table-column v-slot="scope" align="left" label=最早开工时间 width="110" >-->
-<!--                    <el-input disabled  v-model="scope.row.最早开工时间" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-<!--                  <el-table-column v-slot="scope" align="left" label=计划开工时间 width="110" >-->
-<!--                    <el-input disabled  v-model="scope.row.计划开工时间" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-<!--                  <el-table-column v-slot="scope" align="left" label=计划完工时间 width="110" >-->
-<!--                    <el-input disabled  v-model="scope.row.计划完工时间" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-<!--                  <el-table-column v-slot="scope" align="left" label=销售订单号 width="110" >-->
-<!--                    <el-input disabled  v-model="scope.row.销售订单号" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-<!--                  <el-table-column v-slot="scope" align="left" label=印件/工序 width="110" >-->
-<!--                    <el-input disabled  v-model="scope.row.印件/工序" :clearable="false"/>-->
-<!--                  </el-table-column>-->
-                </el-table>
+            </div>
+
+          </el-dialog>
+          <!--工单打印【弹窗】-->
+          <!--工序产量核查【弹窗】-->
+          <el-dialog v-model="gxclhclist" title="工序产量核查" style="width: 100%;height: 100%;margin: 0px;padding: 0px">
+            <el-button type="" @click="gxclhcCancel">退出</el-button>
+
+            <div style="width: 100%; height: 60px; padding: 0px; margin: 10px 0px 0px 0px; display: flex; align-items: center;">
+              <div style="width: 100%; height: 60px; padding: 0px;  display: flex; align-items: center;">
+                <el-form-item label="工单编号" prop="currentProcess" style="margin-right: 20px; padding: 0px">
+                  <el-input v-model="gxclhcformData['gdbh']"  @keyup.enter="gxclhcProductValue" placeholder="" />
+                </el-form-item>
+                <el-form-item label="" prop="currentProcess" style="margin-right: 20px; padding: 0px">
+                  <el-input v-model="gxclhcformData['gdmc']" disabled placeholder="" style="width: 340px;"/>
+                </el-form-item>
               </div>
+            </div>
 
-            </el-dialog>
-            <!--工单打印【弹窗】-->
-            <!--工序产量核查【弹窗】-->
-            <el-dialog v-model="gxclhclist" title="工序产量核查" style="width: 100%;height: 100%;margin: 0px;padding: 0px">
-              <el-button type="" @click="gxclhcCancel">退出</el-button>
-
-              <div style="width: 100%; height: 60px; padding: 0px; margin: 10px 0px 0px 0px; display: flex; align-items: center;">
-                <div style="width: 100%; height: 60px; padding: 0px;  display: flex; align-items: center;">
-                  <el-form-item label="工单编号" prop="currentProcess" style="margin-right: 20px; padding: 0px">
-                    <el-input v-model="gxclhcformData['gdbh']"  @keyup.enter="gxclhcProductValue" placeholder="" />
-                  </el-form-item>
-                  <el-form-item label="" prop="currentProcess" style="margin-right: 20px; padding: 0px">
-                    <el-input v-model="gxclhcformData['gdmc']" disabled placeholder="" style="width: 340px;"/>
-                  </el-form-item>
-                </div>
-              </div>
+          </el-dialog>
 
-            </el-dialog>
-
-            <el-form ref="elSearchFormRef"  :model="searchInfo" class="demo-form-inline" :rules="searchRule" @keyup.enter="onSubmit">
-              <el-form-item>
-                <!--按钮-->
-                <el-input v-model="searchInfo" placeholder="搜索" clearable style="width: 200px;"></el-input>
-                <el-button type="primary" icon="search" disabled @click="onSubmit" style="margin: 5px 5px 5px 10px">查询</el-button>
-                <div v-if="treeType === 'customTree'">
-                  <el-button type="primary" icon="edit" @click="onStatusClick" style="margin: 5px">状态设置</el-button>
-                  <el-button type="primary" icon="edit" @click="ongxztgzClick" style="margin: 5px">工序状态更正</el-button>
-                </div>
-                <div v-else>
-                <el-button type="primary" icon="edit"  @click="onjrpcClick" style="margin: 5px">加入排产</el-button>
-                <el-button type="primary" icon="edit"  @click="onztwgClick" style="margin: 5px">暂停排产</el-button>
-                <el-button type="primary" icon="edit"  @click="ongxwgClick" style="margin: 5px">工序完工</el-button>
-<!--                <el-button type="primary" icon="edit" disabled @click="onjztzClick" style="margin: 5px">机组调整</el-button>-->
-<!--                <el-button type="primary" icon="edit" disabled @click="oncjsbpcClick" style="margin: 5px">车间设备排程</el-button>-->
-                </div>
-<!--                <el-button type="primary" icon="edit" disabled @click="onprintClick" style="margin: 5px">工单打印</el-button>-->
-<!--                <el-button type="primary" icon="edit" disabled @click="ongxclhcClick" style="margin: 5px">工序产量核查</el-button>-->
-<!--                <el-button type="primary" icon="edit" disabled @click="onlcdlistClick" style="margin: 5px">流程单查询</el-button>-->
-              </el-form-item>
-            </el-form>
-          </div>
+        </div>
+      </layout-header>
 
-          <div class="gva-table-box"  v-if="treeType === 'customTree'">
-            <el-table ref="multipleTable" style="width: 100%;height: 30vh"
-                      :row-style="{ height: '20px' }" :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
-                      :header-cell-style="{ padding: '0px' }" border
-                      tooltip-effect="dark" :data="tableData" row-key="ID"
-                      :highlight-current-row="true" size="small" @row-click="gdtableRowClick"
-                      @selection-change="handleSelectionChange" :show-overflow-tooltip="true">
-              <template v-for="item in tableFields[currentNode]">
-                  <el-table-column :align="item.align" :label="item.title" :prop="item.prop" :width="item.width" />
-              </template>
-            </el-table>
+      <layout>
+        <layout-sider :resize-directions="['right']" :width="190" style="margin-right: 10px;">
+          <div class="JKWTree-tree" style="height: 200px">
+            <el-tree :data="treeData" :props="defaultProps" @node-click="handleNodeClick"></el-tree>
           </div>
-
-          <el-tabs v-model="activeName" type="card" @tab-click="handleClick" v-if="(currentNode == '计划中' || currentNode == '已完工') &&  treeType === 'customTree'">
-            <el-tab-pane label="工艺资料"  @click="showTable('工艺资料')"  name="first">
-              <el-table ref="multipleTable" :show-overflow-tooltip="true" :row-style="{ height: '20px' }"
-                        :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
-                        :header-cell-style="{ padding: '0px' }" highlight-current-row="true"
-                        style="width: 100%;height: 400px" border tooltip-effect="dark" :data="gytableData" row-key="ID" @selection-change="handleSelectionChange">
-                <el-table-column align="left" label="工单编号" prop="工单编号"  width="90"/>
-                <el-table-column align="left" label="重点工序" prop="重点工序"  width="90"/>
-                <el-table-column align="left" label="印件工序及名称" prop="印件工序及名称"  width="500"/>
-                <el-table-column align="left" label="工序备注" prop="工序备注"  width="150"/>
-                <el-table-column align="left" label="机组" prop="机组"  width="80"/>
-                <el-table-column align="left" label="小时产能" prop="小时产能"  width="90"/>
-                <el-table-column align="left" label="生产工时" prop="生产工时"  width="90"/>
-                <el-table-column align="left" label="辅助工时" prop="辅助工时"  width="90"/>
-                <el-table-column align="left" label="印刷方式" prop="印刷方式"  width="90"/>
-                <el-table-column align="left" label="版距" prop="版距"  width="70"/>
-                <el-table-column align="left" label="创建用户" prop="创建用户"  width="100"/>
-                <el-table-column align="left" label="创建时间" prop="创建时间"  width="110"/>
-                <el-table-column align="left" label="修改时间" prop="修改时间"  width="110"/>
-                <el-table-column align="left" label="UNIQID" prop="UNIQID"  width="90"/>
+        </layout-sider>
+        <layout-content>
+          <el-main>
+
+            <div class="gva-table-box"  v-if="treeType === 'customTree'">
+              <el-table ref="multipleTable" style="width: 100%;height: 25vh"
+                        :row-style="{ height: '20px' }" :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
+                        :header-cell-style="{ padding: '0px' }" border
+                        tooltip-effect="dark" :data="tableData" row-key="ID"
+                        :highlight-current-row="true" size="small" @row-click="gdtableRowClick"
+                        @selection-change="handleSelectionChange" :show-overflow-tooltip="true">
+                <template v-for="item in tableFields[currentNode]">
+                  <el-table-column :align="item.align" :label="item.title" :prop="item.prop" :width="item.width" />
+                </template>
               </el-table>
-            </el-tab-pane>
+            </div>
+
+            <el-tabs v-model="activeName" @tab-click="handleClick" v-if="(currentNode == '计划中' || currentNode == '已完工') &&  treeType === 'customTree'">
+              <el-tab-pane label="工艺资料"  @click="showTable('工艺资料')"  name="first">
+                <el-table ref="multipleTable" :show-overflow-tooltip="true" :row-style="{ height: '20px' }"
+                          :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
+                          :header-cell-style="{ padding: '0px' }" highlight-current-row="true"
+                          style="width: 100%;height: 40vh" border tooltip-effect="dark" :data="gytableData" row-key="ID" @selection-change="handleSelectionChange">
+                  <el-table-column align="left" label="工单编号" prop="工单编号"  width="90"/>
+                  <el-table-column align="left" label="重点工序" prop="重点工序"  width="90"/>
+                  <el-table-column align="left" label="印件工序及名称" prop="印件工序及名称"  width="500"/>
+                  <el-table-column align="left" label="工序备注" prop="工序备注"  width="150"/>
+                  <el-table-column align="left" label="机组" prop="机组"  width="80"/>
+                  <el-table-column align="left" label="小时产能" prop="小时产能"  width="90"/>
+                  <el-table-column align="left" label="生产工时" prop="生产工时"  width="90"/>
+                  <el-table-column align="left" label="辅助工时" prop="辅助工时"  width="90"/>
+                  <el-table-column align="left" label="印刷方式" prop="印刷方式"  width="90"/>
+                  <el-table-column align="left" label="版距" prop="版距"  width="70"/>
+                  <el-table-column align="left" label="创建用户" prop="创建用户"  width="100"/>
+                  <el-table-column align="left" label="创建时间" prop="创建时间"  width="110"/>
+                  <el-table-column align="left" label="修改时间" prop="修改时间"  width="110"/>
+                  <el-table-column align="left" label="UNIQID" prop="UNIQID"  width="90"/>
+                </el-table>
+              </el-tab-pane>
+
+              <el-tab-pane label="印件资料"  @click="showTable('印件资料')"  name="second">
+                <el-table ref="multipleTable" :row-style="{ height: '20px' }"
+                          :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
+                          :header-cell-style="{ padding: '0px' }" :show-overflow-tooltip="true"
+                          :highlight-current-row="true"
+                          style="width: 100%;height: 40vh" border tooltip-effect="dark" :data="yjtableData" row-key="ID" @selection-change="handleSelectionChange">
+                  <el-table-column align="left" label="工单编号" prop="工单编号"  width="90"/>
+                  <el-table-column align="left" label="印件号" prop="印件号"  width="70"/>
+                  <el-table-column align="left" label="印件代号" prop="印件代号"  width="100"/>
+                  <el-table-column align="left" label="印件名称" prop="印件名称"  width="240"/>
+                  <el-table-column align="left" label="纸张名称" prop="纸张名称"  width="230"/>
+                  <el-table-column align="left" label="投料规格" prop="投料规格"  width="100"/>
+                  <el-table-column align="left" label="成品数量" prop="成品数量"  width="90"/>
+                  <el-table-column align="left" label="实际投料" prop="实际投料"  width="90"/>
+                  <el-table-column align="left" label="投料单位" prop="投料单位"  width="85"/>
+                  <el-table-column align="left" label="平张投料" prop="平张投料"  width="90"/>
+                  <el-table-column align="left" label="联数" prop="联数"  width="70"/>
+                  <el-table-column align="left" label="开数" prop="开数"  width="70"/>
+                  <el-table-column align="left" label="创建用户" prop="创建用户"  width="110"/>
+                  <el-table-column align="left" label="创建时间" prop="创建时间"  width="110"/>
+                  <el-table-column align="left" label="修改时间" prop="修改时间"  width="110"/>
+                  <el-table-column align="left" label="UNIQID" prop="UNIQID"  width="90"/>
+                </el-table>
+              </el-tab-pane>
+            </el-tabs>
 
-            <el-tab-pane label="印件资料"  @click="showTable('印件资料')"  name="second">
-              <el-table ref="multipleTable" :row-style="{ height: '20px' }"
+            <div v-if="treeType === 'customTree'">
+              <el-table ref="multipleTable2"
+                        v-if="['排程中', '制程中'].includes(currentNode)"
+                        :show-overflow-tooltip="true" :row-style="{ height: '20px' }"
                         :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
-                        :header-cell-style="{ padding: '0px' }" :show-overflow-tooltip="true"
-                        :highlight-current-row="true"
-                        style="width: 100%;height: 400px" border tooltip-effect="dark" :data="yjtableData" row-key="ID" @selection-change="handleSelectionChange">
-                <el-table-column align="left" label="工单编号" prop="工单编号"  width="90"/>
-                <el-table-column align="left" label="印件号" prop="印件号"  width="70"/>
-                <el-table-column align="left" label="印件代号" prop="印件代号"  width="100"/>
-                <el-table-column align="left" label="印件名称" prop="印件名称"  width="240"/>
-                <el-table-column align="left" label="纸张名称" prop="纸张名称"  width="230"/>
-                <el-table-column align="left" label="投料规格" prop="投料规格"  width="100"/>
-                <el-table-column align="left" label="成品数量" prop="成品数量"  width="90"/>
-                <el-table-column align="left" label="实际投料" prop="实际投料"  width="90"/>
-                <el-table-column align="left" label="投料单位" prop="投料单位"  width="85"/>
-                <el-table-column align="left" label="平张投料" prop="平张投料"  width="90"/>
-                <el-table-column align="left" label="联数" prop="联数"  width="70"/>
-                <el-table-column align="left" label="开数" prop="开数"  width="70"/>
-                <el-table-column align="left" label="创建用户" prop="创建用户"  width="110"/>
-                <el-table-column align="left" label="创建时间" prop="创建时间"  width="110"/>
-                <el-table-column align="left" label="修改时间" prop="修改时间"  width="110"/>
-                <el-table-column align="left" label="UNIQID" prop="UNIQID"  width="90"/>
+                        :header-cell-style="{ padding: '0px' }" :highlight-current-row="true"
+                        style="width: 100%;height: 40vh" border tooltip-effect="dark" :data="bottomData" row-key="ID" @selection-change="handleSelectionChange">
+                <template v-for="item in bottomTableF[currentNode]">
+                  <el-table-column :align="item.align" :label="item.title" :prop="item.prop" :width="item.width" />
+                </template>
               </el-table>
-            </el-tab-pane>
-          </el-tabs>
-
-          <div v-if="treeType === 'customTree'">
-            <el-table ref="multipleTable2"
-                      v-if="['排程中', '制程中'].includes(currentNode)"
-                      :show-overflow-tooltip="true" :row-style="{ height: '20px' }"
-                      :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
-                      :header-cell-style="{ padding: '0px' }" :highlight-current-row="true"
-                      style="width: 100%;height: 40vh" border tooltip-effect="dark" :data="bottomData" row-key="ID" @selection-change="handleSelectionChange">
-              <template v-for="item in bottomTableF[currentNode]">
-                <el-table-column :align="item.align" :label="item.title" :prop="item.prop" :width="item.width" />
-              </template>
-            </el-table>
-          </div>
+            </div>
 
-          <div v-if="treeType === 'dataTree'">
-            <el-table ref="chejianRef"
-                      :show-overflow-tooltip="true" :row-style="{ height: '20px' }"
-                      :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
-                      :header-cell-style="{ padding: '0px' }" :highlight-current-row="true"  @row-click="chejianRowClick"
-                      style="width: 100%;height: 40vh" border tooltip-effect="dark" :data="chejianData" row-key="ID" @selection-change="PC_handleChange">
-              <el-table-column type="selection" width="55" />
-              <template v-for="item in [
+            <div v-if="treeType === 'dataTree'">
+              <el-table ref="chejianRef"
+                        :show-overflow-tooltip="true" :row-style="{ height: '20px' }"
+                        :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
+                        :header-cell-style="{ padding: '0px' }" :highlight-current-row="true"  @row-click="chejianRowClick"
+                        style="width: 100%;height: 40vh" border tooltip-effect="dark" :data="chejianData" row-key="ID" @selection-change="PC_handleChange">
+                <el-table-column type="selection" width="55" />
+                <template v-for="item in [
                   { align:'center', title: '工单编号', prop: '工单编号', width: 160  },
                   { align:'center', title: '销售订单号', prop: '销售订单号', width: 200  },
                   { align:'center', title: '印件名称', prop: '印件名称', width: 320  },
@@ -296,16 +299,16 @@
                   { align:'center', title: '印件号', prop: '印件号', width: 100  },
                   { align:'center', title: '工序号', prop: '工序号', width: 100  },
               ]">
-                <el-table-column :align="item.align" :label="item.title" :prop="item.prop" :width="item.width" />
-              </template>
-            </el-table>
-            <el-table ref="chejianfuRef"
-                      :show-overflow-tooltip="true" :row-style="{ height: '20px' }"
-                      :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
-                      :header-cell-style="{ padding: '0px' }" :highlight-current-row="true"  @row-click="chejianfuRowClick"
-                      style="width: 100%;height: 40vh;margin-top: 10px" border tooltip-effect="dark" :data="chejianfuData" row-key="ID" @selection-change="ZP_handleChange">
-              <el-table-column type="selection" width="55" />
-              <template v-for="item in [
+                  <el-table-column :align="item.align" :label="item.title" :prop="item.prop" :width="item.width" />
+                </template>
+              </el-table>
+              <el-table ref="chejianfuRef"
+                        :show-overflow-tooltip="true" :row-style="{ height: '20px' }"
+                        :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
+                        :header-cell-style="{ padding: '0px' }" :highlight-current-row="true"  @row-click="chejianfuRowClick"
+                        style="width: 100%;height: 40vh;margin-top: 10px" border tooltip-effect="dark" :data="chejianfuData" row-key="ID" @selection-change="ZP_handleChange">
+                <el-table-column type="selection" width="55" />
+                <template v-for="item in [
                   { align:'center', title: '工单编号', prop: '工单编号', width: 160  },
                   { align:'center', title: '销售订单号', prop: '销售订单号', width: 200  },
                   { align:'center', title: '印件名称', prop: '印件名称', width: 320  },
@@ -334,12 +337,14 @@
                   { align:'center', title: '印件号', prop: '印件号', width: 100  },
                   { align:'center', title: '工序号', prop: '工序号', width: 100  },
               ]">
-                <el-table-column :align="item.align" :label="item.title" :prop="item.prop" :width="item.width" />
-              </template>
-            </el-table>
-          </div>
-        </el-main>
-      </layout-content>
+                  <el-table-column :align="item.align" :label="item.title" :prop="item.prop" :width="item.width" />
+                </template>
+              </el-table>
+            </div>
+          </el-main>
+        </layout-content>
+
+      </layout>
     </layout>
   </div>
 </template>
@@ -377,7 +382,7 @@ import { ref, reactive } from 'vue'
 import {
   DataList, getProduct, getProductData,scheduleProcess,ProductionSchedulingAdd,
   Project, StatusEdit, EquipmentScheduling, ScheduleSelection,MachineWorkOrderList,
-  projectCraft, ProcessStatusCorrection,WorkOrderSearch,ProductionSchedulingPause,
+  projectCraft, ProcessStatusCorrection,ProductionSchedulingPause,
   projectPrint, setProductStatus, workbench, ProcessFlow, Schedule,complete
 } from "@/api/yunyin/yunying";
 defineOptions({name: 'Company'})
@@ -521,9 +526,9 @@ const bottomTableF = ref({
 const treeData = ref([]);
 //默认显示计划中表格
 const currentNode = ref("计划中")
-//生产中、已完工下方印件资料
+//计划中、已完工下方印件资料
 const yjtableData = ref([])
-//生产中、已完工下方工艺资料
+//计划中、已完工下方工艺资料
 const gytableData = ref([])
 //排程中、制程中下方表格
 const bottomData = ref([])
@@ -535,9 +540,11 @@ const schandleNodeClick = async (node) => {
   gytableData.value = []
   switch (node.number) {
     case "计划中":
-      const Projectdata = await Project({status:currentNode.value});
-      for (let i = 0; i < Projectdata.data.length; i++) {
-        const item = Projectdata.data[i];
+      console.log(currentNode.value)
+      const jhz_Projectdata = await Project({status:currentNode.value});
+      console.log(jhz_Projectdata)
+      for (let i = 0; i < jhz_Projectdata.data.length; i++) {
+        const item = jhz_Projectdata.data[i];
         if (item.status === 0) {
           item.statusColumn = "*";
         }
@@ -546,20 +553,26 @@ const schandleNodeClick = async (node) => {
           item.statusColumn = "";
         }
       }
-      tableData.value = Projectdata.data;
+      tableData.value = jhz_Projectdata.data;
       break;
     case "排程中":
-      const pc_Scheduledata = await Schedule({status:currentNode.value});
-      tableData.value = pc_Scheduledata.data;
+      console.log(currentNode.value)
+      //  /Manufacture/Schedule
+      const pc_Schedule = await Schedule({status:currentNode.value,search:''});
+      console.log(pc_Schedule)
+      tableData.value = pc_Schedule.data;
       break;
     case "制程中":
-      const zc_Scheduledata = await Schedule({status:currentNode.value});
-      tableData.value = zc_Scheduledata.data;
+      console.log(currentNode.value)
+      const zc_Schedule = await Schedule({status:currentNode.value,search:''});
+      console.log(zc_Schedule)
+      tableData.value = zc_Schedule.data;
       break;
     case "已完工":
-      const ywg_Projectdata = await Project({status:currentNode.value});
-      for (let i = 0; i < ywg_Projectdata.data.length; i++) {
-        const item = ywg_Projectdata.data[i];
+      console.log(currentNode.value)
+      const ywg_Project = await Project({status:currentNode.value});
+      for (let i = 0; i < ywg_Project.data.length; i++) {
+        const item = ywg_Project.data[i];
         // 如果 status 为 0,在某一列(比如 statusColumn)中添加 "*"
         if (item.status === 0) {
           item.statusColumn = "*";
@@ -630,162 +643,12 @@ const gdtableRowClick = async (row) => {
 
   if (currentNode.value == "已完工") {
     //工艺资料
-    // const ywg_gyres = await projectCraft({Gd_gdbh: _Gd_gdbh.value});
-    // gytableData.value.splice(0, gytableData.value.length, ...ywg_gyres.data);
-    gytableData.value = [
-      {
-        '工单编号' : '2401717',
-        '重点工序' : '',
-        '印件工序及名称' : '01-01-->胶印 〖白1、白2【预干】、专红1、专红2、K、底金【预干】+联机柔版UV光油〗',
-        '工序备注' : '',
-        '机组' : 'JY03#',
-        '小时产能' : '10000',
-        '生产工时' : '0.6',
-        '辅助工时' : '6',
-        '印刷方式' : '',
-        '版距' : '',
-        '创建用户' : '[1012/刘玲]',
-        '创建时间' : '2024.01.09 12:59:41',
-        '修改时间' : '',
-        'UNIQID' : '264926',
-      },
-      {
-        '工单编号' : '2401717',
-        '重点工序' : '',
-        '印件工序及名称' : '01-02-->烫金〖(J13竖纹镭射金)〗',
-        '工序备注' : '',
-        '机组' : 'TJ13#',
-        '小时产能' : '5000',
-        '生产工时' : '1',
-        '辅助工时' : '6',
-        '印刷方式' : '',
-        '版距' : '',
-        '创建用户' : '[1012/刘玲]',
-        '创建时间' : '2024.01.09 12:59:41',
-        '修改时间' : '',
-        'UNIQID' : '264927',
-      },
-      {
-        '工单编号' : '2401717',
-        '重点工序' : '',
-        '印件工序及名称' : '01-03-->喷码',
-        '工序备注' : '',
-        '机组' : 'JY03#',
-        '小时产能' : '5000',
-        '生产工时' : '1.1',
-        '辅助工时' : '6',
-        '印刷方式' : '',
-        '版距' : '',
-        '创建用户' : '[1012/刘玲]',
-        '创建时间' : '2024.01.09 12:59:41',
-        '修改时间' : '',
-        'UNIQID' : '264928',
-      },
-      {
-        '工单编号' : '2401717',
-        '重点工序' : '',
-        '印件工序及名称' : '01-04-->丝印 〖细雪花〗',
-        '工序备注' : '',
-        '机组' : 'SY07#',
-        '小时产能' : '5000',
-        '生产工时' : '1.1',
-        '辅助工时' : '2',
-        '印刷方式' : '',
-        '版距' : '',
-        '创建用户' : '[1012/刘玲]',
-        '创建时间' : '2024.01.09 12:59:41',
-        '修改时间' : '',
-        'UNIQID' : '264929',
-      },
-      {
-        '工单编号' : '2401717',
-        '重点工序' : '',
-        '印件工序及名称' : '01-05-->丝印 〖防伪〗',
-        '工序备注' : '',
-        '机组' : 'SY09#',
-        '小时产能' : '3000',
-        '生产工时' : '2.3',
-        '辅助工时' : '2',
-        '印刷方式' : '',
-        '版距' : '',
-        '创建用户' : '[1012/刘玲]',
-        '创建时间' : ' 2024.01.09 12:59:41',
-        '修改时间' : '',
-        'UNIQID' : '264930',
-      },
-      {
-        '工单编号' : '2401717',
-        '重点工序' : '',
-        '印件工序及名称' : '01-06-->凹凸(压纹)〖凹凸〗',
-        '工序备注' : '',
-        '机组' : 'MQ03#',
-        '小时产能' : '5500',
-        '生产工时' : '1.1',
-        '辅助工时' : '5',
-        '印刷方式' : '',
-        '版距' : '',
-        '创建用户' : '[1012/刘玲]',
-        '创建时间' : '2024.01.09 12:59:41',
-        '修改时间' : '',
-        'UNIQID' : '264931',
-      },
-      {
-        '工单编号' : '2401717',
-        '重点工序' : '',
-        '印件工序及名称' : '01-07-->模切',
-        '工序备注' : '',
-        '机组' : 'MQ03#',
-        '小时产能' : '6500',
-        '生产工时' : '1.1',
-        '辅助工时' : '6',
-        '印刷方式' : '',
-        '版距' : '',
-        '创建用户' : '[1012/刘玲]',
-        '创建时间' : '2024.01.09 12:59:41',
-        '修改时间' : '',
-        'UNIQID' : '264932',
-      },
-      {
-        '工单编号' : '2401717',
-        '重点工序' : '',
-        '印件工序及名称' : '01-08-->拆片',
-        '工序备注' : '',
-        '机组' : '',
-        '小时产能' : '',
-        '生产工时' : '',
-        '辅助工时' : '',
-        '印刷方式' : '',
-        '版距' : '',
-        '创建用户' : '[1012/刘玲]',
-        '创建时间' : '2024.01.09 12:59:41',
-        '修改时间' : '',
-        'UNIQID' : '264933',
-      },
-    ]
+    const ywg_gyres = await projectCraft({Gd_gdbh: _Gd_gdbh.value});
+    gytableData.value.splice(0, gytableData.value.length, ...ywg_gyres.data);
 
     //印件资料
-    // const ywg_yjres = await projectCraft({Gd_gdbh: _Gd_gdbh.value});
-    // gytableData.value.splice(0, yjtableData.value.length, ...ywg_yjres.data);
-    yjtableData.value = [
-      {
-        '工单编号' : '2401710',
-        '印件号' : '3',
-        '印件代号' : '101302009',
-        '印件名称' : '【2202版】黄山红印金中支手工小盒(糊盒前下盖)',
-        '纸张名称' : '400g红塔SBS白卡',
-        '投料规格' : '595*442',
-        '成品数量' : '160',
-        '实际投料' : '6.16',
-        '投料单位' : '万张',
-        '平张投料' : '2200',
-        '联数' : '28',
-        '开数' : '1',
-        '创建用户' : '[1012/刘玲]',
-        '创建时间' : '2024/1/4 16:29:30',
-        '修改时间' : '2024/1/4 16:29:30',
-        'UNIQID' : '18094',
-      }
-  ]
+    const ywg_yjres = await projectPrint({Gd_gdbh: _Gd_gdbh.value});
+    yjtableData.value.splice(0, yjtableData.value.length, ...ywg_yjres.data);
   }
 };
 
@@ -814,30 +677,51 @@ const handleNodeClick = async (node) => {
     chejianfuData.value = fubiao.data;
   }
 };
-
+//计划中已完工搜索
 const searchInfo = ref('');
 // 提交搜索
 const onSubmit = () => {
-  if (searchInfo.value === '') {
+  if(searchInfo.value === '' || searchInfo.value.length < 6 ){
     tableData.value = [];
-  } else {
-    console.log("点击了搜索按钮");
-    _WorkOrderSearch();
+  }else{
+    if(currentNode.value === '计划中' || currentNode.value === '已完工'){
+      _Project();
+    }else if(currentNode.value === '排程中' || currentNode.value === '制程中'){
+      _Schedule();
+    }else{
+      ElMessage({type: 'warning',message: '请选择具体的工单后,再操作此功能'})
+    }
   }
 };
 
-// 搜索工单
-const _WorkOrderSearch = async () => {
-  try {
-    const params = {
-      workOrder: searchInfo.value,
-      printName: ''
-    };
-    const workOrderSearchResult = await WorkOrderSearch(params);
-    console.log(workOrderSearchResult.data);
-    // tableData.value = workOrderSearchResult;
-  } catch (error) {
-    console.error("工单搜索失败", error);
+// 搜索计划中、已完工一条工单
+const _Project = async () => {
+  const status = currentNode.value;
+  const search = searchInfo.value;
+  console.log(status)
+  console.log(search)
+  const Project_search = await Project({status:status,search:search});
+  console.log(Project_search);
+  if(Project_search.code === 0){
+    tableData.value = Project_search.data;
+  }else{
+    tableData.value = [];
+    return false;
+  }
+};
+// 搜索排程、制程一条工单
+const _Schedule = async () => {
+  const status = currentNode.value;
+  const search = searchInfo.value;
+  console.log(status)
+  console.log(search)
+  const Schedule_search = await Schedule({status:status,search:search});
+  console.log(Schedule_search);
+  if(Schedule_search.code === 0){
+    tableData.value = Schedule_search.data;
+  }else{
+    tableData.value = [];
+    return false;
   }
 };
 
@@ -1244,4 +1128,54 @@ const cjsbpcCancel = () => {
 :deep(.el-table__body tr.current-row) > td {
   background: #ff80ff !important;
 }
-</style>
+</style>
+<style scoped>
+
+:deep(.el-tabs__header){
+  margin-bottom: 0;
+}
+.search{
+  margin-left: 0px !important;
+  margin-right: 10px !important;
+}
+.bt{
+  margin-left: 2px !important;
+  padding: 3px !important;
+  font-size: 12px;
+}
+.el-tabs__header{
+  margin: 0px !important;
+}
+.gva-table-box{
+  padding: 0px !important;
+}
+.mab{
+  margin-bottom: 5px;
+}
+</style>
+<style scoped>
+:deep(.el-table td .cell) {
+  line-height: 20px !important;
+}
+:deep(.el-tabs__header){
+  margin-bottom: 0;
+}
+.search{
+  margin-left: 0px !important;
+  margin-right: 10px !important;
+}
+.bt{
+  margin-left: 2px !important;
+  padding: 3px !important;
+  font-size: 12px;
+}
+.el-tabs__header{
+  margin: 0px !important;
+}
+.gva-table-box{
+  padding: 0px !important;
+}
+.mab{
+  margin-bottom: 5px;
+}
+</style>