|
|
@@ -280,11 +280,6 @@ export default {
|
|
|
type: String,
|
|
|
default: '主数据'
|
|
|
},
|
|
|
- // 是否是报工修改进入
|
|
|
- isReportEdit: {
|
|
|
- type: Boolean,
|
|
|
- default: false
|
|
|
- }
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -438,7 +433,7 @@ export default {
|
|
|
if (this.source == '配件回收') {
|
|
|
return true;
|
|
|
}
|
|
|
- if (scope.row.id && this.state == '可操作') {
|
|
|
+ if (scope.row.demandId && this.state == '可操作') {
|
|
|
return false;
|
|
|
}
|
|
|
let flag =
|
|
|
@@ -463,7 +458,7 @@ export default {
|
|
|
if (this.source == '配件回收') {
|
|
|
return true;
|
|
|
}
|
|
|
- if (row.id && this.state == '可操作') {
|
|
|
+ if (row.demandId && this.state == '可操作') {
|
|
|
return false;
|
|
|
}
|
|
|
let flag =
|
|
|
@@ -474,7 +469,7 @@ export default {
|
|
|
// 方案表格操作权限
|
|
|
schemeTableTool() {
|
|
|
return (row) => {
|
|
|
- if (row.id && this.state == '可操作') {
|
|
|
+ if (row.demandId && this.state == '可操作') {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
@@ -485,7 +480,7 @@ export default {
|
|
|
// input输入权限
|
|
|
inputOperate() {
|
|
|
return (row) => {
|
|
|
- if (row.id && this.state == '可操作') {
|
|
|
+ if (row.demandId && this.state == '可操作') {
|
|
|
return true;
|
|
|
}
|
|
|
let flag = this.type == 'view';
|
|
|
@@ -664,6 +659,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.$set(this.form.tableList[this.currentIndex], 'typeId', '2');
|
|
|
+ console.log(this.form.tableList,'----------------')
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
async warehouseChange(item, row, index) {
|