Browse Source

Merge branch 'hella_online_20240823' into hella_online_20240803

hella_online_20240828
陈薪名 3 months ago
parent
commit
549059422f
  1. 6
      src/components/BasicForm/src/BasicForm.vue
  2. 56
      src/views/qms/inspectionQ2/index.vue
  3. 21
      src/views/qms/inspectionQ2/inspectionQ2.data.ts
  4. 1
      src/views/qms/inspectionQ3/inspectionQ3.data.ts
  5. 25
      src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue
  6. 2
      src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue
  7. 2
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue
  8. 4
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
  9. 18
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue

6
src/components/BasicForm/src/BasicForm.vue

@ -150,6 +150,7 @@
<SearchTable
ref="searchTableRef"
:showSearchTableQueryFields="showSearchTableQueryFields"
:hiddenFilterBtnFields="hiddenFilterBtnFields"
:isCheckStrictly="isCheckStrictly"
@searchTableSuccess="searchTableSuccess"
>
@ -359,6 +360,11 @@ const props = defineProps({
required: false,
default: []
},
hiddenFilterBtnFields:{
type: Array,
required: false,
default: []
},
//
isJiaoyan: {
type: Boolean,

56
src/views/qms/inspectionQ2/index.vue

@ -57,6 +57,7 @@
})
}
"
:hiddenFilterBtnFields="['purchaseReceiptNumber']"
:rules="Q2Rules"
:formAllSchemas="Q2.allSchemas"
:apiUpdate="Q2Api.updateQ2"
@ -158,6 +159,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
if (formField == 'lightItemCode') {
setV['lightItemCode'] = val[0].code
setV['lightItemName'] = val[0].name
setV['standardCostPrice'] = ''
setV['lightQty'] = 0
setV['claimAmount'] = ''
setV['otherClaimAmount'] = 0
setV['summaryAmount'] = 0
setV['disbursementAmount'] = 0
setV['remainingAmount'] = 0
 const params2 = {
        by: 'ASC',
        filters: [{ column: 'itemCode', action: '==', value: val[0].code }],
@ -194,14 +203,6 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
setV['SupplierCode'] = ''
setV['SupplierName'] = ''
setV['itemName'] = ''
setV['standardCostPrice'] = ''
setV['lightQty'] = 0
setV['claimAmount'] = ''
setV['otherclaimAmount'] = 0
setV['summaryAmount'] = 0
setV['disbursementAmount'] = 0
setV['remainingAmount'] = 0
setV['purchaseReceiptNumber'] = ''
setV['uom'] = val[0].supplierUom
Q2Api.getEmail().then((res) => {
@ -247,24 +248,6 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
})
}
})
// const params2 = {
// by: 'ASC',
// filters: [{ column: 'itemCode', action: '==', value: val[0].itemCode }],
// pageNo: 1,
// pageSize: 500,
// sort: ''
// }
// params2.isSearch = true
// StdcostpriceApi.getStdcostpricePage(params2).then((res) => {
// if (res.list?.length > 0) {
// priceObj.value = res.list[0]
// formRef.setValues({
// standardCostPrice: priceObj.value.price
// })
// }
// })
setV[formField] = val[0][searchField]
formRef.setValues(setV)
}
@ -272,6 +255,8 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
}
const onChange = (field, e) => {
console.log('onChange',field)
console.log(basicFormRef.value.formRef.formModel)
if (field == 'lightQty') {
basicFormRef.value.formRef.formModel.claimAmount = (
parseFloat(basicFormRef.value.formRef.formModel.lightQty) *
@ -280,7 +265,7 @@ const onChange = (field, e) => {
).toFixed(6)
basicFormRef.value.formRef.formModel.summaryAmount = (
parseFloat(basicFormRef.value.formRef.formModel.claimAmount) +
parseFloat(basicFormRef.value.formRef.formModel.otherclaimAmount)
parseFloat(basicFormRef.value.formRef.formModel.otherClaimAmount||0)
).toFixed(6)
basicFormRef.value.formRef.formModel.remainingAmount = (
parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) -
@ -295,17 +280,17 @@ const onChange = (field, e) => {
).toFixed(6)
basicFormRef.value.formRef.formModel.summaryAmount = (
parseFloat(basicFormRef.value.formRef.formModel.claimAmount) +
parseFloat(basicFormRef.value.formRef.formModel.otherclaimAmount)
parseFloat(basicFormRef.value.formRef.formModel.otherClaimAmount)
).toFixed(6)
basicFormRef.value.formRef.formModel.remainingAmount = (
parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) -
parseFloat(basicFormRef.value.formRef.formModel.disbursementAmount)
).toFixed(6)
}
if (field == 'otherclaimAmount') {
if (field == 'otherClaimAmount') {
basicFormRef.value.formRef.formModel.summaryAmount = (
parseFloat(basicFormRef.value.formRef.formModel.claimAmount) +
parseFloat(basicFormRef.value.formRef.formModel.otherclaimAmount)
parseFloat(basicFormRef.value.formRef.formModel.otherClaimAmount)
).toFixed(6)
basicFormRef.value.formRef.formModel.remainingAmount = (
parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) -
@ -315,7 +300,7 @@ const onChange = (field, e) => {
if (field == 'claimAmount') {
basicFormRef.value.formRef.formModel.summaryAmount = (
parseFloat(basicFormRef.value.formRef.formModel.claimAmount) +
parseFloat(basicFormRef.value.formRef.formModel.otherclaimAmount)
parseFloat(basicFormRef.value.formRef.formModel.otherClaimAmount)
).toFixed(6)
basicFormRef.value.formRef.formModel.remainingAmount = (
parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) -
@ -332,6 +317,7 @@ const onChange = (field, e) => {
if (field == 'supplierCode') {
basicFormRef.value.formRef.formModel.supplierName = ''
basicFormRef.value.formRef.formModel.purchaseReceiptNumber = ''
const paramsCustomer = {
by: 'ASC',
filters: [
@ -466,7 +452,8 @@ const openForm = (type: string, row?: any) => {
}
})
}
basicFormRef.value.open(type, row)
if(!row || !row.claimAmount){
nextTick(() => {
basicFormRef.value.formRef.setValues({
@ -502,7 +489,6 @@ const openForm = (type: string, row?: any) => {
)
uploadFile['componentProps']['modelValue'] = row.filePathListView
}
basicFormRef.value.open(type, row)
}
// form
@ -521,6 +507,10 @@ const formsSuccess = async (formType, data) => {
message.error('整灯数量不能为0')
return
}
if (!data.standardCostPrice) {
message.error('标准成本价格不能为0或空')
return
}
if (data.activeTime == 0) data.activeTime = null
if (data.expireTime == 0) data.expireTime = null

21
src/views/qms/inspectionQ2/inspectionQ2.data.ts

@ -25,7 +25,7 @@ export const Q2Rules = reactive({
supplierCode: [{ required: true, message: '请选择供应商代码', trigger: 'change' }],
purchaseReceiptNumber: [
{ required: true, message: '请选择采购收货单号', trigger: 'change' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
{ max: 255, message: '不得超过255个字符', trigger: 'blur' }
],
claimTime: [{ required: true, message: '请选择索赔日期', trigger: 'change' }],
lightItemCode: [{ required: true, message: '请选择整灯物料代码', trigger: 'change' }],
@ -390,7 +390,7 @@ export const Q2 = useCrudSchemas(
},
{
label: '其他索赔金额',
field: 'otherclaimAmount',
field: 'otherClaimAmount',
sort: 'custom',
isSearch: false,
isTable: true,
@ -470,7 +470,6 @@ export const Q2 = useCrudSchemas(
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
multiple: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择Q1通知单', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段
@ -596,11 +595,25 @@ export const Q2 = useCrudSchemas(
}
}
},
{
label: '索赔单附件',
field: 'claimAddress',
field: 'claimAddressName',
sort: 'custom',
isSearch: false,
isForm: false,
isTable: true,
isDetail: false,
table: {
width: 150
}
},
{
label: '索赔单附件',
field: 'claimAddress',
sort: 'custom',
isTable: false,
table: {
width: 150
},

1
src/views/qms/inspectionQ3/inspectionQ3.data.ts

@ -126,7 +126,6 @@ export const InspectionQ3Main = useCrudSchemas(
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
multiple: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择Q1通知单', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段

25
src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue

@ -117,7 +117,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}
const { tableObject, tableMethods } = useTable({
getListApi: 'ProductionreturnJobMain'==routeName.value?ProductionreturnJobDetailApi.getProductionreturnJobDetailPageStore:ProductionreturnJobDetailApi.getProductionreturnJobDetailPageHold //
// getListApi: 'ProductionreturnJobMain'==routeName.value?ProductionreturnJobDetailApi.getProductionreturnJobDetailPageStore:ProductionreturnJobDetailApi.getProductionreturnJobDetailPageHold //
getListApi: ProductionreturnJobDetailApi.getProductionreturnJobDetailPage //
})
@ -275,16 +277,17 @@ const handleExport = async () => {
//
loadStart()
const excelTitle = ref(route.meta.title)
if('ProductionreturnJobMain'==routeName.value){
//退
const data = await ProductionreturnJobMainApi.exportProductionreturnJobMainStore(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}else{
// 退
const data = await ProductionreturnJobMainApi.exportProductionreturnJobMainHold(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}
// if('ProductionreturnJobMain'==routeName.value){
// //退
// const data = await ProductionreturnJobMainApi.exportProductionreturnJobMainStore(tableObject.params)
// download.excel(data, `${excelTitle.value}${formatDate(new Date())}.xlsx`)
// }else{
// // 退
// const data = await ProductionreturnJobMainApi.exportProductionreturnJobMainHold(tableObject.params)
// download.excel(data, `${excelTitle.value}${formatDate(new Date())}.xlsx`)
// }
const data = await ProductionreturnJobMainApi.exportProductionreturnJobMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {

2
src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue

@ -203,7 +203,7 @@ const butttondata = (row,$index) => {
// defaultButtons.mainInspectRequestBtn({hasPermi:'wms:productreceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainInspectRequestBtn({hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainListPointBtn(null), //
defaultButtons.mainListRecoveryBtn({hide:row.recoveryRequestFlag == "TRUE" }), // //recoveryRequestFlag==TRUE
// defaultButtons.mainListRecoveryBtn({hide:row.recoveryRequestFlag == "TRUE" }), // //recoveryRequestFlag==TRUE
]
}

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

@ -240,7 +240,7 @@ const butttondata = (row,$index) => {
defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainPutawayRequestCpBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),//
defaultButtons.mainListPointBtn(null), //
defaultButtons.mainListRecoveryBtn({hide:row.recoveryRequestFlag == "TRUE" }), // //recoveryRequestFlag==TRUE
// defaultButtons.mainListRecoveryBtn({hide:row.recoveryRequestFlag == "TRUE" }), // //recoveryRequestFlag==TRUE
]
}

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

@ -183,14 +183,14 @@ const isShowSourceTypeButton = (row) => {
const butttondata = (row,$index) => {
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
if(findIndex>-1&&findIndex<$index){
return [defaultButtons.mainListPrintInspectionBtn(null)]
return [defaultButtons.mainListPrintInspectionBtn({hide:routeName.value.includes('SCP')})]
}
return [
defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainPutawayRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),//
//defaultButtons.mainListPlanCheckQualityReportBtn({hide:row.orderTypeM == "2"}), //
defaultButtons.mainListPlanCheckQualityReportBtn({hide:isShowSourceTypeButton(row)}), //
defaultButtons.mainListPrintInspectionBtn(null),
defaultButtons.mainListPrintInspectionBtn({hide:routeName.value.includes('SCP')})
]
}

18
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue

@ -465,7 +465,10 @@ const butttondata = (row, $index) => {
defaultButtons.mainListEditBtn({
hide: isShowMainButton(row, ['1']),
hasPermi: 'wms:purchasereturn-request-main:update'
}) //
}),//
defaultButtons.mainListDocumentPrintBtn({
hide: isShowMainButton(row, ['8'])
})//
// {
// label: '',
// name: 'ssbq',
@ -511,12 +514,23 @@ const buttonTableClick = async (val, row) => {
genLabelId.value = row.masterId
await getDetailList()
formLabelRef.value.open('create', row, null, 'createLabel') // createLabel
} else if (val == 'point') {
}
else if (val == 'documentPrint') {
//
handleDocumentPrint(row.number,row.itemCode)
}else if (val == 'point') {
//
labelPrint(row)
}
}
//
const BASE_URL2 = getJmreportBaseUrl()
const documentSrc = ref(BASE_URL2 + '/jmreport/view/920874172025987072?token=' + getAccessToken())
const handleDocumentPrint = async (number,itemCode) => {
window.open(documentSrc.value + '&requestNumber=' + number +'&itemCode=' + itemCode)
}
/** 添加/修改操作 */
const formRef = ref()
const openForm = async (type: string, row?: Object) => {

Loading…
Cancel
Save