|
@@ -83,10 +83,11 @@
|
|
|
</el-collapse-item>
|
|
|
</el-collapse>
|
|
|
<productDialog ref="product" @confirm="confirmProduct" />
|
|
|
+ <productDialog ref="productGift" @confirm="confirmProductGift" />
|
|
|
</template>
|
|
|
<template #footer>
|
|
|
<div class="btn">
|
|
|
- <el-button type="primary" size="small">确定并继续</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="btn('continue')">确定并继续</el-button>
|
|
|
<el-button type="primary" size="small" @click="btn">确定</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -96,30 +97,28 @@
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
import { Component, Prop, Vue, Watch } from "vue-property-decorator";
|
|
|
-import { addOrder } from '@/api/omsOrder'
|
|
|
+import { addOrder,getSingleData } from '@/api/omsOrder'
|
|
|
import { add,multiply,subtract,divide } from '@/benyun/utils/accuracy'
|
|
|
|
|
|
@Component
|
|
|
export default class AddOrder extends Vue {
|
|
|
value=false;
|
|
|
- isValidate = true; //验证结果
|
|
|
num:any=0;
|
|
|
freeAmount="";
|
|
|
productTotal:any=0;
|
|
|
userName:any='';//用户信息
|
|
|
orderValue:any={}; //新增订单值
|
|
|
radioPay=0;
|
|
|
- isHandleGift = false; //是否在操作赠品
|
|
|
activeNames:Array<any> =['1','2','3','4','5'];
|
|
|
config:any={
|
|
|
attr:{
|
|
|
size:'mini',
|
|
|
rules:{
|
|
|
shopName:[{
|
|
|
- required: true, message: '店铺名称', trigger: 'blur'
|
|
|
+ required: true, message: '店铺名称不能为空!', trigger: 'blur'
|
|
|
}],
|
|
|
orderDate:[{
|
|
|
- required: true, message: '请选择订单日期', trigger: 'blur'
|
|
|
+ required: true, message: '订单日期不能为空!', trigger: 'blur'
|
|
|
}]
|
|
|
}
|
|
|
},
|
|
@@ -154,7 +153,8 @@ export default class AddOrder extends Vue {
|
|
|
compConfig:{
|
|
|
attr:{
|
|
|
// placeholder:'请输入订单日期',
|
|
|
- clearable:true
|
|
|
+ clearable:true,
|
|
|
+ defaultNow:true
|
|
|
}
|
|
|
}
|
|
|
}],
|
|
@@ -166,6 +166,7 @@ export default class AddOrder extends Vue {
|
|
|
compConfig:{
|
|
|
attr:{
|
|
|
placeholder:'请输入运费',
|
|
|
+ type:'number',
|
|
|
clearable:true
|
|
|
}
|
|
|
}
|
|
@@ -192,12 +193,12 @@ export default class AddOrder extends Vue {
|
|
|
}
|
|
|
}],
|
|
|
[{
|
|
|
- label:'多标签',
|
|
|
- prop:'labels',
|
|
|
+ label:'线下备注',
|
|
|
+ prop:'note',
|
|
|
component:'by-input',
|
|
|
compConfig:{
|
|
|
attr:{
|
|
|
- placeholder:'以逗号分隔,单个标签不能超过十个字符',
|
|
|
+ placeholder:'请输入线下备注',
|
|
|
clearable:true
|
|
|
}
|
|
|
}
|
|
@@ -230,14 +231,17 @@ export default class AddOrder extends Vue {
|
|
|
attr:{
|
|
|
size:'mini',
|
|
|
rules:{
|
|
|
- shopName:[{
|
|
|
- required: true, message: '请输入名称', trigger: 'blur'
|
|
|
+ buyerId:[{
|
|
|
+ required: true, message: '买家账号不能为空!', trigger: 'blur'
|
|
|
}],
|
|
|
- sourceId:[{
|
|
|
- required: true, message: '请输入名称', trigger: 'blur'
|
|
|
+ receiverDistrictCode:[{
|
|
|
+ required: true, message: '收货地址不能为空!', trigger: 'blur'
|
|
|
}],
|
|
|
- orderDate:[{
|
|
|
- required: true, message: '请输入名称', trigger: 'blur'
|
|
|
+ receiverAddress:[{
|
|
|
+ required: true, message: '详细地址不能为空!', trigger: 'blur'
|
|
|
+ }],
|
|
|
+ receiverMobile:[{
|
|
|
+ required: true, message: '手机号不能为空!', trigger: 'blur'
|
|
|
}]
|
|
|
}
|
|
|
},
|
|
@@ -246,7 +250,7 @@ export default class AddOrder extends Vue {
|
|
|
span:6,
|
|
|
label:'买家账号',
|
|
|
prop:'buyerId',
|
|
|
- component:'by-buyer',
|
|
|
+ component:'by-input',
|
|
|
compConfig:{}
|
|
|
},{
|
|
|
span:6,
|
|
@@ -254,7 +258,7 @@ export default class AddOrder extends Vue {
|
|
|
prop:'receiverName',
|
|
|
component:'by-input',
|
|
|
rules:[{
|
|
|
- required: true, message: '请输入名称', trigger: 'blur'
|
|
|
+ required: true, message: '收货人不能为空', trigger: 'blur'
|
|
|
}],
|
|
|
compConfig:{
|
|
|
attr:{
|
|
@@ -267,7 +271,7 @@ export default class AddOrder extends Vue {
|
|
|
span:24,
|
|
|
label:'收货地址',
|
|
|
// slot:true,
|
|
|
- prop:'address',
|
|
|
+ prop:'receiverDistrictCode',
|
|
|
component:'by-area',
|
|
|
compConfig:{
|
|
|
attr:{
|
|
@@ -386,7 +390,7 @@ export default class AddOrder extends Vue {
|
|
|
audit:'',
|
|
|
event:{
|
|
|
click:(item:any) => {
|
|
|
- console.log('该行数据:',item)
|
|
|
+ this.deletaProduct(item);
|
|
|
}
|
|
|
}
|
|
|
}]
|
|
@@ -404,18 +408,10 @@ export default class AddOrder extends Vue {
|
|
|
{
|
|
|
name: '添加赠品', icon: 'el-icon-plus', event:{
|
|
|
click:()=>{
|
|
|
- this.isHandleGift = true;
|
|
|
- (this.$refs.product as any).setShow(true);
|
|
|
+ (this.$refs.productGift as any).setShow(true);
|
|
|
}
|
|
|
}
|
|
|
- },
|
|
|
- // {
|
|
|
- // name: '导入商品', icon: 'el-icon-bottom', event:{
|
|
|
- // click:()=>{
|
|
|
- // console.log('新增123')
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
+ }
|
|
|
]
|
|
|
}
|
|
|
invoicesConfig:any={
|
|
@@ -665,6 +661,16 @@ export default class AddOrder extends Vue {
|
|
|
setShow(v:boolean){
|
|
|
this.value = v;
|
|
|
}
|
|
|
+ setDetail(data:any){
|
|
|
+ this.orderValue = data;
|
|
|
+ let infoConfig = (this as any).$lodash.cloneDeep(this.config);
|
|
|
+ for(const col of infoConfig.columns){
|
|
|
+ for(const item of col){
|
|
|
+ if(!item.compConfig.attr) item.compConfig.attr = {};
|
|
|
+ item.compConfig.attr.readonly = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
//订单支付情况单选值
|
|
|
inputPay(v:number){
|
|
|
this.orderValue.isPay = null;
|
|
@@ -674,12 +680,63 @@ export default class AddOrder extends Vue {
|
|
|
}
|
|
|
mounted(){
|
|
|
this.userName = this.$store.getters.name;
|
|
|
-
|
|
|
}
|
|
|
show(){
|
|
|
- (this.$refs.baseform as any).setValue({
|
|
|
- createBy:this.userName
|
|
|
- });
|
|
|
+ if(this.orderValue.id){
|
|
|
+ let data = this.orderValue;
|
|
|
+ //基本信息
|
|
|
+ let info:any={};
|
|
|
+ info.shopName = data.shopName;
|
|
|
+ info.sourceId = data.sourceId;
|
|
|
+ info.orderDate = data.orderDate;
|
|
|
+ info.freight = data.freight;
|
|
|
+ info.logisticsCompany = data.logisticsCompany;
|
|
|
+ info.createBy = data.createBy;
|
|
|
+ info.note = data.note;
|
|
|
+ info.buyerMessage = data.buyerMessage;
|
|
|
+ info.remark = data.remark;
|
|
|
+ (this.$refs.baseform as any).setValue(info);
|
|
|
+ //买家
|
|
|
+ let buyerInfo:any={};
|
|
|
+ buyerInfo.buyerId = data.buyerId;
|
|
|
+ buyerInfo.receiverName = data.receiverName;
|
|
|
+ buyerInfo.province=data.receiverProvince;//省
|
|
|
+ buyerInfo.provinceCode=data.receiverProvinceCode; //省编码
|
|
|
+ buyerInfo.city=data.receiverCity; //市
|
|
|
+ buyerInfo.cityCode=data.receiverCityCode; //市编码
|
|
|
+ buyerInfo.county=data.receiverDistrict; //县/区
|
|
|
+ buyerInfo.countyCode=data.receiverDistrictCode; //县/区编码
|
|
|
+ buyerInfo.townCode=data.receiverTownCode;
|
|
|
+ buyerInfo.town=data.receiverTown;
|
|
|
+ buyerInfo.receiverAddress = data.receiverAddress;
|
|
|
+ buyerInfo.receiverPhone = data.receiverPhone;
|
|
|
+ buyerInfo.receiverMobile = data.receiverMobile;
|
|
|
+ buyerInfo.receiverZip = data.receiverZip;
|
|
|
+ (this.$refs.infoform as any).setValue(buyerInfo);
|
|
|
+ //商品
|
|
|
+ const productData:Array<any> = data.items ? data.items : [];
|
|
|
+ (this.$refs.table as any).setValue(productData);
|
|
|
+ //付款
|
|
|
+ this.orderValue.isPay = data.isPay;
|
|
|
+ if(this.orderValue.isPay != 0 || this.orderValue.isPay != 1){
|
|
|
+ this.radioPay == 2
|
|
|
+ }
|
|
|
+ setTimeout(()=>{
|
|
|
+ if(this.$refs.payform && data.pays && data.pays[0]){
|
|
|
+ (this.$refs.payform as any).setValue(data.pays[0])
|
|
|
+ }
|
|
|
+ },500);
|
|
|
+
|
|
|
+ //发票
|
|
|
+ if(data.invoices && data.invoices[0]){
|
|
|
+ (this.$refs.invoicesform as any).setValue(data.invoices[0]);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ let value:any = (this.$refs.baseform as any).getValue();
|
|
|
+ value.createBy = this.userName;
|
|
|
+ (this.$refs.baseform as any).setValue(value);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
//抵扣金额数值变化
|
|
@@ -719,7 +776,7 @@ export default class AddOrder extends Vue {
|
|
|
const freight = Number(this.orderValue.freight)?Number(this.orderValue.freight):0;
|
|
|
const freeAmount = Number(this.orderValue.freeAmount)?Number(this.orderValue.freeAmount):0;
|
|
|
let t = subtract(this.productTotal, freeAmount);
|
|
|
- this.orderValue.payAmount = subtract(t, freight);
|
|
|
+ this.orderValue.payAmount = add(t, freight);
|
|
|
this.orderValue.payAmount = this.orderValue.payAmount.toFixed(2);
|
|
|
}
|
|
|
//商品总数量
|
|
@@ -745,22 +802,29 @@ export default class AddOrder extends Vue {
|
|
|
}
|
|
|
//确定新增的商品
|
|
|
confirmProduct(data:Array<any>){
|
|
|
+ this.productHandle(data,false);
|
|
|
+ }
|
|
|
+ //新增赠品
|
|
|
+ confirmProductGift(data:Array<any>){
|
|
|
+ this.productHandle(data,true);
|
|
|
+ }
|
|
|
+ //商品处理
|
|
|
+ productHandle(data:Array<any>,isGift:boolean){
|
|
|
let nowData = (this.$refs.table as any).getValue();
|
|
|
let ids='';
|
|
|
if(data.length > 0){
|
|
|
for(const item of data){
|
|
|
let t = true;
|
|
|
- if(!this.isHandleGift){
|
|
|
- for(const t_item of nowData){
|
|
|
- if(item.id == t_item.skuId){
|
|
|
- if(!ids){
|
|
|
- ids = item.id
|
|
|
- }else{
|
|
|
- ids = ids + ',' + item.id
|
|
|
- }
|
|
|
- t = false;
|
|
|
- break;
|
|
|
+ let v = isGift ? 1 : 0;
|
|
|
+ for(const t_item of nowData){
|
|
|
+ if(item.id == t_item.skuId && t_item.isGift == v){
|
|
|
+ if(!ids){
|
|
|
+ ids = item.id
|
|
|
+ }else{
|
|
|
+ ids = ids + ',' + item.id
|
|
|
}
|
|
|
+ t = false;
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
if(t){
|
|
@@ -769,7 +833,7 @@ export default class AddOrder extends Vue {
|
|
|
obj.skuId = item.id; //商品编码
|
|
|
obj.styleId = item.newNumber; //款式编码
|
|
|
obj.qty = 1;
|
|
|
- if(this.isHandleGift){
|
|
|
+ if(isGift){
|
|
|
obj.price = 0; //单价
|
|
|
obj.isGift = 1;
|
|
|
}else{
|
|
@@ -784,18 +848,44 @@ export default class AddOrder extends Vue {
|
|
|
}
|
|
|
}
|
|
|
(this.$refs.table as any).setValue(nowData);
|
|
|
- this.totalAmount();
|
|
|
- this.amountChange();
|
|
|
- this.payAmountChange();
|
|
|
+ if(!isGift){
|
|
|
+ this.totalAmount();
|
|
|
+ this.amountChange();
|
|
|
+ this.payAmountChange();
|
|
|
+ }
|
|
|
this.totalNum();
|
|
|
if(ids){
|
|
|
- this.$alert('编码“'+ids+'”已添加!', '提示', {
|
|
|
+ let name = isGift ? '赠品' : '商品';
|
|
|
+ this.$alert(name+'“'+ids+'”已存在!', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
callback: action => {}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
- this.isHandleGift = false;
|
|
|
+ }
|
|
|
+ //删除商品
|
|
|
+ deletaProduct(row:any){
|
|
|
+ let n = row.isGift == 1 ? '赠品' : '商品';
|
|
|
+ this.$confirm('此操作将删除'+n+'“'+row.name+'”, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ let data = (this.$refs.table as any).getValue();
|
|
|
+ let index = -1;
|
|
|
+ for(const item of data){
|
|
|
+ index ++;
|
|
|
+ if(row.skuId == item.skuId && row.name == item.name && row.isGift == item.isGift){
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ data.splice(index,1);
|
|
|
+ (this.$refs.table as any).setValue(data);
|
|
|
+ this.totalAmount();
|
|
|
+ this.amountChange();
|
|
|
+ this.payAmountChange();
|
|
|
+ this.totalNum();
|
|
|
+ }).catch(() => { });
|
|
|
}
|
|
|
//数量的变化
|
|
|
qtyChange(v:any,row:any){
|
|
@@ -823,60 +913,92 @@ export default class AddOrder extends Vue {
|
|
|
//清楚整个订单数据
|
|
|
clearValue(){
|
|
|
this.orderValue = {};
|
|
|
- (this.$refs.baseform as any).setValue({});
|
|
|
- (this.$refs.infoform as any).setValue({});
|
|
|
+ (this.$refs.baseform as any).clearValue();
|
|
|
+ (this.$refs.baseform as any).clearValidate();
|
|
|
+ (this.$refs.infoform as any).clearValue();
|
|
|
+ (this.$refs.infoform as any).clearValidate();
|
|
|
(this.$refs.table as any).setValue([]);
|
|
|
if(this.$refs.payform){
|
|
|
- (this.$refs.payform as any).setValue({});
|
|
|
+ (this.$refs.payform as any).clearValue();
|
|
|
+ (this.$refs.infoform as any).clearValidate();
|
|
|
}
|
|
|
- (this.$refs.invoicesform as any).setValue({});
|
|
|
+ (this.$refs.invoicesform as any).clearValue();
|
|
|
+
|
|
|
this.num = 0;
|
|
|
this.productTotal = 0;
|
|
|
this.radioPay = 0;
|
|
|
+ this.freeAmount = '';
|
|
|
}
|
|
|
getOrderValue(){
|
|
|
// this.orderValue = {};
|
|
|
- let r = true;
|
|
|
- (this.$refs.baseform as any).validate({noMsg:true}).then(()=>{
|
|
|
- let baseInfo = (this.$refs.baseform as any).getValue();
|
|
|
- for(const key in baseInfo){
|
|
|
- this.orderValue[key] = baseInfo[key]
|
|
|
- }
|
|
|
- }).catch(()=>{
|
|
|
- if(r){
|
|
|
- (this as any).$message({
|
|
|
- message: '验证未通过,请检查!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- }
|
|
|
- r = false
|
|
|
- });
|
|
|
- (this.$refs.infoform as any).validate({noMsg:true}).then(()=>{
|
|
|
- let infoValue = (this.$refs.infoform as any).getValue();
|
|
|
- for(const key in infoValue){
|
|
|
- this.orderValue[key] = infoValue[key]
|
|
|
- }
|
|
|
- }).catch(()=>{
|
|
|
- if(r){
|
|
|
- (this as any).$message({
|
|
|
- message: '验证未通过,请检查!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- }
|
|
|
- r = false
|
|
|
- });
|
|
|
- if(this.$refs.table){
|
|
|
- let productOrder:Array<any> = (this.$refs.table as any).getValue();
|
|
|
- this.orderValue.items = productOrder;
|
|
|
- }
|
|
|
- if(this.radioPay != 2){
|
|
|
- this.orderValue.isPay = this.radioPay;
|
|
|
- }
|
|
|
- if(this.radioPay == 2){
|
|
|
- (this.$refs.payform as any).validate({noMsg:true}).then(()=>{
|
|
|
- this.orderValue.pays = [];
|
|
|
- let payFormValue = (this.$refs.payform as any).getValue();
|
|
|
- this.orderValue.pays.push(payFormValue);
|
|
|
+ return new Promise((resolve:Function, reject:Function) => {
|
|
|
+ let r = true;
|
|
|
+ let a = (this.$refs.baseform as any).getValue();
|
|
|
+ //基本信息
|
|
|
+ (this.$refs.baseform as any).validate({noMsg:true}).then(()=>{
|
|
|
+ let baseInfo = (this.$refs.baseform as any).getValue();
|
|
|
+ for(const key in baseInfo){
|
|
|
+ this.orderValue[key] = baseInfo[key]
|
|
|
+ }
|
|
|
+
|
|
|
+ //卖家信息
|
|
|
+ (this.$refs.infoform as any).validate({noMsg:true}).then(()=>{
|
|
|
+ let infoValue = (this.$refs.infoform as any).getValue();
|
|
|
+ for(const key in infoValue){
|
|
|
+ this.orderValue[key] = infoValue[key]
|
|
|
+ }
|
|
|
+ //商品
|
|
|
+ let productOrder:Array<any> = [];
|
|
|
+ if(this.$refs.table){
|
|
|
+ productOrder = (this.$refs.table as any).getValue();
|
|
|
+
|
|
|
+ }
|
|
|
+ if(productOrder.length > 0){
|
|
|
+ this.orderValue.items = productOrder;
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ message: '商品订单不能为空!',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ reject();
|
|
|
+ }
|
|
|
+ if(this.radioPay != 2){
|
|
|
+ this.orderValue.isPay = this.radioPay;
|
|
|
+ this.orderValue.pays = []
|
|
|
+ }
|
|
|
+
|
|
|
+ if(this.radioPay == 2){
|
|
|
+ (this.$refs.payform as any).validate({noMsg:true}).then(()=>{
|
|
|
+ this.orderValue.pays = [];
|
|
|
+ let payFormValue = (this.$refs.payform as any).getValue();
|
|
|
+ if(payFormValue.payDate){
|
|
|
+ payFormValue.payDate = payFormValue.payDate + ' 00:00:00'
|
|
|
+ }
|
|
|
+ this.orderValue.pays.push(payFormValue);
|
|
|
+ resolve();
|
|
|
+ }).catch(()=>{
|
|
|
+ if(r){
|
|
|
+ (this as any).$message({
|
|
|
+ message: '验证未通过,请检查!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ r = false;
|
|
|
+ reject();
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ resolve();
|
|
|
+ }
|
|
|
+ }).catch(()=>{
|
|
|
+ if(r){
|
|
|
+ (this as any).$message({
|
|
|
+ message: '验证未通过,请检查!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ r = false;
|
|
|
+ reject();
|
|
|
+ });
|
|
|
}).catch(()=>{
|
|
|
if(r){
|
|
|
(this as any).$message({
|
|
@@ -884,33 +1006,37 @@ export default class AddOrder extends Vue {
|
|
|
type: 'warning',
|
|
|
})
|
|
|
}
|
|
|
- r = false
|
|
|
+ r = false;
|
|
|
+ reject();
|
|
|
});
|
|
|
- }
|
|
|
- let invoiceValue = (this.$refs.invoicesform as any).getValue();
|
|
|
- this.orderValue.invoices=[];
|
|
|
- this.orderValue.invoices.push(invoiceValue);
|
|
|
- this.isValidate = r;
|
|
|
+
|
|
|
+ let invoiceValue = (this.$refs.invoicesform as any).getValue();
|
|
|
+ this.orderValue.invoices=[];
|
|
|
+ this.orderValue.invoices.push(invoiceValue);
|
|
|
+ })
|
|
|
+
|
|
|
}
|
|
|
//确定
|
|
|
- btn(){
|
|
|
- this.getOrderValue();
|
|
|
- setTimeout(()=>{
|
|
|
- if(this.isValidate){
|
|
|
- if(this.orderValue.orderDate){
|
|
|
- this.orderValue.orderDate = this.orderValue.orderDate + ' 00:00:00'
|
|
|
- }
|
|
|
- this.orderValue.receiverCountryCode = '86';
|
|
|
- this.orderValue.receiverCountry="中华人民共和国";
|
|
|
- addOrder(this.orderValue).then((res:any) => {
|
|
|
- (this as any).$message({
|
|
|
- message: '订单添加成功!',
|
|
|
- type: 'success',
|
|
|
- })
|
|
|
- }).catch((err:any) => {})
|
|
|
+ btn(n?:string){
|
|
|
+ this.getOrderValue().then(()=>{
|
|
|
+ if(this.orderValue.orderDate){
|
|
|
+ this.orderValue.orderDate = this.orderValue.orderDate + ' 00:00:00'
|
|
|
}
|
|
|
- },500)
|
|
|
-
|
|
|
+ this.orderValue.receiverCountryCode = '86';
|
|
|
+ this.orderValue.receiverCountry="中华人民共和国";
|
|
|
+ addOrder(this.orderValue).then((res:any) => {
|
|
|
+ if(n != 'continue'){
|
|
|
+ this.value = false;
|
|
|
+ }
|
|
|
+
|
|
|
+ (this as any).$message({
|
|
|
+ message: '订单添加成功!',
|
|
|
+ type: 'success',
|
|
|
+ })
|
|
|
+ this.clearValue();
|
|
|
+ this.$emit('addSuccess');
|
|
|
+ }).catch((err:any) => {})
|
|
|
+ }).catch((err:any) => {})
|
|
|
}
|
|
|
}
|
|
|
</script>
|