|
@@ -35,6 +35,7 @@
|
|
|
<a-form-model-item label="物流公司">
|
|
|
<logisticsCompany
|
|
|
id="billOfLadingEdit-logisticsCompany"
|
|
|
+ ref="logisticsCompany"
|
|
|
@change="ltcChange"
|
|
|
v-model="form.logisticsCompany"
|
|
|
/>
|
|
@@ -44,6 +45,7 @@
|
|
|
<a-form-model-item label="物流点">
|
|
|
<logisticsPoint
|
|
|
ref="logisticsPoint"
|
|
|
+ :defLoad="false"
|
|
|
id="billOfLadingEdit-logisticsPoint"
|
|
|
v-model.trim="form.logisticsPoint"
|
|
|
allowClear />
|
|
@@ -265,8 +267,10 @@ export default {
|
|
|
ltcChange (v, row) {
|
|
|
if (row) {
|
|
|
this.$refs.logisticsPoint.getList(row.logisticsPointList)
|
|
|
- this.form.logisticsPoint = undefined
|
|
|
+ } else {
|
|
|
+ this.$refs.logisticsPoint.clearData()
|
|
|
}
|
|
|
+ this.form.logisticsPoint = undefined
|
|
|
},
|
|
|
// 关联销售退货单
|
|
|
getReturnOrderList () {
|
|
@@ -293,6 +297,11 @@ export default {
|
|
|
if (this.form.senderSn) {
|
|
|
this.$refs.dealerSubareaScopeList.getDetail(this.form.senderSn)
|
|
|
}
|
|
|
+ // 物流点
|
|
|
+ if (this.form.logisticsPoint) {
|
|
|
+ const point = this.$refs.logisticsCompany.getPoint(this.form.logisticsCompany)
|
|
|
+ this.$refs.logisticsPoint.getList(point)
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$refs.ruleForm.resetFields()
|
|
|
}
|