Commit 8f83366a authored by 我在何方's avatar 我在何方

编辑订单关联报价单不能修改

parent 51b586ce
...@@ -454,6 +454,7 @@ ...@@ -454,6 +454,7 @@
filterable filterable
clearable clearable
reserve-keyword reserve-keyword
:disabled = "offerIdNochange"
:placeholder="$t('请选择')" :placeholder="$t('请选择')"
> >
<el-option <el-option
...@@ -680,7 +681,8 @@ export default { ...@@ -680,7 +681,8 @@ export default {
calculating: false, // 是否正在计算费用,防止频繁重新请求 calculating: false, // 是否正在计算费用,防止频繁重新请求
initing: true, // 初始化中, initing: true, // 初始化中,
updateChannel: false, // 是否更新渠道 updateChannel: false, // 是否更新渠道
offerData: []// 关联报价单 offerData: [],// 关联报价单
offerIdNochange:false
}; };
}, },
computed:{ computed:{
...@@ -1442,12 +1444,13 @@ export default { ...@@ -1442,12 +1444,13 @@ export default {
}, },
getOfferNumber(id) { getOfferNumber(id) {
const that = this const that = this
that.offerIdNochange = false
getOfferCheck({ orderId: id }).then(response => { getOfferCheck({ orderId: id }).then(response => {
if(!response.data) return if(!response.data) return
if(that.offerData.length==0){ if(that.offerData.length==0){
that.offerData.push(response.data) that.offerData.push(response.data)
} }
console.log(that.offerData) that.offerIdNochange = true
that.$set(that.form, 'offerId', response.data.offerId) that.$set(that.form, 'offerId', response.data.offerId)
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment