Procházet zdrojové kódy

流程增加参数

duy před 1 rokem
rodič
revize
69e4912f3e

+ 20 - 1
src/global/components/hc-report-modal/index.vue

@@ -93,6 +93,14 @@ const props = defineProps({
         type: [String, Number],
         default: '',
     },
+    classifyType: {
+        type: [String, Number],
+        default: '',
+    },
+    tableOwner: {
+        type: [String, Number],
+        default: '',
+    },
     url: {
         type: [String, Number],
         default: '',
@@ -128,6 +136,8 @@ const emit = defineEmits(['hide', 'finish', 'tagClose'])
 const isShow = ref(props.show)
 const projectId = ref(props.projectId)
 const contractId = ref(props.contractId)
+const classifyType = ref(props.classifyType)
+const tableOwner = ref(props.tableOwner)
 const ApiUrl = ref(props.url)
 const isTypes = ref(props.type)
 const typeDatas = ref(props.typeData)
@@ -172,6 +182,8 @@ watch(() => [
     props.show,
     props.projectId,
     props.contractId,
+    props.classifyType,
+    props.tableOwner,
     props.taskName,
     props.ids,
     props.url,
@@ -180,10 +192,12 @@ watch(() => [
     props.typeData,
     props.datas,
     props.trialSelfInspectionRecordId,
-], ([val, pid, cid, name, ids, url, addition, type, typeData, datas, trialSelfInspectionRecordId]) => {
+], ([val, pid, cid, cla, tab, name, ids, url, addition, type, typeData, datas, trialSelfInspectionRecordId]) => {
     isShow.value = val
     projectId.value = pid
     contractId.value = cid
+    classifyType.value = cla
+    tableOwner.value = tab
     ApiUrl.value = url
     //更新到表单数据
     formModel.value = {
@@ -238,6 +252,9 @@ const getProcessData = async (type, datas) => {
     const { error, code, data } = await queryFixedFlow1({
         projectId: projectId.value,
         contractId: contractId.value,
+        nodeId:formModel.value.ids,
+        classifyType:classifyType.value,
+        tableOwner:tableOwner.value,
         ...flowJson,
        
     })
@@ -266,6 +283,8 @@ const queryFixedFlowApi = async (type, datas) => {
         contractId: contractId.value,
         ...flowJson,
         nodeId:formModel.value.ids,
+        classifyType:classifyType.value,
+        tableOwner:tableOwner.value,
     })
     if (!error && code === 200) {
         const arr = getArrValue(data['records'])

+ 2 - 0
src/views/data-fill/query.vue

@@ -234,6 +234,8 @@
 
         <!-- 批量上报审批 -->
         <HcReportModal
+            :table-owner="contractTypeTabKey"
+            :classify-type="classType"
             :contract-id="contractId"
             :datas="reportDatas"
             :ids="reportIds"

+ 2 - 0
src/views/data-fill/wbs.vue

@@ -612,6 +612,8 @@
             :addition="reportAddition"
             :contract-id="contractInfo?.contractType == 2 ? nodeDataInfo?.contractIdRelation : contractId"
             :ids="reportIds"
+            :table-owner="authBtnTabKey"
+            :classify-type="classType"
             :project-id="projectId"
             :show="showReportModal"
             :task-name="reportTaskName"