Browse Source

搜索

master
zhangli 1 year ago
parent
commit
a170c70536
  1. 7
      src/api/wms/purchaseclaimRequestDetail/index.ts
  2. 1
      src/components/Detail/src/Detail.vue
  3. 14
      src/components/SearchHigh/src/SearchHigh.vue
  4. 6
      src/components/TableHead/src/TableHead.vue

7
src/api/wms/purchaseclaimRequestDetail/index.ts

@ -22,8 +22,15 @@ export interface PurchaseclaimRequestDetailVO {
// 查询采购索赔申请子列表 // 查询采购索赔申请子列表
export const getPurchaseclaimRequestDetailPage = async (params) => { export const getPurchaseclaimRequestDetailPage = async (params) => {
// return await request.get({ url: `/wms/purchaseclaim-request-detail/page`, params })
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/purchaseclaim-request-detail/senior', data })
} else {
return await request.get({ url: `/wms/purchaseclaim-request-detail/page`, params }) return await request.get({ url: `/wms/purchaseclaim-request-detail/page`, params })
} }
}
// 查询采购索赔申请子详情 // 查询采购索赔申请子详情
export const getPurchaseclaimRequesDetail = async (id: number) => { export const getPurchaseclaimRequesDetail = async (id: number) => {

1
src/components/Detail/src/Detail.vue

@ -19,6 +19,7 @@
<TableHead <TableHead
v-if="!isBasic" v-if="!isBasic"
:HeadButttondata="HeadButttondata" :HeadButttondata="HeadButttondata"
:masterId="masterParmas.masterId"
@button-base-click="buttonBaseClick" @button-base-click="buttonBaseClick"
:routeName="routeName" :routeName="routeName"
@updataTableColumns="updataTableColumns" @updataTableColumns="updataTableColumns"

14
src/components/SearchHigh/src/SearchHigh.vue

@ -64,6 +64,11 @@ const props = defineProps({
routeName: { routeName: {
type: String, type: String,
default: '' default: ''
},
//
masterId: {
type: String,
default: ''
} }
}) })
@ -127,7 +132,7 @@ const moreListOptions = ref({
const type = searchOption_high.value.find(item => (item.field == val)) const type = searchOption_high.value.find(item => (item.field == val))
let data = 'input' let data = 'input'
if (type?.dictClass) { if (type?.dictType) {
data = 'select' data = 'select'
} else if (type?.form?.component == 'InputNumber') { } else if (type?.form?.component == 'InputNumber') {
data = 'inputNumber' data = 'inputNumber'
@ -208,6 +213,13 @@ const buttonBaseClick = (val) => {
} }
data.push(obj) data.push(obj)
}) })
if (props.masterId){
data.push({
column: 'masterId',
action: "==",
value: props.masterId,
})
}
emit('searchFormClick', { emit('searchFormClick', {
filters:data filters:data
}) })

6
src/components/TableHead/src/TableHead.vue

@ -33,6 +33,7 @@
ref="searchHigh_Ref" ref="searchHigh_Ref"
class="searchHighClass" class="searchHighClass"
:routeName="routeName" :routeName="routeName"
:masterId="masterId"
:showPrimaryBaseButton="false" :showPrimaryBaseButton="false"
@searchFormClick="searchFormClick" @searchFormClick="searchFormClick"
:isHighExcludePrimary="false" :isHighExcludePrimary="false"
@ -56,6 +57,11 @@ import rowDrop from "@/components/rowDrop/index.vue"
routeName: { routeName: {
type: String, type: String,
default: '' default: ''
},
//
masterId: {
type: String,
default: ''
} }
}) })

Loading…
Cancel
Save