|
|
@ -135,7 +135,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { listOutorder, getOutorder, delOutorder, PurchaseOrderOutboundPda, addPurchaseOrderOutbound,getlistCK } from "@/api/wms/outorder";
|
|
|
|
import { listOutorder, getOutorder, delOutorder, PurchaseOrderOutboundPda, addPurchaseOrderOutbound, getlistCK } from "@/api/wms/outorder";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "Outorder",
|
|
|
|
name: "Outorder",
|
|
|
@ -203,6 +203,11 @@ export default {
|
|
|
|
produceCode: '',
|
|
|
|
produceCode: '',
|
|
|
|
warehouseNo: '',
|
|
|
|
warehouseNo: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
queryParams2: {
|
|
|
|
|
|
|
|
orderNo: '',
|
|
|
|
|
|
|
|
warehouseNo: '',
|
|
|
|
|
|
|
|
orderLines:[],
|
|
|
|
|
|
|
|
},
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
form: {},
|
|
|
|
// 表单校验
|
|
|
|
// 表单校验
|
|
|
@ -255,7 +260,7 @@ export default {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
selectedRows: [],
|
|
|
|
selectedRows: [],
|
|
|
|
stationNo: '',
|
|
|
|
stationNo: '',
|
|
|
|
addoutorderList:[],
|
|
|
|
addoutorderList: [],
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
@ -286,12 +291,12 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getselect() {
|
|
|
|
getselect() {
|
|
|
|
// config.headers['poolName'] = localStorage.getItem('USER_POOL_NAME_CURRENT');
|
|
|
|
// config.headers['poolName'] = localStorage.getItem('USER_POOL_NAME_CURRENT');
|
|
|
|
let factoryCode=localStorage.getItem('USER_POOL_NAME_CURRENT').substring(3)
|
|
|
|
let factoryCode = localStorage.getItem('USER_POOL_NAME_CURRENT').substring(3)
|
|
|
|
let params = { factoryCode: factoryCode }; // 构造一个包含工厂代码的对象
|
|
|
|
let params = { factoryCode: factoryCode }; // 构造一个包含工厂代码的对象
|
|
|
|
let paramsJSON = JSON.stringify(params); // 将对象转换为JSON字符串
|
|
|
|
let paramsJSON = JSON.stringify(params); // 将对象转换为JSON字符串
|
|
|
|
console.log( factoryCode)
|
|
|
|
console.log(factoryCode)
|
|
|
|
getlistCK(paramsJSON).then(response => {
|
|
|
|
getlistCK(paramsJSON).then(response => {
|
|
|
|
this.Optionlistck=response.data
|
|
|
|
this.Optionlistck = response.data
|
|
|
|
console.log(this.Optionlistck)
|
|
|
|
console.log(this.Optionlistck)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -420,7 +425,10 @@ export default {
|
|
|
|
// this.getList();
|
|
|
|
// this.getList();
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
addPurchaseOrderOutbound(_this.selectedRows).then(response => {
|
|
|
|
this.queryParams2.orderNo = this.queryParams1.produceCode
|
|
|
|
|
|
|
|
this.queryParams2.warehouseCode = this.queryParams1.warehouseCode
|
|
|
|
|
|
|
|
this.queryParams2.orderLines = _this.selectedRows
|
|
|
|
|
|
|
|
addPurchaseOrderOutbound(_this.queryParams2).then(response => {
|
|
|
|
if (response.data) {
|
|
|
|
if (response.data) {
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
this.open = false;
|
|
|
|
this.open = false;
|
|
|
|