|
|
|
@ -69,9 +69,9 @@
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
@click="handleUpdateSAP"
|
|
|
|
|
v-hasPermi="['wms:odsRawOrderIn:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
>过账</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -84,6 +84,17 @@
|
|
|
|
|
v-hasPermi="['wms:odsRawOrderIn:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="success"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
v-hasPermi="['wms:odsRawOrderIn:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="warning"
|
|
|
|
@ -111,19 +122,21 @@
|
|
|
|
|
<el-table-column label="物料描述" align="center" prop="materialDesc" :min-width="180"/>
|
|
|
|
|
<el-table-column label="单位" align="center" prop="unit" />
|
|
|
|
|
<el-table-column label="供应商编码" align="center" prop="supplyCode" width="180"/>
|
|
|
|
|
<el-table-column label="订单数量" align="center" prop="requestAmount" />
|
|
|
|
|
<el-table-column label="收货数量" align="center" prop="receiptAmount" />
|
|
|
|
|
<el-table-column label="备品数量" align="center" prop="shelvesAmount" />
|
|
|
|
|
<el-table-column label="单据状态" align="center" prop="orderStatus" />
|
|
|
|
|
|
|
|
|
|
<el-table-column label="收货数量" align="center" prop="requestAmount" />
|
|
|
|
|
<!-- <el-table-column label="收货数量" align="center" prop="receiptAmount" />-->
|
|
|
|
|
<!-- <el-table-column label="备品数量" align="center" prop="shelvesAmount" />-->
|
|
|
|
|
<el-table-column label="单据状态" align="center" prop="orderStatus">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.orderStatus === '0'">暂收</span>
|
|
|
|
|
<span v-else-if="scope.row.orderStatus === '1'">收货完成</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="质检状态" align="center" prop="qualityStatus" />
|
|
|
|
|
<el-table-column label="收货人" align="center" prop="receiptOperator" />
|
|
|
|
|
<el-table-column label="收货时间" align="center" prop="receiptTime" width="180">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.receiptTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="暂收物料凭证编号" align="center" prop="userDefined1" width="280"/>
|
|
|
|
|
<el-table-column label="暂收物料凭证年度" align="center" prop="userDefined2" />
|
|
|
|
|
<el-table-column label="暂收返回信息" align="center" prop="userDefined3" />
|
|
|
|
|
<el-table-column label="收货人" align="center" prop="createBy" />
|
|
|
|
|
<el-table-column label="收货时间" align="center" prop="requestTime" width="180"/>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
@ -314,7 +327,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { listOdsRawOrderIn, getOdsRawOrderIn, delOdsRawOrderIn, addOdsRawOrderIn, updateOdsRawOrderIn } from "@/api/wms/odsRawOrderIn";
|
|
|
|
|
import { listOdsRawOrderIn, getOdsRawOrderIn, delOdsRawOrderIn, addOdsRawOrderIn, updateOdsRawOrderIn ,sap105temporarilyCollected} from "@/api/wms/odsRawOrderIn";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "OdsRawOrderIn",
|
|
|
|
@ -508,6 +521,19 @@ export default {
|
|
|
|
|
this.title = "修改包材到货单";
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
handleUpdateSAP(row) {
|
|
|
|
|
this.reset();
|
|
|
|
|
const id = this.ids[0]
|
|
|
|
|
let postData = this.ids.map(id => ({ id: id }));
|
|
|
|
|
|
|
|
|
|
this.$modal.confirm('是否进行过账').then(function() {
|
|
|
|
|
return sap105temporarilyCollected(JSON.stringify(postData));
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$modal.msgSuccess("过账完成");
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
},
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
submitForm() {
|
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
|