用离线合同采购分配下来的件

This commit is contained in:
chenjianan
2019-04-12 13:32:00 +08:00
parent 990e1d5956
commit ed273c9590

View File

@@ -1241,11 +1241,10 @@ export default {
return ''
},
handleSelectionChange1(val) { // 标准件和外购件多选
console.log(val)
this.groupPartNumGroup = []
this.tableData02 = val
for (let i = 0; i < val.length; i++) {
this.groupPartNumGroup.push(val.组件零件流水号)
this.groupPartNumGroup.push(val[i].组件零件流水号)
}
},
selectable(row, index) { // 控制某行是否可选
@@ -1261,7 +1260,6 @@ export default {
this.materialSpec ? check2 = 1 : check2 = 0
this.materialModel ? check3 = 1 : check3 = 0
searchMaterial(this.pageCurrent00, this.pageSize00, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.materialName, check2, this.materialSpec, check3, this.materialModel, this.id).then(response => {
console.log(response.data.rows)
this.tableData00 = response.data.rows
this.total00 = response.data.total
})
@@ -1290,9 +1288,9 @@ export default {
},
submitBind() {
if (this.offlineContractsValue) {
console.log('改物料询价状态,采购状态,往物料附上离线合同流水号')
submitBind(this.groupPartNumGroup, this.offlineContractsValue).then(res => {
if (res.data[0].result === '1') {
this.$message.success('操作成功')
this.searchTable00()
this.dialogVisible0 = false
} else { this.$message.error('操作失败') }