| | |
| | | <el-date-picker |
| | | v-model="form.btDate" |
| | | type="date" |
| | | :picker-options="pickerOptions" |
| | | @change="changeBtDate" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="请选择"> |
| | |
| | | }, |
| | | |
| | | list: [], |
| | | |
| | | pickerOptions: {}, |
| | | agentList: [], |
| | | |
| | | receivable: '', |
| | |
| | | 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 |
| | |
| | | <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 |
| | |
| | | <Edit v-if="showEdit1" ref="EditRef" @success="getDevicePage" @close="showEdit1 = false" /> |
| | | <!-- 合同详情 --> |
| | | <ContractDetail ref="ContractDetailRef" /> |
| | | <!-- 设备详情 --> |
| | | <deviceDetail ref="deviceDetail" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | 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, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | handledeviveDetail(id) { |
| | | this.$refs.deviceDetail.visible = true |
| | | this.$refs.deviceDetail.id = id |
| | | this.$refs.deviceDetail.getDetail() |
| | | }, |
| | | nodeClick(e) { |
| | | this.tableData = [] |
| | | this.pageSize = 10 |