Browse Source

BUG修改

master
yejiaxing 10 months ago
parent
commit
26684cd071
  1. 4
      src/utils/dict.ts
  2. 67
      src/views/eam/basic/item/item.data.ts
  3. 2
      src/views/eam/basic/location/location.data.ts
  4. 4
      src/views/eam/basic/locationArea/locationArea.data.ts
  5. 38
      src/views/eam/basic/supplier/supplier.data.ts
  6. 2
      src/views/eam/device/deviceAccounts/deviceAccounts.data.ts
  7. 2
      src/views/eam/device/deviceAllot/deviceAllot.data.ts
  8. 2
      src/views/eam/device/deviceInspectionMain/deviceInspectionMain.data.ts
  9. 2
      src/views/eam/device/deviceMaintainOrderMain/deviceMaintainOrderMain.data.ts
  10. 4
      src/views/eam/device/deviceMaintainPlan/deviceMaintainPlan.data.ts
  11. 2
      src/views/eam/device/deviceMaintenanceMain/deviceMaintenanceMain.data.ts
  12. 4
      src/views/eam/device/deviceRepair/deviceRepair.data.ts
  13. 2
      src/views/eam/device/deviceSpotInspectionRecordMain/deviceSpotInspectionRecordMain.data.ts
  14. 39
      src/views/eam/item/itemAccounts/itemAccounts.data.ts
  15. 38
      src/views/eam/item/itemApplyMain/itemApplyMain.data.ts
  16. 59
      src/views/eam/item/itemLocationInRecord/itemLocationInRecord.data.ts
  17. 60
      src/views/eam/item/itemLocationOutRecord/itemLocationOutRecord.data.ts
  18. 4
      src/views/eam/item/itemLocationRecord/itemLocationRecord.data.ts
  19. 58
      src/views/eam/item/itemMaintenance/itemMaintenance.data.ts
  20. 30
      src/views/eam/item/itemOrderMain/index.vue
  21. 34
      src/views/eam/item/itemOrderMain/itemOrderMain.data.ts
  22. 2
      src/views/eam/mold/moldAccounts/moldAccounts.data.ts
  23. 2
      src/views/eam/mold/moldInspectionMain/moldInspectionMain.data.ts
  24. 2
      src/views/eam/mold/moldMaintainOrderMain/moldMaintainOrderMain.data.ts
  25. 4
      src/views/eam/mold/moldMaintainPlan/moldMaintainPlan.data.ts
  26. 2
      src/views/eam/mold/moldMaintenanceMain/moldMaintenanceMain.data.ts
  27. 4
      src/views/eam/mold/moldRepair/moldRepair.data.ts

4
src/utils/dict.ts

@ -275,5 +275,9 @@ export enum DICT_TYPE {
LOCATION_AREA_TYPE = 'location_area_type', // 库区类型 LOCATION_AREA_TYPE = 'location_area_type', // 库区类型
DEVICEMOLDITEMS_STATUS = 'devicemolditems_status', // 项类型 DEVICEMOLDITEMS_STATUS = 'devicemolditems_status', // 项类型
DEVICE_MOLD_TYPE = 'device_mold_type', // 设备/模具类型 DEVICE_MOLD_TYPE = 'device_mold_type', // 设备/模具类型
TRANSACTION_TYPE = 'transaction_Type', // 事务类型
RESULT = 'result', // 事务类型
} }

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

@ -21,40 +21,60 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '名称', label: '备件名称',
field: 'name', field: 'name',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '品牌', label: '规格',
field: 'brand',
sort: 'custom',
},
{
label: '规格型号',
field: 'specifications', field: 'specifications',
sort: 'custom', sort: 'custom',
}, },
{ {
label: '是否存储', label: '是否存储',
field: 'isConstant', field: 'isConstant',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: {
width: 150
}, },
{ tableForm: {
label: '科目代码', type: 'Select',
field: 'subject', inactiveValue: 'FALSE',
sort: 'custom', disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '枚举', label: '科目',
field: 'classification', field: 'subject',
sort: 'custom', sort: 'custom',
}, },
{ {
label: '单位', label: '单位',
field: 'uom', field: 'uom',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isSearch: true,
isTable: true,
table: {
width: 150
},
tableForm: {
type: 'Select'
}
}, },
{ {
label: '单价', label: '单价',
@ -94,11 +114,30 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
field: 'financer', field: 'financer',
sort: 'custom', sort: 'custom',
}, },
{ {
label: '是否以旧换新', label: '是否以旧换新',
field: 'isRadeIn', field: 'isRadeIn',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '是否可用', label: '是否可用',

2
src/views/eam/basic/location/location.data.ts

@ -24,7 +24,7 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '名称', label: '库位名称',
field: 'name', field: 'name',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,

4
src/views/eam/basic/locationArea/locationArea.data.ts

@ -21,7 +21,7 @@ export const LocationArea = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '名称', label: '库区名称',
field: 'name', field: 'name',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -39,7 +39,7 @@ export const LocationArea = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '是否可用', label: '状态',
field: 'available', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',

38
src/views/eam/basic/supplier/supplier.data.ts

@ -19,7 +19,7 @@ export const Supplier = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '名称', label: '供应商名称',
field: 'name', field: 'name',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -31,46 +31,18 @@ export const Supplier = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
}, },
{ {
label: '地址', label: '联系人',
field: 'address', field: 'contacts',
sort: 'custom',
isSearch: true,
},
{
label: '国家',
field: 'country',
sort: 'custom',
isSearch: true,
},
{
label: '城市',
field: 'city',
sort: 'custom', sort: 'custom',
isSearch: true,
}, },
{ {
label: '电话', label: '联系电话',
field: 'phone', field: 'phone',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '传真', label: '状态',
field: 'fax',
sort: 'custom',
},
{
label: '邮编',
field: 'postId',
sort: 'custom',
},
{
label: '联系人',
field: 'contacts',
sort: 'custom',
},
{
label: '是否可用',
field: 'available', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',

2
src/views/eam/device/deviceAccounts/deviceAccounts.data.ts

@ -38,7 +38,7 @@ export const DeviceAccounts = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {

2
src/views/eam/device/deviceAllot/deviceAllot.data.ts

@ -38,7 +38,7 @@ export const DeviceAllot = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {

2
src/views/eam/device/deviceInspectionMain/deviceInspectionMain.data.ts

@ -69,7 +69,7 @@ export const DeviceInspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {

2
src/views/eam/device/deviceMaintainOrderMain/deviceMaintainOrderMain.data.ts

@ -127,7 +127,7 @@ export const deviceMaintainOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {

4
src/views/eam/device/deviceMaintainPlan/deviceMaintainPlan.data.ts

@ -28,7 +28,7 @@ export const DeviceMaintainPlan = useCrudSchemas(reactive<CrudSchema[]>([
field: 'maintenanceType', field: 'maintenanceType',
sort: 'custom', sort: 'custom',
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {
@ -51,7 +51,7 @@ export const DeviceMaintainPlan = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {

2
src/views/eam/device/deviceMaintenanceMain/deviceMaintenanceMain.data.ts

@ -70,7 +70,7 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {

4
src/views/eam/device/deviceRepair/deviceRepair.data.ts

@ -55,7 +55,7 @@ export const DeviceRepair = useCrudSchemas(reactive<CrudSchema[]>([
field: 'faultType', field: 'faultType',
sort: 'custom', sort: 'custom',
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {
@ -64,7 +64,7 @@ export const DeviceRepair = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {

2
src/views/eam/device/deviceSpotInspectionRecordMain/deviceSpotInspectionRecordMain.data.ts

@ -57,7 +57,7 @@ export const DeviceSpotInspectionRecordMain = useCrudSchemas(reactive<CrudSchema
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {

39
src/views/eam/item/itemAccounts/itemAccounts.data.ts

@ -26,35 +26,34 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
}, },
{ {
label: '是否账内库TRUE账内FALSE账外', label: '是否账内库',
field: 'isInAccount', field: 'isInAccount',
sort: 'custom', sort: 'custom',
}, },
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
},
{
label: '地点ID',
field: 'siteId',
sort: 'custom',
},
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: {
width: 150
}, },
{ tableForm: {
label: '并发乐观锁', type: 'Select',
field: 'concurrencyStamp', inactiveValue: 'FALSE',
sort: 'custom', disabled: true
form: {
component: 'InputNumber',
value: 0
}, },
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '操作', label: '操作',

38
src/views/eam/item/itemApplyMain/itemApplyMain.data.ts

@ -10,7 +10,7 @@ export const ItemApplyMainRules = reactive({
export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '编号', label: '申请编号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -21,11 +21,11 @@ export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
}, },
{ {
label: '维修申领、以旧换新字典', label: '维修申领、以旧换新',
field: 'type', field: 'type',
sort: 'custom', sort: 'custom',
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {
@ -115,25 +115,33 @@ export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
}, },
{
label: '地点ID',
field: 'siteId',
sort: 'custom',
},
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: {
width: 150
}, },
{ tableForm: {
label: '并发乐观锁', type: 'Select',
field: 'concurrencyStamp', inactiveValue: 'FALSE',
sort: 'custom', disabled: true
form: {
component: 'InputNumber',
value: 0
}, },
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

59
src/views/eam/item/itemLocationInRecord/itemLocationInRecord.data.ts

@ -13,7 +13,7 @@ export const ItemLocationInRecordRules = reactive({
export const ItemLocationInRecord = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemLocationInRecord = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '编号唯一标识', label: '编号',
field: 'itemNumber', field: 'itemNumber',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -24,12 +24,29 @@ export const ItemLocationInRecord = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
}, },
{ {
label: '事务类型IN、OUT', label: '事务类型',
field: 'transactionType', field: 'transactionType',
dictType: DICT_TYPE.TRANSACTION_TYPE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
form: { table: {
component: 'SelectV2' width: 150
}, },
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '库存动作', label: '库存动作',
@ -43,7 +60,7 @@ export const ItemLocationInRecord = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {
@ -55,7 +72,7 @@ export const ItemLocationInRecord = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '计量单位从备件中获取', label: '计量单位',
field: 'uom', field: 'uom',
sort: 'custom', sort: 'custom',
}, },
@ -80,24 +97,30 @@ export const ItemLocationInRecord = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
}, },
{
label: '地点ID',
field: 'siteId',
sort: 'custom',
},
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: {
width: 150
}, },
{ tableForm: {
label: '并发乐观锁', type: 'Select',
field: 'concurrencyStamp', inactiveValue: 'FALSE',
sort: 'custom', disabled: true
form: {
component: 'InputNumber',
value: 0
}, },
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '操作', label: '操作',

60
src/views/eam/item/itemLocationOutRecord/itemLocationOutRecord.data.ts

@ -13,7 +13,7 @@ export const ItemLocationOutRecordRules = reactive({
export const ItemLocationOutRecord = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemLocationOutRecord = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '编号唯一标识', label: '编号',
field: 'itemNumber', field: 'itemNumber',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -23,13 +23,31 @@ export const ItemLocationOutRecord = useCrudSchemas(reactive<CrudSchema[]>([
field: 'locationNumber', field: 'locationNumber',
sort: 'custom', sort: 'custom',
}, },
{ {
label: '事务类型IN、OUT', label: '事务类型',
field: 'transactionType', field: 'transactionType',
dictType: DICT_TYPE.TRANSACTION_TYPE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
form: { table: {
component: 'SelectV2' width: 150
}, },
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '库存动作', label: '库存动作',
@ -43,7 +61,7 @@ export const ItemLocationOutRecord = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {
@ -55,7 +73,7 @@ export const ItemLocationOutRecord = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '计量单位从备件中获取', label: '计量单位',
field: 'uom', field: 'uom',
sort: 'custom', sort: 'custom',
}, },
@ -80,24 +98,30 @@ export const ItemLocationOutRecord = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
}, },
{
label: '地点ID',
field: 'siteId',
sort: 'custom',
},
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: {
width: 150
}, },
{ tableForm: {
label: '并发乐观锁', type: 'Select',
field: 'concurrencyStamp', inactiveValue: 'FALSE',
sort: 'custom', disabled: true
form: {
component: 'InputNumber',
value: 0
}, },
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '操作', label: '操作',

4
src/views/eam/item/itemLocationRecord/itemLocationRecord.data.ts

@ -28,7 +28,7 @@ export const ItemLocationRecord = useCrudSchemas(reactive<CrudSchema[]>([
field: 'transactionType', field: 'transactionType',
sort: 'custom', sort: 'custom',
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {
@ -43,7 +43,7 @@ export const ItemLocationRecord = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {

58
src/views/eam/item/itemMaintenance/itemMaintenance.data.ts

@ -11,13 +11,13 @@ export const ItemMaintenanceRules = reactive({
export const ItemMaintenance = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '代码', label: '编号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '备件代码', label: '备件编号',
field: 'itemNumber', field: 'itemNumber',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -28,10 +28,29 @@ export const ItemMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
}, },
{ {
label: '维修结果YES、NO', label: '事务类型',
field: 'result', field: 'result',
sort: 'custom', dictType: DICT_TYPE.RESULT,
dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '创建时间', label: '创建时间',
@ -49,24 +68,31 @@ export const ItemMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
}, },
{
label: '地点ID',
field: 'siteId',
sort: 'custom',
},
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: {
width: 150
}, },
{ tableForm: {
label: '并发乐观锁', type: 'Select',
field: 'concurrencyStamp', inactiveValue: 'FALSE',
sort: 'custom', disabled: true
form: {
component: 'InputNumber',
value: 0
}, },
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '操作', label: '操作',

30
src/views/eam/item/itemOrderMain/index.vue

@ -53,8 +53,6 @@
<!-- 详情 --> <!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="ItemOrderMain.allSchemas" /> <Detail ref="detailRef" :isBasic="true" :allSchemas="ItemOrderMain.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/eam/item-order-main/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -63,7 +61,6 @@ import { ItemOrderMain,ItemOrderMainRules } from './itemOrderMain.data'
import * as ItemOrderMainApi from '@/api/eam/item/itemOrderMain' import * as ItemOrderMainApi from '@/api/eam/item/itemOrderMain'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'ItemOrderMain' }) defineOptions({ name: 'ItemOrderMain' })
@ -99,9 +96,8 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:itemOrderMain:create'}), // defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn({hasPermi:'eam:itemOrderMain:import'}), // defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultExportBtn({hasPermi:'eam:itemOrderMain:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -119,8 +115,6 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
if (val == 'add') { // if (val == 'add') { //
openForm('create') openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { // } else if (val == 'export') { //
handleExport() handleExport()
} else if (val == 'refresh') { // } else if (val == 'refresh') { //
@ -133,8 +127,8 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = [ const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:itemOrderMain:update'}), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:itemOrderMain:delete'}), // defaultButtons.mainListDeleteBtn(null), //
] ]
// - // -
@ -211,21 +205,6 @@ const handleExport = async () => {
} }
} }
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '备件采购订单主导入模版.xlsx'
})
//
const importSuccess = () => {
getList()
}
// //
const searchFormClick = (searchData) => { const searchFormClick = (searchData) => {
tableObject.params = { tableObject.params = {
@ -238,7 +217,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList() getList()
importTemplateData.templateUrl = await ItemOrderMainApi.importTemplate()
}) })
</script> </script>

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

@ -10,7 +10,7 @@ export const ItemOrderMainRules = reactive({
export const ItemOrderMain = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '订单号唯一标识', label: '订单号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -83,7 +83,7 @@ export const ItemOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'paymentType', field: 'paymentType',
sort: 'custom', sort: 'custom',
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {
@ -122,24 +122,30 @@ export const ItemOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
}, },
{
label: '地点ID',
field: 'siteId',
sort: 'custom',
},
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: {
width: 150
}, },
{ tableForm: {
label: '并发乐观锁', type: 'Select',
field: 'concurrencyStamp', inactiveValue: 'FALSE',
sort: 'custom', disabled: true
form: {
component: 'InputNumber',
value: 0
}, },
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '操作', label: '操作',

2
src/views/eam/mold/moldAccounts/moldAccounts.data.ts

@ -37,7 +37,7 @@ export const MoldAccounts = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {

2
src/views/eam/mold/moldInspectionMain/moldInspectionMain.data.ts

@ -69,7 +69,7 @@ export const MoldInspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {

2
src/views/eam/mold/moldMaintainOrderMain/moldMaintainOrderMain.data.ts

@ -127,7 +127,7 @@ export const MoldMaintainOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {

4
src/views/eam/mold/moldMaintainPlan/moldMaintainPlan.data.ts

@ -28,7 +28,7 @@ export const MoldMaintainPlan = useCrudSchemas(reactive<CrudSchema[]>([
field: 'maintenanceType', field: 'maintenanceType',
sort: 'custom', sort: 'custom',
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {
@ -51,7 +51,7 @@ export const MoldMaintainPlan = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {

2
src/views/eam/mold/moldMaintenanceMain/moldMaintenanceMain.data.ts

@ -70,7 +70,7 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {

4
src/views/eam/mold/moldRepair/moldRepair.data.ts

@ -55,7 +55,7 @@ export const MoldRepair = useCrudSchemas(reactive<CrudSchema[]>([
field: 'faultType', field: 'faultType',
sort: 'custom', sort: 'custom',
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {
@ -64,7 +64,7 @@ export const MoldRepair = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
component: 'SelectV2' component: 'Select'
}, },
}, },
{ {

Loading…
Cancel
Save