|
@@ -6,14 +6,14 @@
|
|
|
<!-- <el-button style="margin:0 0 10px 10px" size="small" type="primary" :disabled="data.status !== '新建'" v-if="type !== 'confirmdate'" @click="drawer = true">{{setcol === 24?'添 加':'取 消'}}</el-button>-->
|
|
|
<addProduct style="margin:0 0 10px 10px" v-if="type !== 'confirmdate' && data.status === '新建' " :drawer="drawer" :data="data" ref="addProduct"
|
|
|
:params="paramsAdd" :tablecolsAdd="tablecolsAdd" title="添 加" :tradefield="data.tradefield"
|
|
|
- @addSuccess="addProducts" @addProduct="addProduct" @uploadData="uploadData" @closeDrawer="listData"
|
|
|
+ @addSuccess="addProducts" @addProduct="addProduct" @uploadData="uploadData" @closeDrawer="listData();$emit('onSuccess')"
|
|
|
></addProduct>
|
|
|
<excel style="margin:0 0 10px 10px" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>
|
|
|
<uploadAllData
|
|
|
v-if="type !== 'confirmdate' && data.status === '新建' "
|
|
|
style="margin:0 0 10px 10px"
|
|
|
:total="total"
|
|
|
- @onSuccess="listData()"
|
|
|
+ @onSuccess="listData();$emit('onSuccess')"
|
|
|
@handlePullApi="handlePullApi"
|
|
|
@handleDelApi="handleDelApi"
|
|
|
idName="sa_orderitemsid"
|
|
@@ -472,6 +472,7 @@ export default {
|
|
|
"sa_orderid":this.$route.query.id,
|
|
|
"sa_orderitemsids": data
|
|
|
}
|
|
|
+ this.$emit('onSuccess')
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|
|
@@ -668,7 +669,8 @@ export default {
|
|
|
})
|
|
|
this.tool.showMessage(res,()=>{
|
|
|
this.listData()
|
|
|
- this.$refs.addProduct.list = []
|
|
|
+ this.$refs.addProduct.listData()
|
|
|
+ this.$emit('onSuccess')
|
|
|
})
|
|
|
},
|
|
|
/*单个添加商品*/
|
|
@@ -691,7 +693,8 @@ export default {
|
|
|
})
|
|
|
this.tool.showMessage(res,() => {
|
|
|
this.listData()
|
|
|
- this.$refs.addProduct.list = []
|
|
|
+ this.$refs.addProduct.listData()
|
|
|
+ this.$emit('onSuccess')
|
|
|
})
|
|
|
},
|
|
|
/*一键添加*/
|
|
@@ -712,6 +715,7 @@ export default {
|
|
|
}
|
|
|
this.listData()
|
|
|
this.$refs.addProduct.list = []
|
|
|
+ this.$emit('onSuccess')
|
|
|
},
|
|
|
|
|
|
},
|