|
@@ -37,7 +37,7 @@
|
|
|
|
|
|
<template slot="boxFreight" slot-scope="text, record, index">
|
|
<template slot="boxFreight" slot-scope="text, record, index">
|
|
<a-form-model-item :prop="'dataSource.'+index+'.boxFreight'" class='sonItem' :rules="rules.boxFreight">
|
|
<a-form-model-item :prop="'dataSource.'+index+'.boxFreight'" class='sonItem' :rules="rules.boxFreight">
|
|
- <a-input placeholder="请输入" v-model="record.boxFreight" ></a-input>
|
|
|
|
|
|
+ <a-input-number placeholder="请输入" v-model="record.boxFreight" style="width: 100%;"></a-input-number>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</template>
|
|
</template>
|
|
<span slot="fanFreightTitle" class="form-table-heard">
|
|
<span slot="fanFreightTitle" class="form-table-heard">
|
|
@@ -45,17 +45,17 @@
|
|
</span>
|
|
</span>
|
|
<template slot="fanFreight" slot-scope="text, record, index">
|
|
<template slot="fanFreight" slot-scope="text, record, index">
|
|
<a-form-model-item :prop="'dataSource.'+index+'.fanFreight'" class='sonItem' :rules="rules.fanFreight">
|
|
<a-form-model-item :prop="'dataSource.'+index+'.fanFreight'" class='sonItem' :rules="rules.fanFreight">
|
|
- <a-input placeholder="请输入" v-model="record.fanFreight" ></a-input>
|
|
|
|
|
|
+ <a-input-number placeholder="请输入" v-model="record.fanFreight" style="width: 100%;"></a-input-number>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</template>
|
|
</template>
|
|
<template slot="executeOutLeafNow" slot-scope="text, record, index">
|
|
<template slot="executeOutLeafNow" slot-scope="text, record, index">
|
|
<a-form-model-item :prop="'dataSource.'+index+'.executeOutLeafNow'" class='sonItem' :rules="rules.executeOutLeafNow">
|
|
<a-form-model-item :prop="'dataSource.'+index+'.executeOutLeafNow'" class='sonItem' :rules="rules.executeOutLeafNow">
|
|
- <a-input placeholder="请输入" v-model="record.executeOutLeafNow" ></a-input>
|
|
|
|
|
|
+ <a-input-number placeholder="请输入" v-model="record.executeOutLeafNow" style="width: 100%;"></a-input-number>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</template>
|
|
</template>
|
|
<template slot="executeOutFramesNow" slot-scope="text, record, index">
|
|
<template slot="executeOutFramesNow" slot-scope="text, record, index">
|
|
<a-form-model-item :prop="'dataSource.'+index+'.executeOutFramesNow'" class='sonItem' :rules="rules.executeOutFramesNow">
|
|
<a-form-model-item :prop="'dataSource.'+index+'.executeOutFramesNow'" class='sonItem' :rules="rules.executeOutFramesNow">
|
|
- <a-input placeholder="请输入" v-model="record.executeOutFramesNow" ></a-input>
|
|
|
|
|
|
+ <a-input-number placeholder="请输入" v-model="record.executeOutFramesNow" style="width: 100%;"></a-input-number>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</template>
|
|
</template>
|
|
</a-table>
|
|
</a-table>
|
|
@@ -131,7 +131,7 @@
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- // title: '成品入库数量',
|
|
|
|
|
|
+ // title: '框运费',
|
|
align:"center",
|
|
align:"center",
|
|
dataIndex: 'boxFreight',
|
|
dataIndex: 'boxFreight',
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
@@ -139,7 +139,7 @@
|
|
slots:{title:'boxFreightTitle'},
|
|
slots:{title:'boxFreightTitle'},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- // title: '成品入库数量',
|
|
|
|
|
|
+ // title: '扇运费',
|
|
align:"center",
|
|
align:"center",
|
|
dataIndex: 'fanFreight',
|
|
dataIndex: 'fanFreight',
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
@@ -377,6 +377,8 @@
|
|
rules:{
|
|
rules:{
|
|
// boxFreight:{required:true,message:"不可为空"},
|
|
// boxFreight:{required:true,message:"不可为空"},
|
|
// fanFreight:{required:true,message:"不可为空"},
|
|
// fanFreight:{required:true,message:"不可为空"},
|
|
|
|
+ // executeOutLeafNow:{required:true,message:"不可为空"},
|
|
|
|
+ // executeOutFramesNowTitle:{required:true,message:"不可为空"},
|
|
},
|
|
},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -391,17 +393,16 @@
|
|
this.selectedRows = selectionRows;
|
|
this.selectedRows = selectionRows;
|
|
},
|
|
},
|
|
handleOk(){
|
|
handleOk(){
|
|
- var idExistence = 'yes'
|
|
|
|
- //判断有没有未保存数据
|
|
|
|
|
|
+ var mandatoryField = '1'
|
|
this.selectedRows.map(item=>{
|
|
this.selectedRows.map(item=>{
|
|
- if(!item.id||item.id==''){
|
|
|
|
- idExistence = 'no'
|
|
|
|
- }
|
|
|
|
|
|
+ if(!item.boxFreight||!item.fanFreight||!item.executeOutLeafNow||!item.executeOutFramesNow){
|
|
|
|
+ mandatoryField = '0'
|
|
|
|
+ }
|
|
})
|
|
})
|
|
if(this.selectedRows.length==0){
|
|
if(this.selectedRows.length==0){
|
|
this.$message.warning('请勾选数据')
|
|
this.$message.warning('请勾选数据')
|
|
- }else if(idExistence=='no'){
|
|
|
|
- this.$message.warning('请先保存成品明细')
|
|
|
|
|
|
+ }else if(mandatoryField=='0'){
|
|
|
|
+ this.$message.warning('请输入框运费、扇运费、本次执行扇数量、本次执行框数量')
|
|
}else{
|
|
}else{
|
|
this.loading =true
|
|
this.loading =true
|
|
postAction('/productionOrder/madeProductionOrders/outMadeProductionOrdersOutList', {madeProductionOrdersInList:this.selectedRows}).then((res) => {
|
|
postAction('/productionOrder/madeProductionOrders/outMadeProductionOrdersOutList', {madeProductionOrdersInList:this.selectedRows}).then((res) => {
|