|
@@ -1,30 +1,28 @@
|
|
|
<template>
|
|
|
-
|
|
|
<!-- 修改运力信息 -->
|
|
|
<div class="editCapacity">
|
|
|
-
|
|
|
<div id="contractDetails">
|
|
|
- <page-title>编辑</page-title>
|
|
|
+ <page-title>编辑</page-title>
|
|
|
<div class="main">
|
|
|
- <div class="contractTitle">
|
|
|
- <div class="form_box_capacity" style="margin-right: 10rem">
|
|
|
- <dil-form :formId="380" v-model="form1"></dil-form>
|
|
|
- <el-form v-show="flag">
|
|
|
- <div class="preview-group">
|
|
|
- <el-form-item label="是否是VIP车辆:">
|
|
|
- <el-radio v-model="form1.capacityVip" label="是">是</el-radio>
|
|
|
- <el-radio v-model="form1.capacityVip" label="否">否</el-radio>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="是否无GPS派车:">
|
|
|
- <el-radio v-model="form1.capacityGps" label="是">是</el-radio>
|
|
|
- <el-radio v-model="form1.capacityGps" label="否">否</el-radio>
|
|
|
- </el-form-item>
|
|
|
- </div>
|
|
|
- </el-form>
|
|
|
- </div>
|
|
|
+ <div class="contractTitle">
|
|
|
+ <div class="form_box_capacity" style="margin-right: 10rem">
|
|
|
+ <dil-form :formId="380" v-model="form1"></dil-form>
|
|
|
+ <el-form v-show="flag">
|
|
|
+ <div class="preview-group">
|
|
|
+ <el-form-item label="是否是VIP车辆:">
|
|
|
+ <el-radio v-model="form1.capacityVip" label="是">是</el-radio>
|
|
|
+ <el-radio v-model="form1.capacityVip" label="否">否</el-radio>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="是否无GPS派车:">
|
|
|
+ <el-radio v-model="form1.capacityGps" label="是">是</el-radio>
|
|
|
+ <el-radio v-model="form1.capacityGps" label="否">否</el-radio>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<!-- <div class="elForm">
|
|
|
<el-form
|
|
|
:inline="true"
|
|
@@ -55,44 +53,44 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import PageTitle from "@/components/Page/Title";
|
|
|
-import { getCookie } from "@/utils/util.js";
|
|
|
+import PageTitle from '@/components/Page/Title'
|
|
|
+import { getCookie } from '@/utils/util.js'
|
|
|
export default {
|
|
|
components: { PageTitle },
|
|
|
data() {
|
|
|
return {
|
|
|
- state: "",
|
|
|
+ state: '',
|
|
|
userId: null,
|
|
|
restaurants: [],
|
|
|
accessToken: null,
|
|
|
userCode: null,
|
|
|
carrierUserId: null,
|
|
|
carrierId: null,
|
|
|
- capacityCarrierId:null,
|
|
|
+ capacityCarrierId: null,
|
|
|
carrierIds: null,
|
|
|
- direction: "rtl",
|
|
|
- inputText: "",
|
|
|
+ direction: 'rtl',
|
|
|
+ inputText: '',
|
|
|
form1: {},
|
|
|
carrierUserId: null,
|
|
|
- carrierName: "",
|
|
|
- map:[],
|
|
|
+ carrierName: '',
|
|
|
+ map: [],
|
|
|
options: {
|
|
|
- requestUrl: "/api/v1/rms/getCarrierList?apiId=417",
|
|
|
- selectionType: "radio",
|
|
|
- mapList: [],
|
|
|
+ requestUrl: '/api/v1/rms/getCarrierList?apiId=417',
|
|
|
+ selectionType: 'radio',
|
|
|
+ mapList: []
|
|
|
},
|
|
|
- flag:false
|
|
|
- };
|
|
|
+ flag: false
|
|
|
+ }
|
|
|
},
|
|
|
// created(){
|
|
|
// this.carrierUserId = getCookie("userId");
|
|
|
// // console.log(this.carrierUserId ,'carrierUserId')
|
|
|
// },
|
|
|
mounted() {
|
|
|
- this.information();
|
|
|
- this.orgcode = getCookie("orgCode");
|
|
|
- if(this.orgcode === "wuliuyunshubu" || this.orgcode === "dagangadmin"){
|
|
|
- this.flag=true;
|
|
|
+ this.information()
|
|
|
+ this.orgcode = getCookie('orgCode')
|
|
|
+ if (this.orgcode === 'wuliuyunshubu' || this.orgcode === 'dagangadmin') {
|
|
|
+ this.flag = true
|
|
|
}
|
|
|
},
|
|
|
// mounted() {
|
|
@@ -143,79 +141,78 @@ export default {
|
|
|
information() {
|
|
|
// //编辑
|
|
|
// console.log(this.$route.params)
|
|
|
- // console.log(this.$route.params)
|
|
|
this.axios
|
|
|
.post(
|
|
|
- "/api/v1/rms/getCapacityInfoById/" +
|
|
|
+ '/api/v1/rms/getCapacityInfoById/' +
|
|
|
this.$route.params.capacityCarrierId
|
|
|
)
|
|
|
- .then((res) => {
|
|
|
- console.log(res);
|
|
|
- res.data.data.forEach((e) => {
|
|
|
- console.log("from", this.form1);
|
|
|
- this.form1 = e;
|
|
|
- });
|
|
|
- });
|
|
|
+ .then(res => {
|
|
|
+ console.log(res)
|
|
|
+ res.data.data.forEach(e => {
|
|
|
+ console.log('from', this.form1)
|
|
|
+ this.form1 = e
|
|
|
+ })
|
|
|
+ })
|
|
|
}, // 返回
|
|
|
onClickCancel() {
|
|
|
- this.$router.go(-1);
|
|
|
+ this.$router.go(-1)
|
|
|
}, // 确认
|
|
|
onClickConfirm() {
|
|
|
- console.log(this.form1);
|
|
|
+ console.log(this.form1)
|
|
|
let map = {
|
|
|
remark: this.form1.remark,
|
|
|
- userDep:this.form1.userDep,
|
|
|
- capacityCarrierId:this.$route.params.capacityCarrierId,
|
|
|
- capacityTel:this.form1.capacityTel,
|
|
|
- capacityNumber:this.form1.capacityNumber,
|
|
|
- capacityVip:this.form1.capacityVip,
|
|
|
- capacityGps:this.form1.capacityGps
|
|
|
- };
|
|
|
- this.axios.post("/api/v1/rms/updateCapacity", map).then((res) => {
|
|
|
- if (res.data.code == "200") {
|
|
|
- this.$message.success("修改成功");
|
|
|
- this.$router.go(-1);
|
|
|
- }else{
|
|
|
- this.$message.success("修改失败");
|
|
|
- this.$router.go(-1);
|
|
|
+ userDep: this.form1.userDep,
|
|
|
+ capacityCarrierId: this.$route.params.capacityCarrierId,
|
|
|
+ capacityTel: this.form1.capacityTel,
|
|
|
+ capacityNumber: this.form1.capacityNumber,
|
|
|
+ capacityVip: this.form1.capacityVip,
|
|
|
+ capacityGps: this.form1.capacityGps
|
|
|
+ }
|
|
|
+ this.axios.post('/api/v1/rms/updateCapacity', map).then(res => {
|
|
|
+ if (res.data.code == '200') {
|
|
|
+ this.$message.success('修改成功')
|
|
|
+ this.$router.go(-1)
|
|
|
+ } else {
|
|
|
+ this.$message.success('修改失败')
|
|
|
+ this.$router.go(-1)
|
|
|
}
|
|
|
- });
|
|
|
- },
|
|
|
- },
|
|
|
-};
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|
|
|
-<style lang='scss' scoped>
|
|
|
+<style lang="scss" scoped>
|
|
|
.editCapacity {
|
|
|
.elForm {
|
|
|
margin-left: 40%;
|
|
|
}
|
|
|
-.form_box_capacity {
|
|
|
- margin-left: 20%;
|
|
|
- width: 340px;
|
|
|
- .el-form {
|
|
|
- .preview-group {
|
|
|
- .el-form-item {
|
|
|
- .el-form-item__label {
|
|
|
- display: inline-block;
|
|
|
- width: 70px !important;
|
|
|
+ .form_box_capacity {
|
|
|
+ margin-left: 35%;
|
|
|
+ width: 340px;
|
|
|
+ .el-form {
|
|
|
+ .preview-group {
|
|
|
+ .el-form-item {
|
|
|
+ .el-form-item__label {
|
|
|
+ display: inline-block;
|
|
|
+ width: 70px !important;
|
|
|
+ }
|
|
|
+ .el-form-item__content {
|
|
|
+ .el-select {
|
|
|
+ width: 250px;
|
|
|
}
|
|
|
- .el-form-item__content {
|
|
|
- .el-select {
|
|
|
- width: 250px;
|
|
|
- }
|
|
|
- .el-input {
|
|
|
- width: 250px;
|
|
|
- }
|
|
|
- .el-textarea {
|
|
|
- .el-textarea__inner {
|
|
|
- width: 225px;
|
|
|
- margin-top: 0.03rem;
|
|
|
- }
|
|
|
+ .el-input {
|
|
|
+ width: 250px;
|
|
|
+ }
|
|
|
+ .el-textarea {
|
|
|
+ .el-textarea__inner {
|
|
|
+ width: 225px;
|
|
|
+ margin-top: 0.03rem;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
.button_box {
|
|
|
display: flex;
|