76265492 by lihua

合约策略选择产品字段

1 parent fc69e7b8
......@@ -155,8 +155,8 @@ export const getContractDataProduct = (tenantGuid) => request({
})
/** 获取下拉数据产品列表的去重字段 */
export const getDamFieldsByProductGuid = (productGuid) => request({
url: `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/field-by-dam-guid?damGuid=${productGuid}`,
export const getDamFieldsByProductGuid = (productGuid, isTds = 'N') => request({
url: `${import.meta.env.VITE_API_NEW_PORTAL}/connector-invoke/field-by-dam-guid?damGuid=${productGuid}&isTds=${isTds}`,
method: 'post'
})
......
......@@ -310,7 +310,7 @@ const hanldeTableSelectChange = (val, scope, item) => {
scope.row.dataProductTypeName = productItem?.productTypeName;
/** 选择了产品,需要重新查询去重字段 */
if (productItem?.productGuid) {
getDamFieldsByProductGuid(productItem?.productGuid).then((res: any) => {
getDamFieldsByProductGuid(productItem?.productGuid, isDataUse.value ? 'Y' : 'N').then((res: any) => {
if (res?.code == proxy.$passCode) {
productFieldList.value = res.data || initStrategyData.value;
} else {
......@@ -702,7 +702,7 @@ onBeforeMount(() => {
productTableInfo.value.data = productData.value;
let productGuid = productData.value?.[0]?.dataProductGuid;
if (productGuid) {
getDamFieldsByProductGuid(productGuid).then((res: any) => {
getDamFieldsByProductGuid(productGuid, isDataUse.value ? 'Y' : 'N').then((res: any) => {
if (res?.code == proxy.$passCode) {
productFieldList.value = res.data || initProductFieldValue.value;
} else {
......
......@@ -27,7 +27,7 @@ import {
import {
getParamsList,
} from "@/api/modules/queryService";
import { commonPageConfig, TableColumnWidth } from "@/utils/enum";
import { commonPageConfig, TableColumnWidth, USERROLE } from "@/utils/enum";
import StrategyTable from './components/strategyTable.vue';
import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common';
import { useValidator } from "@/hooks/useValidator";
......@@ -63,6 +63,10 @@ const detailInfo: any = ref({});
const detailType = ref(route.query.type); //为null表示第一步查看,其余协整和签署等需要传递type
const isDetail = ref(route.query.isDetail == 'Y');
const isDataUse = computed(() => {
return localStorage.getItem('userRole') == USERROLE.USE;
})
const toolBtns: any = computed(() => {
let btnsArr: any = [{
label: isDetail.value ? "关闭" : '取消', value: "cancel", plain: true
......@@ -1061,7 +1065,7 @@ onBeforeMount(() => {
productTableInfo.value.data = detailInfo.value.contractSubjects || [];
let productGuid = productTableInfo.value.data?.[0]?.dataProductGuid;
if (productGuid) {
getDamFieldsByProductGuid(productGuid).then((res: any) => {
getDamFieldsByProductGuid(productGuid, isDataUse.value ? 'Y' : 'N').then((res: any) => {
if (res?.code == proxy.$passCode) {
productFieldList.value = res.data || initProductFieldValue.value;
} else {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!