刘璐珈噶东

This commit is contained in:
Vergil
2020-02-24 09:32:44 +08:00
parent b3513a9a3d
commit 6c08cd2ea8
19 changed files with 1217 additions and 822 deletions

View File

@@ -2,16 +2,32 @@
<div class="app-container">
<el-card>
<div>
<el-select v-model="entryNameValue" clearable filterable placeholder="项目名称" size="small" style="width:180px;margin: 3px 10px;">
<el-option
v-for="item in entryName"
:key="item.value"
:label="item.label"
:value="item.value"/>
</el-select>
<el-input v-model="customerName1" clearable size="small" style="width:150px;margin: 0px 10px" placeholder="请输入客户名称"/>
<!--<el-select v-model="entryNameValue" clearable filterable placeholder="项目名称" size="small" style="width:180px;margin: 3px 10px 0 0px;">-->
<!--<el-option-->
<!--v-for="item in entryName"-->
<!--:key="item.value"-->
<!--:label="item.label"-->
<!--:value="item.value"/>-->
<!--</el-select>-->
<el-input v-model="customerName1" clearable size="small" style="width:220px;" placeholder="请输入客户名称或项目名称"/>
<span style="font-size: 13px;margin-left: 10px">签订日期</span>
<el-date-picker
v-model="dateRange"
:picker-options="pickerOptions"
size="small"
type="daterange"
align="center"
style="width: 240px;margin: 3px 0"
value-format="yyyy-MM-dd"
format="yyyy-MM-dd"
range-separator=""
start-placeholder="开始日期"
end-placeholder="结束日期"/>
<el-button type="primary" icon="el-icon-search" size="small" style="margin-left: 10px" plain @click="PageSize = 30;PageCurrent = 1;fetchTableData1()" >查询</el-button>
<el-button type="distribution" icon="el-icon-circle-plus-outline" size="small" style="margin-left: 10px" @click="ADD()" >新增</el-button>
<el-button type="distribution" icon="el-icon-circle-plus-outline" size="small" style="margin-left: 10px" @click="ADD()" >合同</el-button>
<el-tooltip v-show="true" :open-delay="1000" effect="dark" content="导出营销合同" placement="top">
<el-button type="primary" plain class="el-icon-download" size="small" style="margin: 10px 0 0 410px" @click="exportExcel">导出</el-button>
</el-tooltip>
</div>
</el-card>
<el-card>
@@ -20,19 +36,20 @@
:data="tableData1"
:row-key="getRowKeys"
:expand-row-keys="expands"
:header-cell-style="{fontFamily:'YouYuan',fontSize:'13px',fontWeight:200}"
highlight-current-row
style="width: 100%;margin: 3px 0px"
style="margin: 3px 0px;width: 1208px"
height="700"
border
stripe
size="mini"
@row-click="fetchExecutionProgressdata"
@expand-change="selectMachine">
<el-table-column type="expand" label="详情" width="60">
<el-table-column type="expand" label="详情" width="50">
<template slot-scope="scope">
<el-table :data="tableData2" class="subTableHeader" size="mini" border style="width: 482px; text-align: center">
<el-table-column label="机床名称" align="center" width="140">
<template slot-scope="机床图号">
<el-table-column label="机床型号" align="center" width="140">
<template slot-scope="scope">
{{ scope.row.机床图号 }}
</template>
</el-table-column>
@@ -72,22 +89,22 @@
</el-table>
</template>
</el-table-column>
<el-table-column align="center" label="合同编号" prop="合同编号" width="130">
<el-table-column align="center" label="合同编号" prop="合同编号" width="118">
<template slot-scope="scope">
{{ scope.row.合同编号 }}
</template>
</el-table-column>
<el-table-column align="center" label="客户名称" prop="客户名称" width="190" show-overflow-tooltip>
<el-table-column align="center" label="客户名称" prop="客户名称" width="180" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.客户名称 }}
</template>
</el-table-column>
<el-table-column align="center" label="项目名称" prop="项目名称" width="140" show-overflow-tooltip>
<el-table-column align="center" label="项目名称" prop="项目名称" width="139" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.项目名称 }}
</template>
</el-table-column>
<el-table-column align="right" label="合同额(万元)" prop="合同总额" width="140" show-overflow-tooltip>
<el-table-column align="right" label="合同额(万元)" prop="合同总额" width="120" show-overflow-tooltip>
<template slot-scope="scope">
{{ Number(scope.row.合同总金额).toFixed(2) }}
</template>
@@ -97,17 +114,17 @@
{{ scope.row.付款方式 }}
</template>
</el-table-column>
<el-table-column align="center" label="签订日期" width="100">
<el-table-column align="center" label="签订日期" width="90">
<template slot-scope="scope">
{{ scope.row.合同签订日期&&scope.row.合同签订日期!=='1900/1/1' ? scope.row.合同签订日期 : '-' }}
</template>
</el-table-column>
<el-table-column align="center" label="销经理" width="85">
<el-table-column align="center" label="销经理" width="80">
<template slot-scope="scope">
{{ scope.row.营销经理 }}
</template>
</el-table-column>
<el-table-column align="center" label="发货节点" width="85">
<el-table-column align="center" label="发货节点" width="80">
<template slot-scope="scope">
{{ scope.row.发货节点&&scope.row.发货节点!=='1900/1/1' ? scope.row.发货节点 : '-' }}
</template>
@@ -117,7 +134,7 @@
{{ scope.row.合同信息备注 }}
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="200">
<el-table-column label="操作" align="center" width="130">
<template slot-scope="scope">
<el-button
size="mini"
@@ -130,7 +147,7 @@
size="mini"
type="text"
icon="el-icon-edit-outline"
style="margin-left: 20px"
style="margin-left: 10px"
@click.stop="handleEdit(scope.row)"/>
</div>
</el-tooltip>
@@ -140,7 +157,7 @@
size="mini"
type="text"
icon="el-icon-delete"
style="margin-left: 20px"
style="margin-left: 10px"
@click.stop="handleDelete(scope.row)"/>
</div>
</el-tooltip>
@@ -191,27 +208,27 @@
</div>
</el-card>
<!--新增合同信息对话框-->
<el-dialog v-el-drag-dialog :title="title" :visible.sync="dialogFormVisible1" center style="min-height: 300px" width="800px">
<el-form ref="form" :model="form" :rules="rules" label-position="left" label-width="140px" class="demo-ruleForm">
<el-dialog v-el-drag-dialog :title="title" :visible.sync="dialogFormVisible1" center style="min-height: 300px; " width="700px">
<el-form ref="form" :model="form" :rules="rules" label-position="left" label-width="110px" class="demo-ruleForm">
<el-row>
<el-col :span="12">
<el-form-item label="项目名称" prop="EntryName">
<el-input v-model="form.EntryName" size="small" placeholder="请输入项目名称" style="width:200px"/>
<el-col :span="12" style="height: 2px">
<el-form-item label="项目名称" prop="EntryName" style="">
<el-input v-model="form.EntryName" size="small" placeholder="请输入项目名称" style="width:180px"/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="投标保证金" prop="">
<el-input v-model="form.bidding" readonly clearable size="small" style="width:200px" placeholder="若缴纳保证金请选择" @dblclick.native="openBidding()" @clear="clearBidding()"/>
<el-input v-model="form.bidding" readonly clearable size="small" style="width:180px" placeholder="若缴纳保证金请选择" @dblclick.native="openBidding()" @clear="clearBidding()"/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="合同总额" prop="contractAmount">
<el-input v-model="form.contractAmount" clearable size="small" style="width:200px" placeholder="请输入合同金额"/>
<el-input v-model="form.contractAmount" clearable size="small" style="width:180px" placeholder="请输入合同金额" @change="fun()"/>
</el-form-item>
</el-col>
<el-col v-show="false" :span="12" >
<el-form-item label="已完成进度" prop="executionProgressID">
<el-select v-model="form.executionProgressID" :disabled="infoDisable" placeholder="请输入目前执行进度" size="small" style="width: 200px">
<el-select v-model="form.executionProgressID" :disabled="infoDisable" placeholder="请输入目前执行进度" size="small" style="width: 180px">
<el-option
v-for="item in executionProgress"
:key="item.value"
@@ -222,7 +239,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="营销经理" prop="MarketingManagerValue">
<el-input v-model="form.MarketingManagerValue" readonly clearable size="small" style="width:200px" placeholder="请双击选择营销经理" @dblclick.native="openName()" @clear="clear()"/>
<el-input v-model="form.MarketingManagerValue" readonly clearable size="small" style="width:180px" placeholder="请双击选择营销经理" @dblclick.native="openName()" @clear="clear()"/>
</el-form-item>
</el-col>
<el-col :span="12">
@@ -232,7 +249,8 @@
value-format="yyyy-MM-dd"
size="small"
type="date"
placeholder="请选择图纸会签节点"/>
style="width: 180px"
placeholder="合同签订日期"/>
</el-form-item>
</el-col>
<el-col :span="12">
@@ -242,6 +260,7 @@
value-format="yyyy-MM-dd"
size="small"
type="date"
style="width: 180px"
placeholder="请选择图纸会签节点"/>
</el-form-item>
</el-col>
@@ -252,6 +271,7 @@
value-format="yyyy-MM-dd"
size="small"
type="date"
style="width: 180px"
placeholder="请选择设备预验收节点"/>
</el-form-item>
</el-col>
@@ -262,6 +282,7 @@
value-format="yyyy-MM-dd"
size="small"
type="date"
style="width: 180px;"
placeholder="请选择发货节点"/>
</el-form-item>
</el-col>
@@ -272,17 +293,18 @@
value-format="yyyy-MM-dd"
size="small"
type="date"
style="width: 180px"
placeholder="请选择安装调试节点"/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="客户名称" prop="customerName">
<el-input v-model="form.customerName" readonly size="small" placeholder="请双击选择客户" style="width:200px" clearable @dblclick.native="CustomerChange()" @clear="clear1()"/>
<el-input v-model="form.customerName" readonly size="small" placeholder="请双击选择客户" style="width:180px" clearable @dblclick.native="CustomerChange()" @clear="clear1()"/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="付款方式" prop="付款方式">
<el-select v-model="form.付款方式" placeholder="请选择付款方式" size="small" style="width: 200px">
<el-select v-model="form.付款方式" placeholder="请选择付款方式" size="small" style="width: 180px">
<el-option
v-for="item in money"
:key="item.value"
@@ -295,7 +317,7 @@
<el-form-item label="备注" prop="remark">
<el-input
v-model="form.remark"
style="width: 200px"
style="width: 180px"
type="textarea"
autosize
placeholder="请输入项目介绍"/>
@@ -304,22 +326,21 @@
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="callOff('form')">取消</el-button>
<el-button type="primary" @click="submit('form')"> </el-button>
<el-button size="small" icon="el-icon-circle-close" @click="callOff('form')">取消</el-button>
<el-button type="distribution" size="small" icon="el-icon-circle-check" @click="submit('form')"> </el-button>
</div>
</el-dialog>
<!--新增机床对话框-->
<el-dialog v-el-drag-dialog :title="title1" :visible.sync="dialogFormVisible2" center style="min-height: 300px" width="450px">
<el-form ref="form1" :model="form1" :rules="rules1" label-width="140px">
<el-form-item label="设备型号" prop="设备型号">
<el-input v-model="form1.设备型号" size="small" placeholder="请输入设备型号" style="width:200px"/>
<el-dialog v-el-drag-dialog :title="title1" :visible.sync="dialogFormVisible2" center style="min-height: 300px" width="300px">
<el-form ref="form1" :model="form1" :rules="rules1" label-width="100px">
<el-form-item label="机床型号" prop="设备型号">
<el-input v-model="form1.设备型号" size="small" placeholder="请输入设备型号" style="width:130px"/>
</el-form-item>
<el-form-item label="设备名称" prop="设备名称">
<el-input v-model="form1.设备名称" size="small" placeholder="请输入设备名称" style="width:200px"/>
<el-form-item label="机床名称" prop="设备名称">
<el-input v-model="form1.设备名称" size="small" placeholder="请输入设备名称" style="width:130px"/>
</el-form-item>
<el-form-item label="机床数量" prop="机床数量">
<el-input-number :min="1" v-model="form1.机床数量" controls-position="right" style="width:200px" size="small"/>
<el-input-number :min="1" v-model="form1.机床数量" controls-position="right" style="width:130px" size="small"/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
@@ -329,16 +350,16 @@
</el-dialog>
<!--营销经理选择-->
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisiblePeople" title="营销经理" center width="500px">
<div style="margin-top: 15px;">
<el-table :data="tableData4" border style="width: 200px; text-align: center;display: inline-block;vertical-align: top;" size="mini" highlight-current-row @row-click="handleChange1">
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisiblePeople" title="营销经理" center width="300px">
<div style="margin-top: 0px;width: 250px">
<el-table :data="tableData4" border style="width: 120px; text-align: center;display: inline-block;vertical-align: top;" size="mini" highlight-current-row @row-click="handleChange1">
<el-table-column label="部门" align="center" >
<template slot-scope="scope">
{{ scope.row.部门名称 }}
</template>
</el-table-column>
</el-table>
<el-table :data="tableData3" border stripe style="width: 200px;height:350px; text-align: center;display: inline-block;vertical-align: top;" size="mini" highlight-current-row @row-click="handleChange">
<el-table :data="tableData3" border stripe style="width: 120px;height:350px; text-align: center;display: inline-block;vertical-align: top;" size="mini" highlight-current-row @row-click="handleChange">
<el-table-column label="销售经理" align="center" >
<template slot-scope="scope">
{{ scope.row.姓名 }}
@@ -346,17 +367,18 @@
</el-table-column>
</el-table>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="offName">取消</el-button>
<el-button type="primary" @click="getName">确认</el-button>
<div slot="footer" class="dialog-footer" style="margin-top: 20px">
<el-button size="small" icon="el-icon-circle-close" @click="offName()">取消</el-button>
<el-button type="distribution" size="small" icon="el-icon-circle-check" @click="getName()">确认</el-button>
<!--<el-button @click="offName">取消</el-button>-->
<!--<el-button type="primary" @click="getName">确认</el-button>-->
</div>
</el-dialog>
<!--投标保证金选择-->
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisibleBidding" title="请选择投标保证金" center width="65%">
<span>招标企业</span>
<el-input v-model="enterprise" size="small" style="width:200px" clearable/>
<el-button type="success" icon="el-icon-search" size="small" style="margin-left: 10px" @click="searchBidding">查询</el-button>
<el-input v-model="enterprise" size="small" style="width:200px" placeholder="招标企业" clearable/>
<el-button type="search" icon="el-icon-search" size="small" style="margin-left: 10px" @click="searchBidding">查询</el-button>
<div style="margin-top: 15px">
<el-table
:data="tableDataBidding"
@@ -364,40 +386,40 @@
style="width: 100%"
height="400"
border
stripe
size="mini"
stripei
size="m9ini"
@row-click="biddingNum">
<el-table-column align="center" label="招标企业" width="300">
<el-table-column align="center" label="招标企业" width="220">
<template slot-scope="scope">
{{ scope.row.招标企业 }}
</template>
</el-table-column>
<el-table-column align="center" label="联系人" width="100">
<el-table-column align="center" label="联系人" width="64" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.联系人 }}
</template>
</el-table-column>
<el-table-column align="center" label="联系电话" width="120">
<el-table-column align="center" label="联系电话" width="100" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.联系电话 }}
</template>
</el-table-column>
<el-table-column align="center" label="保证金金额" width="100">
<el-table-column align="center" label="保证金金额(万元)" width="95">
<template slot-scope="scope">
{{ scope.row.保证金金额 }}
{{ Number(scope.row.保证金金额).toFixed(2) }}
</template>
</el-table-column>
<el-table-column align="center" label="投标人" width="100">
<el-table-column align="center" label="投标人" width="64" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.投标人 }}
</template>
</el-table-column>
<el-table-column align="center" label="保金类型" width="150">
<el-table-column align="center" label="保金类型" width="80" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.保证金类型 }}
</template>
</el-table-column>
<el-table-column align="center" label="投标日期" width="150">
<el-table-column align="center" label="投标日期" width="85">
<template slot-scope="scope">
{{ scope.row.投标日期 }}
</template>
@@ -410,15 +432,15 @@
</el-table>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="offBidding">取消</el-button>
<el-button type="primary" @click="getBidding">确认</el-button>
<el-button size="small" icon="el-icon-circle-close" @click="offBidding()">取消</el-button>
<el-button type="distribution" size="small" icon="el-icon-circle-check" @click="getBidding">确认</el-button>
</div>
</el-dialog>
<!--客户选择-->
<el-dialog v-el-drag-dialog :visible.sync="dialogCustomerFormVisible" title="客户选择" center width="400px">
<el-input v-model="Customer" clearable size="small" style="width:200px" placeholder="请输入客户名称"/>
<el-button type="success" icon="el-icon-search" size="small" style="margin-left: 10px" @click="PageSize1 = 30;PageCurrent1 = 1;fetchCustomerData()">查询</el-button>
<el-button type="search" icon="el-icon-search" size="small" style="margin-left: 10px" @click="PageSize1 = 30;PageCurrent1 = 1;fetchCustomerData()">查询</el-button>
<el-table v-loading="loading1" :data="CustomerData" highlight-current-row height="300" stripe border show-overflow-tooltip style="height: 350px; margin-top: 10px" size="mini" @row-click="handleCustomerChange">
<el-table-column label="客户名称" align="center" >
<template slot-scope="scope">
@@ -427,8 +449,8 @@
</el-table-column>
</el-table>
<div slot="footer" class="dialog-footer">
<el-button @click="offCustomerChange">取消</el-button>
<el-button type="primary" @click="getCustomerCode"> </el-button>
<el-button size="small" icon="el-icon-circle-close" @click="offCustomerChange('form')">取消</el-button>
<el-button type="distribution" size="small" icon="el-icon-circle-check" @click="getCustomerCode('form')"> </el-button>
</div>
</el-dialog>
@@ -446,8 +468,8 @@
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="callOffTime('form2')">取消</el-button>
<el-button type="primary" @click="submitTime('form2')"> </el-button>
<el-button size="small" icon="el-icon-circle-close" @click="callOffTime('form2')">取消</el-button>
<el-button type="distribution" size="small" icon="el-icon-circle-check" @click="submitTime('form2')"> </el-button>
</div>
</el-dialog>
</div>
@@ -462,7 +484,55 @@ export default {
elInput
},
data() {
const validateValue = (rule, value, callback) => {
if (value === 0) {
callback(new Error('金额不能为0'))
} else if (value) {
// const reg = /^\-\d\.?\d*$/
// const boolean = reg.test(value)
const boolean = new RegExp(/^(\+)?\d+(\.\d+)?$/).test(value)
console.log(boolean)
if (!boolean) {
callback(new Error('请输入正数'))
this.form.contractAmount = ''
} else {
console.log(2222)
callback()
}
} else {
callback()
}
}
return {
dateRange: '',
check1: '',
pickerOptions: {
shortcuts: [{
text: '上季度',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(end.getTime() - 3600 * 1000 * 24 * 30 * 3)
picker.$emit('pick', [start, end])
}
}, {
text: '过去半年',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(end.getTime() - 3600 * 1000 * 24 * 366 / 2)
picker.$emit('pick', [start, end])
}
}, {
text: '过去一年',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(end.getTime() - 3600 * 1000 * 24 * 365)
picker.$emit('pick', [start, end])
}
}]
},
isTrue: true,
customerName1: '',
customerName1_check: '',
@@ -575,11 +645,14 @@ export default {
temp: '', // 增加或修改的标志位
rules: { // 表单验证规则
EntryName: [{ required: true, message: '请输入项目名称', trigger: 'blur' }],
customerName: [{ required: true, message: '请选择客户名称', trigger: 'change' }],
MarketingManagerValue: [{ required: true, message: '请选择营销经理', trigger: 'change' }],
executionProgressID: [{ required: true, message: '请选择已完成进度', trigger: 'change' }],
contractSigningDate: [{ required: true, message: '请选择合同签订日期', trigger: 'change' }],
付款方式: [{ required: true, message: '请选择付款方式', trigger: 'change' }],
contractAmount: [{ required: true, message: '请输入合同总额', trigger: 'blur' }]
contractAmount: [
{ required: true, message: '请输入合同总额', trigger: 'change' },
{ required: true, trigger: 'blur', validator: validateValue }]
},
rules1: { // 表单验证规则
设备型号: [{ required: true, message: '请输入设备型号', trigger: 'blur' }],
@@ -596,6 +669,11 @@ export default {
this.fetchCustomerData()
},
methods: {
// 2020 02 18 刘路加 增加
fun() {
this.form.contractAmount = Number(this.form.contractAmount).toFixed(2)
},
searchName() { // 模糊查询姓名
this.tableData3 = []
SelectMarketingManager().then(response => {
@@ -667,6 +745,7 @@ export default {
if (this.customerName1 === '' || this.customerName1 === null) { this.customerName1_check = 0 } else { this.customerName1_check = 1 }
if (this.entryNameValue === '' || this.entryNameValue === null) { this.entryNameValue_check = 0 } else { this.entryNameValue_check = 1 }
if (this.MarketingManagerValue === '' || this.MarketingManagerValue === null) { this.peopleid_check = 0 } else { this.peopleid_check = 1 }
this.dateRange ? this.check1 = 1 : (this.check1 = 0, this.dateRange = '')
if (this.startTime === '' || this.startTime === null) { this.startTime_check = 0 } else { this.startTime_check = 1 }
if (this.endTime === '' || this.endTime === null) { this.endTime_check = 0 } else { this.endTime_check = 1 }
if (this.machine === '' || this.machine === null) { this.machine_check = 0 } else { this.machine_check = 1 }
@@ -674,7 +753,33 @@ export default {
this.uploader = false
this.ExecutionProgress = null
this.listLoading = true
this.getTable(searchTable1, [this.PageCurrent, this.PageSize, this.entryNameValue, this.peopleid, this.entryNameValue_check, this.peopleid_check, this.startTime_check, this.endTime_check, this.startTime, this.endTime, this.machine_check, this.machine, this.customerName1_check, this.customerName1], ['tableData1', 'total', 'listLoading'])
this.getTable(searchTable1, [this.PageCurrent, this.PageSize, this.entryNameValue, this.peopleid, this.entryNameValue_check, this.peopleid_check, this.check1, this.check1, this.dateRange[0], this.dateRange[1], this.machine_check, this.machine, this.customerName1_check, this.customerName1], ['tableData1', 'total', 'listLoading'])
},
exportExcel() {
if (this.customerName1 === '' || this.customerName1 === null) { this.customerName1_check = 0 } else { this.customerName1_check = 1 }
if (this.entryNameValue === '' || this.entryNameValue === null) { this.entryNameValue_check = 0 } else { this.entryNameValue_check = 1 }
if (this.MarketingManagerValue === '' || this.MarketingManagerValue === null) { this.peopleid_check = 0 } else { this.peopleid_check = 1 }
this.dateRange ? this.check1 = 1 : (this.check1 = 0, this.dateRange = '')
if (this.startTime === '' || this.startTime === null) { this.startTime_check = 0 } else { this.startTime_check = 1 }
if (this.endTime === '' || this.endTime === null) { this.endTime_check = 0 } else { this.endTime_check = 1 }
if (this.machine === '' || this.machine === null) { this.machine_check = 0 } else { this.machine_check = 1 }
this.ExecutionProgressShow = false
this.uploader = false
this.ExecutionProgress = null
this.listLoading = true
var param = []
param[0] = ['项目流水号_check', this.entryNameValue_check]
param[1] = ['合同ID', this.entryNameValue]
param[2] = ['客户名称_check', this.customerName1_check]
param[3] = ['客户名称', this.customerName1]
param[4] = ['开始日期_check', this.check1]
param[5] = ['开始日期', this.dateRange[0]]
param[6] = ['结束日期_check', this.check1]
param[7] = ['结束日期', this.dateRange[1]]
param[8] = ['营销经理流水号_check', 0]
param[9] = ['机床型号_check', 0]
var Data = this.CreateData('2001', '报表_营销合同查询', param)
this.exportExcel_NPOI(Data)
},
fetchExecutionProgressdata(row) {
this.projectNum = row.项目流水号
@@ -733,6 +838,7 @@ export default {
})
},
selectMachine(row) {
console.log(row.项目流水号)
if (this.a === 1) {
this.expands.push(row.项目流水号)
this.b = row.项目流水号
@@ -803,6 +909,7 @@ export default {
})
})
selectMachine(row.项目流水号).then(response => {
console.log(response)
this.tableData2 = response.data
})
},
@@ -859,6 +966,7 @@ export default {
// 提交添加或者修改
submit(formName) {
this.$refs[formName].validate((valid) => {
console.log(valid, 111111)
if (valid) {
if (this.temp === 1) {
this.addTableData1()
@@ -1105,7 +1213,7 @@ export default {
},
biddingNum(row) {
this.biddingNumber = parseInt(row.招标保证金流水号)
this.enterpriseInput = row.招标企业
this.enterpriseInput = Number(row.保证金金额).toFixed(2)
},
clearBidding() {
this.biddingNumber = ''
@@ -1244,11 +1352,36 @@ a{
display: inline-block;
color: #999;
}
.el-table td, .el-table th.is-leaf,
.el-radio__inner,
.el-input__inner{
border: 1px solid black!important;
}
.el-form--label-left >>> .el-form-item__label {
text-align: right;
}
>>>.el-dialog--center .el-dialog__body {
text-align: initial;
padding: 20px 30px 20px
}
>>>.el-dialog__header {
padding: 20px 20px 0px;
}
>>>.el-dialog__footer {
padding: 0px 20px 20px;
/*text-align: right;*/
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
>>>.el-form-item {
margin-bottom: 13px;
}
/*>>>.el-dialog, .el-pager li {*/
/*background: red;*/
/*opacity: 0.9;*/
/*-webkit-box-sizing: border-box;*/
/*}*/
/*.el-table td, .el-table th.is-leaf,*/
/*.el-radio__inner,*/
/*.el-input__inner{*/
/*border: 1px solid black!important;*/
/*}*/
</style>
<style lang="scss">