+
-
![]()
-
+
![]()
+
@@ -23,20 +30,24 @@ export default {
this.imageUrl = url
this.visible = true
this.enterFullscreen()
+
+ // 计算图片宽高比例
const img = new Image()
img.src = url
img.onload = () => {
- const imgScale = img.width / img.height
- this.imageWidth = 800
- this.imageHeight = 800 / imgScale
+ const ratio = img.width / img.height
+ this.imageHeight = this.imageWidth / ratio
}
},
close() {
this.exitFullscreen()
this.visible = false
},
+ handleImageError(e) {
+ e.target.src = '/img/noPhoto.jpg'
+ },
enterFullscreen() {
- const element = document.getElementById('view-image')
+ const element = this.$el
if (element.requestFullscreen) {
element.requestFullscreen()
} else if (element.mozRequestFullScreen) {
@@ -55,16 +66,13 @@ export default {
} else if (document.webkitExitFullscreen) {
document.webkitExitFullscreen()
}
- },
- handleImageError(e) {
- e.target.src = '/img/noPhoto.jpg'
}
}
}
-
\ No newline at end of file
diff --git a/src/components/work/addItemReleaseType.vue b/src/components/work/addItemReleaseType.vue
new file mode 100644
index 0000000..ca1b1ee
--- /dev/null
+++ b/src/components/work/addItemReleaseType.vue
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/work/deleteItemRelease.vue b/src/components/work/deleteItemRelease.vue
new file mode 100644
index 0000000..93beddf
--- /dev/null
+++ b/src/components/work/deleteItemRelease.vue
@@ -0,0 +1,61 @@
+
+
+
+
{{ $t('itemReleaseManage.delete.confirmDelete') }}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/work/deleteItemReleaseType.vue b/src/components/work/deleteItemReleaseType.vue
new file mode 100644
index 0000000..84ad730
--- /dev/null
+++ b/src/components/work/deleteItemReleaseType.vue
@@ -0,0 +1,57 @@
+
+
+
+
{{ $t('itemReleaseTypeManage.delete.confirmText') }}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/work/editItemRelease.vue b/src/components/work/editItemRelease.vue
new file mode 100644
index 0000000..a85010c
--- /dev/null
+++ b/src/components/work/editItemRelease.vue
@@ -0,0 +1,284 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/work/editItemReleaseType.vue b/src/components/work/editItemReleaseType.vue
new file mode 100644
index 0000000..78b0e02
--- /dev/null
+++ b/src/components/work/editItemReleaseType.vue
@@ -0,0 +1,107 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/work/orgTreeShow.vue b/src/components/work/orgTreeShow.vue
new file mode 100644
index 0000000..e16e2bf
--- /dev/null
+++ b/src/components/work/orgTreeShow.vue
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/work/selectStaff.vue b/src/components/work/selectStaff.vue
new file mode 100644
index 0000000..b3b0c00
--- /dev/null
+++ b/src/components/work/selectStaff.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
{{ $t('selectStaff.orgInfo') }}
+
+
+
+
+
+
+
+
{{ $t('selectStaff.staffInfo') }}
+
+
+
+
+
+ {{ item.name }}
+
+
{{ item.tel }}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/work/viewItemReleaseRes.vue b/src/components/work/viewItemReleaseRes.vue
new file mode 100644
index 0000000..1583eee
--- /dev/null
+++ b/src/components/work/viewItemReleaseRes.vue
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/i18n/communityI18n.js b/src/i18n/communityI18n.js
index 7452e97..88343c8 100644
--- a/src/i18n/communityI18n.js
+++ b/src/i18n/communityI18n.js
@@ -2,17 +2,26 @@ import { messages as roomStructureMessages } from '../views/room/roomStructureLa
import { messages as carStructureMessages } from '../views/car/carStructureLang'
import { messages as propertyRightRegistrationManageMessages } from '../views/room/propertyRightRegistrationManageLang'
import { messages as listPropertyRightRegistrationDetailMessages } from '../views/room/listPropertyRightRegistrationDetailLang'
+import { messages as communityPublicityManageMessages } from '../views/community/communityPublicityManageLang'
+import { messages as addCommunityPublicityMessages } from '../views/community/addCommunityPublicityLang'
+import { messages as editCommunityPublicityMessages } from '../views/community/editCommunityPublicityLang'
export const messages = {
en: {
...roomStructureMessages.en,
...carStructureMessages.en,
...propertyRightRegistrationManageMessages.en,
...listPropertyRightRegistrationDetailMessages.en,
+ ...communityPublicityManageMessages.en,
+ ...addCommunityPublicityMessages.en,
+ ...editCommunityPublicityMessages.en,
},
zh: {
...roomStructureMessages.zh,
...carStructureMessages.zh,
...propertyRightRegistrationManageMessages.zh,
...listPropertyRightRegistrationDetailMessages.zh,
+ ...communityPublicityManageMessages.zh,
+ ...addCommunityPublicityMessages.zh,
+ ...editCommunityPublicityMessages.zh,
}
}
\ No newline at end of file
diff --git a/src/i18n/index.js b/src/i18n/index.js
index 516b087..c33c45f 100644
--- a/src/i18n/index.js
+++ b/src/i18n/index.js
@@ -145,6 +145,7 @@ import { messages as scmI18n } from './scmI18n'
import { messages as userI18n } from './userI18n'
import { messages as systemI18n } from './systemI18n'
import { messages as communityI18n } from './communityI18n'
+import { messages as workI18n } from './workI18n'
Vue.use(VueI18n)
@@ -288,6 +289,7 @@ const messages = {
...userI18n.en,
...systemI18n.en,
...communityI18n.en,
+ ...workI18n.en,
},
zh: {
...loginMessages.zh,
@@ -425,6 +427,7 @@ const messages = {
...userI18n.zh,
...systemI18n.zh,
...communityI18n.zh,
+ ...workI18n.zh,
}
}
diff --git a/src/i18n/workI18n.js b/src/i18n/workI18n.js
new file mode 100644
index 0000000..9abe894
--- /dev/null
+++ b/src/i18n/workI18n.js
@@ -0,0 +1,16 @@
+import { messages as itemReleaseTypeManageMessages } from '../views/work/itemReleaseTypeManageLang'
+import { messages as itemReleaseManageMessages } from '../views/work/itemReleaseManageLang'
+
+import { messages as addItemReleaseViewMessages } from '../views/work/addItemReleaseViewLang'
+export const messages = {
+ zh: {
+ ...itemReleaseTypeManageMessages.zh,
+ ...itemReleaseManageMessages.zh,
+ ...addItemReleaseViewMessages.zh,
+ },
+ en: {
+ ...itemReleaseTypeManageMessages.en,
+ ...itemReleaseManageMessages.en,
+ ...addItemReleaseViewMessages.en,
+ }
+}
\ No newline at end of file
diff --git a/src/router/communityRouter.js b/src/router/communityRouter.js
index bb47a5c..4c31990 100644
--- a/src/router/communityRouter.js
+++ b/src/router/communityRouter.js
@@ -19,4 +19,19 @@ export default [
name: '/views/room/listPropertyRightRegistrationDetail',
component: () => import('@/views/room/listPropertyRightRegistrationDetailList.vue')
},
+ {
+ path: '/pages/community/communityPublicityManage',
+ name: '/pages/community/communityPublicityManage',
+ component: () => import('@/views/community/communityPublicityManageList.vue')
+ },
+ {
+ path: '/views/community/addCommunityPublicity',
+ name: '/views/community/addCommunityPublicity',
+ component: () => import('@/views/community/addCommunityPublicityList.vue')
+ },
+ {
+ path: '/views/community/editCommunityPublicity',
+ name: '/views/community/editCommunityPublicity',
+ component: () => import('@/views/community/editCommunityPublicityList.vue')
+ },
]
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index a747129..03b8263 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -15,6 +15,7 @@ import scmRouter from './scmRouter'
import userRouter from './userRouter'
import systemRouter from './systemRouter'
import communityRouter from './communityRouter'
+import workRouter from './workRouter'
Vue.use(VueRouter)
@@ -638,6 +639,7 @@ const routes = [
...userRouter,
...systemRouter,
...communityRouter,
+ ...workRouter,
// 其他子路由可以在这里添加
]
},
diff --git a/src/router/workRouter.js b/src/router/workRouter.js
new file mode 100644
index 0000000..144b821
--- /dev/null
+++ b/src/router/workRouter.js
@@ -0,0 +1,17 @@
+export default [
+ {
+ path: '/pages/property/itemReleaseTypeManage',
+ name: '/pages/property/itemReleaseTypeManage',
+ component: () => import('@/views/work/itemReleaseTypeManageList.vue')
+ },
+ {
+ path: '/pages/property/itemReleaseManage',
+ name: '/pages/property/itemReleaseManage',
+ component: () => import('@/views/work/itemReleaseManageList.vue')
+ },
+ {
+ path: '/views/work/addItemReleaseView',
+ name: '/views/work/addItemReleaseView',
+ component: () => import('@/views/work/addItemReleaseViewList.vue')
+ },
+]
\ No newline at end of file
diff --git a/src/views/community/addCommunityPublicityLang.js b/src/views/community/addCommunityPublicityLang.js
new file mode 100644
index 0000000..d1166ca
--- /dev/null
+++ b/src/views/community/addCommunityPublicityLang.js
@@ -0,0 +1,30 @@
+export const messages = {
+ en: {
+ addCommunityPublicity: {
+ title: 'Add Community Publicity',
+ pubTitle: 'Publicity Title',
+ pubType: 'Publicity Type',
+ headerPhoto: 'Header Photo',
+ activityContent: 'Activity Content',
+ back: 'Back',
+ submit: 'Submit',
+ requiredTitle: 'Required, please fill in the publicity title',
+ requiredType: 'Required, please select publicity type',
+ requiredContent: 'Required, please enter announcement content'
+ }
+ },
+ zh: {
+ addCommunityPublicity: {
+ title: '添加社区公示',
+ pubTitle: '公示标题',
+ pubType: '公示类型',
+ headerPhoto: '头部照片',
+ activityContent: '活动内容',
+ back: '返回',
+ submit: '提交',
+ requiredTitle: '必填,请填写公示标题',
+ requiredType: '必填,请选择公示类型',
+ requiredContent: '必填,请输入公告内容'
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/views/community/addCommunityPublicityList.vue b/src/views/community/addCommunityPublicityList.vue
new file mode 100644
index 0000000..6d88e50
--- /dev/null
+++ b/src/views/community/addCommunityPublicityList.vue
@@ -0,0 +1,158 @@
+
+
+
+ {{ $t('addCommunityPublicity.title') }}
+
+ {{ $t('addCommunityPublicity.back') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('addCommunityPublicity.back') }}
+ {{ $t('addCommunityPublicity.submit') }}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/community/communityPublicityManageLang.js b/src/views/community/communityPublicityManageLang.js
new file mode 100644
index 0000000..e22d7db
--- /dev/null
+++ b/src/views/community/communityPublicityManageLang.js
@@ -0,0 +1,34 @@
+export const messages = {
+ en: {
+ communityPublicityManage: {
+ searchTitle: 'Search Conditions',
+ titlePlaceholder: 'Please enter publicity title',
+ tableTitle: 'Community Publicity List',
+ headerImg: 'Header Image',
+ title: 'Publicity Title',
+ pubType: 'Publicity Type',
+ createTime: 'Publicity Time',
+ publisher: 'Publisher',
+ deleteTitle: 'Confirm Delete',
+ deleteConfirm: 'Are you sure to delete this community publicity?',
+ deleteSuccess: 'Delete successfully',
+ deleteError: 'Delete failed'
+ }
+ },
+ zh: {
+ communityPublicityManage: {
+ searchTitle: '查询条件',
+ titlePlaceholder: '请输入公示标题',
+ tableTitle: '小区公示列表',
+ headerImg: '头部照片',
+ title: '公示标题',
+ pubType: '公示类型',
+ createTime: '公示时间',
+ publisher: '发布人',
+ deleteTitle: '确认删除',
+ deleteConfirm: '确定要删除这条小区公示吗?',
+ deleteSuccess: '删除成功',
+ deleteError: '删除失败'
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/views/community/communityPublicityManageList.vue b/src/views/community/communityPublicityManageList.vue
new file mode 100644
index 0000000..8bfa140
--- /dev/null
+++ b/src/views/community/communityPublicityManageList.vue
@@ -0,0 +1,226 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/community/editCommunityPublicityLang.js b/src/views/community/editCommunityPublicityLang.js
new file mode 100644
index 0000000..f5087f8
--- /dev/null
+++ b/src/views/community/editCommunityPublicityLang.js
@@ -0,0 +1,58 @@
+export const messages = {
+ en: {
+ editCommunityPublicity: {
+ title: 'Edit Publicity',
+ publicityTitle: 'Publicity Title',
+ publicityTitlePlaceholder: 'Required, please enter publicity title',
+ publicityType: 'Publicity Type',
+ publicityTypePlaceholder: 'Required, please select publicity type',
+ headerImage: 'Header Image',
+ activityContent: 'Activity Content',
+ activityContentPlaceholder: 'Required, please enter activity content',
+ validate: {
+ titleRequired: 'Publicity title is required',
+ typeRequired: 'Publicity type is required',
+ imageRequired: 'Header image is required',
+ contentRequired: 'Activity content is required'
+ },
+ message: {
+ updateSuccess: 'Update publicity successfully',
+ updateFailed: 'Update publicity failed'
+ }
+ },
+ uploadImage: {
+ message: {
+ sizeLimit: 'Image size cannot exceed 2MB',
+ uploadFailed: 'Upload image failed'
+ }
+ }
+ },
+ zh: {
+ editCommunityPublicity: {
+ title: '修改公示',
+ publicityTitle: '公示标题',
+ publicityTitlePlaceholder: '必填,请填写公示标题',
+ publicityType: '公示类型',
+ publicityTypePlaceholder: '必填,请选择公示类型',
+ headerImage: '头部照片',
+ activityContent: '活动内容',
+ activityContentPlaceholder: '必填,请输入活动内容',
+ validate: {
+ titleRequired: '公示标题不能为空',
+ typeRequired: '公示类型不能为空',
+ imageRequired: '头部照片不能为空',
+ contentRequired: '活动内容不能为空'
+ },
+ message: {
+ updateSuccess: '修改公示成功',
+ updateFailed: '修改公示失败'
+ }
+ },
+ uploadImage: {
+ message: {
+ sizeLimit: '图片大小不能超过2MB',
+ uploadFailed: '图片上传失败'
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/views/community/editCommunityPublicityList.vue b/src/views/community/editCommunityPublicityList.vue
new file mode 100644
index 0000000..6ec521f
--- /dev/null
+++ b/src/views/community/editCommunityPublicityList.vue
@@ -0,0 +1,204 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/work/addItemReleaseViewLang.js b/src/views/work/addItemReleaseViewLang.js
new file mode 100644
index 0000000..6057e80
--- /dev/null
+++ b/src/views/work/addItemReleaseViewLang.js
@@ -0,0 +1,98 @@
+export const messages = {
+ en: {
+ addItemReleaseView: {
+ title: 'Apply for Release',
+ releaseType: 'Release Type',
+ requiredSelectReleaseType: 'Required, please select release type',
+ applyCompany: 'Application Company',
+ requiredApplyCompany: 'Required, please fill in application company',
+ applyPerson: 'Applicant',
+ requiredApplyPerson: 'Required, please fill in applicant',
+ idCard: 'ID Card',
+ requiredIdCard: 'Required, please fill in ID card',
+ phone: 'Phone',
+ requiredPhone: 'Required, please fill in phone',
+ passTime: 'Pass Time',
+ requiredPassTime: 'Required, please fill in pass time',
+ carNum: 'License Plate',
+ optionalCarNum: 'Optional, please fill in license plate',
+ remark: 'Remark',
+ optionalRemark: 'Optional, please fill in remark',
+ releaseItems: 'Release Items',
+ addItem: 'Add Item',
+ itemName: 'Item Name',
+ requiredItemName: 'Required, please fill in item name',
+ itemAmount: 'Item Amount',
+ requiredItemAmount: 'Required, please fill in amount',
+ approverInfo: 'Approver Information',
+ approver: 'Approver',
+ requiredApprover: 'Required, please select approver',
+ validate: {
+ releaseType: 'Release type cannot be empty',
+ applyCompany: 'Application company cannot be empty',
+ applyPerson: 'Applicant cannot be empty',
+ idCard: 'ID card cannot be empty',
+ phone: 'Phone cannot be empty',
+ passTime: 'Pass time cannot be empty',
+ itemsRequired: 'At least one item is required',
+ itemInfoRequired: 'Item name and amount are required',
+ approverRequired: 'Approver is required'
+ }
+ },
+ selectStaff: {
+ title: 'Select Staff',
+ orgInfo: 'Organization Information',
+ staffInfo: 'Staff Information',
+ submitter: 'Submitter',
+ dynamicAssign: 'Dynamic Assignment'
+ }
+ },
+ zh: {
+ addItemReleaseView: {
+ title: '申请放行',
+ releaseType: '放行类型',
+ requiredSelectReleaseType: '必填,请选择放行类型',
+ applyCompany: '申请单位',
+ requiredApplyCompany: '必填,请填写申请单位',
+ applyPerson: '申请人',
+ requiredApplyPerson: '必填,请填写申请人',
+ idCard: '身份证',
+ requiredIdCard: '必填,请填写身份证',
+ phone: '手机号',
+ requiredPhone: '必填,请填写手机号',
+ passTime: '通行时间',
+ requiredPassTime: '必填,请填写通行时间',
+ carNum: '车牌号',
+ optionalCarNum: '选填,请填写车牌号',
+ remark: '备注',
+ optionalRemark: '选填,请填写备注',
+ releaseItems: '放行物品',
+ addItem: '添加物品',
+ itemName: '物品名称',
+ requiredItemName: '必填,请填写物品名称',
+ itemAmount: '物品数量',
+ requiredItemAmount: '必填,请填写数量',
+ approverInfo: '审批人信息',
+ approver: '审批人',
+ requiredApprover: '必填,请选择审批人',
+ validate: {
+ releaseType: '放行类型不能为空',
+ applyCompany: '申请单位不能为空',
+ applyPerson: '申请人不能为空',
+ idCard: '身份证不能为空',
+ phone: '手机号不能为空',
+ passTime: '通行时间不能为空',
+ itemsRequired: '至少需要一个放行物品',
+ itemInfoRequired: '物品名称和数量不能为空',
+ approverRequired: '审批人不能为空'
+ }
+ },
+ selectStaff: {
+ title: '选择员工',
+ orgInfo: '组织信息',
+ staffInfo: '员工信息',
+ submitter: '提交者',
+ dynamicAssign: '动态指定'
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/views/work/addItemReleaseViewList.vue b/src/views/work/addItemReleaseViewList.vue
new file mode 100644
index 0000000..3638af1
--- /dev/null
+++ b/src/views/work/addItemReleaseViewList.vue
@@ -0,0 +1,333 @@
+
+
+
+
+ {{ $t('addItemReleaseView.title') }}
+
+ {{ $t('common.back') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('addItemReleaseView.releaseItems') }}
+
+ {{ $t('addItemReleaseView.addItem') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('addItemReleaseView.approverInfo') }}
+
+
+
+
+
+
+
+
+
+
+ {{ $t('common.select') }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('common.cancel') }}
+
+
+ {{ $t('common.submit') }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/work/itemReleaseManageLang.js b/src/views/work/itemReleaseManageLang.js
new file mode 100644
index 0000000..318067d
--- /dev/null
+++ b/src/views/work/itemReleaseManageLang.js
@@ -0,0 +1,158 @@
+export const messages = {
+ en: {
+ itemReleaseManage: {
+ search: {
+ title: 'Search Conditions',
+ more: 'More',
+ hide: 'Hide'
+ },
+ list: {
+ title: 'Item Release'
+ },
+ form: {
+ releaseType: 'Release Type',
+ applyCompany: 'Apply Company',
+ applyPerson: 'Applicant',
+ idCard: 'ID Card',
+ phone: 'Phone',
+ passTime: 'Pass Time',
+ releaseItems: 'Release Items',
+ itemAmount: 'Item Amount',
+ status: 'Status',
+ carNumber: 'Car Number',
+ remark: 'Remark'
+ },
+ table: {
+ orderNo: 'Order No',
+ releaseType: 'Release Type',
+ applyCompany: 'Apply Company',
+ applyPerson: 'Applicant',
+ idCard: 'ID Card',
+ phone: 'Phone',
+ passTime: 'Pass Time',
+ items: 'Items',
+ status: 'Status',
+ carNumber: 'Car Number'
+ },
+ button: {
+ applyRelease: 'Apply Release',
+ viewItems: 'View Items'
+ },
+ placeholder: {
+ selectReleaseType: 'Please select release type',
+ selectApplyCompany: 'Please select apply company',
+ selectApplyPerson: 'Please select applicant',
+ selectIdCard: 'Please input ID card',
+ selectPhone: 'Please input phone',
+ selectStatus: 'Please select status',
+ requiredSelect: 'Required, please select',
+ requiredInput: 'Required, please input',
+ optionalInput: 'Optional, please input'
+ },
+ status: {
+ waiting: 'Waiting',
+ processing: 'Processing',
+ completed: 'Completed',
+ failed: 'Failed'
+ },
+ validate: {
+ required: 'Cannot be empty',
+ maxLength30: 'Cannot exceed 30 characters',
+ maxLength64: 'Cannot exceed 64 characters',
+ maxLength18: 'Cannot exceed 18 characters',
+ maxLength11: 'Cannot exceed 11 characters',
+ maxLength12: 'Cannot exceed 12 characters',
+ maxLength512: 'Cannot exceed 512 characters'
+ },
+ edit: {
+ title: 'Edit Item Release'
+ },
+ delete: {
+ confirmDelete: 'Confirm to delete item release?'
+ },
+ viewItems: {
+ title: 'Release Items',
+ itemName: 'Item Name',
+ amount: 'Amount'
+ }
+ }
+ },
+ zh: {
+ itemReleaseManage: {
+ search: {
+ title: '查询条件',
+ more: '更多',
+ hide: '隐藏'
+ },
+ list: {
+ title: '物品放行'
+ },
+ form: {
+ releaseType: '放行类型',
+ applyCompany: '申请单位',
+ applyPerson: '申请人',
+ idCard: '身份证',
+ phone: '手机号',
+ passTime: '通行时间',
+ releaseItems: '放行物品',
+ itemAmount: '物品数量',
+ status: '状态',
+ carNumber: '车牌号',
+ remark: '备注'
+ },
+ table: {
+ orderNo: '单号',
+ releaseType: '放行类型',
+ applyCompany: '申请单位',
+ applyPerson: '申请人',
+ idCard: '身份证',
+ phone: '手机号',
+ passTime: '通行时间',
+ items: '物品',
+ status: '状态',
+ carNumber: '车牌号'
+ },
+ button: {
+ applyRelease: '申请放行',
+ viewItems: '查看物品'
+ },
+ placeholder: {
+ selectReleaseType: '请选择放行类型',
+ selectApplyCompany: '请选择申请单位',
+ selectApplyPerson: '请选择申请人',
+ selectIdCard: '请输入身份证',
+ selectPhone: '请输入手机号',
+ selectStatus: '请选择状态',
+ requiredSelect: '必填,请选择',
+ requiredInput: '必填,请输入',
+ optionalInput: '选填,请输入'
+ },
+ status: {
+ waiting: '待审核',
+ processing: '审核中',
+ completed: '审核完成',
+ failed: '审核失败'
+ },
+ validate: {
+ required: '不能为空',
+ maxLength30: '不能超过30个字符',
+ maxLength64: '不能超过64个字符',
+ maxLength18: '不能超过18个字符',
+ maxLength11: '不能超过11个字符',
+ maxLength12: '不能超过12个字符',
+ maxLength512: '不能超过512个字符'
+ },
+ edit: {
+ title: '修改物品放行'
+ },
+ delete: {
+ confirmDelete: '确定删除物品放行?'
+ },
+ viewItems: {
+ title: '放行物品',
+ itemName: '物品名称',
+ amount: '数量'
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/views/work/itemReleaseManageList.vue b/src/views/work/itemReleaseManageList.vue
new file mode 100644
index 0000000..75ef08b
--- /dev/null
+++ b/src/views/work/itemReleaseManageList.vue
@@ -0,0 +1,369 @@
+
+
+
+
+
+ {{ $t('itemReleaseManage.search.title') }}
+
+ {{ itemReleaseManageInfo.moreCondition ? $t('common.hide') : $t('common.more') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('common.search') }}
+
+
+
+ {{ $t('common.reset') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('itemReleaseManage.list.title') }}
+
+
+ {{ $t('itemReleaseManage.button.applyRelease') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.amount }}(
+
+ {{ $t('itemReleaseManage.button.viewItems') }}
+ )
+
+
+
+
+
+ {{ scope.row.carNum || $t('common.none') }}
+
+
+
+
+
+ {{ $t('common.detail') }}
+
+
+ {{ $t('common.edit') }}
+
+
+ {{ $t('common.delete') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/work/itemReleaseTypeManageLang.js b/src/views/work/itemReleaseTypeManageLang.js
new file mode 100644
index 0000000..e8491ea
--- /dev/null
+++ b/src/views/work/itemReleaseTypeManageLang.js
@@ -0,0 +1,110 @@
+export const messages = {
+ en: {
+ itemReleaseTypeManage: {
+ search: {
+ title: 'Search Conditions',
+ typeNamePlaceholder: 'Please enter type name'
+ },
+ list: {
+ title: 'Release Types'
+ },
+ table: {
+ typeId: 'ID',
+ typeName: 'Type Name',
+ flowName: 'Flow Name',
+ setFlow: 'Set Flow',
+ state: 'Status',
+ deployed: 'Deployed',
+ pendingDeploy: 'Pending Deploy',
+ remark: 'Remark',
+ deploy: 'Deploy'
+ },
+ form: {
+ typeName: 'Type Name',
+ typeNamePlaceholder: 'Required, please enter type name',
+ remark: 'Remark',
+ remarkPlaceholder: 'Required, please enter remark'
+ },
+ validate: {
+ typeNameRequired: 'Type name is required',
+ typeNameMaxLength: 'Type name cannot exceed 30 characters',
+ remarkRequired: 'Remark is required',
+ remarkMaxLength: 'Remark cannot exceed 512 characters',
+ typeIdRequired: 'Type ID is required'
+ },
+ add: {
+ title: 'Add Release Type',
+ success: 'Add successfully',
+ error: 'Add failed'
+ },
+ edit: {
+ title: 'Edit Release Type',
+ success: 'Edit successfully',
+ error: 'Edit failed'
+ },
+ delete: {
+ title: 'Delete Confirmation',
+ confirmText: 'Are you sure to delete this release type?',
+ success: 'Delete successfully',
+ error: 'Delete failed'
+ },
+ fetchError: 'Failed to fetch data',
+ deploySuccess: 'Deploy successfully',
+ deployError: 'Deploy failed'
+ }
+ },
+ zh: {
+ itemReleaseTypeManage: {
+ search: {
+ title: '查询条件',
+ typeNamePlaceholder: '请输入类型名称'
+ },
+ list: {
+ title: '放行类型'
+ },
+ table: {
+ typeId: '编号',
+ typeName: '类型名称',
+ flowName: '流程名称',
+ setFlow: '设置流程',
+ state: '状态',
+ deployed: '已部署',
+ pendingDeploy: '待部署',
+ remark: '备注',
+ deploy: '部署'
+ },
+ form: {
+ typeName: '类型名称',
+ typeNamePlaceholder: '必填,请填写类型名称',
+ remark: '备注',
+ remarkPlaceholder: '必填,请填写备注'
+ },
+ validate: {
+ typeNameRequired: '类型名称不能为空',
+ typeNameMaxLength: '类型名称不能超过30个字符',
+ remarkRequired: '备注不能为空',
+ remarkMaxLength: '备注不能超过512个字符',
+ typeIdRequired: '编号不能为空'
+ },
+ add: {
+ title: '添加放行类型',
+ success: '添加成功',
+ error: '添加失败'
+ },
+ edit: {
+ title: '修改放行类型',
+ success: '修改成功',
+ error: '修改失败'
+ },
+ delete: {
+ title: '删除确认',
+ confirmText: '确定删除该放行类型吗?',
+ success: '删除成功',
+ error: '删除失败'
+ },
+ fetchError: '获取数据失败',
+ deploySuccess: '部署成功',
+ deployError: '部署失败'
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/views/work/itemReleaseTypeManageList.vue b/src/views/work/itemReleaseTypeManageList.vue
new file mode 100644
index 0000000..65cb5ee
--- /dev/null
+++ b/src/views/work/itemReleaseTypeManageList.vue
@@ -0,0 +1,197 @@
+
+
+
+
+
+ {{ $t('itemReleaseTypeManage.search.title') }}
+
+
+
+
+
+
+
+
+ {{ $t('common.search') }}
+
+
+
+ {{ $t('common.reset') }}
+
+
+
+
+
+
+
+
+ {{ $t('itemReleaseTypeManage.list.title') }}
+
+
+ {{ $t('common.add') }}
+
+
+
+
+
+
+
+
+ {{ scope.row.flowName }}
+
+ ({{ $t('itemReleaseTypeManage.table.setFlow') }})
+
+
+
+
+
+ {{ scope.row.state === 'C' ? $t('itemReleaseTypeManage.table.deployed') :
+ $t('itemReleaseTypeManage.table.pendingDeploy') }}
+
+
+
+
+
+
+ {{ $t('itemReleaseTypeManage.table.deploy') }}
+
+
+ {{ $t('common.edit') }}
+
+
+ {{ $t('common.delete') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
--
libgit2 0.21.4