Browse Source

Merge remote-tracking branch 'origin/master_hella' into master_hella

master_hella_20240701
gaojs 5 months ago
parent
commit
8b06637105
  1. 36
      src/components/Detail/src/Detail.vue
  2. 4
      src/components/Table/src/Table.vue
  3. 2
      src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts
  4. 4
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue
  5. 19
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/saleShipmentMain.data.ts
  6. 5
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

36
src/components/Detail/src/Detail.vue

@ -505,9 +505,12 @@ const getAnnexFileList = async (row) => {
} }
const annexList = await FileApi.getFileList(requstData) const annexList = await FileApi.getFileList(requstData)
const annexData = annexTableData.value.find(annex=>annex.label === item.label) const annexData = annexTableData.value.find(annex=>annex.label === item.label)
let subDetailTableData = null
if(annexData){ if(annexData){
annexData.annexList = annexList annexData.annexList = annexList
subDetailTableData = annexData.subDetailTableData
}else{ }else{
subDetailTableData = item?.subDetailTableData
annexTableData.value.push({ annexTableData.value.push({
align:item.align, align:item.align,
label: item.label, label: item.label,
@ -521,19 +524,18 @@ const getAnnexFileList = async (row) => {
hiddenDelete:item.hiddenDelete || false, // hiddenDelete:item.hiddenDelete || false, //
hiddenUpload:item.hiddenUpload || false, // hiddenUpload:item.hiddenUpload || false, //
}) })
if(item?.subDetailTableData){ }
if(subDetailTableData){
const { tableObject:subTableObject, tableMethods:subTableMethods } = useTable({ const { tableObject:subTableObject, tableMethods:subTableMethods } = useTable({
getListApi: item.subDetailTableData.getSubList // getListApi: subDetailTableData.getSubList //
}) })
const {getList:getSubList} = subTableMethods const {getList:getSubList} = subTableMethods
subTableObject.params= {} subTableObject.params= {}
item.subDetailTableData.queryParams.forEach(queryItem => { subDetailTableData.queryParams.forEach(queryItem => {
subTableObject.params[queryItem.queryField] = row[queryItem.rowField] subTableObject.params[queryItem.queryField] = row[queryItem.rowField]
}); });
await getSubList() await getSubList()
item.subDetailTableData.tableList = subTableObject.tableList subDetailTableData.tableList = subTableObject.tableList
console.log('subTableObject',annexTableData.value)
}
} }
}) })
} }
@ -606,6 +608,7 @@ const titleNameRef = ref()
const titleValueRef = ref() const titleValueRef = ref()
const count =ref(0) const count =ref(0)
const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => { const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => {
titleNameRef.value = titleName titleNameRef.value = titleName
titleValueRef.value = titleValue titleValueRef.value = titleValue
remarksData.data = { remarksData.data = {
@ -829,21 +832,22 @@ const opensearchTable = (
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'edit') { if (val == 'edit') {
// //
if(props.isOpenSearchTable){ if(props.isOpenSearchTable){ // ----
searchTableFormType.value = 'update' searchTableFormType.value = 'update'
if (row?.id || row?.masterId) { if (row?.id || row?.masterId) {
searchTableFormModel.value = Object.assign(unref(searchTableFormModel), row) searchTableFormModel.value = Object.assign(unref(searchTableFormModel), row)
} }
const item = props.detailAllSchemas.formSchema[0] const item = props.detailAllSchemas.formSchema[0]
opensearchTable( debugger
item.field, item?.componentProps?.searchField, // opensearchTable(
item?.componentProps?.searchTitle, // item.field, item?.componentProps?.searchField,
item?.componentProps?.searchAllSchemas, // item?.componentProps?.searchTitle,
item?.componentProps?.searchPage, // item?.componentProps?.searchAllSchemas,
item?.componentProps?.searchCondition, // item?.componentProps?.searchPage,
item?.componentProps?.multiple, // item?.componentProps?.searchCondition,
undefined,undefined // item?.componentProps?.multiple,
) // undefined,undefined
// )
}else{ }else{
openForm('update', row) openForm('update', row)
} }

4
src/components/Table/src/Table.vue

@ -136,7 +136,9 @@ export default defineComponent({
if(isAll){ if(isAll){
// //
if(elTableRef.value?.getSelectionRows().length<unref(getProps).data.length){ if(elTableRef.value?.getSelectionRows().length<unref(getProps).data.length){
elTableRef.value!.toggleAllSelection() unref(getProps).data.forEach(row=>{
elTableRef.value!.toggleRowSelection(row,true)
})
} }
} }
} }

2
src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts

@ -10,6 +10,7 @@ const typeList = await QadProjectApi.getProjectType()
export const SubjectAccountRules = reactive({ export const SubjectAccountRules = reactive({
code: [required], code: [required],
accountingAccount: [required], accountingAccount: [required],
costcentreType:[required],
accountingName: [required], accountingName: [required],
usageDescription: [required], usageDescription: [required],
costecentreCode: [required], costecentreCode: [required],
@ -120,6 +121,7 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
isForm:false, isForm:false,
isTable:false,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {

4
src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue

@ -117,7 +117,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['projectCode'] = val[0]['projectCode'] row['projectCode'] = val[0]['projectCode']
row['uom'] = val[0]['uom'] row['uom'] = val[0]['uom']
}else if(formField == 'fromLocationCode'){ }else if(formField == 'fromLocationCode'){
row['fromLocationCode'] = val[0]['code'] row['fromLocationCode'] = val[0]['defaultLocationCode']
} }
}else { }else {
const setV = {} const setV = {}
@ -142,6 +142,8 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
setV['itemCode'] = val[0]['itemCode'] setV['itemCode'] = val[0]['itemCode']
setV['projectCode'] = val[0]['projectCode'] setV['projectCode'] = val[0]['projectCode']
setV['uom'] = val[0]['uom'] setV['uom'] = val[0]['uom']
}else if(formField == 'fromLocationCode') {
setV['fromLocationCode'] = val[0]['defaultLocationCode']
}else { }else {
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
} }

19
src/views/wms/deliversettlementManage/saleShipmentMainRequest/saleShipmentMain.data.ts

@ -9,6 +9,9 @@ import { SaleDetailAndMain } from '@/views/wms/deliversettlementManage/deliverpl
import * as LocationApi from '@/api/wms/location' import * as LocationApi from '@/api/wms/location'
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
import * as CustomerdockApi from '@/api/wms/customerdock'
import { Customerdock } from '@/views/wms/basicDataManage/customerManage/customerdock/customerdock.data'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = { const queryParams = {
@ -359,12 +362,18 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchListPlaceholder: '请选择客户库位代码', searchListPlaceholder: '请选择客户库位代码',
searchField: 'code', searchField: 'code',
searchTitle: '库位基础信息', searchTitle: '库位基础信息',
searchAllSchemas: Location.allSchemas, searchAllSchemas: Customerdock.allSchemas,
searchPage: LocationApi.selectConfigToLocation, searchPage: CustomerdockApi.getCustomerdockPage,
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},
{
key: 'customerCode',
value: 'customerCode',
message: '请填写客户代码!',
isMainValue: true
}] }]
}, },
form: { form: {
@ -379,6 +388,12 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},
{
key: 'customerCode',
value: 'customerCode',
message: '请填写客户代码!',
isMainValue: true
}] }]
} }
}, },

5
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -1161,6 +1161,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isSearch:true, isSearch:true,
formatter: dateFormatter, formatter: dateFormatter,
search: { search: {
value:[],
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
valueFormat: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD',
@ -1169,6 +1170,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
} }
}, },
}, },
//仅是主列表页面的筛选搜索条件
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -1180,13 +1182,16 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isSearch:true, isSearch:true,
formatter: dateFormatter, formatter: dateFormatter,
search: { search: {
value:[],
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'datetimerange', type: 'datetimerange',
defaultTime: [new Date('1 '), new Date('1 ')] defaultTime: [new Date('1 '), new Date('1 ')]
} }
}, },
}, },
{ {
label: '到货时间', label: '到货时间',

Loading…
Cancel
Save