|
|
@ -109,6 +109,7 @@ function MerchantInfo() { |
|
|
|
//支付宝生活号及小程序 |
|
|
|
const [zhiMiniVisible2, setZhiMiniVisible2] = useState(false) |
|
|
|
const [editId, setEditId] = useState(""); // 编辑是所需要的id |
|
|
|
const [companyAddress, setCompanyAddress] = useState([]); // 获取公司地址 |
|
|
|
//表头 |
|
|
|
const columns = [ |
|
|
|
{ |
|
|
@ -228,19 +229,33 @@ function MerchantInfo() { |
|
|
|
label: '车务业务' |
|
|
|
}, |
|
|
|
] |
|
|
|
//公司地址 |
|
|
|
const COMPANY_ADRESS = [ |
|
|
|
{ |
|
|
|
label: '山东省', |
|
|
|
value: '山东省', |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
label: '黄岛区', |
|
|
|
value: '黄岛区' |
|
|
|
// //公司地址 |
|
|
|
// const COMPANY_ADRESS = [ |
|
|
|
// { |
|
|
|
// label: '山东省', |
|
|
|
// value: '山东省', |
|
|
|
// children: [ |
|
|
|
// { |
|
|
|
// label: '黄岛区', |
|
|
|
// value: '黄岛区' |
|
|
|
// } |
|
|
|
// ] |
|
|
|
// } |
|
|
|
// ] |
|
|
|
// 获取公司地址数据 |
|
|
|
const getAddressList = () => { |
|
|
|
ajax.getAddressData().then( |
|
|
|
res => { |
|
|
|
if (res.status == 20000) { |
|
|
|
setCompanyAddress(res?.data?.list || []) |
|
|
|
} else { |
|
|
|
message.error(res.message) |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
).catch( |
|
|
|
(err) => { console.log(err) } |
|
|
|
) |
|
|
|
} |
|
|
|
//支付账户多选 |
|
|
|
const PAY = [ |
|
|
|
{ |
|
|
@ -794,6 +809,7 @@ function MerchantInfo() { |
|
|
|
getTenantTypePull() |
|
|
|
getBusinessTypePull() |
|
|
|
getStatusPull() |
|
|
|
getAddressList() |
|
|
|
// getTable() |
|
|
|
}, [] |
|
|
|
) |
|
|
@ -1103,7 +1119,12 @@ function MerchantInfo() { |
|
|
|
> |
|
|
|
<Cascader |
|
|
|
placeholder="请选择" |
|
|
|
options={COMPANY_ADRESS} |
|
|
|
options={companyAddress} |
|
|
|
fieldNames={{ |
|
|
|
label: "areaName", |
|
|
|
value: "areaId", |
|
|
|
children: "cities", |
|
|
|
}} |
|
|
|
// onChange={e => { setFormCreate({ ...formCreate, city: e }) }} |
|
|
|
className="select-item" |
|
|
|
/> |
|
|
@ -1165,23 +1186,23 @@ function MerchantInfo() { |
|
|
|
action="/PMS/api/com/common/file_upload" |
|
|
|
fileList={fileList} |
|
|
|
maxCount={1} |
|
|
|
// beforeUpload = {(file) => { |
|
|
|
// // 文件大小不得超过5M |
|
|
|
// if (file.size > 5 * 1024 * 1024) { |
|
|
|
// message.error("上传文件超过5M,请重新选择!"); |
|
|
|
// return false; |
|
|
|
// } else { |
|
|
|
// let isFormat = false; |
|
|
|
// // console.log(file.type); |
|
|
|
// // 图片文件 jpg、png、jpeg、bmp格式 |
|
|
|
// const picList = ["image/jpeg", "image/png", "image/jpg", "image/bmp", "image/gif"]; |
|
|
|
// isFormat = picList.indexOf(file.type) > -1; |
|
|
|
// if (!isFormat) { |
|
|
|
// message.error("请上传jpg、jpeg、png、bmp、gif的图片格式"); |
|
|
|
// } |
|
|
|
// return isFormat; |
|
|
|
// } |
|
|
|
// }} |
|
|
|
beforeUpload = {(file) => { |
|
|
|
// 文件大小不得超过5M |
|
|
|
if (file.size > 5 * 1024 * 1024) { |
|
|
|
message.error("上传文件超过5M,请重新选择!"); |
|
|
|
return false; |
|
|
|
} else { |
|
|
|
let isFormat = false; |
|
|
|
// console.log(file.type); |
|
|
|
// 图片文件 jpg、png、jpeg、bmp格式 |
|
|
|
const picList = ["image/jpeg", "image/png", "image/jpg", "image/bmp", "image/gif"]; |
|
|
|
isFormat = picList.indexOf(file.type) > -1; |
|
|
|
if (!isFormat) { |
|
|
|
message.error("请上传jpg、jpeg、png、bmp、gif的图片格式"); |
|
|
|
} |
|
|
|
return isFormat; |
|
|
|
} |
|
|
|
}} |
|
|
|
onChange={uploadLicense} |
|
|
|
> |
|
|
|
{fileList.length >= 1 ? null : uploadButton} |
|
|
@ -1196,6 +1217,8 @@ function MerchantInfo() { |
|
|
|
src={item} |
|
|
|
style={{ |
|
|
|
height: '100%', |
|
|
|
width: "100%", |
|
|
|
objectFit: "contain" |
|
|
|
}} |
|
|
|
/> |
|
|
|
) |
|
|
@ -1206,7 +1229,7 @@ function MerchantInfo() { |
|
|
|
) |
|
|
|
} |
|
|
|
</Upload> |
|
|
|
<span className="text">(非必填)请上传营业执照扫描附件,大小5M以内,支持格式.jpg</span> |
|
|
|
<span className="text">(非必填)请上传营业执照扫描附件,大小5M以内,支持格式.jpg .jpeg .png .bmp .gif</span> |
|
|
|
</Form.Item> |
|
|
|
</Form> |
|
|
|
</div> |
|
|
@ -1984,7 +2007,7 @@ function MerchantInfo() { |
|
|
|
<div className="system"> |
|
|
|
<div className="system-wrap"> |
|
|
|
<div className="item"><span className="item-title">商户ID:</span>{records.tenantId}</div> |
|
|
|
<div className="item"><div className="item-title">商户编码:</div><span>{records.tenantId}</span></div> |
|
|
|
<div className="item"><div className="item-title">商户编码:</div><span>{records.tenantCode}</span></div> |
|
|
|
<div className="item"><div className="item-title">状态:</div><span className={records.status == 1 ? "text-green" : "text-red"}>{records.status_name}</span></div> |
|
|
|
<div className="item"><div className="item-title">商户名称:</div>{records.tenantName}</div> |
|
|
|
<div className="item"><div className="item-title">商户类型:</div>{records.shop_type_name}</div> |
|
|
@ -1998,7 +2021,7 @@ function MerchantInfo() { |
|
|
|
<div className="account"> |
|
|
|
<div className="account-wrap"> |
|
|
|
<div className="item"><span className="item-title">公司名称:</span>{records.companyName}</div> |
|
|
|
<div className="item"><div className="item-title">公司地址:</div><span>{records.address}</span></div> |
|
|
|
<div className="item"><div className="item-title">公司地址:</div><span>{records?.city_name || ""} {records?.address || ""}</span></div> |
|
|
|
<div className="item"><div className="item-title">联系人:</div><span>{records.connect_name}</span></div> |
|
|
|
<div className="item"><div className="item-title">联系电话:</div>{records.connect_phone}</div> |
|
|
|
<div className="item"><div className="item-title">邮箱:</div>{records.email}</div> |
|
|
|