外协执行

This commit is contained in:
Vergil
2020-04-14 11:34:05 +08:00
parent 647d6c99cb
commit 8affba812c
2 changed files with 23 additions and 12 deletions

View File

@@ -109,9 +109,9 @@
<el-input v-positive="'float'" v-model="scope.row.加工价格_成交" class="editWorkTime" type="number" style="text-align: right" size="small" @change="saveAct(scope.row)" @blur="filterNuber(scope.row.加工价格_成交, scope.$index, '加工价格_成交')"/>
</template>
</el-table-column>
<el-table-column label="机加工开始时间" align="center" width="150px">
<el-table-column label="到货日期" align="center" width="150px">
<template slot-scope="scope">
{{ scope.row.机加工开始时间 }}
{{ scope.row.到货日期 }}
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="80px">
@@ -139,6 +139,16 @@
placeholder="下达任务日期"
value-format="yyyy-MM-dd"/>
</el-form-item>
<el-form-item label="到货日期" prop="到货日期" style="margin-left: 70px">
<el-date-picker
v-model="form.到货日期"
type="date"
size="small"
style="width:200px"
default-value
placeholder="到货日期"
value-format="yyyy-MM-dd"/>
</el-form-item>
<el-form-item label="外协厂家" prop="外协厂家" style="margin-left: 70px">
<el-select v-model="form.外协厂家" placeholder="选择外协厂家" filterable clearable size="small" style="width:200px">
<el-option
@@ -230,6 +240,7 @@ export default {
form: {
表单号: '',
下达任务日期: '',
到货日期: '',
外协厂家: '',
运费: null
},
@@ -372,7 +383,7 @@ export default {
this.List3.push({
外协加工任务单明细流水号: response.data[i].外协加工任务单明细流水号,
加工价格_成交: response.data[i].加工价格_成交.toFixed(2),
机加工开始时间: response.data[i].机加工开始时间 ? response.data[i].机加工开始时间.split(' ')[0] : '',
到货日期: response.data[i].到货日期,
零件图号: response.data[i].零件图号,
零件名称: response.data[i].零件名称,
批次数量: response.data[i].批次数量,
@@ -455,7 +466,7 @@ export default {
this.$message.error('请输入数字')
} else {
this.handleAdd_disable = true
addTable(this.form.表单号, this.id, this.form.外协厂家, this.form.下达任务日期, this.form.运费).then(response => {
addTable(this.form.表单号, this.id, this.form.外协厂家, this.form.下达任务日期, this.form.到货日期, this.form.运费).then(response => {
if (response.data[0].result === '1') {
this.$notify({
title: '成功',
@@ -476,7 +487,7 @@ export default {
// 提交编辑
submitEdit() {
this.handleAdd_disable = true
editData(this.Number, this.form.外协厂家, this.form.运费, this.Explain).then(response => {
editData(this.Number, this.form.外协厂家, this.form.运费, this.Explain, this.form.到货日期).then(response => {
if (response.data[0].result === '1') {
this.$message.success('编辑成功')
this.dialogFormVisible = false