소스 검색

关联工序限制修改

duy 2 년 전
부모
커밋
dde6e0ed04
3개의 변경된 파일19개의 추가작업 그리고 14개의 파일을 삭제
  1. 9 4
      src/views/ledger/components/table-form.vue
  2. 5 5
      src/views/tentative/detect/outside.vue
  3. 5 5
      src/views/tentative/detect/third.vue

+ 9 - 4
src/views/ledger/components/table-form.vue

@@ -434,6 +434,7 @@ const tableFormSaveClick = async () => {
 //保存
 const saveExcelBussData = async () => {
     let isLinkTabIds = getLinkTabIds(); //处理工序ID
+    console.log(isLinkTabIds,'isLinkTabIds');
     if (isLinkTabIds) {
         tableFormSaveLoading.value = true
         const { error, code, msg } = await queryApi.saveExcelBussData({
@@ -454,15 +455,19 @@ const saveExcelBussData = async () => {
 //处理工序数据
 const getLinkTabIds = () => {
     let {nodeType} = menuItem.value;
+    let isLink=false
     if (nodeType === 7 || nodeType === 11) {
-        const formItem = formLogDataList.value[0];
-        const linkIds = getArrValue(formItem?.linkTabIds)
-        if (linkIds.length > 0) {
+        isLink= formLogDataList.value.some((item)=>{
+                const linkIds = getArrValue(item?.linkTabIds)
+                return linkIds.length>0
+        })
+        if(isLink){
             return true
-        } else {
+        }else{
             window?.$message?.warning('请先关联工序')
             return false
         }
+        
     } else {
         return true
     }

+ 5 - 5
src/views/tentative/detect/outside.vue

@@ -678,9 +678,9 @@ const onmousedown = () => {
 
 <style lang="scss" scoped>
 @import "../../../styles/tentative/detect/third.scss";
-::v-deep.dialog .select-popper{
-    position: fixed;
-    top: 100px !important;
-    left: 133px !important;
-}
+// :deep.dialog .select-popper{
+//     position: fixed;
+//     // top: 100px !important;
+//     // left: 133px !important;
+// }
 </style>

+ 5 - 5
src/views/tentative/detect/third.vue

@@ -670,11 +670,11 @@ const onmousedown = () => {
 
 <style lang="scss" scoped>
 @import "../../../styles/tentative/detect/third.scss";
-::v-deep.dialog .select-popper{
-    position: fixed;
-    top: 100px !important;
-    left: 133px !important;
-}
+// :deep.dialog .select-popper{
+//     position: fixed;
+//     top: 100px !important;
+//     left: 133px !important;
+// }
 
 
 </style>