直达件:改查询条件无效,编辑领用者显示编号
This commit is contained in:
@@ -59,14 +59,14 @@ export function searchContractDetail(contractnumber) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 直达件查询
|
// 直达件查询
|
||||||
export function searchDirectPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group, contract) {
|
export function searchDirectPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group, contract_check, contract) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '库存管理_直达件_零件查询',
|
name: '库存管理_直达件_零件查询',
|
||||||
param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group + '&合同流水号=' + contract,
|
param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group + '&合同流水号_check=' + contract_check + '&合同流水号=' + contract,
|
||||||
Pagination: pageCurrent + '&' + pageSize
|
Pagination: pageCurrent + '&' + pageSize
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -79,7 +79,7 @@ export function searchPeople() {
|
|||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
|
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
|
||||||
param: '考核部门编号=' + 18
|
param: '考核部门编号=18'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -268,9 +268,8 @@ export default {
|
|||||||
this.PeopleNumber = this.id
|
this.PeopleNumber = this.id
|
||||||
},
|
},
|
||||||
searchMachine() { // 查询机床
|
searchMachine() { // 查询机床
|
||||||
if (this.ProjectValue === '') {
|
this.Machine = []
|
||||||
this.ProjectValue_check = 0
|
this.ProjectValue ? this.ProjectValue_check = 1 : this.ProjectValue_check = 0
|
||||||
}
|
|
||||||
searchmachine(this.ProjectValue_check, this.ProjectValue).then(response => {
|
searchmachine(this.ProjectValue_check, this.ProjectValue).then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.Machine.push({
|
this.Machine.push({
|
||||||
@@ -281,6 +280,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
searchGroupList() { // 查询组号
|
searchGroupList() { // 查询组号
|
||||||
|
this.GroupNum = []
|
||||||
searchTeam(this.MachineValue).then(response => {
|
searchTeam(this.MachineValue).then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.GroupNum.push({
|
this.GroupNum.push({
|
||||||
@@ -291,16 +291,19 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
searchPeopleData() { // 查询人员
|
searchPeopleData() { // 查询人员
|
||||||
|
this.People = []
|
||||||
searchPeople().then(response => {
|
searchPeople().then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.People.push({
|
this.People.push({
|
||||||
label: response.data[i].姓名,
|
label: response.data[i].姓名,
|
||||||
value: response.data[i].考勤编号
|
value: parseInt(response.data[i].考勤编号)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
console.log(this.People)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
searchContractData() { // 查询合同
|
searchContractData() { // 查询合同
|
||||||
|
this.Contract = []
|
||||||
searchContract().then(response => {
|
searchContract().then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.Contract.push({
|
this.Contract.push({
|
||||||
@@ -312,18 +315,10 @@ export default {
|
|||||||
},
|
},
|
||||||
searchPartinfo() {
|
searchPartinfo() {
|
||||||
this.tableDataPurchase = []
|
this.tableDataPurchase = []
|
||||||
if (this.ProjectValue === '') {
|
this.ProjectValue ? this.ProjectValue_check = 1 : this.ProjectValue_check = 0
|
||||||
this.ProjectValue_check = 0
|
this.MachineValue ? this.MachineValue_check = 1 : this.MachineValue_check = 0
|
||||||
}
|
this.GroupNumValue ? this.GroupNumValue_check = 1 : this.GroupNumValue_check = 0
|
||||||
if (this.MachineValue === '') {
|
this.ContractValue ? this.ContractValue_check = 1 : this.ContractValue_check = 0
|
||||||
this.MachineValue_check = 0
|
|
||||||
}
|
|
||||||
if (this.GroupNumValue === '') {
|
|
||||||
this.GroupNumValue_check = 0
|
|
||||||
}
|
|
||||||
if (this.ContractValue === '') {
|
|
||||||
this.ContractValue_check = 0
|
|
||||||
}
|
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
searchDirectPart(this.PageCurrent, this.PageSize, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue, this.ContractValue_check, this.ContractValue).then(response => {
|
searchDirectPart(this.PageCurrent, this.PageSize, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue, this.ContractValue_check, this.ContractValue).then(response => {
|
||||||
this.tableDataPurchase = response.data.rows
|
this.tableDataPurchase = response.data.rows
|
||||||
@@ -349,8 +344,7 @@ export default {
|
|||||||
// 打开直达件表单
|
// 打开直达件表单
|
||||||
addDirect(row) {
|
addDirect(row) {
|
||||||
this.PeopleValue = ''
|
this.PeopleValue = ''
|
||||||
this.form = []
|
this.form = {}
|
||||||
console.log(row)
|
|
||||||
this.dialogFormVisible = true
|
this.dialogFormVisible = true
|
||||||
this.materialNum = row.物料流水号
|
this.materialNum = row.物料流水号
|
||||||
this.purchaseContractNumber = row.采购合同明细流水号
|
this.purchaseContractNumber = row.采购合同明细流水号
|
||||||
@@ -367,7 +361,7 @@ export default {
|
|||||||
this.dialogFormVisible1 = true
|
this.dialogFormVisible1 = true
|
||||||
this.directPartNumber = row.直达件流水号
|
this.directPartNumber = row.直达件流水号
|
||||||
this.form.DirectNumber = row.到货数量
|
this.form.DirectNumber = row.到货数量
|
||||||
this.PeopleValue = row.领用人员流水号
|
this.PeopleValue = parseInt(row.领用人员流水号)
|
||||||
this.form.DirectNote = row.备注
|
this.form.DirectNote = row.备注
|
||||||
},
|
},
|
||||||
// 修改直达件
|
// 修改直达件
|
||||||
|
|||||||
Reference in New Issue
Block a user