|
@@ -12,9 +12,10 @@
|
|
|
></el-super-search>
|
|
|
|
|
|
<div class="btn_grooup">
|
|
|
- <el-button type="primary" :size="size" @click="demandWindow"
|
|
|
+ <!-- <el-button type="primary" :size="size" @click="demandWindow"
|
|
|
>需求窗口期</el-button
|
|
|
- >
|
|
|
+ > -->
|
|
|
+ <DemandButton :size="size" :dict="dict"></DemandButton>
|
|
|
<el-button type="primary" :size="size" @click="addDivision"
|
|
|
>新增</el-button
|
|
|
>
|
|
@@ -250,7 +251,7 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 需求窗口期 -->
|
|
|
- <el-dialog title="需求窗口期" :visible.sync="setDemand.open" width="800px">
|
|
|
+ <!-- <el-dialog title="需求窗口期" :visible.sync="setDemand.open" width="800px">
|
|
|
<div slot="footer">
|
|
|
<el-button :size="size" @click="setDemand.open = false"
|
|
|
>取 消</el-button
|
|
@@ -308,8 +309,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <!-- <span style="color: red">注:周计划星期填写范围1-7,月计划填写范围1-12</span> -->
|
|
|
- </el-dialog>
|
|
|
+ </el-dialog> -->
|
|
|
|
|
|
<Add
|
|
|
v-model="isList"
|
|
@@ -340,8 +340,8 @@ import {
|
|
|
exportDemand,
|
|
|
submitDemand,
|
|
|
confirmSubmit,
|
|
|
- getDemandWindowList,
|
|
|
- saveDemandWindow,
|
|
|
+ // getDemandWindowList,
|
|
|
+ // saveDemandWindow,
|
|
|
} from "@/api/purchase/purchaseDemand.js";
|
|
|
export default {
|
|
|
name: "PurchaseDemandList",
|
|
@@ -352,6 +352,7 @@ export default {
|
|
|
ElSuperUxTable: () => import("@/components/super-ux-table/index.vue"),
|
|
|
BatchImport: () => import("@/components/BatchImport/index.vue"),
|
|
|
ElSuperSearch: () => import("@/components/super-search/index.vue"),
|
|
|
+ DemandButton: () => import("./demand/index.vue"),
|
|
|
},
|
|
|
dicts: [
|
|
|
...dicts,
|
|
@@ -424,10 +425,10 @@ export default {
|
|
|
rowDetail: {},
|
|
|
disable: false,
|
|
|
ids: [],
|
|
|
- setDemand: {
|
|
|
- open: false,
|
|
|
- gridData: [],
|
|
|
- },
|
|
|
+ // setDemand: {
|
|
|
+ // open: false,
|
|
|
+ // gridData: [],
|
|
|
+ // },
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -797,28 +798,28 @@ export default {
|
|
|
this.download.category = selection.code;
|
|
|
},
|
|
|
// 需求窗口期配置
|
|
|
- demandWindow() {
|
|
|
- this.setDemand.open = true;
|
|
|
- this.$nextTick(() => {
|
|
|
- getDemandWindowList().then((res) => {
|
|
|
- if (res.code === 200) {
|
|
|
- this.setDemand.gridData = res.rows;
|
|
|
- }
|
|
|
- });
|
|
|
- });
|
|
|
- },
|
|
|
- saveDemand() {
|
|
|
- let params = this.setDemand.gridData;
|
|
|
- saveDemandWindow(params).then((res) => {
|
|
|
- if (res.code === 200) {
|
|
|
- this.$modal.notifySuccess("保存成功");
|
|
|
- this.setDemand.open = false;
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
- changeDeadline(row) {
|
|
|
- row.delFlag = "2";
|
|
|
- },
|
|
|
+ // demandWindow() {
|
|
|
+ // this.setDemand.open = true;
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // getDemandWindowList().then((res) => {
|
|
|
+ // if (res.code === 200) {
|
|
|
+ // this.setDemand.gridData = res.rows;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // saveDemand() {
|
|
|
+ // let params = this.setDemand.gridData;
|
|
|
+ // saveDemandWindow(params).then((res) => {
|
|
|
+ // if (res.code === 200) {
|
|
|
+ // this.$modal.notifySuccess("保存成功");
|
|
|
+ // this.setDemand.open = false;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // changeDeadline(row) {
|
|
|
+ // row.delFlag = "2";
|
|
|
+ // },
|
|
|
},
|
|
|
};
|
|
|
</script>
|