lx1120
This commit is contained in:
@@ -434,14 +434,14 @@ import { mapGetters } from 'vuex'
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
ProjectValue: ' ',
|
ProjectValue: null,
|
||||||
Project: [],
|
Project: [],
|
||||||
ProjectValue_check: 1,
|
ProjectValue_check: 0,
|
||||||
MachineValue: ' ',
|
MachineValue: null,
|
||||||
Machine: [],
|
Machine: [],
|
||||||
MachineValue_check: 1,
|
MachineValue_check: 0,
|
||||||
GroupNumValue: ' ',
|
GroupNumValue: null,
|
||||||
GroupNumValue_check: 1,
|
GroupNumValue_check: 0,
|
||||||
GroupNum: [],
|
GroupNum: [],
|
||||||
tableDataBasic: [],
|
tableDataBasic: [],
|
||||||
tableDataPurchase: [],
|
tableDataPurchase: [],
|
||||||
@@ -572,14 +572,14 @@ export default {
|
|||||||
searchPartinfo() {
|
searchPartinfo() {
|
||||||
this.tableDataPurchase = []
|
this.tableDataPurchase = []
|
||||||
this.tableDataBasic = []
|
this.tableDataBasic = []
|
||||||
if (this.ProjectValue === ' ') {
|
if (this.ProjectValue !== null && this.ProjectValue !== '') {
|
||||||
this.ProjectValue_check = 0
|
this.ProjectValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.MachineValue === ' ') {
|
if (this.MachineValue !== null && this.MachineValue !== '') {
|
||||||
this.MachineValue_check = 0
|
this.MachineValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.GroupNumValue === ' ') {
|
if (this.GroupNumValue !== null && this.GroupNumValue !== '') {
|
||||||
this.GroupNumValue_check = 0
|
this.GroupNumValue_check = 1
|
||||||
}
|
}
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
this.listLoading1 = true
|
this.listLoading1 = true
|
||||||
@@ -604,23 +604,23 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSizeChange(val) {
|
handleSizeChange(val) {
|
||||||
this.PageCurrent = 1
|
|
||||||
this.PageSize = val
|
|
||||||
this.searchPartinfo()
|
|
||||||
},
|
|
||||||
handleCurrentChange(val) {
|
|
||||||
this.PageCurrent = val
|
|
||||||
this.searchPartinfo()
|
|
||||||
},
|
|
||||||
handleSizeChange1(val) {
|
|
||||||
this.PageCurrent1 = 1
|
this.PageCurrent1 = 1
|
||||||
this.PageSize1 = val
|
this.PageSize1 = val
|
||||||
this.searchPartinfo()
|
this.searchPartinfo()
|
||||||
},
|
},
|
||||||
handleCurrentChange1(val) {
|
handleCurrentChange(val) {
|
||||||
this.PageCurrent1 = val
|
this.PageCurrent1 = val
|
||||||
this.searchPartinfo()
|
this.searchPartinfo()
|
||||||
},
|
},
|
||||||
|
handleSizeChange1(val) {
|
||||||
|
this.PageCurrent = 1
|
||||||
|
this.PageSize = val
|
||||||
|
this.searchPartinfo()
|
||||||
|
},
|
||||||
|
handleCurrentChange1(val) {
|
||||||
|
this.PageCurrent = val
|
||||||
|
this.searchPartinfo()
|
||||||
|
},
|
||||||
handleSizeChangex(val) {
|
handleSizeChangex(val) {
|
||||||
this.PageCurrentx = 1
|
this.PageCurrentx = 1
|
||||||
this.PageSizex = val
|
this.PageSizex = val
|
||||||
@@ -791,7 +791,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$refs[formName].validate((valid) => {
|
this.$refs[formName].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
addListDetail(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.partProjectName, this.partMachineName, this.partGroupName, this.materialName, this.materialType, this.materialNumber, this.form2.OutNumber, this.partType, this.form2.outNote, this.craftplannumber, this.receive, this.teamPart, this.locatenumber, 0).then(response => {
|
addListDetail(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.partProjectName, this.partMachineName, this.partGroupName, this.materialName, this.materialType, this.materialNumber, this.form2.OutNumber, this.partType, this.form2.outNote, this.craftplannumber, this.receive, this.teamPart, this.purchaseDetailNum, this.locatenumber, 0).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
this.$message.success('增加成功')
|
this.$message.success('增加成功')
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user