Browse Source

调整前端展示效果

master
chenfang 10 months ago
parent
commit
fe20fa1444
  1. 7
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts
  2. 14
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  3. 1
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

7
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts

@ -491,8 +491,11 @@ export const CustomerreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验
export const CustomerreturnRequestMainRules = reactive({
deliverRecordNumber: [
{ required: true, message: '请选择发货记录单号', trigger: 'change' }
// deliverRecordNumber: [
// { required: true, message: '请选择发货记录单号', trigger: 'change' }
// ],
customerCode: [
{ required: true, message: '请选择客户代码', trigger: 'blur' }
],
departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' }

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

@ -110,7 +110,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row[formField] = val[0][searchField]
} else {
const setV = {}
setV[formField] = val[0][searchField]
setV[formField] = val[0][searchField]
if(formField == 'deliverPlanNumber') {
setV['deliverPlanNumber'] = val[0]['number']
setV['customerCode'] = val[0]['customerCode']
@ -290,8 +290,16 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const formRef = ref()
const openForm =async (type: string, row?: number) => {
console.log(9999,row)
console.log(996669,type)
if(type == "update"){
DeliverRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'deliverPlanNumber') {
item.componentProps.isSearchList = false
}
})
}else {
item.componentProps.isSearchList = true,
item.componentProps.disabled = true
}
tableData.value = [] //
formRef.value.open(type, row)
}

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

@ -189,7 +189,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
// item.fromLocationGroupCode = item.fromLocationGroupCode
})
isShowButton.value = false
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'supplierCode') {
item.componentProps.disabled = true

Loading…
Cancel
Save