|
|
@ -365,7 +365,8 @@ |
|
|
import sample from "./com_project_sample";/*組件*/ |
|
|
import sample from "./com_project_sample";/*組件*/ |
|
|
import test from "./com_project_test";/*組件*/ |
|
|
import test from "./com_project_test";/*組件*/ |
|
|
import purchase from "./com_project_info_purchase_request";/*組件*/ |
|
|
import purchase from "./com_project_info_purchase_request";/*組件*/ |
|
|
import technicalSpecification from "./com_project_technicalSpecification";/*組件*/ |
|
|
|
|
|
|
|
|
import technicalSpecification from "./com_project_technicalSpecification"; |
|
|
|
|
|
/*組件*/ |
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
Chooselist, |
|
|
Chooselist, |
|
|
@ -988,29 +989,11 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
// $route: { |
|
|
|
|
|
// handler: function (val, oldVal) { |
|
|
|
|
|
// this.$router.onReady(() => { |
|
|
|
|
|
// if (this.$route.query.order) { |
|
|
|
|
|
// this.modelData.orderNo = this.$route.query.order |
|
|
|
|
|
// this.modelData.site = this.$route.query.site |
|
|
|
|
|
// this.modelData.user = this.$route.query.user |
|
|
|
|
|
// if (this.modelData.orderNo) { |
|
|
|
|
|
// this.tableHanddle(this.modelData) |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// }) |
|
|
|
|
|
// }, |
|
|
|
|
|
// // 深度观察监听 |
|
|
|
|
|
// deep: true |
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
|
|
// updateData: { |
|
|
|
|
|
|
|
|
// columnList1: { |
|
|
// deep: true, |
|
|
// deep: true, |
|
|
// handler: function (newV, oldV) { |
|
|
// handler: function (newV, oldV) { |
|
|
// this.updateData.projectID = this.updateData.projectID.toUpperCase(); |
|
|
|
|
|
// this.updateData.oriSOOrderNo = this.updateData.oriSOOrderNo.toUpperCase(); |
|
|
|
|
|
// this.updateData.orderType = this.updateData.orderType.toUpperCase(); |
|
|
|
|
|
|
|
|
// debugger |
|
|
|
|
|
// |
|
|
// } |
|
|
// } |
|
|
// } |
|
|
// } |
|
|
}, |
|
|
}, |
|
|
@ -1360,12 +1343,14 @@ |
|
|
status: true, |
|
|
status: true, |
|
|
languageCode: this.$i18n.locale |
|
|
languageCode: this.$i18n.locale |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
await getTableUserListLanguage(queryTableUser).then(({data}) => { |
|
|
await getTableUserListLanguage(queryTableUser).then(({data}) => { |
|
|
if (data.rows.length > 0) { |
|
|
if (data.rows.length > 0) { |
|
|
//this.columnList = [] |
|
|
//this.columnList = [] |
|
|
switch (columnId) { |
|
|
switch (columnId) { |
|
|
case 1: |
|
|
case 1: |
|
|
this.columnList1 = data.rows |
|
|
this.columnList1 = data.rows |
|
|
|
|
|
this.checkField(); |
|
|
break; |
|
|
break; |
|
|
// case 2: |
|
|
// case 2: |
|
|
// this.columnList1 = data.rows |
|
|
// this.columnList1 = data.rows |
|
|
@ -1387,7 +1372,6 @@ |
|
|
|
|
|
|
|
|
// 获取 tableDefault 列 |
|
|
// 获取 tableDefault 列 |
|
|
async getColumnList(tableId, columnId) { |
|
|
async getColumnList(tableId, columnId) { |
|
|
this.queryTable.tableId = tableId |
|
|
|
|
|
let queryTable= { |
|
|
let queryTable= { |
|
|
functionId: this.$route.meta.menuId, |
|
|
functionId: this.$route.meta.menuId, |
|
|
tableId: tableId, |
|
|
tableId: tableId, |
|
|
@ -1398,6 +1382,7 @@ |
|
|
switch (columnId) { |
|
|
switch (columnId) { |
|
|
case 1: |
|
|
case 1: |
|
|
this.columnList1 = data.rows |
|
|
this.columnList1 = data.rows |
|
|
|
|
|
this.checkField(); |
|
|
break; |
|
|
break; |
|
|
// case 2: |
|
|
// case 2: |
|
|
// this.columnList1 = data.rows |
|
|
// this.columnList1 = data.rows |
|
|
@ -1512,6 +1497,17 @@ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
checkField(){ |
|
|
|
|
|
|
|
|
|
|
|
if(!this.accessField('10202001')){ |
|
|
|
|
|
this.columnList1=this.columnList1.filter(item => item.columnProp !== 'customerId'); |
|
|
|
|
|
this.columnList1=this.columnList1.filter(item => item.columnProp !== 'customerName'); |
|
|
|
|
|
} |
|
|
|
|
|
if(!this.accessField('10202002')){ |
|
|
|
|
|
this.columnList1=this.columnList1.filter(item => item.columnProp !== 'projectSource'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.getTableUserColumn(this.$route.meta.menuId+'table1',1) |
|
|
this.getTableUserColumn(this.$route.meta.menuId+'table1',1) |
|
|
|