铁芯打印
入库单明细拆分,打印拆分 出库对账(仓库建使用)
This commit is contained in:
1 parent
d19f62e48b
commit
cec65caa32
11 files changed
+170
-57
No files matched your search
@@ -147,7 +147,8 @@
|
||||
"width": 220,
|
||||
"field": "lot",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle"
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 8, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
@@ -192,7 +193,8 @@
|
||||
"width": 132,
|
||||
"field": "code",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle"
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
@@ -227,7 +229,8 @@
|
||||
"width": 132,
|
||||
"field": "qty",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle"
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
@@ -250,7 +253,8 @@
|
||||
"width": 132,
|
||||
"field": "batch",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle"
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
|
||||
@@ -42,9 +42,9 @@
|
||||
"height": 40,
|
||||
"width": 220,
|
||||
"field": "lot",
|
||||
"testData": "123123124412412544534214354432255424213412341324123",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle"
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 8, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
@@ -90,7 +90,8 @@
|
||||
"field": "code",
|
||||
"testData": "1324123412341234123",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle"
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
@@ -127,7 +128,8 @@
|
||||
"field": "qty",
|
||||
"testData": "5555",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle"
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
@@ -151,7 +153,8 @@
|
||||
"field": "batch",
|
||||
"testData": "HYB2202030003",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle"
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
|
||||
@@ -82,11 +82,11 @@
|
||||
wmsQty = Number.parseFloat(item.WmsQty);
|
||||
sumQty = sumQty + Number.parseFloat(item.QTYSTU_0);
|
||||
});
|
||||
console.log(sumQty, wmsQty)
|
||||
if (sumQty > wmsQty) {
|
||||
layer.alert("数量不满足,无法出库!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
}
|
||||
else {
|
||||
// console.log(sumQty, wmsQty)
|
||||
// if (sumQty > wmsQty) {
|
||||
// layer.alert("数量不满足,无法出库!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
// }
|
||||
// else {
|
||||
|
||||
$.ajax({
|
||||
type: "post",
|
||||
@@ -110,7 +110,7 @@
|
||||
}
|
||||
});
|
||||
// layer.closeAll();
|
||||
}
|
||||
// }
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
address: '',
|
||||
address: 'HYB',
|
||||
zjcode: '',
|
||||
materialcode: '',
|
||||
gdbill: '',
|
||||
@@ -188,13 +188,13 @@
|
||||
cell.querySelector('.item__input').style.display = 'none'
|
||||
cell.querySelector('.item__txt').style.display = 'block'
|
||||
}
|
||||
if (property == "THISQTYSTU") {
|
||||
// 库存单位除以系数
|
||||
row.THISQTYSTU = row.THISQTYSTU * row.RETEXTCOE_0
|
||||
if (row.THISQTYSTU > row.RETQTY_0 - row.USEQTY_0) {
|
||||
row.THISQTYSTU = row.THISQTYSTU;
|
||||
}
|
||||
}
|
||||
// if (property == "THISQTYSTU") {
|
||||
// // 库存单位除以系数
|
||||
// row.THISQTYSTU = row.THISQTYSTU * row.RETEXTCOE_0
|
||||
// if (row.THISQTYSTU > row.RETQTY_0 - row.USEQTY_0) {
|
||||
// row.THISQTYSTU = row.THISQTYSTU;
|
||||
// }
|
||||
// }
|
||||
},
|
||||
//每页条数改变时触发 选择一页显示多少行
|
||||
handleSizeChange(val) {
|
||||
@@ -238,7 +238,7 @@
|
||||
},
|
||||
create() {
|
||||
var _this = this;
|
||||
_this.$confirm('注意:您确认要对此单据进行创建采购退货吗?', '提示', {
|
||||
_this.$confirm('注意:您确认要对此单据进行创建生产领料吗?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
|
||||
Reference in new issue
Block a user