更新
This commit is contained in:
@@ -2,6 +2,7 @@ import request from '@/utils/request'
|
|||||||
import state from '@/store'
|
import state from '@/store'
|
||||||
import router from '@/router'
|
import router from '@/router'
|
||||||
|
|
||||||
|
// 初始化机床项目
|
||||||
export function initProject() {
|
export function initProject() {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
@@ -10,7 +11,7 @@ export function initProject() {
|
|||||||
UserID: state.state.user.id,
|
UserID: state.state.user.id,
|
||||||
ModularID: router.currentRoute.path,
|
ModularID: router.currentRoute.path,
|
||||||
type: '1',
|
type: '1',
|
||||||
name: 'PDM_项目名称_查询数据_按时间排序'
|
name: 'PDM_项目名称_查询数据'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -334,7 +334,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 26%;float: left;margin-right: 19px">
|
<div style="width: 32%;float: left;margin-right: 19px">
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-table v-loading="listDetailsloading" :data="pickListTable1" :row-class-name="tableRowClassName" class="shenpi" highlight-current-row border size="mini" width="100%" height="400px" @row-click="clickList">
|
<el-table v-loading="listDetailsloading" :data="pickListTable1" :row-class-name="tableRowClassName" class="shenpi" highlight-current-row border size="mini" width="100%" height="400px" @row-click="clickList">
|
||||||
<el-table-column prop="领料单编号" label="领料单编号" align="center" min-width="100px">
|
<el-table-column prop="领料单编号" label="领料单编号" align="center" min-width="100px">
|
||||||
@@ -363,7 +363,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="block" style="float:left;margin: 10px 0;">
|
<div class="block" style="float:left;margin: 0px;">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
:current-page="pageCurrent3"
|
:current-page="pageCurrent3"
|
||||||
:page-sizes="[10, 20, 30, 40]"
|
:page-sizes="[10, 20, 30, 40]"
|
||||||
@@ -375,7 +375,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 72.5%;float: left">
|
<div style="width: 65.5%;float: left">
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-table v-loading="listDetailsloading" :data="pickListTable2" border style="width: 100%;" size="mini" highlight-current-row height="447px" @row-click="searchMX">
|
<el-table v-loading="listDetailsloading" :data="pickListTable2" border style="width: 100%;" size="mini" highlight-current-row height="447px" @row-click="searchMX">
|
||||||
<el-table-column v-if="true" label="状态" align="center" prop="是否领料确认" width="80px">
|
<el-table-column v-if="true" label="状态" align="center" prop="是否领料确认" width="80px">
|
||||||
@@ -551,7 +551,7 @@ export default {
|
|||||||
total2: 0,
|
total2: 0,
|
||||||
pickListTable1: [],
|
pickListTable1: [],
|
||||||
pageCurrent3: 1,
|
pageCurrent3: 1,
|
||||||
pageSize3: 10,
|
pageSize3: 40,
|
||||||
total3: 0,
|
total3: 0,
|
||||||
pageCurrent4: 1,
|
pageCurrent4: 1,
|
||||||
pageSize4: 10,
|
pageSize4: 10,
|
||||||
@@ -1178,4 +1178,7 @@ export default {
|
|||||||
.el-table .Fail-row {
|
.el-table .Fail-row {
|
||||||
background: #FF9797 !important;
|
background: #FF9797 !important;
|
||||||
}
|
}
|
||||||
|
.el-select{
|
||||||
|
width: 100px
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -2,14 +2,21 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-select v-model="machineToolValue" placeholder="机床号" size="small" filterable clearable style="width: 150px" @change="searchGroupList">
|
<!-- <el-select v-model="entryNameValue" placeholder="项目名称" style="width:150px;margin: 10px 10px 0px 10px" size="small" clearable filterable @change="SearchMachine">-->
|
||||||
|
<!-- <el-option-->
|
||||||
|
<!-- v-for="item in entryName"-->
|
||||||
|
<!-- :key="item.value"-->
|
||||||
|
<!-- :label="item.label"-->
|
||||||
|
<!-- :value="item.value"/>-->
|
||||||
|
<!-- </el-select>-->
|
||||||
|
<el-select v-model="machineToolValue" placeholder="机床号" filterable size="small" clearable style="width: 150px;margin: 10px 10px 0px 10px" @change="searchGroupList">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in machineTool"
|
v-for="item in machineTool"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"/>
|
:value="item.value"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-select v-model="groupNumberValue" placeholder="组号" size="small" clearable style="width: 100px;">
|
<el-select v-model="groupNumberValue" placeholder="组号" size="small" clearable style="width: 100px;margin: 10px 10px 0px 10px">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in groupNumber"
|
v-for="item in groupNumber"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@@ -118,6 +125,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
// import { url } from '@/utils/request'
|
||||||
|
// import axios from 'axios'
|
||||||
import { initProject, searchmachine, searchgroup, searchdata, warehousing, selectdepartment, selectleaders } from '@/api/Inventory/SelfMadePartsWarehouseOut'
|
import { initProject, searchmachine, searchgroup, searchdata, warehousing, selectdepartment, selectleaders } from '@/api/Inventory/SelfMadePartsWarehouseOut'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -153,8 +162,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.SearchMachine()
|
this.initProject()
|
||||||
// this.searchData()
|
this.searchData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
searchData() {
|
searchData() {
|
||||||
@@ -164,7 +173,6 @@ export default {
|
|||||||
const groupNumberValue_check = this.groupNumberValue === '' ? 0 : 1
|
const groupNumberValue_check = this.groupNumberValue === '' ? 0 : 1
|
||||||
const partNumber_check = this.partNumber === '' || this.partNumber === null ? 0 : 1
|
const partNumber_check = this.partNumber === '' || this.partNumber === null ? 0 : 1
|
||||||
searchdata(entryNameValue_check, this.entryNameValue, machineToolValue_check, this.machineToolValue, groupNumberValue_check, this.groupNumberValue, partNumber_check, this.partNumber, this.pageCurrent, this.pageSize).then(response => {
|
searchdata(entryNameValue_check, this.entryNameValue, machineToolValue_check, this.machineToolValue, groupNumberValue_check, this.groupNumberValue, partNumber_check, this.partNumber, this.pageCurrent, this.pageSize).then(response => {
|
||||||
console.log(response.data)
|
|
||||||
if (response.data.rows.length !== 0) {
|
if (response.data.rows.length !== 0) {
|
||||||
for (let i = 0; i < response.data.rows.length; i++) {
|
for (let i = 0; i < response.data.rows.length; i++) {
|
||||||
this.tableData.push({
|
this.tableData.push({
|
||||||
@@ -203,12 +211,13 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
fetchData() {
|
initProject() {
|
||||||
initProject().then(response => {
|
initProject().then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.entryName.push({
|
this.machineTool.push({
|
||||||
label: response.data[i].项目名称,
|
label: response.data[i].机床图号,
|
||||||
value: response.data[i].项目流水号
|
name: response.data[i].项目名称,
|
||||||
|
value: response.data[i].机床流水号
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -219,14 +228,16 @@ export default {
|
|||||||
this.machineTool = []
|
this.machineTool = []
|
||||||
this.groupNumberValue = ''
|
this.groupNumberValue = ''
|
||||||
this.groupNumber = []
|
this.groupNumber = []
|
||||||
searchmachine(0, 0).then(response => {
|
if (this.entryNameValue) {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
searchmachine(this.entryNameValue, 1).then(response => {
|
||||||
this.machineTool.push({
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
label: response.data[i].机床图号,
|
this.machineTool.push({
|
||||||
value: response.data[i].机床流水号
|
label: response.data[i].机床图号,
|
||||||
})
|
value: response.data[i].机床流水号
|
||||||
}
|
})
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 查询组号
|
// 查询组号
|
||||||
searchGroupList() {
|
searchGroupList() {
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
<el-card>
|
<el-card>
|
||||||
<el-tabs v-model="PartType2" type="border-card" style="margin-top: 10px">
|
<el-tabs v-model="PartType2" type="border-card" style="margin-top: 10px">
|
||||||
<el-tab-pane label="车间生产" name="车间生产">
|
<el-tab-pane label="车间生产" name="车间生产">
|
||||||
|
<!--<h3 style="text-align: center;">车间生产</h3>-->
|
||||||
<el-table v-loading="loading" :data="tableData" :summary-method="getSummaries" style="width: 100%;margin-top: 6px" highlight-current-row height="600" size="mini" show-summary border stripe>
|
<el-table v-loading="loading" :data="tableData" :summary-method="getSummaries" style="width: 100%;margin-top: 6px" highlight-current-row height="600" size="mini" show-summary border stripe>
|
||||||
<el-table-column align="center" label="零件图号">
|
<el-table-column align="center" label="零件图号">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -85,6 +86,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="采购部采购" name="采购部采购">
|
<el-tab-pane label="采购部采购" name="采购部采购">
|
||||||
|
<!--<h3 style="text-align: center;">采购部采购</h3>-->
|
||||||
<el-tabs v-model="PartType" type="border-card" style="margin-top: 10px" @tab-click="searchTable()">
|
<el-tabs v-model="PartType" type="border-card" style="margin-top: 10px" @tab-click="searchTable()">
|
||||||
<el-tab-pane label="标准件" name="标准件">
|
<el-tab-pane label="标准件" name="标准件">
|
||||||
<el-table :data="tableData00" size="mini" height="530px" border stripe>
|
<el-table :data="tableData00" size="mini" height="530px" border stripe>
|
||||||
@@ -123,6 +125,11 @@
|
|||||||
{{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.数量 || scope.row.离线采购数量 || '—' }}
|
{{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.数量 || scope.row.离线采购数量 || '—' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="用库存数">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.使用库存数 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column align="center" label="采购时间">
|
<el-table-column align="center" label="采购时间">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.创建日期 ? scope.row.创建日期.split(' ')[0] : scope.row.采购日期.split(' ')[0] }}
|
{{ scope.row.创建日期 ? scope.row.创建日期.split(' ')[0] : scope.row.采购日期.split(' ')[0] }}
|
||||||
@@ -183,6 +190,16 @@
|
|||||||
{{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.数量 || scope.row.离线采购数量 || '—' }}
|
{{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.数量 || scope.row.离线采购数量 || '—' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="用滞货数">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.使用滞货数量 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="用库存数">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.使用库存数 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column align="center" label="采购时间">
|
<el-table-column align="center" label="采购时间">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.创建日期 ? scope.row.创建日期.split(' ')[0] : scope.row.采购日期.split(' ')[0] }}
|
{{ scope.row.创建日期 ? scope.row.创建日期.split(' ')[0] : scope.row.采购日期.split(' ')[0] }}
|
||||||
@@ -274,6 +291,7 @@
|
|||||||
</el-tabs>
|
</el-tabs>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="制造部采购" name="制造部采购">
|
<el-tab-pane label="制造部采购" name="制造部采购">
|
||||||
|
<!--<h3 style="text-align: center;">制造部采购</h3>-->
|
||||||
<el-table :data="tableData1" border style="width: 100%;margin-top: 6px;" height="600">
|
<el-table :data="tableData1" border style="width: 100%;margin-top: 6px;" height="600">
|
||||||
<el-table-column label="机床图号" align="center" min-width="80">
|
<el-table-column label="机床图号" align="center" min-width="80">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -509,6 +527,14 @@ export default {
|
|||||||
this.total = parseInt(response.data.output[0].ItemCount)
|
this.total = parseInt(response.data.output[0].ItemCount)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
|
// searchTable22(this.check1, this.Machine, this.check2, this.Group, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent, this.pageSize).then(response => {
|
||||||
|
// console.log(response.data, 123243)
|
||||||
|
// for (let i = 0; i < response.data.length; i++) {
|
||||||
|
// if (response.data[i].入库时间 !== null) {
|
||||||
|
// this.totalNum += 1
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
searchTable1(this.check1, this.Machine, this.check2, this.Group, this.pageCurrent, this.pageSize).then(response => {
|
searchTable1(this.check1, this.Machine, this.check2, this.Group, this.pageCurrent, this.pageSize).then(response => {
|
||||||
this.tableData1 = response.data.rows
|
this.tableData1 = response.data.rows
|
||||||
this.total5 = parseInt(response.data.total)
|
this.total5 = parseInt(response.data.total)
|
||||||
@@ -518,6 +544,7 @@ export default {
|
|||||||
this.dialogFormVisible4 = true
|
this.dialogFormVisible4 = true
|
||||||
this.titleaa = row.零件图号
|
this.titleaa = row.零件图号
|
||||||
processingStatus(row.工艺计划流水号).then(response => {
|
processingStatus(row.工艺计划流水号).then(response => {
|
||||||
|
console.log(response.data, 1123)
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
if (response.data[i].计划日期 !== '' && response.data[i].计划日期 !== null) {
|
if (response.data[i].计划日期 !== '' && response.data[i].计划日期 !== null) {
|
||||||
response.data[i].计划日期 = response.data[i].计划日期.split(' ')[0]
|
response.data[i].计划日期 = response.data[i].计划日期.split(' ')[0]
|
||||||
@@ -586,6 +613,7 @@ export default {
|
|||||||
this.Group ? check2 = 1 : check2 = 0
|
this.Group ? check2 = 1 : check2 = 0
|
||||||
searchTable02(check1, this.Machine, check2, this.Group, this.pageCurrent02, this.pageSize02).then(response => {
|
searchTable02(check1, this.Machine, check2, this.Group, this.pageCurrent02, this.pageSize02).then(response => {
|
||||||
this.tableData02 = response.data.rows
|
this.tableData02 = response.data.rows
|
||||||
|
console.log(response, 999)
|
||||||
this.total02 = response.data.total
|
this.total02 = response.data.total
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -114,7 +114,7 @@
|
|||||||
@sort-change="sortChange"
|
@sort-change="sortChange"
|
||||||
@selection-change="handleSelectionChange1"
|
@selection-change="handleSelectionChange1"
|
||||||
@select="handleSelection">
|
@select="handleSelection">
|
||||||
<el-table-column :selectable="selectable" align="center" width="43" type="selection"/>
|
<el-table-column :selectable="selectable" align="center" width="43" type="selection" fixed="left"/>
|
||||||
<el-table-column v-if="switchValue" label="操作" align="center" width="110" fixed="left">
|
<el-table-column v-if="switchValue" label="操作" align="center" width="110" fixed="left">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button :disabled="parseInt(scope.row.询价状态编号)!==1||parseInt(scope.row.是否确认)!==1" type="distribution" size="mini" @click="materialChange(scope.row)">物料变更</el-button>
|
<el-button :disabled="parseInt(scope.row.询价状态编号)!==1||parseInt(scope.row.是否确认)!==1" type="distribution" size="mini" @click="materialChange(scope.row)">物料变更</el-button>
|
||||||
@@ -129,18 +129,18 @@
|
|||||||
<!--</template>-->
|
<!--</template>-->
|
||||||
<!--</el-table-column>-->
|
<!--</el-table-column>-->
|
||||||
<!--物料名称排序-->
|
<!--物料名称排序-->
|
||||||
<el-table-column label="名称" align="center" width="120" prop="物料名称" sortable="custom">
|
<el-table-column label="名称" align="center" width="120" prop="物料名称" sortable="custom" fixed="left">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.物料名称 }}
|
{{ scope.row.物料名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="规格" align="center" width="160" prop="物料规格" show-overflow-tooltip>
|
<el-table-column label="规格" align="center" width="160" prop="物料规格" fixed="left" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.物料规格 }}
|
{{ scope.row.物料规格 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!--物料排序-->
|
<!--物料排序-->
|
||||||
<el-table-column label="图号或型号" align="center" width="130" prop="物料型号" sortable="custom" show-overflow-tooltip>
|
<el-table-column label="图号或型号" align="center" width="130" prop="物料型号" sortable="custom" fixed="left" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.物料型号 }}
|
{{ scope.row.物料型号 }}
|
||||||
</template>
|
</template>
|
||||||
@@ -338,7 +338,7 @@
|
|||||||
@selection-change="handleSelectionChange2"
|
@selection-change="handleSelectionChange2"
|
||||||
@sort-change="sortChange"
|
@sort-change="sortChange"
|
||||||
@select="handleSelection1">
|
@select="handleSelection1">
|
||||||
<el-table-column :selectable="selectable" align="center" width="50" type="selection"/>
|
<el-table-column :selectable="selectable" align="center" width="50" type="selection" fixed="left"/>
|
||||||
<!--<el-table-column label="操作" align="center" width="100" fixed="left">-->
|
<!--<el-table-column label="操作" align="center" width="100" fixed="left">-->
|
||||||
<!--<template slot-scope="scope">-->
|
<!--<template slot-scope="scope">-->
|
||||||
<!--<el-button :disabled="parseInt(scope.row.询价状态编号)!==1||parseInt(scope.row.是否确认)!==1" type="primary" size="mini" @click="partChange(scope.row)">零件变更</el-button>-->
|
<!--<el-button :disabled="parseInt(scope.row.询价状态编号)!==1||parseInt(scope.row.是否确认)!==1" type="primary" size="mini" @click="partChange(scope.row)">零件变更</el-button>-->
|
||||||
@@ -352,17 +352,17 @@
|
|||||||
<!--<el-tag v-if="purchased(scope.row)" type="info" size="small">已采购</el-tag>-->
|
<!--<el-tag v-if="purchased(scope.row)" type="info" size="small">已采购</el-tag>-->
|
||||||
<!--</template>-->
|
<!--</template>-->
|
||||||
<!--</el-table-column>-->
|
<!--</el-table-column>-->
|
||||||
<el-table-column label="名称" align="center" min-width="120">
|
<el-table-column label="名称" align="center" min-width="120" fixed="left">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.零件名称 }}
|
{{ scope.row.零件名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="规格" align="center" min-width="80">
|
<el-table-column label="规格" align="center" min-width="80" fixed="left">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.规格 }}
|
{{ scope.row.规格 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="图号" align="center" min-width="130" prop="零件图号">
|
<el-table-column label="图号" align="center" min-width="130" prop="零件图号" fixed="left">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.零件图号 }}
|
{{ scope.row.零件图号 }}
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -41,6 +41,11 @@
|
|||||||
{{ scope.row.数量 }}
|
{{ scope.row.数量 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="用滞货数" align="center" width="80">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.使用滞货数量 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="用库存数" align="center" width="80">
|
<el-table-column label="用库存数" align="center" width="80">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.使用库存数 }}
|
{{ scope.row.使用库存数 }}
|
||||||
|
|||||||
@@ -96,9 +96,9 @@
|
|||||||
{{ scope.row.零件数量 || '—' }}
|
{{ scope.row.零件数量 || '—' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="利用库存数" width="100px">
|
<el-table-column align="center" label="用库存数" width="100px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.使用库存数 ? scope.row.使用库存数 : '—' }}
|
{{ scope.row.使用库存数 ? scope.row.使用库存数 : '0' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="采购数" width="70px">
|
<el-table-column align="center" label="采购数" width="70px">
|
||||||
@@ -215,6 +215,16 @@
|
|||||||
{{ scope.row.零件数量 || '—' }}
|
{{ scope.row.零件数量 || '—' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="用滞货数" width="80px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.使用滞货数量 ? scope.row.使用滞货数量 : 0 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="用库存数" width="80px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.使用库存数 ? scope.row.使用库存数 : 0 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column align="center" label="采购数" width="70px">
|
<el-table-column align="center" label="采购数" width="70px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.数量 }}
|
{{ scope.row.数量 }}
|
||||||
|
|||||||
@@ -2,749 +2,322 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-row>
|
<el-row>
|
||||||
<!--<span>合 同 号:</span>-->
|
<!-- <el-select v-model="entryNameValue" placeholder="项目名称" style="width:150px;margin: 10px 10px 0px 10px" size="small" clearable filterable @change="SearchMachine">-->
|
||||||
<el-select v-model="contractNumValue" placeholder="合同号" size="small" style="width: 170px" filterable clearable>
|
<!-- <el-option-->
|
||||||
|
<!-- v-for="item in entryName"-->
|
||||||
|
<!-- :key="item.value"-->
|
||||||
|
<!-- :label="item.label"-->
|
||||||
|
<!-- :value="item.value"/>-->
|
||||||
|
<!-- </el-select>-->
|
||||||
|
<el-select v-model="machineToolValue" placeholder="机床号" filterable size="small" clearable style="width: 150px;margin: 10px 10px 0px 10px" @change="searchGroupList">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in contractNum"
|
v-for="item in machineTool"
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value">
|
|
||||||
<div style="float: left">{{ item.label }}</div>
|
|
||||||
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</div>
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
<!--<span>供应商:</span>-->
|
|
||||||
<el-input v-model="supplierName" placeholder="供应商" size="small" clearable/>
|
|
||||||
<el-date-picker
|
|
||||||
v-model="startTime"
|
|
||||||
size="small"
|
|
||||||
type="daterange"
|
|
||||||
align="center"
|
|
||||||
value-format="yyyy-MM-dd"
|
|
||||||
format="yyyy-MM-dd"
|
|
||||||
range-separator="~"
|
|
||||||
style="width:250px"
|
|
||||||
start-placeholder="合同创建时间"
|
|
||||||
end-placeholder=" "/>
|
|
||||||
<!--<span>审批情况:</span>-->
|
|
||||||
<el-select v-model="approvalValue" placeholder="审批情况" size="small" clearable style="margin-left: 10px">
|
|
||||||
<el-option
|
|
||||||
v-for="item in approval"
|
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"/>
|
:value="item.value"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button type="primary" size="small" plain icon="el-icon-search" @click="total1=0;pageCurrent1=1;pageSize1=20;searchTable1()">查询</el-button>
|
<el-select v-model="groupNumberValue" placeholder="组号" size="small" clearable style="width: 100px;margin: 10px 10px 0px 10px">
|
||||||
<el-button v-positive="'loading'" :disabled="false" type="primary" size="small" plain icon="el-icon-download" @click="exportExcel()">导出合同报表</el-button>
|
<el-option
|
||||||
|
v-for="item in groupNumber"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"/>
|
||||||
|
</el-select>
|
||||||
|
<el-input v-model="partNumber" placeholder="零件号" size="small" clearable style="width: 180px;margin-left: 0px"/>
|
||||||
|
<el-button type="primary" icon="el-icon-search" size="small" plain style="margin: 15px 0 0 10px" @click="pageCurrent=1;pageSize=20;total=0;searchData()">查询</el-button>
|
||||||
|
<el-button type="warning" size="small" style="margin: 15px 0 0 10px" plain @click="wareHousing">出库</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-table v-loading="loading1" :data="tableData1" :row-class-name="tableRowClassName" size="mini" border style="width: 100%" height="500px" highlight-current-row @row-click="searchTable2">
|
<el-table :data="tableData" style="width: 1020px" height="580" stripe size="mini" border @selection-change="handleSelectionChange">
|
||||||
<el-table-column label="采购合同号" align="center" width="170px">
|
<el-table-column
|
||||||
|
type="selection"
|
||||||
|
width="45"/>
|
||||||
|
<el-table-column align="center" label="序号" type="index" width="55px"/>
|
||||||
|
<el-table-column align="center" label="机床图号" width="130px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.采购合同编号 }}
|
{{ scope.row.机床图号 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="采购合同名称" align="center" width="120px">
|
<el-table-column align="center" label="组号" width="80px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.采购合同名称 }}
|
{{ scope.row.组号 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="供应商" align="center" width="180px">
|
<el-table-column align="center" label="零件图号" min-width="180px" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.供应商名称 }}
|
{{ scope.row.零件图号 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="采购员" align="center">
|
<el-table-column align="center" label="零件名称" min-width="180px" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.姓名 }}
|
{{ scope.row.零件名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="总金额(元)" align="center">
|
<el-table-column align="center" label="库存数量" width="90px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.含税总金额 }}
|
{{ scope.row.出库数量1 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="预付款(元)" align="center">
|
<el-table-column align="center" label="已出库数量" width="100px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.预付款 }}
|
{{ scope.row.已出库数量 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="已付款(元)" align="center">
|
<el-table-column align="center" label="出库数量" width="140px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.付款金额 }}
|
<el-input-number v-model="scope.row.出库数量" :max="scope.row.出库数量1" :min="0" size="mini" style="width: 100%"/>
|
||||||
</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.审批情况内容 }}
|
|
||||||
</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" width="110px">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.未通过原因 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="操作" align="center" width="150px">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-button type="text" size="mini" icon="el-icon-printer" @click="exportTable()">打印</el-button>
|
|
||||||
<el-button :disabled="scope.row.审批情况内容==='通过审批'" type="text" size="mini" icon="el-icon-back" @click="Disable(scope.row)">打回</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<!-- <el-table-column align="center" label="入库数量" width="80px">-->
|
||||||
|
<!-- <template slot-scope="scope">-->
|
||||||
|
<!-- {{ scope.row.入库数量 }}-->
|
||||||
|
<!-- </template>-->
|
||||||
|
<!-- </el-table-column>-->
|
||||||
|
<!-- <el-table-column align="center" label="状态" width="80px">-->
|
||||||
|
<!-- <template slot-scope="scope">-->
|
||||||
|
<!-- <el-tag v-if="scope.row.考核状态 === '8'">入库</el-tag>-->
|
||||||
|
<!-- </template>-->
|
||||||
|
<!-- </el-table-column>-->
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="block" style="margin-top: 10px;">
|
<div class="block" style="margin-top: 10px;">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
:current-page="pageCurrent1"
|
:current-page="pageCurrent"
|
||||||
:page-sizes="[20, 30, 40, 50]"
|
:page-sizes="[10, 20, 30, 40, 50]"
|
||||||
:page-size="pageSize1"
|
:page-size="pageSize"
|
||||||
:total="total1"
|
:total="total"
|
||||||
style="display:inline-block;width:50%"
|
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
@size-change="handleSizeChange1"
|
@size-change="handleSizeChange"
|
||||||
@current-change="handleCurrentChange1"/>
|
@current-change="handleCurrentChange"/>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible" title="出库信息" center width="380px">
|
||||||
<el-card>
|
<el-form ref="form" :model="form" :rules="rules" label-position="right">
|
||||||
<div style="width:900px;margin-left: 350px">
|
<el-form-item label="部门" prop="部门" label-width="100px" size="small">
|
||||||
<el-card>
|
<!-- <el-input v-model="form.department" size="small" placeholder="请输入人员编号" style="width: 200px"/>-->
|
||||||
<div v-show="type==='1' || type==='2'" id="export">
|
<el-select v-model="form.department" placeholder="请选择部门" size="small" clearable style="width: 200px;" @change="selectLeaders">
|
||||||
<table id="1" cellspacing="0px" align="center" border width="100%" style="">
|
<el-option
|
||||||
<tr style="height: 40px">
|
v-for="item in departments"
|
||||||
<td colspan="2" align="center" style="font-weight: bold">GAOJING</td>
|
:key="item.value"
|
||||||
<td colspan="5" align="center" style="font-weight: bold">{{ 采购合同名称 }}</td>
|
:label="item.label"
|
||||||
<td colspan="1" rowspan="3" style="width: 119px"><img id="img" alt=""></td>
|
:value="item.value"/>
|
||||||
</tr>
|
</el-select>
|
||||||
<tr style="height: 40px">
|
</el-form-item>
|
||||||
<td colspan="1" align="center">需方</td>
|
<el-form-item label="领料人" prop="领料人" label-width="100px" size="small">
|
||||||
<td colspan="3" align="center">江苏高精机电装备有限公司</td>
|
<el-select v-model="form.name" placeholder="请选择领料人" size="small" filterable clearable style="width: 200px;">
|
||||||
<td colspan="1" align="center">合同编号</td>
|
<el-option
|
||||||
<td colspan="2" align="center">{{ contract }}</td>
|
v-for="item in leaders"
|
||||||
</tr>
|
:key="item.value"
|
||||||
<tr style="height: 40px">
|
:label="item.label"
|
||||||
<td colspan="1" align="center">供方</td>
|
:value="item.value"/>
|
||||||
<td colspan="3" align="center">{{ supplier }}</td>
|
</el-select>
|
||||||
<td colspan="1" align="center">签订地点</td>
|
</el-form-item>
|
||||||
<td colspan="2" align="center">江苏盐城</td>
|
<!-- <el-form-item label="人员编号" prop="leader" label-width="100px" size="small">-->
|
||||||
</tr>
|
<!-- <el-input v-model="form.leader" size="small" placeholder="请输入人员编号" style="width: 200px"/>-->
|
||||||
</table>
|
<!-- </el-form-item>-->
|
||||||
<div style="margin-top: 20px;line-height: 30px">根据《中华人民共和国合同法》的有关规定,经供需双方友好协商,在平等自愿的基础上定立本合同,以便供需双方共同遵守。</div>
|
</el-form>
|
||||||
<div style="line-height: 30px">一、 产品名称、规格型号、材质、数量、单价和交货期:</div>
|
|
||||||
<table id="50" cellspacing="0px" align="center" border width="100%" style="">
|
|
||||||
<tbody id="4">
|
|
||||||
<tr id="tableHead" style="height: 40px">
|
|
||||||
<td colspan="1" align="center">图号</td>
|
|
||||||
<td colspan="1" align="center">名称</td>
|
|
||||||
<td colspan="1" align="center">规格</td>
|
|
||||||
<td colspan="1" align="center">交货期</td>
|
|
||||||
<td colspan="1" align="center">备注</td>
|
|
||||||
<td colspan="1" align="center">数量</td>
|
|
||||||
<td colspan="1" align="center">单价</td>
|
|
||||||
<td colspan="1" align="center">总价</td>
|
|
||||||
</tr>
|
|
||||||
<!--</tbody>-->
|
|
||||||
<!--<!–<tbody id="4">–>-->
|
|
||||||
<!--<!–<tr id="tableHead" style="height: 40px">–>-->
|
|
||||||
<!--<!–<td colspan="1" align="center">物料名称</td>–>-->
|
|
||||||
<!--<!–<td colspan="1" align="center">物料规格</td>–>-->
|
|
||||||
<!--<!–<td colspan="1" align="center">物料型号</td>–>-->
|
|
||||||
<!--<!–<td colspan="1" align="center">交货期</td>–>-->
|
|
||||||
<!--<!–<td colspan="1" align="center">备注</td>–>-->
|
|
||||||
<!--<!–<td colspan="1" align="center">数量</td>–>-->
|
|
||||||
<!--<!–<td colspan="1" align="center">单价</td>–>-->
|
|
||||||
<!--<!–<td colspan="1" align="center">总价</td>–>-->
|
|
||||||
<!--<!–</tr>–>-->
|
|
||||||
</tbody>
|
|
||||||
<tfoot>
|
|
||||||
<tr style="height: 40px">
|
|
||||||
<td colspan="7">总价: (人民币){{ RMB }}(未税) </td>
|
|
||||||
<td colspan="1" align="center">{{ TotalAmount }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr style="height: 40px">
|
|
||||||
<td colspan="7">总价: (人民币){{ RMB1 }}(含{{ taxRate }}增值税) </td>
|
|
||||||
<td colspan="1" align="center">{{ TotalAmount1 }}</td>
|
|
||||||
</tr>
|
|
||||||
</tfoot>
|
|
||||||
</table>
|
|
||||||
<div style="line-height: 30px">以上价格为含税增值税价格,供方开具真实有效的{{ taxRate }}增值税发票</div>
|
|
||||||
<div id="23" style="line-height: 30px"/>
|
|
||||||
<table id="66" cellspacing="0px" align="center" border width="100%" style="margin-top: 30px">
|
|
||||||
<tbody id="67">
|
|
||||||
<tr style="height: 35px">
|
|
||||||
<td colspan="4" align="center">供 方</td>
|
|
||||||
<td colspan="4" align="center">需 方</td>
|
|
||||||
</tr>
|
|
||||||
<tr style="height: 35px">
|
|
||||||
<th style="width: 15%">单位名称(章)</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
<th style="width: 15%">单位名称(章)</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center">江苏高精</td>
|
|
||||||
</tr>
|
|
||||||
<tr style="height: 35px">
|
|
||||||
<th style="width: 15%">法定代表人</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
<th style="width: 15%">法定代表人</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
</tr>
|
|
||||||
<tr style="height: 35px">
|
|
||||||
<th style="width: 15%">委托代理人</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
<th style="width: 15%">委托代理人</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
</tr>
|
|
||||||
<tr style="height: 35px">
|
|
||||||
<th style="width: 15%">电话</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
<th style="width: 15%">电话</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr v-if="type==='1'" style="height: 35px">
|
|
||||||
<th style="width: 15%">传真</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
<th style="width: 15%">传真</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
</tr>
|
|
||||||
<tr v-if="type==='1'" style="height: 35px">
|
|
||||||
<th style="width: 15%">开户银行</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
<th style="width: 15%">开户银行</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
</tr>
|
|
||||||
<tr v-if="type==='1'" style="height: 35px">
|
|
||||||
<th style="width: 15%">账号</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
<th style="width: 15%">账号</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
</tr>
|
|
||||||
<tr v-if="type==='1'" style="height: 35px">
|
|
||||||
<th style="width: 15%">税号</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
<th style="width: 15%">税号</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
</tr>
|
|
||||||
<tr v-if="type==='1'" style="height: 35px">
|
|
||||||
<th style="width: 15%">邮政编码</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
<th style="width: 15%">邮政编码</th>
|
|
||||||
<td style="width: 35%" colspan="3" align="center"/>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<div style="line-height: 25px;margin-top: 10px">签订时间:____年__月__日</div>
|
|
||||||
<div style="line-height: 25px">有效期限:____年__月__日至____年__月__日</div>
|
|
||||||
</div>
|
|
||||||
<div v-show="type === '3'" id="WGBLD" style="width: 880px;margin: 0 auto">
|
|
||||||
<table cellspacing="0px" align="center" border="1 solid black" width="100%">
|
|
||||||
<tr style="height: 60px">
|
|
||||||
<th colspan="14"><h3>江苏高精机电装备有限公司</h3></th>
|
|
||||||
</tr>
|
|
||||||
<tr style="height: 40px">
|
|
||||||
<th colspan="14"><h4>{{ 采购合同名称 }}</h4></th>
|
|
||||||
</tr>
|
|
||||||
<tr style="height: 40px">
|
|
||||||
<td colspan="2" style="text-align: center;width: 15%">下单单位</td>
|
|
||||||
<td colspan="5" style="text-align: center;width: 35%">{{ supplier }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 15%">单号</td>
|
|
||||||
<td colspan="5" style="text-align: center;width: 35%">{{ contract }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr style="height: 40px">
|
|
||||||
<td colspan="2" style="text-align: center;width: 15%">下单日期</td>
|
|
||||||
<td colspan="5" style="text-align: center;width: 35%">{{ 操作日期 }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 15%">计划完成日期</td>
|
|
||||||
<td colspan="5" style="text-align: center;width: 35%">{{ 规定到货时间 }}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<table cellspacing="0px" align="center" border="1 solid black" width="100%" style="margin-top: 0px">
|
|
||||||
<tr id="tablehead10" style="height: 35px">
|
|
||||||
<td style="text-align: center;width: 7%">序号</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 20%">物料编码</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 10%">名称</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 10%">材料</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 8%">单位</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 8%">数量</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 17%">备注</td>
|
|
||||||
</tr>
|
|
||||||
<tr v-for="(list, index) in returns" :key="index" style="height: 35px">
|
|
||||||
<td style="text-align: center;width: 7%">{{ index + 1 }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 20%">{{ list.图号 }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 10%">{{ list.物料名称 }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 10%">{{ list.规格 }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 8%">{{ list.单位 }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 8%">{{ list.数量 }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 17%">{{ list.备注 }}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<div style="margin-top: 20px">联系人:___________ 联系电话:___________ </div>
|
|
||||||
</div>
|
|
||||||
<div v-show="type === '4'" id="CZCG" style="width: 880px;margin: 0 auto">
|
|
||||||
<table cellspacing="0px" align="center" border="1 solid black" width="100%">
|
|
||||||
<tr style="height: 60px">
|
|
||||||
<th colspan="14"><h3>江苏高精机电装备有限公司</h3></th>
|
|
||||||
</tr>
|
|
||||||
<tr style="height: 40px">
|
|
||||||
<th colspan="14"><h4>{{ 采购合同名称 }}</h4></th>
|
|
||||||
</tr>
|
|
||||||
<tr style="height: 40px">
|
|
||||||
<td colspan="2" style="text-align: center;width: 15%">下单单位</td>
|
|
||||||
<td colspan="5" style="text-align: center;width: 35%">{{ supplier }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 15%">单号</td>
|
|
||||||
<td colspan="5" style="text-align: center;width: 35%">{{ contract }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr style="height: 40px">
|
|
||||||
<td colspan="2" style="text-align: center;width: 15%">下单日期</td>
|
|
||||||
<td colspan="5" style="text-align: center;width: 35%">{{ 操作日期 }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 15%">计划完成日期</td>
|
|
||||||
<td colspan="5" style="text-align: center;width: 35%">{{ 规定到货时间 }}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<table cellspacing="0px" align="center" border="1 solid black" width="100%" style="margin-top: 0px">
|
|
||||||
<tr id="tablehead100" style="height: 35px">
|
|
||||||
<td style="text-align: center;width: 7%">序号</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 10%">组号</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 20%">组件名称</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 10%">单价</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 8%">金额</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 8%">数量</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 17%">备注</td>
|
|
||||||
</tr>
|
|
||||||
<tr v-for="(list, index) in returns2" :key="index" style="height: 35px">
|
|
||||||
<td style="text-align: center;width: 7%">{{ index + 1 }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 10%">{{ list.组号 }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 20%">{{ list.组件名称 }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 10%">{{ list.单价 }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 8%">{{ list.金额 }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 8%">{{ list.数量 }}</td>
|
|
||||||
<td colspan="2" style="text-align: center;width: 17%">{{ list.备注 }}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<div style="margin-top: 20px">联系人:___________ 联系电话:___________ </div>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
|
|
||||||
<el-dialog :visible.sync="dialogVisible2" title="采购员选择" center style="min-height: 300px;" width="40%">
|
|
||||||
<el-table
|
|
||||||
:data="tableData02"
|
|
||||||
size="small"
|
|
||||||
border
|
|
||||||
style="width: 100%;min-height:300px"
|
|
||||||
height="300px"
|
|
||||||
highlight-current-row
|
|
||||||
@row-click="clickBuyer">
|
|
||||||
<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.姓名 }}
|
|
||||||
</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.岗位名称 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button :disabled="submitDisable" type="primary" size="small" icon="el-icon-check" @click="submitSelectBuyer">确定</el-button>
|
<el-button @click="dialogFormVisible=false">取消</el-button>
|
||||||
|
<el-button v-positive="'loading'" :disabled="false" type="primary" @click="CHUKU()">确 定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { initContract, initBuyer, searchTable1, searchTable2, Disable, searchTable3 } from '@/api/WorkshopProcurement/ProcurementContractEnquiry'
|
// import { url } from '@/utils/request'
|
||||||
import $ from 'jquery'
|
// import axios from 'axios'
|
||||||
import QRCode from 'qrcode'
|
import { initProject, searchmachine, searchgroup, searchdata, warehousing, selectdepartment, selectleaders } from '@/api/Inventory/SelfMadePartsWarehouseOut'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
approval: [{
|
wareHousing_disable: false,
|
||||||
value: 0,
|
entryNameValue: '', // 项目名称
|
||||||
label: '全部'
|
entryName: [],
|
||||||
}, {
|
machineToolValue: '', // 机床号
|
||||||
value: 1,
|
machineTool: [],
|
||||||
label: '通过'
|
groupNumberValue: '', // 组号
|
||||||
}, {
|
groupNumber: [],
|
||||||
value: 2,
|
partNumber: '',
|
||||||
label: '未通过'
|
pageCurrent: 1,
|
||||||
}, {
|
pageSize: 20,
|
||||||
value: 3,
|
total: 0,
|
||||||
label: '未审批'
|
tableData: [],
|
||||||
}],
|
multipleSelection: [],
|
||||||
startTime: '',
|
dialogFormVisible: false,
|
||||||
采购合同名称: '',
|
processPlanSerialNumber: '', // 工艺计划流水号
|
||||||
规定到货时间: '',
|
remarks: '',
|
||||||
操作日期: '',
|
form: {
|
||||||
approvalValue: '',
|
leader: '',
|
||||||
RMB: '',
|
name: ''
|
||||||
TotalAmount: '',
|
},
|
||||||
check1: 0,
|
rules: {
|
||||||
check2: 0,
|
leader: [{ required: true, message: '请输入' }]
|
||||||
check3: 0,
|
},
|
||||||
check4: 0,
|
shuzu: [],
|
||||||
check5: 0,
|
keyichuku: 1,
|
||||||
startEndDate: '',
|
outgoingQuantity: [],
|
||||||
contract: '',
|
departments: [], // 部门
|
||||||
taxRate: '',
|
leaders: [] // 领料人
|
||||||
TotalAmount1: '',
|
|
||||||
RMB1: '',
|
|
||||||
type: '',
|
|
||||||
contractNumValue: '',
|
|
||||||
contractNum: [],
|
|
||||||
ProcurementContractNum: '',
|
|
||||||
buyerName: '',
|
|
||||||
buyerValue: '',
|
|
||||||
supplier: '',
|
|
||||||
supplierName: '',
|
|
||||||
supplierValue: '',
|
|
||||||
total1: 0,
|
|
||||||
pageCurrent1: 1,
|
|
||||||
pageSize1: 20,
|
|
||||||
tableData1: [],
|
|
||||||
loading1: false,
|
|
||||||
dialogVisible1: false,
|
|
||||||
form1: {},
|
|
||||||
goodTime: '',
|
|
||||||
returns: [],
|
|
||||||
returns1: [],
|
|
||||||
returns2: [],
|
|
||||||
tableData02: [],
|
|
||||||
submitDisable: true,
|
|
||||||
dialogVisible2: false,
|
|
||||||
textarea: ``,
|
|
||||||
contractValue: '' // 显示表2和变更合同用的变量
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchData()
|
this.initProject()
|
||||||
this.searchTable1()
|
this.searchData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchData() {
|
searchData() {
|
||||||
this.contractNum = []
|
this.tableData = []
|
||||||
initContract().then(response => {
|
const entryNameValue_check = this.entryNameValue === '' || this.entryNameValue === null ? 0 : 1
|
||||||
|
const machineToolValue_check = this.machineToolValue === '' || this.machineToolValue === null ? 0 : 1
|
||||||
|
const groupNumberValue_check = this.groupNumberValue === '' ? 0 : 1
|
||||||
|
const partNumber_check = this.partNumber === '' || this.partNumber === null ? 0 : 1
|
||||||
|
searchdata(entryNameValue_check, this.entryNameValue, machineToolValue_check, this.machineToolValue, groupNumberValue_check, this.groupNumberValue, partNumber_check, this.partNumber, this.pageCurrent, this.pageSize).then(response => {
|
||||||
|
if (response.data.rows.length !== 0) {
|
||||||
|
for (let i = 0; i < response.data.rows.length; i++) {
|
||||||
|
this.tableData.push({
|
||||||
|
机床图号: response.data.rows[i].机床图号,
|
||||||
|
组号: response.data.rows[i].组号,
|
||||||
|
零件图号: response.data.rows[i].零件图号,
|
||||||
|
零件名称: response.data.rows[i].零件名称,
|
||||||
|
已出库数量: Number(response.data.rows[i].出库数量),
|
||||||
|
入库数量: Number(response.data.rows[i].入库数量),
|
||||||
|
工艺计划流水号: response.data.rows[i].工艺计划流水号,
|
||||||
|
出库数量: Number(response.data.rows[i].入库数量) - Number(response.data.rows[i].出库数量),
|
||||||
|
出库数量1: Number(response.data.rows[i].入库数量) - Number(response.data.rows[i].出库数量)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.total = response.data.total
|
||||||
|
})
|
||||||
|
},
|
||||||
|
selectDepartment() {
|
||||||
|
selectdepartment().then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.contractNum.push({
|
this.departments.push({
|
||||||
label: response.data[i].采购合同编号,
|
label: response.data[i].部门名称,
|
||||||
name: response.data[i].采购合同名称,
|
value: response.data[i].考核部门编号
|
||||||
value: response.data[i].采购合同流水号
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
initBuyer() { // 初始化采购人员
|
selectLeaders() {
|
||||||
initBuyer().then(response => {
|
selectleaders(this.form.department).then(response => {
|
||||||
this.tableData02 = response.data
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
})
|
this.leaders.push({
|
||||||
},
|
label: response.data[i].姓名,
|
||||||
clickBuyer(row) { // 点击采购员表某一行
|
value: response.data[i].考勤编号
|
||||||
this.submitDisable = false
|
})
|
||||||
this.buyerName = row.姓名
|
|
||||||
this.buyerValue = row.人员编号
|
|
||||||
},
|
|
||||||
submitSelectBuyer() { // 确定
|
|
||||||
this.dialogVisible2 = false
|
|
||||||
},
|
|
||||||
exportExcel() { // 导出
|
|
||||||
this.startTime ? this.check1 = 1 : this.check1 = 0
|
|
||||||
this.contractNumValue ? this.check2 = 1 : this.check2 = 0
|
|
||||||
this.supplierName ? this.check4 = 1 : this.check4 = 0
|
|
||||||
if (this.approvalValue === '' || this.approvalValue === 0) {
|
|
||||||
this.check5 = 0
|
|
||||||
} else {
|
|
||||||
this.check5 = 1
|
|
||||||
}
|
|
||||||
console.log(this.check1, this.check2, this.contractNumValue, this.check4, this.supplierName, this.check5, this.approvalValue, 111)
|
|
||||||
var param = []
|
|
||||||
param[0] = ['时间段_check', this.check1]
|
|
||||||
if (this.check1 === 0) {
|
|
||||||
param[1] = ['开始时间', '']
|
|
||||||
param[2] = ['结束时间', '']
|
|
||||||
} else {
|
|
||||||
param[1] = ['开始时间', this.startTime[0]]
|
|
||||||
param[2] = ['结束时间', this.startTime[1]]
|
|
||||||
}
|
|
||||||
// param[1] = ['开始时间', this.startTime[0]]
|
|
||||||
// param[2] = ['结束时间', this.startTime[1]]
|
|
||||||
param[3] = ['采购合同流水号_check', this.check2]
|
|
||||||
param[4] = ['采购合同流水号', this.contractNumValue]
|
|
||||||
param[5] = ['供应商名称_check', this.check4]
|
|
||||||
param[6] = ['供应商名称', this.supplierName]
|
|
||||||
param[7] = ['审批情况流水号_check', this.check5]
|
|
||||||
param[8] = ['审批情况流水号', this.approvalValue]
|
|
||||||
var Data = this.CreateData('2001', '报表_采购管理_合同_查询数据', param)
|
|
||||||
this.exportExcel_NPOI(Data)
|
|
||||||
},
|
|
||||||
searchTable1() {
|
|
||||||
this.textarea = ``
|
|
||||||
this.loading1 = true
|
|
||||||
this.startTime ? this.check1 = 1 : (this.check1 = 0, this.startTime = '')
|
|
||||||
this.contractNumValue ? this.check2 = 1 : this.check2 = 0
|
|
||||||
this.supplierName ? this.check4 = 1 : this.check4 = 0
|
|
||||||
if (this.approvalValue === '' || this.approvalValue === 0) {
|
|
||||||
this.check5 = 0
|
|
||||||
} else {
|
|
||||||
this.check5 = 1
|
|
||||||
}
|
|
||||||
searchTable1(this.pageCurrent1, this.pageSize1, this.check1, this.startTime[0], this.startTime[1], this.check2, this.contractNumValue, 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++) {
|
|
||||||
if (response.data.rows[j].规定到货时间 !== null) {
|
|
||||||
response.data.rows[j].规定到货时间 = response.data.rows[j].规定到货时间.substring(0, response.data.rows[j].规定到货时间.indexOf(' '))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.tableData1 = response.data.rows
|
|
||||||
this.total1 = response.data.total
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
tableRowClassName({ row, rowIndex }) {
|
initProject() {
|
||||||
// if (row.审批情况流水号 === '1') {
|
initProject().then(response => {
|
||||||
// return 'adopt'
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
// } else
|
this.machineTool.push({
|
||||||
if (row.审批情况流水号 === '2') {
|
label: response.data[i].机床图号,
|
||||||
return 'NotThrough'
|
name: response.data[i].项目名称,
|
||||||
}
|
value: response.data[i].机床流水号
|
||||||
},
|
})
|
||||||
Disable(row) {
|
|
||||||
this.$confirm('将合同打回到请购单, 是否继续?', '提示', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
Disable(row.采购合同流水号).then(response => {
|
|
||||||
if (response.data[0].result === '1') {
|
|
||||||
this.$message.success('禁用成功')
|
|
||||||
this.searchTable1()
|
|
||||||
} else {
|
|
||||||
this.$message.error('禁用失败')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}).catch(() => {
|
|
||||||
this.$message({
|
|
||||||
type: 'info',
|
|
||||||
message: '已取消禁用'
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
exportTable() {
|
|
||||||
if (this.type === '1' || this.type === '2') {
|
|
||||||
const htmlNode = $('#export').html()
|
|
||||||
const body = $('body')
|
|
||||||
body.children().hide()
|
|
||||||
const printNode = $(htmlNode)
|
|
||||||
body.append(printNode)
|
|
||||||
window.print()
|
|
||||||
body.children().not('script').show()
|
|
||||||
body.children().not('#app').hide()
|
|
||||||
printNode.remove()
|
|
||||||
} else if (this.type === '3') {
|
|
||||||
const htmlNode = $('#WGBLD').html()
|
|
||||||
const body = $('body')
|
|
||||||
body.children().hide()
|
|
||||||
const printNode = $(htmlNode)
|
|
||||||
body.append(printNode)
|
|
||||||
window.print()
|
|
||||||
body.children().not('script').show()
|
|
||||||
body.children().not('#app').hide()
|
|
||||||
printNode.remove()
|
|
||||||
} else {
|
|
||||||
const htmlNode = $('#CZCG').html()
|
|
||||||
const body = $('body')
|
|
||||||
body.children().hide()
|
|
||||||
const printNode = $(htmlNode)
|
|
||||||
body.append(printNode)
|
|
||||||
window.print()
|
|
||||||
body.children().not('script').show()
|
|
||||||
body.children().not('#app').hide()
|
|
||||||
printNode.remove()
|
|
||||||
}
|
|
||||||
},
|
|
||||||
handleSizeChange1(val) {
|
|
||||||
this.pageCurrent1 = 1
|
|
||||||
this.pageSize1 = val
|
|
||||||
this.searchTable1()
|
|
||||||
},
|
|
||||||
handleCurrentChange1(val) {
|
|
||||||
this.pageCurrent1 = val
|
|
||||||
this.searchTable1()
|
|
||||||
},
|
|
||||||
searchTable2(row) {
|
|
||||||
this.type = row.模板类型
|
|
||||||
console.log(this.type)
|
|
||||||
this.规定到货时间 = row.规定到货时间
|
|
||||||
this.操作日期 = row.操作日期
|
|
||||||
this.采购合同名称 = row.采购合同名称
|
|
||||||
this.textarea = row.合同文本
|
|
||||||
this.supplier = row.供应商名称
|
|
||||||
this.contract = row.采购合同编号
|
|
||||||
this.taxRate = row.税率
|
|
||||||
this.RMB = row.总金额_文本
|
|
||||||
if (row.总金额 === '0') {
|
|
||||||
this.TotalAmount = ''
|
|
||||||
this.TotalAmount1 = ''
|
|
||||||
} else {
|
|
||||||
this.TotalAmount = row.总金额
|
|
||||||
this.TotalAmount1 = parseInt((row.含税总金额) * 100) / 100
|
|
||||||
}
|
|
||||||
this.RMB1 = row.含税总金额_文本
|
|
||||||
if (this.type === '1' || this.type === '2') {
|
|
||||||
document.getElementById('23').innerText = this.textarea
|
|
||||||
this.contractValue = parseInt(row.采购合同流水号)
|
|
||||||
const opts = {
|
|
||||||
errorCorrectionLevel: 'H',
|
|
||||||
type: 'image/jpeg',
|
|
||||||
rendererOpts: {
|
|
||||||
quality: 0.3
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
QRCode.toDataURL(row.采购合同流水号, opts, function(err, url) {
|
})
|
||||||
if (err) throw err
|
},
|
||||||
const img = document.getElementById('img')
|
// 查询机床
|
||||||
img.src = url
|
SearchMachine() {
|
||||||
})
|
this.machineToolValue = ''
|
||||||
searchTable2(this.contractValue).then(response => {
|
this.machineTool = []
|
||||||
this.returns = response.data
|
this.groupNumberValue = ''
|
||||||
const children = document.getElementsByClassName('tableData')
|
this.groupNumber = []
|
||||||
const parent = document.getElementById('4')
|
if (this.entryNameValue) {
|
||||||
if (children.length !== 0) {
|
searchmachine(this.entryNameValue, 1).then(response => {
|
||||||
for (let i = children.length - 1; i >= 0; i--) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
parent.removeChild(children[i])
|
this.machineTool.push({
|
||||||
}
|
label: response.data[i].机床图号,
|
||||||
|
value: response.data[i].机床流水号
|
||||||
|
})
|
||||||
}
|
}
|
||||||
const tr = []
|
|
||||||
for (let i = 0; i < this.returns.length; i++) {
|
|
||||||
tr[i] = document.createElement('tr')
|
|
||||||
tr[i].setAttribute('class', 'tableData')
|
|
||||||
tr[i].innerHTML = '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' +
|
|
||||||
'<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>'
|
|
||||||
$('#tableHead').after(tr[i])
|
|
||||||
}
|
|
||||||
for (let j = 0; j < this.returns.length; j++) {
|
|
||||||
document.getElementsByClassName('tableData')[j].children[0].innerHTML = response.data[j].图号
|
|
||||||
document.getElementsByClassName('tableData')[j].children[1].innerHTML = response.data[j].物料名称
|
|
||||||
document.getElementsByClassName('tableData')[j].children[2].innerHTML = response.data[j].规格
|
|
||||||
document.getElementsByClassName('tableData')[j].children[3].innerHTML = response.data[j].物料计划到货时间.split(' ')[0]
|
|
||||||
document.getElementsByClassName('tableData')[j].children[4].innerHTML = response.data[j].备注
|
|
||||||
document.getElementsByClassName('tableData')[j].children[5].innerHTML = response.data[j].数量
|
|
||||||
document.getElementsByClassName('tableData')[j].children[6].innerHTML = response.data[j].单价
|
|
||||||
document.getElementsByClassName('tableData')[j].children[7].innerHTML = response.data[j].金额
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else if (this.type === '3') {
|
|
||||||
this.contractValue = parseInt(row.采购合同流水号)
|
|
||||||
searchTable2(this.contractValue).then(response => {
|
|
||||||
this.returns = response.data
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.contractValue = parseInt(row.采购合同流水号)
|
|
||||||
searchTable3(this.contractValue).then(response => {
|
|
||||||
this.returns2 = response.data
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// searchTable3(this.contractValue).then(response => {
|
},
|
||||||
// this.returns1 = response.data
|
// 查询组号
|
||||||
// const children1 = document.getElementsByClassName('tableData1')
|
searchGroupList() {
|
||||||
// const parent1 = document.getElementById('51')
|
this.groupNumberValue = ''
|
||||||
// if (children1.length !== 0) {
|
this.groupNumber = []
|
||||||
// for (let i = children1.length - 1; i >= 0; i--) {
|
if (this.machineToolValue) {
|
||||||
// parent1.removeChild(children1[i])
|
searchgroup(this.machineToolValue).then(response => {
|
||||||
// }
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
// }
|
this.groupNumber.push({
|
||||||
// const tr = []
|
label: response.data[i].组号,
|
||||||
// for (let i = 0; i < this.returns1.length; i++) {
|
value: response.data[i].组件流水号
|
||||||
// tr[i] = document.createElement('tr')
|
})
|
||||||
// tr[i].setAttribute('class', 'tableData1')
|
}
|
||||||
// tr[i].innerHTML = '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' +
|
})
|
||||||
// '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>' + '<td colspan="1" align="center"></td>'
|
}
|
||||||
// $('#tableHead1').after(tr[i])
|
}, // 入库
|
||||||
// }
|
wareHousing() {
|
||||||
// for (let j = 0; j < this.returns1.length; j++) {
|
if (this.shuzu.length === 0) {
|
||||||
// if (response.data[j].备注 === null) {
|
this.$message.warning('请勾选出库物料')
|
||||||
// response.data[j].备注 = ''
|
} else {
|
||||||
// }
|
this.selectDepartment()
|
||||||
// if (response.data[j].单价 === 0) {
|
this.form.leader = ''
|
||||||
// response.data[j].单价 = ''
|
this.wareHousing_disable = false
|
||||||
// }
|
this.dialogFormVisible = true
|
||||||
// if (response.data[j].金额 === 0) {
|
}
|
||||||
// response.data[j].金额 = ''
|
}, // 多选
|
||||||
// }
|
handleSelectionChange(val) {
|
||||||
// document.getElementsByClassName('tableData1')[j].children[0].innerHTML = response.data[j].物料名称
|
this.shuzu = []
|
||||||
// document.getElementsByClassName('tableData1')[j].children[1].innerHTML = response.data[j].图号
|
this.shuzu = val
|
||||||
// document.getElementsByClassName('tableData1')[j].children[2].innerHTML = response.data[j].规格
|
// val.map(v => {
|
||||||
// document.getElementsByClassName('tableData1')[j].children[3].innerHTML = response.data[j].物料计划到货时间.split(' ')[0]
|
// this.multipleSelection.push(v.工艺计划流水号)
|
||||||
// document.getElementsByClassName('tableData1')[j].children[4].innerHTML = response.data[j].备注
|
// this.outgoingQuantity.push(v.出库数量)
|
||||||
// document.getElementsByClassName('tableData1')[j].children[5].innerHTML = response.data[j].数量
|
|
||||||
// document.getElementsByClassName('tableData1')[j].children[6].innerHTML = response.data[j].单价
|
|
||||||
// document.getElementsByClassName('tableData1')[j].children[7].innerHTML = response.data[j].金额
|
|
||||||
// }
|
|
||||||
// })
|
// })
|
||||||
|
},
|
||||||
|
CHUKU() {
|
||||||
|
this.keyichuku = 1
|
||||||
|
this.multipleSelection = []
|
||||||
|
this.outgoingQuantity = []
|
||||||
|
this.shuzu.map(v => {
|
||||||
|
if (v.出库数量 !== 0) {
|
||||||
|
this.multipleSelection.push(v.工艺计划流水号)
|
||||||
|
this.outgoingQuantity.push(v.出库数量)
|
||||||
|
} else {
|
||||||
|
this.keyichuku = 0
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if (this.keyichuku === 1) {
|
||||||
|
if (this.form.name === '') {
|
||||||
|
this.$message.error('请选择领料人')
|
||||||
|
} else {
|
||||||
|
this.wareHousing_disable = true
|
||||||
|
warehousing(this.multipleSelection, this.outgoingQuantity, this.form.name, this.remarks).then(response => {
|
||||||
|
if (response.data[0].result === '1') {
|
||||||
|
this.$message.success('出库成功')
|
||||||
|
this.dialogFormVisible = false
|
||||||
|
this.searchData()
|
||||||
|
} else {
|
||||||
|
this.$message.error('出库失败')
|
||||||
|
this.dialogFormVisible = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$message.error('请选择正确的出库数量')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleSizeChange(val) {
|
||||||
|
this.pageSize = val
|
||||||
|
this.searchData()
|
||||||
|
},
|
||||||
|
handleCurrentChange(val) {
|
||||||
|
this.pageCurrent = val
|
||||||
|
this.searchData()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.el-date-editor{
|
|
||||||
width:200px
|
|
||||||
}
|
|
||||||
.el-select{
|
|
||||||
width:150px;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
.el-input{
|
|
||||||
width:150px;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
span{
|
|
||||||
margin: 10px 0 10px 10px;
|
|
||||||
}
|
|
||||||
.searchForm .el-form-item{
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
el-button.is-disabled.is-plain, .el-button.is-disabled.is-plain:focus, .el-button.is-disabled.is-plain {
|
|
||||||
background: #9BD7FC;
|
|
||||||
border: 0px
|
|
||||||
}
|
|
||||||
el-button.is-disabled.is-plain, .el-button.is-disabled.is-plain:focus, .el-button.is-disabled.is-plain:hover {
|
|
||||||
background: rgb(238, 238, 238);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<style>
|
<style>
|
||||||
.tableData{
|
.el-checkbox__inner {
|
||||||
height: 30px;
|
border: 1px solid black !important;
|
||||||
border: 0px;
|
}
|
||||||
}
|
|
||||||
.tableData1{
|
|
||||||
height: 30px;
|
|
||||||
}
|
|
||||||
.el-table .adopt{
|
|
||||||
background: #9BD7FC;
|
|
||||||
}
|
|
||||||
.el-table .NotThrough{
|
|
||||||
background: #FF9759;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user