Forráskód Böngészése

feat: 审核增加操作记录

zh 2 éve
szülő
commit
d22bba02d8

+ 30 - 11
src/views/commercialEngineering/crossDistrict/examine.vue

@@ -1,14 +1,22 @@
 <template>
   <div>
-    <el-form disabled>
-      <Base :form-data="formData" page-type="cross" :module="module" :common-data="commonData" />
-      <Model :form-data="formData" page-type="cross" :module="module" :common-data="commonData" />
-    </el-form>
-    <Examine :form-data="formData" page-type="cross" :module="module" :common-data="commonData" />
-    <div style="margin: 20px 0">
-      <el-button type="primary" size="small" @click="onSbumit">提交</el-button>
-      <el-button size="small" @click="handleBack">返回</el-button>
+    <el-radio-group v-model="current" size="mini">
+      <el-radio-button class="my-width" label="detail">审核</el-radio-button>
+      <el-radio-button class="my-width" label="record">操作记录</el-radio-button>
+    </el-radio-group>
+    <div v-show="current === 'detail'">
+      <el-form disabled>
+        <Base :form-data="formData" page-type="cross" :module="module" :common-data="commonData" />
+        <Model :form-data="formData" page-type="cross" :module="module" :common-data="commonData" />
+      </el-form>
+      <Examine :form-data="formData" page-type="cross" :module="module" :common-data="commonData" />
+      <div style="margin: 20px 0">
+        <el-button type="primary" size="small" @click="onSbumit">提交</el-button>
+        <el-button size="small" @click="handleBack">返回</el-button>
+      </div>
     </div>
+    <OperationRecords v-show="current === 'record'" :detail-id="detailId" />
+
   </div>
 </template>
 
@@ -16,16 +24,23 @@
 import Base from '../components/base.vue'
 import Model from '../components/model.vue'
 import Examine from '../components/examine.vue'
-
 import Mixin from '../mixin'
 import { examineLoginHomeDecoration } from '@/api/crossDistrict'
+import OperationRecords from '../components/operationRecords.vue'
+
 export default {
   components: {
     Base,
     Model,
-    Examine
+    Examine,
+    OperationRecords
   },
   mixins: [Mixin],
+  data() {
+    return {
+      current: 'detail'
+    }
+  },
   methods: {
     onSbumit(type) {
       const params = {
@@ -88,4 +103,8 @@ export default {
 }
 </script>
 
-<style lang="scss" scoped></style>
+<style lang="scss" scoped>
+.my-width ::v-deep .el-radio-button__inner {
+  width: 100px;
+}
+</style>

+ 29 - 10
src/views/commercialEngineering/frock/examine.vue

@@ -1,14 +1,21 @@
 <template>
   <div>
-    <el-form disabled>
-      <Base :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
-      <Model :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
-    </el-form>
-    <Examine :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
-    <div style="margin: 20px 0">
-      <el-button type="primary" size="small" @click="onSbumit">提交</el-button>
-      <el-button size="small" @click="handleBack">返回</el-button>
+    <el-radio-group v-model="current" size="mini">
+      <el-radio-button class="my-width" label="detail">审核</el-radio-button>
+      <el-radio-button class="my-width" label="record">操作记录</el-radio-button>
+    </el-radio-group>
+    <div v-show="current === 'detail'">
+      <el-form disabled>
+        <Base :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
+        <Model :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
+      </el-form>
+      <Examine :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
+      <div style="margin: 20px 0">
+        <el-button type="primary" size="small" @click="onSbumit">提交</el-button>
+        <el-button size="small" @click="handleBack">返回</el-button>
+      </div>
     </div>
+    <OperationRecords v-show="current === 'record'" :detail-id="detailId" />
   </div>
 </template>
 
@@ -18,13 +25,21 @@ import Model from '../components/model.vue'
 import Examine from '../components/examine.vue'
 import Mixin from '../mixin'
 import { examineLoginFrock } from '@/api/frock'
+import OperationRecords from '../components/operationRecords.vue'
+
 export default {
   components: {
     Base,
     Model,
-    Examine
+    Examine,
+    OperationRecords
   },
   mixins: [Mixin],
+  data() {
+    return {
+      current: 'detail'
+    }
+  },
   methods: {
     onSbumit() {
       const params = {
@@ -68,4 +83,8 @@ export default {
 }
 </script>
 
-<style lang="scss" scoped></style>
+<style lang="scss" scoped>
+.my-width ::v-deep .el-radio-button__inner {
+  width: 100px;
+}
+</style>

+ 37 - 13
src/views/commercialEngineering/homeDecoration/examine.vue

@@ -1,14 +1,21 @@
 <template>
   <div>
-    <el-form disabled>
-      <Base :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
-      <Model :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
-    </el-form>
-    <Examine :form-data="formData" page-type="home" :module="module" :common-data="commonData" />
-    <div style="margin: 20px 0">
-      <el-button type="primary" size="small" @click="onSbumit">提交</el-button>
-      <el-button size="small" @click="handleBack">返回</el-button>
+    <el-radio-group v-model="current" size="mini">
+      <el-radio-button class="my-width" label="detail">审核</el-radio-button>
+      <el-radio-button class="my-width" label="record">操作记录</el-radio-button>
+    </el-radio-group>
+    <div v-show="current === 'detail'">
+      <el-form disabled>
+        <Base :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
+        <Model :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
+      </el-form>
+      <Examine :form-data="formData" page-type="home" :module="module" :common-data="commonData" />
+      <div style="margin: 20px 0">
+        <el-button type="primary" size="small" @click="onSbumit">提交</el-button>
+        <el-button size="small" @click="handleBack">返回</el-button>
+      </div>
     </div>
+    <OperationRecords v-show="current === 'record'" :detail-id="detailId" />
   </div>
 </template>
 
@@ -19,13 +26,21 @@ import Examine from '../components/examine.vue'
 
 import Mixin from '../mixin'
 import { examineLoginHomeDecoration } from '@/api/homeDecoration'
+import OperationRecords from '../components/operationRecords.vue'
+
 export default {
   components: {
     Base,
     Model,
-    Examine
+    Examine,
+    OperationRecords
   },
   mixins: [Mixin],
+  data() {
+    return {
+      current: 'detail'
+    }
+  },
   methods: {
     onSbumit(type) {
       const params = {
@@ -55,9 +70,15 @@ export default {
       }
       if (params.orderType === 'HOME' && params.homeProjectNameRadio) {
         params.projectName = {
-          'AREA': params.homeProjectNameArea + '小区' + params.homeProjectNameSeat + '座' + params.homeProjectNameNumber + '号',
-          'SELF': params.homeProjectNameArea2 + '(业主名称)自建房',
-          'VILLA': params.homeProjectNameArea3 + '小区' + params.homeProjectNameNumber3 + '号'
+          AREA:
+            params.homeProjectNameArea +
+            '小区' +
+            params.homeProjectNameSeat +
+            '座' +
+            params.homeProjectNameNumber +
+            '号',
+          SELF: params.homeProjectNameArea2 + '(业主名称)自建房',
+          VILLA: params.homeProjectNameArea3 + '小区' + params.homeProjectNameNumber3 + '号'
         }[params.homeProjectNameRadio]
       }
       if (params.homeProjectNameRadio === 'SELF') {
@@ -86,4 +107,7 @@ export default {
 }
 </script>
 
-<style lang="scss" scoped></style>
+<style lang="scss" scoped>
+.my-width ::v-deep .el-radio-button__inner {
+  width: 100px;
+}</style>