Browse Source

生产订单

master
陈薪名 1 year ago
parent
commit
d59596b469
  1. 24
      src/views/wms/productionManage/productionplan/workMain/index.vue
  2. 61
      src/views/wms/productionManage/productionplan/workMain/workMain.data.ts

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

@ -71,7 +71,7 @@
/> />
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/work-main/import" :importTemplateData="importTemplateData" @success="importSuccess" /> <ImportForm ref="importFormRef" url="/wms/work-main/import" :importTemplateData="importTemplateData" @success="importSuccess" :is-show-out="true"/>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -135,7 +135,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:work-main:create'}), // defaultButtons.defaultAddBtn({hasPermi:'wms:work-main:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:work-main:import'}), // defaultButtons.defaultImportBtn({hasPermi:'wms:work-main:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:work-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:work-main:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
@ -167,25 +167,11 @@ const buttonBaseClick = (val, item) => {
} }
} }
//
const isShowMainButton = (row,val) => {
if (val.indexOf(row.status) > -1) {
return false
} else {
return true
}
}
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListOrderCloBtn({hide:isShowMainButton(row,['1'])}), // defaultButtons.mainListEditBtn({hasPermi:'wms:work-main:update'}), //
defaultButtons.mainListOrderPubBtn({hide:isShowMainButton(row,['1'])}), // ]
defaultButtons.mainListOrderOpeBtn({hide:isShowMainButton(row,['3'])}), //
defaultButtons.mainListOrderWitBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListEditBtn({hasPermi:'wms:work-main:update',hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:work-main:delete',hide:isShowMainButton(row,['1'])}), //
]
} }

61
src/views/wms/productionManage/productionplan/workMain/workMain.data.ts

@ -104,23 +104,34 @@ export const WorkMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150, width: 160,
fixed: 'left' fixed: 'left'
}, },
isForm: false, isForm: false,
isSearch: true isSearch: true
}, },
{ {
label: '业务类型', label: '当前阶段',
field: 'businessType', field: 'currentStage',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isForm: false,
},
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
form: { form: {
value: 'ProductReceipt', component: 'Switch',
value: 'TRUE',
componentProps: { componentProps: {
disabled: true inactiveValue: 'FALSE',
activeValue: 'TRUE'
} }
} }
}, },
@ -133,6 +144,21 @@ export const WorkMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable: false isTable: false
}, },
{
label: '业务类型',
field: 'businessType',
sort: 'custom',
table: {
width: 150
},
isForm: false,
form: {
value: 'ProductReceipt',
componentProps: {
disabled: true
}
}
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -193,31 +219,6 @@ export const WorkMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
}, },
{
label: '当前阶段',
field: 'currentStage',
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

Loading…
Cancel
Save