songguoqiang 1 week ago
parent
commit
aa173ca652
  1. 16
      src/components/BasicForm/src/BasicForm.vue
  2. 12
      src/components/Detail/src/Detail.vue
  3. 6
      src/components/ImportForm/src/ImportCustomerStatementForecastForm.vue
  4. 6
      src/components/ImportForm/src/ImportCustomerStatementForm.vue
  5. 6
      src/components/ImportForm/src/ImportCustomerStatementShareForm.vue
  6. 2
      src/components/ImportForm/src/ImportSupplierMoldCostForm.vue
  7. 9
      src/components/Table/src/Table.vue
  8. 19
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue
  9. 11
      src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRecordMain/index.vue
  10. 4
      src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts
  11. 3
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
  12. 4
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts
  13. 5
      src/views/wms/purchasereceiptManage/toolpurchasereceipt/toolPurchasereceiptRecordMain/index.vue
  14. 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:{
type:Boolean,
default:false
}
},
//
isShowPackNumber:{
type: Boolean,
required: false,
default: false
},
})
const { t } = useI18n() //
@ -444,7 +450,7 @@ const tabSheet = ref('TableForm')
routeName.value = route.name
const formHeight = ref({})
if (!wsCache.get('ShowPackingNumber')) {
if (!wsCache.get('ShowPackingNumber') && !props.isShowPackNumber) {
if (formSchema.value) {
formSchema.value = formSchema.value.filter(item => item.field != 'packingNumber' && item.field != 'fromPackingNumber')
}
@ -845,7 +851,7 @@ const submitForm = async () => {
//
try {
const data = unref(formRef)?.formModel
if (!wsCache.get('ShowPackingNumber') ) {
if (!wsCache.get('ShowPackingNumber') && !props.isShowPackNumber) {
data.packingNumber=''
data.fromPackingNumber=''
}
@ -857,7 +863,7 @@ const submitForm = async () => {
//
try {
const data = unref(formRef)?.formModel
if (!wsCache.get('ShowPackingNumber') ) {
if (!wsCache.get('ShowPackingNumber') && !props.isShowPackNumber) {
data.packingNumber=''
data.fromPackingNumber=''
}
@ -874,7 +880,7 @@ const submitForm = async () => {
try {
const data = unref(formRef)?.formModel
//
if (!wsCache.get('ShowPackingNumber') ) {
if (!wsCache.get('ShowPackingNumber') && !props.isShowPackNumber) {
data.packingNumber=''
data.fromPackingNumber=''
}

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

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

6
src/components/ImportForm/src/ImportCustomerStatementForecastForm.vue

@ -308,7 +308,7 @@ const verifyData = async () => {
}else if(data.status==2){
try {
//
await message.confirm('已存在相同客户编号及年月的对账单,是否确认覆盖?')
await message.confirm('已存在相同客户代码及年月的客户对账单,是否确认覆盖?')
//
submitForm();
// await PurchasepriceApi.deletePurchaseprice(id)
@ -320,7 +320,7 @@ const verifyData = async () => {
//
}
}else if(data.status==3){
await message.alertWarning('已存在相同客户编号及年月的对账单,且已提交,无法导入。')
await message.alertWarning('已存在相同客户代码及年月的客户对账单,且已提交,无法导入。')
}
}
@ -414,6 +414,8 @@ const submitFormError = (): void => {
/** 重置表单 */
const resetForm = () => {
//
queryParams.customerCode = ''
queryParams.yearsMonthStr = ''
formLoading.value = false
uploadRef.value?.clearFiles()
fileList.value = []

6
src/components/ImportForm/src/ImportCustomerStatementForm.vue

@ -308,7 +308,7 @@ const verifyData = async () => {
}else if(data.status==2){
try {
//
await message.confirm('已存在相同客户编号及年月的对账单,是否确认导入?注意:如确认则上一版本对账单将自动作废。')
await message.confirm('已存在相同客户代码及年月的客户对账单,是否确认导入?注意:如确认则上一版本对账单将自动作废。')
//
submitForm();
// await PurchasepriceApi.deletePurchaseprice(id)
@ -320,7 +320,7 @@ const verifyData = async () => {
//
}
}else if(data.status==3){
await message.alertWarning('已存在相同客户编号及年月的对账单,且已提交,无法导入。')
await message.alertWarning('已存在相同客户代码及年月的客户对账单,且已提交,无法导入。')
}
}
@ -414,6 +414,8 @@ const submitFormError = (): void => {
/** 重置表单 */
const resetForm = () => {
//
queryParams.customerCode = ''
queryParams.yearsMonthStr = ''
formLoading.value = false
uploadRef.value?.clearFiles()
fileList.value = []

6
src/components/ImportForm/src/ImportCustomerStatementShareForm.vue

@ -265,7 +265,7 @@ const verifyData = async () => {
}else if(data.status==2){
try {
//
await message.confirm('已存在相同客户编号及年月的对账单,是否确认导入?注意:如确认则上一版本对账单将自动作废。')
await message.confirm('已存在相同客户代码及年月的客户对账单,是否确认导入?注意:如确认则上一版本对账单将自动作废。')
//
submitForm();
// await PurchasepriceApi.deletePurchaseprice(id)
@ -278,7 +278,7 @@ const verifyData = async () => {
alert(123);
}
}else if(data.status==3){
await message.alertWarning('已存在相同客户编号及年月的对账单,且已确认分摊金额,无法导入')
await message.alertWarning('已存在相同客户代码及年月的客户对账单,且已确认分摊金额,无法导入')
}
}
@ -372,6 +372,8 @@ const submitFormError = (): void => {
/** 重置表单 */
const resetForm = () => {
//
queryParams.customerCode = ''
queryParams.yearsMonthStr = ''
formLoading.value = false
uploadRef.value?.clearFiles()
fileList.value = []

2
src/components/ImportForm/src/ImportSupplierMoldCostForm.vue

@ -412,6 +412,8 @@ const submitFormError = (): void => {
/** 重置表单 */
const resetForm = () => {
queryParams.supplierCode = ''
queryParams.yearsMonthStr = ''
//
formLoading.value = false
uploadRef.value?.clearFiles()

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

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

19
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

@ -127,6 +127,7 @@ import {
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import {getLabelDetailPage} from "@/api/wms/package";
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'ProductreceiptRecordMainA' })
@ -238,7 +239,7 @@ const butttondata = (row,$index) => {
}
return [
// defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainPutawayRequestCpBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" || row.recoveryRequestFlag == "TRUE"}),//
// defaultButtons.mainPutawayRequestCpBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" || row.recoveryRequestFlag == "TRUE"}),//
defaultButtons.mainListPointBtn(null), //
defaultButtons.mainListRecoveryBtn({hide:row.recoveryRequestFlag == "TRUE" }), // //recoveryRequestFlag==TRUE
]
@ -318,17 +319,17 @@ const labelPrint = async (row) => {
}
}
const defaultParams = {
    moduleName: 'productreceipt_assemble',
    tableName: 'record_productreceipt_main',
    recordNumber: row.number,
    number: row.number == null ? row.number : row.packingNumber,
    itemCode: row.itemCode,
    batch: row.batch
  }
moduleName: 'productreceipt_assemble',
// tableName: 'record_productreceipt_main',
recordNumber: row.requestNumber,
//     number: row.number == null ? row.number : row.packingNumber,
//     itemCode: row.itemCode,
//     batch: row.batch
}
const {tableObject:tableObjectPrint ,tableMethods} = useTable({
defaultParams,
// getListApi: PackageApi.getProductreceiptLabelDetailPage //
getListApi: PackageApi.getLabelDetailPageByRecordId //
getListApi: PackageApi.getLabelDetailPage //
})
//

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

@ -35,6 +35,7 @@
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
:isShowPackNumber="true"
>
<template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
@ -59,6 +60,7 @@
:tableAllSchemas="PurchasereceiptRecordDetail.allSchemas"
:tableFormRules="PurchasereceiptRecordDetailRules"
:isBusiness="true"
:isShowPackNumber="true"
/>
<!-- 详情 -->
@ -73,6 +75,7 @@
@changeTabs="changeTabs"
:buttondataTable="buttondataTable"
@tableFormButton="tableFormButton"
:isShowPackNumber="true"
/>
<!-- 记录子包装弹窗 -->
@ -86,6 +89,7 @@
:isShowButton="false"
:isShowReduceButton="false"
:isShowFooterButtton="false"
:isShowPackNumber="true"
/>
<!-- 缺货子包装弹窗 -->
@ -99,6 +103,7 @@
:isShowButton="false"
:isShowReduceButton="false"
:isShowFooterButtton="false"
:isShowPackNumber="true"
/>
<el-dialog
v-model="showQualityReport"
@ -242,9 +247,9 @@ const butttondata = (row, $index) => {
hasPermi: 'wms:purchasereceipt-record-main:createPutawayRequest',
hide: row.isPutaway==1?row.putawayRequestFlag == 'FALSE':'TRUE'
}), //
defaultButtons.mainPurchasereturnRecordBtn({
hide: (row.isPutaway==1 && row.putawayRequestFlag == 'FALSE')?false:true
}), // 退
// defaultButtons.mainPurchasereturnRecordBtn({
// hide: (row.isPutaway==1 && row.putawayRequestFlag == 'FALSE')?false:true
// }), // 退
//defaultButtons.mainListPlanCheckQualityReportBtn({hide:row.orderTypeM == "2"}), //
defaultButtons.mainListPlanCheckQualityReportBtn({ hide: isShowSourceTypeButton(row) }), //
defaultButtons.mainListPrintInspectionBtn({ hide: isShowSCPAndQMSButton() })

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

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

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

@ -35,6 +35,7 @@
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
:isShowPackNumber="true"
>
<template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
@ -59,6 +60,7 @@
:tableAllSchemas="PurchasereceiptRecordDetail.allSchemas"
:tableFormRules="PurchasereceiptRecordDetailRules"
:isBusiness="true"
:isShowPackNumber="true"
/>
<!-- 详情 -->
@ -73,6 +75,7 @@
@changeTabs="changeTabs"
:buttondataTable="buttondataTable"
@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
},
sortTableDefault:15,
hiddenInMain:true
hiddenInMain: true,
isForm: false,
isTable:false,
},
{
label: '到包装号',

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

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

Loading…
Cancel
Save