Browse Source

Merge remote-tracking branch 'remotes/origin/intex_online20250410' into intex

intex_onlin20250418
songguoqiang 6 days ago
parent
commit
492d0e6af8
  1. 6
      src/components/Table/src/TableV2.vue
  2. 1
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts
  3. 168
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainQuery/index.vue
  4. 20
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainQuery/supplierinvoiceRequestMain.data.ts

6
src/components/Table/src/TableV2.vue

@ -1,6 +1,6 @@
<template> <template>
<div style="height: 400px" v-loading="loading"> <div style="height: 400px" v-loading="loading||timeLoading">
<el-auto-resizer> <el-auto-resizer>
<template #default="{ height, width }"> <template #default="{ height, width }">
<el-table-v2 <el-table-v2
@ -149,8 +149,10 @@ const mColumns = ref(props.columns.map(item=>({
}))) })))
const mData = ref([]) const mData = ref([])
const timeLoading = ref(false)
watch(()=>props.data,()=>{ watch(()=>props.data,()=>{
console.log('selections',selections.value ) console.log('selections',selections.value )
timeLoading.value = true
mData.value = props.data.map(item=>({ mData.value = props.data.map(item=>({
...item, ...item,
checked: selections.value.find(item1=>item1.id==item.id)?true:false, checked: selections.value.find(item1=>item1.id==item.id)?true:false,
@ -158,6 +160,8 @@ watch(()=>props.data,()=>{
})) }))
console.log('mData',mData.value) console.log('mData',mData.value)
timeLoading.value = false
}) })
const rowEventHandlers = ({onClick})=>{ const rowEventHandlers = ({onClick})=>{

1
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

@ -439,6 +439,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
disabled:true
} }
}, },
}, },

168
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainQuery/index.vue

@ -767,91 +767,91 @@ const isShowMainButton = (row, val) => {
const butttondata = (row, $index) => { const butttondata = (row, $index) => {
return [ return [
// defaultButtons.mainListPurchasePlanOpeBtn({ hide: isShowMainButton(row, ['9']) ,hasPermi: 'wms:supplierinvoice-request-main:open'}), // // defaultButtons.mainListPurchasePlanOpeBtn({ hide: isShowMainButton(row, ['9']) ,hasPermi: 'wms:supplierinvoice-request-main:open'}), //
defaultButtons.mainListPlanSubBtn({ // defaultButtons.mainListPlanSubBtn({
hide: isShowMainButton(row, ['1', '6']), // hide: isShowMainButton(row, ['1', '6']),
hasPermi: 'wms:supplierinvoice-request-main:sub' // hasPermi: 'wms:supplierinvoice-request-main:sub'
}), // // }), //
{ // {
label: t('ts.查看明细'), // label: t('ts.'),
name: 'open_detail', // name: 'open_detail',
type: 'primary', // type: 'primary',
icon: '', // icon: '',
color: '', // color: '',
hasPermi: '', // hasPermi: '',
link: true // // link: true //
}, // },
{ // {
label: t('ts.采购通过'), // label: t('ts.'),
name: 'purchase_mainPlanSub', // name: 'purchase_mainPlanSub',
hide: !(!isShowMainButton(row, ['2']) && row.currentIsProcurementCreator == true), // hide: !(!isShowMainButton(row, ['2']) && row.currentIsProcurementCreator == true),
type: 'primary', // type: 'primary',
icon: '', // icon: '',
color: '', // color: '',
hasPermi: 'wms:supplierinvoice-request-main:app', // hasPermi: 'wms:supplierinvoice-request-main:app',
link: true // // link: true //
}, // },
{ // {
label: t('ts.采购驳回'), // label: t('ts.'),
name: 'purchase_mainPlanTur', // name: 'purchase_mainPlanTur',
hide: !(!isShowMainButton(row, ['2']) && row.currentIsProcurementCreator == true), // hide: !(!isShowMainButton(row, ['2']) && row.currentIsProcurementCreator == true),
type: 'danger', // type: 'danger',
color: '', // color: '',
link: true, // // link: true, //
hasPermi: 'wms:supplierinvoice-request-main:rej' // hasPermi: 'wms:supplierinvoice-request-main:rej'
}, // },
{ // {
label: t('ts.供应商确认'), // label: t('ts.'),
name: 'invoice_sent_out', // name: 'invoice_sent_out',
hide: isShowMainButton(row, ['3', '7']), // hide: isShowMainButton(row, ['3', '7']),
type: 'danger', // type: 'danger',
color: '', // color: '',
link: true, // // link: true, //
hasPermi: 'wms:supplierinvoice-request-main:invoiceSentOut' // hasPermi: 'wms:supplierinvoice-request-main:invoiceSentOut'
}, // },
{ // {
label: t('ts.财务通过'), // label: t('ts.'),
name: 'finance_mainPlanSub', // name: 'finance_mainPlanSub',
hide: isShowMainButton(row, ['4']), // hide: isShowMainButton(row, ['4']),
type: 'primary', // type: 'primary',
icon: '', // icon: '',
color: '', // color: '',
hasPermi: 'wms:supplierinvoice-request-main:financeApp', // hasPermi: 'wms:supplierinvoice-request-main:financeApp',
link: true // // link: true //
}, // },
{ // {
label: t('ts.财务驳回'), // label: t('ts.'),
name: 'finance_mainPlanTur', // name: 'finance_mainPlanTur',
hide: isShowMainButton(row, ['4']), // hide: isShowMainButton(row, ['4']),
type: 'danger', // type: 'danger',
color: '', // color: '',
link: true, // // link: true, //
hasPermi: 'wms:supplierinvoice-request-main:financeRej' // hasPermi: 'wms:supplierinvoice-request-main:financeRej'
}, // },
defaultButtons.mainListEditBtn({ // defaultButtons.mainListEditBtn({
hasPermi: 'wms:supplierinvoice-request-main:update', // hasPermi: 'wms:supplierinvoice-request-main:update',
hide: isShowMainButton(row, ['1', '3', '6', '7']) // hide: isShowMainButton(row, ['1', '3', '6', '7'])
}), // // }), //
// defaultButtons.mainListPurchasePlanCloBtn({ hasPermi: 'wms:supplierinvoice-request-main:close' ,hide: isShowMainButton(row, ['1','3','6','7']) }), // // // defaultButtons.mainListPurchasePlanCloBtn({ hasPermi: 'wms:supplierinvoice-request-main:close' ,hide: isShowMainButton(row, ['1','3','6','7']) }), //
{ // {
label: t('ts.作废'), // label: t('ts.'),
name: 'repeal', // name: 'repeal',
hide: isShowMainButton(row, ['1', '3', '6', '7']), // hide: isShowMainButton(row, ['1', '3', '6', '7']),
type: 'danger', // type: 'danger',
color: '', // color: '',
link: true, // // link: true, //
hasPermi: 'wms:supplierinvoice-request-main:repeal' // hasPermi: 'wms:supplierinvoice-request-main:repeal'
}, // },
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierinvoice-request-main:delete'}), // // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierinvoice-request-main:delete'}), //
// {
// label: t(''),
// name: 'mian_print',
// hide: !(row.goldenTaxInvoiceNumber != null && row.goldenTaxInvoiceNumber != ''),
// type: 'primary',
// color: '',
// link: true, //
// hasPermi: ''
// },
{ {
label: t('打印对账单'),
name: 'mian_print',
hide: !(row.goldenTaxInvoiceNumber != null && row.goldenTaxInvoiceNumber != ''),
type: 'primary',
color: '',
link: true, //
hasPermi: ''
}
,{
label: t('导出对账单明细'), label: t('导出对账单明细'),
name: 'export_statement_detail', name: 'export_statement_detail',
hide: false, hide: false,

20
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainQuery/supplierinvoiceRequestMain.data.ts

@ -1279,16 +1279,16 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
} }
} }
}, },
// { {
// label: '操作', label: '操作',
// field: 'action', field: 'action',
// isDetail: false, isDetail: false,
// isForm: false, isForm: false,
// table: { table: {
// width: 300, width: 150,
// fixed: 'right' fixed: 'right'
// }, },
// } }
])) ]))
export const accountantFormartDetail = ( cellValue) => { export const accountantFormartDetail = ( cellValue) => {
if(cellValue == 0){ if(cellValue == 0){

Loading…
Cancel
Save