diff --git a/src/views/company/property/property/form/PropertyForm.vue b/src/views/company/property/property/form/PropertyForm.vue index aba3f91..c6298fe 100644 --- a/src/views/company/property/property/form/PropertyForm.vue +++ b/src/views/company/property/property/form/PropertyForm.vue @@ -107,7 +107,7 @@ - @@ -116,7 +116,7 @@ - @@ -146,14 +146,14 @@ - - @@ -172,7 +172,7 @@ - @@ -322,11 +322,6 @@ export default { const res = await PropertyApi.getProperty(id) this.formData = res.data this.formData.userId = parseInt(this.formData.userId) - this.formData.prodDate = new Date(this.formData.prodDate) - this.formData.lastKeepDate = new Date(this.formData.lastKeepDate) - this.formData.openDate = new Date(this.formData.openDate) - this.formData.nextKeepDate = new Date(this.formData.nextKeepDate) - this.formData.getDate = new Date(this.formData.getDate) this.dialogTitle = '修改企业管理-资产' } finally { this.formLoading = false diff --git a/src/views/company/property/property/index.vue b/src/views/company/property/property/index.vue index ad3fe7f..7ef2c8f 100644 --- a/src/views/company/property/property/index.vue +++ b/src/views/company/property/property/index.vue @@ -158,6 +158,21 @@ v-hasPermi="['company:property:delete']" >删除 + + 更多 + + 登录维修\保养记录 + + 查看维修\保养记录 + + + @@ -167,6 +182,8 @@ /> + + @@ -177,11 +194,15 @@ import { listCategory } from '@/api/system/category' import { DICT_TYPE } from '@/utils/dict' import { getStaffList } from '@/api/company/staff' import { getPropertyPosList } from '@/api/company/property/position' +import PropertyKeepCreate from '@/views/company/property/propertykeep/PropertyKeepCreate' +import PropertyKeepQuery from '@/views/company/property/propertykeep/PropertyKeepQuery' export default { name: 'Property', components: { - PropertyForm + PropertyForm, + PropertyKeepCreate, + PropertyKeepQuery }, data() { return { @@ -313,6 +334,25 @@ export default { getPropertyPosList().then(res => { this.positionList = res.data }) + }, + // 更多操作 + handleCommand(command, index, row) { + switch (command) { + case 'handlePropertyKeepCrate': + this.handlePropertyKeepCrate(row) + break + case 'handlePropertyKeepQuery': + this.handlePropertyKeepQuery(row) + break + default: + break + } + }, + handlePropertyKeepCrate(row){ + this.$refs['propertyKeepCreateRef'].open(row) + }, + handlePropertyKeepQuery(row){ + this.$refs['propertyKeepQueryRef'].open(row) } } } diff --git a/src/views/company/property/propertykeep/PropertyKeepCreate.vue b/src/views/company/property/propertykeep/PropertyKeepCreate.vue new file mode 100644 index 0000000..6e04327 --- /dev/null +++ b/src/views/company/property/propertykeep/PropertyKeepCreate.vue @@ -0,0 +1,225 @@ + + + + + diff --git a/src/views/company/property/propertykeep/PropertyKeepForm.vue b/src/views/company/property/propertykeep/PropertyKeepForm.vue deleted file mode 100644 index e0e4a7a..0000000 --- a/src/views/company/property/propertykeep/PropertyKeepForm.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - diff --git a/src/views/company/property/propertykeep/PropertyKeepQuery.vue b/src/views/company/property/propertykeep/PropertyKeepQuery.vue new file mode 100644 index 0000000..25f3867 --- /dev/null +++ b/src/views/company/property/propertykeep/PropertyKeepQuery.vue @@ -0,0 +1,302 @@ + + + + + diff --git a/src/views/company/property/propertykeep/index.vue b/src/views/company/property/propertykeep/index.vue deleted file mode 100644 index 0f43149..0000000 --- a/src/views/company/property/propertykeep/index.vue +++ /dev/null @@ -1,164 +0,0 @@ - - - diff --git a/src/views/company/staff/form/StaffChangeForm.vue b/src/views/company/staff/form/StaffChangeForm.vue index 6ea8acc..9436833 100644 --- a/src/views/company/staff/form/StaffChangeForm.vue +++ b/src/views/company/staff/form/StaffChangeForm.vue @@ -35,7 +35,7 @@ /> - +