出库记录出库单查询功能修改

This commit is contained in:
2024-06-17 15:46:41 +08:00
parent 646aae7853
commit 070f84777a
3 changed files with 3 additions and 9 deletions

View File

@@ -407,7 +407,7 @@
pageSize: 30, pageSize: 30,
shipmentNum: query, shipmentNum: query,
type: 1, type: 1,
status: 1 status: -1
} }
this.loading1 = true this.loading1 = true
setTimeout(() => { setTimeout(() => {

View File

@@ -438,7 +438,7 @@
typeFormat(row, column) { typeFormat(row, column) {
return this.selectDictLabel(this.typeOptions, row.type) return this.selectDictLabel(this.typeOptions, row.type)
}, },
// 状态0-停用 1-启用)字典翻译 // 出库计划状态0-停用 1-启用)字典翻译
statusFormat(row, column) { statusFormat(row, column) {
return this.selectDictLabel(this.statusOptions, row.status) return this.selectDictLabel(this.statusOptions, row.status)
}, },
@@ -448,7 +448,6 @@
this.form.customNo = item.customNo this.form.customNo = item.customNo
this.form.customName = item.customName this.form.customName = item.customName
this.form.customAddress = item.customAddress this.form.customAddress = item.customAddress
console.log('handleCustomSelectChange', item)
}, },
// 出库单物料表多选框选中数据 // 出库单物料表多选框选中数据
handleMaterialSelectionChange(selection) { handleMaterialSelectionChange(selection) {
@@ -461,7 +460,6 @@
handlerDeleteMaterial(ids = null) { handlerDeleteMaterial(ids = null) {
let that = this let that = this
const Ids = ids || this.materialIds const Ids = ids || this.materialIds
console.log(that.form, Ids)
this.$confirm('是否确认移除数据项?') this.$confirm('是否确认移除数据项?')
.then(() => { .then(() => {
const list = JSON.parse(JSON.stringify(that.form.materialList)) const list = JSON.parse(JSON.stringify(that.form.materialList))
@@ -504,8 +502,6 @@
submitForm: function () { submitForm: function () {
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {
if (valid) { if (valid) {
console.log(JSON.stringify(this.form))
console.log('add', this.form)
if (this.form.shipmentNum != undefined && this.opertype === 2) { if (this.form.shipmentNum != undefined && this.opertype === 2) {
updateWmOutOrder(this.form) updateWmOutOrder(this.form)
.then((res) => { .then((res) => {
@@ -521,7 +517,6 @@
//TODO 错误逻辑 //TODO 错误逻辑
}) })
} else { } else {
console.log('addWmOutOrder')
for (let item of this.form.materialList) { for (let item of this.form.materialList) {
if ((item.requireOutNum * 1) < 1) { if ((item.requireOutNum * 1) < 1) {
this.$message.error('需求量不可为0!' + item.partnumber); this.$message.error('需求量不可为0!' + item.partnumber);
@@ -541,7 +536,6 @@
// } // }
addWmOutOrder(this.form) addWmOutOrder(this.form)
.then((res) => { .then((res) => {
console.log('addWmOutOrder', res)
if (res.code === 200) { if (res.code === 200) {
this.msgSuccess('新增成功') this.msgSuccess('新增成功')
this.open = false this.open = false

View File

@@ -147,7 +147,7 @@
pageSize: 30, pageSize: 30,
shipmentNum: query, shipmentNum: query,
type: 1, type: 1,
status: 1 status: -1
} }
this.loading1 = true this.loading1 = true
setTimeout(() => { setTimeout(() => {