master
lion 3 years ago
parent 69cb7acb7e
commit da9a050438

@ -6,26 +6,27 @@
<div slot="content"></div> <div slot="content"></div>
<slot> <slot>
<div> <div>
<Input class="vm10" style="width: 200px; margin-right: 10px" v-model="searchFields.keyword" placeholder="关键字搜索" /> <Input class="vm10" style="width: 200px; margin-right: 10px" v-model="searchFields.keyword"
<el-select class="vm10" filterable v-model="searchFields.area_id" placeholder="请选择所属片区"> placeholder="关键字搜索" />
<el-option v-for="item in selects.areaList" :key="item.id" :label="item.name" :value="item.id"> <el-select class="vm10" filterable v-model="searchFields.area_id" placeholder="请选择所属片区">
</el-option> <el-option v-for="item in selects.areaList" :key="item.id" :label="item.name" :value="item.id">
</el-select> </el-option>
<el-select class="vm10" filterable v-model="searchFields.name" placeholder="请选择转办来源"> </el-select>
<el-option v-for="item in selects.nameList" :key="item.id" :label="item.value" :value="item.value"> <el-select class="vm10" filterable v-model="searchFields.name" placeholder="请选择转办来源">
</el-option> <el-option v-for="item in selects.nameList" :key="item.id" :label="item.value" :value="item.value">
</el-select> </el-option>
<el-select class="vm10" filterable v-model="searchFields.has_user_id" placeholder="请选择派单状态"> </el-select>
<el-option v-for="item in selects.sendList" :key="item.id" :label="item.value" :value="item.id"> <el-select class="vm10" filterable v-model="searchFields.has_user_id" placeholder="请选择派单状态">
</el-option> <el-option v-for="item in selects.sendList" :key="item.id" :label="item.value" :value="item.id">
</el-select> </el-option>
<el-date-picker class="vm10" v-model="acceptTime" type="daterange" range-separator="" </el-select>
start-placeholder="开始创建日期" end-placeholder="结束创建日期" value-format="yyyy-MM-dd"> <el-date-picker class="vm10" v-model="acceptTime" type="daterange" range-separator=""
</el-date-picker> start-placeholder="开始创建日期" end-placeholder="结束创建日期" value-format="yyyy-MM-dd">
<el-date-picker class="vm10" v-model="endTime" type="daterange" range-separator="" </el-date-picker>
start-placeholder="开始完成日期" end-placeholder="结束完成日期" value-format="yyyy-MM-dd"> <el-date-picker class="vm10" v-model="endTime" type="daterange" range-separator=""
</el-date-picker> start-placeholder="开始完成日期" end-placeholder="结束完成日期" value-format="yyyy-MM-dd">
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button> </el-date-picker>
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button>
<!-- <Button type="primary" @click="edit()" style="margin-left: 10px">新增</Button> --> <!-- <Button type="primary" @click="edit()" style="margin-left: 10px">新增</Button> -->
</div> </div>
</slot> </slot>
@ -36,26 +37,27 @@
<el-table-column type="index" width="50" label="序号" fixed="left" align="center"> </el-table-column> <el-table-column type="index" width="50" label="序号" fixed="left" align="center"> </el-table-column>
<el-table-column :prop="column.field" :align="column.align" v-for="(column,index) in columns" <el-table-column :prop="column.field" :align="column.align" v-for="(column,index) in columns"
:label="column.title" :width="column.width" :fixed="column.fixed"> :label="column.title" :width="column.width" :fixed="column.fixed">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="column.type=='opt'"> <div v-if="column.type=='opt'">
<Button v-if="scope.row['accept_status']==4" ghost size="small" @click="edit(scope.row,'pd')" type="primary" <Button v-if="scope.row['accept_status']==4" ghost size="small" @click="edit(scope.row,'pd')"
style="margin-left: 10px;">审核</Button> type="primary" style="margin-left: 10px;">审核</Button>
<!-- <Button v-if="scope.row['accept_status']==0&&scope.row['user_id']!=0" ghost size="small" @click="edit(scope.row,'pd')" type="primary" <!-- <Button v-if="scope.row['accept_status']==0&&scope.row['user_id']!=0" ghost size="small" @click="edit(scope.row,'pd')" type="primary"
style="margin-left: 10px;">改派单</Button> --> style="margin-left: 10px;">改派单</Button> -->
<Button ghost size="small" @click="info(scope.row,'ck')" type="primary" <Button ghost size="small" @click="info(scope.row,'ck')" type="primary"
style="margin-left: 10px;">查看</Button> style="margin-left: 10px;">查看</Button>
<!-- <Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button> --> <!-- <Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button> -->
</div> </div>
<div v-else-if="column.type=='accept_status'"> <div v-else-if="column.type=='accept_status'">
<el-tag v-if="scope.row['accept_status']==0&&scope.row['user_id']==0||scope.row['user_id']==null" type="info"></el-tag> <el-tag v-if="scope.row['accept_status']==0&&scope.row['user_id']==0||scope.row['user_id']==null"
<el-tag v-if="scope.row['accept_status']==0&&scope.row['user_id']>0"></el-tag> type="info">待派单</el-tag>
<el-tag v-if="scope.row['accept_status']==1" type="warning"></el-tag> <el-tag v-if="scope.row['accept_status']==0&&scope.row['user_id']>0"></el-tag>
<el-tag v-if="scope.row['accept_status']==2" type="success"></el-tag> <el-tag v-if="scope.row['accept_status']==1" type="warning"></el-tag>
<el-tag v-if="scope.row['accept_status']==4" type="info"></el-tag> <el-tag v-if="scope.row['accept_status']==2" type="success"></el-tag>
<el-tag v-if="scope.row['accept_status']==5" type="warning"></el-tag> <el-tag v-if="scope.row['accept_status']==4" type="info"></el-tag>
</div> <el-tag v-if="scope.row['accept_status']==5" type="warning"></el-tag>
<div v-else>{{scope.row[column.field]}}</div> </div>
</template> <div v-else>{{scope.row[column.field]}}</div>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="pagination"> <div class="pagination">
@ -69,28 +71,24 @@
<div class="dialogConcent"> <div class="dialogConcent">
<el-scrollbar style="flex: 1"> <el-scrollbar style="flex: 1">
<el-form :model="form" :rules="rules" ref="form" label-position="right" :label-width="formLabelWidth"> <el-form :model="form" :rules="rules" ref="form" label-position="right" :label-width="formLabelWidth">
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="处理人" prop="user_id"> <el-form-item label="处理人" prop="user_id">
<el-select filterable style="width:100%" v-model="form.user_id" placeholder="请选择或输入查找处理人"> <el-select filterable style="width:100%" v-model="form.user_id" placeholder="请选择或输入查找处理人">
<el-option <el-option v-for="item in personList" :key="item.id" :label="item.name" :value="item.id">
v-for="item in personList" </el-option>
:key="item.id" </el-select>
:label="item.name" </el-form-item>
:value="item.id"> </el-col>
</el-option> <el-col :span="24">
</el-select> <el-form-item label="转办类型" prop="type">
</el-form-item> <el-radio-group v-model="form.type">
</el-col> <el-radio :label="1">转巡查</el-radio>
<el-col :span="24"> <el-radio :label="2">转养护</el-radio>
<el-form-item label="转办类型" prop="type"> </el-radio-group>
<el-radio-group v-model="form.type"> </el-form-item>
<el-radio :label="1">转巡查</el-radio> </el-col>
<el-radio :label="2">转养护</el-radio> </el-row>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
</el-form> </el-form>
</el-scrollbar> </el-scrollbar>
</div> </div>
@ -99,231 +97,233 @@
<el-button @click="resetForm('form')"> </el-button> <el-button @click="resetForm('form')"> </el-button>
<el-button type="primary" v-preventReClick @click="submitForm('form')"></el-button> <el-button type="primary" v-preventReClick @click="submitForm('form')"></el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 工单详情 --> <!-- 工单详情 -->
<el-dialog class="common-dialog" :visible.sync="dialogVisible"> <el-dialog class="common-dialog" :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt=""> <img width="100%" :src="dialogImageUrl" alt="">
</el-dialog> </el-dialog>
<!-- <maintainInfo @update="updeatshow" ref="maintain" :dialogFormDetailVisible='showinfo'></maintainInfo> --> <maintainInfo ref="maintain"></maintainInfo>
<!-- // --> <!-- // -->
<showRainEquipmentInfo ref="showRainEquipmentInfo"></showRainEquipmentInfo> <showRainEquipmentInfo ref="showRainEquipmentInfo"></showRainEquipmentInfo>
<showRainSiteInfo ref="showRainSiteInfo"></showRainSiteInfo> <showRainSiteInfo ref="showRainSiteInfo"></showRainSiteInfo>
<!-- 查看 审核 办结 --> <!-- 查看 审核 办结 -->
<showCirculationInfo ref="showCirculationInfo" @auditSuccess="load"></showCirculationInfo> <!-- <showCirculationInfo ref="showCirculationInfo" @auditSuccess="load"></showCirculationInfo>
<showDischargeInfo ref="showDischargeInfo" @auditSuccess="load"></showDischargeInfo> <showDischargeInfo ref="showDischargeInfo" @auditSuccess="load"></showDischargeInfo>
<showMireInfo ref="showMireInfo" @auditSuccess="load"></showMireInfo> <showMireInfo ref="showMireInfo" @auditSuccess="load"></showMireInfo> -->
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import {
import { listsend,
listsend, getsend,
getsend, storesend,
storesend, savesend,
savesend, delsend
delsend } from '../../../api/rain/order.js'
} from '../../../api/rain/order.js' import {
import { listarea
listarea } from '../../../api/basic/area.js'
} from '../../../api/basic/area.js' import {
import {listCommonuser} from"../../../api/common.js" listCommonuser
import {listaccount} from "../../../api/basic/account.js" } from "../../../api/common.js"
import {
listaccount
} from "../../../api/basic/account.js"
import LxHeader from "@/components/LxHeader/index.vue"; import LxHeader from "@/components/LxHeader/index.vue";
import maintainInfo from '@/views/rain/order/components/maintainInfo' import maintainInfo from '@/views/rain/order/components/maintainInfo'
import showRainEquipmentInfo from '@/views/rain/inspection/components/showRainEquipmentInfo' import showRainEquipmentInfo from '@/views/rain/inspection/components/showRainEquipmentInfo'
import showRainSiteInfo from '@/views/rain/inspection/components/showRainSiteInfo' import showRainSiteInfo from '@/views/rain/inspection/components/showRainSiteInfo'
import showCirculationInfo from '@/views/rain/maintain/components/showCirculationInfo' import showCirculationInfo from '@/views/rain/maintain/components/showCirculationInfo'
import showDischargeInfo from '@/views/rain/maintain/components/showDischargeInfo' import showDischargeInfo from '@/views/rain/maintain/components/showDischargeInfo'
import showMireInfo from '@/views/rain/maintain/components/showMireInfo' import showMireInfo from '@/views/rain/maintain/components/showMireInfo'
export default { export default {
components: { components: {
LxHeader, LxHeader,
maintainInfo, maintainInfo,
showRainEquipmentInfo, showRainEquipmentInfo,
showRainSiteInfo, showRainSiteInfo,
showCirculationInfo, showCirculationInfo,
showDischargeInfo, showDischargeInfo,
showMireInfo, showMireInfo,
}, },
data() { data() {
return { return {
showinfo:false, showinfo: false,
maintainid:0, maintainid: 0,
tableHeight: 0, tableHeight: 0,
dialogOrderFormVisible:false, dialogOrderFormVisible: false,
dialogxcFormDetailVisible:false, dialogxcFormDetailVisible: false,
dialogFormVisible: false, dialogFormVisible: false,
formLabelWidth: "120px", formLabelWidth: "120px",
dialogImageUrl: "", dialogImageUrl: "",
dialogVisible: false, dialogVisible: false,
tableData: [], tableData: [],
personList:[], personList: [],
rainEquipmentEndFiles:[], rainEquipmentEndFiles: [],
rainEquipmentFiles:[], rainEquipmentFiles: [],
worksheetFiles:[], worksheetFiles: [],
tableHeight: 0, tableHeight: 0,
searchFields: { searchFields: {
has_user_id:4 has_user_id: 4
}, },
paginations: { paginations: {
page: 1, page: 1,
page_size: 15, page_size: 15,
total: 0 total: 0
}, },
form: { form: {
user_id:"", user_id: "",
type:"1" type: "1"
}, },
rules: { rules: {
}, },
tableList:{ tableList: {
rain_inspection_info:{}, rain_inspection_info: {},
worksheet_info:{} worksheet_info: {}
}, },
rainEquipmentInfo:{}, rainEquipmentInfo: {},
acceptTime:"", acceptTime: "",
endTime:"", endTime: "",
selects:{ selects: {
nameList:[{ nameList: [{
id:"", id: "",
value:"所有" value: "所有"
},{ }, {
id:1, id: 1,
value:"工单派单" value: "工单派单"
},{ }, {
id:2, id: 2,
value:"巡查派单" value: "巡查派单"
},{ }, {
id:3, id: 3,
value:"养护派单" value: "养护派单"
}], }],
areaList:[{ areaList: [{
id:"", id: "",
name:"所有" name: "所有"
}], }],
sendList:[{ sendList: [{
id:"", id: "",
value:"所有" value: "所有"
},{ }, {
id:0, id: 0,
value:"待派单" value: "待派单"
},{ }, {
id:1, id: 1,
value:"已派单" value: "已派单"
},{ }, {
id:2, id: 2,
value:"已签收" value: "已签收"
},{ }, {
id:3, id: 3,
value:"已完成" value: "已完成"
},{ }, {
id:4, id: 4,
value:"待审核" value: "待审核"
},{ }, {
id:5, id: 5,
value:"审核不通过" value: "审核不通过"
}] }]
}, },
columns: [ columns: [{
{ field: "name",
field: "name", title: "转办来源",
title: "转办来源", type: "string",
type: "string", align: "left",
align: "left", width: 180
width:180
}, },
// { // {
// field: "fromName", // field: "fromName",
// title: "", // title: "",
// type: "string", // type: "string",
// align: "left", // align: "left",
// width:180 // width:180
// }, // },
// { // {
// field: "accept_date", // field: "accept_date",
// title: "", // title: "",
// type: "string", // type: "string",
// align: "center", // align: "center",
// width:180 // width:180
// }, // },
{ {
field: "areaName", field: "areaName",
title: "所属片区", title: "所属片区",
type: "string", type: "string",
align: "center", align: "center",
width:180 width: 180
}, },
{ {
field: "content", field: "content",
title: "工作内容", title: "工作内容",
type: "string", type: "string",
align: "left", align: "left",
width:240 width: 240
}, },
{ {
field: "address", field: "address",
title: "位置地址", title: "位置地址",
type: "string", type: "string",
align: "left", align: "left",
width:240 width: 240
}, },
// { // {
// field: "dealName", // field: "dealName",
// title: "", // title: "",
// type: "string", // type: "string",
// align: "center", // align: "center",
// width:180 // width:180
// }, // },
{ {
field: "end_time", field: "end_time",
title: "要求完成时间", title: "要求完成时间",
type: "string", type: "string",
align: "center", align: "center",
width:180 width: 180
}, },
{ {
field: "accept_status", field: "accept_status",
title: "状态", title: "状态",
type: "accept_status", type: "accept_status",
align: "center", align: "center",
width:180 width: 180
}, },
{ {
field: "adminName", field: "adminName",
title: "提交人", title: "提交人",
type: "string", type: "string",
align: "center", align: "center",
width:180 width: 180
}, },
{ {
field: "created_at", field: "created_at",
title: "提交日期", title: "提交日期",
type: "string", type: "string",
align: "center", align: "center",
width:180 width: 180
}, },
{ {
field: "操作", field: "操作",
title: "操作", title: "操作",
width: 220, width: 220,
type: "opt", type: "opt",
fixed:"right" fixed: "right"
} }
], ],
} }
@ -332,37 +332,37 @@
this.initLoad(); this.initLoad();
this.load(); this.load();
},
watch:{
acceptTime(newVal, oldVal) {
if (newVal) {
this.searchFields.start_accept_date = newVal[0]
this.searchFields.end_accept_date = newVal[1]
} else {
this.searchFields.start_accept_date = ""
this.searchFields.end_accept_date = ""
}
},
endTime(newVal, oldVal) {
if (newVal) {
this.searchFields.start_end_time = newVal[0]
this.searchFields.end_end_time = newVal[1]
} else {
this.searchFields.start_end_time = ""
this.searchFields.end_end_time = ""
}
},
}, },
methods: { watch: {
handlePictureCardPreview(file) { acceptTime(newVal, oldVal) {
this.dialogImageUrl = file.url; if (newVal) {
this.dialogVisible = true; this.searchFields.start_accept_date = newVal[0]
}, this.searchFields.end_accept_date = newVal[1]
updeatshow(e){ } else {
this.showinfo = e this.searchFields.start_accept_date = ""
}, this.searchFields.end_accept_date = ""
}
},
endTime(newVal, oldVal) {
if (newVal) {
this.searchFields.start_end_time = newVal[0]
this.searchFields.end_end_time = newVal[1]
} else {
this.searchFields.start_end_time = ""
this.searchFields.end_end_time = ""
}
},
},
methods: {
handlePictureCardPreview(file) {
this.dialogImageUrl = file.url;
this.dialogVisible = true;
},
updeatshow(e) {
this.showinfo = e
},
initLoad() { initLoad() {
var that = this; var that = this;
var clientHeight = document.documentElement.clientHeight var clientHeight = document.documentElement.clientHeight
@ -370,31 +370,31 @@ updeatshow(e){
var paginationHeight = 37; // var paginationHeight = 37; //
var topHeight = 50; // var topHeight = 50; //
let tableHeight = clientHeight - lxHeader_height - topHeight - paginationHeight - 20; let tableHeight = clientHeight - lxHeader_height - topHeight - paginationHeight - 20;
that.tableHeight = tableHeight; that.tableHeight = tableHeight;
listaccount({ listaccount({
page: 1, page: 1,
page_size: 999 page_size: 999
}).then(response => { }).then(response => {
var that = this var that = this
that.personList = response.data that.personList = response.data
}).catch(error => { }).catch(error => {
console.log(error) console.log(error)
reject(error) reject(error)
}); });
listarea({ listarea({
page: 1, page: 1,
page_size: 999, page_size: 999,
}).then(response => { }).then(response => {
for(var m of response.data){ for (var m of response.data) {
that.selects.areaList.push({ that.selects.areaList.push({
id:m.id, id: m.id,
name:m.name name: m.name
}) })
} }
}).catch(error => { }).catch(error => {
console.log(error) console.log(error)
reject(error) reject(error)
}); });
}, },
handleCurrentChange(page) { handleCurrentChange(page) {
@ -402,109 +402,113 @@ updeatshow(e){
this.load(); this.load();
}, },
load() { load() {
listsend({ listsend({
page: this.paginations.page, page: this.paginations.page,
page_size: this.paginations.page_size, page_size: this.paginations.page_size,
...this.searchFields ...this.searchFields
}).then(response => { }).then(response => {
var that = this var that = this
for(var m of response.data){ for (var m of response.data) {
for(var k in that.tableList){ for (var k in that.tableList) {
if(m[k]){ if (m[k]) {
m.areaName = m[k].area ? m[k].area.name : (m[k].area_info?m[k].area_info.name:"") m.areaName = m[k].area ? m[k].area.name : (m[k].area_info ? m[k].area_info.name : "")
m.adminName = m.admin?m.admin.name:"" m.adminName = m.admin ? m.admin.name : ""
m.address = m[k].address m.address = m[k].address
m.end_time =m[k].end_time m.end_time = m[k].end_time
m.content = m[k].content m.content = m[k].content
} }
} }
} }
this.tableData = response.data; this.tableData = response.data;
this.paginations.total = response.total; this.paginations.total = response.total;
}).catch(error => { }).catch(error => {
console.log(error) console.log(error)
reject(error) reject(error)
}); });
},
showsfalse(val){
console.log(val)
this.showinfo = false
}, },
info(obj,what) { showsfalse(val) {
var that = this; console.log(val)
if(obj.rain_inspection_id){ this.showinfo = false
// },
if(obj.rain_inspection_info.type==1){ info(obj, what) {
this.$refs.showRainEquipmentInfo.isShow = true var that = this;
this.$refs.showRainEquipmentInfo.getEquipmentInfo(obj.rain_inspection_id) if (obj.rain_inspection_id) {
this.$refs.showRainEquipmentInfo.infoId = obj.rain_inspection_id //
this.$refs.showRainEquipmentInfo.formType = 'showform' if (obj.rain_inspection_info.type == 1) {
} this.$refs.showRainEquipmentInfo.isShow = true
// this.$refs.showRainEquipmentInfo.getEquipmentInfo(obj.rain_inspection_id)
if(obj.rain_inspection_info.type==2){ this.$refs.showRainEquipmentInfo.infoId = obj.rain_inspection_id
this.$refs.showRainSiteInfo.isShow = true this.$refs.showRainEquipmentInfo.formType = 'showform'
this.$refs.showRainSiteInfo.getSiteInfo(obj.rain_inspection_id) }
this.$refs.showRainSiteInfo.infoId = obj.rain_inspection_id //
this.$refs.showRainSiteInfo.formType = 'showform' if (obj.rain_inspection_info.type == 2) {
} this.$refs.showRainSiteInfo.isShow = true
} this.$refs.showRainSiteInfo.getSiteInfo(obj.rain_inspection_id)
// if(obj.rain_maintain_id){ this.$refs.showRainSiteInfo.infoId = obj.rain_inspection_id
// this.showinfo = true this.$refs.showRainSiteInfo.formType = 'showform'
// this.$refs.maintain.info(obj.rain_maintain_id) }
// } }
// if(obj.rain_maintain_id){
if(obj.rain_maintain_id>0){ // this.showinfo = true
if (obj.old_type == 1 || obj.old_type == 2 || obj.old_type == 6 || obj.old_type == 7 || obj.old_type == 5) { // this.$refs.maintain.info(obj.rain_maintain_id)
this.$refs.showCirculationInfo.isShow = true // }
this.$refs.showCirculationInfo.infoId = obj.rain_maintain_id
this.$refs.showCirculationInfo.formType = 'showform' if (obj.rain_maintain_id > 0) {
this.$refs.showCirculationInfo.getInfo(obj.rain_maintain_id) this.$refs.maintain.dialogFormDetailVisible = true
} else if (obj.old_type == 3) { // this.showinfo = true
this.$refs.showDischargeInfo.isShow = true this.$refs.maintain.info(obj.rain_maintain_id)
this.$refs.showDischargeInfo.infoId = obj.rain_maintain_id return
this.$refs.showDischargeInfo.formType = 'showform' if (obj.old_type == 1 || obj.old_type == 2 || obj.old_type == 6 || obj.old_type == 7 || obj.old_type == 5) {
this.$refs.showDischargeInfo.getInfo(obj.rain_maintain_id) this.$refs.showCirculationInfo.isShow = true
} else if (obj.old_type == 4) { this.$refs.showCirculationInfo.infoId = obj.rain_maintain_id
this.$refs.showMireInfo.isShow = true this.$refs.showCirculationInfo.formType = 'showform'
this.$refs.showMireInfo.infoId = obj.rain_maintain_id this.$refs.showCirculationInfo.getInfo(obj.rain_maintain_id)
this.$refs.showMireInfo.formType = 'showform' } else if (obj.old_type == 3) {
this.$refs.showMireInfo.getInfo(obj.rain_maintain_id) this.$refs.showDischargeInfo.isShow = true
} this.$refs.showDischargeInfo.infoId = obj.rain_maintain_id
} this.$refs.showDischargeInfo.formType = 'showform'
this.$refs.showDischargeInfo.getInfo(obj.rain_maintain_id)
} else if (obj.old_type == 4) {
this.$refs.showMireInfo.isShow = true
this.$refs.showMireInfo.infoId = obj.rain_maintain_id
this.$refs.showMireInfo.formType = 'showform'
this.$refs.showMireInfo.getInfo(obj.rain_maintain_id)
}
}
}, },
edit(obj) { edit(obj) {
this.form = this.$options.data().form this.form = this.$options.data().form
var that = this; var that = this;
getsend(obj.id).then(res => { getsend(obj.id).then(res => {
let result = Object.assign(that.form, res); let result = Object.assign(that.form, res);
// this.$set(that.form,res); // this.$set(that.form,res);
that.form = result; that.form = result;
// that.dialogFormVisible = true // that.dialogFormVisible = true
that.form.user_id = result.user_id==0 ? "":result.user_id that.form.user_id = result.user_id == 0 ? "" : result.user_id
that.form.type = result.type==0 ? 1:result.type that.form.type = result.type == 0 ? 1 : result.type
that.form.accept_status = 0 that.form.accept_status = 0
this.$Modal.confirm({ this.$Modal.confirm({
title: '确认审核该条数据?', title: '确认审核该条数据?',
onOk: () => { onOk: () => {
savesend(that.form).then(response => { savesend(that.form).then(response => {
this.$Message.success('操作成功'); this.$Message.success('操作成功');
that.load(); that.load();
that.dialogFormVisible = false; that.dialogFormVisible = false;
}).catch(error => { }).catch(error => {
//reject(error) //reject(error)
}) })
}, },
onCancel: () => { onCancel: () => {
//this.$Message.info('Clicked cancel'); //this.$Message.info('Clicked cancel');
} }
}); });
}).catch(error => { }).catch(error => {
//reject(error) //reject(error)
}) })
// this.dialogFormVisible = true; // this.dialogFormVisible = true;
} }
} }
} }
@ -513,31 +517,38 @@ updeatshow(e){
<style> <style>
.dialogConcent { .dialogConcent {
overflow-y: auto; overflow-y: auto;
} }
.width100{
width:100%; .width100 {
} width: 100%;
.files_check .el-upload.el-upload--picture-card { }
display: none;
} .files_check .el-upload.el-upload--picture-card {
.vm10{ display: none;
margin-right:10px; }
margin-bottom:10px;
height: 32px; .vm10 {
vertical-align: bottom; margin-right: 10px;
} margin-bottom: 10px;
.vm10 input { height: 32px;
height: 32px; vertical-align: bottom;
vertical-align: middle; }
}
.vm10 input {
.vm10 .el-select__caret.el-input__icon.el-icon-arrow-up { height: 32px;
line-height: 30px; vertical-align: middle;
} }
.vm10 .el-input__icon.el-range__icon.el-icon-date,.vm10 .el-range-separator{
line-height: 25px; .vm10 .el-select__caret.el-input__icon.el-icon-arrow-up {
} line-height: 30px;
.selerchcontent button{ }
vertical-align: top;
.vm10 .el-input__icon.el-range__icon.el-icon-date,
.vm10 .el-range-separator {
line-height: 25px;
}
.selerchcontent button {
vertical-align: top;
} }
</style> </style>

Loading…
Cancel
Save