direct_price

This commit is contained in:
2026-05-13 12:52:27 +03:30
parent fc5273a660
commit c5f23a6093
3 changed files with 22 additions and 14 deletions
+1
View File
@@ -23,6 +23,7 @@ export interface Product{
updated_at: string
methodOption: number
prices: MethodePrices[]
direct_price: number
price: number
reading_method: string
weight: number
@@ -134,6 +134,16 @@
keyName="key"
/>
</a-form-item>
<a-form-item label="نوع قیمت" name="direct_price" :rules="inputRules()">
<BasicSelect
v-model:value="form.direct_price"
:items="priceItems"
valueName="value"
keyName="key"
/>
</a-form-item>
<a-form-item label="واحد" name="unit" :rules="inputRules()">
<BasicSelect
v-model:value="form.unit"
@@ -858,6 +868,17 @@ const metalItems: Array<Item> = [
},
];
const priceItems: Array<Item> = [
{
key: 0,
value: "متغیر"
},
{
key: 1,
value: "ثابت"
},
]
const data = ref<MethodePrices[]>([]);
const fetchData = async () => {
try {