Selaa lähdekoodia

fix:修改物料按钮

lupeng 4 kuukautta sitten
vanhempi
commit
20f1ae9fb3

+ 6 - 0
src/views/pro-steps/components/wuliaocaiji.vue

@@ -55,6 +55,7 @@
     v-else
     v-model="showXQ"
     :showInfo="seqInfoList"
+    :isShow = "isShowButton"
     @data-list="getOpCompentData"
   />
   <seqPopUp v-model="showSEQ" :showInfoData="showSeqData" />
@@ -79,6 +80,7 @@ import { useProcessStore } from "@/store";
 defineOptions({
   name: "Wuliaocaiji",
 });
+const isShowButton=ref(true);
 const flStatus = ref(false);
 const caijiRef = ref(null);
 const store = useProcessStore();
@@ -123,6 +125,7 @@ const showInfo = ref({});
 const scanData = ref([]);
 provide("scanData", scanData);
 const enterfnc = async () => {
+  isShowButton.value=true;
   let str = scanCode.value;
   if (str.length < 1) {
     ElMessage.error("请扫码采集物料");
@@ -136,6 +139,7 @@ const enterfnc = async () => {
       processId: store.scanInfo.id,
       seqNo: store.scanInfo.seqNo,
       scanCode: str,
+      flStatus: flStatus.value,
       workOrderCode: store.odersData.workOrderCode,
     });
     if (code == "200") {
@@ -148,6 +152,7 @@ const enterfnc = async () => {
       processId: store.scanInfo.id,
       seqNo: store.scanInfo.seqNo,
       scanCode: str,
+      flStatus: flStatus.value,
       workOrderCode: store.odersData.workOrderCode,
     });
     if (code == "200") {
@@ -171,6 +176,7 @@ const toXQPop = async (item) => {
   // await getInfoById(item);
   await getHistroyList(item);
   showXQ.value = true;
+  isShowButton.value = false;
 };
 //提交录入信息
 const submitRecordAdd = async (index) => {

+ 5 - 1
src/views/pro-steps/popUpView/flXiangqingPopUp.vue

@@ -87,7 +87,7 @@
           </template>
         </el-table>
         <div class="btns">
-          <el-button type="primary" @click="submit">绑定确认</el-button>
+          <el-button type="primary" @click="submit" v-if="props.isShow">绑定确认</el-button>
           <el-button @click="handleClose">取消</el-button>
         </div>
       </div>
@@ -153,6 +153,10 @@ const props = defineProps({
   showInfo: {
     type: Object,
   },
+  isShow:{
+    type: Boolean,
+    default: true,
+  },
 });
 const searchBatchNo = ref("");
 const searchSeqNo = ref("");