diff --git a/src/pages/MerchantMgm/InvoiceConf/loadable.jsx b/src/pages/MerchantMgm/InvoiceConf/loadable.jsx index e87ffa7..0b427da 100644 --- a/src/pages/MerchantMgm/InvoiceConf/loadable.jsx +++ b/src/pages/MerchantMgm/InvoiceConf/loadable.jsx @@ -61,7 +61,7 @@ function InvoiceConf(props) { //含税状态 const [taxTypeStatus,setTaxTypeStatus]=useState() //税率状态 - const [rateStatus,setRateStatus]=useState("1") + const [rateStatus,setRateStatus]=useState("0") // 发票平台 const [InvoicePlatform, setInvoicePlatform] = useState(2); const [editId, setEditId] = useState(""); // 编辑是所需要的id @@ -355,7 +355,7 @@ function InvoiceConf(props) { invoice_item: "1", order_type: [], tax_way: "", - tax_rate: "1", + tax_rate: "0", code: "", auth_code: "", appkey: "", @@ -391,7 +391,7 @@ function InvoiceConf(props) { invoice_item: res?.data?.invoice_item || "1", order_type: res?.data?.order_type || [], tax_way: res?.data?.tax_way || "", - tax_rate: res?.data?.tax_rate || "", + tax_rate: res?.data?.tax_rate || "0", code: res?.data?.code || "", auth_code: res?.data?.auth_code || "", appkey: res?.data?.appkey || "", @@ -494,6 +494,7 @@ function InvoiceConf(props) { setCreateVisible(false) setCheckVisible(false) setEditId(""); + setRateStatus("0") } //保存 const createTenant = async () => { @@ -577,6 +578,7 @@ function InvoiceConf(props) { // setSpecialVisible(false) // setQingDaoVisible(false) setEditId("") + setRateStatus("0") let _data = { ...formData, pn: 1, page_size: Number(pageSizeOptions[0])} setPageInfo({pn: 1, page_size: Number(pageSizeOptions[0])}) setFormData(_data) @@ -852,7 +854,7 @@ function InvoiceConf(props) {
{setTaxTypeStatus(e)} } disabled={true} - value={parseInt(rateStatus) >= 1? + value={parseInt(rateStatus) > 0 ? editForm.setFieldsValue({tax_type:"2"}): editForm.setFieldsValue({tax_type:"1"})} /> diff --git a/src/pages/MerchantMgm/MerchantInfo/loadable.jsx b/src/pages/MerchantMgm/MerchantInfo/loadable.jsx index 3e53841..ab79dc8 100644 --- a/src/pages/MerchantMgm/MerchantInfo/loadable.jsx +++ b/src/pages/MerchantMgm/MerchantInfo/loadable.jsx @@ -949,6 +949,7 @@ const MerchantInfo = (props) => { className="search-group-item" limit={90} showTime={false} + allowClear={false} />