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

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

@ -136,7 +136,9 @@ export default defineComponent({
if(isAll){
//
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({
code: [required],
accountingAccount: [required],
costcentreType:[required],
accountingName: [required],
usageDescription: [required],
costecentreCode: [required],
@ -120,6 +121,7 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: false,
isForm:false,
isTable:false,
form: {
// labelMessage: '信息提示说明!!!',
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['uom'] = val[0]['uom']
}else if(formField == 'fromLocationCode'){
row['fromLocationCode'] = val[0]['code']
row['fromLocationCode'] = val[0]['defaultLocationCode']
}
}else {
const setV = {}
@ -142,6 +142,8 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
setV['itemCode'] = val[0]['itemCode']
setV['projectCode'] = val[0]['projectCode']
setV['uom'] = val[0]['uom']
}else if(formField == 'fromLocationCode') {
setV['fromLocationCode'] = val[0]['defaultLocationCode']
}else {
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 { 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'
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = {
@ -359,12 +362,18 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchListPlaceholder: '请选择客户库位代码',
searchField: 'code',
searchTitle: '库位基础信息',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.selectConfigToLocation,
searchAllSchemas: Customerdock.allSchemas,
searchPage: CustomerdockApi.getCustomerdockPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
},
{
key: 'customerCode',
value: 'customerCode',
message: '请填写客户代码!',
isMainValue: true
}]
},
form: {
@ -379,6 +388,12 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
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,
formatter: dateFormatter,
search: {
value:[],
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD',
@ -1169,6 +1170,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}
},
},
//仅是主列表页面的筛选搜索条件
{
label: '创建时间',
field: 'createTime',
@ -1180,13 +1182,16 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isSearch:true,
formatter: dateFormatter,
search: {
value:[],
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'datetimerange',
defaultTime: [new Date('1 '), new Date('1 ')]
}
},
},
{
label: '到货时间',

Loading…
Cancel
Save