卷料退库
明细拆分loading
This commit is contained in:
1 parent
43146db587
commit
8f8b558b46
4 files changed
+335
-237
No files matched your search
@@ -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