|
|
@ -7,8 +7,6 @@ import { |
|
|
|
PurchasereceiptRecordDetail, |
|
|
|
PurchasereceiptRecordMain |
|
|
|
} from '../../purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data' |
|
|
|
import * as BalanceApi from '@/api/wms/balance' |
|
|
|
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' |
|
|
|
import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail' |
|
|
|
import { Supplier } from "@/views/wms/basicDataManage/supplierManage/supplier/supplier.data"; |
|
|
|
import * as SupplierApi from "@/api/wms/supplier"; |
|
|
@ -47,6 +45,25 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isForm: false, |
|
|
|
isSearch: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商代码', |
|
|
|
field: 'supplierCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
form:{ |
|
|
|
componentProps:{ |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '供应商信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: SupplierApi.getSupplierPage // 查询弹窗所需分页方法
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '采购收货记录单号', |
|
|
|
field: 'purchaseReceiptRecordNumber', |
|
|
@ -67,6 +84,11 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'supplierCode', |
|
|
|
value: 'supplierCode', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
@ -89,25 +111,6 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商代码', |
|
|
|
field: 'supplierCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
form:{ |
|
|
|
componentProps:{ |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '供应商信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: SupplierApi.getSupplierPage // 查询弹窗所需分页方法
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '承运商', |
|
|
|
field: 'carrierCode', |
|
|
@ -443,6 +446,9 @@ export const PurchasereturnRequestMainRules = reactive({ |
|
|
|
supplierCode: [ |
|
|
|
{ required: true, message: '请输入供应商代码', trigger: 'blur' } |
|
|
|
], |
|
|
|
purchaseReceiptRecordNumber: [ |
|
|
|
{ required: true, message: '请输入采购收货记录单号', trigger: 'blur' } |
|
|
|
], |
|
|
|
carrierCode: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
], |
|
|
|