Browse Source

BUG修改

master
parent
commit
aadbbe2e76
  1. 5
      src/views/eam/item/itemAccounts/itemAccounts.data.ts
  2. 16
      src/views/eam/item/itemApplyMain/index.vue

5
src/views/eam/item/itemAccounts/itemAccounts.data.ts

@ -164,11 +164,12 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([
field: 'itemDO.financer', field: 'itemDO.financer',
sort: 'custom', sort: 'custom',
}, },
{ {
label: '是否以旧换新', label: '是否以旧换新',
field: 'itemDO.isRadeIn', field: 'itemDO.isRadeIn',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: false,
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -188,6 +189,8 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',

16
src/views/eam/item/itemApplyMain/index.vue

@ -31,7 +31,7 @@
:tableAllSchemas="ItemApplyDetail.allSchemas" :tableFormRules="ItemApplyDetailRules" :tableData="tableData" :tableAllSchemas="ItemApplyDetail.allSchemas" :tableFormRules="ItemApplyDetailRules" :tableData="tableData"
:apiUpdate="ItemApplyMainApi.updateItemApplyMain" :apiCreate="ItemApplyMainApi.createItemApplyMain" :apiUpdate="ItemApplyMainApi.updateItemApplyMain" :apiCreate="ItemApplyMainApi.createItemApplyMain"
:isBusiness="true" @handleAddTable="handleAddTable" @handleDeleteTable="handleDeleteTable" :isBusiness="true" @handleAddTable="handleAddTable" @handleDeleteTable="handleDeleteTable"
@searchTableSuccess="searchTableSuccess" @submitForm="submitForm" /> @searchTableSuccess="searchTableSuccess" @submitForm="submitForm" @formSelectChange='formSelectChange' />
<!-- 详情 --> <!-- 详情 -->
<Detail ref="detailRef" :isBasic="false" :allSchemas="ItemApplyMain.allSchemas" <Detail ref="detailRef" :isBasic="false" :allSchemas="ItemApplyMain.allSchemas"
@ -78,7 +78,6 @@
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(async () => { nextTick(async () => {
if (type == 'tableForm') { if (type == 'tableForm') {
console.log(formField);
// //
if (formField == 'itemNumber') { if (formField == 'itemNumber') {
let subList = tableData.value let subList = tableData.value
@ -102,7 +101,7 @@
} }
if (formField == 'deviceNumber') { if (formField == 'deviceNumber') {
row['deviceNumber'] = val[0]['number'] row['deviceNumber'] = val[0]['number']
} }
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
@ -122,9 +121,14 @@
setV['available'] = val[0]['available'] setV['available'] = val[0]['available']
} else if (formField == 'deviceNumber') { } else if (formField == 'deviceNumber') {
setV['deviceNumber'] = val[0]['number'] setV['deviceNumber'] = val[0]['number']
} }
formRef.setValues(setV) formRef.setValues(setV)
}) })
}
const formSelectChange = (field, val, row) => {
if (field == 'type') {
row['deviceNumber'] = ""
}
} }
// //
@ -167,9 +171,7 @@
} else if (val == 'refresh') { // } else if (val == 'refresh') { //
getList() getList()
} else if (val == 'filtrate') { // } else if (val == 'filtrate') { //
} else { // }
console.log('其他按钮', item)
}
} }
// //

Loading…
Cancel
Save