|
@@ -169,7 +169,11 @@
|
|
<el-table-column show-overflow-tooltip type="selection"/>
|
|
<el-table-column show-overflow-tooltip type="selection"/>
|
|
<el-table-column show-overflow-tooltip label="序号" type="index" align="center"/>
|
|
<el-table-column show-overflow-tooltip label="序号" type="index" align="center"/>
|
|
<el-table-column show-overflow-tooltip label="行状态" align="center" prop="status" :formatter="hangStatus" width="150px"/>
|
|
<el-table-column show-overflow-tooltip label="行状态" align="center" prop="status" :formatter="hangStatus" width="150px"/>
|
|
- <el-table-column show-overflow-tooltip label="行号" align="center" prop="rowNo" />
|
|
|
|
|
|
+ <el-table-column show-overflow-tooltip label="行号" align="center" prop="rowNo">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{scope.$index + 1 + '0'}}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<!-- <el-table-column show-overflow-tooltip label="业务部门名称" align="center" width="180px"/> -->
|
|
<!-- <el-table-column show-overflow-tooltip label="业务部门名称" align="center" width="180px"/> -->
|
|
<!-- <el-table-column show-overflow-tooltip label="业务部门" align="center" width="180px"/> -->
|
|
<!-- <el-table-column show-overflow-tooltip label="业务部门" align="center" width="180px"/> -->
|
|
<el-table-column show-overflow-tooltip label="需求客户" align="center" prop="demandCustomerName" width="200px"/>
|
|
<el-table-column show-overflow-tooltip label="需求客户" align="center" prop="demandCustomerName" width="200px"/>
|
|
@@ -484,7 +488,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 批量调整参数 -->
|
|
<!-- 批量调整参数 -->
|
|
- <el-dialog title="批量调整" :visible.sync="adjust.open" width="400px">
|
|
|
|
|
|
+ <el-dialog title="批量调整" :visible.sync="adjust.open" @close="closeEvent" width="400px">
|
|
<el-row style="margin-bottom: 10px;">
|
|
<el-row style="margin-bottom: 10px;">
|
|
<el-col :span="6">价格类型</el-col>
|
|
<el-col :span="6">价格类型</el-col>
|
|
<el-col :span="14">
|
|
<el-col :span="14">
|
|
@@ -635,6 +639,7 @@ export default {
|
|
// title: '',
|
|
// title: '',
|
|
// },
|
|
// },
|
|
tableIndex: null,
|
|
tableIndex: null,
|
|
|
|
+ ids: [],
|
|
orgOptions: [],
|
|
orgOptions: [],
|
|
manOptions: [],
|
|
manOptions: [],
|
|
personOptions: [],
|
|
personOptions: [],
|
|
@@ -653,7 +658,7 @@ export default {
|
|
},
|
|
},
|
|
isBDXQ: false,
|
|
isBDXQ: false,
|
|
isYl: false,
|
|
isYl: false,
|
|
- // 批量调整擦拭
|
|
|
|
|
|
+ // 批量调整参数
|
|
adjust: {
|
|
adjust: {
|
|
open: false,
|
|
open: false,
|
|
priceType: '',
|
|
priceType: '',
|
|
@@ -990,7 +995,12 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- handleSelectionChange() {},
|
|
|
|
|
|
+ handleSelectionChange(selection) {
|
|
|
|
+ this.ids = selection.map(item =>{
|
|
|
|
+ return item.id
|
|
|
|
+ })
|
|
|
|
+ console.log('选中数组', this.ids)
|
|
|
|
+ },
|
|
// 点击预留单展示
|
|
// 点击预留单展示
|
|
showReserved() {
|
|
showReserved() {
|
|
this.dialog.config = true
|
|
this.dialog.config = true
|
|
@@ -1238,11 +1248,49 @@ export default {
|
|
},
|
|
},
|
|
// 批量调整
|
|
// 批量调整
|
|
adjustPl() {
|
|
adjustPl() {
|
|
- this.adjust.open = true
|
|
|
|
|
|
+ if(this.ids.length == 0) {
|
|
|
|
+ this.$modal.msgWarning('请至少选择一项数据进行操作!')
|
|
|
|
+ } else {
|
|
|
|
+ this.adjust.open = true
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 批量调整确认
|
|
// 批量调整确认
|
|
confirmAdjust() {
|
|
confirmAdjust() {
|
|
console.log('data', this.adjust)
|
|
console.log('data', this.adjust)
|
|
|
|
+ this.basicForm.puDemandItemList.forEach(item => {
|
|
|
|
+ this.ids.some(val => {
|
|
|
|
+ if(val == item.id) {
|
|
|
|
+ if(this.adjust.purchaseMan) {
|
|
|
|
+ item.buyer = this.adjust.purchaseMan
|
|
|
|
+ item.buyerName = this.adjust.purchaseManName
|
|
|
|
+ }
|
|
|
|
+ if(this.adjust.priceType) {
|
|
|
|
+ item.priceType = this.adjust.priceType
|
|
|
|
+ }
|
|
|
|
+ if(this.adjust.warehouseName) {
|
|
|
|
+ item.deliveryWarehouse = this.adjust.warehouse
|
|
|
|
+ item.deliveryWarehouseName = this.adjust.warehouseName
|
|
|
|
+ item.deliveryAllocation = this.adjust.allocation
|
|
|
|
+ item.deliveryAllocationName = this.adjust.allocationName
|
|
|
|
+ }
|
|
|
|
+ // if(this.adjust.allocationName) {
|
|
|
|
+ // item.deliveryAllocation = this.adjust.allocation
|
|
|
|
+ // item.deliveryAllocationName = this.adjust.allocationName
|
|
|
|
+ // }
|
|
|
|
+ if(this.adjust.remark) {
|
|
|
|
+ item.remark = this.adjust.remark
|
|
|
|
+ }
|
|
|
|
+ if(this.adjust.deliveryAddressName) {
|
|
|
|
+ item.deliveryAddressName = this.adjust.deliveryAddressName
|
|
|
|
+ item.deliveryAddress = this.adjust.deliveryAddress
|
|
|
|
+ item.contacts = this.adjust.contacts
|
|
|
|
+ item.contactsPhone = this.adjust.contactsPhone
|
|
|
|
+ item.address = this.adjust.address
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.adjust.open = false
|
|
|
|
+ })
|
|
|
|
+ })
|
|
},
|
|
},
|
|
// 批量调整选择货位
|
|
// 批量调整选择货位
|
|
adjustHuoWei(type, isPage, title, stordocId) {
|
|
adjustHuoWei(type, isPage, title, stordocId) {
|
|
@@ -1257,6 +1305,25 @@ export default {
|
|
this.$modal.msgWarning("请先选择收货仓库");
|
|
this.$modal.msgWarning("请先选择收货仓库");
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 关闭清空批量调整数据
|
|
|
|
+ closeEvent() {
|
|
|
|
+ this.adjust = {
|
|
|
|
+ open: false,
|
|
|
|
+ priceType: '',
|
|
|
|
+ purchaseMan: '',
|
|
|
|
+ purchaseManName: '',
|
|
|
|
+ warehouse: '',
|
|
|
|
+ warehouseName: '',
|
|
|
|
+ allocation: '',
|
|
|
|
+ allocationName: '',
|
|
|
|
+ remark: '',
|
|
|
|
+ deliveryAddress: '',
|
|
|
|
+ deliveryAddressName: '',
|
|
|
|
+ contacts: '',
|
|
|
|
+ contactsPhone: '',
|
|
|
|
+ address: ''
|
|
|
|
+ }
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|