Browse Source

fix(): 12_19处理商户管理税率默认值等问题

tags/PMS_Frontend_v1.0.5-develop
陈宇航 1 year ago
parent
commit
29a57d9775
  1. 12
      src/pages/MerchantMgm/InvoiceConf/loadable.jsx
  2. 1
      src/pages/MerchantMgm/MerchantInfo/loadable.jsx

12
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) {
<Form
form={editForm}
initialValues={{
tax_rate:"1"
tax_rate:"0"
}}
>
<Form.Item
@ -940,7 +942,7 @@ function InvoiceConf(props) {
e=>{setTaxTypeStatus(e)}
}
disabled={true}
value={parseInt(rateStatus) >= 1?
value={parseInt(rateStatus) > 0 ?
editForm.setFieldsValue({tax_type:"2"}):
editForm.setFieldsValue({tax_type:"1"})}
/>

1
src/pages/MerchantMgm/MerchantInfo/loadable.jsx

@ -949,6 +949,7 @@ const MerchantInfo = (props) => {
className="search-group-item"
limit={90}
showTime={false}
allowClear={false}
/>
</Form.Item>
<Form.Item

Loading…
Cancel
Save