Quellcode durchsuchen

流程表单是否禁用方法全局替换

cz vor 1 Jahr
Ursprung
Commit
8cb85e8f14

+ 4 - 1
src/components/process/Contract.vue

@@ -519,6 +519,9 @@ const formData = reactive({
 });
 const submit = ref(null);
 const judgeStatus = () => {
+  if (route.query.processType == 20 || route.query.processType == 10) {
+    return true;
+  }
   if (props.queryData.recordList && props.queryData.recordList.length > 0) {
     let data = props.queryData.recordList.filter((item) => item.status === 2 && item.nodeType !== 1);
     if (data && data.length > 0) {
@@ -526,7 +529,7 @@ const judgeStatus = () => {
     }
   }
   return false;
-};
+};;
 const formOption = reactive({
   inline: true,
   labelWidth: 100,

+ 3 - 0
src/components/process/EHSD/Contract.vue

@@ -523,6 +523,9 @@ const formData = reactive({
 });
 const submit = ref(null);
 const judgeStatus = () => {
+  if (route.query.processType == 20 || route.query.processType == 10) {
+    return true;
+  }
   if (props.queryData.recordList && props.queryData.recordList.length > 0) {
     let data = props.queryData.recordList.filter((item) => item.status === 2 && item.nodeType !== 1);
     if (data && data.length > 0) {

+ 4 - 1
src/components/process/EHSD/PriceSheet.vue

@@ -399,6 +399,9 @@ const formData = reactive({
 });
 const submit = ref(null);
 const judgeStatus = () => {
+  if (route.query.processType == 20 || route.query.processType == 10) {
+    return true;
+  }
   if (props.queryData.recordList && props.queryData.recordList.length > 0) {
     let data = props.queryData.recordList.filter((item) => item.status === 2 && item.nodeType !== 1);
     if (data && data.length > 0) {
@@ -406,7 +409,7 @@ const judgeStatus = () => {
     }
   }
   return false;
-};
+};;
 const formOption = reactive({
   inline: true,
   labelWidth: 100,

+ 4 - 1
src/components/process/EHSD/Purchase.vue

@@ -500,6 +500,9 @@ const productType = ref([
   },
 ]);
 const judgeStatus = () => {
+  if (route.query.processType == 20 || route.query.processType == 10) {
+    return true;
+  }
   if (props.queryData.recordList && props.queryData.recordList.length > 0) {
     let data = props.queryData.recordList.filter((item) => item.status === 2 && item.nodeType !== 1);
     if (data && data.length > 0) {
@@ -507,7 +510,7 @@ const judgeStatus = () => {
     }
   }
   return false;
-};
+};;
 const formOption = reactive({
   inline: true,
   labelWidth: 100,

+ 4 - 1
src/components/process/EHSD/Sample.vue

@@ -521,6 +521,9 @@ const formData = reactive({
 });
 const submit = ref(null);
 const judgeStatus = () => {
+  if (route.query.processType == 20 || route.query.processType == 10) {
+    return true;
+  }
   if (props.queryData.recordList && props.queryData.recordList.length > 0) {
     let data = props.queryData.recordList.filter((item) => item.status === 2 && item.nodeType !== 1);
     if (data && data.length > 0) {
@@ -528,7 +531,7 @@ const judgeStatus = () => {
     }
   }
   return false;
-};
+};;
 const formOption = reactive({
   inline: true,
   labelWidth: 100,

+ 4 - 1
src/components/process/PriceSheet.vue

@@ -376,6 +376,9 @@ const formData = reactive({
 });
 const submit = ref(null);
 const judgeStatus = () => {
+  if (route.query.processType == 20 || route.query.processType == 10) {
+    return true;
+  }
   if (props.queryData.recordList && props.queryData.recordList.length > 0) {
     let data = props.queryData.recordList.filter((item) => item.status === 2 && item.nodeType !== 1);
     if (data && data.length > 0) {
@@ -383,7 +386,7 @@ const judgeStatus = () => {
     }
   }
   return false;
-};
+};;
 const formOption = reactive({
   inline: true,
   labelWidth: 100,

+ 4 - 1
src/components/process/PurchasePayment.vue

@@ -118,6 +118,9 @@ let formData = reactive({
 });
 const submit = ref(null);
 const judgeStatus = () => {
+  if (route.query.processType == 20 || route.query.processType == 10) {
+    return true;
+  }
   if (props.queryData.recordList && props.queryData.recordList.length > 0) {
     let data = props.queryData.recordList.filter((item) => item.status === 2 && item.nodeType !== 1);
     if (data && data.length > 0) {
@@ -125,7 +128,7 @@ const judgeStatus = () => {
     }
   }
   return false;
-};
+};;
 const formOption = reactive({
   inline: true,
   labelWidth: 100,

+ 4 - 1
src/components/process/PurchaseRefund.vue

@@ -114,6 +114,9 @@ let formData = reactive({
 });
 const submit = ref(null);
 const judgeStatus = () => {
+  if (route.query.processType == 20 || route.query.processType == 10) {
+    return true;
+  }
   if (props.queryData.recordList && props.queryData.recordList.length > 0) {
     let data = props.queryData.recordList.filter((item) => item.status === 2 && item.nodeType !== 1);
     if (data && data.length > 0) {
@@ -121,7 +124,7 @@ const judgeStatus = () => {
     }
   }
   return false;
-};
+};;
 const formOption = reactive({
   inline: true,
   labelWidth: 100,

+ 4 - 1
src/components/process/ReturnGood.vue

@@ -203,6 +203,9 @@ onMounted(() => {
 });
 
 const judgeStatus = () => {
+  if (route.query.processType == 20 || route.query.processType == 10) {
+    return true;
+  }
   if (props.queryData.recordList && props.queryData.recordList.length > 0) {
     let data = props.queryData.recordList.filter((item) => item.status === 2 && item.nodeType !== 1);
     if (data && data.length > 0) {
@@ -210,7 +213,7 @@ const judgeStatus = () => {
     }
   }
   return false;
-};
+};;
 
 watch(
   props.queryData,

+ 4 - 1
src/components/process/SendFunds.vue

@@ -683,6 +683,9 @@ defineExpose({
   handleSubmit,
 });
 const judgeStatus = () => {
+  if (route.query.processType == 20 || route.query.processType == 10) {
+    return true;
+  }
   if (props.queryData.recordList && props.queryData.recordList.length > 0) {
     let data = props.queryData.recordList.filter((item) => item.status === 2 && item.nodeType !== 1);
     if (data && data.length > 0) {
@@ -690,7 +693,7 @@ const judgeStatus = () => {
     }
   }
   return false;
-};
+};;
 const oldType = ref("");
 const changeType = () => {
   if (formData.data.type === "3" || oldType.value === "3") {

+ 3 - 0
src/components/process/SendPurchase.vue

@@ -765,6 +765,9 @@ watch(
   }
 );
 const judgeStatus = () => {
+  if (route.query.processType == 20 || route.query.processType == 10) {
+    return true;
+  }
   if (props.queryData.recordList && props.queryData.recordList.length > 0) {
     let data = props.queryData.recordList.filter(
       (item) => item.status === 2 && item.nodeType !== 1

+ 4 - 1
src/components/process/SendSubscribe.vue

@@ -180,6 +180,9 @@ onMounted(() => {
 });
 
 const judgeStatus = () => {
+  if (route.query.processType == 20 || route.query.processType == 10) {
+    return true;
+  }
   if (props.queryData.recordList && props.queryData.recordList.length > 0) {
     let data = props.queryData.recordList.filter((item) => item.status === 2 && item.nodeType !== 1);
     if (data && data.length > 0) {
@@ -187,7 +190,7 @@ const judgeStatus = () => {
     }
   }
   return false;
-};
+};;
 
 watch(
   props.queryData,

+ 4 - 1
src/components/process/ServiceContract.vue

@@ -364,6 +364,9 @@ const formData = reactive({
 });
 const submit = ref(null);
 const judgeStatus = () => {
+  if (route.query.processType == 20 || route.query.processType == 10) {
+    return true;
+  }
   if (props.queryData.recordList && props.queryData.recordList.length > 0) {
     let data = props.queryData.recordList.filter((item) => item.status === 2 && item.nodeType !== 1);
     if (data && data.length > 0) {
@@ -371,7 +374,7 @@ const judgeStatus = () => {
     }
   }
   return false;
-};
+};;
 const formOption = reactive({
   inline: true,
   labelWidth: 100,

+ 17 - 5
src/views/purchaseManage/purchaseManage/alreadyPurchase/index.vue

@@ -20,12 +20,12 @@
         ]"
         @get-list="getList"
       >
-        <template #fileSlot="{ item }">
+        <template #code="{ item }">
           <div
             style="cursor: pointer; color: #409eff"
-            @click="handleClickFile(item)"
+            @click="handleClickCode(item)"
           >
-            {{ item.fileName }}
+            {{ item.code }}
           </div>
         </template>
       </byTable>
@@ -219,6 +219,7 @@ const config = computed(() => {
       attrs: {
         label: "采购单号",
         prop: "code",
+        slot: "code",
       },
     },
     {
@@ -277,12 +278,12 @@ const config = computed(() => {
         return proxy.dictValueLabel(status, paymentStatus.value);
       },
     },
-
     {
       attrs: {
         label: "操作",
         width: "200",
-        align: "right",
+        align: "center",
+        fixed: "right",
       },
       renderHTML(row) {
         return [
@@ -501,6 +502,17 @@ const start = () => {
     },
   });
 };
+
+const handleClickCode = (row) => {
+  proxy.$router.push({
+    path: "/platform_manage/process/processApproval",
+    query: {
+      flowKey: row.processInstanceId,
+      id: row.flowId,
+      processType: 20,
+    },
+  });
+};
 </script>
   
 <style lang="scss" scoped>