Parcourir la source

供应商弹窗添加账期字段

张田田 il y a 2 mois
Parent
commit
244eefbddb
2 fichiers modifiés avec 15 ajouts et 0 suppressions
  1. 14 0
      src/components/EditSupplier.vue
  2. 1 0
      src/model/care.model.ts

+ 14 - 0
src/components/EditSupplier.vue

@@ -423,6 +423,13 @@ const baseFormItems = [
     span: 24,
     itemRender: { name: 'VxeInput', props: { placeholder: '请输入', type: 'number', min: 0, max: 100 } },
   },
+  // 账期(天)
+  {
+    field: 'paymentTerm',
+    title: '账期',
+    span: 24,
+    slots: { default: 'paymentTerm' },
+  },
   businessHoursField as any,
   // 营业状态 单选,营业、休息、停业
   {
@@ -464,6 +471,7 @@ const formProps = reactive<VxeFormProps<FormModel>>({
     wechatPaymentType: [{ required: true, message: '请选择账户类型' }],
     wechatPaymentAccount: [{ required: true, message: '请输入微信接收方账号' }],
     profitSharing: [{ required: true, message: '请输入分账比例' }],
+    paymentTerm: [{ required: true, message: '请输入账期' }],
     businessStatus: [{ required: true, message: '请选择营业状态' }],
     businessTime: [
       {
@@ -663,6 +671,12 @@ onBeforeMount(async () => {
           :dropdownMatchSelectWidth="false" :dropdownStyle="{ zIndex: 4000 }" placeholder="请选择" @change="onDeptChange"
           @dropdownVisibleChange="onVisibleChange" />
       </template>
+      <template #paymentTerm>
+        <div style="display: flex; align-items: center; gap: 4px;">
+          <a-input-number v-model:value="(formProps.data as any).paymentTerm" :min="0" placeholder="请输入" style="flex: 1" />
+          <span>天</span>
+        </div>
+      </template>
       <template #businessTimeTitle>
         <span style="color: #ff4d4f">*</span>营业时间
       </template>

+ 1 - 0
src/model/care.model.ts

@@ -18,6 +18,7 @@ export interface SupplierModel {
   profitSharing?:string; //	分账比例
   businessTime?:string; //营业时间,比如:08:10,12:10,23:59
   businessStatus?:string; //	营业状态 1-营业 2-休息 3-停业	
+  paymentTerm:number;//账期
 }
 export type SupplierQuery = Partial<SupplierModel>;