Browse Source

采购退货修改

master_hella_20240701
zhaoxuebing 8 months ago
parent
commit
bf5306dbb5
  1. 6
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  2. 48
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

6
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -231,10 +231,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
}) })
} }
if(formField == 'supplierCode'){ if(formField == 'supplierCode'){
isShowButton.value = true // isShowButton.value = true
setV['supplierCode'] = val[0]['code'] setV['supplierCode'] = val[0]['code']
setV['purchaseReceiptRecordNumber'] = '' // setV['purchaseReceiptRecordNumber'] = ''
tableData.value = [] // tableData.value = []
} }
formRef.setValues(setV) formRef.setValues(setV)
} }

48
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

@ -7,8 +7,6 @@ import {
PurchasereceiptRecordDetail, PurchasereceiptRecordDetail,
PurchasereceiptRecordMain PurchasereceiptRecordMain
} from '../../purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data' } 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 * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail'
import { Supplier } from "@/views/wms/basicDataManage/supplierManage/supplier/supplier.data"; import { Supplier } from "@/views/wms/basicDataManage/supplierManage/supplier/supplier.data";
import * as SupplierApi from "@/api/wms/supplier"; import * as SupplierApi from "@/api/wms/supplier";
@ -47,6 +45,25 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
isSearch: true, 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: '采购收货记录单号', label: '采购收货记录单号',
field: 'purchaseReceiptRecordNumber', field: 'purchaseReceiptRecordNumber',
@ -67,6 +84,11 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},
{
key: 'supplierCode',
value: 'supplierCode',
isMainValue: true
}] }]
} }
} }
@ -89,25 +111,6 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, 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: '承运商', label: '承运商',
field: 'carrierCode', field: 'carrierCode',
@ -443,6 +446,9 @@ export const PurchasereturnRequestMainRules = reactive({
supplierCode: [ supplierCode: [
{ required: true, message: '请输入供应商代码', trigger: 'blur' } { required: true, message: '请输入供应商代码', trigger: 'blur' }
], ],
purchaseReceiptRecordNumber: [
{ required: true, message: '请输入采购收货记录单号', trigger: 'blur' }
],
carrierCode: [ carrierCode: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, { max: 50, message: '不得超过50个字符', trigger: 'blur' },
], ],

Loading…
Cancel
Save