|
|
@@ -213,6 +213,7 @@
|
|
|
import userSettingMatterProcessDrawer from './components/user-setting-matter-process-drawer.vue';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
import productionCheck from './components/productionCheck.vue';
|
|
|
+ import { getFactoryarea } from '@/api/factoryModel';
|
|
|
|
|
|
export default {
|
|
|
name: 'technologyProduction',
|
|
|
@@ -369,7 +370,8 @@
|
|
|
taskId: null,
|
|
|
cacheKeyUrl: 'abfad404-technology-production',
|
|
|
controlListNewList: [], //给公共组件使用
|
|
|
- workCenterList: [] //工作中心列表
|
|
|
+ workCenterList: [], //工作中心列表
|
|
|
+ factoryList: []
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -387,6 +389,13 @@
|
|
|
type: 'input',
|
|
|
placeholder: ''
|
|
|
},
|
|
|
+ {
|
|
|
+ label: '所属工厂:',
|
|
|
+ value: 'factoriesId',
|
|
|
+ type: 'select',
|
|
|
+ placeholder: '',
|
|
|
+ planList: this.factoryList
|
|
|
+ },
|
|
|
{
|
|
|
label: '控制码:',
|
|
|
value: 'controlId',
|
|
|
@@ -414,6 +423,7 @@
|
|
|
created() {
|
|
|
this.getControlList();
|
|
|
this.getListWorkCenter();
|
|
|
+ this.getFactoryList();
|
|
|
this.requestDict('记录规则报工类型');
|
|
|
this.requestDict('记录规则执行方式');
|
|
|
this.requestDict('记录规则事项类型');
|
|
|
@@ -428,6 +438,19 @@
|
|
|
this.$refs.userSettingMatterRef.openSetting(this.selection);
|
|
|
},
|
|
|
|
|
|
+ async getFactoryList() {
|
|
|
+ await getFactoryarea({
|
|
|
+ type: 1,
|
|
|
+ size: 9999,
|
|
|
+ type: 2
|
|
|
+ }).then((res) => {
|
|
|
+ this.factoryList = res.list.map((m) => ({
|
|
|
+ label: m.factoryName,
|
|
|
+ value: m.factoryId
|
|
|
+ }));
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
//生产前准备
|
|
|
productionPreparation() {
|
|
|
if (this.selection.length == 0) {
|