Commit 23d3f9cb authored by youjie's avatar youjie

no message

parent ee5926d7
......@@ -492,7 +492,7 @@
<template slot="append" v-if="item.CreateRemark">
<div style="padding:10px;color:#f1416c">客户备注:{{item.CreateRemark}}</div>
<div style="padding:0 0 10px 10px;color:#f1416c">OP备注:{{item.Remark}}
<div><i class="el-icon-edit"></i></div>
<i class="el-icon-edit cursor-pointer c059FF6" @click="editRemark(item)"></i>
</div>
</template>
</el-table>
......@@ -885,6 +885,22 @@
}}</button>
</div>
</el-dialog>
<!-- op备注 -->
<el-dialog custom-class='addCompany' title="编辑OP备注" :visible.sync="isShowRemark" center width="400px">
<el-row class="flex" style="margin-top: 10px;">
<el-col>
<span style="display: block;margin-bottom: 10px;">备注:</span>
<span>
<el-input type="textarea" :rows="4" v-model="postMsg.Remark">
</el-input>
</span>
</el-col>
</el-row>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="isShowRemark = false">取消</button> &nbsp;
<button class="normalBtn" type="primary" @click="submitEditRemark(2)">{{$t('pub.sureBtn')}}</button>
</div>
</el-dialog>
<!-- 添加司机车辆弹窗 -->
<el-dialog title="车辆信息" :visible.sync="dialogVisible" width="400px" :before-close="handleClose">
<el-form label-width="80px" :model="drivermsg" :rules="rules" ref="drivermsg" style="width: 100%;">
......@@ -902,8 +918,8 @@
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="driverdetermine('drivermsg')">确 定</el-button>
<el-button @click="isShowPrice = false">取 消</el-button>
<el-button type="primary" @click="submitTripBusOffer('drivermsg')">确 定</el-button>
</span>
</el-dialog>
</div>
......@@ -913,6 +929,7 @@
props: ["OrderList","pagesTitle"],
data() {
return {
isShowRemark: false,
drivermsg: {
Id: '',
DriverInfo: "",
......@@ -1082,6 +1099,29 @@
}
},
methods: {
editRemark(item){
this.postMsg.Id = item.Id
this.postMsg.Remark = item.Remark
this.isShowRemark = true
},
submitEditRemark(){
if(!this.postMsg.Remark){
this.$message.error('OP备注不能为空');
return
}
this.apipost('tripbus_SetBusPriceOPRemark', {
Id: this.postMsg.Id,
Remark: this.postMsg.Remark
}, res => {
if (res.data.resultCode == 1) {
this.dialogVisible = false
this.$emit('success')
this.$forceUpdate();
} else {
this.Error(res.data.message);
}
})
},
handleClose(done) {
done();
this.$refs.drivermsg.clearValidate()
......
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