|
@@ -153,6 +153,21 @@
|
|
|
</span>
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
+ <div style="margin: 20px 0px" v-if="order!=null">
|
|
|
+ <span class="font-small">
|
|
|
+ 凭证信息
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <el-image
|
|
|
+ v-if="certificates != ''"
|
|
|
+ :src="certificates"
|
|
|
+ :preview-src-list="[certificates]"
|
|
|
+ :style="{ width: '100px', height: '100px' }"
|
|
|
+ @click.native="showImageDialog"
|
|
|
+ ></el-image>
|
|
|
+ <el-dialog :visible.sync="dialogVisibleImage" width="10%">
|
|
|
+ <img :src="certificates" style="width: 100%" alt="">
|
|
|
+ </el-dialog>
|
|
|
<div style="margin-top: 20px">
|
|
|
<span class="font-small">商品信息</span>
|
|
|
</div>
|
|
@@ -315,10 +330,11 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="状态" prop="status" v-if="order.status >=1">
|
|
|
+ <el-form-item label="状态" prop="status" v-if="orderStatus >=1">
|
|
|
<el-select style="width:220px" v-model="editForm.status" placeholder="请选择状态" clearable size="small">
|
|
|
<el-option key="1" label="待发货" value="1" />
|
|
|
<el-option key="2" label="待收货" value="2" />
|
|
|
+ <el-option key="-2" label="已退款" value="-2" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="备注" prop="mark" >
|
|
@@ -427,6 +443,7 @@ export default {
|
|
|
name: "order",
|
|
|
data() {
|
|
|
return {
|
|
|
+ dialogVisibleImage: false,
|
|
|
createTypeOptions:[],
|
|
|
deliveryStatusOptions:[],
|
|
|
deliveryTypeOptions:[],
|
|
@@ -467,6 +484,8 @@ export default {
|
|
|
orderTypeOptions:[],
|
|
|
payTypeOptions:[],
|
|
|
statusOptions:[],
|
|
|
+ certificates:'',
|
|
|
+ orderStatus:null,
|
|
|
order:null,
|
|
|
user:{},
|
|
|
logs:[],
|
|
@@ -500,6 +519,9 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ showImageDialog() {
|
|
|
+ this.dialogVisible = true;
|
|
|
+ },
|
|
|
syncExpress(){
|
|
|
var that=this;
|
|
|
this.$confirm('确定同步物流状态吗', "警告", {
|
|
@@ -694,6 +716,12 @@ export default {
|
|
|
this.orderId=orderId;
|
|
|
getStoreOrder(orderId).then(response => {
|
|
|
this.order = response.order;
|
|
|
+ if(response.order.certificates != null){
|
|
|
+ this.certificates = response.order.certificates;
|
|
|
+ }
|
|
|
+ if(response.order.status != null){
|
|
|
+ this.orderStatus = response.order.status;
|
|
|
+ }
|
|
|
this.user = response.user;
|
|
|
this.logs = response.logs;
|
|
|
this.items = response.items;
|