Browse Source

客户代码搜索框添加

master
chenfang 11 months ago
parent
commit
de517ec827
  1. 17
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts
  2. 8
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

17
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

@ -11,6 +11,9 @@ import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/item
import * as CustomerdockApi from '@/api/wms/customerdock' import * as CustomerdockApi from '@/api/wms/customerdock'
import { Customerdock } from '@/views/wms/basicDataManage/customerManage/customerdock/customerdock.data' import { Customerdock } from '@/views/wms/basicDataManage/customerManage/customerdock/customerdock.data'
import * as CustomerApi from '@/api/wms/customer'
import { Customer } from '@/views/wms/basicDataManage/customerManage/customer/customer.data'
import * as CarrierApi from '@/api/wms/carrier' import * as CarrierApi from '@/api/wms/carrier'
import { Carrier } from '@/views/wms/basicDataManage/orderManage/carrier/carrier.data' import { Carrier } from '@/views/wms/basicDataManage/orderManage/carrier/carrier.data'
@ -110,8 +113,20 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isSearch: true, isSearch: true,
form: { form: {
// labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
disabled: true disabled: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择客户代码', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段
searchTitle: '客户信息', // 查询弹窗标题
searchAllSchemas: Customer.allSchemas, // 查询弹窗所需类
searchPage: CustomerApi.getCustomerPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
} }
} }
}, },

8
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

@ -100,7 +100,7 @@ const tableColumns = ref(DeliverRequestMain.allSchemas.tableColumns)
const isShowButton = ref(true) const isShowButton = ref(true)
// // // //
const trueFalse = ref() const trueFalse = ref(true)
// //
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
@ -298,6 +298,8 @@ const formRef = ref()
const openForm =async (type: string, row?: number) => { const openForm =async (type: string, row?: number) => {
if(type == "update"){ if(type == "update"){
DeliverRequestMain.allSchemas.formSchema.forEach((item) => { DeliverRequestMain.allSchemas.formSchema.forEach((item) => {
console.log(95132,item);
if (item.field == 'deliverPlanNumber') { if (item.field == 'deliverPlanNumber') {
item.componentProps.isSearchList = false, item.componentProps.isSearchList = false,
item.componentProps.disabled = true item.componentProps.disabled = true
@ -374,7 +376,7 @@ const handleDeleteTable = (item, index) => {
} }
//true0 //true0
const flag = ref() const flag = ref(false)
// //
const submitForm = async (formType, data) => { const submitForm = async (formType, data) => {
@ -386,7 +388,7 @@ const submitForm = async (formType, data) => {
return; return;
} }
}) })
if(flag){ if(flag.value){
return return
} }
try { try {

Loading…
Cancel
Save