Commit 01c53356 by 张杰

修复bug

1 parent 79146b4a
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<el-form-item label="车辆归属:" prop="orgName"> <el-form-item label="车辆归属:" prop="orgName">
<el-popover v-model="filterVisible" placement="bottom-start" width="400" trigger="click" :disabled="editForm.orderStatus == 2"> <el-popover v-model="filterVisible" placement="bottom-start" width="400" trigger="click" :disabled="editForm.orderStatus == 2">
<div> <div>
<glsx-organization v-if="filterVisible" :isLast="true" @change="onOrganizationChange"></glsx-organization> <glsx-organization :isLast="true" @change="onOrganizationChange"></glsx-organization>
</div> </div>
<el-input v-model="editForm.orgName" :placeholder="editForm.specialShopName || '所属组织'" slot="reference" readonly clearable> <el-input v-model="editForm.orgName" :placeholder="editForm.specialShopName || '所属组织'" slot="reference" readonly clearable>
</el-input> </el-input>
...@@ -320,43 +320,16 @@ export default { ...@@ -320,43 +320,16 @@ export default {
}; };
}, },
watch: { watch: {
// id: { id: {
// handler: function (n, o) { handler: function (n, o) {
// if (n) { if (!n) {
// this.getInfo(); return false;
// this.getLogList(); }
// this.scrollTo("orderInfo"); this.getInfo();
// } this.getLogList();
// }, },
// immediate: true, 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,
// },
}, },
created() { created() {
let o = this.$store.state; let o = this.$store.state;
...@@ -366,31 +339,8 @@ export default { ...@@ -366,31 +339,8 @@ export default {
if (!o.vehicleCustomTree || o.vehicleCustomTree.length <= 0) { if (!o.vehicleCustomTree || o.vehicleCustomTree.length <= 0) {
this.getCarBrand(); 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: { methods: {
// 监听省市区选择 // 监听省市区选择
onCityChange(e) { onCityChange(e) {
......
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
</div> </div>
</div> </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>
<div slot="footer"> <div slot="footer">
<el-button type="primary" size="small" :loading="aloading" v-if="orderType == 3" @click="activeDevice()">激活</el-button> <el-button type="primary" size="small" :loading="aloading" v-if="orderType == 3" @click="activeDevice()">激活</el-button>
...@@ -432,6 +432,7 @@ export default { ...@@ -432,6 +432,7 @@ export default {
closeDetailDialog() { closeDetailDialog() {
this.showWorkDialog = false; this.showWorkDialog = false;
this.activeId = "orderInfo"; this.activeId = "orderInfo";
this.orderId = "";
this.$refs.editOrderCom.rest(); 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!