Commit 65f10d00 authored by 黄媛媛's avatar 黄媛媛

1

parent 9c0074f5
......@@ -58,6 +58,7 @@
</el-form>
</div>
<div>
<el-button v-if="tableData.ApplyStatus==1" class='butoons' type="primary" plain round @click="save">保存</el-button>
<el-button v-if="tableData.ApplyStatus==1" class='butoons' type="primary" round @click="See(2)">通过</el-button>
<el-button v-if="tableData.ApplyStatus==1" class='butoons' type="danger" round @click="See(3)">拒绝</el-button>
......@@ -72,7 +73,13 @@
<vxe-table-column field="OrderNo" title="订单号" width='300'></vxe-table-column>
<vxe-table-column field="GoodsName" title="商品名称"></vxe-table-column>
<vxe-table-column field="Specification" title="规则" width='300'></vxe-table-column>
<vxe-table-column field="Number" title="数量" width='100'></vxe-table-column>
<vxe-table-column field="Number" title="数量" width='130'>
<template v-slot="{ row }">
<span v-if="tableData.ApplyStatus!=1" >{{row.Number}}</span>
<el-input v-if="tableData.ApplyStatus==1" class="w100" size="small" type="number" v-model="row.Number" placeholder="请输入" @input='changeNum(row,$event)' :min="1"></el-input>
</template>
</vxe-table-column>
<vxe-table-column field="Name" title="出库状态" width='180'>
<template v-slot="{ row }">
<span class="commonStyle hoverSpan1"></span>
......@@ -161,9 +168,31 @@ export default {
);
},
currentChange(val) {
this.msg.pageIndex = val;
this.getList();
changeNum(row,val){
if(val=='' || val == 0 ){//当输入 空和0 的时候做的处理
this.tableData.WarehouseOutGoodsList.forEach(x => {
if(x.ID==row.ID){
x.Number=1
}
});
}
},
save(){//修改 出库数量保存
console.log( this.tableData)
this.apiJavaPost(
"/api/WarehouseOut/UpdateOutGoods",
this.tableData,
res => {
if (res.data.resultCode === 1) {
this.getList();
} else {
this.Error(res.data.message);
}
},
null
);
},
See(type){
this.Updatemsg.ID = this.$route.query.ID;
......@@ -177,7 +206,6 @@ export default {
this.Error('请填写理由');
return
}
console.log(this.Updatemsg)
this.apiJavaPost(
"/api/WarehouseOut/UpdateWarehouseOutApply",
this.Updatemsg,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment