客户信息管理

dev
张同海 2 years ago
parent 73845ec73a
commit d8541a7c15

@ -118,7 +118,7 @@
v-decorator="['WpropString', { rules: [{ required: true, message: '请选择客户属性!' }] }]" v-decorator="['WpropString', { rules: [{ required: true, message: '请选择客户属性!' }] }]"
> >
<a-select-option v-for="item in propStringData" :key="item.id" :value="item.code">{{ <a-select-option v-for="item in propStringData" :key="item.id" :value="item.code">{{
item.value item.name
}}</a-select-option> }}</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
@ -165,7 +165,7 @@
</template> </template>
<template #edit="{ row }"> <template #edit="{ row }">
<vxe-select v-model="row.roleCode" transfer> <vxe-select v-model="row.roleCode" transfer>
<vxe-option v-for="item in TypeData" :key="item.code" :value="item.code" :label="item.value"></vxe-option> <vxe-option v-for="item in TypeData" :key="item.code" :value="item.code" :label="item.name"></vxe-option>
</vxe-select> </vxe-select>
</template> </template>
</vxe-column> </vxe-column>
@ -308,7 +308,7 @@ export default {
}, },
mounted() { mounted() {
this.TypeData = this.$options.filters['dictData']('djy_cust_contact_role') this.TypeData = this.$options.filters['dictData']('djy_cust_contact_role')
this.propStringData = this.$options.filters['dictData']('consignor') this.propStringData = this.$options.filters['dictData']('djy_cust_prop')
}, },
methods: { methods: {
removeCheckboxRow() { removeCheckboxRow() {
@ -336,7 +336,7 @@ export default {
if (value) { if (value) {
this.TypeData.forEach(item => { this.TypeData.forEach(item => {
if (item.code == value) { if (item.code == value) {
RData = item.value RData = item.name
} }
}) })
} }

@ -118,7 +118,7 @@
v-decorator="['WpropString', { rules: [{ required: true, message: '请选择客户属性!' }] }]" v-decorator="['WpropString', { rules: [{ required: true, message: '请选择客户属性!' }] }]"
> >
<a-select-option v-for="item in propStringData" :key="item.id" :value="item.code">{{ <a-select-option v-for="item in propStringData" :key="item.id" :value="item.code">{{
item.value item.name
}}</a-select-option> }}</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
@ -165,7 +165,7 @@
</template> </template>
<template #edit="{ row }"> <template #edit="{ row }">
<vxe-select v-model="row.roleCode" transfer> <vxe-select v-model="row.roleCode" transfer>
<vxe-option v-for="item in TypeData" :key="item.code" :value="item.code" :label="item.value"></vxe-option> <vxe-option v-for="item in TypeData" :key="item.code" :value="item.code" :label="item.name"></vxe-option>
</vxe-select> </vxe-select>
</template> </template>
</vxe-column> </vxe-column>
@ -329,7 +329,7 @@ export default {
}) })
}) })
this.TypeData = this.$options.filters['dictData']('djy_cust_contact_role') this.TypeData = this.$options.filters['dictData']('djy_cust_contact_role')
this.propStringData = this.$options.filters['dictData']('consignor') this.propStringData = this.$options.filters['dictData']('djy_cust_prop')
}, },
methods: { methods: {
removeCheckboxRow() { removeCheckboxRow() {
@ -358,7 +358,7 @@ export default {
if (value) { if (value) {
this.TypeData.forEach(item => { this.TypeData.forEach(item => {
if (item.code == value) { if (item.code == value) {
RData = item.value RData = item.name
} }
}) })
} }

@ -307,7 +307,6 @@ export default {
: (propString = `${propString},${item.split('[')[1]}`) : (propString = `${propString},${item.split('[')[1]}`)
} }
}) })
console.log(propString)
} }
return propString return propString
}, },
@ -315,7 +314,6 @@ export default {
this.TabsEdit(row) this.TabsEdit(row)
}, },
onEdit(targetKey, action) { onEdit(targetKey, action) {
console.log(targetKey, action)
this[action](targetKey) this[action](targetKey)
}, },
remove(targetKey) { remove(targetKey) {
@ -338,7 +336,6 @@ export default {
// activeKey = panes[0].key // activeKey = panes[0].key
// } // }
// } // }
console.log(panes, activeKey)
this.panes = panes this.panes = panes
this.activeKey = activeKey this.activeKey = activeKey
}, },

Loading…
Cancel
Save