Browse Source

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

intex_online20250220
songguoqiang 1 week ago
parent
commit
f035bfd6a4
  1. 6
      src/components/TableHead/src/TableHead.vue
  2. 29
      src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts
  3. 6
      src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/index.vue
  4. 33
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  5. 10
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

6
src/components/TableHead/src/TableHead.vue

@ -34,7 +34,7 @@
:isHighExcludePrimary="false" :isHighExcludePrimary="false"
:primarySearchCustomButton="[]" :primarySearchCustomButton="[]"
:highSearchCustomButton="[]" :highSearchCustomButton="[]"
:allSchemas="detailAllSchemas||allSchemas" :allSchemas="mainAndDetaillSchemas||detailAllSchemas||allSchemas"
/> />
</template> </template>
<script setup> <script setup>
@ -67,6 +67,10 @@ import rowDrop from "@/components/rowDrop/index.vue"
type: Object, type: Object,
default: null default: null
}, },
mainAndDetaillSchemas: {
type: Object,
default: null
},
}) })
const buttonsLeft = ref([]) const buttonsLeft = ref([])
const buttonsRight = ref([]) const buttonsRight = ref([])

29
src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts

@ -14,9 +14,10 @@ export const DeliverRecordMain = useCrudSchemas(
label: '单据号', label: '单据号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 180, width: 180,
fixed: 'left' fixed: 'left',
}, },
isSearch: true, isSearch: true,
isForm: false, isForm: false,
@ -27,6 +28,7 @@ export const DeliverRecordMain = useCrudSchemas(
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
isTable: true, isTable: true,
hiddenSearchHigh: true,
dictType: DICT_TYPE.DELIVER_METHOD, dictType: DICT_TYPE.DELIVER_METHOD,
dictClass: 'string', dictClass: 'string',
table: { table: {
@ -51,6 +53,7 @@ export const DeliverRecordMain = useCrudSchemas(
isTable: true, isTable: true,
isForm: false, isForm: false,
isSearch: true, isSearch: true,
hiddenSearchHigh: true,
search: { search: {
component: 'Input', component: 'Input',
componentProps: { componentProps: {
@ -62,6 +65,7 @@ export const DeliverRecordMain = useCrudSchemas(
label: '客户代码', label: '客户代码',
field: 'customerCode', field: 'customerCode',
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -105,6 +109,7 @@ export const DeliverRecordMain = useCrudSchemas(
label: '客户月台代码', label: '客户月台代码',
field: 'customerDockCode', field: 'customerDockCode',
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -116,6 +121,7 @@ export const DeliverRecordMain = useCrudSchemas(
label: '承运商', label: '承运商',
field: 'carrierCode', field: 'carrierCode',
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -128,6 +134,7 @@ export const DeliverRecordMain = useCrudSchemas(
field: 'transferMode', field: 'transferMode',
dictType: DICT_TYPE.TRANSFER_MODE, dictType: DICT_TYPE.TRANSFER_MODE,
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -139,6 +146,7 @@ export const DeliverRecordMain = useCrudSchemas(
label: '车牌号', label: '车牌号',
field: 'vehiclePlateNumber', field: 'vehiclePlateNumber',
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -150,6 +158,7 @@ export const DeliverRecordMain = useCrudSchemas(
label: '申请时间', label: '申请时间',
field: 'requestTime', field: 'requestTime',
formatter: dateFormatter, formatter: dateFormatter,
hiddenSearchHigh: true,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
@ -192,6 +201,7 @@ export const DeliverRecordMain = useCrudSchemas(
{ {
label: '生产线项', label: '生产线项',
field: 'productionLine', field: 'productionLine',
hiddenSearchHigh: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -224,6 +234,7 @@ export const DeliverRecordMain = useCrudSchemas(
{ {
label: '执行时间', label: '执行时间',
field: 'executeTime', field: 'executeTime',
hiddenSearchHigh: true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -246,6 +257,7 @@ export const DeliverRecordMain = useCrudSchemas(
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
hiddenSearchHigh: true,
formatter: dateFormatter2, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD' dateFormat: 'YYYY-MM-DD'
@ -270,6 +282,7 @@ export const DeliverRecordMain = useCrudSchemas(
label: '从仓库代码', label: '从仓库代码',
field: 'fromWarehouseCode', field: 'fromWarehouseCode',
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -280,6 +293,7 @@ export const DeliverRecordMain = useCrudSchemas(
label: '到仓库代码', label: '到仓库代码',
field: 'toWarehouseCode', field: 'toWarehouseCode',
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -293,6 +307,7 @@ export const DeliverRecordMain = useCrudSchemas(
dictClass: 'string', dictClass: 'string',
isTable: false, isTable: false,
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -305,6 +320,7 @@ export const DeliverRecordMain = useCrudSchemas(
dictClass: 'string', dictClass: 'string',
isTable: false, isTable: false,
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -314,6 +330,7 @@ export const DeliverRecordMain = useCrudSchemas(
label: '从库区代码范围', label: '从库区代码范围',
field: 'fromAreaCodes', field: 'fromAreaCodes',
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -324,6 +341,7 @@ export const DeliverRecordMain = useCrudSchemas(
label: '到库区代码范围', label: '到库区代码范围',
field: 'toAreaCodes', field: 'toAreaCodes',
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -334,6 +352,7 @@ export const DeliverRecordMain = useCrudSchemas(
label: '从月台代码', label: '从月台代码',
field: 'fromDockCode', field: 'fromDockCode',
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -344,6 +363,7 @@ export const DeliverRecordMain = useCrudSchemas(
label: '出库事务类型', label: '出库事务类型',
field: 'outTransactionType', field: 'outTransactionType',
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -354,6 +374,7 @@ export const DeliverRecordMain = useCrudSchemas(
label: '入库事务类型', label: '入库事务类型',
field: 'inTransactionType', field: 'inTransactionType',
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -364,6 +385,7 @@ export const DeliverRecordMain = useCrudSchemas(
label: '部门', label: '部门',
field: 'departmentCode', field: 'departmentCode',
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -377,6 +399,7 @@ export const DeliverRecordMain = useCrudSchemas(
dictClass: 'string', dictClass: 'string',
isTable: false, isTable: false,
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -386,6 +409,7 @@ export const DeliverRecordMain = useCrudSchemas(
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -399,6 +423,7 @@ export const DeliverRecordMain = useCrudSchemas(
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 180 width: 180
}, },
@ -426,6 +451,7 @@ export const DeliverRecordMain = useCrudSchemas(
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sort: 'custom', sort: 'custom',
hiddenSearchHigh: true,
table: { table: {
width: 150 width: 150
}, },
@ -448,6 +474,7 @@ export const DeliverRecordMain = useCrudSchemas(
isSearch: false, isSearch: false,
isTable: false, isTable: false,
isForm: false, isForm: false,
hiddenSearchHigh: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

6
src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/index.vue

@ -13,6 +13,7 @@
@searchFormClick="searchFormClick" @searchFormClick="searchFormClick"
:allSchemas="DeliverRecordMain.allSchemas" :allSchemas="DeliverRecordMain.allSchemas"
:detailAllSchemas="DeliverRecordDetail.allSchemas" :detailAllSchemas="DeliverRecordDetail.allSchemas"
:mainAndDetaillSchemas="mainAndDetaillSchemas"
/> />
<!-- 列表 --> <!-- 列表 -->
@ -99,6 +100,7 @@ import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading' import { usePageLoading } from '@/hooks/web/usePageLoading'
import { cloneDeep } from 'lodash-es'
const { loadStart, loadDone } = usePageLoading() const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'InducedProduct1' }) defineOptions({ name: 'InducedProduct1' })
@ -114,7 +116,9 @@ const importFileName = ref()
const tableData = ref([]) const tableData = ref([])
const formRef = ref() const formRef = ref()
console.log(99 , routeName.value) console.log(99 , routeName.value)
const tableColumns = ref([...DeliverRecordMain.allSchemas.tableColumns,...DeliverRecordDetail.allSchemas.tableMainColumns]) const tableColumns = ref([...DeliverRecordMain.allSchemas.tableColumns, ...DeliverRecordDetail.allSchemas.tableMainColumns])
const mainAndDetaillSchemas = ref(cloneDeep(DeliverRecordMain.allSchemas))
mainAndDetaillSchemas.value.tableColumns = [...DeliverRecordMain.allSchemas.tableColumns,...DeliverRecordDetail.allSchemas.tableMainColumns]
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: DeliverRecordDetailApi.getDeliverRecordDetailPage // getListApi: DeliverRecordDetailApi.getDeliverRecordDetailPage //

33
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -548,6 +548,22 @@ const butttondata = (row, $index) => {
// hasPermi: '', // hasPermi: '',
// link: true // // link: true //
// }, // // }, //
defaultButtons.mainListPointBtn({
hide: isShowMainButton(row, ['3', '8']),
hasPermi: 'wms:supplierdeliver-request-main:printLabel'
}), //
//defaultButtons.mainListDocumentPrintBtn({ hide: isShowMainButton(row, ['3','8']) }), //
//
{
label: t('ts.发货'),
name: 'genRecords',
hide: isShowMainButton(row, ['3']),
type: 'primary',
icon: '',
color: '',
hasPermi: 'wms:supplierdeliver-request-main:genRecords',
link: true //
},
defaultButtons.mainListPlanSubBtn({ defaultButtons.mainListPlanSubBtn({
hide: isShowMainButton(row, ['1']), hide: isShowMainButton(row, ['1']),
hasPermi: 'wms:supplierdeliver-request-main:sub' hasPermi: 'wms:supplierdeliver-request-main:sub'
@ -585,22 +601,7 @@ const butttondata = (row, $index) => {
hasPermi: 'wms:supplierdeliver-request-main:genLabels', hasPermi: 'wms:supplierdeliver-request-main:genLabels',
link: true // link: true //
}, },
defaultButtons.mainListPointBtn({
hide: isShowMainButton(row, ['3', '8']),
hasPermi: 'wms:supplierdeliver-request-main:printLabel'
}), //
//defaultButtons.mainListDocumentPrintBtn({ hide: isShowMainButton(row, ['3','8']) }), //
//
{
label: t('ts.发货'),
name: 'genRecords',
hide: isShowMainButton(row, ['3']),
type: 'primary',
icon: '',
color: '',
hasPermi: 'wms:supplierdeliver-request-main:genRecords',
link: true //
},
defaultButtons.mainListPurchasePlanCloBtn({ defaultButtons.mainListPurchasePlanCloBtn({
hide: isShowMainButton(row, ['1', '2', '4', '3']), hide: isShowMainButton(row, ['1', '2', '4', '3']),
hasPermi: 'wms:supplierdeliver-request-main:close' hasPermi: 'wms:supplierdeliver-request-main:close'

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

@ -73,7 +73,8 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
label: '单据号', label: '单据号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isForm:false, isForm: false,
sortSearchDefault: 1,
table: { table: {
width: 180, width: 180,
fixed: 'left' fixed: 'left'
@ -87,6 +88,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
label: '发货单号', label: '发货单号',
field: 'asnNumber', field: 'asnNumber',
sort: 'custom', sort: 'custom',
sortSearchDefault:2,
table: { table: {
width: 180, width: 180,
fixed: 'left' fixed: 'left'
@ -176,12 +178,14 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
label: '要货计划单号', label: '要货计划单号',
field: 'ppNumber', field: 'ppNumber',
sort: 'custom', sort: 'custom',
isTable:true, isTable: true,
isSearch:true,
table: { table: {
width: 150 width: 200
}, },
// sortTableDefault:9, // sortTableDefault:9,
sortTableDefault: 4, sortTableDefault: 4,
sortSearchDefault: 3,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {

Loading…
Cancel
Save