|
@@ -237,7 +237,7 @@
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
-
|
|
|
|
|
|
|
+ <!--
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-form-item label="组织机构:">
|
|
<el-form-item label="组织机构:">
|
|
|
<auth-selection
|
|
<auth-selection
|
|
@@ -247,7 +247,7 @@
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
></auth-selection>
|
|
></auth-selection>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- </el-row>
|
|
|
|
|
|
|
+ </el-row> -->
|
|
|
</div>
|
|
</div>
|
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
@@ -258,100 +258,100 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { getFactoryarea } from '@/api/saleOrder';
|
|
|
|
|
-export default {
|
|
|
|
|
- props: {},
|
|
|
|
|
- data() {
|
|
|
|
|
- // 默认表单数据
|
|
|
|
|
- const defaultWhere = {
|
|
|
|
|
- keyWord: '',
|
|
|
|
|
- code: '',
|
|
|
|
|
- productionPlanCode: '',
|
|
|
|
|
- produceRoutingName: '',
|
|
|
|
|
- productCode: '',
|
|
|
|
|
- productName: '',
|
|
|
|
|
- brandNo: '',
|
|
|
|
|
- model: '',
|
|
|
|
|
- factoryId: '',
|
|
|
|
|
- status: '',
|
|
|
|
|
- createTime: []
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ import { getFactoryarea } from '@/api/saleOrder';
|
|
|
|
|
+ export default {
|
|
|
|
|
+ props: {},
|
|
|
|
|
+ data() {
|
|
|
|
|
+ // 默认表单数据
|
|
|
|
|
+ const defaultWhere = {
|
|
|
|
|
+ keyWord: '',
|
|
|
|
|
+ code: '',
|
|
|
|
|
+ productionPlanCode: '',
|
|
|
|
|
+ produceRoutingName: '',
|
|
|
|
|
+ productCode: '',
|
|
|
|
|
+ productName: '',
|
|
|
|
|
+ brandNo: '',
|
|
|
|
|
+ model: '',
|
|
|
|
|
+ factoryId: '',
|
|
|
|
|
+ status: '',
|
|
|
|
|
+ createTime: []
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
- return {
|
|
|
|
|
- options_factory: [],
|
|
|
|
|
- // 表单数据
|
|
|
|
|
- where: { ...defaultWhere },
|
|
|
|
|
- statusOpt: [
|
|
|
|
|
- { label: '暂停', value: 9 },
|
|
|
|
|
- { label: '终止', value: 10 },
|
|
|
|
|
- { label: '待下达', value: 8 },
|
|
|
|
|
- { label: '待生产', value: 4 },
|
|
|
|
|
- { label: '生产中', value: 5 }
|
|
|
|
|
- ],
|
|
|
|
|
- teamList: []
|
|
|
|
|
- };
|
|
|
|
|
- },
|
|
|
|
|
- computed: {
|
|
|
|
|
- // 是否开启响应式布局
|
|
|
|
|
- styleResponsive() {
|
|
|
|
|
- return this.$store.state.theme.styleResponsive;
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- watch: {},
|
|
|
|
|
- mounted() {
|
|
|
|
|
- this.getFactoryarea();
|
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
|
- this.where.factoryId = this.$store.state.user.info.factoryId;
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
- created() {},
|
|
|
|
|
- methods: {
|
|
|
|
|
- getFactoryarea() {
|
|
|
|
|
- let par = {
|
|
|
|
|
- type: 1,
|
|
|
|
|
- size: 9999
|
|
|
|
|
|
|
+ return {
|
|
|
|
|
+ options_factory: [],
|
|
|
|
|
+ // 表单数据
|
|
|
|
|
+ where: { ...defaultWhere },
|
|
|
|
|
+ statusOpt: [
|
|
|
|
|
+ { label: '暂停', value: 9 },
|
|
|
|
|
+ { label: '终止', value: 10 },
|
|
|
|
|
+ { label: '待下达', value: 8 },
|
|
|
|
|
+ { label: '待生产', value: 4 },
|
|
|
|
|
+ { label: '生产中', value: 5 }
|
|
|
|
|
+ ],
|
|
|
|
|
+ teamList: []
|
|
|
};
|
|
};
|
|
|
- getFactoryarea(par).then((res) => {
|
|
|
|
|
- if (res.list && res.list.length > 0) {
|
|
|
|
|
- this.options_factory = res.list.map((el) => {
|
|
|
|
|
- console.log(el.id);
|
|
|
|
|
- console.log(el.name);
|
|
|
|
|
- return {
|
|
|
|
|
- value: el.id,
|
|
|
|
|
- label: el.name
|
|
|
|
|
- };
|
|
|
|
|
- });
|
|
|
|
|
- console.log(this.options_factory);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
},
|
|
},
|
|
|
- /* 搜索 */
|
|
|
|
|
- search() {
|
|
|
|
|
- const where = { ...this.where };
|
|
|
|
|
- if (where.createTime?.length) {
|
|
|
|
|
- where.createTimeStart = where.createTime[0];
|
|
|
|
|
- where.createTimeEnd = where.createTime[1];
|
|
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ // 是否开启响应式布局
|
|
|
|
|
+ styleResponsive() {
|
|
|
|
|
+ return this.$store.state.theme.styleResponsive;
|
|
|
}
|
|
}
|
|
|
- delete where.createTime;
|
|
|
|
|
- console.log(where);
|
|
|
|
|
- this.$emit('search', where);
|
|
|
|
|
},
|
|
},
|
|
|
- /* 重置 */
|
|
|
|
|
- reset() {
|
|
|
|
|
- this.where = { ...this.defaultWhere };
|
|
|
|
|
- this.search();
|
|
|
|
|
|
|
+ watch: {},
|
|
|
|
|
+ mounted() {
|
|
|
|
|
+ this.getFactoryarea();
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.where.factoryId = this.$store.state.user.info.factoryId;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ created() {},
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ getFactoryarea() {
|
|
|
|
|
+ let par = {
|
|
|
|
|
+ type: 1,
|
|
|
|
|
+ size: 9999
|
|
|
|
|
+ };
|
|
|
|
|
+ getFactoryarea(par).then((res) => {
|
|
|
|
|
+ if (res.list && res.list.length > 0) {
|
|
|
|
|
+ this.options_factory = res.list.map((el) => {
|
|
|
|
|
+ console.log(el.id);
|
|
|
|
|
+ console.log(el.name);
|
|
|
|
|
+ return {
|
|
|
|
|
+ value: el.id,
|
|
|
|
|
+ label: el.name
|
|
|
|
|
+ };
|
|
|
|
|
+ });
|
|
|
|
|
+ console.log(this.options_factory);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ /* 搜索 */
|
|
|
|
|
+ search() {
|
|
|
|
|
+ const where = { ...this.where };
|
|
|
|
|
+ if (where.createTime?.length) {
|
|
|
|
|
+ where.createTimeStart = where.createTime[0];
|
|
|
|
|
+ where.createTimeEnd = where.createTime[1];
|
|
|
|
|
+ }
|
|
|
|
|
+ delete where.createTime;
|
|
|
|
|
+ console.log(where);
|
|
|
|
|
+ this.$emit('search', where);
|
|
|
|
|
+ },
|
|
|
|
|
+ /* 重置 */
|
|
|
|
|
+ reset() {
|
|
|
|
|
+ this.where = { ...this.defaultWhere };
|
|
|
|
|
+ this.search();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
-};
|
|
|
|
|
|
|
+ };
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
-.ele-form-actions {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: flex-start;
|
|
|
|
|
- padding-top: 4.5px;
|
|
|
|
|
-}
|
|
|
|
|
-.searchExpend {
|
|
|
|
|
- padding: 20px 50px 0 30px;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ .ele-form-actions {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: flex-start;
|
|
|
|
|
+ padding-top: 4.5px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .searchExpend {
|
|
|
|
|
+ padding: 20px 50px 0 30px;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|