瀏覽代碼

一线二线企业详情

CzRger 9 月之前
父節點
當前提交
fb64e96297

+ 27 - 23
snowy-admin-web/src/api/yqyc/qyRecordApi.js

@@ -1,4 +1,4 @@
-import { baseRequest } from '@/utils/request'
+import {baseRequest} from '@/utils/request'
 
 const request = (url, ...arg) => baseRequest(`/biz/qyrecord/` + url, ...arg)
 
@@ -9,26 +9,30 @@ const request = (url, ...arg) => baseRequest(`/biz/qyrecord/` + url, ...arg)
  * @date  2024/07/04 16:52
  **/
 export default {
-	// 获取企业资质备案分页
-	qyRecordPage(data) {
-		return request('page', data, 'get')
-	},
-	// 提交企业资质备案表单 edit为true时为编辑,默认为新增
-	qyRecordSubmitForm(data, edit = false) {
-		return request(edit ? 'edit' : 'add', data)
-	},
-	// 删除企业资质备案
-	qyRecordDelete(data) {
-		return request('delete', data)
-	},
-	// 导出企业资质备案
-    qyRecordExport(data) {
-        return request('export', data, 'post', {
-            responseType: 'blob'
-        })
-    },
-	// 获取企业资质备案详情
-	qyRecordDetail(data) {
-		return request('detail', data, 'get')
-	}
+  // 获取企业资质备案分页
+  qyRecordPage(data) {
+    return request('page', data, 'get')
+  },
+  // 提交企业资质备案表单 edit为true时为编辑,默认为新增
+  qyRecordSubmitForm(data, edit = false) {
+    return request(edit ? 'edit' : 'add', data)
+  },
+  // 删除企业资质备案
+  qyRecordDelete(data) {
+    return request('delete', data)
+  },
+  // 导出企业资质备案
+  qyRecordExport(data) {
+    return request('export', data, 'post', {
+      responseType: 'blob'
+    })
+  },
+  // 获取企业资质备案详情
+  qyRecordDetail(data) {
+    return request('detail', data, 'get')
+  },
+  // 根据企业编号获取企业资质备案详情
+  qyRecordGetInfoByCondition(data) {
+    return request('getInfoByCondition', data, 'get')
+  }
 }

+ 9 - 5
snowy-admin-web/src/views/yqyc/component/enterprise/detail.vue

@@ -7,7 +7,7 @@
   >
       <div class="enterprise-detail">
         <div class="__cus-title_1">资质类型</div>
-        <a-checkbox-group v-model:value="zzTypes" name="checkboxgroup" :disabled="true">
+        <a-checkbox-group v-model:value="formData.zzTypeArr" name="checkboxgroup" :disabled="true">
           <a-row :gutter="[0, 10]">
             <template v-for="item in zzTypeOptions">
               <a-col :span="4">
@@ -45,8 +45,8 @@
               </a-form-item>
             </a-col>
             <a-col :span="8">
-              <a-form-item label="联系人电话:" name="xxx">
-                <a-input v-model:value="formData.xxx" :disabled="true"/>
+              <a-form-item label="联系人电话:" name="companyLinkPhone">
+                <a-input v-model:value="formData.companyLinkPhone" :disabled="true"/>
               </a-form-item>
             </a-col>
             <a-col :span="8">
@@ -109,6 +109,7 @@
 <script setup name="enterpriseDetail">
 	import tool from '@/utils/tool'
 	import { cloneDeep } from 'lodash-es'
+  import qyRecordApi from "@/api/yqyc/qyRecordApi";
 	// 抽屉状态
 	const open = ref(false)
 	const emit = defineEmits({ successful: null })
@@ -125,8 +126,11 @@
 	const onOpen = (record, view = false) => {
 		open.value = true
 		if (record) {
-			let recordData = cloneDeep(record)
-			formData.value = Object.assign({}, recordData)
+      qyRecordApi.qyRecordGetInfoByCondition({companyCode: record.companyCode}).then(res => {
+        formData.value = Object.assign({
+          zzTypeArr: res.zzType.split(',')
+        }, res)
+      })
 		}
     zzTypeOptions.value = tool.dictList('applyzztype')
     companyTypeOptions.value = tool.dictList('qylx')

+ 8 - 11
snowy-admin-web/src/views/yqyc/general-ledger/one/goods.vue

@@ -253,10 +253,16 @@
               {title: '规格型号',dataIndex: 'ggxh',key: 'ggxh'},
               {title: (formData?.warehouseType == 0 ? '入' :'出') + '库数量',dataIndex: 'rkNum',key: 'rkNum'},
               {title: '计量单位',dataIndex: 'measurementUnit',key: 'measurementUnit'},
-              {title: '单价',dataIndex: 'unitPrice',key: 'unitPrice'},
+              {title: '操作',dataIndex: 'action',key: 'action', slots: { customRender: 'action' }},
             ]"
             :pagination="false"
-          />
+          >
+            <template #bodyCell="{ column, record }">
+              <template v-if="column.dataIndex === 'action'">
+                <a-button type="link" primary size="small">查看</a-button>
+              </template>
+            </template>
+          </a-table>
         </a-card>
       </div>
       <template #footer></template>
@@ -273,11 +279,6 @@
 	const formRef = ref()
 	// 表单数据
 	const formData = ref({})
-  const zzTypeOptions = ref([])
-  const companyTypeOptions = ref([])
-  const companySupervisionPlaceTypeOptions = ref([])
-  const companyMainHgTypeOptions = ref([])
-  const zzTypes = ref([])
 
 	// 打开抽屉
 	const onOpen = (record, view = false) => {
@@ -289,10 +290,6 @@
         }, res)
       })
 		}
-    zzTypeOptions.value = tool.dictList('applyzztype')
-    companyTypeOptions.value = tool.dictList('qylx')
-    companySupervisionPlaceTypeOptions.value = tool.dictList('jtcs')
-    companyMainHgTypeOptions.value = tool.dictList('zhhg')
 	}
 	// 关闭抽屉
 	const onClose = () => {

+ 8 - 10
snowy-admin-web/src/views/yqyc/general-ledger/two/goods.vue

@@ -238,9 +238,16 @@
               {title: '出库数量',dataIndex: 'rkNum',key: 'rkNum'},
               {title: '计量单位',dataIndex: 'measurementUnit',key: 'measurementUnit'},
               {title: '单价',dataIndex: 'unitPrice',key: 'unitPrice'},
+              {title: '操作',dataIndex: 'action',key: 'action'},
             ]"
             :pagination="false"
-          />
+          >
+            <template #bodyCell="{ column, record }">
+              <template v-if="column.dataIndex === 'action'">
+                <a-button type="link" primary size="small">查看</a-button>
+              </template>
+            </template>
+          </a-table>
         </a-card>
       </div>
       <template #footer></template>
@@ -257,11 +264,6 @@
 	const formRef = ref()
 	// 表单数据
 	const formData = ref({})
-  const zzTypeOptions = ref([])
-  const companyTypeOptions = ref([])
-  const companySupervisionPlaceTypeOptions = ref([])
-  const companyMainHgTypeOptions = ref([])
-  const zzTypes = ref([])
 
 	// 打开抽屉
 	const onOpen = (record, view = false) => {
@@ -271,10 +273,6 @@
         formData.value = Object.assign({}, res)
       })
 		}
-    zzTypeOptions.value = tool.dictList('applyzztype')
-    companyTypeOptions.value = tool.dictList('qylx')
-    companySupervisionPlaceTypeOptions.value = tool.dictList('jtcs')
-    companyMainHgTypeOptions.value = tool.dictList('zhhg')
 	}
 	// 关闭抽屉
 	const onClose = () => {