|
@@ -85,7 +85,6 @@
|
|
|
import selectRadio from "@/components/ledger/details/detail/selectRadio";
|
|
|
|
|
|
|
|
|
-
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -211,7 +210,7 @@
|
|
|
Promise.all([promise1, promise2]).then(values => {
|
|
|
this.pointData = values[0].Content;
|
|
|
this.exampleData = values[1].Content[0];
|
|
|
- debugger
|
|
|
+
|
|
|
let obj = this.deepCopy(values[1].Content[0]);
|
|
|
obj = tools.flattenKeys(obj);
|
|
|
this.instance = obj;
|
|
@@ -366,9 +365,25 @@
|
|
|
}
|
|
|
if (i.DataSource && i.DataSource.length) {
|
|
|
let source = JSON.parse(i.DataSource)
|
|
|
+ //判断输入类型
|
|
|
+ if (i.InputMode == 'D1L') {
|
|
|
+ let d1l = tools.formatDataSource(i.DataSource)
|
|
|
+ d1l.forEach(k => {
|
|
|
+ if (k.Code == this.instance[i.Path]) {
|
|
|
+ i.value = k.Name
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (i.InputMode == 'D2' || i.InputMode == 'C6') {
|
|
|
+ if (this.instance.hasOwnProperty(i.Path)) {
|
|
|
+ if (!Array.isArray(this.instance[i.Path])) {
|
|
|
+ let transArray = this.instance[i.Path].split(',')
|
|
|
+ i.value = source.filter(item => transArray.includes(item.Code)).map(item => item.Name).join(',')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
source.forEach(j => {
|
|
|
if (j.Code == this.instance[i.Path]) {
|
|
|
- console.log(j.Name)
|
|
|
+ console.log(j.Name, '===name===')
|
|
|
i.value = j.Name
|
|
|
}
|
|
|
})
|