Browse Source

修改

master_hella_20240701
zhaoxuebing 6 months ago
parent
commit
80ec59771d
  1. 6
      src/views/wms/productionManage/processproduction/processproductionRecord/index.vue
  2. 35
      src/views/wms/productionManage/processproduction/processproductionRecord/processproductionRecordMain.data.ts
  3. 12
      src/views/wms/productionManage/processproduction/processproductionRequest/index.vue
  4. 40
      src/views/wms/productionManage/processproduction/processproductionRequest/processproductionRequestMain.data.ts

6
src/views/wms/productionManage/processproduction/processproductionRecord/index.vue

@ -28,9 +28,9 @@
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
<template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>
<template #action="{ row,$index }">

35
src/views/wms/productionManage/processproduction/processproductionRecord/processproductionRecordMain.data.ts

@ -9,7 +9,7 @@ export const ProcessproductionRecordMain = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom',
isSearch: true,
table: {
width: 150
width: 200
},
},
{
@ -18,7 +18,7 @@ export const ProcessproductionRecordMain = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom',
isSearch: true,
table: {
width: 150
width: 200
},
},
{
@ -69,11 +69,23 @@ export const ProcessproductionRecordMain = useCrudSchemas(reactive<CrudSchema[]>
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 150
width: 180
},
isForm: false,
isTable:false,
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isTableForm: false,
isForm: false
},
{
label: '删除时间',
@ -81,6 +93,8 @@ export const ProcessproductionRecordMain = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
isTableForm:false,
isDetail:false,
table: {
width: 150
},
@ -106,6 +120,8 @@ export const ProcessproductionRecordMain = useCrudSchemas(reactive<CrudSchema[]>
field: 'deleterId',
sort: 'custom',
isSearch: false,
isTableForm:false,
isDetail:false,
table: {
width: 150
},
@ -117,6 +133,8 @@ export const ProcessproductionRecordMain = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom',
isSearch: false,
isTable: false,
isTableForm:false,
isDetail:false,
table: {
width: 150
},
@ -127,6 +145,8 @@ export const ProcessproductionRecordMain = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom',
isSearch: false,
isTable: false,
isTableForm:false,
isDetail:false,
form: {
component: 'InputNumber',
value: 0
@ -141,12 +161,16 @@ export const ProcessproductionRecordMain = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom',
isTable: false,
isSearch: false,
isTableForm:false,
isDetail:false,
},
{
label: '操作',
field: 'action',
isForm: false,
isTable: false,
isTableForm:false,
isDetail:false,
table: {
width: 150,
fixed: 'right'
@ -174,6 +198,7 @@ export const ProcessproductionRecordDetail = useCrudSchemas(reactive<CrudSchema[
label: '单据号',
field: 'number',
sort: 'custom',
hiddenInMain:true,
isSearch: false,
table: {
width: 150

12
src/views/wms/productionManage/processproduction/processproductionRequest/index.vue

@ -184,11 +184,11 @@ const butttondata = (row,$index) => {
}
return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4']),hasPermi:'wms:processproduction-request-main:close'}), //
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:transferreceipt-request-main:reAdd'}), //
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:transferreceipt-request-main:submit'}), //
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:transferreceipt-request-main:refused'}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:transferreceipt-request-main:agree'}), //
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:transferreceipt-request-main:handle'}), //
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:processproduction-request-main:reAdd'}), //
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:processproduction-request-main:submit'}), //
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:processproduction-request-main:refused'}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:processproduction-request-main:agree'}), //
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:processproduction-request-main:handle'}), //
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:processproduction-request-main:update'}), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:processproduction-request-main:delete'}), //
]
@ -202,7 +202,7 @@ const buttonTableClick = async (val, row) => {
handleClose(row.masterId)
} else if(val == 'mainReAdd'){//
handleReAdd(row.masterId)
} else if(val == ''){ //
} else if(val == 'mainSubmit'){ //
handleSubmit(row.masterId)
} else if (val == 'mainTurnDown') { //
handleRefused(row.masterId)

40
src/views/wms/productionManage/processproduction/processproductionRequest/processproductionRequestMain.data.ts

@ -23,6 +23,25 @@ export const ProcessproductionRequestMain = useCrudSchemas(reactive<CrudSchema[]
isForm: false,
isSearch: true,
},
{
label: '状态',
field: 'status',
dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
isForm: false,
sort: 'custom',
table: {
width: 150
},
form: {
value: '1',
componentProps: {
disabled: true
}
}
},
{
label: '物料代码',
field: 'itemCode',
@ -107,8 +126,23 @@ export const ProcessproductionRequestMain = useCrudSchemas(reactive<CrudSchema[]
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
isTable:false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isTableForm: false,
isForm: false
},
{
label: '删除时间',
@ -181,7 +215,7 @@ export const ProcessproductionRequestMain = useCrudSchemas(reactive<CrudSchema[]
isForm: false,
isDetail:false,
table: {
width: 150,
width: 230,
fixed: 'right'
}
}

Loading…
Cancel
Save