|
|
|
@ -191,14 +191,14 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item > |
|
|
|
<span slot="label" @click="getBaseList(3)">{{inputSearch10}} </span> |
|
|
|
<el-input v-model="currentPRDetailData.supplierid" style="width: 143px"></el-input> |
|
|
|
<el-input v-model="currentPRDetailData.supplierid" onkeyup="this.value = this.value.toUpperCase()" style="width: 143px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputSearch6"> |
|
|
|
<el-input style="text-align: left;width: 143px" onkeyup="this.value = this.value.toUpperCase()" |
|
|
|
v-model="currentPRDetailData.partno"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputSearch11"> |
|
|
|
<el-input style="text-align: left;width: 143px" v-model="currentPRDetailData.partdesc"></el-input> |
|
|
|
<el-input style="text-align: left;width: 143px" onkeyup="this.value = this.value.toUpperCase()" v-model="currentPRDetailData.partdesc"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="inputSearch7"> |
|
|
|
<el-input style="text-align: left;width: 143px" @change="getNumber()" |
|
|
|
@ -362,8 +362,9 @@ import { |
|
|
|
saveTableDefaultList, |
|
|
|
saveTableUser, |
|
|
|
getTableDefaultListLanguage, |
|
|
|
getTableUserListLanguage |
|
|
|
} from "@/api/table.js" |
|
|
|
getTableUserListLanguage, |
|
|
|
removerDefault, |
|
|
|
removerUser} from "@/api/table.js" |
|
|
|
import { |
|
|
|
userFavoriteList, saveUserFavorite, removeUserFavorite |
|
|
|
} from '@/api/userFavorite.js' |
|
|
|
@ -459,22 +460,22 @@ export default { |
|
|
|
favorite: false, |
|
|
|
addLanguage: false, |
|
|
|
pdfVisible : false, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "common1001", |
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
tableId: this.$route.meta.menuId + 'PR01', |
|
|
|
value1: true, |
|
|
|
visible: false, |
|
|
|
showDefault: false, |
|
|
|
// 默认table 查询参数 |
|
|
|
queryTable: { |
|
|
|
functionId: 2001, |
|
|
|
tableId: 'PRHeaderTable', |
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
tableId: this.$route.meta.menuId + 'PR01', |
|
|
|
languageCode: this.$i18n.locale |
|
|
|
}, |
|
|
|
// 用户table 查询参数 |
|
|
|
queryTableUser: { |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "PRHeaderTable", |
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
tableId: this.$route.meta.menuId + 'PR01', |
|
|
|
status: true, |
|
|
|
languageCode: this.$i18n.locale |
|
|
|
}, |
|
|
|
@ -490,9 +491,8 @@ export default { |
|
|
|
columnList: [ |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
serialNumber: 'PRHeader2001RequisitionNo', |
|
|
|
tableId: "PRHeaderTable", |
|
|
|
tableId: this.$route.meta.menuId + 'PR01', |
|
|
|
tableName: "PRHeader", |
|
|
|
columnProp: "requisitionno", |
|
|
|
headerAlign: "center", |
|
|
|
@ -507,9 +507,8 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
serialNumber: 'PRHeader2001OrderType', |
|
|
|
tableId: "PRHeaderTable", |
|
|
|
tableId: this.$route.meta.menuId + 'PR01', |
|
|
|
tableName: "PRHeader", |
|
|
|
columnProp: "orderType", |
|
|
|
headerAlign: "center", |
|
|
|
@ -524,9 +523,8 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
serialNumber: 'PRHeader2001Partno', |
|
|
|
tableId: "PRHeaderTable", |
|
|
|
tableId: this.$route.meta.menuId + 'PR01', |
|
|
|
tableName: "PRHeader", |
|
|
|
columnProp: "partno", |
|
|
|
headerAlign: "center", |
|
|
|
@ -541,9 +539,8 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
serialNumber: 'PRHeader2001Partdesc', |
|
|
|
tableId: "PRHeaderTable", |
|
|
|
tableId: this.$route.meta.menuId + 'PR01', |
|
|
|
tableName: "PRHeader", |
|
|
|
columnProp: "partdesc", |
|
|
|
headerAlign: "center", |
|
|
|
@ -558,9 +555,8 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
serialNumber: 'PRHeader2001Qty', |
|
|
|
tableId: "PRHeaderTable", |
|
|
|
tableId: this.$route.meta.menuId + 'PR01', |
|
|
|
tableName: "PRHeader", |
|
|
|
columnProp: "qty", |
|
|
|
headerAlign: "center", |
|
|
|
@ -575,9 +571,8 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
serialNumber: 'PRHeader2001Price', |
|
|
|
tableId: "PRHeaderTable", |
|
|
|
tableId: this.$route.meta.menuId + 'PR01', |
|
|
|
tableName: "PRHeader", |
|
|
|
columnProp: "price", |
|
|
|
headerAlign: "center", |
|
|
|
@ -592,9 +587,8 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
serialNumber: 'PRHeader2001TotalPrice', |
|
|
|
tableId: "PRHeaderTable", |
|
|
|
tableId: this.$route.meta.menuId + 'PR01', |
|
|
|
tableName: "PRHeader", |
|
|
|
columnProp: "totalPrice", |
|
|
|
headerAlign: "center", |
|
|
|
@ -609,9 +603,8 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
serialNumber: 'PRHeader2001Supplierid', |
|
|
|
tableId: "PRHeaderTable", |
|
|
|
tableId: this.$route.meta.menuId + 'PR01', |
|
|
|
tableName: "PRHeader", |
|
|
|
columnProp: "supplierid", |
|
|
|
headerAlign: "center", |
|
|
|
@ -626,9 +619,8 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
serialNumber: 'PRHeader2001Suppliername', |
|
|
|
tableId: "PRHeaderTable", |
|
|
|
tableId: this.$route.meta.menuId + 'PR01', |
|
|
|
tableName: "PRHeader", |
|
|
|
columnProp: "suppliername", |
|
|
|
headerAlign: "center", |
|
|
|
@ -643,9 +635,8 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
serialNumber: 'PRHeader2001FamilyName', |
|
|
|
tableId: "PRHeaderTable", |
|
|
|
tableId: this.$route.meta.menuId + 'PR01', |
|
|
|
tableName: "PRHeader", |
|
|
|
columnProp: "familyName", |
|
|
|
headerAlign: "center", |
|
|
|
@ -660,9 +651,8 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
serialNumber: 'PRHeader2001EnterDate', |
|
|
|
tableId: "PRHeaderTable", |
|
|
|
tableId: this.$route.meta.menuId + 'PR01', |
|
|
|
tableName: "PRHeader", |
|
|
|
columnProp: "enterDate", |
|
|
|
headerAlign: "center", |
|
|
|
@ -677,9 +667,8 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
serialNumber: 'PRHeader2001AuthorizeFlag', |
|
|
|
tableId: "PRHeaderTable", |
|
|
|
tableId: this.$route.meta.menuId + 'PR01', |
|
|
|
tableName: "PRHeader", |
|
|
|
columnProp: "strAuthorizeFlag", |
|
|
|
headerAlign: "center", |
|
|
|
@ -694,7 +683,6 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2101, |
|
|
|
serialNumber: 'review2101AuthorizeFlag', |
|
|
|
tableId: "review2101", |
|
|
|
tableName: "PRHeader", |
|
|
|
@ -714,8 +702,7 @@ export default { |
|
|
|
columnList1: [ |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "reviewDetails2001", |
|
|
|
tableId: this.$route.meta.menuId + 'PR02', |
|
|
|
tableName: "reviewDetails", |
|
|
|
columnProp: "stepId", |
|
|
|
headerAlign: "center", |
|
|
|
@ -730,8 +717,7 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "reviewDetails2001", |
|
|
|
tableId: this.$route.meta.menuId + 'PR02', |
|
|
|
tableName: "reviewDetails", |
|
|
|
columnProp: "authTypeDb", |
|
|
|
headerAlign: "center", |
|
|
|
@ -746,8 +732,7 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "reviewDetails2001", |
|
|
|
tableId: this.$route.meta.menuId + 'PR02', |
|
|
|
tableName: "reviewDetails", |
|
|
|
columnProp: "userName", |
|
|
|
headerAlign: "center", |
|
|
|
@ -762,8 +747,7 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "reviewDetails2001", |
|
|
|
tableId: this.$route.meta.menuId + 'PR02', |
|
|
|
tableName: "reviewDetails", |
|
|
|
columnProp: "userDisplay", |
|
|
|
headerAlign: "center", |
|
|
|
@ -778,8 +762,7 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "reviewDetails2001", |
|
|
|
tableId: this.$route.meta.menuId + 'PR02', |
|
|
|
tableName: "reviewDetails", |
|
|
|
columnProp: "authRuleId", |
|
|
|
headerAlign: "center", |
|
|
|
@ -794,8 +777,7 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "reviewDetails2001", |
|
|
|
tableId: this.$route.meta.menuId + 'PR02', |
|
|
|
tableName: "reviewDetails", |
|
|
|
columnProp: "strRuleDesc", |
|
|
|
headerAlign: "center", |
|
|
|
@ -810,8 +792,7 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "reviewDetails2001", |
|
|
|
tableId: this.$route.meta.menuId + 'PR02', |
|
|
|
tableName: "reviewDetails", |
|
|
|
columnProp: "strActAuthorizator", |
|
|
|
headerAlign: "center", |
|
|
|
@ -826,8 +807,7 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "reviewDetails2001", |
|
|
|
tableId: this.$route.meta.menuId + 'PR02', |
|
|
|
tableName: "reviewDetails", |
|
|
|
columnProp: "actAuthorizeDate", |
|
|
|
headerAlign: "center", |
|
|
|
@ -843,8 +823,7 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "reviewDetails2001", |
|
|
|
tableId: this.$route.meta.menuId + 'PR02', |
|
|
|
tableName: "reviewDetails", |
|
|
|
columnProp: "strCanAuthFlag", |
|
|
|
headerAlign: "center", |
|
|
|
@ -859,8 +838,7 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "reviewDetails2001", |
|
|
|
tableId: this.$route.meta.menuId + 'PR02', |
|
|
|
tableName: "reviewDetails", |
|
|
|
columnProp: "strAuthFlag", |
|
|
|
headerAlign: "center", |
|
|
|
@ -875,8 +853,7 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "reviewDetails2001", |
|
|
|
tableId: this.$route.meta.menuId + 'PR02', |
|
|
|
tableName: "reviewDetails", |
|
|
|
columnProp: "approveResult", |
|
|
|
headerAlign: "center", |
|
|
|
@ -891,8 +868,7 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "reviewDetails2001", |
|
|
|
tableId: this.$route.meta.menuId + 'PR02', |
|
|
|
tableName: "reviewDetails", |
|
|
|
columnProp: "remark", |
|
|
|
headerAlign: "center", |
|
|
|
@ -910,8 +886,7 @@ export default { |
|
|
|
columnList2: [ |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "fileDetail2001", |
|
|
|
tableId: this.$route.meta.menuId + 'PR03', |
|
|
|
tableName: "fileDetailTable", |
|
|
|
columnProp: "fileName", |
|
|
|
headerAlign: "center", |
|
|
|
@ -926,8 +901,7 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "fileDetail2001", |
|
|
|
tableId: this.$route.meta.menuId + 'PR03', |
|
|
|
tableName: "fileDetailTable", |
|
|
|
columnProp: "createDate", |
|
|
|
headerAlign: "center", |
|
|
|
@ -943,8 +917,7 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
tableId: "fileDetail2001", |
|
|
|
tableId: this.$route.meta.menuId + 'PR03', |
|
|
|
tableName: "fileDetailTable", |
|
|
|
columnProp: "createdBy", |
|
|
|
headerAlign: "center", |
|
|
|
@ -965,8 +938,7 @@ export default { |
|
|
|
orderTypeList: [], |
|
|
|
supplierList: [], |
|
|
|
queryButton: { |
|
|
|
functionId: 2001, |
|
|
|
table_id: 'common1001', |
|
|
|
table_id: this.$route.meta.menuId + 'PR01', |
|
|
|
languageCode: this.$i18n.locale, |
|
|
|
objectType: 'button' |
|
|
|
}, |
|
|
|
@ -1423,45 +1395,7 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
// 保存语言编辑 |
|
|
|
saveLanguageList(val) { |
|
|
|
saveSysLanguageOne(val).then(({data}) => { |
|
|
|
if (data.code == 0) { |
|
|
|
this.$message.success(data.msg) |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 编辑语言 |
|
|
|
addLanguageFun() { |
|
|
|
if (this.querySysLanguagePack.languageCode) { |
|
|
|
this.addLanguage = true |
|
|
|
this.languageColumnList = [] |
|
|
|
let query = { |
|
|
|
functionId: 2001, |
|
|
|
tableId: "common1002", |
|
|
|
languageCode: this.$i18n.locale |
|
|
|
} |
|
|
|
getTableDefaultListLanguage(query).then(({data}) => { |
|
|
|
if (data.rows.length > 0) { |
|
|
|
this.languageColumnList = data.rows |
|
|
|
} |
|
|
|
}) |
|
|
|
this.languageColumnList = this.columnList |
|
|
|
searchLanguageListByLanguageCode(this.querySysLanguagePack).then(({data}) => { |
|
|
|
this.languageDataList = data.rows |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$message("请选中一种语言") |
|
|
|
} |
|
|
|
}, |
|
|
|
// 获取多语言列表 |
|
|
|
getLanguageList() { |
|
|
|
searchSysLanguage(this.queryLanguage).then(({data}) => { |
|
|
|
this.languageList = data.rows |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取button的词典 |
|
|
|
getFunctionButtonList() { |
|
|
|
searchFunctionButtonList(this.queryButton).then(({data}) => { |
|
|
|
@ -1488,7 +1422,7 @@ export default { |
|
|
|
getTableUserAll() { |
|
|
|
let queryTable = { |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 2001, |
|
|
|
|
|
|
|
tableId: "common1001", |
|
|
|
languageCode: this.$i18n.locale |
|
|
|
} |
|
|
|
@ -1553,25 +1487,50 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 保存 默认配置 列 |
|
|
|
saveColumnList() { |
|
|
|
|
|
|
|
saveTableDefaultList(this.columnList).then(({data}) => { |
|
|
|
if (data.code == 0) { |
|
|
|
this.$message.success(data.msg) |
|
|
|
this.showDefault = false |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg) |
|
|
|
async saveColumnList() { |
|
|
|
// 删除所有的该页面下保存的数据 |
|
|
|
if (this.userColumnList) { |
|
|
|
//删除 user自定义的数据 |
|
|
|
await removerUser(this.queryTable) |
|
|
|
} |
|
|
|
// 删除默认配置 |
|
|
|
await removerDefault(this.queryTable) |
|
|
|
// 保存页面 table属性 |
|
|
|
let sumColumnList = this.columnList.concat(this.columnList1); |
|
|
|
sumColumnList = sumColumnList.map(item=> { |
|
|
|
return item = { |
|
|
|
tableId: item.tableId, |
|
|
|
tableName: item.tableName, |
|
|
|
columnProp: item.columnProp, |
|
|
|
columnLabel: item.columnLabel, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnWidth: null, |
|
|
|
format: null, |
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: false, |
|
|
|
serialNumber: null, |
|
|
|
columnType: null, |
|
|
|
align: null |
|
|
|
} |
|
|
|
}) |
|
|
|
saveTableDefaultList(this.columnList1).then(({data}) => { |
|
|
|
if (data.code == 0) { |
|
|
|
this.$message.success(data.msg) |
|
|
|
this.showDefault = false |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg) |
|
|
|
|
|
|
|
await saveTableDefaultList(sumColumnList) |
|
|
|
// 保存页面 button label title 属性 |
|
|
|
let buttons = this.buttonList.map( item => { |
|
|
|
return item = { |
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
languageValue: item.languageValue, |
|
|
|
objectId: item.objectId, |
|
|
|
objectType: item.objectType, |
|
|
|
tableId: item.tableId |
|
|
|
} |
|
|
|
}) |
|
|
|
this.getFunctionButtonList(); |
|
|
|
await saveButtonList(buttons) |
|
|
|
this.getFunctionButtonList() |
|
|
|
this.getColumnList() |
|
|
|
}, |
|
|
|
// 获取 tableDefault 列 |
|
|
|
|