|
|
@ -69,9 +69,9 @@
|
|
|
|
icon="el-icon-edit"
|
|
|
|
icon="el-icon-edit"
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
:disabled="single"
|
|
|
|
:disabled="single"
|
|
|
|
@click="handleUpdate"
|
|
|
|
@click="handleUpdateSAP"
|
|
|
|
v-hasPermi="['wms:odsRawOrderIn:edit']"
|
|
|
|
v-hasPermi="['wms:odsRawOrderIn:edit']"
|
|
|
|
>修改</el-button>
|
|
|
|
>过账</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
@ -84,6 +84,17 @@
|
|
|
|
v-hasPermi="['wms:odsRawOrderIn:remove']"
|
|
|
|
v-hasPermi="['wms:odsRawOrderIn:remove']"
|
|
|
|
>删除</el-button>
|
|
|
|
>删除</el-button>
|
|
|
|
</el-col>
|
|
|
|
</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-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="warning"
|
|
|
|
type="warning"
|
|
|
@ -111,19 +122,21 @@
|
|
|
|
<el-table-column label="物料描述" align="center" prop="materialDesc" :min-width="180"/>
|
|
|
|
<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="unit" />
|
|
|
|
<el-table-column label="供应商编码" align="center" prop="supplyCode" width="180"/>
|
|
|
|
<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="requestAmount" />
|
|
|
|
<el-table-column label="收货数量" align="center" prop="receiptAmount" />
|
|
|
|
<!-- <el-table-column label="收货数量" align="center" prop="receiptAmount" />-->
|
|
|
|
<el-table-column label="备品数量" align="center" prop="shelvesAmount" />
|
|
|
|
<!-- <el-table-column label="备品数量" align="center" prop="shelvesAmount" />-->
|
|
|
|
<el-table-column label="单据状态" align="center" prop="orderStatus" />
|
|
|
|
<el-table-column label="单据状态" align="center" prop="orderStatus">
|
|
|
|
|
|
|
|
|
|
|
|
<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">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ parseTime(scope.row.receiptTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
<span v-if="scope.row.orderStatus === '0'">暂收</span>
|
|
|
|
|
|
|
|
<span v-else-if="scope.row.orderStatus === '1'">收货完成</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="质检状态" align="center" prop="qualityStatus" />
|
|
|
|
|
|
|
|
<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>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
<pagination
|
|
|
@ -314,7 +327,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { listOdsRawOrderIn, getOdsRawOrderIn, delOdsRawOrderIn, addOdsRawOrderIn, updateOdsRawOrderIn } from "@/api/wms/odsRawOrderIn";
|
|
|
|
import { listOdsRawOrderIn, getOdsRawOrderIn, delOdsRawOrderIn, addOdsRawOrderIn, updateOdsRawOrderIn ,sap105temporarilyCollected} from "@/api/wms/odsRawOrderIn";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "OdsRawOrderIn",
|
|
|
|
name: "OdsRawOrderIn",
|
|
|
@ -508,6 +521,19 @@ export default {
|
|
|
|
this.title = "修改包材到货单";
|
|
|
|
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() {
|
|
|
|
submitForm() {
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|