22
schangxiang@126.com
2024-12-17 2905c63ec884f531152a4e97a4d67034e8149d6d
LA24030_LuLiPackageLine_Web/src/views/main/WmsOrder/manualFeedKittingNg/index.vue
@@ -3,7 +3,7 @@
      <el-card class="full-table" shadow="hover" style="margin-top: 5px">
         <el-form :model="queryParams" @submit.native.prevent ref="queryForm" labelWidth="100">
            <el-row>
               <el-col :xs="24" :sm="12" :md="12" :lg="10" :xl="4" class="mb10">
               <el-col :xs="24" :sm="24" :md="24" :lg="10" :xl="10" class="mb10">
                  <el-form-item label="包装号" size="large">
                     <el-input
                        size="large"
@@ -21,7 +21,8 @@
                  <el-form-item>
                     <el-button-group style="display: flex; align-items: center">
                        <el-button size="large" type="primary" icon="ele-Search" @click="handleQuery"> 查询 </el-button>
                        <el-button size="large" icon="ele-Finished" @click="ConfirmNg"> 标记Ng </el-button>
                        <el-button size="large" icon="ele-Finished" @click="ConfirmNg"> 标记NG并下线 </el-button>
                        <el-button size="large" icon="ele-Finished" @click="ConfirmNg2"> 正常下线 </el-button>
                        <!-- 
                        <el-button icon="ele-ZoomIn" @click="changeAdvanceQueryUI" v-if="!showAdvanceQueryUI" style="margin-left:5px;"> 高级查询 </el-button>
                        <el-button icon="ele-ZoomOut" @click="changeAdvanceQueryUI" v-if="showAdvanceQueryUI" style="margin-left:5px;"> 隐藏 </el-button> -->
@@ -52,11 +53,14 @@
                        p-id="4304"
                     ></path>
                  </svg>
                  <p class="okText">{{ isSuccess }}</p>
                  <p class="no_okText">{{ isSuccess }}</p>
               </div>
            </div>
            <ul>
               <li>
                  <span class="text_left">包装编号:</span>
                  <span class="text_rt">{{ tableData.packageCode }}</span>
               </li>
               <li>
                  <span class="text_left">批次号:</span>
                  <span class="text_rt">{{ tableData.planNo }}</span>
@@ -148,7 +152,7 @@
import printDialog from '/@/views/system/print/component/hiprint/preview.vue';
import editDialog from '/@/views/main/WmsBase/wmsSubstituteGood/component/editDialog.vue';
import { pageWmsSubstituteGood, deleteWmsSubstituteGood } from '/@/api/main/WmsBase/wmsSubstituteGood';
import { ShortageList, ValdateQiTao ,ConfirmNgF} from '/@/api/main/ReportCenter/wmsStockQuan';
import { ShortageList, QueryPackage ,ConfirmNgF} from '/@/api/main/ReportCenter/wmsStockQuan_new';
const showAdvanceQueryUI = ref(false);
const printDialogRef = ref();
const editDialogRef = ref();
@@ -219,7 +223,7 @@
   }
   console.log('查询');
   loading.value = true;
   var res = await ValdateQiTao(Object.assign(queryParams.value, tableParams.value));
   var res = await QueryPackage(Object.assign(queryParams.value, tableParams.value));
   queryParams.value.packageCode = '';
   handleResponse(res);
@@ -250,7 +254,8 @@
const ConfirmNg = () => {
  ElMessageBox.confirm("是否确认标记Ng?", "提示", {
   tableData.value.isNG =true
  ElMessageBox.confirm("是否确认标记NG并下线?", "提示", {
    confirmButtonText: "确认",
    cancelButtonText: "取消",
    type: "warning"
@@ -260,11 +265,35 @@
         ...tableData.value,
      })
        .then((res) => {
          if (res.code == 200) {
            ElMessage.success("标记成功");
        //debugger
          if (res.data.code == 200) {
            ElMessage.success("标记NG并下线成功");
         tableData.value ={}
          } else {
            ElMessage.error(`失败${res.code}:${JSON.stringify(res.message)}`);
            ElMessage.error(`失败${res.data.code}:${JSON.stringify(res.data.message)}`);
          }
        });
    })
};
const ConfirmNg2 = () => {
   tableData.value.isNG =false
  ElMessageBox.confirm("是否确认正常下线?", "提示", {
    confirmButtonText: "确认",
    cancelButtonText: "取消",
    type: "warning"
  })
    .then(() => {
      ConfirmNgF({
         ...tableData.value,
      })
        .then((res) => {
        //debugger
          if (res.data.code == 200) {
            ElMessage.success("正常下线成功");
         tableData.value ={}
          } else {
            ElMessage.error(`失败${res.data.code}:${JSON.stringify(res.data.message)}`);
          }
        });
    })
@@ -287,6 +316,7 @@
      margin: 0;
      padding: 0;
      li {
         margin-top: 20px;
         display: block;
         line-height: 30px;
         text-align: left;
@@ -299,16 +329,28 @@
}
.text_left {
   font-weight: 700;
   font-size: 40px; /* 调整字体大小 */
}
.text_rt {
   font-weight: 700;
   color: #00B2EE; /* 设置图标颜色 */
   font-size: 40px; /* 调整字体大小 */
}
.my-icon {
   font-size: 36px; /* 调整字体大小 */
   color: #00ff11; /* 设置图标颜色 */
}
.titleTip {
   font-weight: 700;
   text-align: center;
   font-size: 36px; /* 调整字体大小 */
   font-size: 60px; /* 调整字体大小 */
   .okText {
      margin-bottom: 20px;
      color: #52C41A; /* 设置图标颜色 */
   }
   .no_okText {
      margin-bottom: 20px;
      color: #E84335; /* 设置图标颜色 */
   }
}
</style>