Browse Source

保养工单

master
zhang_li 8 months ago
parent
commit
b7cdfd88bf
  1. 15
      src/views/eam/device/deviceAccounts/deviceAccounts.data.ts
  2. 2
      src/views/eam/mold/moldmaintainjob/index.vue

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

@ -2,7 +2,9 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import { selectAllFactoryArea } from '@/api/system/dept' import { selectAllFactoryArea } from '@/api/system/dept'
import { validateHanset,validateNumDot, validateEmail } from '@/utils/validator' import { validateHanset,validateNumDot, validateEmail } from '@/utils/validator'
import * as SupplierApi from '@/api/eam/basic/supplier'
const factoryList = await selectAllFactoryArea() const factoryList = await selectAllFactoryArea()
const supplierList = await SupplierApi.getSupplierNoPage()
// 表单校验 // 表单校验
export const DeviceAccountsRules = reactive({ export const DeviceAccountsRules = reactive({
name: [ name: [
@ -202,12 +204,23 @@ export const DeviceAccounts = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '供应商编号', label: '供应商',
field: 'supplierNumber', field: 'supplierNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: '150', width: '150',
}, },
form:{
component: 'Select',
componentProps: {
options: supplierList,
optionsAlias: {
labelField: 'name',
valueField: 'number'
},
placeholder: "请选择供应商"
}
}
}, },
{ {
label: '出厂日期', label: '出厂日期',

2
src/views/eam/mold/moldmaintainjob/index.vue

@ -226,7 +226,7 @@ const butttondata = (row) => {
defaultButtons.acceptOrderBtn({ defaultButtons.acceptOrderBtn({
hide: !( hide: !(
row.status == 'PENDING' && row.status == 1 row.status == 'PENDING'
) )
}), // }), //
// defaultButtons.turnOrderBtn({ // defaultButtons.turnOrderBtn({

Loading…
Cancel
Save