1
This commit is contained in:
parent
42ab3c72d6
commit
824d783fad
@ -63,6 +63,16 @@ export function updateInfo(data) {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 转维修
|
||||
export function toRepair(data) {
|
||||
return request({
|
||||
url: '/app/rescueInfo/toRepair',
|
||||
method: 'post',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除【请填写功能名称】
|
||||
export function delInfo(id) {
|
||||
return request({
|
||||
|
@ -190,6 +190,15 @@
|
||||
<!-- @click="handleUpdate(scope.row)"-->
|
||||
<!-- v-hasPermi="['system:info:edit']"-->
|
||||
<!-- >修改</el-button>-->
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-setting"
|
||||
v-if="scope.row.rescueStatus==5 && scope.row.isWeiXiu !== '1'"
|
||||
@click="goRepair(scope.row)"
|
||||
>转维修</el-button>
|
||||
|
||||
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@ -384,7 +393,20 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { routeInfo, listInfo, getInfo, delInfo, addInfo, updateInfo,getDriver,designateDriver,returnOrder,watchImg, downloadOrder} from "@/api/rescue/info";
|
||||
import {
|
||||
routeInfo,
|
||||
listInfo,
|
||||
getInfo,
|
||||
delInfo,
|
||||
addInfo,
|
||||
updateInfo,
|
||||
getDriver,
|
||||
designateDriver,
|
||||
returnOrder,
|
||||
watchImg,
|
||||
downloadOrder,
|
||||
toRepair
|
||||
} from "@/api/rescue/info";
|
||||
import { getmap } from "@/api/Map/map";
|
||||
import Map from "../../components/Map/index"
|
||||
export default {
|
||||
@ -484,6 +506,12 @@ export default {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
goRepair(item){
|
||||
toRepair(item).then(res=>{
|
||||
this.$message.success("操作成功")
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
watchImg(data){
|
||||
|
||||
watchImg(data.id).then(response =>{
|
||||
|
Loading…
Reference in New Issue
Block a user