Commit 6daea328 authored by 王's avatar

去除不用console商品备注

parent a730a4af
...@@ -236,27 +236,6 @@ ...@@ -236,27 +236,6 @@
<refund-dialog :dialogObj="refundDialogObj" @reflash="onAfterRefund" @changeShow="changeShow"></refund-dialog> <refund-dialog :dialogObj="refundDialogObj" @reflash="onAfterRefund" @changeShow="changeShow"></refund-dialog>
<detail-dialog :dialogObj="dialogDetailObj" @changeShow="changeDetailShow"/> <detail-dialog :dialogObj="dialogDetailObj" @changeShow="changeDetailShow"/>
<page :nowPage="nowPage" :total="total" :limit="limit" @pageChange="onPageChange" @sizeChange="onSizeChange"/> <page :nowPage="nowPage" :total="total" :limit="limit" @pageChange="onPageChange" @sizeChange="onSizeChange"/>
<el-dialog
title="编辑备注"
center
append-to-body
:visible.sync="showCommentDialog"
:close-on-click-modal="false"
:close-on-press-escape="false"
:show-close="false"
width="600px">
<div>
<el-form ref="commentFrom" :model="commentForm" :rules="rules">
<el-form-item prop="value">
<el-input type="textarea" v-model="commentForm.value"></el-input>
</el-form-item>
</el-form>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="showCommentDialog = false;commentForm={}">取 消</el-button>
<el-button type="primary" @click="saveComment">确 定</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
...@@ -306,8 +285,6 @@ ...@@ -306,8 +285,6 @@
orderStatusOption: ORDERSTATUSOPTION, orderStatusOption: ORDERSTATUSOPTION,
buyTypeOption: BUYTYPEOPTION, buyTypeOption: BUYTYPEOPTION,
inviteSearchPlaceholder: '', inviteSearchPlaceholder: '',
showCommentDialog: false,
commentForm: {},
rules:{ rules:{
value:[ value:[
{ required: true, message: '请输入备注', trigger: 'change' } { required: true, message: '请输入备注', trigger: 'change' }
...@@ -349,25 +326,21 @@ ...@@ -349,25 +326,21 @@
detail: _detail detail: _detail
} }
}, },
saveComment(){
let id = this.commentForm.id;
let value = this.commentForm.value ? this.commentForm.value : '';
if(!value) return;
editOrderDescApi(id,'order',{desc: value}).then(res=>{
this.$message({
type: 'success',
message: '编辑备注成功'
});
this.showCommentDialog = false
this.getOrderList();
});
},
editComment(id, desc) { editComment(id, desc) {
this.showCommentDialog = true; this.$prompt('', '编辑备注', {
this.commentForm = { confirmButtonText: '确定',
id: id, cancelButtonText: '取消',
value: desc inputType:'textarea',
}; inputValue: desc || ''
}).then(({ value }) => {
editOrderDescApi(id,'order',{desc: value}).then(res=>{
this.$message({
type: 'success',
message: '编辑备注成功'
});
this.getOrderList();
});
})
}, },
onPageChange(val){ onPageChange(val){
this.nowPage = val this.nowPage = val
......
...@@ -257,7 +257,6 @@ ...@@ -257,7 +257,6 @@
}, },
goodsDesc(value){ goodsDesc(value){
let _desc = JSON.parse(value) let _desc = JSON.parse(value)
console.log('goodsDesc value', _desc.desc)
return _desc.desc return _desc.desc
} }
}, },
......
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