@@ -87,7 +95,7 @@
:limit.sync="listQuery.MaxResultCount"
@pagination="getList"
/>
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -123,7 +180,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default {
name: "sendUnsettledDiffReport",
- components: { Pagination, Detail,importExcel },
+ components: { Pagination, Detail, importExcel },
directives: { permission },
data() {
return {
@@ -172,6 +229,12 @@ export default {
MaxResultCount: 15,
},
page: 1,
+ formCount: {
+ versionValue: undefined,
+ },
+ listExportQuery: {
+ version: "",
+ },
dialogFormVisible: false,
multipleSelection: [],
formTitle: "",
@@ -190,7 +253,7 @@ export default {
},
created() {
this.getList();
- //this.getVersionInfo();
+ this.getVersionInfo();
},
computed: {
/** 列表字段 */
@@ -209,6 +272,57 @@ export default {
},
},
methods: {
+ save() {
+ this.$refs.formCount.validate((valid) => {
+ if (valid) {
+ this.formLoading = true;
+ if (
+ this.formCount.versionValue == "" ||
+ this.formCount.versionValue == undefined
+ ) {
+ this.$message({
+ message: "必须选择版本!",
+ type: "warning",
+ });
+ this.formLoading = false;
+ return;
+ }
+
+ this.listExportQuery.version = this.formCount.versionValue; //版本
+ console.log(
+ "生成出库单-条件:" + JSON.stringify(this.listExportQuery)
+ );
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPutExtend",
+ this.listExportQuery
+ )
+ .then((res) => {
+ this.$notify({
+ title: "成功",
+ message: "生成成功",
+ type: "success",
+ duration: 2000,
+ });
+
+ this.getList();
+ this.formLoading = false;
+ this.dialogFormVisible = false;
+ })
+ .catch(() => {
+ this.formLoading = false;
+ this.dialogFormVisible = false;
+ });
+ }
+ });
+ },
+ handleCreate() {
+ if (this.$refs["formCount"] !== undefined) {
+ this.$refs["formCount"].resetFields();
+ }
+ this.formTitle = "生成出库单";
+ this.dialogFormVisible = true;
+ },
handleImportExcel() {
//导入
this.showExcelImport = true;
@@ -277,7 +391,10 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15;
}
this.$axios
- .posts("/api/settleaccount/wmskanbanoutput/WmsKanbanList", this.listQuery)
+ .posts(
+ "/api/settleaccount/wmskanbanoutputextend/WmsKanbanList",
+ this.listQuery
+ )
.then((response) => {
this.list = response.items;
//alert(JSON.stringify(response.Items))
diff --git a/vue/src/views/ux/billManage/sparePart/index.vue b/vue/src/views/ux/billManage/sparePart/index.vue
index 143ea982..1fc69b6a 100644
--- a/vue/src/views/ux/billManage/sparePart/index.vue
+++ b/vue/src/views/ux/billManage/sparePart/index.vue
@@ -44,14 +44,14 @@
@click="handleCreateBills()"
>生成出库单(支持批量)
-