库存回传新增flag
新增入库单明细,判断重复 出库页面修改 散料出库后回库按钮
This commit is contained in:
1 parent
0269655891
commit
c27a357771
7 files changed
+155
-104
No files matched your search
@@ -26,7 +26,7 @@
|
||||
</el-row>
|
||||
<el-row v-show="showTable">
|
||||
<el-divider></el-divider>
|
||||
<el-table :data="invTable" height="400" stripe border @@row-click="selectdata"
|
||||
<el-table :data="invTable" height="200" stripe border @@row-click="selectdata"
|
||||
style="width: 100%">
|
||||
<el-table-column label="唯一码" width="220" align="center" prop="UniqueCode"></el-table-column>
|
||||
<el-table-column label="编码" align="center" prop="MaterialCode"></el-table-column>
|
||||
@@ -62,15 +62,10 @@
|
||||
<el-input v-model.number="form.qty" ref="qty" ></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-form-item style="float:right">
|
||||
<el-button type="primary" @@click="onSubmit">拣货</el-button>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
|
||||
<el-row v-show="showBack">
|
||||
<el-divider></el-divider>
|
||||
<el-form-item style="float: right">
|
||||
<el-button type="primary" @@click="back">回库</el-button>
|
||||
<el-button v-show="showBack" type="success" @@click="back">回库</el-button>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
</el-form>
|
||||
@@ -114,10 +109,6 @@
|
||||
select(data) {
|
||||
this.form.code = "";
|
||||
this.form.type = data;
|
||||
if (data == "slbox")
|
||||
this.showBack = true;
|
||||
else
|
||||
this.showBack = fasle;
|
||||
},
|
||||
// 扫描料塔站台号
|
||||
scanCode(data) {
|
||||
@@ -193,6 +184,9 @@
|
||||
arr.splice(index, 1);
|
||||
}
|
||||
});
|
||||
if (_this.invTable.length == 0 && _this.form.type == "slbox") {
|
||||
_this.showBack = true;
|
||||
}
|
||||
_this.$refs['form'].resetFields();
|
||||
} else {
|
||||
_this.$message({
|
||||
@@ -223,32 +217,43 @@
|
||||
});
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
data: { boxCode: _this.form.code, isFull: _this.form.isFull },
|
||||
url: "/shipment/ShipOut/BoxBack",
|
||||
success: function (json) {
|
||||
if (json.Code != 200) {
|
||||
this.$confirm('确定执行回库动作?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
data: { boxCode: _this.form.code, isFull: _this.form.isFull },
|
||||
url: "/shipment/ShipOut/BoxBack",
|
||||
success: function (json) {
|
||||
if (json.Code != 200) {
|
||||
_this.$message({
|
||||
message: "回库任务创建失败!" + json.Msg,
|
||||
type: "warning",
|
||||
duration: "10000",
|
||||
});
|
||||
} else {
|
||||
_this.$message({
|
||||
message: "回库任务创建成功!"
|
||||
});
|
||||
_this.resetForm('form');
|
||||
}
|
||||
},
|
||||
error: function (json) {
|
||||
_this.$message({
|
||||
message: "回库任务创建失败!" + json.Msg,
|
||||
type: "warning",
|
||||
message: "回库任务创建失败!",
|
||||
type: "error",
|
||||
duration: "10000",
|
||||
});
|
||||
} else {
|
||||
_this.$message({
|
||||
message: "回库任务创建成功!"
|
||||
});
|
||||
_this.resetForm('form');
|
||||
}
|
||||
},
|
||||
error: function (json) {
|
||||
_this.$message({
|
||||
message: "回库任务创建失败!",
|
||||
type: "error",
|
||||
duration: "10000",
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'info',
|
||||
message: '已取消'
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user