Commit 8f4020bd authored by 前端-甘科's avatar 前端-甘科

Merge branch '20418order' into 'v2-220418'

字段显示问题 See merge request linkseeks-design/pro-platform!638
parents 87a5e98d 5d233f05
......@@ -55,19 +55,20 @@ function DeliveryNoticeFromCreate() {
}
const type = res.orderType;
service.setFormService(type);
setType(type);
form.setFieldsValue(res)
handleAnchor(res.products.length)
handleAnchor(type, res.products.length)
setTableDataSource(res.products)
})
}, [])
const handleAnchor = (len) => {
const handleAnchor = (type, len) => {
update([
type === RoleTypeEnum.B2B ? {
...DeliveryGood,
......@@ -159,7 +160,7 @@ function DeliveryNoticeFromCreate() {
]}
label={BuyerLabel} name="member">
<RoleSelect
formProp={form}
formProp={form}
disabled={true}
formatFeils={(e) => {
return {
......@@ -218,7 +219,7 @@ function DeliveryNoticeFromCreate() {
<ReceiverAddress
hiddenBtn={true}
disabled={false}
disabled={true}
/>
</FormItem>
......
......@@ -57,6 +57,14 @@ function DeliveryNoteAddForm() {
service.getDetailById(id).then(info => {
const target = noteService.formatField(info);
target.member = {
buyerMemberId: info?.buyerMemberId,
buyerMemberName: info?.buyerMemberName,
buyerRoleId: info?.buyerRoleId,
roleType: 2,
name: info?.vendorMemberName
},
form.setFieldsValue({
deliveryOrderId: id,
...target
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment