fix: add code in partner

This commit is contained in:
ilham 2021-12-26 11:19:57 +07:00
parent 69fc55338d
commit 668c64f193
2 changed files with 23 additions and 3 deletions

View File

@ -48,6 +48,7 @@ export const PartnerComponent = observer((props) => {
name: data.name,
npwp: data.npwp,
address: data.address,
code: data.code,
});
setIsChangePassword(false);
store.partner.visibleModalPartner = true;
@ -72,6 +73,11 @@ export const PartnerComponent = observer((props) => {
dataIndex: "name",
key: "name",
},
{
title: "Kode",
dataIndex: "code",
key: "code",
},
{
title: "Npwp",
dataIndex: "npwp",
@ -274,7 +280,7 @@ export const PartnerComponent = observer((props) => {
>
{item?.status === true ? "Inactive" : "Active"}
</Button>
<Button onClick={() => handleEditButton(item)}>
<Button onClick={(owner,name) => handleEditButton(item)}>
Edit
</Button>
{/* <Button onClick={() => handleDelete(record.id)}>Delete</Button> */}
@ -351,6 +357,19 @@ export const PartnerComponent = observer((props) => {
<Input />
</Form.Item>
)}
{!idData && (
<Form.Item
name="code"
label="Kode"
rules={[
idData
? { required: false }
: { required: true, message: "Please input code partner!" },
]}
>
<Input />
</Form.Item>
)}
{!idData && (
<Form.Item
name="owner"
@ -358,7 +377,7 @@ export const PartnerComponent = observer((props) => {
rules={[
idData
? { required: false }
: { required: true, message: "Please input password owner!" },
: { required: true, message: "Please input owner name!" },
]}
>
<Input />

View File

@ -1,5 +1,6 @@
export const appConfig = {
apiUrl: 'https://ppob-backend.k3s.bangun-kreatif.com/v1'
// apiUrl: 'https://ppob-backend.k3s.bangun-kreatif.com/v1'
apiUrl: 'http://localhost:3222/v1'
// apiUrl: 'http://localhost:3222/v1'
};