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