Browse Source

BUG修改

master
parent
commit
d7ddca7051
  1. 10
      src/components/ImportForm/src/ImportForm.vue
  2. 5
      src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts
  3. 20
      src/views/eam/basic/item/item.data.ts
  4. 32
      src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts
  5. 2
      src/views/eam/item/countadjustWork/index.vue
  6. 50
      src/views/eam/item/itemOrderMain/itemOrderMain.data.ts
  7. 3
      src/views/eam/item/replaceItemDes/index.vue
  8. 9
      src/views/eam/item/transaction/transaction.data.ts

10
src/components/ImportForm/src/ImportForm.vue

@ -88,8 +88,8 @@
</el-upload>
<template #footer>
<div class="flex items-center">
<div class="flex-1 text-left">
<el-button type="primary" plain @click="importTemplate">
<div class="flex-1 text-left" >
<el-button type="primary" plain @click="importTemplate" v-if="isShow">
<Icon icon="ep:download" />
下载模板
</el-button>
@ -166,6 +166,12 @@ const props = defineProps({
required: false,
default: false
},
//
isShow: {
type: Boolean,
required: false,
default: true
},
outFile: {
type: Boolean,
required: false,

5
src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts

@ -123,7 +123,6 @@ export const DeviceMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
component: 'Select'
},
},
{
label: '人数',
field: 'peoples',
@ -134,8 +133,12 @@ export const DeviceMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
},
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 0
}
},
},
{
label: '保养所需时间(分钟)',
field: 'estimatedMinutes',

20
src/views/eam/basic/item/item.data.ts

@ -27,7 +27,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: true,
table: {
width:110,
width: 110,
},
},
{
@ -44,7 +44,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true,
sort: 'custom',
table: {
width:110,
width: 110,
},
tableForm: {
type: 'Select',
@ -64,7 +64,15 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
label: '科目',
field: 'subject',
sort: 'custom',
dictType: DICT_TYPE.ITEM_SUBJECT,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
{
label: '科目代码',
field: 'subjectCode',
@ -129,7 +137,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
field: 'reprocurement',
sort: 'custom',
table: {
width:110,
width: 110,
},
form: {
component: 'InputNumber',
@ -141,7 +149,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
field: 'safetyStock',
sort: 'custom',
table: {
width:110,
width: 110,
},
form: {
component: 'InputNumber',
@ -153,7 +161,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
field: 'cost',
sort: 'custom',
table: {
width:110,
width: 110,
},
},
{
@ -161,7 +169,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
field: 'purchaser',
sort: 'custom',
table: {
width:100,
width: 100,
},
},
{

32
src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts

@ -122,6 +122,38 @@ export const MoldMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
component: 'Select'
},
},
{
label: '人数',
field: 'peoples',
sort: 'custom',
isSearch: false,
table: {
width: 150,
},
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 0
}
},
},
{
label: '保养所需时间(分钟)',
field: 'estimatedMinutes',
sort: 'custom',
isSearch: false,
table: {
width: 170,
},
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 0
}
},
},
{
label: '是否可用',
field: 'available',

2
src/views/eam/item/countadjustWork/index.vue

@ -42,7 +42,7 @@
:detailButtonIsShow="true"/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/eam/countJobDetail/import" :importTemplateData="importTemplateData"
@success="importSuccess" />
@success="importSuccess" :isShow="false"/>
</template>
<script setup lang="ts">

50
src/views/eam/item/itemOrderMain/itemOrderMain.data.ts

@ -98,31 +98,31 @@ export const ItemOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'dutyParagraph',
sort: 'custom',
},
{
label: '是否关闭',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: false,
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
},
form: {
component: 'Switch',
value: 'FALSE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
// {
// label: '是否关闭',
// field: 'available',
// dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string',
// isSearch: false,
// isTable: true,
// sort: 'custom',
// table: {
// width: 150
// },
// tableForm: {
// type: 'Select',
// inactiveValue: 'FALSE',
// disabled: true
// },
// form: {
// component: 'Switch',
// value: 'FALSE',
// componentProps: {
// inactiveValue: 'FALSE',
// activeValue: 'TRUE'
// }
// }
// },
{
label: '状态',
field: 'status',

3
src/views/eam/item/replaceItemDes/index.vue

@ -138,11 +138,12 @@
// form
const formsSuccess = async (formType, data) => {
data.filePathList = data.filePathListView.map(item=>item.url)
console.log(formType)
if (formType === 'create') {
await ReplaceItemDesApi.createReplaceItemDes(data)
message.success(t('common.createSuccess'))
} else {
await ReplaceItemDesApi.createReplaceItemDes(data)
await ReplaceItemDesApi.updateReplaceItemDes(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false

9
src/views/eam/item/transaction/transaction.data.ts

@ -61,6 +61,15 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
component: 'Radio'
},
},
{
label: '关联单号',
field: 'associatedNumber',
sort: 'custom',
isSearch: false,
form: {
component: 'Radio'
},
},
{
label: '计量单位',
field: 'uom',

Loading…
Cancel
Save