卷料退库
明细拆分loading
This commit is contained in:
1 parent
43146db587
commit
8f8b558b46
4 files changed
+335
-237
No files matched your search
@@ -322,6 +322,7 @@ namespace HHWMS.Web.Controllers
|
||||
detail.SourceLine = receipt.SourceLine;
|
||||
detail.MaterialCode = receipt.MaterialCode;
|
||||
detail.MaterialName = receipt.MaterialName;
|
||||
detail.Coefficient = receipt.Coefficient;
|
||||
detail.Lot = receipt.Lot;
|
||||
detail.SupplierCode = receipt.SupplierCode;
|
||||
detail.SupplierName = receipt.SupplierName;
|
||||
|
||||
@@ -419,6 +419,8 @@ namespace HHWMS.Web.Controllers
|
||||
MaterialType = item.Sn,
|
||||
Qty = item.Qty,
|
||||
Batch = item.PH,
|
||||
Lot = item.Len,
|
||||
SourceCode = item.CJ,
|
||||
CreateTime = DateTime.Now,
|
||||
});
|
||||
}
|
||||
@@ -456,6 +458,18 @@ namespace HHWMS.Web.Controllers
|
||||
}
|
||||
return JsonMore(str);
|
||||
}
|
||||
|
||||
[Public]
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.ScanJh")]
|
||||
public ActionResult ScanJh(string data) {
|
||||
var material = _unitwork.FindSingle<Material>(x => x.UniqueCode == data);
|
||||
if(material == null)
|
||||
{
|
||||
return JsonMore(null,500,$"卷号{data}未找到!");
|
||||
}
|
||||
return JsonMore(material);
|
||||
}
|
||||
}
|
||||
|
||||
public class receipt4
|
||||
@@ -465,9 +479,10 @@ namespace HHWMS.Web.Controllers
|
||||
/// </summary>
|
||||
public string JH { get; set; }
|
||||
public decimal Qty { get; set; }
|
||||
public decimal Len { get; set; }
|
||||
public string Len { get; set; }
|
||||
public string Lot { get; set; }
|
||||
public string Sn { get; set;}
|
||||
public string CJ { get; set; }
|
||||
/// <summary>
|
||||
/// 片厚
|
||||
/// </summary>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<el-button type="primary" @@click="print">打印</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @@click="chaiBill">拆分</el-button>
|
||||
<el-button type="primary" @@click="chaiBill" :disabled="disabledChaiButton">拆分</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
@@ -50,7 +50,8 @@
|
||||
qty:'',
|
||||
loading: false,
|
||||
tableData: [],
|
||||
sumQty:0
|
||||
sumQty:0,
|
||||
disabledChaiButton:false
|
||||
};
|
||||
},
|
||||
mounted: function () {
|
||||
@@ -112,6 +113,7 @@
|
||||
},
|
||||
chaiBill() {
|
||||
var _this = this;
|
||||
var loadIndex = layer.load(0);
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
@@ -120,13 +122,16 @@
|
||||
},
|
||||
url: "/xwms/ReceiptDetail2/ChaiDetail",
|
||||
success: function (json) {
|
||||
layer.close(loadIndex);
|
||||
if (json.Code == 200) {
|
||||
layer.msg("拆分数据成功");
|
||||
_this.disabledChaiButton = true;
|
||||
} else {
|
||||
layer.alert(json.Msg, { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
}
|
||||
},
|
||||
error: function (json) {
|
||||
layer.close(loadIndex);
|
||||
layer.alert("失败", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user