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

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

@ -57,6 +57,7 @@
}) })
} }
" "
:hiddenFilterBtnFields="['purchaseReceiptNumber']"
:rules="Q2Rules" :rules="Q2Rules"
:formAllSchemas="Q2.allSchemas" :formAllSchemas="Q2.allSchemas"
:apiUpdate="Q2Api.updateQ2" :apiUpdate="Q2Api.updateQ2"
@ -158,6 +159,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
if (formField == 'lightItemCode') { if (formField == 'lightItemCode') {
setV['lightItemCode'] = val[0].code setV['lightItemCode'] = val[0].code
setV['lightItemName'] = val[0].name 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 = {  const params2 = {
        by: 'ASC',         by: 'ASC',
        filters: [{ column: 'itemCode', action: '==', value: val[0].code }],         filters: [{ column: 'itemCode', action: '==', value: val[0].code }],
@ -194,14 +203,6 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
setV['SupplierCode'] = '' setV['SupplierCode'] = ''
setV['SupplierName'] = '' setV['SupplierName'] = ''
setV['itemName'] = '' 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 setV['uom'] = val[0].supplierUom
Q2Api.getEmail().then((res) => { 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] setV[formField] = val[0][searchField]
formRef.setValues(setV) formRef.setValues(setV)
} }
@ -272,6 +255,8 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
} }
const onChange = (field, e) => { const onChange = (field, e) => {
console.log('onChange',field)
console.log(basicFormRef.value.formRef.formModel)
if (field == 'lightQty') { if (field == 'lightQty') {
basicFormRef.value.formRef.formModel.claimAmount = ( basicFormRef.value.formRef.formModel.claimAmount = (
parseFloat(basicFormRef.value.formRef.formModel.lightQty) * parseFloat(basicFormRef.value.formRef.formModel.lightQty) *
@ -280,7 +265,7 @@ const onChange = (field, e) => {
).toFixed(6) ).toFixed(6)
basicFormRef.value.formRef.formModel.summaryAmount = ( basicFormRef.value.formRef.formModel.summaryAmount = (
parseFloat(basicFormRef.value.formRef.formModel.claimAmount) + parseFloat(basicFormRef.value.formRef.formModel.claimAmount) +
parseFloat(basicFormRef.value.formRef.formModel.otherclaimAmount) parseFloat(basicFormRef.value.formRef.formModel.otherClaimAmount||0)
).toFixed(6) ).toFixed(6)
basicFormRef.value.formRef.formModel.remainingAmount = ( basicFormRef.value.formRef.formModel.remainingAmount = (
parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) - parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) -
@ -295,17 +280,17 @@ const onChange = (field, e) => {
).toFixed(6) ).toFixed(6)
basicFormRef.value.formRef.formModel.summaryAmount = ( basicFormRef.value.formRef.formModel.summaryAmount = (
parseFloat(basicFormRef.value.formRef.formModel.claimAmount) + parseFloat(basicFormRef.value.formRef.formModel.claimAmount) +
parseFloat(basicFormRef.value.formRef.formModel.otherclaimAmount) parseFloat(basicFormRef.value.formRef.formModel.otherClaimAmount)
).toFixed(6) ).toFixed(6)
basicFormRef.value.formRef.formModel.remainingAmount = ( basicFormRef.value.formRef.formModel.remainingAmount = (
parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) - parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) -
parseFloat(basicFormRef.value.formRef.formModel.disbursementAmount) parseFloat(basicFormRef.value.formRef.formModel.disbursementAmount)
).toFixed(6) ).toFixed(6)
} }
if (field == 'otherclaimAmount') { if (field == 'otherClaimAmount') {
basicFormRef.value.formRef.formModel.summaryAmount = ( basicFormRef.value.formRef.formModel.summaryAmount = (
parseFloat(basicFormRef.value.formRef.formModel.claimAmount) + parseFloat(basicFormRef.value.formRef.formModel.claimAmount) +
parseFloat(basicFormRef.value.formRef.formModel.otherclaimAmount) parseFloat(basicFormRef.value.formRef.formModel.otherClaimAmount)
).toFixed(6) ).toFixed(6)
basicFormRef.value.formRef.formModel.remainingAmount = ( basicFormRef.value.formRef.formModel.remainingAmount = (
parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) - parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) -
@ -315,7 +300,7 @@ const onChange = (field, e) => {
if (field == 'claimAmount') { if (field == 'claimAmount') {
basicFormRef.value.formRef.formModel.summaryAmount = ( basicFormRef.value.formRef.formModel.summaryAmount = (
parseFloat(basicFormRef.value.formRef.formModel.claimAmount) + parseFloat(basicFormRef.value.formRef.formModel.claimAmount) +
parseFloat(basicFormRef.value.formRef.formModel.otherclaimAmount) parseFloat(basicFormRef.value.formRef.formModel.otherClaimAmount)
).toFixed(6) ).toFixed(6)
basicFormRef.value.formRef.formModel.remainingAmount = ( basicFormRef.value.formRef.formModel.remainingAmount = (
parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) - parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) -
@ -332,6 +317,7 @@ const onChange = (field, e) => {
if (field == 'supplierCode') { if (field == 'supplierCode') {
basicFormRef.value.formRef.formModel.supplierName = '' basicFormRef.value.formRef.formModel.supplierName = ''
basicFormRef.value.formRef.formModel.purchaseReceiptNumber = ''
const paramsCustomer = { const paramsCustomer = {
by: 'ASC', by: 'ASC',
filters: [ filters: [
@ -467,6 +453,7 @@ const openForm = (type: string, row?: any) => {
}) })
} }
basicFormRef.value.open(type, row)
if(!row || !row.claimAmount){ if(!row || !row.claimAmount){
nextTick(() => { nextTick(() => {
basicFormRef.value.formRef.setValues({ basicFormRef.value.formRef.setValues({
@ -502,7 +489,6 @@ const openForm = (type: string, row?: any) => {
) )
uploadFile['componentProps']['modelValue'] = row.filePathListView uploadFile['componentProps']['modelValue'] = row.filePathListView
} }
basicFormRef.value.open(type, row)
} }
// form // form
@ -521,6 +507,10 @@ const formsSuccess = async (formType, data) => {
message.error('整灯数量不能为0') message.error('整灯数量不能为0')
return return
} }
if (!data.standardCostPrice) {
message.error('标准成本价格不能为0或空')
return
}
if (data.activeTime == 0) data.activeTime = null if (data.activeTime == 0) data.activeTime = null
if (data.expireTime == 0) data.expireTime = 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' }], supplierCode: [{ required: true, message: '请选择供应商代码', trigger: 'change' }],
purchaseReceiptNumber: [ purchaseReceiptNumber: [
{ required: true, message: '请选择采购收货单号', trigger: 'change' }, { required: true, message: '请选择采购收货单号', trigger: 'change' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 255, message: '不得超过255个字符', trigger: 'blur' }
], ],
claimTime: [{ required: true, message: '请选择索赔日期', trigger: 'change' }], claimTime: [{ required: true, message: '请选择索赔日期', trigger: 'change' }],
lightItemCode: [{ required: true, message: '请选择整灯物料代码', trigger: 'change' }], lightItemCode: [{ required: true, message: '请选择整灯物料代码', trigger: 'change' }],
@ -390,7 +390,7 @@ export const Q2 = useCrudSchemas(
}, },
{ {
label: '其他索赔金额', label: '其他索赔金额',
field: 'otherclaimAmount', field: 'otherClaimAmount',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
isTable: true, isTable: true,
@ -470,7 +470,6 @@ export const Q2 = useCrudSchemas(
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true, enterSearch: true,
multiple: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择Q1通知单', // 输入框占位文本 searchListPlaceholder: '请选择Q1通知单', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段 searchField: 'number', // 查询弹窗赋值字段
@ -596,11 +595,25 @@ export const Q2 = useCrudSchemas(
} }
} }
}, },
{ {
label: '索赔单附件', label: '索赔单附件',
field: 'claimAddress', field: 'claimAddressName',
sort: 'custom', sort: 'custom',
isSearch: false,
isForm: false,
isTable: true, isTable: true,
isDetail: false,
table: {
width: 150
}
},
{
label: '索赔单附件',
field: 'claimAddress',
sort: 'custom',
isTable: false,
table: { table: {
width: 150 width: 150
}, },

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

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

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

@ -117,7 +117,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} }
const { tableObject, tableMethods } = useTable({ 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() loadStart()
const excelTitle = ref(route.meta.title) const excelTitle = ref(route.meta.title)
if('ProductionreturnJobMain'==routeName.value){ // if('ProductionreturnJobMain'==routeName.value){
//退 // //退
const data = await ProductionreturnJobMainApi.exportProductionreturnJobMainStore(tableObject.params) // const data = await ProductionreturnJobMainApi.exportProductionreturnJobMainStore(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) // download.excel(data, `${excelTitle.value}${formatDate(new Date())}.xlsx`)
}else{ // }else{
// 退 // // 退
const data = await ProductionreturnJobMainApi.exportProductionreturnJobMainHold(tableObject.params) // 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`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}
} catch { } catch {
} finally { } 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({hasPermi:'wms:productreceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainInspectRequestBtn({hide:row.inspectRequestFlag == "FALSE" }),// defaultButtons.mainInspectRequestBtn({hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainListPointBtn(null), // 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.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainPutawayRequestCpBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),// defaultButtons.mainPutawayRequestCpBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),//
defaultButtons.mainListPointBtn(null), // 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 butttondata = (row,$index) => {
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
if(findIndex>-1&&findIndex<$index){ if(findIndex>-1&&findIndex<$index){
return [defaultButtons.mainListPrintInspectionBtn(null)] return [defaultButtons.mainListPrintInspectionBtn({hide:routeName.value.includes('SCP')})]
} }
return [ return [
defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),// 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.mainPutawayRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),//
//defaultButtons.mainListPlanCheckQualityReportBtn({hide:row.orderTypeM == "2"}), // //defaultButtons.mainListPlanCheckQualityReportBtn({hide:row.orderTypeM == "2"}), //
defaultButtons.mainListPlanCheckQualityReportBtn({hide:isShowSourceTypeButton(row)}), // 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({ defaultButtons.mainListEditBtn({
hide: isShowMainButton(row, ['1']), hide: isShowMainButton(row, ['1']),
hasPermi: 'wms:purchasereturn-request-main:update' hasPermi: 'wms:purchasereturn-request-main:update'
}) // }),//
defaultButtons.mainListDocumentPrintBtn({
hide: isShowMainButton(row, ['8'])
})//
// { // {
// label: '', // label: '',
// name: 'ssbq', // name: 'ssbq',
@ -511,12 +514,23 @@ const buttonTableClick = async (val, row) => {
genLabelId.value = row.masterId genLabelId.value = row.masterId
await getDetailList() await getDetailList()
formLabelRef.value.open('create', row, null, 'createLabel') // createLabel 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) 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 formRef = ref()
const openForm = async (type: string, row?: Object) => { const openForm = async (type: string, row?: Object) => {

Loading…
Cancel
Save