diff --git a/src/api/Businessneeds/index.js b/src/api/Businessneeds/index.js index ffa001a..a82b2ba 100644 --- a/src/api/Businessneeds/index.js +++ b/src/api/Businessneeds/index.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 获取企业需求列表 -export const businessList=(params)=>request({ - url:"/business/dataReview/technologyDemandList", - method:'get', +export const businessList = (params) => request({ + url: "/business/dataReview/technologyDemandList", + method: 'get', params }) \ No newline at end of file diff --git a/src/api/dataApproval/enterpriseProduct.js b/src/api/dataApproval/enterpriseProduct.js new file mode 100644 index 0000000..2c97416 --- /dev/null +++ b/src/api/dataApproval/enterpriseProduct.js @@ -0,0 +1,19 @@ +import request from '@/utils/request' + +// 获取企业产品审核列表 +export const enterpriseProductApprovalList = (params) => request({ + url: "/business/dataReview/enterpriseProductList", + method: 'get', + params +}) +// 获取企业产品审核详情 +export const getProductApprovalInfo = (id) => request({ + url: `/business/dataReview/getProductInfo/${id}`, + method: 'get', +}) +// 修改企业产品审核状态 +export const updateEnterpriseApprovalProduct = (data) => request({ + url: `/business/dataReview/updateEnterpriseProduct`, + method: 'post', + data +}) \ No newline at end of file diff --git a/src/api/order/index.js b/src/api/order/index.js index 765eda3..7d45aba 100644 --- a/src/api/order/index.js +++ b/src/api/order/index.js @@ -7,6 +7,14 @@ export function casDealLogList(params) { params }); } +// 获取发票列表 +export function billList(params) { + return request({ + url: `/business/casDealLog/billList`, + method: "get", + params + }); +} export function addDealLog(data) { return request({ url: `/business/casDealLog`, diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index 6a1c278..8b7e9c9 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -68,7 +68,11 @@ const props = defineProps({ // 是否显示提示 isShowTip: { type: Boolean, - default: true + default: true, + }, + disabled: { + type: Boolean, + default: false, }, }); @@ -86,26 +90,30 @@ const showTip = computed( () => props.isShowTip && (props.fileType || props.fileSize) ); -watch(() => props.modelValue, val => { - if (val) { - // 首先将值转为数组 - const list = Array.isArray(val) ? val : props.modelValue.split(","); - // 然后将数组转为对象数组 - fileList.value = list.map(item => { - if (typeof item === "string") { - if (item.indexOf(baseUrl) === -1) { - item = { name: baseUrl + item, url: baseUrl + item }; - } else { - item = { name: item, url: item }; +watch( + () => props.modelValue, + (val) => { + if (val) { + // 首先将值转为数组 + const list = Array.isArray(val) ? val : props.modelValue.split(","); + // 然后将数组转为对象数组 + fileList.value = list.map((item) => { + if (typeof item === "string") { + if (item.indexOf(baseUrl) === -1) { + item = { name: baseUrl + item, url: baseUrl + item }; + } else { + item = { name: item, url: item }; + } } - } - return item; - }); - } else { - fileList.value = []; - return []; - } -},{ deep: true, immediate: true }); + return item; + }); + } else { + fileList.value = []; + return []; + } + }, + { deep: true, immediate: true } +); // 删除图片 function handleRemove(file, files) { @@ -116,7 +124,9 @@ function handleRemove(file, files) { function handleUploadSuccess(res) { uploadList.value.push({ name: res.fileName, url: res.url }); if (uploadList.value.length === number.value) { - fileList.value = fileList.value.filter(f => f.url !== undefined).concat(uploadList.value); + fileList.value = fileList.value + .filter((f) => f.url !== undefined) + .concat(uploadList.value); uploadList.value = []; number.value = 0; emit("update:modelValue", listToString(fileList.value)); @@ -132,7 +142,7 @@ function handleBeforeUpload(file) { if (file.name.lastIndexOf(".") > -1) { fileExtension = file.name.slice(file.name.lastIndexOf(".") + 1); } - isImg = props.fileType.some(type => { + isImg = props.fileType.some((type) => { if (file.type.indexOf(type) > -1) return true; if (fileExtension && fileExtension.indexOf(type) > -1) return true; return false; @@ -191,6 +201,6 @@ function listToString(list, separator) { \ No newline at end of file + diff --git a/src/components/WangEditor/index.vue b/src/components/WangEditor/index.vue index 2b63897..d8cce06 100644 --- a/src/components/WangEditor/index.vue +++ b/src/components/WangEditor/index.vue @@ -56,7 +56,7 @@ export default { type: String, default: "default", }, - readonly: { + readOnly: { type: Boolean, default: false, }, @@ -95,7 +95,7 @@ export default { placeholder: "请输入内容...", autoFocus: props.focus, maxLength: 140, - readOnly: props.readonly, + readOnly: props.readOnly, }; onMounted(() => { // console.log(editorRef.value.getConfig()); diff --git a/src/views/Enterpriseproducts/approval.vue b/src/views/Enterpriseproducts/approval.vue new file mode 100644 index 0000000..00a323a --- /dev/null +++ b/src/views/Enterpriseproducts/approval.vue @@ -0,0 +1,329 @@ + + + + diff --git a/src/views/Enterpriseproducts/index.vue b/src/views/Enterpriseproducts/index.vue index 641e361..a1285af 100644 --- a/src/views/Enterpriseproducts/index.vue +++ b/src/views/Enterpriseproducts/index.vue @@ -1,63 +1,182 @@ -