Commit f65e49a0 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫
parents 8f5d3662 069a80d8
...@@ -193,7 +193,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => { ...@@ -193,7 +193,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => {
dataIndex: 'logisticsNo', dataIndex: 'logisticsNo',
align: 'center', align: 'center',
key: 'logisticsNo', key: 'logisticsNo',
render: text => <a href="">{text}</a> render: text => <a href={`/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitSearchList/detail?code=${data.orderNo}`}>{text}</a>
}, },
{ {
title: '物流公司', title: '物流公司',
...@@ -206,7 +206,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => { ...@@ -206,7 +206,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => {
dataIndex: 'storageNo', dataIndex: 'storageNo',
align: 'center', align: 'center',
key: 'storageNo', key: 'storageNo',
render: text => <a href="">{text}</a> render: text => <a href={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?storageNo=${text}`}>{text}</a>
}, },
{ {
title: '入库时间', title: '入库时间',
......
...@@ -98,22 +98,22 @@ const OrderPayTabs:React.FC<OrderPayTabsProps> = (props) => { ...@@ -98,22 +98,22 @@ const OrderPayTabs:React.FC<OrderPayTabsProps> = (props) => {
processEnum === 24 && data && processEnum === 24 && data &&
<Col span={12}> <Col span={12}>
<MellowCard title="发货信息" fullHeight> <MellowCard title="发货信息" fullHeight>
<Row className={style['card-list']}> {data.name && <Row className={style['card-list']}>
<Col span={6}><p>发货地址: </p></Col> <Col span={6}><p>发货地址: </p></Col>
<Col><p>{data.name}</p></Col> <Col><p>{data.name}</p></Col>
</Row> </Row>}
<Row className={style['card-list']}> {data?.deliverTime && <Row className={style['card-list']}>
<Col span={6}><p>发货时间: </p></Col> <Col span={6}><p>发货时间: </p></Col>
<Col><p>{moment(data.deliverTime).format('YYYY-MM-DD')}</p></Col> <Col><p>{data?.deliverTime && moment(data.deliverTime).format('YYYY-MM-DD')}</p></Col>
</Row> </Row>}
<Row className={style['card-list']}> {data.deliverNo && <Row className={style['card-list']}>
<Col span={6}><p>物流单号: </p></Col> <Col span={6}><p>物流单号: </p></Col>
<Col><p><a href={`https://www.kuaidi100.com/chaxun?nu=${data.deliverNo}`} target="_blank">{data.deliverNo}</a></p></Col> <Col><p><a href={`https://www.kuaidi100.com/chaxun?nu=${data.deliverNo}`} target="_blank">{data.deliverNo}</a></p></Col>
</Row> </Row>}
<Row className={style['card-list']}> {data.logisticsCompany && <Row className={style['card-list']}>
<Col span={6}><p>物流公司: </p></Col> <Col span={6}><p>物流公司: </p></Col>
<Col><p>{data.logisticsCompany}</p></Col> <Col><p>{data.logisticsCompany}</p></Col>
</Row> </Row>}
</MellowCard> </MellowCard>
</Col> </Col>
} }
......
...@@ -42,11 +42,13 @@ const SimpleElectronModal:React.FC<SimpleElectronModalProps> = (props) => { ...@@ -42,11 +42,13 @@ const SimpleElectronModal:React.FC<SimpleElectronModalProps> = (props) => {
const res = await PublicApi.postOrderSignatureOrderSettleSign(contracts, { ctlType: "none" }) const res = await PublicApi.postOrderSignatureOrderSettleSign(contracts, { ctlType: "none" })
if(res.code === 1000) { if(res.code === 1000) {
timer = setInterval(() => { timer = setInterval(() => {
console.log(signatureState.current, 'signatureState')
if (signatureState.current !== 4) { if (signatureState.current !== 4) {
PublicApi.getOrderSignatureOrderSettleSignDetail({signatureLogId: res.data.signatureLogId + ''}).then(_res => { PublicApi.getOrderSignatureOrderSettleSignDetail({signatureLogId: res.data.signatureLogId + ''}).then(_res => {
if(_res.code === 1000) { if(_res.code === 1000) {
signatureState.current = _res.data.state signatureState.current = _res.data.state
if(_res.data.state === 4) {
schemaAction.setFieldValue("electronicContractUrl", _res.data.contractUrl)
}
} else { } else {
clearInterval(timer) clearInterval(timer)
timer = null timer = null
......
...@@ -256,7 +256,8 @@ export const useInvoiceList = (ctx: ISchemaFormActions | ISchemaFormAsyncActions ...@@ -256,7 +256,8 @@ export const useInvoiceList = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
// 查询工作流获取电子合同 // 查询工作流获取电子合同
export const useElectronicContract = (ctx: ISchemaFormActions | ISchemaFormAsyncActions) => { export const useElectronicContract = (ctx: ISchemaFormActions | ISchemaFormAsyncActions) => {
let params: any = {}; let params: any = {};
params['productId'] = ctx.getFieldValue('orderProductRequests')[0]['id'] // 商品数据有commodityId为手动下单 不存在为询价等下单
params['productId'] = ctx.getFieldValue('orderProductRequests')[0]['commodityId'] ? ctx.getFieldValue('orderProductRequests')[0]['id'] : ctx.getFieldValue('orderProductRequests')[0]['productId']
params['orderModelId'] = ctx.getFieldValue('orderModel') params['orderModelId'] = ctx.getFieldValue('orderModel')
params['memberId'] = ctx.getFieldValue('supplyMembersId') params['memberId'] = ctx.getFieldValue('supplyMembersId')
params['memberRoleId'] = ctx.getFieldValue('supplyMembersRoleId') params['memberRoleId'] = ctx.getFieldValue('supplyMembersRoleId')
...@@ -276,6 +277,7 @@ export const useElectronicContract = (ctx: ISchemaFormActions | ISchemaFormAsync ...@@ -276,6 +277,7 @@ export const useElectronicContract = (ctx: ISchemaFormActions | ISchemaFormAsync
ctx.setFieldState("usingElectronicContracts", state => { ctx.setFieldState("usingElectronicContracts", state => {
state.props["x-component-props"].contract = { contractTemplateId: data['electronicContractId'], ..._data, } state.props["x-component-props"].contract = { contractTemplateId: data['electronicContractId'], ..._data, }
}) })
ctx.setFieldValue("electronicContractName", _data.contractName)
}) })
} }
}) })
......
.orderCollectCard {
:global {
.ant-form-item-explain-error {
position: absolute;
top: 92%;
}
}
}
\ No newline at end of file
...@@ -189,7 +189,6 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => { ...@@ -189,7 +189,6 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
let processEnum = addSchemaAction.getFieldValue('processEnum') let processEnum = addSchemaAction.getFieldValue('processEnum')
let usingElectronicContracts = addSchemaAction.getFieldValue('usingElectronicContracts') let usingElectronicContracts = addSchemaAction.getFieldValue('usingElectronicContracts')
let signatureLogId = addSchemaAction.getFieldValue("signatureLogId") let signatureLogId = addSchemaAction.getFieldValue("signatureLogId")
console.log(processEnum, usingElectronicContracts, signatureLogId)
if(processEnum === 24 && usingElectronicContracts && !signatureLogId) { if(processEnum === 24 && usingElectronicContracts && !signatureLogId) {
contractRef.current.setVisible(true) contractRef.current.setVisible(true)
return ; return ;
......
...@@ -425,6 +425,16 @@ const ortherInfo: ISchema = { ...@@ -425,6 +425,16 @@ const ortherInfo: ISchema = {
title: '合同签署记录id', title: '合同签署记录id',
visible: false visible: false
}, },
electronicContractUrl: {
type: "string",
title: '合同URL',
visible: false
},
electronicContractName: {
type: "string",
title: '合同Name',
visible: false
},
} }
} }
} }
......
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