liuhairui 1 anno fa
parent
commit
3b40a98ed8
1 ha cambiato i file con 9 aggiunte e 7 eliminazioni
  1. 9 7
      src/view/yunyin/shengchanguanli/gongdanshengchan.vue

+ 9 - 7
src/view/yunyin/shengchanguanli/gongdanshengchan.vue

@@ -158,7 +158,7 @@
                 <template v-for="(item, idx) in paichengColumns">
                   <el-table-column #default="{ row, column, $index }" align="left" :label="item.label" :width="item.width" >
                     <div v-if="['优先次序', '小时产能', '生产工时', '辅助工时', '班次安排', '排单备注','最早开工时间', '计划开工时间'].includes(item.prop)">
-                      <el-input v-model="row[item.prop]" :clearable="false"
+                      <el-input v-model="row[item.prop]"
                                 :id="`input${idx}${$index}`"
                                 @blur="handleBlur(item['label'], item)"
                                 @keyup="handleKeyDown($event, idx, $index, item.prop)"
@@ -1225,9 +1225,9 @@ const pd_yysjcsonClick = () => {
 const paichengColumns = ref(
     [
       { label: '优先次序', prop: '优先次序', width: '105' },
-      // { label: '工单编号', prop: '工单编号', width: '100' },
-      // { label: '印件名称', prop: '印件名称', width: '220' },
-      { label: '接货数', prop: '接货数', width: '105' },
+      { label: '工单编号', prop: '工单编号', width: '100' },
+      { label: '印件名称', prop: '印件名称', width: '200' },
+      { label: '接货数', prop: '计划接货数', width: '105' },
       { label: '已完成', prop: '已完成', width: '105' },
       { label: '小时产能', prop: '小时产能', width: '100' },
       { label: '生产工时', prop: '生产工时', width: '100' },
@@ -1252,7 +1252,6 @@ const handleDataSortAndSettingDate = () => {
     return priorityA - priorityB;
   });
 
-
   paichengData.value.map((item, index) => {
     let hour = parseFloat(item['生产工时']) + parseFloat(item['辅助工时'])
     if ( ((Math.floor(hour) * 10) % 10) !== 5) {
@@ -1275,7 +1274,7 @@ const handleDataSortAndSettingDate = () => {
 }
 
 const handleBlur = (name, item) => {
-  if (name === '优先次序' || name === '计划开工时间' || name === '辅助工时') {
+  if (name === '优先次序' || name === '计划开工时间' || name === '生产工时' || name === '辅助工时' || name === '最早开工时间') {
     handleDataSortAndSettingDate()
   }
   if (name === '小时产能') {
@@ -1284,7 +1283,6 @@ const handleBlur = (name, item) => {
   }
 }
 const handleKeyDown = (event, x, y, prop) => {
-  console.log(event)
   const currentElement = document.getElementById(`input${x}${y}`);
   if (currentElement === null && currentElement === undefined) return
   let move = 0
@@ -1432,6 +1430,10 @@ const oneditpcClick = async () => {
   // console.log(EquipmentSchedulingEdit_edit)
   if (EquipmentSchedulingEdit_edit.code === 0) {
     ElMessage({ type: 'success', message: '更新成功' });
+    console.log(_machine.value)
+    const zhubiao = await MachineWorkOrderList({ machine:_machine.value})
+    chejianData.value = zhubiao.data['排程'];
+    chejianfuData.value = zhubiao.data['制程'];
     cjsbpclist.value = false;
   } else {
     ElMessage({ type: 'error', message: '更新失败' });