车间设备管理
This commit is contained in:
@@ -51,39 +51,38 @@
|
|||||||
<el-tag v-if="scope.row.备料打印 ==='0' && scope.row.是否外购备料==='0'" type="warning" size="mini">未分配</el-tag>
|
<el-tag v-if="scope.row.备料打印 ==='0' && scope.row.是否外购备料==='0'" type="warning" size="mini">未分配</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="零件名称" prop="零件名称" align="center" width="280" sortable="custom" show-overflow-tooltip>
|
<el-table-column label="零件名称" prop="零件名称" align="center" width="250" sortable="custom" show-overflow-tooltip>
|
||||||
<el-table-column label="零件名称" prop="零件名称" align="center" width="250" 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="零件图号" prop="零件图号" align="center" width="180" sortable="custom" show-overflow-tooltip>
|
||||||
<el-table-column label="零件图号" prop="零件图号" align="center" width="180" sortable="custom" show-overflow-tooltip>
|
<!--<el-table-column label="零件图号" prop="零件图号" align="center" width="180" show-overflow-tooltip>-->
|
||||||
<!--<el-table-column label="零件图号" prop="零件图号" align="center" width="180" 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="60">
|
||||||
<el-table-column label="数量" align="center" width="60">
|
<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="120" show-overflow-tooltip>
|
||||||
<el-table-column label="材料" align="center" width="120" 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="60" >
|
||||||
<el-table-column label="重量" align="center" width="60" >
|
<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="300" show-overflow-tooltip>
|
||||||
<el-table-column label="工艺要求" align="center" width="300" 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>
|
||||||
</el-table-column></el-table>
|
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
v-if="!loading"
|
v-if="!loading"
|
||||||
@@ -160,13 +159,12 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
sortChange(column, prop, order) {
|
sortChange(column, prop, order) {
|
||||||
console.log(column + '-' + column.prop + '-' + column.order, 11111)
|
console.log(column + '-' + column.prop + '-' + column.order, 11111)
|
||||||
this.ordername = column.prop
|
if (column.prop === '零件名称') {
|
||||||
if (column.ordername === '零件名称') {
|
|
||||||
this.ordername = 1
|
this.ordername = 1
|
||||||
} else if (column.ordername === '零件图号') { this.ordername = 2 } else {
|
} else if (column.prop === '零件图号') { this.ordername = 2 } else {
|
||||||
this.ordername = ''
|
this.ordername = ''
|
||||||
}
|
}
|
||||||
|
console.log(this.ordername, 9990999)
|
||||||
if (column.order === 'ascending') {
|
if (column.order === 'ascending') {
|
||||||
this.order = 1
|
this.order = 1
|
||||||
} else if (column.order === 'descending') { this.order = 2 } else {
|
} else if (column.order === 'descending') { this.order = 2 } else {
|
||||||
@@ -199,35 +197,32 @@ export default {
|
|||||||
this.partNamecheck = false
|
this.partNamecheck = false
|
||||||
}
|
}
|
||||||
searchtable(this.partNamecheck, this.partName, !this.all, 0, this.pageCurrent, this.pageSize, this.ordername, this.order).then(response => {
|
searchtable(this.partNamecheck, this.partName, !this.all, 0, this.pageCurrent, this.pageSize, this.ordername, this.order).then(response => {
|
||||||
searchtable(this.partNamecheck, this.partName, !this.all, 0, this.pageCurrent, this.pageSize).then(response => {
|
if (response.data.total === 0) {
|
||||||
console.log(response)
|
this.loading = false
|
||||||
if (response.data.total === 0) {
|
} else {
|
||||||
this.loading = false
|
|
||||||
} else {
|
|
||||||
// this.tableData.push({
|
// this.tableData.push({
|
||||||
// 重量: response.data.rows[0].重量
|
// 重量: response.data.rows[0].重量
|
||||||
// })
|
// })
|
||||||
this.Data = response.data.rows
|
this.Data = response.data.rows
|
||||||
this.total = response.data.total
|
this.total = response.data.total
|
||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
for (let i = 0; i < this.Data.length; i++) {
|
for (let i = 0; i < this.Data.length; i++) {
|
||||||
searchtable2(this.Data[i].工艺计划流水号).then(response => {
|
searchtable2(this.Data[i].工艺计划流水号).then(response => {
|
||||||
this.tableData.push({
|
this.tableData.push({
|
||||||
工艺计划流水号: this.Data[i].工艺计划流水号,
|
工艺计划流水号: this.Data[i].工艺计划流水号,
|
||||||
零件名称: this.Data[i].零件名称,
|
零件名称: this.Data[i].零件名称,
|
||||||
零件图号: this.Data[i].零件图号,
|
零件图号: this.Data[i].零件图号,
|
||||||
备料打印: this.Data[i].备料打印,
|
备料打印: this.Data[i].备料打印,
|
||||||
是否外购备料: this.Data[i].是否外购备料,
|
是否外购备料: this.Data[i].是否外购备料,
|
||||||
工艺要求: response.data[0].工艺要求,
|
工艺要求: response.data[0].工艺要求,
|
||||||
材料: this.Data[i].材料,
|
材料: this.Data[i].材料,
|
||||||
重量: this.Data[i].重量,
|
重量: this.Data[i].重量,
|
||||||
批次数量: this.Data[i].批次数量
|
批次数量: this.Data[i].批次数量
|
||||||
})
|
|
||||||
})
|
})
|
||||||
this.loading = false
|
})
|
||||||
}
|
this.loading = false
|
||||||
})
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
|
|||||||
@@ -43,7 +43,11 @@
|
|||||||
<el-tooltip :open-delay="1200" effect="dark" content="新增项目" placement="top">
|
<el-tooltip :open-delay="1200" effect="dark" content="新增项目" placement="top">
|
||||||
<el-button type="primary" icon="el-icon-circle-plus-outline" size="small" style="margin-left: 10px;background: #fdf6ec;border-color: #ff9759;color: #ff9759;" @click="ADD()">新增</el-button>
|
<el-button type="primary" icon="el-icon-circle-plus-outline" size="small" style="margin-left: 10px;background: #fdf6ec;border-color: #ff9759;color: #ff9759;" @click="ADD()">新增</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
<<<<<<< HEAD
|
||||||
<!-- <el-button type="info" size="small" style="margin-left: 10px">导出Excel</el-button>-->
|
<!-- <el-button type="info" size="small" style="margin-left: 10px">导出Excel</el-button>-->
|
||||||
|
=======
|
||||||
|
<!--<el-button type="info" size="small" style="margin-left: 10px">导出Excel</el-button>-->
|
||||||
|
>>>>>>> d828757fc0d137c09d0339446a35ae8651355ce7
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-row>
|
<el-row>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<span>零件号:</span>
|
<span>零件号:</span>
|
||||||
<el-input v-model="partNumber" size="small" placeholder="零件号" clearable style="width:200px"/>
|
<el-input v-model="partNumber" size="small" placeholder="零件号" clearable style="width:200px"/>
|
||||||
<el-button type="success" size="mini" icon="el-icon-search" style="margin-left:10px" @click="getList()">查询</el-button>
|
<el-button type="success" size="mini" icon="el-icon-search" style="margin-left:10px" @click="getList()">查询</el-button>
|
||||||
<el-button type="danger" size="mini" icon="el-icon-caret-right" style="margin-left:10px" @click="getBack()">打回车间</el-button>
|
<el-button type="danger" plain size="mini" icon="el-icon-caret-right" style="float: right;margin-right:10px" @click="getBack()">打回车间</el-button>
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="loading1"
|
v-loading="loading1"
|
||||||
ref="multipleTable"
|
ref="multipleTable"
|
||||||
@@ -139,15 +139,15 @@
|
|||||||
<!--<el-button type="success" size="mini" icon="el-icon-edit" style="margin-left:10px;margin-top: 15px" @click="calculatingPrice">计算价格</el-button>-->
|
<!--<el-button type="success" size="mini" icon="el-icon-edit" style="margin-left:10px;margin-top: 15px" @click="calculatingPrice">计算价格</el-button>-->
|
||||||
<!--</el-tooltip>-->
|
<!--</el-tooltip>-->
|
||||||
<el-button type="warning" size="mini" icon="el-icon-arrow-down" style="margin-left:10px" @click="getSpareParts">选入零件</el-button>
|
<el-button type="warning" size="mini" icon="el-icon-arrow-down" style="margin-left:10px" @click="getSpareParts">选入零件</el-button>
|
||||||
<el-button type="primary" size="mini" icon="el-icon-download" style="margin-left:10px;margin-top: 3px;float: right" @click="exportTable('RWD')">导出单据</el-button>
|
<el-button type="primary" size="mini" icon="el-icon-download" style="margin-left:10px;margin-top: 3px;float: right" @click="exportTable('RWD')">导出任务单</el-button>
|
||||||
<el-tooltip :open-delay="1200" effect="dark" content="成交" placement="top">
|
<el-tooltip :open-delay="1200" effect="dark" content="成交" placement="top">
|
||||||
<el-button type="success" size="mini" icon="el-icon-success" style="margin-left:10px;margin-top: 3px;float: right" @click="Deal">成交</el-button>
|
<el-button type="success" size="mini" icon="el-icon-success" style="margin-left:10px;margin-top: 3px;float: right" @click="Deal">提交</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-tooltip :open-delay="1200" effect="dark" content="核对价格信息后确定" placement="top">
|
<el-tooltip :open-delay="1200" effect="dark" content="核对价格信息后确定" placement="top">
|
||||||
<el-button type="success" size="mini" icon="el-icon-edit" style="margin-left:10px;margin-top: 3px;float: right" @click="confirmPrice">保存</el-button>
|
<el-button type="success" size="mini" icon="el-icon-edit" style="margin-left:10px;margin-top: 3px;float: right" @click="confirmPrice">保存</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</div>
|
</div>
|
||||||
<el-table v-loading="loading" :data="List3" :summary-method="getSummaries" :row-class-name="tableRowClassName" height="488" stripe size="mini" show-summary border>
|
<el-table v-loading="loading" :data="List3" :summary-method="getSummaries" height="488" stripe size="mini" show-summary border>
|
||||||
<el-table-column label="零件图号" align="center" min-width="150px">
|
<el-table-column label="零件图号" align="center" min-width="150px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ 零件图号[scope.$index] }}
|
{{ 零件图号[scope.$index] }}
|
||||||
@@ -205,13 +205,13 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" width="80px">
|
<el-table-column label="操作" align="center" width="80px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" type="text" plain icon="el-icon-delete" @click="handleDelete1(scope.$index)">移除</el-button>
|
<el-button size="mini" type="text" plain icon="el-icon-right" @click="handleDelete1(scope.$index)">移出</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card v-show="true">
|
<el-card v-show="false">
|
||||||
<div id="RWD">
|
<div id="RWD">
|
||||||
<table cellspacing="0px" align="center" width="100%" style="">
|
<table cellspacing="0px" align="center" width="100%" style="">
|
||||||
<tbody id="1">
|
<tbody id="1">
|
||||||
@@ -315,7 +315,7 @@
|
|||||||
<!--<el-button slot="append" icon="el-icon-search" @click="onFocus1();param=1"/>-->
|
<!--<el-button slot="append" icon="el-icon-search" @click="onFocus1();param=1"/>-->
|
||||||
<!--</el-input>-->
|
<!--</el-input>-->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="运费" prop="运费" style="margin-left: 70px">
|
<el-form-item v-show="false" label="运费" prop="运费" style="margin-left: 70px">
|
||||||
<el-input v-model="form.运费" placeholder="运费" size="small" style="width:200px" clearable/>
|
<el-input v-model="form.运费" placeholder="运费" size="small" style="width:200px" clearable/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@@ -682,9 +682,9 @@ export default {
|
|||||||
submit(formName) {
|
submit(formName) {
|
||||||
this.$refs[formName].validate((valid) => {
|
this.$refs[formName].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.title === '增加外协表单') {
|
if (this.title === '新增外协任务单') {
|
||||||
this.submitAdd()
|
this.submitAdd()
|
||||||
} else if (this.title === '编辑外协表单') {
|
} else if (this.title === '编辑外协任务单') {
|
||||||
this.submitEdit()
|
this.submitEdit()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -694,7 +694,7 @@ export default {
|
|||||||
if (this.$refs['form'] !== undefined) {
|
if (this.$refs['form'] !== undefined) {
|
||||||
this.$refs['form'].resetFields()
|
this.$refs['form'].resetFields()
|
||||||
}
|
}
|
||||||
this.title = '增加外协表单'
|
this.title = '新增外协任务单'
|
||||||
var time = new Date()
|
var time = new Date()
|
||||||
var month = time.getMonth() + 1
|
var month = time.getMonth() + 1
|
||||||
var day = time.getDate()
|
var day = time.getDate()
|
||||||
@@ -1145,7 +1145,7 @@ export default {
|
|||||||
if (this.$refs['form'] !== undefined) {
|
if (this.$refs['form'] !== undefined) {
|
||||||
this.$refs['form'].resetFields()
|
this.$refs['form'].resetFields()
|
||||||
}
|
}
|
||||||
this.title = '编辑外协表单'
|
this.title = '编辑外协任务单'
|
||||||
this.dialogFormVisible = true
|
this.dialogFormVisible = true
|
||||||
this.form.表单号 = row.表单号
|
this.form.表单号 = row.表单号
|
||||||
this.form.运费 = row.运费
|
this.form.运费 = row.运费
|
||||||
|
|||||||
@@ -20,13 +20,8 @@
|
|||||||
:value="item.value"/>
|
:value="item.value"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-input v-model="partName" placeholder="零件图号" size="small" clearable style="width:150px"/>
|
<el-input v-model="partName" placeholder="零件图号" size="small" clearable style="width:150px"/>
|
||||||
<el-button size="small" icon="el-icon-search" type="success" style="" @click="pageSize1=50; pageCurrent1=1;searchTable()">查询</el-button>
|
<el-button size="small" icon="el-icon-search" type="primary" plain @click="pageSize1=50; pageCurrent1=1;searchTable()">查询</el-button>
|
||||||
<el-table v-loading="loading1" :data="tableData1" size="mini" highlight-current-row height="550px" style="width: 100%;" border element-loading-text="拼命加载中" @row-click="searchTable2">
|
<el-table v-loading="loading1" :data="tableData1" size="mini" highlight-current-row height="550px" style="width: 100%;" border element-loading-text="拼命加载中" @row-click="searchTable2">
|
||||||
<el-table-column
|
|
||||||
label="序号"
|
|
||||||
type="index"
|
|
||||||
align="center"
|
|
||||||
width="50"/>
|
|
||||||
<el-table-column label="零件图号" prop="零件图号" align="center" width="140px" show-overflow-tooltip>
|
<el-table-column label="零件图号" prop="零件图号" align="center" width="140px" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.零件图号 }}
|
{{ scope.row.零件图号 }}
|
||||||
@@ -42,11 +37,6 @@
|
|||||||
{{ scope.row.材料 }}
|
{{ scope.row.材料 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!--<el-table-column label="种类" prop="零件类型名臣" align="center" width="80px">-->
|
|
||||||
<!--<template slot-scope="scope">-->
|
|
||||||
<!--{{ scope.row.零件类型名称 }}-->
|
|
||||||
<!--</template>-->
|
|
||||||
<!--</el-table-column>-->
|
|
||||||
<el-table-column label="数量" align="center" width="60px">
|
<el-table-column label="数量" align="center" width="60px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.批次数量 }}
|
{{ scope.row.批次数量 }}
|
||||||
@@ -68,7 +58,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="14">
|
<el-col :span="14">
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-button size="small" type="primary" style="margin: 10px" @click="saveRowPrice()">保存</el-button>
|
<el-button size="small" type="success" plain style="margin: 10px" @click="saveRowPrice()">保存</el-button>
|
||||||
<el-table v-loading="loading2" :data="tableData2" :row-class-name="tableData1ClassName" height="580" style="width: 100%;" border element-loading-text="拼命加载中" size="small">
|
<el-table v-loading="loading2" :data="tableData2" :row-class-name="tableData1ClassName" height="580" style="width: 100%;" border element-loading-text="拼命加载中" size="small">
|
||||||
<el-table-column label="序号" type="index" align="center" width="50"/>
|
<el-table-column label="序号" type="index" align="center" width="50"/>
|
||||||
<el-table-column label="加工状态" width="100" align="center">
|
<el-table-column label="加工状态" width="100" align="center">
|
||||||
@@ -84,12 +74,6 @@
|
|||||||
<el-checkbox :disabled="parseInt(scope.row.工序状态)!==3||parseInt(scope.row.工艺编号)===29" v-model="checkBox[scope.$index]" @change="edit(scope.$index, scope.row)"/>
|
<el-checkbox :disabled="parseInt(scope.row.工序状态)!==3||parseInt(scope.row.工艺编号)===29" v-model="checkBox[scope.$index]" @change="edit(scope.$index, scope.row)"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!--<el-table-column label="外协状态" width="100" align="center">-->
|
|
||||||
<!--<template slot-scope="scope">-->
|
|
||||||
<!--<span v-if="parseInt(scope.row.工序间是否外协)===2" type="success" size="small">是</span>-->
|
|
||||||
<!--<span v-else size="small">否</span>-->
|
|
||||||
<!--</template>-->
|
|
||||||
<!--</el-table-column>-->
|
|
||||||
<el-table-column label="工艺名称" align="center">
|
<el-table-column label="工艺名称" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.工艺名称 }}
|
{{ scope.row.工艺名称 }}
|
||||||
@@ -125,6 +109,7 @@ export default {
|
|||||||
count: 0, // 计数器 (表二是否有外协工序)
|
count: 0, // 计数器 (表二是否有外协工序)
|
||||||
InOut: 1, // 工序间是否外协变量 1自家 2外协
|
InOut: 1, // 工序间是否外协变量 1自家 2外协
|
||||||
index: 0, // 当前点击行(改变颜色不刷新用)
|
index: 0, // 当前点击行(改变颜色不刷新用)
|
||||||
|
index2: 0, // 当前点击行(改变颜色不刷新用)
|
||||||
num1: '',
|
num1: '',
|
||||||
checkBox: [],
|
checkBox: [],
|
||||||
loading1: false,
|
loading1: false,
|
||||||
@@ -217,6 +202,7 @@ export default {
|
|||||||
this.loading2 = true
|
this.loading2 = true
|
||||||
this.checkBox = []
|
this.checkBox = []
|
||||||
this.tableData2 = []
|
this.tableData2 = []
|
||||||
|
this.index2 = row.index
|
||||||
searchTable2(row.工艺计划流水号).then(response => {
|
searchTable2(row.工艺计划流水号).then(response => {
|
||||||
this.num1 = row.工艺计划流水号
|
this.num1 = row.工艺计划流水号
|
||||||
if (response.data.length === 0) {
|
if (response.data.length === 0) {
|
||||||
@@ -265,63 +251,14 @@ export default {
|
|||||||
this.InOut = 2
|
this.InOut = 2
|
||||||
edit(row.工序流水号, this.InOut).then(response => {
|
edit(row.工序流水号, this.InOut).then(response => {
|
||||||
edit2(row.工序流水号, row.工艺计划流水号, 1).then(response => {
|
edit2(row.工序流水号, row.工艺计划流水号, 1).then(response => {
|
||||||
this.$message.success('工序外协状态更改成功')
|
|
||||||
this.tableData2[this.index].工序间是否外协 = 2
|
this.tableData2[this.index].工序间是否外协 = 2
|
||||||
// this.loading2 = true
|
this.tableData1[this.index2].工序间是否外协 = 2
|
||||||
// this.checkBox = []
|
|
||||||
// this.tableData2 = []
|
|
||||||
// searchTable2(this.num1).then(response => {
|
|
||||||
// if (response.data.length === 0) {
|
|
||||||
// this.loading0 = false
|
|
||||||
// } else {
|
|
||||||
// for (let i = 0; i < response.data.length; i++) {
|
|
||||||
// if (response.data[i].工序间是否外协 === 1) {
|
|
||||||
// this.checkBox.push(false)
|
|
||||||
// } else {
|
|
||||||
// this.checkBox.push(true)
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// for (let i = 0; i < response.data.length; i++) {
|
|
||||||
// response.data[i].机加工开始时间 = response.data[i].机加工开始时间.split(' ')[0]
|
|
||||||
// response.data[i].机加工结束时间 = response.data[i].机加工结束时间.split(' ')[0]
|
|
||||||
// response.data[i].计划日期 = response.data[i].计划日期.split(' ')[0]
|
|
||||||
// }
|
|
||||||
// this.tableData2 = response.data
|
|
||||||
// }
|
|
||||||
// }).then(() => {
|
|
||||||
// this.loading2 = false
|
|
||||||
// })
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.InOut = 1
|
this.InOut = 1
|
||||||
edit(row.工序流水号, this.InOut).then(response => {
|
edit(row.工序流水号, this.InOut).then(response => {
|
||||||
this.$message.success('工序外协状态更改成功')
|
|
||||||
this.tableData2[this.index].工序间是否外协 = 1
|
this.tableData2[this.index].工序间是否外协 = 1
|
||||||
// this.loading2 = true
|
|
||||||
// this.checkBox = []
|
|
||||||
// this.tableData2 = []
|
|
||||||
// searchTable2(this.num1).then(response => {
|
|
||||||
// if (response.data.length === 0) {
|
|
||||||
// this.loading0 = false
|
|
||||||
// } else {
|
|
||||||
// for (let i = 0; i < response.data.length; i++) {
|
|
||||||
// if (response.data[i].工序间是否外协 === 1) {
|
|
||||||
// this.checkBox.push(false)
|
|
||||||
// } else {
|
|
||||||
// this.checkBox.push(true)
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// for (let i = 0; i < response.data.length; i++) {
|
|
||||||
// response.data[i].机加工开始时间 = response.data[i].机加工开始时间.split(' ')[0]
|
|
||||||
// response.data[i].机加工结束时间 = response.data[i].机加工结束时间.split(' ')[0]
|
|
||||||
// response.data[i].计划日期 = response.data[i].计划日期.split(' ')[0]
|
|
||||||
// }
|
|
||||||
// this.tableData2 = response.data
|
|
||||||
// }
|
|
||||||
// }).then(() => {
|
|
||||||
// this.loading2 = false
|
|
||||||
// })
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card style="margin-left: 0px;width: 68%;float: left">
|
<el-card>
|
||||||
<el-col>
|
<el-col>
|
||||||
<span>请款时间段:</span>
|
<span>请款时间段:</span>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
@@ -29,6 +29,31 @@
|
|||||||
<el-button type="primary" size="small" icon="el-icon-goods" style="" @click="requestFund">请款</el-button>
|
<el-button type="primary" size="small" icon="el-icon-goods" style="" @click="requestFund">请款</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
</el-card>
|
||||||
|
<el-card style="margin-left: 0px;width: 68%;float: left">
|
||||||
|
<!--@expand-change="searchTable02"-->
|
||||||
|
<!--<el-table-column type="expand" label="详情">-->
|
||||||
|
<!--<template slot-scope="scope">-->
|
||||||
|
<!--<el-table :data="gridData" class="subTableHeader" stripe size="mini" show-summary style="width: 40%">-->
|
||||||
|
<!--<el-table-column width="50" align="center" type="index" label="序号"/>-->
|
||||||
|
<!--<el-table-column min-width="150" align="center" label="发票号">-->
|
||||||
|
<!--<template slot-scope="scope">-->
|
||||||
|
<!--{{ scope.row.发票号 }}-->
|
||||||
|
<!--</template>-->
|
||||||
|
<!--</el-table-column>-->
|
||||||
|
<!--<el-table-column min-width="150" align="center" label="供应商">-->
|
||||||
|
<!--<template slot-scope="scope">-->
|
||||||
|
<!--{{ scope.row.供应商名称 }}-->
|
||||||
|
<!--</template>-->
|
||||||
|
<!--</el-table-column>-->
|
||||||
|
<!--<el-table-column min-width="150" align="center" label="开票金额" prop="开票金额">-->
|
||||||
|
<!--<template slot-scope="scope">-->
|
||||||
|
<!--{{ scope.row.开票金额 }}-->
|
||||||
|
<!--</template>-->
|
||||||
|
<!--</el-table-column>-->
|
||||||
|
<!--</el-table>-->
|
||||||
|
<!--</template>-->
|
||||||
|
<!--</el-table-column>-->
|
||||||
<el-table
|
<el-table
|
||||||
v-loading=""
|
v-loading=""
|
||||||
:data="tableData1"
|
:data="tableData1"
|
||||||
@@ -42,29 +67,6 @@
|
|||||||
show-summary
|
show-summary
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
@row-click="searchTable02">
|
@row-click="searchTable02">
|
||||||
<!--@expand-change="searchTable02"-->
|
|
||||||
<!--<el-table-column type="expand" label="详情">-->
|
|
||||||
<!--<template slot-scope="scope">-->
|
|
||||||
<!--<el-table :data="gridData" class="subTableHeader" stripe size="mini" show-summary style="width: 40%">-->
|
|
||||||
<!--<el-table-column width="50" align="center" type="index" label="序号"/>-->
|
|
||||||
<!--<el-table-column min-width="150" align="center" label="发票号">-->
|
|
||||||
<!--<template slot-scope="scope">-->
|
|
||||||
<!--{{ scope.row.发票号 }}-->
|
|
||||||
<!--</template>-->
|
|
||||||
<!--</el-table-column>-->
|
|
||||||
<!--<el-table-column min-width="150" align="center" label="供应商">-->
|
|
||||||
<!--<template slot-scope="scope">-->
|
|
||||||
<!--{{ scope.row.供应商名称 }}-->
|
|
||||||
<!--</template>-->
|
|
||||||
<!--</el-table-column>-->
|
|
||||||
<!--<el-table-column min-width="150" align="center" label="开票金额" prop="开票金额">-->
|
|
||||||
<!--<template slot-scope="scope">-->
|
|
||||||
<!--{{ scope.row.开票金额 }}-->
|
|
||||||
<!--</template>-->
|
|
||||||
<!--</el-table-column>-->
|
|
||||||
<!--</el-table>-->
|
|
||||||
<!--</template>-->
|
|
||||||
<!--</el-table-column>-->
|
|
||||||
<el-table-column label="供应商" prop="供应商名称" align="center" min-width="180" width="350" show-overflow-tooltip>
|
<el-table-column label="供应商" prop="供应商名称" align="center" min-width="180" width="350" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.供应商名称 }}
|
{{ scope.row.供应商名称 }}
|
||||||
@@ -78,51 +80,47 @@
|
|||||||
<el-table-column label="请款人" align="center" min-width="80" width="100">
|
<el-table-column label="请款人" align="center" min-width="80" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.姓名 }}
|
{{ scope.row.姓名 }}
|
||||||
<el-table-column label="请款时间" align="center" min-width="150" prop="date">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
{{ scope.row.请款时间 | formatTime }}
|
<el-table-column label="请款金额" align="center" min-width="90" width="90" prop="请款金额">
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
{{ parseFloat(scope.row.请款金额).toFixed(2) }}
|
||||||
<el-table-column label="请款金额" align="center" min-width="90" width="90" prop="请款金额">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
{{ parseFloat(scope.row.请款金额).toFixed(2) }}
|
<el-table-column label="审批情况内容" width="100" align="center">
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
<el-tag v-if="Number(scope.row.审批情况流水号)===3" type="primary" size="mini">未审批</el-tag>
|
||||||
<el-table-column label="审批情况内容" width="100" align="center">
|
<el-tag v-if="Number(scope.row.审批情况流水号)===1" type="success" size="mini">已通过</el-tag>
|
||||||
<template slot-scope="scope">
|
<el-tag v-if="Number(scope.row.审批情况流水号)===2" type="danger" size="mini">不通过</el-tag>
|
||||||
<el-tag v-if="Number(scope.row.审批情况流水号)===3" type="primary" size="mini">未审批</el-tag>
|
</template>
|
||||||
<el-tag v-if="Number(scope.row.审批情况流水号)===1" type="success" size="mini">已通过</el-tag>
|
</el-table-column>
|
||||||
<el-tag v-if="Number(scope.row.审批情况流水号)===2" type="danger" size="mini">不通过</el-tag>
|
<el-table-column label="未通过审批原因" width="110" align="center">
|
||||||
{{ parseFloat(scope.row.请款金额).toFixed(2) }}
|
<template slot-scope="scope">
|
||||||
</template>
|
{{ scope.row.未通过审批原因 === '通过' ? '—' : scope.row.未通过审批原因 }}
|
||||||
</el-table-column>
|
</template>
|
||||||
<el-table-column label="未通过审批原因" width="110" align="center">
|
</el-table-column>
|
||||||
<template slot-scope="scope">
|
<el-table-column label="付款情况" width="100" align="center">
|
||||||
{{ scope.row.未通过审批原因 === '通过' ? '—' : scope.row.未通过审批原因 }}
|
<template slot-scope="scope">
|
||||||
</template>
|
<el-tag v-if="Number(scope.row.付款情况流水号)===3" type="primary" size="mini">未操作</el-tag>
|
||||||
</el-table-column>
|
<el-tag v-if="Number(scope.row.付款情况流水号)===1" type="success" size="mini">已同意</el-tag>
|
||||||
<el-table-column label="付款情况" width="100" align="center">
|
<el-tag v-if="Number(scope.row.付款情况流水号)===2" type="danger" size="mini">不同意</el-tag>
|
||||||
<template slot-scope="scope">
|
</template>
|
||||||
<el-tag v-if="Number(scope.row.付款情况流水号)===3" type="primary" size="mini">未操作</el-tag>
|
</el-table-column>
|
||||||
<el-tag v-if="Number(scope.row.付款情况流水号)===1" type="success" size="mini">已同意</el-tag>
|
<el-table-column label="未付款原因" width="100" align="center">
|
||||||
<el-tag v-if="Number(scope.row.付款情况流水号)===2" type="danger" size="mini">不同意</el-tag>
|
<template slot-scope="scope">
|
||||||
</template>
|
{{ scope.row.未付款原因 === '通过' ? '—' : scope.row.未付款原因 }}
|
||||||
</el-table-column>
|
</template>
|
||||||
<el-table-column label="未付款原因" width="100" align="center">
|
</el-table-column>
|
||||||
<template slot-scope="scope">
|
<el-table-column label="操作" align="center" width="80">
|
||||||
{{ scope.row.未付款原因 === '通过' ? '—' : scope.row.未付款原因 }}
|
<template slot-scope="scope">
|
||||||
</template>
|
<el-tooltip effect="dark" content="取消请款" placement="top">
|
||||||
</el-table-column>
|
<div style="display: inline-block">
|
||||||
<el-table-column label="操作" align="center" width="80">
|
<el-button :disabled="Number(scope.row.审批情况流水号)!==3" type="text" size="mini" icon="el-icon-delete" style="margin-left: 10px" @click="cancelRequestFund(scope.row)"/>
|
||||||
<template slot-scope="scope">
|
</div>
|
||||||
<el-tooltip effect="dark" content="取消请款" placement="top">
|
</el-tooltip>
|
||||||
<div style="display: inline-block">
|
</template>
|
||||||
<el-button :disabled="Number(scope.row.审批情况流水号)!==3" type="text" size="mini" icon="el-icon-delete" style="margin-left: 10px" @click="cancelRequestFund(scope.row)"/>
|
</el-table-column>
|
||||||
</div>
|
</el-table>
|
||||||
</el-tooltip>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</template></el-table-column></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="pageCurrent1"
|
||||||
@@ -135,7 +133,7 @@
|
|||||||
@current-change="handleCurrentChange1"/>
|
@current-change="handleCurrentChange1"/>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-left: 0px;width: 31%;float: left">
|
<el-card style="margin-left: 0px;width: 32%;float: left">
|
||||||
<el-table-column type="expand" label="详情">
|
<el-table-column type="expand" label="详情">
|
||||||
<el-table :data="gridData" class="subTableHeader" stripe size="mini" show-summary style="width: 100%">
|
<el-table :data="gridData" class="subTableHeader" stripe size="mini" show-summary style="width: 100%">
|
||||||
<el-table-column width="50" align="center" type="index" label="序号"/>
|
<el-table-column width="50" align="center" type="index" label="序号"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user