|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="order-detail">
|
|
|
- <el-drawer :visible.sync="showDtail" size="900px" :before-close="closeFn" custom-class="order-draw-wrap" direction="ltr" @close="closeTrigger">
|
|
|
+ <el-drawer :visible.sync="showDtail" size="1100px" :before-close="closeFn" custom-class="order-draw-wrap" direction="ltr" @close="closeTrigger">
|
|
|
<div class="order-manage-wrap" v-if="!$util.isEmpty(detailInfo)">
|
|
|
<div class="card-wrap">
|
|
|
<div class="card-tit">
|
|
|
@@ -54,6 +54,12 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
+ <el-table-column label="备注">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span @click="modifyItemRemark(scope.row)" style="cursor: pointer;"><i class="el-icon-edit" style="color:#409eff;font-size:17px;cursor:pointer;" slot="reference"></i>{{ scope.row.remark }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
<el-table-column label="操作" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
@@ -102,14 +108,13 @@
|
|
|
<div style="margin-left:80px;margin-top:20px;">
|
|
|
<el-button @click="closeFn">取消</el-button>
|
|
|
|
|
|
- <el-popconfirm title="确认保存?" @confirm="savePrice()" @onConfirm="savePrice()" style="margin-left:220px;">
|
|
|
- <el-button slot="reference">保存</el-button>
|
|
|
+ <el-popconfirm title="确认保存?" @confirm="savePrice()" @onConfirm="savePrice()" style="margin-left:320px;">
|
|
|
+ <el-button slot="reference">保存修改</el-button>
|
|
|
</el-popconfirm>
|
|
|
|
|
|
- <el-popconfirm title="确认要提交?" @confirm="commitItem()" @onConfirm="commitItem()" style="margin-left:220px;">
|
|
|
+ <el-popconfirm title="确认要提交?" @confirm="commitItem()" @onConfirm="commitItem()" style="margin-left:320px;">
|
|
|
<el-button type="primary" slot="reference">确认提交</el-button>
|
|
|
</el-popconfirm>
|
|
|
-
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-else v-loading="loading" style="height:800px;"></div>
|
|
|
@@ -168,6 +173,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ modifyItemRemark(info){
|
|
|
+ this.$prompt('请输入备注','提示',{confirmButtonText:'确定',cancelButtonText:'取消',inputPattern:/\S/,inputErrorMessage:'请写备注',inputValue:info.remark}).then(({value}) => {
|
|
|
+ this.$service.orderItem.updateItemRemark({ remark: value,id:info.id}).then(data => {
|
|
|
+ info.remark = value
|
|
|
+ this.$message.success('修改成功')
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
closeTrigger(){
|
|
|
this.$emit('searchFocus')
|
|
|
},
|