Browse Source

Merge branch 'intex' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into intex

intex_onlin20250418
张立 6 days ago
parent
commit
49cb2d2080
  1. 6
      src/components/Table/src/TableV2.vue
  2. 54
      src/views/wms/inventoryjobManage/scrap/scrapRecordMain/scrapRecordMain.data.ts
  3. 270
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts
  4. 3
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts
  5. 1
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts
  6. 168
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainQuery/index.vue
  7. 20
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainQuery/supplierinvoiceRequestMain.data.ts

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

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

54
src/views/wms/inventoryjobManage/scrap/scrapRecordMain/scrapRecordMain.data.ts

@ -213,33 +213,33 @@ export const ScrapRecordMain = useCrudSchemas(
isForm:false,
isTableForm:false,
},
{
label: 'Q1通知单号',
field: 'q1Number',
sort: 'custom',
table: {
width: 180
},
isSearch: false
},
{
label: 'Q2通知单号',
field: 'q2Number',
sort: 'custom',
table: {
width: 180
},
isSearch: false
},
{
label: 'Q3通知单号',
field: 'q3Number',
sort: 'custom',
table: {
width: 180
},
isSearch: false
},
// {
// label: 'Q1通知单号',
// field: 'q1Number',
// sort: 'custom',
// table: {
// width: 180
// },
// isSearch: false
// },
// {
// label: 'Q2通知单号',
// field: 'q2Number',
// sort: 'custom',
// table: {
// width: 180
// },
// isSearch: false
// },
// {
// label: 'Q3通知单号',
// field: 'q3Number',
// sort: 'custom',
// table: {
// width: 180
// },
// isSearch: false
// },
{
label: '申请时间',
field: 'requestTime',

270
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts

@ -420,141 +420,141 @@ export const ScrapRequestMain = useCrudSchemas(
filterable: true
}
},
{
label: 'Q1通知单号',
field: 'q1Number',
sort: 'custom',
isSearch: false,
isDetail: true,
table: {
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
// multiple: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择Q1通知单号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段
searchTitle: 'Q1通知单号', // 查询弹窗标题
searchAllSchemas: Q1.allSchemas, // 查询弹窗所需类
searchPage: InspectionQ1Api.getQ1Page, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
},
{
key: 'status',
value: '0',
isMainValue: false
}
],
verificationParams: [
{
key: 'number',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true
}
] // 失去焦点校验参数
}
}
},
{
label: 'Q2通知单号',
field: 'q2Number',
sort: 'custom',
isSearch: false,
isDetail: true,
table: {
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
// multiple: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择Q2通知单号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段
searchTitle: 'Q2通知单号', // 查询弹窗标题
searchAllSchemas: Q2.allSchemas, // 查询弹窗所需类
searchPage: InspectionQ2Api.getQ2Page, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
},
{
key: 'status',
value: '0',
isMainValue: false
}
],
verificationParams: [
{
key: 'number',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true
}
] // 失去焦点校验参数
}
}
},
{
label: 'Q3通知单号',
field: 'q3Number',
sort: 'custom',
isSearch: false,
isDetail: true,
table: {
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
// multiple: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择Q3通知单号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段
searchTitle: 'Q3通知单号', // 查询弹窗标题
searchAllSchemas: InspectionQ3Main.allSchemas, // 查询弹窗所需类
searchPage: InspectionQ3Api.getInspectionQ3MainPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
},
{
key: 'status',
value: '0',
isMainValue: false
}
],
verificationParams: [
{
key: 'number',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true
}
] // 失去焦点校验参数
}
}
},
// {
// label: 'Q1通知单号',
// field: 'q1Number',
// sort: 'custom',
// isSearch: false,
// isDetail: true,
// table: {
// width: 150
// },
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// enterSearch: true,
// // multiple: true,
// isSearchList: true, // 开启查询弹窗
// searchListPlaceholder: '请选择Q1通知单号', // 输入框占位文本
// searchField: 'number', // 查询弹窗赋值字段
// searchTitle: 'Q1通知单号', // 查询弹窗标题
// searchAllSchemas: Q1.allSchemas, // 查询弹窗所需类
// searchPage: InspectionQ1Api.getQ1Page, // 查询弹窗所需分页方法
// searchCondition: [
// {
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// },
// {
// key: 'status',
// value: '0',
// isMainValue: false
// }
// ],
// verificationParams: [
// {
// key: 'number',
// action: '==',
// value: '',
// isMainValue: false,
// isSearch: true,
// isFormModel: true
// }
// ] // 失去焦点校验参数
// }
// }
// },
// {
// label: 'Q2通知单号',
// field: 'q2Number',
// sort: 'custom',
// isSearch: false,
// isDetail: true,
// table: {
// width: 150
// },
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// enterSearch: true,
// // multiple: true,
// isSearchList: true, // 开启查询弹窗
// searchListPlaceholder: '请选择Q2通知单号', // 输入框占位文本
// searchField: 'number', // 查询弹窗赋值字段
// searchTitle: 'Q2通知单号', // 查询弹窗标题
// searchAllSchemas: Q2.allSchemas, // 查询弹窗所需类
// searchPage: InspectionQ2Api.getQ2Page, // 查询弹窗所需分页方法
// searchCondition: [
// {
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// },
// {
// key: 'status',
// value: '0',
// isMainValue: false
// }
// ],
// verificationParams: [
// {
// key: 'number',
// action: '==',
// value: '',
// isMainValue: false,
// isSearch: true,
// isFormModel: true
// }
// ] // 失去焦点校验参数
// }
// }
// },
// {
// label: 'Q3通知单号',
// field: 'q3Number',
// sort: 'custom',
// isSearch: false,
// isDetail: true,
// table: {
// width: 150
// },
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// enterSearch: true,
// // multiple: true,
// isSearchList: true, // 开启查询弹窗
// searchListPlaceholder: '请选择Q3通知单号', // 输入框占位文本
// searchField: 'number', // 查询弹窗赋值字段
// searchTitle: 'Q3通知单号', // 查询弹窗标题
// searchAllSchemas: InspectionQ3Main.allSchemas, // 查询弹窗所需类
// searchPage: InspectionQ3Api.getInspectionQ3MainPage, // 查询弹窗所需分页方法
// searchCondition: [
// {
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// },
// {
// key: 'status',
// value: '0',
// isMainValue: false
// }
// ],
// verificationParams: [
// {
// key: 'number',
// action: '==',
// value: '',
// isMainValue: false,
// isSearch: true,
// isFormModel: true
// }
// ] // 失去焦点校验参数
// }
// }
// },
{
label: '状态',
field: 'status',

3
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts

@ -548,6 +548,9 @@ export const InventorymoveRequestMainRules = reactive({
fromWarehouseCode: [
{ required: true, message: '请选择从仓库代码', trigger: 'blur' }
],
fromLocationCode: [
{ required: true, message: '请选择从库位代码', trigger: 'blur' }
],
toLocationCode: [
{ required: true, message: '请选择到库位代码', trigger: 'change' }
],

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

@ -439,6 +439,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
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) => {
return [
// defaultButtons.mainListPurchasePlanOpeBtn({ hide: isShowMainButton(row, ['9']) ,hasPermi: 'wms:supplierinvoice-request-main:open'}), //
defaultButtons.mainListPlanSubBtn({
hide: isShowMainButton(row, ['1', '6']),
hasPermi: 'wms:supplierinvoice-request-main:sub'
}), //
// defaultButtons.mainListPlanSubBtn({
// hide: isShowMainButton(row, ['1', '6']),
// hasPermi: 'wms:supplierinvoice-request-main:sub'
// }), //
// {
// label: t('ts.'),
// name: 'open_detail',
// type: 'primary',
// icon: '',
// color: '',
// hasPermi: '',
// link: true //
// },
// {
// label: t('ts.'),
// name: 'purchase_mainPlanSub',
// hide: !(!isShowMainButton(row, ['2']) && row.currentIsProcurementCreator == true),
// type: 'primary',
// icon: '',
// color: '',
// hasPermi: 'wms:supplierinvoice-request-main:app',
// link: true //
// },
// {
// label: t('ts.'),
// name: 'purchase_mainPlanTur',
// hide: !(!isShowMainButton(row, ['2']) && row.currentIsProcurementCreator == true),
// type: 'danger',
// color: '',
// link: true, //
// hasPermi: 'wms:supplierinvoice-request-main:rej'
// },
// {
// label: t('ts.'),
// name: 'invoice_sent_out',
// hide: isShowMainButton(row, ['3', '7']),
// type: 'danger',
// color: '',
// link: true, //
// hasPermi: 'wms:supplierinvoice-request-main:invoiceSentOut'
// },
// {
// label: t('ts.'),
// name: 'finance_mainPlanSub',
// hide: isShowMainButton(row, ['4']),
// type: 'primary',
// icon: '',
// color: '',
// hasPermi: 'wms:supplierinvoice-request-main:financeApp',
// link: true //
// },
// {
// label: t('ts.'),
// name: 'finance_mainPlanTur',
// hide: isShowMainButton(row, ['4']),
// type: 'danger',
// color: '',
// link: true, //
// hasPermi: 'wms:supplierinvoice-request-main:financeRej'
// },
// defaultButtons.mainListEditBtn({
// hasPermi: 'wms:supplierinvoice-request-main:update',
// 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.'),
// name: 'repeal',
// hide: isShowMainButton(row, ['1', '3', '6', '7']),
// type: 'danger',
// color: '',
// link: true, //
// hasPermi: 'wms:supplierinvoice-request-main:repeal'
// },
// // 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('ts.查看明细'),
name: 'open_detail',
type: 'primary',
icon: '',
color: '',
hasPermi: '',
link: true //
},
{
label: t('ts.采购通过'),
name: 'purchase_mainPlanSub',
hide: !(!isShowMainButton(row, ['2']) && row.currentIsProcurementCreator == true),
type: 'primary',
icon: '',
color: '',
hasPermi: 'wms:supplierinvoice-request-main:app',
link: true //
},
{
label: t('ts.采购驳回'),
name: 'purchase_mainPlanTur',
hide: !(!isShowMainButton(row, ['2']) && row.currentIsProcurementCreator == true),
type: 'danger',
color: '',
link: true, //
hasPermi: 'wms:supplierinvoice-request-main:rej'
},
{
label: t('ts.供应商确认'),
name: 'invoice_sent_out',
hide: isShowMainButton(row, ['3', '7']),
type: 'danger',
color: '',
link: true, //
hasPermi: 'wms:supplierinvoice-request-main:invoiceSentOut'
},
{
label: t('ts.财务通过'),
name: 'finance_mainPlanSub',
hide: isShowMainButton(row, ['4']),
type: 'primary',
icon: '',
color: '',
hasPermi: 'wms:supplierinvoice-request-main:financeApp',
link: true //
},
{
label: t('ts.财务驳回'),
name: 'finance_mainPlanTur',
hide: isShowMainButton(row, ['4']),
type: 'danger',
color: '',
link: true, //
hasPermi: 'wms:supplierinvoice-request-main:financeRej'
},
defaultButtons.mainListEditBtn({
hasPermi: 'wms:supplierinvoice-request-main:update',
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.作废'),
name: 'repeal',
hide: isShowMainButton(row, ['1', '3', '6', '7']),
type: 'danger',
color: '',
link: true, //
hasPermi: 'wms:supplierinvoice-request-main:repeal'
},
// 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: 'export_statement_detail',
hide: false,

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

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

Loading…
Cancel
Save