|
|
@@ -267,7 +267,7 @@
|
|
|
],
|
|
|
cacheKeyUrl: `pcs-2511241029-${this.pageName + ''}-plan`,
|
|
|
teamList: [],
|
|
|
- productLineList:[]
|
|
|
+ productLineList: []
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -319,6 +319,7 @@
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ this.requestDict('记录规则类型');
|
|
|
getteampage({
|
|
|
pageNum: 1,
|
|
|
size: -1
|
|
|
@@ -335,9 +336,9 @@
|
|
|
getFactoryarea({
|
|
|
pageNum: 1,
|
|
|
size: 999,
|
|
|
- type: 4
|
|
|
+ type: 4
|
|
|
}).then((res) => {
|
|
|
- console.log(res,'res')
|
|
|
+ console.log(res, 'res');
|
|
|
this.productLineList =
|
|
|
res.list.map((item) => {
|
|
|
return {
|
|
|
@@ -382,7 +383,18 @@
|
|
|
this.reload(where);
|
|
|
},
|
|
|
openEdit(type, row = null) {
|
|
|
- this.$refs.programRulesDialogRef.open(type, row);
|
|
|
+ this.$refs.programRulesDialogRef.open(
|
|
|
+ type,
|
|
|
+ row,
|
|
|
+ this.getDictCode(
|
|
|
+ '记录规则类型',
|
|
|
+ this.pageName == 'productionRecords'
|
|
|
+ ? '生产记录'
|
|
|
+ : this.pageName == 'steamInjectionInspectionRecord'
|
|
|
+ ? '注汽检查记录'
|
|
|
+ : '固废记录'
|
|
|
+ )
|
|
|
+ );
|
|
|
},
|
|
|
async deleteRow(id) {
|
|
|
await recordrulesplanDelete([id]);
|