项目计划管理
This commit is contained in:
@@ -350,3 +350,10 @@ h3 {
|
|||||||
width:150px;
|
width:150px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// text 按钮禁用后背景颜色 20200309
|
||||||
|
//.el-button.is-disabled.is-plain, .el-button.is-disabled.is-plain:focus, .el-button.is-disabled.is-plain:hover {
|
||||||
|
// background-color: rgba(255,255,255,0.0);
|
||||||
|
// border-color: #EBEEF5;
|
||||||
|
// color: #C0C4CC;
|
||||||
|
//}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<el-input v-model="CustomerNameValue" placeholder="客户名称" size="small" clearable style="width:200px"/>
|
<el-input v-model="CustomerNameValue" placeholder="客户名称" size="small" clearable style="width:200px"/>
|
||||||
<el-button size="small" icon="el-icon-search" type="primary" plain style="margin-left: 10px" @click="pageSize=10; pageCurrent=1;searchTable()">查询</el-button>
|
<el-button size="small" icon="el-icon-search" type="primary" plain style="margin-left: 10px" @click="pageSize=10; pageCurrent=1;searchTable()">查询</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row v-show="false">
|
<el-row v-if="false">
|
||||||
<h3 style="display: inline-block;margin: 0">签订日期:</h3>
|
<h3 style="display: inline-block;margin: 0">签订日期:</h3>
|
||||||
<el-date-picker v-model="time_SignStart" size="small" value-format="yyyy-MM-dd" type="date" style="margin-top:10px;width: 180px" placeholder="签订日期" class="time"/> ~
|
<el-date-picker v-model="time_SignStart" size="small" value-format="yyyy-MM-dd" type="date" style="margin-top:10px;width: 180px" placeholder="签订日期" class="time"/> ~
|
||||||
<el-date-picker v-model="time_SignFinish" size="small" value-format="yyyy-MM-dd" type="date" style="margin-top:10px;width: 180px" placeholder="签订日期" class="time"/>
|
<el-date-picker v-model="time_SignFinish" size="small" value-format="yyyy-MM-dd" type="date" style="margin-top:10px;width: 180px" placeholder="签订日期" class="time"/>
|
||||||
@@ -32,9 +32,10 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card>
|
<el-card style="overflow: auto">
|
||||||
|
<el-col style="width: 1400px;">
|
||||||
<!--<h2 style="display: inline-block;margin: 0 0 10px 0">总计划:</h2>-->
|
<!--<h2 style="display: inline-block;margin: 0 0 10px 0">总计划:</h2>-->
|
||||||
<el-table v-loading="loading" :data="tableData" height="400" highlight-current-row style="margin-top: 5px;width: 100%;" border element-loading-text="拼命加载中">
|
<el-table v-loading="loading" :data="tableData" height="300" highlight-current-row style="margin-top: 5px;width: 100%;" border element-loading-text="拼命加载中">
|
||||||
<el-table-column label="项目编号" align="center" width="140px" fixed="left">
|
<el-table-column label="项目编号" align="center" width="140px" fixed="left">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<template v-if="scope.row.edit">
|
<template v-if="scope.row.edit">
|
||||||
@@ -45,7 +46,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="项目名称" align="center" width="120px" fixed="left">
|
<el-table-column label="项目名称" align="center" min-width="120px" fixed="left">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.项目名称 }}
|
{{ scope.row.项目名称 }}
|
||||||
</template>
|
</template>
|
||||||
@@ -65,22 +66,22 @@
|
|||||||
{{ scope.row.机床数量 }}
|
{{ scope.row.机床数量 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="签订日期" align="center" width="120px">
|
<el-table-column label="签订日期" align="center" width="125px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.合同签订日期 !== '1900-01-01' ? scope.row.合同签订日期 : '' }}
|
{{ scope.row.合同签订日期 !== '1900-01-01' ? scope.row.合同签订日期 : '' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="交货期" align="center" width="120px">
|
<el-table-column label="交货期" align="center" width="125px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.发货节点 !== '1900-01-01' ? scope.row.发货节点 : '' }}
|
{{ scope.row.发货节点 !== '1900-01-01' ? scope.row.发货节点 : '' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="设备预验节点" align="center" width="150px">
|
<el-table-column label="设备预验节点" align="center" width="125px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.设备预验收节点 !== '1900/1/1' ? scope.row.设备预验收节点 : '' }}
|
{{ scope.row.设备预验收节点 !== '1900/1/1' ? scope.row.设备预验收节点 : '' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="安装调试节点" align="center" width="150px">
|
<el-table-column label="安装调试节点" align="center" width="125px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.安装调试节点 !== '1900/1/1' ? scope.row.安装调试节点 : '' }}
|
{{ scope.row.安装调试节点 !== '1900/1/1' ? scope.row.安装调试节点 : '' }}
|
||||||
</template>
|
</template>
|
||||||
@@ -229,6 +230,10 @@
|
|||||||
@size-change="handleSizeChange"
|
@size-change="handleSizeChange"
|
||||||
@current-change="handleCurrentChange"/>
|
@current-change="handleCurrentChange"/>
|
||||||
</div>
|
</div>
|
||||||
|
</el-col>
|
||||||
|
<el-col style="width: 200px;">
|
||||||
|
sadasd
|
||||||
|
</el-col>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card>
|
<el-card>
|
||||||
@@ -440,61 +445,11 @@ export default {
|
|||||||
if (this.time_SignStart !== '' && this.time_SignStart !== null && this.time_SignFinish !== '' && this.time_SignFinish) { this.time_Signcheck = 1 } else { this.time_Signcheck = 0 }
|
if (this.time_SignStart !== '' && this.time_SignStart !== null && this.time_SignFinish !== '' && this.time_SignFinish) { this.time_Signcheck = 1 } else { this.time_Signcheck = 0 }
|
||||||
if (this.time_deliveryStart !== '' && this.time_deliveryStart !== null && this.time_deliveryFinish !== '' && this.time_deliveryFinish) { this.time_deliverycheck = 1 } else { this.time_deliverycheck = 0 }
|
if (this.time_deliveryStart !== '' && this.time_deliveryStart !== null && this.time_deliveryFinish !== '' && this.time_deliveryFinish) { this.time_deliverycheck = 1 } else { this.time_deliverycheck = 0 }
|
||||||
searchtable(this.projectValuecheck, this.projectValue, this.toolNumValuecheck, this.toolNumValue, this.CustomerNameValuecheck, this.CustomerNameValue, this.time_Signcheck, this.time_SignStart, this.time_SignFinish, this.time_deliverycheck, this.time_deliveryStart, this.time_deliveryFinish, this.pageCurrent, this.pageSize).then(response => {
|
searchtable(this.projectValuecheck, this.projectValue, this.toolNumValuecheck, this.toolNumValue, this.CustomerNameValuecheck, this.CustomerNameValue, this.time_Signcheck, this.time_SignStart, this.time_SignFinish, this.time_deliverycheck, this.time_deliveryStart, this.time_deliveryFinish, this.pageCurrent, this.pageSize).then(response => {
|
||||||
|
console.log(response.data)
|
||||||
if (response.data.total === 0) {
|
if (response.data.total === 0) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
} else {
|
} else {
|
||||||
for (let i = 0; i < response.data.rows.length; i++) {
|
for (let i = 0; i < response.data.rows.length; i++) {
|
||||||
if (response.data.rows[i].合同签订日期 !== '' && response.data.rows[i].合同签订日期 !== null) {
|
|
||||||
response.data.rows[i].合同签订日期 = response.data.rows[i].合同签订日期.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].发货节点 !== '' && response.data.rows[i].发货节点 !== null) {
|
|
||||||
response.data.rows[i].发货节点 = response.data.rows[i].发货节点.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].设备预验收节点 !== '' && response.data.rows[i].设备预验收节点 !== null) {
|
|
||||||
response.data.rows[i].设备预验收节点 = response.data.rows[i].设备预验收节点.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].安装调试节点 !== '' && response.data.rows[i].安装调试节点 !== null) {
|
|
||||||
response.data.rows[i].安装调试节点 = response.data.rows[i].安装调试节点.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].机床设计完成时间 !== '' && response.data.rows[i].机床设计完成时间 !== null) {
|
|
||||||
response.data.rows[i].机床设计完成时间 = response.data.rows[i].机床设计完成时间.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].采购完成时间 !== '' && response.data.rows[i].采购完成时间 !== null) {
|
|
||||||
response.data.rows[i].采购完成时间 = response.data.rows[i].采购完成时间.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].备料完成时间 !== '' && response.data.rows[i].备料完成时间 !== null) {
|
|
||||||
response.data.rows[i].备料完成时间 = response.data.rows[i].备料完成时间.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].机床生产完成时间 !== '' && response.data.rows[i].机床生产完成时间 !== null) {
|
|
||||||
response.data.rows[i].机床生产完成时间 = response.data.rows[i].机床生产完成时间.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].机床装配完成时间 !== '' && response.data.rows[i].机床装配完成时间 !== null) {
|
|
||||||
response.data.rows[i].机床装配完成时间 = response.data.rows[i].机床装配完成时间.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].机床设计实际完成时间 !== '' && response.data.rows[i].机床设计实际完成时间 !== null) {
|
|
||||||
response.data.rows[i].机床设计实际完成时间 = response.data.rows[i].机床设计实际完成时间.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].采购实际完成时间 !== '' && response.data.rows[i].采购实际完成时间 !== null) {
|
|
||||||
response.data.rows[i].采购实际完成时间 = response.data.rows[i].采购实际完成时间.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].备料实际完成时间 !== '' && response.data.rows[i].备料实际完成时间 !== null) {
|
|
||||||
response.data.rows[i].备料实际完成时间 = response.data.rows[i].备料实际完成时间.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].机床生产实际完成时间 !== '' && response.data.rows[i].机床生产实际完成时间 !== null) {
|
|
||||||
response.data.rows[i].机床生产实际完成时间 = response.data.rows[i].机床生产实际完成时间.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].机床装配实际完成时间 !== '' && response.data.rows[i].机床装配实际完成时间 !== null) {
|
|
||||||
response.data.rows[i].机床装配实际完成时间 = response.data.rows[i].机床装配实际完成时间.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].审图计划开始时间 !== '' && response.data.rows[i].审图计划开始时间 !== null) {
|
|
||||||
response.data.rows[i].审图计划开始时间 = response.data.rows[i].审图计划开始时间.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].审图计划完成时间 !== '' && response.data.rows[i].审图计划完成时间 !== null) {
|
|
||||||
response.data.rows[i].审图计划完成时间 = response.data.rows[i].审图计划完成时间.split(' ')[0]
|
|
||||||
}
|
|
||||||
if (response.data.rows[i].审图实际完成时间 !== '' && response.data.rows[i].审图实际完成时间 !== null) {
|
|
||||||
response.data.rows[i].审图实际完成时间 = response.data.rows[i].审图实际完成时间.split(' ')[0]
|
|
||||||
}
|
|
||||||
this.tableData.push({
|
this.tableData.push({
|
||||||
edit: false,
|
edit: false,
|
||||||
项目编号: response.data.rows[i].项目编号,
|
项目编号: response.data.rows[i].项目编号,
|
||||||
|
|||||||
@@ -64,7 +64,8 @@ export default {
|
|||||||
case 'EquipmentMonitoring':
|
case 'EquipmentMonitoring':
|
||||||
document.getElementById('app-main').style.width = '1710px'
|
document.getElementById('app-main').style.width = '1710px'
|
||||||
break
|
break
|
||||||
case '0': // 补位用(switch至少两个case,否则显示警告)
|
case 'ProjectPlanningManagementNew': // 项目计划管理
|
||||||
|
document.getElementById('app-main').style.width = '1710px'
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
document.getElementById('app-main').style.width = '1380px'
|
document.getElementById('app-main').style.width = '1380px'
|
||||||
|
|||||||
Reference in New Issue
Block a user