Commit b950adec authored by zhengke's avatar zhengke

修改

parent ef03eee8
......@@ -325,4 +325,15 @@ export function saveOfferToOrder(data) {
data
})
}
/**
* 报价单申请改价
*/
export function SetApplyModifyPrice(data) {
return request({
url: "/CourseOffer/SetApplyModifyPrice",
method: 'post',
data
})
}
\ No newline at end of file
......@@ -155,6 +155,11 @@
<q-item-label>转订单</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup @click="applyUpdatePrice(props.row)">
<q-item-section>
<q-item-label>申请改价</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</div>
......@@ -174,12 +179,29 @@
<q-dialog v-model="showOrderForm" persistent>
<offertransorder-form :obj="offerObj" @save="refreshPage()"></offertransorder-form>
</q-dialog>
<!-- 查看报价单 -->
<viewquotation-form v-if="isShowviewQuo" :rId="rId" :isShowCancle="0" @close="closeQuota">
</viewquotation-form>
<q-dialog v-model="isShowUpPrice" persistent>
<q-card style="width: 500px;max-width:500px;" class="CLM-Form">
<q-card-section>
<div class="text-h6">申请改价</div>
</q-card-section>
<q-card-section class="q-pt-none scroll" style="max-height: 70vh">
<div class="row wrap">
<div class="col-12">
<q-input v-model="uppriceMsg.ApplyReason" filled type="textarea" placeholder="改价原因" />
</div>
</div>
</q-card-section>
<q-separator />
<q-card-actions align="right" class="bg-white">
<q-btn label="取消" flat color="grey-10" style="font-weight:400 !important" @click="isShowUpPrice=false" />
<q-btn label="保存" color="accent q-px-md" style="font-weight:400 !important" @click="saveUpprice()" />
</q-card-actions>
</q-card>
</q-dialog>
</div>
</template>
<script>
......@@ -189,6 +211,7 @@
import viewquotationForm from '../../components/sale/viewquotation-form'
import {
queryCourseOfferPage,
SetApplyModifyPrice
} from '../../api/course/index'
import {
mapState
......@@ -301,7 +324,12 @@
commonId: 0,
showEditPrice: false, //是否显示改价表单
isShowviewQuo: false,
rId: 0
rId: 0,
isShowUpPrice: false,
uppriceMsg:{
Id:0,
ApplyReason:''
}
}
},
......@@ -311,6 +339,36 @@
this.getcourseofferpage();
},
methods: {
//改价
applyUpdatePrice(item) {
this.uppriceMsg.Id = item.Id;
this.isShowUpPrice = true;
},
//提交改价原因
saveUpprice(){
if(this.uppriceMsg.ApplyReason==''){
this.$q.notify({
type: 'negative',
position: "top",
message: `请填写改价原因`
})
return;
}
SetApplyModifyPrice(this.uppriceMsg).then(res => {
this.isShowUpPrice=false;
this.uppriceMsg.ApplyReason='';
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: res.Message,
position: 'top'
})
this.getcourseofferpage();
}).catch(() => {
this.loading = false
})
},
closeQuota() {
this.isShowviewQuo = false;
},
......
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