|
@@ -988,6 +988,13 @@ export default {
|
|
|
if (this.detailData.status == 1) {
|
|
|
this.option.disabled = true;
|
|
|
}
|
|
|
+ if (localStorage.getItem("roleName") == "贸易") {
|
|
|
+ this.findObject(this.tableOption.column, "purchaseCost").hide = true;
|
|
|
+ this.findObject(
|
|
|
+ this.tableOption.column,
|
|
|
+ "purchaseCost"
|
|
|
+ ).showColumn = false;
|
|
|
+ }
|
|
|
this.getWorkDicts("product_properties").then(res => {
|
|
|
this.findObject(this.tableOption.column, "itemProp").dicData =
|
|
|
res.data.data;
|
|
@@ -1083,8 +1090,8 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- addRow(){
|
|
|
- this.data.push({$cellEdit:true})
|
|
|
+ addRow() {
|
|
|
+ this.data.push({ $cellEdit: true });
|
|
|
},
|
|
|
corpAttnChange() {
|
|
|
this.corpsattns.forEach(e => {
|
|
@@ -2039,7 +2046,7 @@ export default {
|
|
|
if (res.data.code == 200) {
|
|
|
this.detailData.status = 2;
|
|
|
this.option = this.$options.data().option;
|
|
|
- this.$refs.crud.refreshTable()
|
|
|
+ this.$refs.crud.refreshTable();
|
|
|
}
|
|
|
});
|
|
|
}
|