外购备料
This commit is contained in:
@@ -199,7 +199,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="callOff('form')">取消</el-button>
|
<el-button @click="callOff('form')">取消</el-button>
|
||||||
<el-button type="primary" @click="addDirectPartm()">确定</el-button>
|
<el-button :disabled="buttonDisable" type="primary" @click="addDirectPartm()">确定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
@@ -218,6 +218,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
buttonDisable: false,
|
||||||
Project: [],
|
Project: [],
|
||||||
Machine: [],
|
Machine: [],
|
||||||
GroupNum: [],
|
GroupNum: [],
|
||||||
@@ -405,6 +406,7 @@ export default {
|
|||||||
this.DirectNotes = []
|
this.DirectNotes = []
|
||||||
this.selectLeaders()
|
this.selectLeaders()
|
||||||
this.selectDepartment()
|
this.selectDepartment()
|
||||||
|
this.buttonDisable = false
|
||||||
this.dialogFormVisible = true
|
this.dialogFormVisible = true
|
||||||
},
|
},
|
||||||
// 重置表单
|
// 重置表单
|
||||||
@@ -425,46 +427,48 @@ export default {
|
|||||||
},
|
},
|
||||||
// 离线外购件出库
|
// 离线外购件出库
|
||||||
addDirectPartm() {
|
addDirectPartm() {
|
||||||
if (Number(this.partnumber) < Number(this.form.DirectNumber)) {
|
if (!this.buttonDisable) {
|
||||||
this.$message.error('库存不够,重输领料数量')
|
if (Number(this.partnumber) < Number(this.form.DirectNumber)) {
|
||||||
} else {
|
this.$message.error('库存不够,重输领料数量')
|
||||||
this.$refs['form'].validate((valid) => {
|
} else {
|
||||||
if (valid) {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (Number(this.form.DirectNoteCode) === Number(this.form.DirectNote)) {
|
if (valid) {
|
||||||
for (let i = 0; i < this.departments.length; i++) {
|
if (Number(this.form.DirectNoteCode) === Number(this.form.DirectNote)) {
|
||||||
if (this.form.department === this.departments[i].value) {
|
this.buttonDisable = true
|
||||||
this.department111 = this.departments[i].label
|
for (let i = 0; i < this.departments.length; i++) {
|
||||||
|
if (this.form.department === this.departments[i].value) {
|
||||||
|
this.department111 = this.departments[i].label
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
for (let i = 0; i < this.DirectNotes.length; i++) {
|
||||||
|
if (this.form.DirectNote === this.DirectNotes[i].value) {
|
||||||
|
this.DirectNote111 = this.DirectNotes[i].label
|
||||||
|
}
|
||||||
|
}
|
||||||
|
outlinePartOut(this.form.PeopleValue, this.form.DirectNumber, this.locateNumber, this.DirectNote111, this.form.ProjectValue, this.form.MachineValue, this.form.GroupNumValue, this.materialNumber, this.PeopleNumber, this.离线合同明细流水号, this.组件零件基本件流水号, this.department111).then(response => {
|
||||||
|
if (response.data[0].result === '1') {
|
||||||
|
this.$message.success('零件出库成功')
|
||||||
|
this.dialogFormVisible = false
|
||||||
|
this.searchTable1()
|
||||||
|
// 物料流水号查
|
||||||
|
outRecord(this.materialNumber, this.pageCurrent2, this.pageSize2).then(response => {
|
||||||
|
this.tableDataOut = response.data.rows
|
||||||
|
this.total2 = response.data.total
|
||||||
|
this.listLoading1 = false
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.error('零件出库失败')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.error('人员编号错误')
|
||||||
}
|
}
|
||||||
for (let i = 0; i < this.DirectNotes.length; i++) {
|
|
||||||
if (this.form.DirectNote === this.DirectNotes[i].value) {
|
|
||||||
this.DirectNote111 = this.DirectNotes[i].label
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log(this.form.PeopleValue, this.form.DirectNumber, this.locateNumber, this.DirectNote111, this.form.ProjectValue, this.form.MachineValue, this.form.GroupNumValue, this.materialNumber, this.PeopleNumber, this.离线合同明细流水号, this.组件零件基本件流水号, this.department111, 121221)
|
|
||||||
outlinePartOut(this.form.PeopleValue, this.form.DirectNumber, this.locateNumber, this.DirectNote111, this.form.ProjectValue, this.form.MachineValue, this.form.GroupNumValue, this.materialNumber, this.PeopleNumber, this.离线合同明细流水号, this.组件零件基本件流水号, this.department111).then(response => {
|
|
||||||
if (response.data[0].result === '1') {
|
|
||||||
this.$message.success('零件出库成功')
|
|
||||||
this.dialogFormVisible = false
|
|
||||||
this.searchTable1()
|
|
||||||
// 物料流水号查
|
|
||||||
outRecord(this.materialNumber, this.pageCurrent2, this.pageSize2).then(response => {
|
|
||||||
this.tableDataOut = response.data.rows
|
|
||||||
this.total2 = response.data.total
|
|
||||||
this.listLoading1 = false
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.error('零件出库失败')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('人员编号错误')
|
console.log('error submit!!')
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
} else {
|
})
|
||||||
console.log('error submit!!')
|
}
|
||||||
return false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,9 +59,15 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-left: 1px;width:1120px; display: inline-block;">
|
<el-card style="margin-left: 1px;width:1120px; display: inline-block;">
|
||||||
<div> <!--slot="header"-->
|
<div>
|
||||||
|
<el-button type="distribution" size="small" plain icon="el-icon-circle-plus-outline" style="margin-left: 10px" @click="addPurchaseOrder">计划单</el-button>
|
||||||
|
<!--<el-tooltip :open-delay="1200" effect="dark" content="保存选中的采购计划单" placement="top">-->
|
||||||
|
<!--<el-button type="baocun" size="small" icon="el-icon-download" style="margin-left: 10px" @click="saveMateriel">保存采购计划单</el-button>-->
|
||||||
|
<!--</el-tooltip>-->
|
||||||
|
<el-button type="primary" size="small" plain icon="el-icon-download" style="margin-left: 10px" @click="submitAddMaterial">选入备料</el-button>
|
||||||
|
<!--slot="header"-->
|
||||||
<!--<el-input v-model="purchasingOrder" placeholder="采购计划单号" size="small" style="margin: 3px 0;width: 155px" clearable @keyup.enter.native="pageCurrent2=1;pageSize2=10;total2=0;searchTable2()"/>-->
|
<!--<el-input v-model="purchasingOrder" placeholder="采购计划单号" size="small" style="margin: 3px 0;width: 155px" clearable @keyup.enter.native="pageCurrent2=1;pageSize2=10;total2=0;searchTable2()"/>-->
|
||||||
<el-input v-model="purchasingOrder" placeholder="离线备料单号" size="small" style="width: 160px;margin-top: 3px" clearable/>
|
<el-input v-model="purchasingOrder" placeholder="离线备料单号" size="small" style="width: 160px;margin-top: 3px;margin-left: 20px" clearable/>
|
||||||
<el-select v-model="supplierName" placeholder="供应商" size="small" style="width: 200px" filterable clearable @change="searchTable">
|
<el-select v-model="supplierName" placeholder="供应商" size="small" style="width: 200px" filterable clearable @change="searchTable">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in supplierNames"
|
v-for="item in supplierNames"
|
||||||
@@ -70,11 +76,6 @@
|
|||||||
:value="item.value"/>
|
:value="item.value"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button type="primary" size="small" plain icon="el-icon-search" style="margin-left: 10px" @click="searchTable()">查询</el-button>
|
<el-button type="primary" size="small" plain icon="el-icon-search" style="margin-left: 10px" @click="searchTable()">查询</el-button>
|
||||||
<el-button type="distribution" size="small" plain icon="el-icon-circle-plus-outline" style="margin-left: 10px" @click="addPurchaseOrder">计划单</el-button>
|
|
||||||
<!--<el-tooltip :open-delay="1200" effect="dark" content="保存选中的采购计划单" placement="top">-->
|
|
||||||
<!--<el-button type="baocun" size="small" icon="el-icon-download" style="margin-left: 10px" @click="saveMateriel">保存采购计划单</el-button>-->
|
|
||||||
<!--</el-tooltip>-->
|
|
||||||
<el-button type="primary" size="small" plain icon="el-icon-download" style="margin-left: 10px" @click="submitAddMaterial">选入备料</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
<el-table v-loading="" :data="tableData" stripe highlight-current-row border style="width: 100%;max-height: 230px;margin-top: 10px" height="230px" size="mini" @row-click="searchMX">
|
<el-table v-loading="" :data="tableData" stripe highlight-current-row border style="width: 100%;max-height: 230px;margin-top: 10px" height="230px" size="mini" @row-click="searchMX">
|
||||||
<el-table-column label="进程" prop="采购计划状态" align="center" width="70">
|
<el-table-column label="进程" prop="采购计划状态" align="center" width="70">
|
||||||
|
|||||||
Reference in New Issue
Block a user