|
|
|
@ -184,10 +184,10 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-form-item label="项目描述" style="height: 70px"> |
|
|
|
<el-form-item label="客户产品" style="height: 70px"> |
|
|
|
<el-input type="textarea" resize="none" :autosize="{minRows: 2, maxRows: 2}" v-model="projectData.projectDesc" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="客户应用/要求" style="height: 70px"> |
|
|
|
<el-form-item label="客户产品应用" style="height: 70px"> |
|
|
|
<el-input type="textarea" resize="none" :autosize="{minRows: 2, maxRows: 2}" v-model="projectData.customerRemark" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="其他要求" style="height: 70px"> |
|
|
|
@ -656,6 +656,43 @@ |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 101002001, |
|
|
|
serialNumber: '101002001Table1ProjectAmount', |
|
|
|
tableId: "101002001Table1", |
|
|
|
tableName: "项目信息主表", |
|
|
|
columnProp: "projectAmount", |
|
|
|
headerAlign: "center", |
|
|
|
align: "right", |
|
|
|
columnLabel: "项目年销售额CNY(K)", |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 170 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 101002001, |
|
|
|
serialNumber: '101002001Table1ProductCategory', |
|
|
|
tableId: "101002001Table1", |
|
|
|
tableName: "项目信息主表", |
|
|
|
columnProp: "productCategory", |
|
|
|
headerAlign: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: "产品类别", |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
showOverflowTooltip: true, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 180 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 101002001, |
|
|
|
@ -2118,6 +2155,55 @@ |
|
|
|
if(!this.accessField('10202002')){ |
|
|
|
this.columnList1=this.columnList1.filter(item => item.columnProp !== 'projectSource'); |
|
|
|
} |
|
|
|
this.ensureProjectListColumns() |
|
|
|
}, |
|
|
|
ensureProjectListColumns () { |
|
|
|
const columns = Array.isArray(this.columnList1) ? this.columnList1.slice() : [] |
|
|
|
const extras = [ |
|
|
|
{ |
|
|
|
columnProp: 'projectAmount', |
|
|
|
columnLabel: '项目年销售额CNY(K)', |
|
|
|
align: 'right', |
|
|
|
columnWidth: 170, |
|
|
|
serialNumber: '101002001Table1ProjectAmount' |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'productCategory', |
|
|
|
columnLabel: '产品类别', |
|
|
|
align: 'left', |
|
|
|
columnWidth: 180, |
|
|
|
serialNumber: '101002001Table1ProductCategory' |
|
|
|
} |
|
|
|
] |
|
|
|
let anchor = columns.findIndex(item => item.columnProp === 'customerProjectNo') |
|
|
|
extras.forEach(extra => { |
|
|
|
if (columns.some(item => item.columnProp === extra.columnProp)) { |
|
|
|
return |
|
|
|
} |
|
|
|
const column = { |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 101002001, |
|
|
|
serialNumber: extra.serialNumber, |
|
|
|
tableId: '101002001Table1', |
|
|
|
tableName: '项目信息主表', |
|
|
|
columnProp: extra.columnProp, |
|
|
|
headerAlign: 'center', |
|
|
|
align: extra.align, |
|
|
|
columnLabel: extra.columnLabel, |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
showOverflowTooltip: extra.columnProp === 'productCategory', |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: extra.columnWidth |
|
|
|
} |
|
|
|
const insertAt = anchor >= 0 ? anchor + 1 : columns.length |
|
|
|
columns.splice(insertAt, 0, column) |
|
|
|
anchor = insertAt |
|
|
|
}) |
|
|
|
this.columnList1 = columns |
|
|
|
}, |
|
|
|
|
|
|
|
toChangeMenu(changeNo){ |
|
|
|
@ -2276,7 +2362,7 @@ |
|
|
|
missing.push('直接客户') |
|
|
|
} |
|
|
|
if (!source.customerRemark || String(source.customerRemark).trim() === '') { |
|
|
|
missing.push('客户应用/要求') |
|
|
|
missing.push('客户产品应用') |
|
|
|
} |
|
|
|
if (missing.length) { |
|
|
|
this.$message.warning('项目经理不为空时,' + missing.join('、') + '不能为空') |
|
|
|
|