MrShi
2025-02-08 43dd708784177ea36f450a90680e99f0969f0f8c
改bug
已修改2个文件
23 ■■■■ 文件已修改
admin/src/views/contract/components/terminateLease.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/views/roomStatus/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/views/contract/components/terminateLease.vue
@@ -27,6 +27,7 @@
                            <el-date-picker
                                v-model="form.btDate"
                                type="date"
                                :picker-options="pickerOptions"
                                @change="changeBtDate"
                                value-format="yyyy-MM-dd"
                                placeholder="请选择">
@@ -250,7 +251,7 @@
        },
        
        list: [],
        pickerOptions: {},
        agentList: [],
        receivable: '',
@@ -263,6 +264,14 @@
      open (title, info) {
        this.title = title
        this.info = info
        this.pickerOptions = {
          disabledDate(time) {
            // 如果没有后面的 -8.64e7 就是不可以选择今天的
            const beginDate = new Date(info.startDate).getTime() - 8.64e7
            const endDate = new Date(info.endDate).getTime()
            return beginDate > time.getTime() || endDate < time.getTime()
          }
        }
        this.form.id = info.id
        this.form.btSignDate = this.getDay()
        this.form.btUserId = this.userInfo.id
admin/src/views/roomStatus/index.vue
@@ -587,7 +587,7 @@
                                            <el-table-column
                                                label="设备编码">
                                                <template slot-scope="{row}">
                                                    <el-button type="text">{{row.code}}</el-button>
                                                    <el-button type="text" @click="handledeviveDetail(row.id)">{{row.code}}</el-button>
                                                </template>
                                            </el-table-column>
                                            <el-table-column
@@ -646,6 +646,8 @@
        <Edit v-if="showEdit1" ref="EditRef" @success="getDevicePage" @close="showEdit1 = false" />
        <!--    合同详情    -->
        <ContractDetail ref="ContractDetailRef" />
        <!--    设备详情    -->
        <deviceDetail ref="deviceDetail" />
    </div>
</template>
@@ -662,9 +664,10 @@
  import { fetchList as devicePage, getDeviceCateData, getDeviceStatus } from '@/api/Inspection/device'
  import Edit from '../operation/components/deviceEdit'
  import ContractDetail from '../contract/components/contractDetail'
  import deviceDetail from '../operation/components/deviceDetail'
  export default {
    name: 'index',
    components: { OperaYwWorkorderWindow, Detail, Edit, ContractDetail },
    components: { OperaYwWorkorderWindow, Detail, Edit, ContractDetail, deviceDetail },
    data() {
      return {
        showDetail: false,
@@ -719,6 +722,11 @@
      }
    },
    methods: {
      handledeviveDetail(id) {
        this.$refs.deviceDetail.visible = true
        this.$refs.deviceDetail.id = id
        this.$refs.deviceDetail.getDetail()
      },
      nodeClick(e) {
        this.tableData = []
        this.pageSize = 10