|
|
@@ -76,7 +76,9 @@
|
|
|
</el-table>
|
|
|
</el-col>
|
|
|
<el-col :span="24 - setcol">
|
|
|
- <logisticsCanUseProduct ref="logislist" :sa_logistics_boxid="0" @onConfirm="onConfirm"></logisticsCanUseProduct>
|
|
|
+ <logisticsCanUseProduct ref="logislist" :sa_logistics_boxid="0" @onConfirm="onConfirm">
|
|
|
+ <el-button class="inline-16" slot="allBtn" type="primary" size="small" @click="handlePullData">一键全选</el-button>
|
|
|
+ </logisticsCanUseProduct>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
@@ -90,6 +92,7 @@
|
|
|
|
|
|
<script>
|
|
|
import logisticsCanUseProduct from '@/template/logisticsCanUseProduct/index.vue'
|
|
|
+import uploadAllData from '@/components/uploadAllData/index'
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
|
@@ -100,7 +103,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
components:{
|
|
|
- logisticsCanUseProduct
|
|
|
+ logisticsCanUseProduct,
|
|
|
+ uploadAllData
|
|
|
},
|
|
|
methods:{
|
|
|
async onSubmit (){
|
|
|
@@ -129,6 +133,26 @@ export default {
|
|
|
this.drawer = false
|
|
|
})
|
|
|
},
|
|
|
+ async handlePullData () {
|
|
|
+ let res = await this.$api.requested({
|
|
|
+ id:20230110112204,
|
|
|
+ content: {
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 9999999999,
|
|
|
+ "sa_logisticsid":this.$route.query.id,
|
|
|
+ "sa_logistics_boxid":1,
|
|
|
+ "where": {
|
|
|
+ "condition": ""
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if(res.data.length) {
|
|
|
+ this.tableData.push(...res.data)
|
|
|
+ const res2 = new Map();
|
|
|
+ this.tableData = this.tableData.filter((item) => !res2.has(item['itemno']) && res2.set(item['itemno'], 1));
|
|
|
+ this.$refs.logislist.tableData = []
|
|
|
+ }
|
|
|
+ },
|
|
|
showSelect () {
|
|
|
this.$refs['logislist'].listData()
|
|
|
},
|