mirror of
https://gitee.com/krxd/shuyuan.git
synced 2026-04-08 21:35:53 +08:00
修改bug
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
labelWidth="160rpx">
|
||||
<view class="sidebar-margin card-template mt-[var(--top-m)] py-[20rpx]">
|
||||
<u-form-item :label="t('name')" prop="name" borderBottom required>
|
||||
<u-input v-model="formData.name" :placeholder="t('namePlaceholder')" border="none"></u-input>
|
||||
<u-input v-model="formData.name" :placeholder="t('namePlaceholder')" ></u-input>
|
||||
</u-form-item>
|
||||
</view>
|
||||
</u-form>
|
||||
@@ -28,6 +28,10 @@
|
||||
import { onLoad } from '@dcloudio/uni-app';
|
||||
import { getProductUnitInfo, addProductUnit, editProductUnit } from '@/addon/erp/api/product';
|
||||
import { redirect } from '@/utils/common';
|
||||
import { checkBtnPermission } from '@/utils/auth';
|
||||
import useMemberStore from '@/stores/member'
|
||||
|
||||
const memberStore = useMemberStore()
|
||||
|
||||
const formRef: any = ref(null)
|
||||
const loading = ref(false)
|
||||
@@ -66,7 +70,9 @@
|
||||
}
|
||||
|
||||
// 保存
|
||||
const handSave = () => {
|
||||
const handSave = async() => {
|
||||
const hasPermission = await checkBtnPermission(memberStore.btnPermission, 'erp_product_unit_add')
|
||||
if (!hasPermission) return
|
||||
formRef.value.validate().then(() => {
|
||||
if (loading.value) return
|
||||
loading.value = true
|
||||
|
||||
Reference in New Issue
Block a user