项目计划管理新未完成

This commit is contained in:
Vergil
2020-03-05 11:04:45 +08:00
parent 0f769e083d
commit ccf07d73a3
2 changed files with 143 additions and 144 deletions

View File

@@ -2,6 +2,7 @@ import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
// 项目
export function getProject() {
return request({
url: '',
@@ -14,6 +15,7 @@ export function getProject() {
}
})
}
// 机床
export function getToolNum(check, num) {
return request({
url: '',
@@ -55,6 +57,7 @@ export function searchgroupName(num) {
}
})
}
// 客户名称
export function getCustomerName() {
return request({
url: '',
@@ -67,6 +70,7 @@ export function getCustomerName() {
}
})
}
// 查询表1
export function searchtable(num1, num2, num3, num4, num5, num6, num7, num8, num9, num10, num11, num12, pageCurrent, pageSize) {
return request({
url: '',
@@ -81,6 +85,7 @@ export function searchtable(num1, num2, num3, num4, num5, num6, num7, num8, num9
}
})
}
// 编辑表1
export function editTable(num1, num2, num3, num5, num13, num14, num15, num6, num7, num8, num9, num10, num11, num12) {
return request({
url: '',
@@ -94,6 +99,7 @@ export function editTable(num1, num2, num3, num5, num13, num14, num15, num6, num
}
})
}
// 查询表2
export function searchTable2(num1, num2) {
return request({
url: '',
@@ -107,6 +113,7 @@ export function searchTable2(num1, num2) {
}
})
}
// 编辑表2
export function editTable2(num1, num2, num3, num4, num5, num6, num7, num8, num9, num10) {
return request({
url: '',
@@ -120,6 +127,7 @@ export function editTable2(num1, num2, num3, num4, num5, num6, num7, num8, num9,
}
})
}
// 删除表2
export function Delete(num1) {
return request({
url: '',
@@ -133,6 +141,7 @@ export function Delete(num1) {
}
})
}
// 新增表2
export function addTable(num1, num2) {
return request({
url: '',

View File

@@ -20,21 +20,21 @@
</el-select>
<h3 style="display: inline-block;margin: 0 0 0 20px">客户名称:</h3>
<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-row>
<el-row>
<el-row v-show="false">
<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_SignFinish" size="small" value-format="yyyy-MM-dd" type="date" style="margin-top:10px;width: 180px" placeholder="签订日期" class="time"/>
<h3 style="display: inline-block;margin: 0 0 0 20px">交货期:</h3>
<el-date-picker v-model="time_deliveryStart" size="small" value-format="yyyy-MM-dd" type="date" style="margin-top:10px;width: 180px" placeholder="交货期" class="time"/> ~
<el-date-picker v-model="time_deliveryFinish" size="small" value-format="yyyy-MM-dd" type="date" style="margin-top:10px;width: 180px" placeholder="交货期" class="time"/>
<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-card>
<el-card>
<h2 style="display: inline-block;margin: 0 0 10px 0">总计划:</h2>
<el-table v-loading="loading" :data="tableData" height="750" highlight-current-row style="width: 100%;" border element-loading-text="拼命加载中">
<!--<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-column label="项目编号" align="center" width="140px" fixed="left">
<template slot-scope="scope">
<template v-if="scope.row.edit">
@@ -85,142 +85,132 @@
{{ scope.row.安装调试节点 !== '1900/1/1' ? scope.row.安装调试节点 : '' }}
</template>
</el-table-column>
<el-table-column label="设计者" align="center" width="90px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-input v-model="scope.row.机床设计者" size="mini" style="width: 100%"/>
</template>
<template v-else>
{{ scope.row.机床设计者 }}
</template>
</template>
</el-table-column>
<el-table-column label="审图(计划开始)" align="center" width="170px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.审图计划开始时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
{{ scope.row.审图计划开始时间 !== '1900/1/1' ? scope.row.审图计划开始时间 : '' }}
</template>
</template>
</el-table-column>
<el-table-column label="审图(计划完成)" align="center" width="170px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.审图计划完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
{{ scope.row.审图计划完成时间 !== '1900/1/1' ? scope.row.审图计划完成时间 : '' }}
</template>
</template>
</el-table-column>
<el-table-column label="审图(实际完成)" align="center" width="170px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.审图实际完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
{{ scope.row.审图实际完成时间 !== '1900/1/1' ? scope.row.审图实际完成时间 : '' }}
</template>
</template>
</el-table-column>
<el-table-column label="发图(计划)" align="center" width="150px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.机床设计完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
<el-button class="bold-font" type="text" @click="code = 1;openDialog(scope.row)">{{ scope.row.机床设计完成时间 !== '1900-01-01 00:00:00' ? scope.row.机床设计完成时间 : '-' }}</el-button>
</template>
</template>
</el-table-column>
<el-table-column label="发图(实际)" align="center" width="150px">
<template slot-scope="scope">
<div class="bold-font">{{ scope.row.机床设计实际完成时间 !== '1900-01-01' ? scope.row.机床设计实际完成时间 : '-' }}</div>
</template>
</el-table-column>
<el-table-column label="采购(计划)" align="center" width="150px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.采购完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
<el-button class="bold-font" type="text" @click="code = 2;openDialog(scope.row)">{{ scope.row.采购完成时间 !== '1900-01-01' ? scope.row.采购完成时间 : '-' }}</el-button>
</template>
</template>
</el-table-column>
<el-table-column label="采购(实际)" align="center" width="150px">
<template slot-scope="scope">
<div class="bold-font">{{ scope.row.采购实际完成时间 !== '1900-01-01' ? scope.row.采购实际完成时间 : '-' }}</div>
</template>
</el-table-column>
<el-table-column label="备料(计划)" align="center" width="150px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.备料完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
<el-button class="bold-font" type="text" @click="code = 3;openDialog(scope.row)">{{ scope.row.备料完成时间 !== '1900-01-01' ? scope.row.备料完成时间 : '-' }}</el-button>
</template>
</template>
</el-table-column>
<el-table-column label="备料(实际)" align="center" width="150px">
<template slot-scope="scope">
<div class="bold-font">{{ scope.row.备料实际完成时间 !== '1900-01-01' ? scope.row.备料实际完成时间 : '-' }}</div>
</template>
</el-table-column>
<el-table-column label="制造(计划)" align="center" width="150px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.机床生产完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
<el-button class="bold-font" type="text" @click="code = 4;openDialog(scope.row)">{{ scope.row.机床生产完成时间 !== '1900-01-01' ? scope.row.机床生产完成时间 : '-' }}</el-button>
</template>
</template>
</el-table-column>
<el-table-column label="制造(实际)" align="center" width="150px">
<template slot-scope="scope">
<div class="bold-font">{{ scope.row.机床生产实际完成时间 !== '1900-01-01' ? scope.row.机床生产实际完成时间 : '-' }}</div>
</template>
</el-table-column>
<el-table-column label="装配(计划)" align="center" width="150px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-date-picker v-model="scope.row.机床装配完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>
</template>
<template v-else>
<el-button class="bold-font" type="text" @click="code = 5;openDialog(scope.row)">{{ scope.row.机床装配完成时间 !== '1900-01-01' ? scope.row.机床装配完成时间 : '-' }}</el-button>
</template>
</template>
</el-table-column>
<el-table-column label="装配(实际)" align="center" width="150px">
<template slot-scope="scope">
<div class="bold-font">{{ scope.row.机床装配实际完成时间 !== '1900-01-01' ? scope.row.机床装配实际完成时间 : '-' }}</div>
</template>
</el-table-column>
<!--<el-table-column label="顺序" align="center" width="100px">-->
<!--<el-table-column label="设计者" align="center" width="90px">-->
<!--<template slot-scope="scope">-->
<!--<template v-if="scope.row.edit">-->
<!--<el-input v-model="scope.row.完成顺序" size="mini"/>-->
<!--<el-input v-model="scope.row.机床设计者" size="mini" style="width: 100%"/>-->
<!--</template>-->
<!--<template v-else>-->
<!--{{ scope.row.完成顺序 }}-->
<!--{{ scope.row.机床设计者 }}-->
<!--</template>-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column label="更新" align="center" width="90px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-input v-model="scope.row.更新" size="mini"/>
</template>
<template v-else>
{{ scope.row.更新 }}
</template>
</template>
</el-table-column>
<el-table-column label="操作" width="150px" align="center">
<!--<el-table-column label="审图(计划开始)" align="center" width="170px">-->
<!--<template slot-scope="scope">-->
<!--<template v-if="scope.row.edit">-->
<!--<el-date-picker v-model="scope.row.审图计划开始时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>-->
<!--</template>-->
<!--<template v-else>-->
<!--{{ scope.row.审图计划开始时间 !== '1900/1/1' ? scope.row.审图计划开始时间 : '' }}-->
<!--</template>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="审图(计划完成)" align="center" width="170px">-->
<!--<template slot-scope="scope">-->
<!--<template v-if="scope.row.edit">-->
<!--<el-date-picker v-model="scope.row.审图计划完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>-->
<!--</template>-->
<!--<template v-else>-->
<!--{{ scope.row.审图计划完成时间 !== '1900/1/1' ? scope.row.审图计划完成时间 : '' }}-->
<!--</template>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="审图(实际完成)" align="center" width="170px">-->
<!--<template slot-scope="scope">-->
<!--<template v-if="scope.row.edit">-->
<!--<el-date-picker v-model="scope.row.审图实际完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>-->
<!--</template>-->
<!--<template v-else>-->
<!--{{ scope.row.审图实际完成时间 !== '1900/1/1' ? scope.row.审图实际完成时间 : '' }}-->
<!--</template>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="发图(计划)" align="center" width="150px">-->
<!--<template slot-scope="scope">-->
<!--<template v-if="scope.row.edit">-->
<!--<el-date-picker v-model="scope.row.机床设计完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>-->
<!--</template>-->
<!--<template v-else>-->
<!--<el-button class="bold-font" type="text" @click="code = 1;openDialog(scope.row)">{{ scope.row.机床设计完成时间 !== '1900-01-01 00:00:00' ? scope.row.机床设计完成时间 : '-' }}</el-button>-->
<!--</template>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="发图(实际)" align="center" width="150px">-->
<!--<template slot-scope="scope">-->
<!--<div class="bold-font">{{ scope.row.机床设计实际完成时间 !== '1900-01-01' ? scope.row.机床设计实际完成时间 : '-' }}</div>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="采购(计划)" align="center" width="150px">-->
<!--<template slot-scope="scope">-->
<!--<template v-if="scope.row.edit">-->
<!--<el-date-picker v-model="scope.row.采购完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>-->
<!--</template>-->
<!--<template v-else>-->
<!--<el-button class="bold-font" type="text" @click="code = 2;openDialog(scope.row)">{{ scope.row.采购完成时间 !== '1900-01-01' ? scope.row.采购完成时间 : '-' }}</el-button>-->
<!--</template>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="采购(实际)" align="center" width="150px">-->
<!--<template slot-scope="scope">-->
<!--<div class="bold-font">{{ scope.row.采购实际完成时间 !== '1900-01-01' ? scope.row.采购实际完成时间 : '-' }}</div>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="备料(计划)" align="center" width="150px">-->
<!--<template slot-scope="scope">-->
<!--<template v-if="scope.row.edit">-->
<!--<el-date-picker v-model="scope.row.备料完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>-->
<!--</template>-->
<!--<template v-else>-->
<!--<el-button class="bold-font" type="text" @click="code = 3;openDialog(scope.row)">{{ scope.row.备料完成时间 !== '1900-01-01' ? scope.row.备料完成时间 : '-' }}</el-button>-->
<!--</template>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="备料(实际)" align="center" width="150px">-->
<!--<template slot-scope="scope">-->
<!--<div class="bold-font">{{ scope.row.备料实际完成时间 !== '1900-01-01' ? scope.row.备料实际完成时间 : '-' }}</div>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="制造(计划)" align="center" width="150px">-->
<!--<template slot-scope="scope">-->
<!--<template v-if="scope.row.edit">-->
<!--<el-date-picker v-model="scope.row.机床生产完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>-->
<!--</template>-->
<!--<template v-else>-->
<!--<el-button class="bold-font" type="text" @click="code = 4;openDialog(scope.row)">{{ scope.row.机床生产完成时间 !== '1900-01-01' ? scope.row.机床生产完成时间 : '-' }}</el-button>-->
<!--</template>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="制造(实际)" align="center" width="150px">-->
<!--<template slot-scope="scope">-->
<!--<div class="bold-font">{{ scope.row.机床生产实际完成时间 !== '1900-01-01' ? scope.row.机床生产实际完成时间 : '-' }}</div>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="装配(计划)" align="center" width="150px">-->
<!--<template slot-scope="scope">-->
<!--<template v-if="scope.row.edit">-->
<!--<el-date-picker v-model="scope.row.机床装配完成时间" value-format="yyyy-MM-dd" size="mini" type="date" style="width: 100%"/>-->
<!--</template>-->
<!--<template v-else>-->
<!--<el-button class="bold-font" type="text" @click="code = 5;openDialog(scope.row)">{{ scope.row.机床装配完成时间 !== '1900-01-01' ? scope.row.机床装配完成时间 : '-' }}</el-button>-->
<!--</template>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="装配(实际)" align="center" width="150px">-->
<!--<template slot-scope="scope">-->
<!--<div class="bold-font">{{ scope.row.机床装配实际完成时间 !== '1900-01-01' ? scope.row.机床装配实际完成时间 : '-' }}</div>-->
<!--</template>-->
<!--</el-table-column>-->
<!--<el-table-column label="更新" align="center" width="90px">-->
<!--<template slot-scope="scope">-->
<!--<template v-if="scope.row.edit">-->
<!--<el-input v-model="scope.row.更新" size="mini"/>-->
<!--</template>-->
<!--<template v-else>-->
<!--{{ scope.row.更新 }}-->
<!--</template>-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column v-if="false" label="操作" width="150px" align="center">
<template slot-scope="scope">
<el-button v-if="scope.row.edit" type="success" size="small" @click="confirmEdit(scope.row)">确定</el-button>
<el-button v-else type="primary" size="small" @click="scope.row.edit=!scope.row.edit">编辑</el-button>
@@ -758,10 +748,10 @@ export default {
<style scoped>
.el-card {
border-color: rgb(0, 12, 57);
color: white;
/*border-color: rgb(0, 12, 57);*/
/*color: white;*/
margin-bottom: 5px;
background-color: rgb(0, 12, 57);
/*background-color: rgb(0, 12, 57);*/
}
span{
margin: 10px 0 10px 10px;
@@ -772,23 +762,23 @@ export default {
</style>
<style>
.bold-font .el-table{
font: bold 18px arial!important;
font: bold 20px arial!important;
margin: 0 0 10px 0;
color: white;
/*color: white;*/
}
.bold-font .el-table td{
background-color: rgb(0, 12, 57)!important;
/*background-color: rgb(0, 12, 57)!important;*/
}
.bold-font .el-table th{
color: white;
background-color: rgb(0, 12, 57)!important;
/*color: white;*/
/*background-color: rgb(0, 12, 57)!important;*/
}
.bold-font .el-table div{
color: white;
background-color: rgb(0, 12, 57)!important;
/*color: white;*/
/*background-color: rgb(0, 12, 57)!important;*/
}
.bold-font{
color: ghostwhite;
/*color: ghostwhite;*/
font: bold 22px arial!important;
padding: 5px;
}