Browse Source

Merge branch 'master' of https://git.7in6.com/Minong/mes-admin-backend-ui

tty 1 year ago
parent
commit
8780c8efba

+ 14 - 0
src/api/jixiaoguanli/baogong.js

@@ -20,4 +20,18 @@ export const getMac = (data) => {
     method: 'get',
     data
   })
+}
+export const remodelGetTab = (data) => {
+  return service({
+    url: '/mes_server/facility/remodelGetTab',
+    method: 'get',
+    data
+  })
+}
+export const setMachineTeam = (data) => {
+  return service({
+    url:'/mes_server/Facility/setMachineTeam',
+    method: 'post',
+    data
+  })
 }

+ 1 - 0
src/api/mes/job.js

@@ -130,6 +130,7 @@ export const getRewardTabByGd = (params) => {
   })
 }
 
+
 export const getDocumentData = (params) => {
   return service({
     url: '/mes_server/process_document/getData',

+ 2 - 0
src/view/job/rewards/rewards.vue

@@ -1002,7 +1002,9 @@ const handleCurrentChange = (val) => {
 const detailData = reactive({})
 const handleDoubleClick = async(row) => {
   const { UniqId } = row
+  console.log(UniqId)
   const res = await getRewardDetail({ UniqId })
+  console.log(res)
   if (res.code === 0) {
     console.log(res)
     Object.assign(detailData, res.data[0])

+ 41 - 17
src/view/job/sampling/sampling.vue

@@ -208,7 +208,7 @@
           <el-dialog
             v-model="dialogFormVisible"
             :before-close="closeDialog"
-            :title="type==='create'?'添加':'修改'"
+            :title="type"
             destroy-on-close
             width="800"
           >
@@ -228,6 +228,7 @@
                 <el-input
                   v-model="detailData.Sczl_bh"
                   :clearable="true"
+				  @keyup.enter="handleGetYg"
                 />
               </el-form-item>
               <el-form-item prop="image">
@@ -250,11 +251,17 @@
                 label="班组:"
                 prop="address"
               >
-                <el-input
+                <!-- <el-input
                   v-model="detailData.sczl_bzdh"
                   :clearable="true"
                   placeholder="请输入班组"
-                />
+                /> -->
+				<el-select v-model="detailData.sczl_bzdh" placeholder="" style="width: 70px"
+				           
+				>
+				  <el-option label="A班" value="A班"></el-option>
+				  <el-option label="B班" value="B班"></el-option>
+				</el-select>
               </el-form-item>
               <el-form-item
                 label="日期:"
@@ -461,6 +468,7 @@
 <script setup>
 import { getSpotList, getSpotTab, getSpotLocal, getSpotInfo, updateSpotData,add } from '@/api/mes/job'
 import { createCompany, deleteCompany, deleteCompanyByIds, findCompany, updateCompany } from '@/api/company'
+import{getYg}from '@/api/mes_api_gty/myapi'
 // 全量引入格式化工具 请按需保留
 import { ElMessage, ElMessageBox } from 'element-plus'
 import { reactive, ref } from 'vue'
@@ -503,6 +511,16 @@ const formData = ref({
   image: '',
   name: '',
 })
+const handleGetYg = async() => {
+  try {
+    const res = await getYg({ sczl_bh: detailData.Sczl_bh })
+    if (res.code === 0) {
+      detailData.name = res.data.ygxm
+    }
+  } catch (e) {
+    console.log(e)
+  }
+}
 
 // 验证规则
 const rule = reactive({
@@ -539,7 +557,7 @@ const params = {
   search: '',
   type: '',
 }
-
+const minUniqId = ref('')
 // 获取表格数据
 const getTableData = async() => {
   const { date, sys_id } = params
@@ -548,6 +566,7 @@ const getTableData = async() => {
   if (res.code === 0) {
     tableData.splice(0, tableData.length, ...res.data.rows)
     total.value = res.data.total
+	minUniqId.value= Math.min(...tableData.map(row => row.UniqId));
   }
 }
 
@@ -600,20 +619,25 @@ const handlerSearch = () => {
 }
 // 新增数据
 const handleShowAdd = async () => {
-  
-    type.value='add'
-	console.log(currentRow.value)
-   const res = await getSpotInfo({ UniqId:currentRow.value })
-   if (res.code === 0) {
-     Object.assign(detailData, res.data[0])
-     detailData.UniqId = currentRow.value
-     dialogFormVisible.value = true
-   }
+  type.value = '新增';
+  console.log(currentRow.value);
+
+  const res = await getSpotInfo({ UniqId: minUniqId.value });
+
+  if (res.code === 0) {
+	  let sczl_rq = new Date();
+	  sczl_rq.setDate(sczl_rq.getDate() - 0); // 今天的前N天的日期,N自定义
+	  res.data[0].Sczl_rq = `${sczl_rq.getFullYear()}-${sczl_rq.getMonth() + 1}-${sczl_rq.getDate()}`;
+    Object.assign(detailData, res.data[0]);
+    detailData.UniqId = currentRow.value;
+    dialogFormVisible.value = true
+  }
+};
 	// type.value='add'
  //    Object.assign(detailData);
 	// dialogFormVisible.value = true
   
-};
+// };
 // ============== 详情展示 ===============
 const detailData = reactive({})
 
@@ -621,7 +645,7 @@ const detailData = reactive({})
 const getDetailData = async(row) => {
   console.log(row.UniqId)
   const { UniqId } = row
-  type.value='update'
+  type.value='查改'
   const res = await getSpotInfo({ UniqId })
   if (res.code === 0) {
     Object.assign(detailData, res.data[0])
@@ -638,9 +662,9 @@ const handleSelectChange = (row, column, event) => {
 const enterDialog = async() => {
   // const obj = { ...detailData }
    console.log(type.value)
-   if (type.value === 'update') {
+   if (type.value === '查改') {
   	   updateDetailData()
-  	 } else if (type.value === 'add') {
+  	 } else if (type.value === '新增') {
   	   addDetailData()
   	 }else {
 		 console.log(type)

+ 87 - 17
src/view/performance/09-workOrderVerification/index.vue

@@ -106,7 +106,7 @@
           <el-dialog
             v-model="dialogFormVisible"
             :before-close="closeDialog"
-            :title="type === 'create' ? '添加' : '修改'"
+            :title="type"
             destroy-on-close
             width="70%"
             style="position: fixed; top: 35%; left: 50%; transform: translate(-50%, -50%);"
@@ -191,6 +191,7 @@
                 <el-input
                   v-model="detailData.qczl_gxmc"
                   style="width: 200px;"
+				  @keyup.enter.native="getgxsubmit"
                 />
               </el-form-item>
               <el-form-item
@@ -301,8 +302,7 @@
                   >
                     <template #default="{ row }">
                       <el-input
-                        v-model="row.fp_gxmc"
-                        readonly
+                        v-model="row.fp_gxmc"                       
                       />
                     </template>
                   </el-table-column>
@@ -323,8 +323,7 @@
                   >
                     <template #default="{ row }">
                       <el-input
-                        v-model="row.fp_bh"
-                        readonly
+                        v-model="row.fp_bh"                       
                       />
                     </template>
                   </el-table-column>
@@ -339,7 +338,6 @@
                       />
                     </template>
                   </el-table-column>
-
                 </el-table>
 
               </el-scrollbar>
@@ -398,6 +396,39 @@
               />
             </el-table>
           </el-dialog>
+		  
+		  <el-dialog
+		    v-model="GetjtbhVisible"
+		    title="选择"
+		    destroy-on-close
+		    width="600px"
+		  			>
+		    <el-table
+		      tooltip-effect="dark"
+		      :data="JTBHselectData"
+		      row-key="ID"
+		      highlight-current-row="true"
+		      border
+		      style="width:100%"
+		      @row-dblclick="JTBHSelectClick"
+		    >
+		      <el-table-column
+		        prop="gxh"
+		        label="工序号"
+		        width="70"
+		      />
+			  <el-table-column
+				prop="gxmc"
+				label="工序名称"
+				width="150"
+			  />
+			  <el-table-column
+				prop="addGxmc"
+				label="工序名称"
+				width="150"
+			  />
+		    </el-table>
+		  </el-dialog>
 
           <!-- 废品日统计 -->
           <Meirihejiantongji
@@ -440,7 +471,7 @@ import {
 import { ElMessage } from 'element-plus'
 import { Search, Refresh, Download } from '@element-plus/icons-vue'
 import { ref, reactive } from 'vue'
-import { getSide, getTable, getOneWorkOrder, getOrderInfo, getGxAndLeader, getWastInfo, updateData, add } from '@/api/mes_api_gty/workOrderVerification'
+import { getSide, getTable, getOneWorkOrder, getOrderInfo, getGxAndLeader, getYjInfo,getWastInfo, updateData, add } from '@/api/mes_api_gty/workOrderVerification'
 import Meirihejiantongji from '@/view/performance/09-workOrderVerification/componets/meirihejiantongji.vue'
 import Gongdanzhijianfeipintongji from '@/view/performance/09-workOrderVerification/componets/gongdanzhijianfeipintongji.vue'
 import Shebeizhuangtai from '@/view/performance/09-workOrderVerification/componets/shebeizhuangtai.vue'
@@ -506,11 +537,11 @@ const tableColumns = [
   { label: '创建用户', prop: 'sys_id', width: '200' }
 ]
 const tableData = reactive([])
-
+const GetjtbhVisible = ref(false)
 const total = ref(0)
 const page = ref(1)
 const limit = ref(10)
-
+const JTBHselectData = reactive([])
 const searchInfo = ref('')
 const params = {
   date: '',
@@ -519,17 +550,53 @@ const params = {
   page: page.value.toString(),
   limit: limit.value.toString(),
 }
-
+//获取工序
+const getgxsubmit = () => {
+	 GetJtbh()
+}
+const GetJtbh = async () => {
+  try {
+    const response = await getYjInfo({ order: '2312185', yj_no: '1' });
+    if (response.code === 0) {
+      const data = response.data;
+      if (data) {
+        const tableData = data.gx_data.map(item => ({
+          gxh: item.Gy0_gxh,
+          gxmc: item.Gy0_gxmc+'-'+item.Add_gxmc,
+          // addGxmc: item.Add_gxmc
+        }));
+        console.log(tableData);
+        JTBHselectData.splice(0, JTBHselectData.length, ...tableData);
+        GetjtbhVisible.value = true;
+        // Now you can use the tableData to populate your table
+      } else {
+        console.log('No data found');
+      }
+    } else {
+      console.log('Error: ', response.msg);
+    }
+  } catch (error) {
+    console.error('Error fetching data: ', error);
+  }
+};
+const JTBHSelectClick = (row, column, event) => {
+  const { gxh, gxmc } = row
+  detailData.qczl_gxmc=gxh+'-'+gxmc
+  detailData.qczl_gxh=gxh
+  GetjtbhVisible.value = false
+}
 // 批量删除控制标记
 const deleteVisible = ref(false)
 const multipleSelection = ref([])
-
+const minUniqId = ref('')
 const getTableData = async() => {
   const response = await getTable(params)
   if (response.code === 0) {
     total.value = response.data.total
     // Object.assign(tableData, response.data.rows)
+	 
     tableData.splice(0, tableData.length, ...response.data.rows)
+	minUniqId.value= Math.min(...tableData.map(row => row.UniqId));
   }
 }
 
@@ -568,7 +635,8 @@ const handleCurrentChange = () => {
 const detailData = reactive({})
 const selectData = reactive([])
 const selectColumns = [
-  { label: '', prop: 'sczl_gxmc', width: '600' },
+  { label: '', prop: 'sczl_gxmc', width: '500' },
+  { label: '', prop: 'sczl_jtbh', width: '100' },
   { label: '', prop: 'sczl_bzdh', width: '100' },
   { label: '', prop: 'name', width: '100' },
 ]
@@ -729,7 +797,7 @@ const handleFpslEnter = async(index, row) => {
 
 // 双击表格操作
 function doubleClick(row, column, event) {
-  type.value = 'update'
+  type.value = '查改'
   getDetailData(row.UniqId)
 }
 
@@ -746,9 +814,9 @@ const handleSelectClick = (row, column, event) => {
 
 // 弹窗确定
 const enterDialog = async() => {
-  if (type.value === 'update') {
+  if (type.value === '查改') {
 	  updateDetailData()
-  } else if (type.value === 'add') {
+  } else if (type.value === '新增') {
 	  addDetailData()
   }
 }
@@ -904,8 +972,10 @@ const handleSelectChange = (row, column, event) => {
 
 // 新增数据
 const handleShowAdd = async() => {
-  type.value = 'add'
-  getDetailData(currentRow.value)
+  type.value = '新增'
+  // console.log()
+  getDetailData(minUniqId.value)
+  
   // type.value='add'
   //    Object.assign(detailData);
   // dialogFormVisible.value = true

+ 5 - 4
src/view/performance/Manualdocuments.vue

@@ -564,6 +564,7 @@ const handleCurrentChange = (val) => {
    default:
      break
  }
+ console.log(params.type)
 }
 
 const getTableData = async() => {
@@ -582,8 +583,7 @@ const getTableData = async() => {
   
   const response = await getDateList({
     date: params.date, sys_id: params.sys_id,
-    page: page.value.toString(), limit: limit.value.toString(),
-	
+    page: page.value.toString(), limit: limit.value.toString(),	
   })
   if (response.code === 0) {
 	  console.log(response)
@@ -595,6 +595,7 @@ const getTableData = async() => {
       };
     });
     tableData.splice(0, tableData.length, ...processedData);
+	console.log(tableData)
   }
 }
 
@@ -603,9 +604,9 @@ const handleNodeClick = (node,check) => {
    if (node.params) {
     params.date = node.params.date.replace(/\./g, '-');
     params.sys_id = node.params.sys_id;
+    params.type = 'getTableData'
     total.value = node.params.total;
-	   params.type = 'getTableData'
-	    page.value = 1
+    page.value = 1
     getTableData();
   }
 }

+ 285 - 5
src/view/performance/chejianbaogong.vue

@@ -20,14 +20,14 @@
 		
 		
     <el-container>
-      <el-aside width="200px">
+      <!-- <el-aside width="200px">
         <div class="JKWTree-tree">
 
           <h3  > 车间报工</h3>
           <el-tree :data="treeData" :props="defaultProps" :default-expand-all="true" @node-click="handleNodeClick"></el-tree>
         </div>
 
-      </el-aside>
+      </el-aside> -->
       <el-container>
 <!--        <el-header>dd</el-header>-->
         <el-main>
@@ -119,7 +119,7 @@
                                     :row-style="{ height: '20px' }"
                                     :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
                                     :header-cell-style="{ padding: '0px' }"
-                                    @row-dblclick="yjupdateCompanyFunc"
+                                    @row-click="yjupdateCompanyFunc"
                                     style="width: 100%;height: 330px" border tooltip-effect="dark" :data="sbzyData" row-key="ID" @selection-change="handleSelectionChange">
             <!--                <el-table-column type="selection" width="55" />-->
                             <el-table-column align="left" label="选择" prop="yj_yjno"  width="80"/>
@@ -824,6 +824,206 @@
 		  </template>
 		</el-dialog>
 		
+		<el-dialog
+		  v-model="huanxingVisible"
+		  title="换型清场"
+		  destroy-on-close
+		  width="1100px"
+		  style="height: 78%;"
+		>
+		  <div style="display: flex;">
+		    <div style="flex: 0.1;">
+		      <el-aside width="180px" style="margin: 0;">
+		        <div class="JKWTree-tree" style="height: 55vh; border-right: 1px solid #ebeef5;">		          
+		          <el-tree :data="huanxingtreeData" :props="defaultProps" highlight-current="true"
+		            @node-click="huanxingNodeClick"></el-tree>
+		        </div>
+		      </el-aside>
+		    </div>
+		    <div v-if="huanxingstatus" style="flex: 0; margin: 0;">
+		      <el-tabs v-model="activNames" type="card" @tab-click="handleClick">
+		        <el-tab-pane label="指标检验"  @click="showTable('指标检验')"  name="first">
+		          <el-table
+		            tooltip-effect="dark"
+		            :data="zhibiaoselectData"
+		            row-key="ID"
+		            highlight-current-row="true"
+		          				:show-overflow-tooltip="true"
+		            border  @row-click="dianjianhandle"
+		            style="width:100%; height:310px;"
+		            @row-dblclick="handleSelectClick"
+		            :row-class-name="rowClassName"
+		          >
+		            <el-table-column
+		              prop="检验项目"
+		              label="检验项目"
+		              width="270"
+		            />
+					<el-table-column
+					  v-slot="scope"
+					  label="不检测" 
+					  width="70"
+					>
+					   <el-checkbox v-model="scope.row.notjc" @click="notjcClick(scope.row)"></el-checkbox>
+					</el-table-column>
+		            <el-table-column
+		              v-slot="scope"
+		              label="合格"
+		              width="60"
+		            >
+		              
+		             <el-checkbox v-model="scope.row.zc" @click="zcClick(scope.row)"></el-checkbox>
+		            
+		            </el-table-column>
+		            <el-table-column
+		              v-slot="scope"
+		              label="不合格" 
+		              width="70"
+		            >
+		               <el-checkbox v-model="scope.row.yc" @click="ycClick(scope.row)"></el-checkbox>
+		            </el-table-column>
+					<el-table-column
+					  prop="检测方法"
+					  label="检测方法"
+					  width="90"
+					/>
+					<el-table-column
+					  prop="检验频率"
+					  label="检验频率"
+					  width="150"
+					/>
+					<el-table-column
+					  prop="相关标准"
+					  label="相关标准"
+					  width="180"
+					/>
+		          </el-table>
+		        </el-tab-pane>
+		      
+		        <el-tab-pane label="当前设备换型记录"  @click="showTable('当前设备换型记录')"  name="second">
+		          <el-table
+		            tooltip-effect="dark"
+		            :data="fujiaselectData"
+		            row-key="ID"
+		            highlight-current-row="true"
+		          				:show-overflow-tooltip="true"
+		            border  @row-click="dianjianhandle"
+		            style="width:100%; height:320px;"
+		            @row-dblclick="handleSelectClick"
+		            :row-class-name="rowClassName"
+		          >
+		            <el-table-column
+		              prop="日期"
+		              label="日期"
+		              width="100"
+		            />
+		            <el-table-column
+		              prop="机台编号"
+		              label="机台编号"
+		              width="80"
+		            />
+					<el-table-column
+					  prop="班组"
+					  label="班组"
+					  width="70"
+					/>
+					<el-table-column
+					  prop="工单编号A"
+					  label="工单编号A"
+					  width="80"
+					/>
+					<el-table-column
+					  prop="印件名称A"
+					  label="印件名称A"
+					  width="120"
+					/>
+					<el-table-column
+					  prop="印件工序A"
+					  label="印件工序A"
+					  width="80"
+					/>
+					<el-table-column
+					  prop="码包号A"
+					  label="码包号A"
+					  width="80"
+					/>
+					<el-table-column
+					  prop="工单编号B"
+					  label="工单编号B"
+					  width="80"
+					/>
+					<el-table-column
+					  prop="印件名称B"
+					  label="印件名称B"
+					  width="80"
+					/>
+					<el-table-column
+					  prop="印件工序B"
+					  label="印件工序B"
+					  width="100"
+					/>
+					<el-table-column
+					  prop="码包号B"
+					  label="码包号B"
+					  width="80"
+					/>
+					<el-table-column
+					  prop="清场项目A"
+					  label="菲林_标样_签样品_留样品"
+					  width="120"
+					/>
+					<el-table-column
+					  prop="清场项目B"
+					  label="版材_纸张_电化铝_油墨"
+					  width="120"
+					/>
+					<el-table-column
+					  prop="清场项目C"
+					  label="过版纸_废品_次品"
+					  width="120"
+					/>
+					<el-table-column
+					  prop="清场项目D"
+					  label="半成品_成品_零头"
+					  width="120"
+					/>
+					<el-table-column
+					  prop="清场项目E"
+					  label="操作台桌面_抽屉_地面"
+					  width="120"
+					/>
+					<el-table-column
+					  prop="机长"
+					  label="机长"
+					  width="80"
+					/>
+					<el-table-column
+					  prop="班长"
+					  label="带班长"
+					  width="80"
+					/>
+					<el-table-column
+					  prop="质量巡查员"
+					  label="质量巡查员"
+					  width="80"
+					/>
+					<el-table-column
+					  prop="创建时间"
+					  label="创建时间"
+					  width="120"
+					/>
+					<el-table-column
+					  prop="UNIQID"
+					  label="UNIQID"
+					  width="80"
+					/>
+		          </el-table>
+		        </el-tab-pane>
+		      </el-tabs>
+		    </div>
+		  </div>
+		</el-dialog>
+		
 		<el-dialog
 		  v-model="xunchaVisible"
 		  title="管理人员现场巡查记录"
@@ -1440,7 +1640,9 @@ import {
 import {
   ProcessInspectionRecordsItemAdd,
   AdditionalInspectionRecordAdd,
-  getMac
+  getMac,
+  remodelGetTab,
+  setMachineTeam
 } from '@/api/jixiaoguanli/baogong'
 
 import {
@@ -1492,6 +1694,8 @@ const activNames=ref('first')
 let checked3=ref(false)
 const detailData = reactive([])
 const treeData=ref([])
+const huanxingtreeData=ref([])
+const huanxingstatus=ref(false)
 const zhichengtreeData=ref([{
 	label: '首件与过程确认'
 },{
@@ -1549,6 +1753,15 @@ const ent = (event,id1,id2,id3) => {
   }
 }
 
+const huanxingNodeClick = (node) => {
+  //存放当前节点的nodeId
+  if(node.machine){
+	  huanxingstatus.value=true
+	  console.log(node)
+  }else{
+	  console.log('2')
+  }
+}
 const handleNodeClick = (nodeData,node) => {
   //存放当前节点的nodeId
   if(nodeData.level === 1){
@@ -1591,7 +1804,9 @@ const FacilityProduction = async () => {
 		formData.value.工序号 = response.data.工序名称.substring(0,2);
 	    formData.value.工序名称 = response.data.工序名称;
 	    formData.value.产品名称 = response.data.产品名称;
+		formData.value.班组Id=response.data.班组Id
 		formData.value.machine=JTMC
+		formData.value.状态=response.data.状态
 		BZMC.value=response.data.班组编号
 	       // 填充sczl_bh和sczl_name字段
 		   let sczl_bhkey=''
@@ -1900,6 +2115,7 @@ const onzhicheng = async () => {
 
 const chanliangselectData = reactive([])
 const chanliangVisible = ref(false)
+const huanxingVisible = ref(false)
 const xunchaVisible = ref(false)
 
 //设置机台状态
@@ -1908,6 +2124,32 @@ function onstatus() {
 	 SetMachineStatus()
 	 // ReportProduceInfo()
 }
+function onClear() {
+	huanxingVisible.value=true
+	 RemodelGetTab()
+}
+const RemodelGetTab = async() => {
+  const response = await remodelGetTab()
+  let arr=[]
+  if (response.code === 0) {
+	  for(let key in response.data){
+		  if(response.data[key][0]){
+			  let children =[]
+			  for (let i = 0; i < response.data[key].length; i++) {
+				  children.push({label:response.data[key][i],machine:key})
+			  }
+			  arr.push({
+				  label:key,
+				  children:children
+			  })
+			  console.log(response.data[key].length)
+		  }else{
+			 arr.push({label:key}) 
+		  }
+	  }
+	  huanxingtreeData.value=arr
+  }
+}
 //设置机台状态
 const SetMachineStatus = async () => {
   // const response = await setMachineStatus({
@@ -2112,7 +2354,7 @@ const GetMachineMac = async () => {
 	xmlhttp.open("get", "http://127.0.0.1:8090/init")
 	// 5. 发送
 	xmlhttp.send();
-  const response = await getMachineMac({ addr: '68-ED-A4-26-5F-37' });
+  const response = await getMachineMac({ addr: '68-ED-A4-26-5F-8E' });
   console.log(response);
   if (response.code === 0) {
     // 将接口返回的数据添加到树型结构中
@@ -2731,6 +2973,23 @@ const selectBz = async() => {
 		  }
 		  formData.value.class=classbz.value.join(',')
 		}
+		const response = await setMachineTeam({
+			machine: JTMC.split("#")[0],
+			order:formData.value.工单编号,
+			yjno:formData.value.印件号,
+			gy_name:formData.value.工序名称,
+			sczl_bzdh:BZMC.value,
+			status:formData.value.状态,
+			production_now:0,
+			production_all:0,
+			team_id:currentBz.value.ID
+			})
+		if(response.code===0){
+			ElMessage({
+			  type: 'success',
+			  message: '成功'
+			})
+		}
 		currentBz.value={}
 	}
 }
@@ -2826,6 +3085,27 @@ const updateCompanyFunc = async(row) => {
     }
 }
 
+const yjupdateCompanyFunc = async(row) => {
+	console.log(row)
+    const res = await setMachineTeam({
+			machine: JTMC.split("#")[0],
+			order:row['工单编号|质量信息'].split('|')[0],
+			yjno:row['工序名称'].split('-')[0],
+			gy_name:row['工序名称'],
+			sczl_bzdh:BZMC.value,
+			status:formData.value.状态,
+			production_now:0,
+			production_all:0,
+			team_id:formData.value.班组Id
+			})
+    if (res.code === 0) {
+		FacilityProduction()
+		ElMessage({
+		        type: 'success',
+		        message: '成功'
+		    })
+    }
+}
 
 // 删除行
 const deleteCompanyFunc = async (row) => {