给采购订单增加关联请购单的查询

This commit is contained in:
jishenghua
2024-04-27 10:47:40 +08:00
parent a6334c7345
commit bb673ddc26
2 changed files with 35 additions and 2 deletions

View File

@@ -58,6 +58,16 @@
</a-select>
</a-form-item>
</a-col>
<a-col :md="6" :sm="24">
<a-form-item label="关联请购单" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入关联请购单" v-model="queryParam.linkApply"></a-input>
</a-form-item>
</a-col>
<a-col :md="6" :sm="24" v-if="purchaseBySaleFlag">
<a-form-item label="关联订单" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入关联订单" v-model="queryParam.linkNumber"></a-input>
</a-form-item>
</a-col>
<a-col :md="6" :sm="24">
<a-form-item label="单据状态" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-select placeholder="选择单据状态" v-model="queryParam.status">
@@ -90,7 +100,12 @@
<a-row style="width: 500px">
<template v-for="(item,index) in defColumns">
<template>
<a-col :span="8">
<a-col :span="8" v-if="purchaseBySaleFlag">
<a-checkbox :value="item.dataIndex">
<j-ellipsis :value="item.title" :length="10"></j-ellipsis>
</a-checkbox>
</a-col>
<a-col :span="8" v-if="!purchaseBySaleFlag && item.dataIndex!=='linkNumber'">
<a-checkbox :value="item.dataIndex">
<j-ellipsis :value="item.title" :length="10"></j-ellipsis>
</a-checkbox>
@@ -186,6 +201,8 @@
subType: "采购订单",
organId: "",
depotId: "",
linkApply: "",
linkNumber: "",
creator: "",
status: "",
remark: ""

View File

@@ -13,6 +13,8 @@ export const BillListMixin = {
checkFlag: true,
/* 单据Excel是否开启 */
isShowExcel: false,
//以销定购的场景开关
purchaseBySaleFlag: false,
waitTotal: 0,
dateFormat: 'YYYY-MM-DD',
billExcelUrl: '',
@@ -135,6 +137,7 @@ export const BillListMixin = {
let multiBillType = res.data.multiBillType
let multiLevelApprovalFlag = res.data.multiLevelApprovalFlag
this.checkFlag = getCheckFlag(multiBillType, multiLevelApprovalFlag, this.prefixNo)
this.purchaseBySaleFlag = res.data.purchaseBySaleFlag==='1'?true:false
this.inOutManageFlag = res.data.inOutManageFlag==='1'?true:false
}
})
@@ -211,7 +214,20 @@ export const BillListMixin = {
this.settingDataIndex = this.defDataIndex
}
this.columns = this.defColumns.filter(item => {
if(this.purchaseBySaleFlag) {
//以销定购-开启
return this.settingDataIndex.includes(item.dataIndex)
} else {
//以销定购-关闭
if(this.prefixNo === 'CGDD') {
//采购订单只显示除了关联订单之外的列
if(item.dataIndex!=='linkNumber') {
return this.settingDataIndex.includes(item.dataIndex)
}
} else {
return this.settingDataIndex.includes(item.dataIndex)
}
}
})
},
//列设置更改事件