<template>
|
<div ref="container" class="page-list-container">
|
<!--数据Table-->
|
<yrt-data-list :ref="dataListRef" :editor-ref="editorRef" :data-options="dataOptions" :fields.sync="dataListOptions.fields" :buttons="dataListOptions.buttons" :button-click="buttonClick" :data-list-selections.sync="dataListSelections" :auth-nodes="authNodes">
|
</yrt-data-list>
|
|
<!--数据编辑器Editor-->
|
<yrt-editor :ref="editorRef" :data-list-ref="dataListRef" v-bind="editorOptions" :data-options="dataOptions" :action.sync="editorOptions.action" :visible.sync="editorOptions.config.visible" :detail-button-click="detailButtonClick" :auth-nodes="authNodes">
|
</yrt-editor>
|
|
<!-- 拣选更新 -->
|
<picking-reload-dialog ref="checkpickingDialog" :visible.sync="checkpickingVisible"></picking-reload-dialog>
|
</div>
|
</template>
|
|
<script>
|
import baseLayout from "@/components/common/base-layout.vue";
|
import pickingReloadDialog from "./components/picking-reload-dialog.vue";
|
export default {
|
name: "outbound-sale-order-yl",
|
components: { pickingReloadDialog },
|
mixins: [baseLayout],
|
data() {
|
return { checkpickingVisible: false };
|
},
|
methods: {
|
// 列表页面按钮点击事件
|
buttonClick(authNode) {
|
switch (authNode) {
|
// 拣选更新
|
case "pickingReload":
|
this.pickingReload();
|
return false;
|
}
|
},
|
pickingReload() {
|
if (this.dataListSelections.length !== 1) {
|
this.$message.error("请选择一条单据进行操作");
|
return false;
|
}
|
const rowInfo = this.dataListSelections[0];
|
|
const statusText = rowInfo.statusText;
|
const statusList = ["下架完成"];
|
if (statusList.indexOf(statusText) < 0) {
|
this.$message.error(`只有【${statusList.join(",")}】的单据才允许入库!`);
|
return false;
|
}
|
this.checkpickingVisible = true; // 显示对话框
|
var order_Id = rowInfo.order_Id;
|
this.$refs.checkpickingDialog.initData(order_Id);
|
}
|
}
|
};
|
</script>
|