|
|
|
@ -45,6 +45,9 @@
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="success" plain icon="el-icon-edit" size="mini" @click="handleSAP">过账</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="success" plain icon="el-icon-edit" size="mini" @click="handleBatchSAP">批量过账</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
|
|
|
|
v-hasPermi="['wms:outorder:add']">生成退货单</el-button>
|
|
|
|
@ -84,6 +87,7 @@
|
|
|
|
|
<el-table-column label="序号" type="index" v-if="false" />
|
|
|
|
|
<el-table-column label="工厂编码" align="center" prop="siteCode" v-if="false" />
|
|
|
|
|
<el-table-column label="id" align="center" prop="id" v-if="false" />
|
|
|
|
|
<el-table-column label="序号" align="center" prop="sort" />
|
|
|
|
|
<el-table-column label="退料单号" align="center" prop="produceCode" width="150"/>
|
|
|
|
|
<el-table-column label="出库单号" align="center" prop="userDefined4" width="150"/>
|
|
|
|
|
<el-table-column label="生产日期" align="center" prop="needDate" width="150"/>
|
|
|
|
@ -315,10 +319,11 @@
|
|
|
|
|
<el-table
|
|
|
|
|
v-if="refreshNewWorkerTable" v-loading="newWorkerLoading" class="my-print-table" :data="printData.workTable"
|
|
|
|
|
border style="width: 1000px;padding-bottom: 1px;">
|
|
|
|
|
<el-table-column prop="sort" label="序号" :width="50" align="center" ></el-table-column>
|
|
|
|
|
<el-table-column prop="materialCode" label="物料编码" :width="150" :formatter="productCodeFormate"></el-table-column>
|
|
|
|
|
<el-table-column prop="materialDesc" label="物料描述" :width="280"></el-table-column>
|
|
|
|
|
<el-table-column prop="unit" width="55" label="单位"></el-table-column>
|
|
|
|
|
<el-table-column prop="userDefined5" width="165" label="批号"></el-table-column>
|
|
|
|
|
<el-table-column prop="userDefined5" width="115" label="批号"></el-table-column>
|
|
|
|
|
<el-table-column prop="planNumber" label="计划数量" width="100"></el-table-column>
|
|
|
|
|
<!-- <el-table-column prop="planNumber" width="75" label="实发数量"></el-table-column>-->
|
|
|
|
|
<el-table-column prop="routeCode" width="75" label="备注"></el-table-column>
|
|
|
|
@ -364,10 +369,11 @@ import {
|
|
|
|
|
removeReturn,
|
|
|
|
|
getIdCardListTH,
|
|
|
|
|
listReturnDY,
|
|
|
|
|
listOutorderZU
|
|
|
|
|
listOutorderZU, batchSapTl
|
|
|
|
|
} from '@/api/wms/outorderfc'
|
|
|
|
|
import moment from "moment/moment";
|
|
|
|
|
import JsBarcode from "jsbarcode";
|
|
|
|
|
import printJS from "print-js";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "Outorder",
|
|
|
|
@ -1013,7 +1019,26 @@ export default {
|
|
|
|
|
this.download('wms/outorder/export', {
|
|
|
|
|
...this.queryParams
|
|
|
|
|
}, `outorder_${new Date().getTime()}.xlsx`)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 批量过账操作
|
|
|
|
|
* **/
|
|
|
|
|
handleBatchSAP(){
|
|
|
|
|
//取出对应的退货单号
|
|
|
|
|
|
|
|
|
|
if (this.selectabletrows.length <= 0){
|
|
|
|
|
this.$modal.msgError("请选择数据操作!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let postData = this.selectabletrows.map(item => (item.produceCode));
|
|
|
|
|
const params = [...new Set(postData)];
|
|
|
|
|
batchSapTl(params).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("操作完成");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|