Browse Source

流程按钮相关修改

master
陈薪名 1 year ago
parent
commit
7259d1fa48
  1. 16
      src/utils/dict.ts
  2. 42
      src/utils/disposition/defaultButtons.ts
  3. 31
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue
  4. 6
      src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue
  5. 29
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  6. 33
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  7. 33
      src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts
  8. 6
      src/views/wms/productionManage/productionplan/workMain/index.vue
  9. 6
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
  10. 61
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

16
src/utils/dict.ts

@ -240,14 +240,14 @@ export enum DICT_TYPE {
WORK_ORDER_DETAIL_STATUS = 'work_order_detail_status', // 生产订单明细状态 WORK_ORDER_DETAIL_STATUS = 'work_order_detail_status', // 生产订单明细状态
PURCHASE_PLAN_STATUS = 'purchase_plan_status', // 要货计划状态 PURCHASE_PLAN_STATUS = 'purchase_plan_status', // 要货计划状态
PURCHASE_PLAN_DETAIL_STATUS = 'purchase_plan_detail_status', // 要货计划明细状态 PURCHASE_PLAN_DETAIL_STATUS = 'purchase_plan_detail_status', // 要货计划明细状态
PRODUCTION_PLAN_STATUS = 'production_plan_status', // 生产计划状态 PLAN_STATUS = 'plan_status', // 计划状态
PRODUCTION_PLAN_DETAIL_STATUS = 'production_plan_detail_status', // 生产计划明细状态 PRODUCTION_PLAN_DETAIL_STATUS = 'production_plan_detail_status', // 计划明细状态
PREPARE_TO_ISSUE_PLAN_STATUS = 'prepare_to_issue_plan_status', // 备料计划状态 // PREPARE_TO_ISSUE_PLAN_STATUS = 'prepare_to_issue_plan_status', // 备料计划状态
PREPARE_TO_ISSUE_PLAN_DETAIL_STATUS = 'prepare_to_issue_plan_detail_status', // 备料计划明细状态 // PREPARE_TO_ISSUE_PLAN_DETAIL_STATUS = 'prepare_to_issue_plan_detail_status', // 备料计划明细状态
DELIVER_PLAN_STATUS = 'deliver_plan_status', // 发货计划状态 // DELIVER_PLAN_STATUS = 'deliver_plan_status', // 发货计划状态
DELIVER_DETAIL_STATUS = 'deliver_detail_status', // 发货计划明细状态 // DELIVER_DETAIL_STATUS = 'deliver_detail_status', // 发货计划明细状态
PREPARE_TO_DELIVER_PLAN_STATUS = 'prepare_to_deliver_plan_status', // 备货计划状态 // PREPARE_TO_DELIVER_PLAN_STATUS = 'prepare_to_deliver_plan_status', // 备货计划状态
PREPARE_TO_DELIVER_PLAN_DETAIL_STATUS = 'prepare_to_deliver_plan_detail_status', // 备货计划明细状态 // PREPARE_TO_DELIVER_PLAN_DETAIL_STATUS = 'prepare_to_deliver_plan_detail_status', // 备货计划明细状态
COUNT_PLAN_STATUS = 'count_plan_status', // 盘点计划状态 COUNT_PLAN_STATUS = 'count_plan_status', // 盘点计划状态
COUNT_DIMENSION = 'count_dimension', // 盘点维度 COUNT_DIMENSION = 'count_dimension', // 盘点维度
REQUEST_STATUS = 'request_status', // 申请状态 REQUEST_STATUS = 'request_status', // 申请状态

42
src/utils/disposition/defaultButtons.ts

@ -270,7 +270,7 @@ export function mainListReAddBtn(option:any) {
label: '重新添加', label: '重新添加',
name: 'mainReAdd', name: 'mainReAdd',
hide: false, hide: false,
type: 'danger', type: 'warning',
color: '', color: '',
link: true, // 文本展现按钮 link: true, // 文本展现按钮
hasPermi: '' hasPermi: ''
@ -283,7 +283,7 @@ export function mainListSubmitBtn(option:any) {
label: '提交审批', label: '提交审批',
name: 'mainSubmit', name: 'mainSubmit',
hide: false, hide: false,
type: 'danger', type: 'primary',
color: '', color: '',
link: true, // 文本展现按钮 link: true, // 文本展现按钮
hasPermi: '' hasPermi: ''
@ -309,7 +309,7 @@ export function mainListApproveBtn(option:any) {
label: '审批通过', label: '审批通过',
name: 'mainApprove', name: 'mainApprove',
hide: false, hide: false,
type: 'danger', type: 'primary',
color: '', color: '',
link: true, // 文本展现按钮 link: true, // 文本展现按钮
hasPermi: '' hasPermi: ''
@ -322,7 +322,7 @@ export function mainListOrderPubBtn(option:any) {
label: '发布', label: '发布',
name: 'mainOrderPub', name: 'mainOrderPub',
hide: false, hide: false,
type: 'danger', type: 'success',
color: '', color: '',
link: true, // 文本展现按钮 link: true, // 文本展现按钮
hasPermi: '' hasPermi: ''
@ -348,7 +348,7 @@ export function mainListOrderOpeBtn(option:any) {
label: '打开', label: '打开',
name: 'mainOrderOpe', name: 'mainOrderOpe',
hide: false, hide: false,
type: 'danger', type: 'warning',
color: '', color: '',
link: true, // 文本展现按钮 link: true, // 文本展现按钮
hasPermi: '' hasPermi: ''
@ -374,7 +374,7 @@ export function mainListPlanOpeBtn(option:any) {
label: '打开', label: '打开',
name: 'mainPlanOpe', name: 'mainPlanOpe',
hide: false, hide: false,
type: 'danger', type: 'warning',
color: '', color: '',
link: true, // 文本展现按钮 link: true, // 文本展现按钮
hasPermi: '' hasPermi: ''
@ -400,7 +400,7 @@ export function mainListPlanSubBtn(option:any) {
label: '提交审批', label: '提交审批',
name: 'mainPlanSub', name: 'mainPlanSub',
hide: false, hide: false,
type: 'danger', type: 'primary',
color: '', color: '',
link: true, // 文本展现按钮 link: true, // 文本展现按钮
hasPermi: '' hasPermi: ''
@ -420,18 +420,18 @@ export function mainListPlanTurBtn(option:any) {
}) })
} }
// 主列表-计划流程-重置按钮 // // 主列表-计划流程-重置按钮
export function mainListPlanResBtn(option:any) { // export function mainListPlanResBtn(option:any) {
return __defaultBtnOption(option,{ // return __defaultBtnOption(option,{
label: '重置', // label: '重置',
name: 'mainPlanRes', // name: 'mainPlanRes',
hide: false, // hide: false,
type: 'danger', // type: 'danger',
color: '', // color: '',
link: true, // 文本展现按钮 // link: true, // 文本展现按钮
hasPermi: '' // hasPermi: ''
}) // })
} // }
// 主列表-计划流程-审批通过按钮 // 主列表-计划流程-审批通过按钮
export function mainListPlanAppBtn(option:any) { export function mainListPlanAppBtn(option:any) {
@ -439,7 +439,7 @@ export function mainListPlanAppBtn(option:any) {
label: '审批通过', label: '审批通过',
name: 'mainPlanApp', name: 'mainPlanApp',
hide: false, hide: false,
type: 'danger', type: 'primary',
color: '', color: '',
link: true, // 文本展现按钮 link: true, // 文本展现按钮
hasPermi: '' hasPermi: ''
@ -452,7 +452,7 @@ export function mainListPlanPubBtn(option:any) {
label: '发布', label: '发布',
name: 'mainPlanPub', name: 'mainPlanPub',
hide: false, hide: false,
type: 'danger', type: 'success',
color: '', color: '',
link: true, // 文本展现按钮 link: true, // 文本展现按钮
hasPermi: '' hasPermi: ''

31
src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue

@ -83,7 +83,7 @@ import * as DeliverPlanMainApi from '@/api/wms/deliverPlanMain'
import * as DeliverPlanDetailApi from '@/api/wms/deliverPlanDetail' import * as DeliverPlanDetailApi from '@/api/wms/deliverPlanDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
// //
defineOptions({ name: 'DeliverPlanMain' }) defineOptions({ name: 'DeliverPlanMain' })
const message = useMessage() // const message = useMessage() //
@ -191,29 +191,28 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['REQUEST_NEW','REQUEST_REVIEWING','REQUEST_AGREED','REQUEST_REFUSED','REQUEST_HANDLING'])}), // defaultButtons.mainListPlanOpeBtn({hide:isShowMainButton(row,['PLAN_CLOSED','PLAN_REFUSED'])}), //
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['REQUEST_REFUSED','REQUEST_CANCELLED'])}), // defaultButtons.mainListPlanCloBtn({hide:isShowMainButton(row,['PLAN_NEW','PLAN_REVIEWING','PLAN_AGREED','PLAN_REFUSED','PLAN_PUBLISHED'])}), //
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['REQUEST_NEW'])}), // defaultButtons.mainListPlanSubBtn({hide:isShowMainButton(row,['PLAN_NEW'])}), //
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['REQUEST_REVIEWING'])}), // defaultButtons.mainListPlanTurBtn({hide:isShowMainButton(row,['PLAN_REVIEWING'])}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['REQUEST_REVIEWING'])}), // defaultButtons.mainListPlanAppBtn({hide:isShowMainButton(row,['PLAN_REVIEWING'])}), //
defaultButtons.mainListEditBtn({hasPermi:'wms:deliver-plan-main:update'}), // defaultButtons.mainListPlanPubBtn({hide:isShowMainButton(row,['PLAN_AGREED'])}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:deliver-plan-main:delete'}), // defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['PLAN_NEW']),hasPermi:'wms:production-main:update'}), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['PLAN_NEW']),hasPermi:'wms:production-main:delete'}), //
] ]
} }
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'mainPlanOpe') { //
console.log('列表-操作按钮事件-打开')
} else if (val == 'mainPlanClo') { //
console.log('列表-操作按钮事件-关闭') console.log('列表-操作按钮事件-关闭')
} else if (val == 'mainReAdd') { // } else if (val == 'mainPlanSub') { //
console.log('列表-操作按钮事件-重新添加')
} else if (val == 'mainSubmit') { //
console.log('列表-操作按钮事件-提交审批') console.log('列表-操作按钮事件-提交审批')
} else if (val == 'mainTurnDown') { // } else if (val == 'mainPlanTur') { //
console.log('列表-操作按钮事件-驳回') console.log('列表-操作按钮事件-驳回')
} else if (val == 'mainApprove') { // } else if (val == 'mainPlanApp') { //
console.log('列表-操作按钮事件-审批通过') console.log('列表-操作按钮事件-审批通过')
} else if (val == 'edit') { // } else if (val == 'edit') { //
openForm('update', row) openForm('update', row)

6
src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue

@ -33,7 +33,7 @@
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" /> <ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event,row)" />
</template> </template>
</Table> </Table>
</ContentWrap> </ContentWrap>
@ -195,8 +195,8 @@ const butttondata = (row) => {
defaultButtons.mainListOrderPubBtn({hide:isShowMainButton(row,['ORDER_READY'])}), // defaultButtons.mainListOrderPubBtn({hide:isShowMainButton(row,['ORDER_READY'])}), //
defaultButtons.mainListOrderOpeBtn({hide:isShowMainButton(row,['ORDER_CLOSED'])}), // defaultButtons.mainListOrderOpeBtn({hide:isShowMainButton(row,['ORDER_CLOSED'])}), //
defaultButtons.mainListOrderWitBtn({hide:isShowMainButton(row,['ORDER_PUBLISHED'])}), // defaultButtons.mainListOrderWitBtn({hide:isShowMainButton(row,['ORDER_PUBLISHED'])}), //
defaultButtons.mainListEditBtn({hasPermi:'wms:sale-main:update'}), // defaultButtons.mainListEditBtn({hasPermi:'wms:sale-main:update',hide:isShowMainButton(row,['ORDER_READY'])}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:sale-main:delete'}), // defaultButtons.mainListDeleteBtn({hasPermi:'wms:sale-main:delete',hide:isShowMainButton(row,['ORDER_READY'])}), //
] ]
} }

29
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -191,29 +191,28 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['REQUEST_NEW','REQUEST_REVIEWING','REQUEST_AGREED','REQUEST_REFUSED','REQUEST_HANDLING'])}), // defaultButtons.mainListPlanOpeBtn({hide:isShowMainButton(row,['PLAN_CLOSED','PLAN_REFUSED'])}), //
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['REQUEST_REFUSED','REQUEST_CANCELLED'])}), // defaultButtons.mainListPlanCloBtn({hide:isShowMainButton(row,['PLAN_NEW','PLAN_REVIEWING','PLAN_AGREED','PLAN_REFUSED','PLAN_PUBLISHED'])}), //
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['REQUEST_NEW'])}), // defaultButtons.mainListPlanSubBtn({hide:isShowMainButton(row,['PLAN_NEW'])}), //
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['REQUEST_REVIEWING'])}), // defaultButtons.mainListPlanTurBtn({hide:isShowMainButton(row,['PLAN_REVIEWING'])}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['REQUEST_REVIEWING'])}), // defaultButtons.mainListPlanAppBtn({hide:isShowMainButton(row,['PLAN_REVIEWING'])}), //
defaultButtons.mainListEditBtn({hasPermi:'wms:preparetoissue-main:update'}), // defaultButtons.mainListPlanPubBtn({hide:isShowMainButton(row,['PLAN_AGREED'])}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:preparetoissue-main:delete'}), // defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['PLAN_NEW']),hasPermi:'wms:production-main:update'}), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['PLAN_NEW']),hasPermi:'wms:production-main:delete'}), //
] ]
} }
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'mainPlanOpe') { //
console.log('列表-操作按钮事件-打开')
} else if (val == 'mainPlanClo') { //
console.log('列表-操作按钮事件-关闭') console.log('列表-操作按钮事件-关闭')
} else if (val == 'mainReAdd') { // } else if (val == 'mainPlanSub') { //
console.log('列表-操作按钮事件-重新添加')
} else if (val == 'mainSubmit') { //
console.log('列表-操作按钮事件-提交审批') console.log('列表-操作按钮事件-提交审批')
} else if (val == 'mainTurnDown') { // } else if (val == 'mainPlanTur') { //
console.log('列表-操作按钮事件-驳回') console.log('列表-操作按钮事件-驳回')
} else if (val == 'mainApprove') { // } else if (val == 'mainPlanApp') { //
console.log('列表-操作按钮事件-审批通过') console.log('列表-操作按钮事件-审批通过')
} else if (val == 'edit') { // } else if (val == 'edit') { //
openForm('update', row) openForm('update', row)

33
src/views/wms/productionManage/productionplan/productionMain/index.vue

@ -33,7 +33,7 @@
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" /> <ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event,row)" />
</template> </template>
</Table> </Table>
</ContentWrap> </ContentWrap>
@ -147,7 +147,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:production-main:create'}), // defaultButtons.defaultAddBtn({hasPermi:'wms:production-main:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:production-main:import'}), // defaultButtons.defaultImportBtn({hasPermi:'wms:production-main:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:production-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:production-main:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
@ -191,29 +191,28 @@ const isShowMainButton = (row,val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['REQUEST_NEW','REQUEST_REVIEWING','REQUEST_AGREED','REQUEST_REFUSED','REQUEST_HANDLING'])}), // defaultButtons.mainListPlanOpeBtn({hide:isShowMainButton(row,['PLAN_CLOSED','PLAN_REFUSED'])}), //
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['REQUEST_REFUSED','REQUEST_CANCELLED'])}), // defaultButtons.mainListPlanCloBtn({hide:isShowMainButton(row,['PLAN_NEW','PLAN_REVIEWING','PLAN_AGREED','PLAN_REFUSED','PLAN_PUBLISHED'])}), //
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['REQUEST_NEW'])}), // defaultButtons.mainListPlanSubBtn({hide:isShowMainButton(row,['PLAN_NEW'])}), //
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['REQUEST_REVIEWING'])}), // defaultButtons.mainListPlanTurBtn({hide:isShowMainButton(row,['PLAN_REVIEWING'])}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['REQUEST_REVIEWING'])}), // defaultButtons.mainListPlanAppBtn({hide:isShowMainButton(row,['PLAN_REVIEWING'])}), //
defaultButtons.mainListEditBtn({hasPermi:'wms:production-main:update'}), // defaultButtons.mainListPlanPubBtn({hide:isShowMainButton(row,['PLAN_AGREED'])}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:production-main:delete'}), // defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['PLAN_NEW']),hasPermi:'wms:production-main:update'}), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['PLAN_NEW']),hasPermi:'wms:production-main:delete'}), //
] ]
} }
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'mainPlanOpe') { //
console.log('列表-操作按钮事件-打开')
} else if (val == 'mainPlanClo') { //
console.log('列表-操作按钮事件-关闭') console.log('列表-操作按钮事件-关闭')
} else if (val == 'mainReAdd') { // } else if (val == 'mainPlanSub') { //
console.log('列表-操作按钮事件-重新添加')
} else if (val == 'mainSubmit') { //
console.log('列表-操作按钮事件-提交审批') console.log('列表-操作按钮事件-提交审批')
} else if (val == 'mainTurnDown') { // } else if (val == 'mainPlanTur') { //
console.log('列表-操作按钮事件-驳回') console.log('列表-操作按钮事件-驳回')
} else if (val == 'mainApprove') { // } else if (val == 'mainPlanApp') { //
console.log('列表-操作按钮事件-审批通过') console.log('列表-操作按钮事件-审批通过')
} else if (val == 'edit') { // } else if (val == 'edit') { //
openForm('update', row) openForm('update', row)

33
src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts

@ -6,6 +6,14 @@ const { t } = useI18n() // 国际化
* @returns {Array} * @returns {Array}
*/ */
export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '顺序', label: '顺序',
field: 'displayOrder', field: 'displayOrder',
@ -66,14 +74,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '业务类型', label: '业务类型',
field: 'businessType', field: 'businessType',
@ -122,6 +123,10 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '状态', label: '状态',
field: 'status', field: 'status',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.PLAN_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
table: { table: {
width: 150 width: 150
}, },
@ -214,6 +219,16 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false ,
table: {
width: 220,
fixed: 'right'
},
}
])) ]))
//表单校验 //表单校验
@ -428,7 +443,7 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
activeValue: 'TRUE' activeValue: 'TRUE'
} }
} }
}, }
])) ]))
//表单校验 //表单校验

6
src/views/wms/productionManage/productionplan/workMain/index.vue

@ -33,7 +33,7 @@
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" /> <ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event,row)" />
</template> </template>
</Table> </Table>
</ContentWrap> </ContentWrap>
@ -195,8 +195,8 @@ const butttondata = (row) => {
defaultButtons.mainListOrderPubBtn({hide:isShowMainButton(row,['ORDER_READY'])}), // defaultButtons.mainListOrderPubBtn({hide:isShowMainButton(row,['ORDER_READY'])}), //
defaultButtons.mainListOrderOpeBtn({hide:isShowMainButton(row,['ORDER_CLOSED'])}), // defaultButtons.mainListOrderOpeBtn({hide:isShowMainButton(row,['ORDER_CLOSED'])}), //
defaultButtons.mainListOrderWitBtn({hide:isShowMainButton(row,['ORDER_PUBLISHED'])}), // defaultButtons.mainListOrderWitBtn({hide:isShowMainButton(row,['ORDER_PUBLISHED'])}), //
defaultButtons.mainListEditBtn({hasPermi:'wms:work-main:update'}), // defaultButtons.mainListEditBtn({hasPermi:'wms:work-main:update',hide:isShowMainButton(row,['ORDER_READY'])}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:work-main:delete'}), // defaultButtons.mainListDeleteBtn({hasPermi:'wms:work-main:delete',hide:isShowMainButton(row,['ORDER_READY'])}), //
] ]
} }

6
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue

@ -33,7 +33,7 @@
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" /> <ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event,row)" />
</template> </template>
</Table> </Table>
</ContentWrap> </ContentWrap>
@ -195,8 +195,8 @@ const butttondata = (row) => {
defaultButtons.mainListOrderPubBtn({hide:isShowMainButton(row,['ORDER_READY'])}), // defaultButtons.mainListOrderPubBtn({hide:isShowMainButton(row,['ORDER_READY'])}), //
defaultButtons.mainListOrderOpeBtn({hide:isShowMainButton(row,['ORDER_CLOSED'])}), // defaultButtons.mainListOrderOpeBtn({hide:isShowMainButton(row,['ORDER_CLOSED'])}), //
defaultButtons.mainListOrderWitBtn({hide:isShowMainButton(row,['ORDER_PUBLISHED'])}), // defaultButtons.mainListOrderWitBtn({hide:isShowMainButton(row,['ORDER_PUBLISHED'])}), //
defaultButtons.mainListEditBtn({hasPermi:'wms:purchaseMain:update'}), // defaultButtons.mainListEditBtn({hasPermi:'wms:purchase-main:update',hide:isShowMainButton(row,['ORDER_READY'])}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:purchaseMain:delete'}), // defaultButtons.mainListDeleteBtn({hasPermi:'wms:purchase-main:delete',hide:isShowMainButton(row,['ORDER_READY'])}), //
] ]
} }

61
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

@ -7,17 +7,20 @@ const { t } = useI18n() // 国际化
*/ */
export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '供应商代码', label: '单据号',
field: 'supplierCode', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true,
isForm: false,
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '单据号', label: '供应商代码',
field: 'number', field: 'supplierCode',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 150 width: 150
}, },
@ -136,7 +139,6 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'isConsignment', field: 'isConsignment',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true,
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -172,7 +174,6 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'available', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true,
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -191,6 +192,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sort: 'custom', sort: 'custom',
isForm: false,
table: { table: {
width: 150 width: 150
}, },
@ -204,6 +206,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom', sort: 'custom',
isForm: false,
table: { table: {
width: 180 width: 180
}, },
@ -220,6 +223,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '最后更新者', label: '最后更新者',
field: 'updater', field: 'updater',
sort: 'custom', sort: 'custom',
isForm: false,
table: { table: {
width: 150 width: 150
}, },
@ -233,6 +237,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom', sort: 'custom',
isForm: false,
table: { table: {
width: 180 width: 180
}, },
@ -244,6 +249,16 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x', valueFormat: 'x',
} }
}, },
},
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false,
table: {
width: 200,
fixed: 'right'
}
} }
])) ]))
@ -323,7 +338,6 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'stdPackUnit', field: 'stdPackUnit',
dictType: DICT_TYPE.PACK_UNIT, dictType: DICT_TYPE.PACK_UNIT,
dictClass: 'string', dictClass: 'string',
isSearch: true,
isTable: true, isTable: true,
table: { table: {
width: 150 width: 150
@ -344,7 +358,6 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'supplierUom', field: 'supplierUom',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
isSearch: true,
isTable: true, isTable: true,
table: { table: {
width: 150 width: 150
@ -445,7 +458,6 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'uom', field: 'uom',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
isSearch: true,
isTable: true, isTable: true,
table: { table: {
width: 150 width: 150
@ -454,6 +466,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '单据号', label: '单据号',
field: 'nuumber', field: 'nuumber',
isTableForm: false,
table: { table: {
width: 150 width: 150
}, },
@ -505,6 +518,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
isTableForm: false,
table: { table: {
width: 150 width: 150
}, },
@ -513,25 +527,19 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isTable: true, isTable: true,
isTableForm: false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 180 width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}, },
},
{ {
label: '最后更新者', label: '最后更新者',
field: 'updater', field: 'updater',
isTableForm: false,
table: { table: {
width: 150 width: 150
}, },
@ -539,6 +547,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',
isTableForm: false,
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
@ -546,24 +555,6 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
table: { table: {
width: 150 width: 150
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false,
table: {
width: 150,
fixed: 'right'
} }
} }
])) ]))

Loading…
Cancel
Save