出库加密
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
<span style="margin: 5px">领料单编号:</span>
|
||||
<el-input v-model="pickingListNumber" clearable size="small" style="width:200px" />
|
||||
<el-button size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="searchList()">查询</el-button>
|
||||
<el-button size="small" type="warning" style="float: right;margin-right: 10px" @click="prepareConfirm()">备料确认</el-button>
|
||||
<el-button :disabled="审批未通过===true" size="small" type="primary" style="float: right" @click="inputPassword()">领料确认</el-button>
|
||||
<!-- <el-button size="small" type="warning" style="float: right;margin-right: 10px" @click="prepareConfirm()">备料确认</el-button>-->
|
||||
<el-button :disabled="审批未通过===true" size="small" type="primary" style="float: right; margin-right: 30px" @click="inputPassword()">领料确认</el-button>
|
||||
</div>
|
||||
</el-card>
|
||||
<div style="width: 27%;float: left;margin-right: 16px">
|
||||
@@ -84,12 +84,12 @@
|
||||
{{ scope.row.出库数量1 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column v-if="true" label="备料" align="center" width="60">
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="Number(scope.row.是否备料确认)===1" size="mini" type="success">已备</el-tag>
|
||||
<el-tag v-else type="warning" size="mini">未备</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column v-if="true" label="备料" align="center" width="60">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-tag v-if="Number(scope.row.是否备料确认)===1" size="mini" type="success">已备</el-tag>-->
|
||||
<!-- <el-tag v-else type="warning" size="mini">未备</el-tag>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column v-if="true" label="领料" align="center" width="60">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-tag v-if="(Number(scope.row.总数量) <= Number(scope.row.出库数量1)) || Number(scope.row.是否领料确认) === 1" type="success" size="mini">已领</el-tag>-->
|
||||
@@ -189,7 +189,23 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="领料部门" label-width="100px" size="small">
|
||||
<el-input v-model="form3.department" size="small" placeholder="领料部门" style="width: 200px"/>
|
||||
<!-- <el-input v-model="form3.department" size="small" placeholder="领料部门" style="width: 200px"/>-->
|
||||
<el-select v-model="form3.department" placeholder="请选择部门" size="small" clearable style="width: 200px;" @change="selectLeaders">
|
||||
<el-option
|
||||
v-for="item in departments"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="领料人" prop="领料人" label-width="100px" size="small">
|
||||
<el-select v-model="form3.DirectNote" placeholder="请选择领料人" size="small" clearable style="width: 200px;">
|
||||
<el-option
|
||||
v-for="item in DirectNotes"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="人员编号" prop="password" label-width="100px" size="small">
|
||||
<el-input v-model="form3.password" size="small" placeholder="人员编号" style="width: 200px"/>
|
||||
@@ -234,7 +250,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { sendBack, initPickPerson, initMachineProject, searchgroup, searchList, searchListDetail, submitOutStore, initOutType } from '@/api/Inventory/MaterialOut'
|
||||
import { sendBack, initPickPerson, initMachineProject, searchgroup, searchList, searchListDetail, submitOutStore, initOutType, selectdepartment, selectleaders } from '@/api/Inventory/MaterialOut'
|
||||
import { mapGetters } from 'vuex'
|
||||
import request from '@/utils/request'
|
||||
export default {
|
||||
@@ -276,7 +292,8 @@ export default {
|
||||
form3: {
|
||||
outTypeValue: '',
|
||||
department: '',
|
||||
password: ''
|
||||
password: '',
|
||||
DirectNote: ''
|
||||
},
|
||||
form4: {
|
||||
仓库流水号: '',
|
||||
@@ -319,6 +336,9 @@ export default {
|
||||
offlineNum: [],
|
||||
inventoryName: [],
|
||||
locateName: [],
|
||||
departments: [],
|
||||
DirectNotes: [],
|
||||
department111: '', // 领料部门中间变量
|
||||
物料流水号: '',
|
||||
基本件流水号: '',
|
||||
标准件和外购件流水号: '',
|
||||
@@ -359,6 +379,27 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
selectDepartment() {
|
||||
selectdepartment().then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.departments.push({
|
||||
label: response.data[i].部门名称,
|
||||
value: response.data[i].考核部门编号
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
selectLeaders() {
|
||||
this.DirectNotes = []
|
||||
selectleaders(this.form3.department).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.DirectNotes.push({
|
||||
label: response.data[i].姓名,
|
||||
value: response.data[i].考勤编号
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 获取货位
|
||||
async getLocate() {
|
||||
this.locateName = []
|
||||
@@ -438,7 +479,8 @@ export default {
|
||||
inputPassword() {
|
||||
this.form3.outTypeValue = 21
|
||||
this.form3.password = ''
|
||||
this.form3.department = '装配'
|
||||
this.selectDepartment()
|
||||
this.departments = []
|
||||
this.dialogFormVisible3 = true
|
||||
},
|
||||
selectable(row, index) { // 控制某行是否可选
|
||||
@@ -564,23 +606,32 @@ export default {
|
||||
this.outNumber.push(this.pickListTable2[i].出库数量)
|
||||
}
|
||||
}
|
||||
submitOutStore(this.multipleSelection, this.basePartNum, this.materialNum, this.parchasePartNum, this.purchaseBillNum, this.groupNumValue, this.machineValue, this.outNumber, this.id, this.form3.password, this.form3.outTypeValue, this.pickingListNum, this.offlineNum, this.form3.department).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('出库成功')
|
||||
this.dialogFormVisible3 = false
|
||||
searchListDetail(this.pickingListNum).then(res => {
|
||||
for (let i = 0; i < res.data.length; i++) {
|
||||
if (res.data[i].离线采购件流水号 !== 0) {
|
||||
res.data[i].货位存量1 = res.data[i].货位存量
|
||||
if (Number(this.form3.password) === Number(this.form3.DirectNote)) {
|
||||
for (let i = 0; i < this.departments.length; i++) {
|
||||
if (this.form3.department === this.departments[i].value) {
|
||||
this.department111 = this.departments[i].label
|
||||
}
|
||||
}
|
||||
submitOutStore(this.multipleSelection, this.basePartNum, this.materialNum, this.parchasePartNum, this.purchaseBillNum, this.groupNumValue, this.machineValue, this.outNumber, this.id, this.form3.DirectNote, this.form3.outTypeValue, this.pickingListNum, this.offlineNum, this.department111).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('出库成功')
|
||||
this.dialogFormVisible3 = false
|
||||
searchListDetail(this.pickingListNum).then(res => {
|
||||
for (let i = 0; i < res.data.length; i++) {
|
||||
if (res.data[i].离线采购件流水号 !== 0) {
|
||||
res.data[i].货位存量1 = res.data[i].货位存量
|
||||
}
|
||||
if (res.data[i].请购单明细流水号 !== 0 && res.data[i].请购单明细流水号 !== '' && res.data[i].请购单明细流水号 !== null) {
|
||||
res.data[i].货位存量1 = res.data[i].货位存量
|
||||
}
|
||||
}
|
||||
if (res.data[i].请购单明细流水号 !== 0 && res.data[i].请购单明细流水号 !== '' && res.data[i].请购单明细流水号 !== null) {
|
||||
res.data[i].货位存量1 = res.data[i].货位存量
|
||||
}
|
||||
}
|
||||
this.pickListTable2 = res.data
|
||||
})
|
||||
} else { this.$message.error('操作失败') }
|
||||
})
|
||||
this.pickListTable2 = res.data
|
||||
})
|
||||
} else { this.$message.error('操作失败') }
|
||||
})
|
||||
} else {
|
||||
this.$message.error('人员编号错误')
|
||||
}
|
||||
},
|
||||
// 提交出库
|
||||
submitOutStore() {
|
||||
|
||||
Reference in New Issue
Block a user