Browse Source

搜索

master
zhangli 1 year ago
parent
commit
a170c70536
  1. 9
      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

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

@ -22,7 +22,14 @@ export interface PurchaseclaimRequestDetailVO {
// 查询采购索赔申请子列表
export const getPurchaseclaimRequestDetailPage = async (params) => {
return await request.get({ url: `/wms/purchaseclaim-request-detail/page`, 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 })
}
}
// 查询采购索赔申请子详情

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

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

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

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

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

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

Loading…
Cancel
Save