+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 关闭
+
+
@@ -243,6 +316,8 @@ import {
cancelSoSchedule,/*取消排产*/
} from '@/api/schedule/com_schedule_order_expand.js'
+import { getFixedCarrierList } from '@/api/yieldReport/com_separate_roll.js'
+
import {
searchSysLanguagePackList,
searchSysLanguageParam,
@@ -462,6 +537,15 @@ export default {
orderScheduleList: [],
scheduleDetailList: [],
dataListLoading: false,
+ // 固定载具相关
+ carrierDialogVisible: false, // 固定载具对话框
+ carrierList: [], // 固定载具列表
+ carrierSearchData: { // 固定载具查询条件
+ carrierNo: '',
+ carrierTypeName: '',
+ specification: ''
+ },
+ currentEditIndex: -1, // 当前编辑的行索引
columnTimeArray: [
{
userId: this.$store.state.user.name,
@@ -1362,11 +1446,46 @@ export default {
itemNo: this.pageData.itemNo,
resourceId: defaultResourceId,
qtyRequired: 0,
+ carrierNo: '', // 固定载具
rowCount: 0,
rollCount: 0
});
},
+ /*打开固定载具选择对话框*/
+ openCarrierDialog(index) {
+ this.currentEditIndex = index;
+ this.queryCarrierList();
+ },
+
+ /*查询固定载具列表*/
+ queryCarrierList() {
+ const params = {
+ site: this.$store.state.user.site,
+ carrierNo: this.carrierSearchData.carrierNo,
+ carrierTypeName: this.carrierSearchData.carrierTypeName,
+ specification: this.carrierSearchData.specification
+ }
+ getFixedCarrierList(params).then(({data}) => {
+ if (data && data.code === 0) {
+ this.carrierList = data.data
+ this.carrierDialogVisible = true
+ } else {
+ this.$message.error(data.msg || '获取固定载具列表失败')
+ }
+ }).catch(error => {
+ this.$message.error('获取固定载具列表失败: ' + error.message)
+ })
+ },
+
+ /*选中固定载具*/
+ selectCarrier(row) {
+ if (this.currentEditIndex >= 0 && this.currentEditIndex < this.scheduleDetailList.length) {
+ this.scheduleDetailList[this.currentEditIndex].carrierNo = row.carrierNo
+ this.carrierDialogVisible = false
+ }
+ },
+
/*删除排产明细行*/
deleteScheduleDetail(index){
this.scheduleDetailList.splice(index, 1);
@@ -1463,7 +1582,8 @@ export default {
calendarId: this.pageData.calendarId,
checkFlag: true,
rowCount: item.rowCount,
- rollCount: item.rollCount
+ rollCount: item.rollCount,
+ carrierNo: item.carrierNo // 固定载具
};
// 调用排产接口
diff --git a/src/views/modules/yieldReport/com_separate_roll.vue b/src/views/modules/yieldReport/com_separate_roll.vue
index e256187..1d33729 100644
--- a/src/views/modules/yieldReport/com_separate_roll.vue
+++ b/src/views/modules/yieldReport/com_separate_roll.vue
@@ -23,8 +23,9 @@