|
@@ -22,12 +22,12 @@
|
|
{{ getFromText(value.sourceFrom) }}
|
|
{{ getFromText(value.sourceFrom) }}
|
|
</template>
|
|
</template>
|
|
<template v-slot:shopName="{value}">
|
|
<template v-slot:shopName="{value}">
|
|
- <el-input :placeholder="!orderValue.id?'请选择标签':''" :value="value.shopName" :disabled="orderValue.id?true:false" size="small" class="myinpuy-with-select" clearable>
|
|
|
|
|
|
+ <el-input :placeholder="!orderValue.id?'请选择标签':''" :value="value.shopName" :disabled="orderValue.id?true:false" @clear="clearShop" size="small" class="myinpuy-with-select" clearable>
|
|
<el-button slot="append" v-if="!orderValue.id" icon="el-icon-more" @click="showShop"></el-button>
|
|
<el-button slot="append" v-if="!orderValue.id" icon="el-icon-more" @click="showShop"></el-button>
|
|
</el-input>
|
|
</el-input>
|
|
</template>
|
|
</template>
|
|
<template v-slot:labels="{value}">
|
|
<template v-slot:labels="{value}">
|
|
- <el-input :placeholder="!orderValue.id?'请选择标签':''" :value="value.labels" :disabled="orderValue.id?true:false" size="small" class="myinpuy-with-select" clearable>
|
|
|
|
|
|
+ <el-input :placeholder="!orderValue.id?'请选择标签':''" :value="value.labels" :disabled="orderValue.id?true:false" size="small" @clear="clearLabels" class="myinpuy-with-select" clearable>
|
|
<el-button slot="append" v-if="!orderValue.id" icon="el-icon-more" @click="showLabels"></el-button>
|
|
<el-button slot="append" v-if="!orderValue.id" icon="el-icon-more" @click="showLabels"></el-button>
|
|
</el-input>
|
|
</el-input>
|
|
</template>
|
|
</template>
|
|
@@ -896,6 +896,12 @@ export default class AddOrder extends Vue {
|
|
value.shopName = data.shopName;
|
|
value.shopName = data.shopName;
|
|
(this.$refs.baseform as any).setValue(value);
|
|
(this.$refs.baseform as any).setValue(value);
|
|
}
|
|
}
|
|
|
|
+ clearShop(){
|
|
|
|
+ let value:any = (this.$refs.baseform as any).getValue();
|
|
|
|
+ value.shopId = '';
|
|
|
|
+ value.shopName = '';
|
|
|
|
+ (this.$refs.baseform as any).setValue(value);
|
|
|
|
+ }
|
|
setDetail(data:any){
|
|
setDetail(data:any){
|
|
this.orderValue = data;
|
|
this.orderValue = data;
|
|
if(this.orderValue.isPay == 0 || this.orderValue.isPay == 1){
|
|
if(this.orderValue.isPay == 0 || this.orderValue.isPay == 1){
|
|
@@ -926,6 +932,11 @@ export default class AddOrder extends Vue {
|
|
(this.$refs.labelsModal as any).setShow(true);
|
|
(this.$refs.labelsModal as any).setShow(true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ clearLabels(){
|
|
|
|
+ let value:any = (this.$refs.baseform as any).getValue();
|
|
|
|
+ value.labels = '';
|
|
|
|
+ (this.$refs.baseform as any).setValue(value);
|
|
|
|
+ }
|
|
handleSuccess(){
|
|
handleSuccess(){
|
|
this.$emit('handleSuccess');
|
|
this.$emit('handleSuccess');
|
|
this.getData();
|
|
this.getData();
|