-
-
销货方名称:
{records.sell_name}
销货放识别号:
{records.sell_num}
销贷方地址:
{records.sell_address}
diff --git a/src/pages/MerchantMgm/MerchantAdmin/loadable.jsx b/src/pages/MerchantMgm/MerchantAdmin/loadable.jsx
index 776a854..df44fca 100644
--- a/src/pages/MerchantMgm/MerchantAdmin/loadable.jsx
+++ b/src/pages/MerchantMgm/MerchantAdmin/loadable.jsx
@@ -258,7 +258,7 @@ function MerchantAdmin() {
status: 0,
};
searchForm.setFieldsValue(value)
- getTable({ ...value, pn: 1, page_size: Number(pageSizeOptions[0])})
+ // getTable({ ...value, pn: 1, page_size: Number(pageSizeOptions[0])})
}
diff --git a/src/pages/MerchantMgm/MerchantInfo/loadable.jsx b/src/pages/MerchantMgm/MerchantInfo/loadable.jsx
index 44b5b06..ae49edf 100644
--- a/src/pages/MerchantMgm/MerchantInfo/loadable.jsx
+++ b/src/pages/MerchantMgm/MerchantInfo/loadable.jsx
@@ -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() {
>
{ 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() {
)
}
- (非必填)请上传营业执照扫描附件,大小5M以内,支持格式.jpg
+ (非必填)请上传营业执照扫描附件,大小5M以内,支持格式.jpg .jpeg .png .bmp .gif