diff --git a/src/pages/MerchantMgm/InvoiceConf/loadable.jsx b/src/pages/MerchantMgm/InvoiceConf/loadable.jsx index 7bf1649..86da40b 100644 --- a/src/pages/MerchantMgm/InvoiceConf/loadable.jsx +++ b/src/pages/MerchantMgm/InvoiceConf/loadable.jsx @@ -738,7 +738,7 @@ function InvoiceConf() { className="search-group-item" limit={90} showTime={false} - allowClear={false} + // allowClear={false} /> @@ -937,7 +937,7 @@ function InvoiceConf() { e=>{setTaxTypeStatus(e)} } disabled={true} - value={rateStatus>1? + value={parseInt(rateStatus) >= 1? editForm.setFieldsValue({tax_type:"2"}): editForm.setFieldsValue({tax_type:"1"})} /> @@ -1407,25 +1407,28 @@ function InvoiceConf() {
发票平台:
{records.receipt_type_name}
-
开票项目:
{records.invoice_item}
-
计税方式:
{records.tax_way}
+
开票项目:
{records.invoice_item_name}
+
计税方式:
{records.tax_way_name}
税率(%):
{records.tax_rate}
-
含税标志:
{records.tax_type}
+
含税标志:
{records.tax_type_name}
-
平台编码:
{records.code}
+ {/*
平台编码:
{records.code}
授权码:
{records.auth_code}
请求地址:
{records.request_url}
请求码:
{records.request_code}
请求函数:
{records.request_func}
-
目标命名空间:
{records.namespace}
+
目标命名空间:
{records.namespace}
*/} +
APPKEY:
{records.appkey}
+
APPSECRET:
{records.appsecret}
+
请求地址:
{records.request_url}
+
纳税人名称:
{records.tax_name}
+
纳税人识别号:
{records.tax_num}
-
纳税人名称:
{records.tax_name}
-
纳税人识别号:
{records.tax_num}
销货方名称:
{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
@@ -1984,7 +2007,7 @@ function MerchantInfo() {
商户ID:{records.tenantId}
-
商户编码:
{records.tenantId}
+
商户编码:
{records.tenantCode}
状态:
{records.status_name}
商户名称:
{records.tenantName}
商户类型:
{records.shop_type_name}
@@ -1998,7 +2021,7 @@ function MerchantInfo() {
公司名称:{records.companyName}
-
公司地址:
{records.address}
+
公司地址:
{records?.city_name || ""} {records?.address || ""}
联系人:
{records.connect_name}
联系电话:
{records.connect_phone}
邮箱:
{records.email}
diff --git a/src/services/MerchantMgm/MerchantInfo/index.js b/src/services/MerchantMgm/MerchantInfo/index.js index 2b68b39..a273402 100644 --- a/src/services/MerchantMgm/MerchantInfo/index.js +++ b/src/services/MerchantMgm/MerchantInfo/index.js @@ -9,6 +9,15 @@ const getTenantSelectPull=(p)=>{ data: p }) } + +// 获取公司地址数据 +const getAddressData=(p)=>{ + return ajax({ + url: "/api/bpm/region/get_region_list", + type: 'get', + data: p + }) +} //获取商户类型下拉框 const getTenantTypePull=(p)=>{ return ajax({ @@ -89,6 +98,7 @@ export default { addTenant, editTenant, checkTenant, - updateStatus + updateStatus, + getAddressData }