Commit 23eba8bb authored by 王苓芝's avatar 王苓芝

Merge branch 'interface' into 'master'

Interface

See merge request !15
parents 9855285c bbfef359
...@@ -32,6 +32,7 @@ const LogisticsForm = props => { ...@@ -32,6 +32,7 @@ const LogisticsForm = props => {
expressCompanyCode: data.selectedCompany.split('-')[0], expressCompanyCode: data.selectedCompany.split('-')[0],
expressCompanyName: data.selectedCompany.split('-')[1], expressCompanyName: data.selectedCompany.split('-')[1],
deliveryNo: data.orderNum, deliveryNo: data.orderNum,
serialNumber: data.serialNumber || '',
}); });
}); });
}); });
...@@ -145,6 +146,17 @@ const LogisticsForm = props => { ...@@ -145,6 +146,17 @@ const LogisticsForm = props => {
], ],
})(<Input placeholder="请填写物流单号" />)} })(<Input placeholder="请填写物流单号" />)}
</FormItem> </FormItem>
<FormItem>
{getFieldDecorator(`${i}-serialNumber`, {
initialValue: v.serialNumber,
rules: [
{
pattern: new RegExp(/^[0-9a-zA-Z-_]{6,32}$/, 'g'),
message: '序列号格式不正确!',
},
],
})(<Input placeholder="请填写序列号" />)}
</FormItem>
</Card> </Card>
))} ))}
<div className={style.logistics}> <div className={style.logistics}>
......
...@@ -70,7 +70,8 @@ export async function uploadFile(file) { ...@@ -70,7 +70,8 @@ export async function uploadFile(file) {
} }
export function downTemplate() { export function downTemplate() {
window.location.href = window.location.href =
'https://kdspstatic.q-gp.com/%E8%AE%A2%E5%8D%95%E7%89%A9%E6%B5%81%E4%BF%A1%E6%81%AF%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF-v1.xlsx'; // 'https://kdspstatic.q-gp.com/%E8%AE%A2%E5%8D%95%E7%89%A9%E6%B5%81%E4%BF%A1%E6%81%AF%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF-v1.xlsx';
'https://kdspstatic.q-gp.com/order_import_template.xlsx';
} }
export async function downOrder(params) { export async function downOrder(params) {
const data = await request.post('/api/kdsp/op/mch-order/order-export', { const data = await request.post('/api/kdsp/op/mch-order/order-export', {
......
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