xiugai
This commit is contained in:
@@ -229,6 +229,8 @@ export default {
|
|||||||
// this.$set(this.billData.list,this.billData.index,this.billAddData)
|
// this.$set(this.billData.list,this.billData.index,this.billAddData)
|
||||||
this.$message.success(res.msg)
|
this.$message.success(res.msg)
|
||||||
this.dialogDelivery = false
|
this.dialogDelivery = false
|
||||||
|
this.$forceUpdate()
|
||||||
|
this.$emit("closeWindow")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -248,6 +250,7 @@ export default {
|
|||||||
// this.$set(this.billData.list,index,this.billAddData)
|
// this.$set(this.billData.list,index,this.billAddData)
|
||||||
this.$message.success(res.msg)
|
this.$message.success(res.msg)
|
||||||
this.dialogBillAdd = false
|
this.dialogBillAdd = false
|
||||||
|
this.$emit("closeWindow");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -367,8 +370,8 @@ export default {
|
|||||||
closeWindow() {
|
closeWindow() {
|
||||||
this.$emit("closeWindow");
|
this.$emit("closeWindow");
|
||||||
this.form = {};
|
this.form = {};
|
||||||
this.$refs.form.clearValidate();
|
|
||||||
this.controlWindows.bill = false;
|
this.controlWindows.bill = false;
|
||||||
|
this.$refs.form.clearValidate();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
<el-link type="primary" :underline="false" @click="detail(row)"
|
<el-link type="primary" :underline="false" @click="detail(row)"
|
||||||
>详情</el-link
|
>详情</el-link
|
||||||
>
|
>
|
||||||
<el-link v-show="row.orderStatus!=='SUBMITED'&&row.orderStatus!=='ORDER_LOCKED'" type="primary" :underline="false" @click="billOfLading(row)"
|
<el-link v-show="row.orderStatus!=='SUBMITED'&&row.orderStatus!=='ORDER_LOCKED'&&row.payStatus!=='REFUNDED'" type="primary" :underline="false" @click="billOfLading(row)"
|
||||||
>提货单</el-link
|
>提货单</el-link
|
||||||
>
|
>
|
||||||
<el-popconfirm
|
<el-popconfirm
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
icon-color="red"
|
icon-color="red"
|
||||||
@confirm="orderCencle(row)"
|
@confirm="orderCencle(row)"
|
||||||
>
|
>
|
||||||
<el-link v-show="row.orderStatus!=='CANCELED'" slot="reference" type="primary" :underline="false"
|
<el-link v-show="row.orderStatus!=='CANCELED'&&row.payStatus!=='REFUNDED'" slot="reference" type="primary" :underline="false"
|
||||||
>{{row.orderStatus=='SUBMITED'||row.orderStatus=='ORDER_LOCKED'?'订单取消':'订单退款'}}</el-link
|
>{{row.orderStatus=='SUBMITED'||row.orderStatus=='ORDER_LOCKED'?'订单取消':'订单退款'}}</el-link
|
||||||
>
|
>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
|
|||||||
@@ -98,7 +98,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import serve from "api/product.js";
|
import serve from "api/product.js";
|
||||||
import refineryInfoServe from "api/refineryInfo.js";
|
|
||||||
|
|
||||||
import autocomplete from "components/autocomplete/index.vue";
|
import autocomplete from "components/autocomplete/index.vue";
|
||||||
export default {
|
export default {
|
||||||
@@ -139,7 +138,7 @@ export default {
|
|||||||
refineryList: [],
|
refineryList: [],
|
||||||
productRowData:{},
|
productRowData:{},
|
||||||
configAutocomplete: {
|
configAutocomplete: {
|
||||||
serveTarget: refineryInfoServe.findByEntity,
|
serveTarget: serve.findByEntity,
|
||||||
autocompleteKey: "refineryName",
|
autocompleteKey: "refineryName",
|
||||||
labelKey: "refineryName",
|
labelKey: "refineryName",
|
||||||
valueKey: "id",
|
valueKey: "id",
|
||||||
@@ -216,7 +215,13 @@ export default {
|
|||||||
enableMark:'ENABLE'
|
enableMark:'ENABLE'
|
||||||
}
|
}
|
||||||
await serve.getRefineryProductList(data).then((res) => {
|
await serve.getRefineryProductList(data).then((res) => {
|
||||||
|
if(res.data.length>0){
|
||||||
this.productNameList = res.data;
|
this.productNameList = res.data;
|
||||||
|
}else{
|
||||||
|
this.productNameList = []
|
||||||
|
this.form.productId = ''
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
// this.form.productId = this.productNameList[0].productId
|
// this.form.productId = this.productNameList[0].productId
|
||||||
console.log(this.productRowData,this.productNameList,'aaaaaaaaaa')
|
console.log(this.productRowData,this.productNameList,'aaaaaaaaaa')
|
||||||
|
|||||||
@@ -269,9 +269,9 @@ export default {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
configAutocomplete: {
|
configAutocomplete: {
|
||||||
serveTarget: refineryInfoServe.findByEntity,
|
serveTarget: serve.findByEntity,
|
||||||
autocompleteKey: "refineryName",
|
autocomplateKey: "refineryName",
|
||||||
labelKey: "refineryName",
|
valueKey: "refineryName",
|
||||||
valueKey: "id",
|
valueKey: "id",
|
||||||
placeholder: "炼厂名称",
|
placeholder: "炼厂名称",
|
||||||
querykey: "refineryId",
|
querykey: "refineryId",
|
||||||
|
|||||||
Reference in New Issue
Block a user