|
@@ -341,18 +341,14 @@ export default {
|
|
|
editCust (data) {
|
|
|
console.log(data)
|
|
|
this.title = '编辑客户信息'
|
|
|
- this.isEdit = false
|
|
|
+ this.isEdit = true
|
|
|
this.priceTypeDisabled = true
|
|
|
-
|
|
|
if (data.shippingAddressProvinceSn) { this.getArea('city', data.shippingAddressProvinceSn) }
|
|
|
if (data.shippingAddressCitySn) { this.getArea('district', data.shippingAddressCitySn) }
|
|
|
this.form = Object.assign(this.form, data)
|
|
|
- // this.buyerSnBak = this.form.buyerSn
|
|
|
- // this.priceTypeBak = this.form.priceType
|
|
|
+ this.buyerSnBak = this.form.buyerSn
|
|
|
+ this.priceTypeBak = this.form.priceType
|
|
|
this.$nextTick(() => {
|
|
|
- this.custId = data.buyerSn
|
|
|
- this.form.buyerName = data.buyerName
|
|
|
- this.getDetail()
|
|
|
this.$refs.custList.setData({ key: data.buyerSn, label: data.buyerName, row: data })
|
|
|
})
|
|
|
},
|