qqq
This commit is contained in:
@@ -1,33 +1,35 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
|
||||
<el-card>
|
||||
<span>表单号:</span>
|
||||
<el-input v-model="formNumber" size="small" placeholder="表单号" clearable style="width:200px"/>
|
||||
<span>外协厂家:</span>
|
||||
<el-input v-model="manufacturers" size="small" placeholder="外协厂家" style="width:200px" clearable/>
|
||||
<span>下达任务日期:</span>
|
||||
<el-date-picker
|
||||
type="date"
|
||||
size="small"
|
||||
placeholder="选择日期"/>
|
||||
<span>单据状态:</span>
|
||||
<el-select v-model="documentStatus" filterable placeholder="请选择" size="small" clearable>
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
: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>
|
||||
<el-button type="success" size="mini" icon="el-icon-search" style="margin-left:10px" @click="pageSize=10;pageList=1;fetchData()">查询</el-button>
|
||||
<el-button type="primary" size="mini" icon="el-icon-circle-plus-outline" style="margin-left:10px" @click="handleAdd()">增加</el-button>
|
||||
<el-row>
|
||||
<span>表单号:</span>
|
||||
<el-input v-model="formNumber" size="small" placeholder="表单号" clearable style="width:200px;margin-bottom: 10px"/>
|
||||
<span>外协厂家:</span>
|
||||
<el-input v-model="manufacturers" size="small" placeholder="外协厂家" style="width:200px" clearable/>
|
||||
<span>下达任务日期:</span>
|
||||
<el-date-picker
|
||||
type="date"
|
||||
size="small"
|
||||
placeholder="选择日期"/>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<span>单据状态:</span>
|
||||
<el-select v-model="documentStatus" filterable placeholder="请选择" size="small" clearable>
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
: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>
|
||||
<el-button type="success" size="mini" icon="el-icon-search" style="margin-left:10px" @click="pageSize=10;pageList=1;fetchData()">查询</el-button>
|
||||
<el-button type="primary" size="mini" icon="el-icon-circle-plus-outline" style="margin-left:10px" @click="handleAdd()">增加</el-button>
|
||||
</el-row>
|
||||
</el-card>
|
||||
|
||||
<el-card>
|
||||
<el-table v-loading="loading2" :data="List" highlight-current-row height="350" border @row-click="searchProcess" >
|
||||
<el-table v-loading="loading2" :data="List" highlight-current-row height="350" size="mini" stripe border @row-click="searchProcess" >
|
||||
<el-table-column label="单据状态" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.单据状态==='成交'" type="success" size="small">成交</el-tag>
|
||||
@@ -61,8 +63,8 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" min-width="200px">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="primary" size="mini" icon="el-icon-edit" style="margin-left:10px" @click="handleEdit(scope.row)">编辑</el-button>
|
||||
<el-button :disabled="scope.row.单据状态==='成交'" type="danger" size="mini" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
|
||||
<el-button type="primary" size="mini" icon="el-icon-edit" plain style="margin-left:10px" @click="handleEdit(scope.row)">编辑</el-button>
|
||||
<el-button :disabled="scope.row.单据状态==='成交'" plain type="danger" size="mini" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -78,7 +80,6 @@
|
||||
@current-change="handleCurrentChange"/>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<el-card>
|
||||
<span>零件号:</span>
|
||||
<el-input v-model="partNumber" size="small" placeholder="零件号" clearable style="width:200px"/>
|
||||
@@ -88,6 +89,8 @@
|
||||
ref="multipleTable"
|
||||
:data="List1"
|
||||
border
|
||||
size="mini"
|
||||
stripe
|
||||
highlight-current-row
|
||||
height="450"
|
||||
tooltip-effect="dark"
|
||||
@@ -101,32 +104,32 @@
|
||||
{{ scope.row.项目名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="零件图号" align="center" >
|
||||
<el-table-column label="零件图号" align="center" width="120px" >
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件图号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="零件名称" align="center" >
|
||||
<el-table-column label="零件名称" align="center" min-width="140px" >
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="数量" align="center" >
|
||||
<el-table-column label="数量" align="center" width="65px" >
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.批次数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="材料费" align="center" >
|
||||
<el-table-column label="材料费" align="center" width="65px" >
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.材料费 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="分类" align="center" >
|
||||
<el-table-column label="分类" align="center" width="65px" >
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.外协分类 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="投产" align="center" >
|
||||
<el-table-column label="投产" align="center" width="65px" >
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.传递时间_短 }}
|
||||
</template>
|
||||
@@ -154,9 +157,8 @@
|
||||
</el-table>
|
||||
<el-button type="info" size="mini" icon="el-icon-arrow-down" style="margin-left:10px;margin-top: 15px" @click="getSpareParts">选入零件</el-button>
|
||||
</el-card>
|
||||
|
||||
<el-card>
|
||||
<el-table v-loading="loading" :data="List3" :summary-method="getSummaries" :row-class-name="tableRowClassName" show-summary>
|
||||
<el-table v-loading="loading" :data="List3" :summary-method="getSummaries" stripe size="mini" :row-class-name="tableRowClassName" show-summary>
|
||||
<el-table-column :index="indexMethod" label="序号" align="center" type="index" width="50px"/>
|
||||
<el-table-column label="零件图号" align="center" width="200px">
|
||||
<template slot-scope="scope">
|
||||
@@ -321,11 +323,12 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center">
|
||||
<el-table-column label="操作" align="center" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete1(scope.$index)">移除</el-button>
|
||||
</template>
|
||||
@@ -340,7 +343,6 @@
|
||||
<el-button type="primary" size="mini" icon="el-icon-download" style="margin-left:10px;margin-top: 15px" @click="exportTable('RWD')">导出外协加工任务单</el-button>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<el-card v-show="card">
|
||||
<div id="RWD">
|
||||
<table cellspacing="0px" align="center" width="100%" style="">
|
||||
@@ -409,13 +411,12 @@
|
||||
</table>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<el-dialog :visible.sync="dialogFormVisible1" title="外协厂家" center width="500px" height="600px">
|
||||
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible1" title="外协厂家" center width="500px" height="600px">
|
||||
<div align="center">
|
||||
<el-input v-model="input" size="small" clearable style="width:200px"/>
|
||||
<el-button type="success" size="mini" icon="el-icon-search" style="margin-left:10px" @click="searchData()">查询</el-button>
|
||||
</div>
|
||||
<el-table :data="List2" max-height="370" highlight-current-row @row-click="handleCurrentChange3">
|
||||
<el-table :data="List2" max-height="370" stripe size="mini" highlight-current-row @row-click="handleCurrentChange3">
|
||||
<el-table-column label="外协厂家" align="center" >
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.外协厂家名称 }}
|
||||
@@ -426,13 +427,12 @@
|
||||
<el-button type="warning" size="small" icon="el-icon-edit-outline" @click="submit1">提交</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog :title="title" :visible.sync="dialogFormVisible" center style="min-height: 300px" width="800px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-position="left" label-width="110px" class="demo-ruleForm">
|
||||
<el-form-item label="表单号" prop="表单号" style="margin-left: 200px">
|
||||
<el-input v-model="form.表单号" placeholder="表单号" size="small" style="width:200px" disabled/>
|
||||
<el-dialog v-el-drag-dialog :title="title" :visible.sync="dialogFormVisible" center style="min-height: 300px" width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-position="left" label-width="100px" class="demo-ruleForm">
|
||||
<el-form-item label="表单号" prop="表单号" style="margin-left: 70px">
|
||||
<el-input v-model="form.表单号" placeholder="表单号" size="small" style="width:70px" disabled/>
|
||||
</el-form-item>
|
||||
<el-form-item label="下达任务日期" prop="下达任务日期" style="margin-left: 200px">
|
||||
<el-form-item label="下达任务日期" prop="下达任务日期" style="margin-left: 70px">
|
||||
<el-date-picker
|
||||
v-model="form.下达任务日期"
|
||||
type="date"
|
||||
@@ -443,12 +443,12 @@
|
||||
placeholder="下达任务日期"
|
||||
value-format="yyyy-MM-dd"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="外协厂家" prop="外协厂家" style="margin-left: 200px">
|
||||
<el-form-item label="外协厂家" prop="外协厂家" style="margin-left: 70px">
|
||||
<el-input v-model="form.外协厂家" readonly placeholder="外协厂家" size="small" style="width:200px" clearable>
|
||||
<el-button slot="append" icon="el-icon-search" @click="onFocus1();param=1"/>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="运费" prop="运费" style="margin-left: 200px">
|
||||
<el-form-item label="运费" prop="运费" style="margin-left: 70px">
|
||||
<el-input v-model="form.运费" placeholder="运费" size="small" style="width:200px" clearable/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -457,7 +457,6 @@
|
||||
<el-button type="primary" @click="submit('form')">确定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -805,9 +804,9 @@ export default {
|
||||
submit(formName) {
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.title === '增加') {
|
||||
if (this.title === '增加外协表单') {
|
||||
this.submitAdd()
|
||||
} else if (this.title === '编辑') {
|
||||
} else if (this.title === '编辑外协表单') {
|
||||
this.submitEdit()
|
||||
}
|
||||
}
|
||||
@@ -817,7 +816,7 @@ export default {
|
||||
if (this.$refs['form'] !== undefined) {
|
||||
this.$refs['form'].resetFields()
|
||||
}
|
||||
this.title = '增加'
|
||||
this.title = '增加外协表单'
|
||||
var time = new Date()
|
||||
var month = time.getMonth() + 1
|
||||
var day = time.getDate()
|
||||
@@ -1265,7 +1264,7 @@ export default {
|
||||
if (this.$refs['form'] !== undefined) {
|
||||
this.$refs['form'].resetFields()
|
||||
}
|
||||
this.title = '编辑'
|
||||
this.title = '编辑外协表单'
|
||||
this.dialogFormVisible = true
|
||||
this.form.表单号 = row.表单号
|
||||
this.form.运费 = row.运费
|
||||
@@ -1614,7 +1613,7 @@ export default {
|
||||
|
||||
<style scoped>
|
||||
.el-card{
|
||||
margin-bottom: 15px;
|
||||
margin: 0px;
|
||||
}
|
||||
span{
|
||||
margin: 10px 0 10px 10px;
|
||||
|
||||
Reference in New Issue
Block a user