|
@@ -197,16 +197,26 @@ export default {
|
|
|
initFun() {
|
|
|
if (this.$route.path === "/workOrder/workOrderPool") {
|
|
|
if (this.$route.query.id) {
|
|
|
- this.id = this.$route.query.id
|
|
|
+ this.createFormBool = false
|
|
|
+ this.detailFormBool = false
|
|
|
+ this.recordSelected = []
|
|
|
this.$nextTick(() => {
|
|
|
- this.detailFormBool = true
|
|
|
+ this.id = this.$route.query.id
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.detailFormBool = true
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
if (this.$route.query.saleOrderId) {
|
|
|
- this.defaultSearchData = [{ "param": "a.sale_order_id", "compare": "like", "value": this.$route.query.saleOrderId, label: "销售订单号" }]
|
|
|
- this.$nextTick(()=>{
|
|
|
- this.defaultSearchData = []
|
|
|
- this.$router.push({name: "workOrderPool",params: {},query: {}})
|
|
|
+ this.createFormBool = false
|
|
|
+ this.detailFormBool = false
|
|
|
+ this.recordSelected = []
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.defaultSearchData = [{ "param": "a.sale_order_id", "compare": "like", "value": this.$route.query.saleOrderId, label: "销售订单号" }]
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.defaultSearchData = []
|
|
|
+ this.$router.push({ name: "workOrderPool", params: {}, query: {} })
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
}
|