Browse Source

物品基础 新增 结算方式 及 隐藏供应商物品 结算方式

master
陈薪名 12 months ago
parent
commit
661d24d887
  1. 11
      src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts
  2. 24
      src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts
  3. 24
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue

11
src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts

@ -277,6 +277,17 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
width: 100
} ,
},
{
label: '结算方式',
field: 'settlementType',
dictType: DICT_TYPE.SETTLEMENT_TYPE,
dictClass: 'string',
sort: 'custom',
isTable: true,
table: {
width: 120
} ,
},
{
label: '项目',
field: 'project',

24
src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts

@ -221,18 +221,18 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '结算方式',
field: 'settlementType',
dictType: DICT_TYPE.SETTLEMENT_TYPE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 150
}
},
// {
// label: '结算方式',
// field: 'settlementType',
// dictType: DICT_TYPE.SETTLEMENT_TYPE,
// dictClass: 'string',
// isSearch: true,
// isTable: true,
// sort: 'custom',
// table: {
// width: 150
// }
// },
{
label: '是否可用',
field: 'available',

24
src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue

@ -128,17 +128,19 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
//row['uom'] = val[0]['uom']
} else {
const setV = {}
SupplieritemApi.getSupplieritemPage({
supplierCode: val[0]['supplierCode'],
itemCode: val[0]['itemCode']
}).then(res => {
if(res?.list[0]?.settlementType == 'ONLINE'){
setV['issueRecordNumber'] = val[0]['number']
formRef.setValues(setV)
} else{
message.error('找不到对应的结算方式')
}
})
setV[formField] = val[0][searchField]
// SupplieritemApi.getSupplieritemPage({
// supplierCode: val[0]['supplierCode'],
// itemCode: val[0]['itemCode']
// }).then(res => {
// if(res?.list[0]?.settlementType == 'ONLINE'){
// setV['issueRecordNumber'] = val[0]['number']
// formRef.setValues(setV)
// } else{
// message.error('')
// }
// })
formRef.setValues(setV)
}
})
}

Loading…
Cancel
Save