Browse Source

修改

master_hella_20240701
zhaoxuebing 9 months ago
parent
commit
46e1ff5130
  1. 14
      src/views/wms/basicDataManage/supplierManage/supplier/supplier.data.ts
  2. 5
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

14
src/views/wms/basicDataManage/supplierManage/supplier/supplier.data.ts

@ -2,7 +2,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
const { t } = useI18n() // 国际化
import {validateHanset,validateFax,validatePostCode,validateYS} from '@/utils/validator'
import {validateHanset,validateFax,validatePostCode,validateEmail,validateYS} from '@/utils/validator'
/**
* @returns {Array}
@ -91,6 +91,14 @@ export const Supplier = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
}
},
{
label: '联系人邮件',
field: 'email',
sort: 'custom',
table: {
width: 150
}
},
{
label:'银行',
field: 'bank',
@ -289,6 +297,10 @@ export const SupplierRules = reactive({
contacts: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
email: [
{ max: 128, message: '不得超过128个字符', trigger: 'blur' },
{ validator:validateEmail, message: '请输入正确的邮箱格式', trigger: 'blur'}
],
bank: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],

5
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -119,7 +119,6 @@ import {
} from './supplierdeliverRequestMain.data'
import * as SupplierdeliverRequestMainApi from '@/api/wms/supplierdeliverRequestMain'
import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverRequestDetail'
import * as PurchasePlanDetailApi from '@/api/wms/purchasePlanDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import point from '@/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/point.vue'
// import * as PackageApi from '@/api/wms/package'
@ -154,7 +153,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
row['poLine'] = val[0]['poLine']
row['uom'] = val[0]['uom']
}
} else {
const setV = {}
setV[formField] = val[0][searchField]
@ -162,6 +160,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
//
tableData.value = [] //
}
if(formField == 'supplierCode'){
console.log("supplierCode:",val[0])
}
formRef.setValues(setV)
}
})

Loading…
Cancel
Save