数据定价更新
Showing
4 changed files
with
6 additions
and
5 deletions
| ... | @@ -120,6 +120,9 @@ export const filterCascaderData = (data, field, val, type = 'disabled') => { | ... | @@ -120,6 +120,9 @@ export const filterCascaderData = (data, field, val, type = 'disabled') => { |
| 120 | } | 120 | } |
| 121 | // 数字千分位 保留两位小数 | 121 | // 数字千分位 保留两位小数 |
| 122 | export const changeNum = (num, fixed = 0, round = false) => { | 122 | export const changeNum = (num, fixed = 0, round = false) => { |
| 123 | if(num === '' || num === null || num === undefined){ | ||
| 124 | return ''; | ||
| 125 | } | ||
| 123 | num = parseFloat(num); | 126 | num = parseFloat(num); |
| 124 | if (round) { | 127 | if (round) { |
| 125 | let parts = num.toFixed(fixed).split(".") | 128 | let parts = num.toFixed(fixed).split(".") | ... | ... |
| ... | @@ -203,7 +203,7 @@ const getDiseaseData = () => { | ... | @@ -203,7 +203,7 @@ const getDiseaseData = () => { |
| 203 | const getDataCatalog = () => { | 203 | const getDataCatalog = () => { |
| 204 | return getDamCatalogList({ dataType: userData.superTubeFlag == 'Y' ? "P" : "D", sceneType: "D" }).then((res: any) => { | 204 | return getDamCatalogList({ dataType: userData.superTubeFlag == 'Y' ? "P" : "D", sceneType: "D" }).then((res: any) => { |
| 205 | if (res.code == proxy.$passCode) { | 205 | if (res.code == proxy.$passCode) { |
| 206 | const data = res.data.records || []; | 206 | const data = res.data || []; |
| 207 | typeMap.value.dataResourceGuid = JSON.parse(JSON.stringify(data)); | 207 | typeMap.value.dataResourceGuid = JSON.parse(JSON.stringify(data)); |
| 208 | let item = baseConfigFormItems.value.find(item => item.field == 'dataResourceGuid'); | 208 | let item = baseConfigFormItems.value.find(item => item.field == 'dataResourceGuid'); |
| 209 | if (item) { | 209 | if (item) { | ... | ... |
| ... | @@ -730,7 +730,7 @@ const setSignatoryTableInfo = (row, isEdit = false) => { | ... | @@ -730,7 +730,7 @@ const setSignatoryTableInfo = (row, isEdit = false) => { |
| 730 | }, | 730 | }, |
| 731 | { | 731 | { |
| 732 | label: "默认值", field: "defaultValue", width: 180, align: 'right', getName: (scope) => { | 732 | label: "默认值", field: "defaultValue", width: 180, align: 'right', getName: (scope) => { |
| 733 | return scope.row.defaultValue !== null && scope.row.defaultValue !== '' ? changeNum(scope.row.defaultValue, 2) : '-' | 733 | return changeNum(scope.row.defaultValue, 2) || '-' |
| 734 | } | 734 | } |
| 735 | }, | 735 | }, |
| 736 | { | 736 | { | ... | ... |
| ... | @@ -667,9 +667,6 @@ const clickCreateGroup = () => { | ... | @@ -667,9 +667,6 @@ const clickCreateGroup = () => { |
| 667 | formItems.value.map(item => { | 667 | formItems.value.map(item => { |
| 668 | if (item.field === 'orderNum') { | 668 | if (item.field === 'orderNum') { |
| 669 | item.default = null; | 669 | item.default = null; |
| 670 | } else if(item.field === 'damGuid'){ | ||
| 671 | item.options = productList.value; | ||
| 672 | item.default = ''; | ||
| 673 | } else { | 670 | } else { |
| 674 | item.default = ""; | 671 | item.default = ""; |
| 675 | } | 672 | } |
| ... | @@ -956,6 +953,7 @@ const getProducts = () => { | ... | @@ -956,6 +953,7 @@ const getProducts = () => { |
| 956 | if (res.code == proxy.$passCode) { | 953 | if (res.code == proxy.$passCode) { |
| 957 | const data = res.data || []; | 954 | const data = res.data || []; |
| 958 | productList.value = data; | 955 | productList.value = data; |
| 956 | formItems.value.at(-2).options = data; | ||
| 959 | } | 957 | } |
| 960 | }) | 958 | }) |
| 961 | } | 959 | } | ... | ... |
-
Please register or sign in to post a comment