Commit 76fba132 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

修改物流单选择商品传错id的问题

parent 9ebed4c5
...@@ -186,7 +186,7 @@ const AddLogistics: React.FC<{}> = () => { ...@@ -186,7 +186,7 @@ const AddLogistics: React.FC<{}> = () => {
relevanceOrderCode: res.data.orderNo, relevanceOrderCode: res.data.orderNo,
voucherTime: res.data.transactionTime, voucherTime: res.data.transactionTime,
externalState: res.data.state, externalState: res.data.state,
shipmentOrderId: res.data.invoicesTypeId, shipmentOrderId: res.data.id,
relevanceOrderId: res.data.relevanceInvoicesId, relevanceOrderId: res.data.relevanceInvoicesId,
} }
form.setFieldsValue(obj); form.setFieldsValue(obj);
...@@ -332,7 +332,7 @@ const AddLogistics: React.FC<{}> = () => { ...@@ -332,7 +332,7 @@ const AddLogistics: React.FC<{}> = () => {
case 1: case 1:
case 2: case 2:
case 3: case 3:
PublicApi.getWarehouseInvoicesProductList({ ...params, invoicesId: id }).then((res: any) => { PublicApi.getWarehouseInvoicesProductList({ ...params, invoicesId: query.shipmentOrderId }).then((res: any) => {
if (res.code === 1000) { if (res.code === 1000) {
res.data.data.forEach(item => { res.data.data.forEach(item => {
item.category = item.categoryName item.category = item.categoryName
...@@ -344,21 +344,21 @@ const AddLogistics: React.FC<{}> = () => { ...@@ -344,21 +344,21 @@ const AddLogistics: React.FC<{}> = () => {
}) })
break; break;
case 4: case 4:
PublicApi.getAsReplaceGoodsPageReturnCommodityByLogistics({ ...params, dataId: id }).then(res => { PublicApi.getAsReplaceGoodsPageReturnCommodityByLogistics({ ...params, dataId: query.relevanceOrderId }).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
resolve(res.data) resolve(res.data)
} }
}) })
break; break;
case 5: case 5:
PublicApi.getAsReplaceGoodsPageReplaceCommodityByLogistics({ ...params, dataId: id }).then(res => { PublicApi.getAsReplaceGoodsPageReplaceCommodityByLogistics({ ...params, dataId: query.relevanceOrderId}).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
resolve(res.data) resolve(res.data)
} }
}) })
break; break;
case 6: case 6:
PublicApi.getAsReturnGoodsPageCommodityByLogistics({ ...params, dataId: id }).then(res => { PublicApi.getAsReturnGoodsPageCommodityByLogistics({ ...params, dataId: query.relevanceOrderId }).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
resolve(res.data) resolve(res.data)
} }
......
import React, { Component, useState, useEffect } from 'react'; import React, { Component, useState, useEffect } from 'react';
import { Modal, Button, Form } from 'antd' import { Modal, Button, Form } from 'antd'
import { import {
SchemaForm, SchemaMarkupField as Field, SchemaForm, SchemaMarkupField as Field,
createFormActions, createFormActions,
FormEffectHooks FormEffectHooks
} from '@formily/antd' } from '@formily/antd'
import { Input, Radio, FormMegaLayout, NumberPicker } from '@formily/antd-components' import { Input, Radio, FormMegaLayout, NumberPicker } from '@formily/antd-components'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
import { PATTERN_MAPS } from '@/constants/regExp' import { PATTERN_MAPS } from '@/constants/regExp'
export interface Params { export interface Params {
id: number | string; id: number | string;
dialogVisible: boolean; dialogVisible: boolean;
onCancel: Function; onCancel: Function;
onOK?: Function; onOK?: Function;
freightPrice?: any; freightPrice?: any;
dontReceive?: boolean; //默认展示 dontReceive?: boolean; //默认展示
} }
const actions = createFormActions() const actions = createFormActions()
const { onFieldChange$ } = FormEffectHooks const { onFieldChange$ } = FormEffectHooks
const comfirmDialog: React.FC<Params> = (props) => { const comfirmDialog: React.FC<Params> = (props) => {
console.log(props.dialogVisible) console.log(props.dialogVisible)
const handleCancel = () => { const handleCancel = () => {
} }
const handletOk = (values: any) => { const handletOk = (values: any) => {
let value = { ...values } let value = { ...values }
value.id = props.id value.id = props.id
if(props.freightPrice) { if(props.freightPrice) {
value.freightPrice = props.freightPrice value.freightPrice = props.freightPrice
} }
PublicApi.postLogisticsOrderWaitConfirmConfirm(value).then(res => { PublicApi.postLogisticsOrderWaitConfirmConfirm(value).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
props.onOK() props.onOK()
} }
}) }).catch(error => {
console.log(error)
} props.onOK()
useEffect(() => { })
return () => {
} }
}, []) useEffect(() => {
const useFormEffects = () => { return () => {
const { setFieldState } = createFormActions() }
onFieldChange$('status').subscribe(({ value }) => { }, [])
setFieldState('remark', state => { const useFormEffects = () => {
if (value == 4) { const { setFieldState } = createFormActions()
state.visible = false onFieldChange$('status').subscribe(({ value }) => {
} else { setFieldState('remark', state => {
state.visible = true if (value == 4) {
} state.visible = false
}) } else {
setFieldState('freightPrice', state => { state.visible = true
if (value != 4) { }
state.visible = false })
} else { setFieldState('freightPrice', state => {
state.visible = true if (value != 4) {
} state.visible = false
}) } else {
}) state.visible = true
}
} })
return ( })
<>
<Modal }
title='单据确认' return (
width={800} <>
visible={props.dialogVisible} <Modal
onOk={() => actions.submit()} title='单据确认'
onCancel={() => props.onCancel()} width={800}
destroyOnClose visible={props.dialogVisible}
afterClose={() => actions.reset()} onOk={() => actions.submit()}
okText='确定' onCancel={() => props.onCancel()}
cancelText='取消' destroyOnClose
> afterClose={() => actions.reset()}
<SchemaForm okText='确定'
labelCol={3} cancelText='取消'
components={{ >
Input, Radio: Radio.Group, TextArea: Input.TextArea, NumberPicker <SchemaForm
}} labelCol={3}
actions={actions} components={{
effects={() => useFormEffects()} Input, Radio: Radio.Group, TextArea: Input.TextArea, NumberPicker
onSubmit={(values) => handletOk(values)} }}
initialValues={{ actions={actions}
status: 4 effects={() => useFormEffects()}
}} onSubmit={(values) => handletOk(values)}
> initialValues={{
<Field status: 4
enum={ }}
[ >
{ label: '接受物流单', value: 4 }, <Field
{ label: '不接受物流单', value: 3 } enum={
]} [
name='status' { label: '接受物流单', value: 4 },
required { label: '不接受物流单', value: 3 }
x-component="Radio" ]}
/> name='status'
required
{props.dontReceive && x-component="Radio"
<> />
{/* <FormMegaLayout name='remarkOption' label='不接受原因' full required labelCol={2} labelAlign="top"> */}
<Field {props.dontReceive &&
title='不接受原因' <>
name="remark" {/* <FormMegaLayout name='remarkOption' label='不接受原因' full required labelCol={2} labelAlign="top"> */}
x-component="TextArea" <Field
required title='不接受原因'
x-component-props={{ name="remark"
placeholder: '在此输入你的内容,最多60个汉字' x-component="TextArea"
}} required
x-mega-prop={{ x-component-props={{
labelAlign: 'left' placeholder: '在此输入你的内容,最多60个汉字'
}} }}
x-rules={{ x-mega-prop={{
max: 60, labelAlign: 'left'
// maximum:10,//最大数值 }}
message: '原因最多60个汉字' x-rules={{
}} max: 60,
/> // maximum:10,//最大数值
message: '原因最多60个汉字'
}}
</> />
}
</SchemaForm>
</Modal> </>
</> }
) </SchemaForm>
} </Modal>
comfirmDialog.defaultProps = { </>
dontReceive: true )
} }
export default comfirmDialog comfirmDialog.defaultProps = {
\ No newline at end of file dontReceive: true
}
export default comfirmDialog
...@@ -180,6 +180,7 @@ const company: React.FC<parmas> = (props) => { ...@@ -180,6 +180,7 @@ const company: React.FC<parmas> = (props) => {
let { memberId, roleId, name } = selectRow let { memberId, roleId, name } = selectRow
menuForm.setFieldsValue({ menuForm.setFieldsValue({
companyMemberId: memberId, companyMemberId: memberId,
companyRoleId: roleId,
name: name name: name
}) })
setsVisible(false) setsVisible(false)
......
import { ISchema} from '@formily/antd' import { ISchema} from '@formily/antd'
import { FORM_FILTER_PATH } from '@/formSchema/const' import { FORM_FILTER_PATH } from '@/formSchema/const'
import {TimeList, filterExternalStateLabelList, filterInternalStateLabelList} from '../../common/statusList' import {TimeList, filterExternalStateLabelList, filterInternalStateLabelList} from '../../common/statusList'
import TranactionRoute from 'config/routes/tranactionRoute' import TranactionRoute from 'config/routes/tranactionRoute'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
/** /**
* @description: 公用 * @description: 公用
* @param {type} * @param {type}
* @return {type} * @return {type}
*/ */
export const commonEnquieryOfferSchema: ISchema = { export const commonEnquieryOfferSchema: ISchema = {
type:'object', type:'object',
properties:{ properties:{
megalayout:{ megalayout:{
type:'object', type:'object',
"x-component":'mega-layout', "x-component":'mega-layout',
"x-component-props":{ "x-component-props":{
grid:true grid:true
}, },
properties:{ properties:{
ctl:{ ctl:{
type:'object', type:'object',
"x-component":"Children", "x-component":"Children",
"x-component-props":{ "x-component-props":{
children:"{{controllerBtns}}" children:"{{controllerBtns}}"
} }
}, },
quotationNo:{//报价单号 quotationNo:{//报价单号
type:'string', type:'string',
"x-component":"Search", "x-component":"Search",
"x-mega-props":{ "x-mega-props":{
}, },
"x-component-props":{ "x-component-props":{
placeholder:'报价单搜索' placeholder:'报价单搜索'
} }
} }
} }
}, },
[FORM_FILTER_PATH]:{ [FORM_FILTER_PATH]:{
type:'object', type:'object',
"x-component":"flex-layout", "x-component":"flex-layout",
"x-component-props":{ "x-component-props":{
rowStyle:{ rowStyle:{
flexWrap:'nowrap' flexWrap:'nowrap'
}, },
colStyle:{ colStyle:{
marginLeft: 20 marginLeft: 20
} }
}, },
properties:{ properties:{
PRO_LAYOUT:{ PRO_LAYOUT:{
type:'object', type:'object',
"x-component":'mega-layout', "x-component":'mega-layout',
"x-mega-props":{ "x-mega-props":{
span: 5 span: 5
}, },
"x-component-props":{ "x-component-props":{
inline: true inline: true
}, },
properties:{ properties:{
inquiryListNo:{//需求单号 inquiryListNo:{//需求单号
type:'string', type:'string',
"x-mega-props":{ "x-mega-props":{
}, },
"x-component-props":{ "x-component-props":{
placeholder:'询价单号' placeholder:'询价单号'
} }
}, },
details:{ details:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'询价单摘要' placeholder:'询价单摘要'
} }
}, },
memberName:{ memberName:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'被询价会员' placeholder:'被询价会员'
} }
}, },
// category:{ // category:{
// type:'string', // type:'string',
// 'x-component': 'CustomInputSearch', // 'x-component': 'CustomInputSearch',
// 'x-component-props': { // 'x-component-props': {
// placeholder: '商品品类', // placeholder: '商品品类',
// showSearch: true, // showSearch: true,
// showArrow: true, // showArrow: true,
// defaultActiveFirstOption: false, // defaultActiveFirstOption: false,
// filterOption: false, // filterOption: false,
// notFoundContent: null, // notFoundContent: null,
// style: { width: '174px', lineHeight: '32px' }, // style: { width: '174px', lineHeight: '32px' },
// searchValue: null, // searchValue: null,
// dataoption: [] // dataoption: []
// } // }
// // "x-component-props":{ // // "x-component-props":{
// // placeholder:'请选择品类' // // placeholder:'请选择品类'
// // }, // // },
// // enum:[] // // enum:[]
// }, // },
voucherTime:{ voucherTime:{
type:'string', type:'string',
default: 0, default: 0,
"x-component-props":{ "x-component-props":{
placeholder:'请选择单据时间' placeholder:'请选择单据时间'
}, },
enum: TimeList enum: TimeList
}, },
} }
}, },
sumbit:{ sumbit:{
"x-component":'Submit', "x-component":'Submit',
"x-mega-props":{ "x-mega-props":{
span:1 span:1
}, },
"x-component-props":{ "x-component-props":{
children:'查询' children:'查询'
} }
} }
} }
} }
} }
} }
/** /**
* @description: 需求报价-需求单查询 * @description: 需求报价-需求单查询
* @param {type} * @param {type}
* @return {type} * @return {type}
*/ */
export const enquierySearchSchema: ISchema = { export const enquierySearchSchema: ISchema = {
type:'object', type:'object',
properties:{ properties:{
megalayout:{ megalayout:{
type:'object', type:'object',
"x-component":'mega-layout', "x-component":'mega-layout',
properties:{ properties:{
requisitionFormNo:{ requisitionFormNo:{
type:'string', type:'string',
"x-component":"Search", "x-component":"Search",
"x-mega-props":{ "x-mega-props":{
}, },
"x-component-props":{ "x-component-props":{
placeholder:'搜索', placeholder:'搜索',
align: 'flex-left', align: 'flex-left',
} }
} }
} }
}, },
[FORM_FILTER_PATH]:{ [FORM_FILTER_PATH]:{
type:'object', type:'object',
"x-component":"flex-layout", "x-component":"flex-layout",
"x-component-props":{ "x-component-props":{
rowStyle:{ rowStyle:{
justifyContent: 'flex-start', justifyContent: 'flex-start',
flexWrap:'nowrap' flexWrap:'nowrap'
}, },
colStyle:{//改变间隔 colStyle:{//改变间隔
marginRight: 20 marginRight: 20
} }
}, },
properties:{ properties:{
PRO_LAYOUT:{ PRO_LAYOUT:{
type:'object', type:'object',
"x-component":'mega-layout', "x-component":'mega-layout',
"x-mega-props":{ "x-mega-props":{
span: 5 span: 5
}, },
"x-component-props":{ "x-component-props":{
inline: true inline: true
}, },
properties:{ properties:{
inquiryListMemberName:{ memberName:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'询价会员' placeholder:'询价会员'
} }
}, },
// category:{ // category:{
// type:'string', // type:'string',
// 'x-component': 'CustomInputSearch', // 'x-component': 'CustomInputSearch',
// 'x-component-props': { // 'x-component-props': {
// placeholder: '商品品类', // placeholder: '商品品类',
// showSearch: true, // showSearch: true,
// showArrow: true, // showArrow: true,
// defaultActiveFirstOption: false, // defaultActiveFirstOption: false,
// filterOption: false, // filterOption: false,
// notFoundContent: null, // notFoundContent: null,
// style: { width: '174px', lineHeight: '32px' }, // style: { width: '174px', lineHeight: '32px' },
// searchValue: null, // searchValue: null,
// dataoption: [] // dataoption: []
// } // }
// // "x-component-props":{ // // "x-component-props":{
// // placeholder:'请选择品类' // // placeholder:'请选择品类'
// // }, // // },
// // enum:[] // // enum:[]
// }, // },
voucherTime:{ voucherTime:{
type:'string', type:'string',
default: 0, default: 0,
"x-component-props":{ "x-component-props":{
placeholder:'请选择单据时间' placeholder:'请选择单据时间'
}, },
enum: TimeList enum: TimeList
}, },
} }
}, },
sumbit:{ sumbit:{
"x-component":'Submit', "x-component":'Submit',
"x-mega-props":{ "x-mega-props":{
span: 1 span: 1
}, },
"x-component-props":{ "x-component-props":{
children:'查询' children:'查询'
} }
} }
} }
} }
} }
} }
/** /**
* @description: 需求报价-报价查询 * @description: 需求报价-报价查询
* @param {type} * @param {type}
* @return {type} * @return {type}
*/ */
export const enquieryOfferSearchSchema: ISchema = { export const enquieryOfferSearchSchema: ISchema = {
type:'object', type:'object',
properties:{ properties:{
megalayout:{ megalayout:{
type:'object', type:'object',
"x-component":'mega-layout', "x-component":'mega-layout',
properties:{ properties:{
inquiryListNo:{ inquiryListNo:{
type:'string', type:'string',
"x-component":"Search", "x-component":"Search",
"x-mega-props":{ "x-mega-props":{
}, },
"x-component-props":{ "x-component-props":{
placeholder:'询价单号搜索', placeholder:'询价单号搜索',
align: 'flex-left', align: 'flex-left',
} }
} }
} }
}, },
[FORM_FILTER_PATH]:{ [FORM_FILTER_PATH]:{
type:'object', type:'object',
"x-component":"flex-layout", "x-component":"flex-layout",
"x-component-props":{ "x-component-props":{
rowStyle:{ rowStyle:{
justifyContent: 'flex-start', justifyContent: 'flex-start',
flexWrap:'nowrap' flexWrap:'nowrap'
}, },
colStyle:{//改变间隔 colStyle:{//改变间隔
marginRight: 20 marginRight: 20
} }
}, },
properties:{ properties:{
PRO_LAYOUT:{ PRO_LAYOUT:{
type:'object', type:'object',
"x-component":'mega-layout', "x-component":'mega-layout',
"x-mega-props":{ "x-mega-props":{
span: 5 span: 5
}, },
"x-component-props":{ "x-component-props":{
inline: true inline: true
}, },
properties:{ properties:{
memberName:{ memberName:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'被询价会员' placeholder:'被询价会员'
}, },
}, },
details:{ details:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'询价单摘要' placeholder:'询价单摘要'
}, },
}, },
voucherTime:{ voucherTime:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'请选择单据时间' placeholder:'请选择单据时间'
}, },
enum: TimeList enum: TimeList
}, },
externalState:{ externalState:{
type:'string', type:'string',
"x-component": 'Select', "x-component": 'Select',
"x-component-props":{ "x-component-props":{
placeholder:'外部状态', placeholder:'外部状态',
className: 'fixed-ant-selected-down', // 该类强制将显示的下拉框出现在select下, 只有这里出现问题, ?? className: 'fixed-ant-selected-down', // 该类强制将显示的下拉框出现在select下, 只有这里出现问题, ??
fetchSearch: PublicApi.getOrderProductInquiryExternalStateEnum, fetchSearch: PublicApi.getOrderProductInquiryExternalStateEnum,
style: { style: {
width: 160 width: 160
} }
}, },
} }
} }
}, },
sumbit:{ sumbit:{
"x-component":'Submit', "x-component":'Submit',
"x-mega-props":{ "x-mega-props":{
span: 1 span: 1
}, },
"x-component-props":{ "x-component-props":{
children:'查询' children:'查询'
} }
} }
} }
} }
} }
} }
/** /**
* @description: 报价单新增编辑-需求单查询 * @description: 报价单新增编辑-需求单查询
* @param {type} * @param {type}
* @return {type} * @return {type}
*/ */
export const dialogEqformSearch: ISchema = { export const dialogEqformSearch: ISchema = {
type:'object', type:'object',
properties:{ properties:{
megalayout:{ megalayout:{
type:'object', type:'object',
"x-component":'mega-layout', "x-component":'mega-layout',
properties:{ properties:{
requisitionFormNo:{ requisitionFormNo:{
type:'string', type:'string',
"x-component":"Search", "x-component":"Search",
"x-mega-props":{ "x-mega-props":{
}, },
"x-component-props":{ "x-component-props":{
placeholder:'需求单号', placeholder:'需求单号',
align: 'flex-left', align: 'flex-left',
} }
} }
} }
}, },
[FORM_FILTER_PATH]:{ [FORM_FILTER_PATH]:{
type:'object', type:'object',
"x-component":"flex-layout", "x-component":"flex-layout",
"x-component-props":{ "x-component-props":{
rowStyle:{ rowStyle:{
justifyContent: 'flex-start', justifyContent: 'flex-start',
flexWrap:'nowrap' flexWrap:'nowrap'
}, },
colStyle:{//改变间隔 colStyle:{//改变间隔
marginRight: 20 marginRight: 20
} }
}, },
properties:{ properties:{
PRO_LAYOUT:{ PRO_LAYOUT:{
type:'object', type:'object',
"x-component":'mega-layout', "x-component":'mega-layout',
"x-mega-props":{ "x-mega-props":{
span: 5 span: 5
}, },
"x-component-props":{ "x-component-props":{
inline: true inline: true
}, },
properties:{ properties:{
details:{ details:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'需求摘要' placeholder:'需求摘要'
} }
}, },
demandMembers:{ demandMembers:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'需求会员' placeholder:'需求会员'
} }
}, },
voucherTime:{ voucherTime:{
type:'string', type:'string',
default: 0, default: 0,
"x-component-props":{ "x-component-props":{
placeholder:'请选择单据时间' placeholder:'请选择单据时间'
}, },
enum: TimeList enum: TimeList
}, },
} }
}, },
sumbit:{ sumbit:{
"x-component":'Submit', "x-component":'Submit',
"x-mega-props":{ "x-mega-props":{
span: 1 span: 1
}, },
"x-component-props":{ "x-component-props":{
children:'查询' children:'查询'
} }
} }
} }
} }
} }
} }
/** /**
* @description: 报价单查询-搜索 * @description: 报价单查询-搜索
* @param {type} * @param {type}
* @return {type} * @return {type}
*/ */
export const quoteFormSearch: ISchema = { export const quoteFormSearch: ISchema = {
type:'object', type:'object',
properties:{ properties:{
megalayout:{ megalayout:{
type:'object', type:'object',
"x-component":'mega-layout', "x-component":'mega-layout',
properties:{ properties:{
quotationNo:{ quotationNo:{
type:'string', type:'string',
"x-component":"Search", "x-component":"Search",
"x-mega-props":{ "x-mega-props":{
}, },
"x-component-props":{ "x-component-props":{
placeholder:'报价单号', placeholder:'报价单号',
align: 'flex-left', align: 'flex-left',
} }
} }
} }
}, },
[FORM_FILTER_PATH]:{ [FORM_FILTER_PATH]:{
type:'object', type:'object',
"x-component":"flex-layout", "x-component":"flex-layout",
"x-component-props":{ "x-component-props":{
rowStyle:{ rowStyle:{
justifyContent: 'flex-start', justifyContent: 'flex-start',
flexWrap:'nowrap' flexWrap:'nowrap'
}, },
colStyle:{//改变间隔 colStyle:{//改变间隔
marginRight: 20 marginRight: 20
} }
}, },
properties:{ properties:{
PRO_LAYOUT:{ PRO_LAYOUT:{
type:'object', type:'object',
"x-component":'mega-layout', "x-component":'mega-layout',
"x-mega-props":{ "x-mega-props":{
span: 5 span: 5
}, },
"x-component-props":{ "x-component-props":{
inline: true inline: true
}, },
properties:{ properties:{
inquiryListNo:{ inquiryListNo:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'询价单号' placeholder:'询价单号'
} }
}, },
inquiryListMemberName:{ memberName:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'询价会员' placeholder:'询价会员'
} }
}, },
details:{ details:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'报价单摘要' placeholder:'报价单摘要'
} }
}, },
voucherTime:{ voucherTime:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'请选择单据时间' placeholder:'请选择单据时间'
}, },
enum: TimeList enum: TimeList
}, },
externalState:{ externalState:{
type:'string', type:'string',
"x-component": 'Select', "x-component": 'Select',
"x-component-props":{ "x-component-props":{
placeholder:'外部状态', placeholder:'外部状态',
className: 'fixed-ant-selected-down', // 该类强制将显示的下拉框出现在select下, 只有这里出现问题, ?? className: 'fixed-ant-selected-down', // 该类强制将显示的下拉框出现在select下, 只有这里出现问题, ??
fetchSearch: PublicApi.getOrderProductInquiryExternalStateEnum, fetchSearch: PublicApi.getOrderProductInquiryExternalStateEnum,
style: { style: {
width: 160 width: 160
} }
}, },
}, },
interiorState :{ interiorState :{
type:'string', type:'string',
"x-component": 'Select', "x-component": 'Select',
"x-component-props":{ "x-component-props":{
placeholder:'内部状态', placeholder:'内部状态',
className: 'fixed-ant-selected-down', // 该类强制将显示的下拉框出现在select下, 只有这里出现问题, ?? className: 'fixed-ant-selected-down', // 该类强制将显示的下拉框出现在select下, 只有这里出现问题, ??
fetchSearch: PublicApi.getOrderProductInquiryInteriorStateEnum, fetchSearch: PublicApi.getOrderProductInquiryInteriorStateEnum,
style: { style: {
width: 160 width: 160
} }
}, },
}, },
} }
}, },
sumbit:{ sumbit:{
"x-component":'Submit', "x-component":'Submit',
"x-mega-props":{ "x-mega-props":{
span: 1 span: 1
}, },
"x-component-props":{ "x-component-props":{
children:'查询' children:'查询'
} }
} }
} }
} }
} }
} }
import { ISchema } from '@formily/antd' import { ISchema } from '@formily/antd'
import { FORM_FILTER_PATH } from '@/formSchema/const' import { FORM_FILTER_PATH } from '@/formSchema/const'
import { TimeList, filterExternalStateLabelList, filterInternalStateLabelList } from '../../common/statusList' import { TimeList, filterExternalStateLabelList, filterInternalStateLabelList } from '../../common/statusList'
import TranactionRoute from 'config/routes/tranactionRoute' import TranactionRoute from 'config/routes/tranactionRoute'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
/** /**
* @description: 待审核询价单 * @description: 待审核询价单
* @param {type} * @param {type}
* @return {type} * @return {type}
*/ */
export const pendingReviewSchema: ISchema = { export const pendingReviewSchema: ISchema = {
type: 'object', type: 'object',
properties: { properties: {
megalayout: { megalayout: {
type: 'object', type: 'object',
"x-component": 'mega-layout', "x-component": 'mega-layout',
"x-component-props": { "x-component-props": {
grid: true grid: true
}, },
properties: { properties: {
ctl: { ctl: {
type: 'object', type: 'object',
"x-component": "Children", "x-component": "Children",
"x-component-props": { "x-component-props": {
children: "{{controllerBtns}}" children: "{{controllerBtns}}"
} }
}, },
inquiryListNo: {//报价单号 inquiryListNo: {//报价单号
type: 'string', type: 'string',
"x-component": "Search", "x-component": "Search",
"x-mega-props": { "x-mega-props": {
}, },
"x-component-props": { "x-component-props": {
placeholder: '报价单搜索' placeholder: '报价单搜索'
} }
} }
} }
}, },
[FORM_FILTER_PATH]: { [FORM_FILTER_PATH]: {
type: 'object', type: 'object',
"x-component": "flex-layout", "x-component": "flex-layout",
"x-component-props": { "x-component-props": {
rowStyle: { rowStyle: {
flexWrap: 'nowrap' flexWrap: 'nowrap'
}, },
colStyle: { colStyle: {
marginLeft: 20 marginLeft: 20
} }
}, },
properties: { properties: {
PRO_LAYOUT: { PRO_LAYOUT: {
type: 'object', type: 'object',
"x-component": 'mega-layout', "x-component": 'mega-layout',
"x-mega-props": { "x-mega-props": {
span: 5 span: 5
}, },
"x-component-props": { "x-component-props": {
inline: true inline: true
}, },
properties: { properties: {
details: { details: {
type: 'string', type: 'string',
"x-component-props": { "x-component-props": {
placeholder: '询价单摘要' placeholder: '询价单摘要'
} }
}, },
memberName: { memberName: {
type: 'string', type: 'string',
"x-component-props": { "x-component-props": {
placeholder: '被询价会员' placeholder: '被询价会员'
} }
}, },
voucherTime: { voucherTime: {
type: 'string', type: 'string',
default: 0, default: 0,
"x-component-props": { "x-component-props": {
placeholder: '请选择单据时间' placeholder: '请选择单据时间'
}, },
enum: TimeList enum: TimeList
}, },
} }
}, },
sumbit: { sumbit: {
"x-component": 'Submit', "x-component": 'Submit',
"x-mega-props": { "x-mega-props": {
span: 1 span: 1
}, },
"x-component-props": { "x-component-props": {
children: '查询' children: '查询'
} }
} }
} }
} }
} }
} }
/** /**
* @description: 询价报价 * @description: 询价报价
* @param {type} * @param {type}
* @return {type} * @return {type}
*/ */
export const inquiryQuoteSchema: ISchema = { export const inquiryQuoteSchema: ISchema = {
type: 'object', type: 'object',
properties: { properties: {
megalayout: { megalayout: {
type: 'object', type: 'object',
"x-component": 'mega-layout', "x-component": 'mega-layout',
"x-component-props": { "x-component-props": {
grid: true grid: true
}, },
properties: { properties: {
ctl: { ctl: {
type: 'object', type: 'object',
"x-component": "Children", "x-component": "Children",
"x-component-props": { "x-component-props": {
children: "{{controllerBtns}}" children: "{{controllerBtns}}"
} }
}, },
quotationNo: {//报价单号 quotationNo: {//报价单号
type: 'string', type: 'string',
"x-component": "Search", "x-component": "Search",
"x-mega-props": { "x-mega-props": {
}, },
"x-component-props": { "x-component-props": {
placeholder: '报价单号' placeholder: '报价单号'
} }
} }
} }
}, },
[FORM_FILTER_PATH]: { [FORM_FILTER_PATH]: {
type: 'object', type: 'object',
"x-component": "flex-layout", "x-component": "flex-layout",
"x-component-props": { "x-component-props": {
rowStyle: { rowStyle: {
flexWrap: 'nowrap' flexWrap: 'nowrap'
}, },
colStyle: { colStyle: {
marginLeft: 20 marginLeft: 20
} }
}, },
properties: { properties: {
PRO_LAYOUT: { PRO_LAYOUT: {
type: 'object', type: 'object',
"x-component": 'mega-layout', "x-component": 'mega-layout',
"x-mega-props": { "x-mega-props": {
span: 5 span: 5
}, },
"x-component-props": { "x-component-props": {
inline: true inline: true
}, },
properties: { properties: {
inquiryListNo: { inquiryListNo: {
type: 'string', type: 'string',
"x-component-props": { "x-component-props": {
placeholder: '询价单号' placeholder: '询价单号'
} }
}, },
details: { details: {
type: 'string', type: 'string',
"x-component-props": { "x-component-props": {
placeholder: '报价单摘要' placeholder: '报价单摘要'
} }
}, },
inquiryListMemberName: { memberName: {
type: 'string', type: 'string',
"x-component-props": { "x-component-props": {
placeholder: '询价会员' placeholder: '询价会员'
} }
}, },
voucherTime: { voucherTime: {
type: 'string', type: 'string',
"x-component-props": { "x-component-props": {
placeholder: '请选择单据时间' placeholder: '请选择单据时间'
}, },
enum: TimeList enum: TimeList
}, },
externalState:{ externalState:{
type:'string', type:'string',
"x-component": 'Select', "x-component": 'Select',
"x-component-props":{ "x-component-props":{
placeholder:'外部状态', placeholder:'外部状态',
className: 'fixed-ant-selected-down', // 该类强制将显示的下拉框出现在select下, 只有这里出现问题, ?? className: 'fixed-ant-selected-down', // 该类强制将显示的下拉框出现在select下, 只有这里出现问题, ??
fetchSearch: PublicApi.getOrderProductInquiryExternalStateEnum, fetchSearch: PublicApi.getOrderProductInquiryExternalStateEnum,
style: { style: {
width: 160 width: 160
} }
}, },
}, },
interiorState :{ interiorState :{
type:'string', type:'string',
"x-component": 'Select', "x-component": 'Select',
"x-component-props":{ "x-component-props":{
placeholder:'内部状态', placeholder:'内部状态',
className: 'fixed-ant-selected-down', // 该类强制将显示的下拉框出现在select下, 只有这里出现问题, ?? className: 'fixed-ant-selected-down', // 该类强制将显示的下拉框出现在select下, 只有这里出现问题, ??
fetchSearch: PublicApi.getOrderProductInquiryInteriorStateEnum, fetchSearch: PublicApi.getOrderProductInquiryInteriorStateEnum,
style: { style: {
width: 160 width: 160
} }
}, },
}, },
} }
}, },
sumbit: { sumbit: {
"x-component": 'Submit', "x-component": 'Submit',
"x-mega-props": { "x-mega-props": {
span: 1 span: 1
}, },
"x-component-props": { "x-component-props": {
children: '查询' children: '查询'
} }
} }
} }
} }
} }
} }
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