|
|
|
@ -878,7 +878,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
// 拆分-选择工艺
|
|
|
|
|
changeRoute(routeCode) {
|
|
|
|
|
console.log("点击了拆分-选择工艺")
|
|
|
|
|
// 选择好工艺进行设备选择
|
|
|
|
|
getProEquipment(routeCode).then(response => {
|
|
|
|
|
this.eRouteOptions = response.data
|
|
|
|
@ -924,7 +923,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 拆分-点击拆分按钮操作
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
console.log("点击了拆分按钮")
|
|
|
|
|
// 清除缓存
|
|
|
|
|
|
|
|
|
|
//重置表单
|
|
|
|
@ -948,12 +946,9 @@ export default {
|
|
|
|
|
// 3.获取工艺信息
|
|
|
|
|
// 4.获取班次信息
|
|
|
|
|
getSplitInfo(row).then(response => {
|
|
|
|
|
console.log(response.data)
|
|
|
|
|
|
|
|
|
|
this.workShift = response.data.proShiftList;
|
|
|
|
|
this.routes = response.data.routeList;
|
|
|
|
|
console.log("工艺list")
|
|
|
|
|
console.log(this.routes)
|
|
|
|
|
this.splitData = response.data.proOrderWorkorderList;
|
|
|
|
|
this.productData.push(response.data.proOrderList[0]);
|
|
|
|
|
|
|
|
|
@ -978,11 +973,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 导入-点击导入按钮
|
|
|
|
|
handleImport() {
|
|
|
|
|
console.log("点击了导入按钮")
|
|
|
|
|
},
|
|
|
|
|
// 导出
|
|
|
|
|
handleExport() {
|
|
|
|
|
console.log("点击了导出")
|
|
|
|
|
this.download('/plan/whiteOrder/export', {
|
|
|
|
|
...this.queryParams
|
|
|
|
|
}, `whiteOrder_${new Date().getTime()}.xlsx`)
|
|
|
|
@ -1003,7 +996,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 新增-物料选择-确定按钮
|
|
|
|
|
subMateriel() {
|
|
|
|
|
console.log("点击了物料-确定")
|
|
|
|
|
if (this.selectMaterielList.length < 1) {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: '至少选择一个物料!',
|
|
|
|
@ -1011,7 +1003,6 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
console.log(this.form.prodCode == '')
|
|
|
|
|
// if(this.form.prodCode == '' ){
|
|
|
|
|
// this.selectMaterielListtag = this.selectMaterielList
|
|
|
|
|
// }
|
|
|
|
@ -1041,8 +1032,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 新增-物料多选
|
|
|
|
|
handleSelectionChange(select) {
|
|
|
|
|
console.log("选择物料")
|
|
|
|
|
console.log(select)
|
|
|
|
|
this.selectMaterielList = select;
|
|
|
|
|
},
|
|
|
|
|
// 新增-获取物料list
|
|
|
|
@ -1057,13 +1046,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 新增-物料搜索按钮
|
|
|
|
|
handleMaterielQuery() {
|
|
|
|
|
console.log("点击了物料搜索按钮")
|
|
|
|
|
this.materielQueryParams.pageNum = 1;
|
|
|
|
|
this.getMaterielList();
|
|
|
|
|
},
|
|
|
|
|
// 拆分-车数数量校验
|
|
|
|
|
changeCarNum(num) {
|
|
|
|
|
console.log("车数数量改变")
|
|
|
|
|
// 请先输入订单数量
|
|
|
|
|
if (this.splitForm.splitNum == null) {
|
|
|
|
|
this.$message({
|
|
|
|
@ -1092,7 +1079,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 新增-订单数量校验
|
|
|
|
|
addQuantity(num) {
|
|
|
|
|
console.log("订单数量改变")
|
|
|
|
|
// 不能为负数
|
|
|
|
|
if (num <= 0) {
|
|
|
|
|
this.$message({
|
|
|
|
@ -1104,7 +1090,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 新增-点击选择物料
|
|
|
|
|
selectMateriel() {
|
|
|
|
|
console.log("点击了选择物料");
|
|
|
|
|
this.materielQueryParams = {
|
|
|
|
|
productCode: undefined,
|
|
|
|
|
productDescZh: '白坯',
|
|
|
|
@ -1115,7 +1100,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 新增-点击新增按钮
|
|
|
|
|
handleAdd(row) {
|
|
|
|
|
console.log("点击了新增按钮");
|
|
|
|
|
// TODO 清楚缓存
|
|
|
|
|
this.materielQueryParams = {
|
|
|
|
|
productCode: null,
|
|
|
|
@ -1136,7 +1120,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 新增-提交按钮
|
|
|
|
|
submitForm() {
|
|
|
|
|
console.log("点击了提交按钮",this.form);
|
|
|
|
|
// 校验新增数据是否存在空值
|
|
|
|
|
if (this.form.prodCode == '') {
|
|
|
|
|
this.$message({
|
|
|
|
|