Browse Source

采购收货显示包装好问题

intex
zhang_li 1 week ago
parent
commit
a8def1bf32
  1. 16
      src/components/BasicForm/src/BasicForm.vue
  2. 12
      src/components/Detail/src/Detail.vue
  3. 9
      src/components/Table/src/Table.vue
  4. 5
      src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRecordMain/index.vue
  5. 4
      src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts
  6. 3
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
  7. 4
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts
  8. 5
      src/views/wms/purchasereceiptManage/toolpurchasereceipt/toolPurchasereceiptRecordMain/index.vue
  9. 4
      src/views/wms/purchasereceiptManage/toolpurchasereceipt/toolPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts

16
src/components/BasicForm/src/BasicForm.vue

@ -393,7 +393,13 @@ const props = defineProps({
fixedScrollHieght:{ fixedScrollHieght:{
type:Boolean, type:Boolean,
default:false default:false
} },
//
isShowPackNumber:{
type: Boolean,
required: false,
default: false
},
}) })
const { t } = useI18n() // const { t } = useI18n() //
@ -444,7 +450,7 @@ const tabSheet = ref('TableForm')
routeName.value = route.name routeName.value = route.name
const formHeight = ref({}) const formHeight = ref({})
if (!wsCache.get('ShowPackingNumber')) { if (!wsCache.get('ShowPackingNumber') && !props.isShowPackNumber) {
if (formSchema.value) { if (formSchema.value) {
formSchema.value = formSchema.value.filter(item => item.field != 'packingNumber' && item.field != 'fromPackingNumber') formSchema.value = formSchema.value.filter(item => item.field != 'packingNumber' && item.field != 'fromPackingNumber')
} }
@ -845,7 +851,7 @@ const submitForm = async () => {
// //
try { try {
const data = unref(formRef)?.formModel const data = unref(formRef)?.formModel
if (!wsCache.get('ShowPackingNumber') ) { if (!wsCache.get('ShowPackingNumber') && !props.isShowPackNumber) {
data.packingNumber='' data.packingNumber=''
data.fromPackingNumber='' data.fromPackingNumber=''
} }
@ -857,7 +863,7 @@ const submitForm = async () => {
// //
try { try {
const data = unref(formRef)?.formModel const data = unref(formRef)?.formModel
if (!wsCache.get('ShowPackingNumber') ) { if (!wsCache.get('ShowPackingNumber') && !props.isShowPackNumber) {
data.packingNumber='' data.packingNumber=''
data.fromPackingNumber='' data.fromPackingNumber=''
} }
@ -874,7 +880,7 @@ const submitForm = async () => {
try { try {
const data = unref(formRef)?.formModel const data = unref(formRef)?.formModel
// //
if (!wsCache.get('ShowPackingNumber') ) { if (!wsCache.get('ShowPackingNumber') && !props.isShowPackNumber) {
data.packingNumber='' data.packingNumber=''
data.fromPackingNumber='' data.fromPackingNumber=''
} }

12
src/components/Detail/src/Detail.vue

@ -62,6 +62,8 @@
v-model:pageSize="tableObjectRef.pageSize" v-model:pageSize="tableObjectRef.pageSize"
v-model:currentPage="tableObjectRef.currentPage" v-model:currentPage="tableObjectRef.currentPage"
v-model:sort="tableObjectRef.sort" v-model:sort="tableObjectRef.sort"
:isShowPackNumber="isShowPackNumber"
> >
<!-- <template #action="{ row }"> <!-- <template #action="{ row }">
<ButtonBase <ButtonBase
@ -79,6 +81,7 @@
v-model:pageSize="tableObjectRef.pageSize" v-model:pageSize="tableObjectRef.pageSize"
v-model:currentPage="tableObjectRef.currentPage" v-model:currentPage="tableObjectRef.currentPage"
v-model:sort="tableObjectRef.sort" v-model:sort="tableObjectRef.sort"
:isShowPackNumber="isShowPackNumber"
> >
<template v-for="name in Object.keys($slots)" :key="name" #[name]="{ row }"> <template v-for="name in Object.keys($slots)" :key="name" #[name]="{ row }">
<slot :name="name" :row="row"></slot> <slot :name="name" :row="row"></slot>
@ -143,6 +146,7 @@
v-model:pageSize="tableObjectRef.pageSize" v-model:pageSize="tableObjectRef.pageSize"
v-model:currentPage="tableObjectRef.currentPage" v-model:currentPage="tableObjectRef.currentPage"
v-model:sort="tableObjectRef.sort" v-model:sort="tableObjectRef.sort"
:isShowPackNumber="isShowPackNumber"
/> />
</ContentWrap> </ContentWrap>
@ -488,11 +492,17 @@ const props = defineProps({
required: false, required: false,
default: () => [] default: () => []
}, },
//
isShowPackNumber:{
type: Boolean,
required: false,
default: false
},
}) })
const allSchemas = ref(props.allSchemas) const allSchemas = ref(props.allSchemas)
const detailAllSchemasRef = ref(props.detailAllSchemas) const detailAllSchemasRef = ref(props.detailAllSchemas)
const detailAllSchemasRules = ref(props.detailAllSchemasRules) const detailAllSchemasRules = ref(props.detailAllSchemasRules)
if (!wsCache.get('ShowPackingNumber')) { if (!wsCache.get('ShowPackingNumber') && !props.isShowPackNumber) {
if (allSchemas.value) { if (allSchemas.value) {
allSchemas.value.detailSchema = props.allSchemas.detailSchema.filter(item => item.field != 'packingNumber') allSchemas.value.detailSchema = props.allSchemas.detailSchema.filter(item => item.field != 'packingNumber')
} }

9
src/components/Table/src/Table.vue

@ -65,6 +65,7 @@ export default defineComponent({
rowKey: propTypes.string.def(''), rowKey: propTypes.string.def(''),
// true ; false // true ; false
isCheckStrictly: propTypes.bool.def(false), isCheckStrictly: propTypes.bool.def(false),
isShowPackNumber:propTypes.bool.def(false),//
}, },
emits: ['update:pageSize', 'update:currentPage', 'register', 'update:sort','getSelectionRows','rowClick'], emits: ['update:pageSize', 'update:currentPage', 'register', 'update:sort','getSelectionRows','rowClick'],
setup(props, { attrs, slots, emit, expose }) { setup(props, { attrs, slots, emit, expose }) {
@ -103,8 +104,8 @@ export default defineComponent({
const setColumn = (columnProps: TableSetPropsType[], columnsChildren?: TableColumn[]) => { const setColumn = (columnProps: TableSetPropsType[], columnsChildren?: TableColumn[]) => {
let { columns } = unref(getProps) let { columns } = unref(getProps)
console.log(888,props.isShowPackNumber)
if (!wsCache.get('ShowPackingNumber')) { if (!wsCache.get('ShowPackingNumber')&&!props.isShowPackNumber) {
if (columns) { if (columns) {
columns = columns.filter(item => item.field != 'packingNumber' && item.field != 'fromPackingNumber'&& item.field != 'toPackingNumber') columns = columns.filter(item => item.field != 'packingNumber' && item.field != 'fromPackingNumber'&& item.field != 'toPackingNumber')
} }
@ -346,7 +347,9 @@ export default defineComponent({
showOverflowTooltip, showOverflowTooltip,
border border
} = unref(getProps) } = unref(getProps)
if (!wsCache.get('ShowPackingNumber')) {
console.log(999,props.isShowPackNumber)
if (!wsCache.get('ShowPackingNumber') && !props.isShowPackNumber) {
if (columns) { if (columns) {
columns = columns.filter(item => item.field != 'packingNumber' && item.field != 'fromPackingNumber'&& item.field != 'toPackingNumber') columns = columns.filter(item => item.field != 'packingNumber' && item.field != 'fromPackingNumber'&& item.field != 'toPackingNumber')
} }

5
src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRecordMain/index.vue

@ -35,6 +35,7 @@
v-model:pageSize="tableObject.pageSize" v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
:isShowPackNumber="true"
> >
<template #number="{ row }"> <template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '单据号', row.number)"> <el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
@ -59,6 +60,7 @@
:tableAllSchemas="PurchasereceiptRecordDetail.allSchemas" :tableAllSchemas="PurchasereceiptRecordDetail.allSchemas"
:tableFormRules="PurchasereceiptRecordDetailRules" :tableFormRules="PurchasereceiptRecordDetailRules"
:isBusiness="true" :isBusiness="true"
:isShowPackNumber="true"
/> />
<!-- 详情 --> <!-- 详情 -->
@ -73,6 +75,7 @@
@changeTabs="changeTabs" @changeTabs="changeTabs"
:buttondataTable="buttondataTable" :buttondataTable="buttondataTable"
@tableFormButton="tableFormButton" @tableFormButton="tableFormButton"
:isShowPackNumber="true"
/> />
<!-- 记录子包装弹窗 --> <!-- 记录子包装弹窗 -->
@ -86,6 +89,7 @@
:isShowButton="false" :isShowButton="false"
:isShowReduceButton="false" :isShowReduceButton="false"
:isShowFooterButtton="false" :isShowFooterButtton="false"
:isShowPackNumber="true"
/> />
<!-- 缺货子包装弹窗 --> <!-- 缺货子包装弹窗 -->
@ -99,6 +103,7 @@
:isShowButton="false" :isShowButton="false"
:isShowReduceButton="false" :isShowReduceButton="false"
:isShowFooterButtton="false" :isShowFooterButtton="false"
:isShowPackNumber="true"
/> />
<el-dialog <el-dialog
v-model="showQualityReport" v-model="showQualityReport"

4
src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts

@ -726,7 +726,9 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
sortTableDefault:15, sortTableDefault:15,
hiddenInMain:true hiddenInMain: true,
isForm: false,
isTable:false
}, },
{ {
label: '到包装号', label: '到包装号',

3
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue

@ -35,6 +35,7 @@
v-model:pageSize="tableObject.pageSize" v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
:isShowPackNumber="true"
> >
<template #number="{ row }"> <template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '单据号', row.number)"> <el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
@ -59,6 +60,7 @@
:tableAllSchemas="PurchasereceiptRecordDetail.allSchemas" :tableAllSchemas="PurchasereceiptRecordDetail.allSchemas"
:tableFormRules="PurchasereceiptRecordDetailRules" :tableFormRules="PurchasereceiptRecordDetailRules"
:isBusiness="true" :isBusiness="true"
:isShowPackNumber="true"
/> />
<!-- 详情 --> <!-- 详情 -->
@ -73,6 +75,7 @@
@changeTabs="changeTabs" @changeTabs="changeTabs"
:buttondataTable="buttondataTable" :buttondataTable="buttondataTable"
@tableFormButton="tableFormButton" @tableFormButton="tableFormButton"
:isShowPackNumber="true"
/> />
<!-- 记录子包装弹窗 --> <!-- 记录子包装弹窗 -->

4
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts

@ -726,7 +726,9 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
sortTableDefault:15, sortTableDefault:15,
hiddenInMain:true hiddenInMain: true,
isForm: false,
isTable:false,
}, },
{ {
label: '到包装号', label: '到包装号',

5
src/views/wms/purchasereceiptManage/toolpurchasereceipt/toolPurchasereceiptRecordMain/index.vue

@ -35,6 +35,7 @@
v-model:pageSize="tableObject.pageSize" v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
:isShowPackNumber="true"
> >
<template #number="{ row }"> <template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '单据号', row.number)"> <el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
@ -59,6 +60,7 @@
:tableAllSchemas="PurchasereceiptRecordDetail.allSchemas" :tableAllSchemas="PurchasereceiptRecordDetail.allSchemas"
:tableFormRules="PurchasereceiptRecordDetailRules" :tableFormRules="PurchasereceiptRecordDetailRules"
:isBusiness="true" :isBusiness="true"
:isShowPackNumber="true"
/> />
<!-- 详情 --> <!-- 详情 -->
@ -73,6 +75,7 @@
@changeTabs="changeTabs" @changeTabs="changeTabs"
:buttondataTable="buttondataTable" :buttondataTable="buttondataTable"
@tableFormButton="tableFormButton" @tableFormButton="tableFormButton"
:isShowPackNumber="true"
/> />
<!-- 记录子包装弹窗 --> <!-- 记录子包装弹窗 -->
@ -86,6 +89,7 @@
:isShowButton="false" :isShowButton="false"
:isShowReduceButton="false" :isShowReduceButton="false"
:isShowFooterButtton="false" :isShowFooterButtton="false"
:isShowPackNumber="true"
/> />
<!-- 缺货子包装弹窗 --> <!-- 缺货子包装弹窗 -->
@ -99,6 +103,7 @@
:isShowButton="false" :isShowButton="false"
:isShowReduceButton="false" :isShowReduceButton="false"
:isShowFooterButtton="false" :isShowFooterButtton="false"
:isShowPackNumber="true"
/> />
<el-dialog <el-dialog
v-model="showQualityReport" v-model="showQualityReport"

4
src/views/wms/purchasereceiptManage/toolpurchasereceipt/toolPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts

@ -726,7 +726,9 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
sortTableDefault:15, sortTableDefault:15,
hiddenInMain:true hiddenInMain: true,
isForm: false,
isTable: false,
}, },
{ {
label: '到包装号', label: '到包装号',

Loading…
Cancel
Save