车间采购系统

This commit is contained in:
liushuai
2018-12-24 19:46:02 +08:00
parent 7d21421a48
commit 8e29e7e211
11 changed files with 70 additions and 67 deletions

View File

@@ -7,7 +7,8 @@ export function initArrivalStateContact() {
method: 'post',
data: {
type: '1',
name: '车间管理_到货情况_查询数据'
name: '车间管理_到货情况_查询数据',
param: '采购合同流水号_check=0&供应商名称_check=0'
}
})
}

View File

@@ -8,7 +8,7 @@ export function initCraftmen() {
data: {
type: '1',
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=17'
param: '考核部门编号=9'
}
})
}

View File

@@ -8,7 +8,7 @@ export function getPerson() {
data: {
type: '1',
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=17'
param: '考核部门编号=9'
}
})
}

View File

@@ -35,14 +35,14 @@ export function initBuyer() {
})
}
// 采购合同查询
export function searchTable1(pageCurrent, pageSize, check1, start, end, check2, contract, check3, name, check4, supplier) {
export function searchTable1(pageCurrent, pageSize, check2, contract, check3, name, check4, supplier) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间采购管理_现有合同_查询数据',
param: '时间段_check=' + check1 + '&开始时间=' + start + '=datetime&结束时间=' + end + '=datetime&采购合同流水号_check=' + check2 + '&采购合同流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier,
param: '采购合同流水号_check=' + check2 + '&采购合同流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier,
Pagination: pageCurrent + '&' + pageSize
}
})
@@ -72,14 +72,14 @@ export function searchTable5(num) {
})
}
// 采购合同变更查询
export function searchTable3(pageCurrent, pageSize, check1, start, end, check2, contract, check3, name, check4, supplier) {
export function searchTable3(pageCurrent, pageSize, check2, contract, check3, name, check4, supplier) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间采购管理_采购合同变更_查询数据_根据条件_cjn',
param: '时间段_check=' + check1 + '&开始时间=' + start + '=datetime&结束时间=' + end + '=datetime&采购合同变更流水号_check=' + check2 + '&采购合同变更流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier,
param: '采购合同变更流水号_check=' + check2 + '&采购合同变更流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier,
Pagination: pageCurrent + '&' + pageSize
}
})

View File

@@ -68,7 +68,8 @@ export function initContract() {
method: 'post',
data: {
type: '1',
name: '车间采购管理_付款情况_查询数据'
name: '车间采购管理_付款情况_查询数据',
param: '采购合同流水号_check=0&供应商名称_check=0'
}
})
}

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1545637585732" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3542" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M300.575 326.995l196.662 0c11.637 0 21.068-9.433 21.068-21.07s-9.431-21.073-21.068-21.073l-196.662 0c-11.639 0-21.073 9.436-21.073 21.073s9.436 21.07 21.073 21.07zM279.502 516.635c0 11.637 9.433 21.073 21.073 21.073l421.423 0c11.632 0 21.068-9.436 21.068-21.073s-9.436-21.07-21.068-21.07l-421.423 0c-11.637-0.001-21.073 9.433-21.073 21.07zM686.877 46.048l-505.705 0c-31.032 0-56.189 25.156-56.189 56.189l0 828.795c0 31.031 25.156 56.189 56.189 56.189l674.273 0c31.031 0 56.189-25.159 56.189-56.189l0-646.179-224.757-238.805zM686.877 102.238l168.568 182.614-140.471 0c-15.522 0-28.097-12.577-28.097-28.092l0-154.522zM855.445 902.94c0 15.513-12.579 28.092-28.092 28.092l-618.086 0c-15.518 0-28.094-12.579-28.094-28.092l0-772.608c0-15.515 12.579-28.094 28.094-28.094l435.466 0 0 168.568c0 31.032 25.159 56.189 56.194 56.189l154.52 0 0 575.945-0.001 0zM721.998 720.319l-421.423 0c-11.639 0-21.073 9.436-21.073 21.073 0 11.642 9.433 21.073 21.073 21.073l421.423 0c11.632 0 21.068-9.431 21.068-21.073 0-11.637-9.436-21.073-21.068-21.073z" p-id="3543"></path></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1545637095481" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2627" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M882.47272719 381.09090875L533.38181844 32H204.36363594a61.96363594 61.96363594 0 0 0-43.63636313 18.32727281 61.09090875 61.09090875 0 0 0-18.32727281 43.63636313v833.45454562A62.4 62.4 0 0 0 204.36363594 992h615.27272812a62.4 62.4 0 0 0 43.63636313-18.32727281 59.78181844 59.78181844 0 0 0 18.76363687-43.63636313V381.09090875z m-57.6 547.2c0 3.92727281 0 5.23636406-5.23636313 5.23636406H204.36363594c-3.92727281 0-5.23636406 0-5.23636313-5.23636406V94.83636406c0-3.49090875 0-5.23636406 5.23636313-5.23636406h305.45454562l26.18181844 26.18181844H533.38181844L800 381.09090875l24.43636406 24.43636406v32.29090875z m-109.09090875-392.72727281h-67.63636407a168.43636406 168.43636406 0 0 0-16.58181843-36.65454469l43.63636406-43.63636406a26.61818156 26.61818156 0 0 0 0-37.96363594l-19.2-18.76363688a27.49090875 27.49090875 0 0 0-38.4 0l-43.63636406 43.63636407A164.07272719 164.07272719 0 0 0 533.38181844 424.72727281V366.69090875A27.05454562 27.05454562 0 0 0 506.32727281 337.45454563h-27.05454562a27.05454562 27.05454562 0 0 0-27.05454563 27.05454562V424.72727281a158.4 158.4 0 0 0-43.63636312 18.32727282l-38.4-37.96363688a27.05454562 27.05454562 0 0 0-38.4 0L313.01818156 424.72727281a27.05454562 27.05454562 0 0 0 0 37.96363594l38.83636406 38.83636406a160.14545438 160.14545438 0 0 0-17.89090968 46.69090875H282.90909125a27.05454562 27.05454562 0 0 0-27.05454562 27.05454563v27.05454562a27.05454562 27.05454562 0 0 0 27.05454562 27.05454563h54.54545437a155.78181844 155.78181844 0 0 0 21.81818157 43.63636312l-36.65454563 36.65454563a27.05454562 27.05454562 0 0 0 0 37.96363687l19.2 19.2a27.49090875 27.49090875 0 0 0 38.4 0l41.0181825-41.0181825a160.14545438 160.14545438 0 0 0 43.63636313 14.4v56.29090969a27.05454562 27.05454562 0 0 0 27.05454562 27.05454469h27.05454563a27.05454562 27.05454562 0 0 0 27.05454562-27.05454469v-62.4a158.83636406 158.83636406 0 0 0 38.4-19.2l43.63636313 43.63636313a27.05454562 27.05454562 0 0 0 38.4 0l19.2-19.2a26.61818156 26.61818156 0 0 0 0-37.96363594l-47.56363594-48a159.27272719 159.27272719 0 0 0 13.09090875-37.96363688h64.58181844a27.05454562 27.05454562 0 0 0 27.05454562-27.05454562v-27.05454469a27.05454562 27.05454562 0 0 0-27.05454562-26.6181825z m-222.98181844 154.03636406a107.78181844 107.78181844 0 1 1 108.21818156-107.78181844 107.78181844 107.78181844 0 0 1-108.21818156 107.78181844z" p-id="2628"></path></svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1545637519656" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2781" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M1011.328 490.528l-16.384 5.152c0.448 3.488 0.96 6.976 0.96 10.656 0 3.616-0.576 7.136-1.12 10.592l16.544 5.184a14.56 14.56 0 0 1 8.992 7.296 14.368 14.368 0 0 1 1.024 11.52 15.84 15.84 0 0 1-19.616 9.632l-16.736-5.184a83.52 83.52 0 0 1-12.832 17.28l10.176 13.44a14.56 14.56 0 0 1-3.424 20.896 16 16 0 0 1-21.792-3.296l-10.208-13.568c-6.72 3.2-13.792 5.472-21.088 6.848v16.448a15.264 15.264 0 0 1-15.52 14.944 15.232 15.232 0 0 1-15.584-14.944v-16.448a85.824 85.824 0 0 1-21.12-6.848l-10.208 13.568a16.032 16.032 0 0 1-21.792 3.296 14.56 14.56 0 0 1-3.392-20.896l10.272-13.568a78.88 78.88 0 0 1-13.28-17.056l-16.416 5.088a15.616 15.616 0 0 1-19.552-9.568 14.816 14.816 0 0 1 9.92-18.816l16.448-5.12c-0.48-3.52-1.024-7.008-1.024-10.656 0-3.648 0.608-7.168 1.12-10.656l-16.544-5.152a14.72 14.72 0 0 1-9.952-18.816 15.648 15.648 0 0 1 19.552-9.6l16.736 5.216a84.48 84.48 0 0 1 12.864-17.312l-10.176-13.472a14.72 14.72 0 0 1-2.816-11.168 14.624 14.624 0 0 1 6.208-9.664 16 16 0 0 1 21.792 3.296l10.24 13.536c6.72-3.168 13.792-5.472 21.12-6.88v-16.448c0-8.288 6.912-14.976 15.552-14.976 8.576 0 15.52 6.656 15.52 14.976v16.384c7.456 1.344 14.432 3.808 21.088 6.816l10.24-13.536a16.064 16.064 0 0 1 21.76-3.296 14.528 14.528 0 0 1 3.424 20.864l-10.304 13.632a83.2 83.2 0 0 1 13.312 16.992l16.384-5.056a15.68 15.68 0 0 1 19.616 9.568 14.816 14.816 0 0 1-9.984 18.88z m-101.056-36.48c-30.112 0-54.56 23.392-54.56 52.288 0 28.832 24.448 52.224 54.56 52.224 30.08 0 54.464-23.392 54.464-52.224 0-28.896-24.352-52.288-54.464-52.288zM199.328 668.128h255.424c5.28-13.536 11.488-26.336 18.816-38.656h-274.24v38.656z m355.456-270.496H199.36v38.656h355.392v-38.656h0.032zM80.896 919.328a39.104 39.104 0 0 1-39.488-38.688V127.008c0-21.344 17.696-38.624 39.488-38.624h612.064c21.824 0 39.488 17.312 39.488 38.624v368.128c13.408 0.896 26.528 2.56 39.424 5.344V126.944c0-42.656-35.328-77.312-78.976-77.312H80.864C37.216 49.632 1.888 84.256 1.888 126.944V880.64c0 42.752 35.328 77.28 78.976 77.28h438.624a263.84 263.84 0 0 1-33.344-38.624H80.896v0.032z m473.888-376.448v-29.344H199.36v38.656h342.752c4.096-3.2 8.288-6.368 12.672-9.312z m157.696 28.576c-108.832 0-197.216 86.368-197.216 193.408 0 106.72 88.352 193.12 197.216 193.12 109.312 0 197.792-86.496 197.792-193.12-0.032-107.008-88.544-193.408-197.792-193.408z m0.064 347.872c-87.04 0-157.76-69.152-157.76-154.464 0-85.664 70.656-154.784 157.76-154.784 87.424 0 158.112 69.12 158.112 154.784 0 85.216-70.688 154.464-158.112 154.464z m-157.76-637.632H199.36v38.624h355.392V281.696h0.032z m177.664 386.432h-39.488v115.936h118.464v-38.656h-78.976v-77.28z" p-id="2782"></path></svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1545636692920" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2323" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M810.656 128v695.456L768 793.6l-46.944 29.856L640 878.912l-81.056-55.456L512 793.6l-46.944 29.856L384 878.912l-81.056-55.456L256 793.6l-42.656 29.856V128h597.344zM896 42.656H128v938.656l128-85.344 128 85.344 128-85.344 128 85.344 128-85.344 128 85.344V42.656z" p-id="2324"></path><path d="M298.656 426.656h426.656V512H298.656v-85.344zM298.656 298.656h426.656V384H298.656V298.656zM298.656 554.656h256V640h-256v-85.344z" p-id="2325"></path></svg>

After

Width:  |  Height:  |  Size: 830 B

View File

@@ -406,18 +406,29 @@ export default {
}
},
allDelete() {
if (this.projectName !== '' && this.machineValue !== '' && this.groupValue !== '') {
allDelete(this.projectName, this.machineValue, this.groupValue).then(response => {
if (response.data[0].result === '1') {
this.tableData = []
this.$message.success('删除成功')
} else {
this.$message.error('删除失败')
}
this.$confirm('此操作将永久删除该行, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
if (this.projectName !== '' && this.machineValue !== '' && this.groupValue !== '') {
allDelete(this.projectName, this.machineValue, this.groupValue).then(response => {
if (response.data[0].result === '1') {
this.tableData = []
this.$message.success('删除成功')
} else {
this.$message.error('删除失败')
}
})
} else {
this.$message.warning('请选择好项目机床分组')
}
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
} else {
this.$message.warning('请选择好项目机床分组')
}
})
},
getGroups() {
this.$emit('machineChange', this.machineValue)

View File

@@ -3,18 +3,8 @@
<div style="width: 48%; float: left;margin-left: 20px">
<el-card>
<el-row>
<span>时间段:</span>
<el-date-picker
v-model="startEndDate"
style="width:240px"
size="small"
type="daterange"
value-format="yyyy-MM-dd"
format="yyyy-MM-dd"
start-placeholder="开始日期"
end-placeholder="结束日期"/>
<span>合同号:</span>
<el-select v-model="contractNumValue" placeholder="合同号" size="small" style="width:180px" filterable clearable>
<el-select v-model="contractNumValue" placeholder="合同号" size="small" style="width:150px" filterable clearable>
<el-option
v-for="item in contractNum"
:key="item.value"
@@ -26,10 +16,8 @@
</el-select>
<span>采购员:</span>
<el-input v-model="buyerName" placeholder="请双击选择" size="small" clearable style="width:120px" @dblclick.native="initBuyer();dialogVisible2=true;submitDisable=true;buyer=0"/>
</el-row>
<el-row style="margin-top: 10px">
<span>供应商:</span>
<el-input v-model="supplierName" placeholder="供应商" size="small" clearable/>
<el-input v-model="supplierName" placeholder="供应商" size="small" style="width:120px" clearable/>
<el-button
type="success"
size="small"
@@ -37,7 +25,7 @@
style="margin-left:10px"
@click="total1=0;pageCurrent1=1;pageSize1=10;searchTable1()">查询现有合同</el-button>
</el-row>
<el-card>
<el-card style="margin-top: 20px">
<el-table v-loading="loading1" :data="tableData1" border style="width: 100%;max-height: 400px;" height="200px" highlight-current-row size="mini" @row-click="searchTable2">
<el-table-column label="采购合同号" align="center">
<template slot-scope="scope">
@@ -54,6 +42,11 @@
{{ scope.row.姓名 }}
</template>
</el-table-column>
<el-table-column label="供应商" align="center">
<template slot-scope="scope">
{{ scope.row.供应商名称 }}
</template>
</el-table-column>
<el-table-column label="总金额" align="center">
<template slot-scope="scope">
{{ scope.row.总金额 }}
@@ -218,18 +211,8 @@
<div style="width: 48%; float: right; margin-right: 20px">
<el-card>
<el-row>
<span>时间段:</span>
<el-date-picker
v-model="startEndDate1"
style="width:240px"
size="small"
type="daterange"
value-format="yyyy-MM-dd"
format="yyyy-MM-dd"
start-placeholder="开始日期"
end-placeholder="结束日期"/>
<span>合同号:</span>
<el-select v-model="contractNumValue1" placeholder="合同号" size="small" style="width:180px" filterable clearable>
<el-select v-model="contractNumValue1" placeholder="合同号" size="small" style="width:150px" filterable clearable>
<el-option
v-for="item in contractNum1"
:key="item.value"
@@ -241,10 +224,8 @@
</el-select>
<span>采购员:</span>
<el-input v-model="buyerName1" placeholder="请双击选择" size="small" clearable style="width:120px" @dblclick.native="initBuyer();dialogVisible2=true;submitDisable=true;buyer=1"/>
</el-row>
<el-row style="margin-top: 10px">
<span>供应商:</span>
<el-input v-model="supplierName1" placeholder="供应商" size="small" clearable/>
<el-input v-model="supplierName1" placeholder="供应商" size="small" style="width:120px" clearable/>
<el-button
type="success"
size="small"
@@ -252,14 +233,14 @@
style="margin-left:10px"
@click="total2=0;pageCurrent2=1;pageSize2=10;searchTable3()">查询变更记录</el-button>
</el-row>
<el-card>
<el-card style="margin-top: 20px">
<el-table v-loading="loading2" :data="tableData2" border style="width: 100%;max-height: 400px" height="200px" highlight-current-row size="mini" @row-click="searchTable4">
<el-table-column label="采购合同号" align="center">
<template slot-scope="scope">
{{ scope.row.采购合同编号 }}
</template>
</el-table-column>
<el-table-column label="规定到货时间" align="center">
<el-table-column label="规定到货时间" align="center" width="100px">
<template slot-scope="scope">
{{ scope.row.规定到货时间 }}
</template>
@@ -269,6 +250,11 @@
{{ scope.row.姓名 }}
</template>
</el-table-column>
<el-table-column label="供应商" align="center">
<template slot-scope="scope">
{{ scope.row.供应商名称 }}
</template>
</el-table-column>
<el-table-column label="总金额" align="center">
<template slot-scope="scope">
{{ scope.row.总金额 }}
@@ -498,13 +484,10 @@ export default {
TotalAmount1: '',
TotalAmount3: '',
TotalAmount4: '',
check1: 0,
check2: 0,
check3: 0,
check4: 0,
check5: 0,
startEndDate: '',
startEndDate1: '',
contract: '',
contract1: '',
taxRate: '',
@@ -516,6 +499,10 @@ export default {
ProcurementContractNum: '',
buyer: 0,
Supplier: 0,
Name: '',
Name1: '',
Value: '',
Value1: '',
buyerName: '',
buyerValue: '',
buyerName1: '',
@@ -593,23 +580,26 @@ export default {
clickBuyer(row) { // 点击采购员表某一行
this.submitDisable = false
if (this.buyer === 0) {
this.buyerName = row.姓名
this.buyerValue = row.人员编号
this.Name = row.姓名
this.Value = row.人员编号
} else if (this.buyer === 1) {
this.buyerName1 = row.姓名
this.buyerValue1 = row.人员编号
this.Name1 = row.姓名
this.Value1 = row.人员编号
}
},
submitSelectBuyer() { // 确定
this.dialogVisible2 = false
if (this.buyer === 0) {
this.buyerName = this.Name
this.buyerValue = this.Value
} else if (this.buyer === 1) {
this.buyerName1 = this.Name1
this.buyerValue1 = this.Value1
}
},
searchTable1() {
this.textarea = ``
this.loading1 = true
if (this.startEndDate === '' || this.startEndDate === null || this.startEndDate[0] === '' || this.startEndDate[1] === '') {
this.check1 = 0
this.startEndDate = ''
} else { this.check1 = 1 }
this.contractNumValue ? this.check2 = 1 : this.check2 = 0
this.buyerName ? this.check3 = 1 : this.check3 = 0
this.supplierName ? this.check4 = 1 : this.check4 = 0
@@ -618,7 +608,7 @@ export default {
} else {
this.check5 = 1
}
searchTable1(this.pageCurrent1, this.pageSize1, this.check1, this.startEndDate[0], this.startEndDate[1], this.check2, this.contractNumValue, this.check3, this.buyerValue, this.check4, this.supplierName, this.check5, this.approvalValue).then(response => {
searchTable1(this.pageCurrent1, this.pageSize1, this.check2, this.contractNumValue, this.check3, this.buyerValue, this.check4, this.supplierName, this.check5, this.approvalValue).then(response => {
this.loading1 = false
console.log(response.data.rows)
for (let j = 0; j < response.data.rows.length; j++) {
@@ -633,14 +623,10 @@ export default {
searchTable3() {
this.textarea1 = ``
this.loading2 = true
if (this.startEndDate1 === '' || this.startEndDate1 === null || this.startEndDate1[0] === '' || this.startEndDate1[1] === '') {
this.check1 = 0
this.startEndDate1 = ''
} else { this.check1 = 1 }
this.contractNumValue1 ? this.check2 = 1 : this.check2 = 0
this.buyerName1 ? this.check3 = 1 : this.check3 = 0
this.supplierName1 ? this.check4 = 1 : this.check4 = 0
searchTable3(this.pageCurrent2, this.pageSize2, this.check1, this.startEndDate1[0], this.startEndDate1[1], this.check2, this.contractNumValue1, this.check3, this.buyerValue1, this.check4, this.supplierName1).then(response => {
searchTable3(this.pageCurrent2, this.pageSize2, this.check2, this.contractNumValue1, this.check3, this.buyerValue1, this.check4, this.supplierName1).then(response => {
this.loading2 = false
for (let j = 0; j < response.data.rows.length; j++) {
if (response.data.rows[j].规定到货时间 !== null) {