zhaoxuebing 10 months ago
parent
commit
d900c00773
  1. 8
      src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts
  2. 4
      src/views/wms/basicDataManage/customerManage/customeritem/index.vue

8
src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts

@ -85,6 +85,11 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps:{
disabled: true
}
}
}, },
{ {
label: '转换率', label: '转换率',
@ -183,7 +188,8 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
value: 'TRUE', value: 'TRUE',
componentProps: { componentProps: {
inactiveValue: 'FALSE', inactiveValue: 'FALSE',
activeValue: 'TRUE' activeValue: 'TRUE',
disabled: true
} }
}, },
isSearch: true isSearch: true

4
src/views/wms/basicDataManage/customerManage/customeritem/index.vue

@ -179,6 +179,10 @@ const formsSuccess = async (formType,data) => {
const searchTableSuccess = (formField, searchField, val, formRef) => { const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
if(formField == 'itemCode'){
console.log(val);
setV['cusotmerUom'] = val[0]['uom']
}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
formRef.setValues(setV) formRef.setValues(setV)
}) })

Loading…
Cancel
Save