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>
<script setup lang="ts">
@ -135,7 +135,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:work-main:create'}), //
defaultButtons.defaultAddBtn({hasPermi:'wms:work-main:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:work-main:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:work-main:export'}), //
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) => {
return [
defaultButtons.mainListOrderCloBtn({hide:isShowMainButton(row,['1'])}), //
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'])}), //
]
return [
defaultButtons.mainListEditBtn({hasPermi:'wms:work-main:update'}), //
]
}

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

@ -104,23 +104,34 @@ export const WorkMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'number',
sort: 'custom',
table: {
width: 150,
width: 160,
fixed: 'left'
},
isForm: false,
isSearch: true
},
{
label: '业务类型',
field: 'businessType',
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: {
value: 'ProductReceipt',
component: 'Switch',
value: 'TRUE',
componentProps: {
disabled: true
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
@ -133,6 +144,21 @@ export const WorkMain = useCrudSchemas(reactive<CrudSchema[]>([
},
isTable: false
},
{
label: '业务类型',
field: 'businessType',
sort: 'custom',
table: {
width: 150
},
isForm: false,
form: {
value: 'ProductReceipt',
componentProps: {
disabled: true
}
}
},
{
label: '创建时间',
field: 'createTime',
@ -193,31 +219,6 @@ export const WorkMain = useCrudSchemas(reactive<CrudSchema[]>([
},
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: '操作',
field: 'action',

Loading…
Cancel
Save