doway-coms 1.1.87 → 1.1.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/utils/common.js +14 -0
package/package.json
CHANGED
package/packages/utils/common.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {notification } from 'ant-design-vue'
|
|
2
2
|
import store from './store'
|
|
3
|
+
import XEUtils from 'xe-utils'
|
|
3
4
|
/**
|
|
4
5
|
* 替换掩码参数字符串
|
|
5
6
|
* @param {参数字符串} paramString
|
|
@@ -474,4 +475,17 @@ export function custUnitPriceNotTaxAmount(rowInfo, taxRate, colInfo) {
|
|
|
474
475
|
colInfo.direction
|
|
475
476
|
)
|
|
476
477
|
}
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* 设置行业属性字段信息
|
|
481
|
+
* @param {字段} fields
|
|
482
|
+
*/
|
|
483
|
+
export function setIndustryVersionFields(fields){
|
|
484
|
+
let length = fields.length
|
|
485
|
+
for(let i=length-1;i>=0;i--){
|
|
486
|
+
if(XEUtils.isArray(fields[i].versions) && XEUtils.indexOf(fields[i].versions,store.getters.industryVersion)>-1){
|
|
487
|
+
continue
|
|
488
|
+
}
|
|
489
|
+
XEUtils.remove(fields,i)
|
|
490
|
+
}
|
|
477
491
|
}
|