Commit 01c53356 by 张杰

修复bug

1 parent 79146b4a
......@@ -67,7 +67,7 @@
<el-form-item label="车辆归属:" prop="orgName">
<el-popover v-model="filterVisible" placement="bottom-start" width="400" trigger="click" :disabled="editForm.orderStatus == 2">
<div>
<glsx-organization v-if="filterVisible" :isLast="true" @change="onOrganizationChange"></glsx-organization>
<glsx-organization :isLast="true" @change="onOrganizationChange"></glsx-organization>
</div>
<el-input v-model="editForm.orgName" :placeholder="editForm.specialShopName || '所属组织'" slot="reference" readonly clearable>
</el-input>
......@@ -320,43 +320,16 @@ export default {
};
},
watch: {
// id: {
// handler: function (n, o) {
// if (n) {
// this.getInfo();
// this.getLogList();
// this.scrollTo("orderInfo");
// }
// },
// immediate: true,
// },
// type: {
// handler: function (n, o) {
// let _id = "orderInfo";
// if (!n) {
// return false;
// }
// switch (n) {
// case 3:
// this.formRules = this.editFormRules;
// this.isDisabled = true;
// _id = "deviceInfo";
// break;
// case 2:
// this.formRules = this.editFormRules;
// this.isDisabled = false;
// _id = "orderInfo";
// break;
// default:
// this.formRules = {};
// this.isDisabled = false;
// _id = "orderInfo";
// break;
// }
// this.scrollTo(_id);
// },
// immediate: true,
// },
id: {
handler: function (n, o) {
if (!n) {
return false;
}
this.getInfo();
this.getLogList();
},
immediate: true,
},
},
created() {
let o = this.$store.state;
......@@ -366,31 +339,8 @@ export default {
if (!o.vehicleCustomTree || o.vehicleCustomTree.length <= 0) {
this.getCarBrand();
}
//this.initRules();
this.getInfo();
this.getLogList();
},
mounted() {
let _id = "orderInfo";
// switch (this.type) {
// case 3:
// this.formRules = this.editFormRules;
// this.isDisabled = true;
// _id = "deviceInfo";
// break;
// case 2:
// this.formRules = this.editFormRules;
// this.isDisabled = false;
// _id = "orderInfo";
// break;
// default:
// this.formRules = {};
// this.isDisabled = false;
// _id = "orderInfo";
// break;
// }
// this.scrollTo(_id);
},
mounted() {},
methods: {
// 监听省市区选择
onCityChange(e) {
......
......@@ -146,7 +146,7 @@
</div>
</div>
<div>
<edit-order ref="editOrderCom" v-if="showWorkDialog" :id="orderId" :type="orderType" @change="onEditChange"></edit-order>
<edit-order ref="editOrderCom" :id="orderId" :type="orderType" @change="onEditChange"></edit-order>
</div>
<div slot="footer">
<el-button type="primary" size="small" :loading="aloading" v-if="orderType == 3" @click="activeDevice()">激活</el-button>
......@@ -432,6 +432,7 @@ export default {
closeDetailDialog() {
this.showWorkDialog = false;
this.activeId = "orderInfo";
this.orderId = "";
this.$refs.editOrderCom.rest();
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!