Browse Source

bug 修复

lilei 2 năm trước cách đây
mục cha
commit
b4415e2869

+ 1 - 1
src/views/basicData/transferTypeManagement/editModal.vue

@@ -144,7 +144,7 @@ export default {
       if (this.isShow && newValue) { //  编辑
         this.form.name = this.nowData && this.nowData.name ? this.nowData.name : ''
         this.form.allocateCategory = this.nowData && this.nowData.superior ? this.nowData.superior.allocateTypeSn : ''
-        this.allocateType = [this.form.allocateCategory, this.form.allocateCategory]
+        this.allocateType = [this.nowData.superior.superior.allocateTypeSn, this.form.allocateCategory]
       } else { //  添加
         this.form.name = ''
         this.form.allocateCategory = undefined

+ 1 - 1
src/views/basicData/transferTypeManagement/list.vue

@@ -63,7 +63,7 @@ export default {
       columns: [
         { title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
         { title: '创建时间', dataIndex: 'createDate', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '费用类型', dataIndex: 'superior.name', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '费用类型', dataIndex: 'superior.superior.name', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '调拨类别', dataIndex: 'superior.name', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '调拨类型名称', dataIndex: 'name', align: 'center', width: '25%', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: '15%', align: 'center' }