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