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:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #code="{row}"> <template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> <el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
<span>{{ row.code }}</span> <span>{{ row.number }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row,$index }"> <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', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {
width: 150 width: 200
}, },
}, },
{ {
@ -18,7 +18,7 @@ export const ProcessproductionRecordMain = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {
width: 150 width: 200
}, },
}, },
{ {
@ -69,11 +69,23 @@ export const ProcessproductionRecordMain = useCrudSchemas(reactive<CrudSchema[]>
field: 'createTime', field: 'createTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 width: 180
}, },
isForm: false, form: {
isTable:false, component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isTableForm: false,
isForm: false
}, },
{ {
label: '删除时间', label: '删除时间',
@ -81,6 +93,8 @@ export const ProcessproductionRecordMain = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: false, isSearch: false,
isTableForm:false,
isDetail:false,
table: { table: {
width: 150 width: 150
}, },
@ -106,6 +120,8 @@ export const ProcessproductionRecordMain = useCrudSchemas(reactive<CrudSchema[]>
field: 'deleterId', field: 'deleterId',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
isTableForm:false,
isDetail:false,
table: { table: {
width: 150 width: 150
}, },
@ -117,6 +133,8 @@ export const ProcessproductionRecordMain = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
isTable: false, isTable: false,
isTableForm:false,
isDetail:false,
table: { table: {
width: 150 width: 150
}, },
@ -127,6 +145,8 @@ export const ProcessproductionRecordMain = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
isTable: false, isTable: false,
isTableForm:false,
isDetail:false,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 0 value: 0
@ -141,12 +161,16 @@ export const ProcessproductionRecordMain = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
isTable: false, isTable: false,
isSearch: false, isSearch: false,
isTableForm:false,
isDetail:false,
}, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
isForm: false, isForm: false,
isTable: false, isTable: false,
isTableForm:false,
isDetail:false,
table: { table: {
width: 150, width: 150,
fixed: 'right' fixed: 'right'
@ -174,6 +198,7 @@ export const ProcessproductionRecordDetail = useCrudSchemas(reactive<CrudSchema[
label: '单据号', label: '单据号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
hiddenInMain:true,
isSearch: false, isSearch: false,
table: { table: {
width: 150 width: 150

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

@ -184,11 +184,11 @@ const butttondata = (row,$index) => {
} }
return [ return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4']),hasPermi:'wms:processproduction-request-main:close'}), // 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.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:processproduction-request-main:reAdd'}), //
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:transferreceipt-request-main:submit'}), // defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:processproduction-request-main:submit'}), //
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:transferreceipt-request-main:refused'}), // defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:processproduction-request-main:refused'}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:transferreceipt-request-main:agree'}), // defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:processproduction-request-main:agree'}), //
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:transferreceipt-request-main:handle'}), // 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.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:processproduction-request-main:update'}), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:processproduction-request-main:delete'}), // defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:processproduction-request-main:delete'}), //
] ]
@ -202,7 +202,7 @@ const buttonTableClick = async (val, row) => {
handleClose(row.masterId) handleClose(row.masterId)
} else if(val == 'mainReAdd'){// } else if(val == 'mainReAdd'){//
handleReAdd(row.masterId) handleReAdd(row.masterId)
} else if(val == ''){ // } else if(val == 'mainSubmit'){ //
handleSubmit(row.masterId) handleSubmit(row.masterId)
} else if (val == 'mainTurnDown') { // } else if (val == 'mainTurnDown') { //
handleRefused(row.masterId) 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, isForm: false,
isSearch: true, 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: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
@ -107,8 +126,23 @@ export const ProcessproductionRequestMain = useCrudSchemas(reactive<CrudSchema[]
field: 'createTime', field: 'createTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isForm: false, detail: {
isTable:false, 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: '删除时间', label: '删除时间',
@ -181,7 +215,7 @@ export const ProcessproductionRequestMain = useCrudSchemas(reactive<CrudSchema[]
isForm: false, isForm: false,
isDetail:false, isDetail:false,
table: { table: {
width: 150, width: 230,
fixed: 'right' fixed: 'right'
} }
} }

Loading…
Cancel
Save