|
@@ -89,6 +89,7 @@
|
|
|
type="warning"
|
|
|
icon="el-icon-download"
|
|
|
size="mini"
|
|
|
+ :disabled="single"
|
|
|
@click="handlePullDetail"
|
|
|
v-hasPermi="['biz:adjustmentorder:pulldetail']"
|
|
|
>拉取结转明细</el-button>
|
|
@@ -385,23 +386,40 @@ export default {
|
|
|
/** 拉取记录按钮操作 */
|
|
|
handlePull() {
|
|
|
const queryParams = this.queryParams;
|
|
|
+ // 添加遮罩
|
|
|
+ const _this=this
|
|
|
this.$confirm('是否确认导出所有库存内调结转出入库记录数据项?', "警告", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(function() {
|
|
|
- return pullAdjustmentorder(queryParams);
|
|
|
+ const loading = _this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: 'Loading',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ });
|
|
|
+ return pullAdjustmentorder(queryParams,loading,_this);
|
|
|
})
|
|
|
},
|
|
|
/** 拉取明细按钮操作 */
|
|
|
handlePullDetail(row) {
|
|
|
const adjustmentOrderSns = row.adjustmentOrderSn || this.ids;
|
|
|
+
|
|
|
+ // 添加遮罩
|
|
|
+ const _this=this
|
|
|
this.$confirm('是否确认导出所有库存内调结转出入库记录数据项?', "警告", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(function() {
|
|
|
- return pullAdjustmentorderDetail(adjustmentOrderSns);
|
|
|
+ const loading = _this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: 'Loading',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ });
|
|
|
+ return pullAdjustmentorderDetail(adjustmentOrderSns,loading,_this);
|
|
|
})
|
|
|
}
|
|
|
}
|