|
|
@ -333,7 +333,7 @@ const shiftList = ref([]);
|
|
|
|
const classTeamList = ref([]);
|
|
|
|
const classTeamList = ref([]);
|
|
|
|
|
|
|
|
|
|
|
|
const materialOpen = ref(false);
|
|
|
|
const materialOpen = ref(false);
|
|
|
|
const bomSelectRef = ref<InstanceType<typeof BomSelect>>();
|
|
|
|
const bomSelectRef = ref();
|
|
|
|
|
|
|
|
|
|
|
|
/*获取班次下拉框*/
|
|
|
|
/*获取班次下拉框*/
|
|
|
|
const getShiftSelect = async () => {
|
|
|
|
const getShiftSelect = async () => {
|
|
|
@ -576,19 +576,20 @@ const handleExport = () => {
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
const handleMaterialAdd = () => {
|
|
|
|
const handleMaterialAdd = () => {
|
|
|
|
materialOpen.value = true;
|
|
|
|
materialOpen.value = true;
|
|
|
|
bomSelectRef.value.open();
|
|
|
|
// bomSelectRef.value.open();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** 提交物料信息按钮 */
|
|
|
|
/** 提交物料信息按钮 */
|
|
|
|
const submitMaterialForm = () => {
|
|
|
|
const submitMaterialForm = () => {
|
|
|
|
console.log("bomSelectRef.value",bomSelectRef.value);
|
|
|
|
console.log("bomSelectRef.value",bomSelectRef.value.tableRef.store.states.currentRow.value);
|
|
|
|
let selectedRow = bomSelectRef.value.selectedRow;
|
|
|
|
let selectedRow = bomSelectRef.value.tableRef.store.states.currentRow.value;
|
|
|
|
console.log(selectedRow,form.value);
|
|
|
|
console.log(selectedRow,form.value);
|
|
|
|
form.value.materialName = selectedRow.materialName
|
|
|
|
form.value.materialName = selectedRow.materialName
|
|
|
|
|
|
|
|
console.log(selectedRow,form.value);
|
|
|
|
// this.$set(form, "materialId", selectedRow.materialId);
|
|
|
|
// this.$set(form, "materialId", selectedRow.materialId);
|
|
|
|
// this.$set(form, "materialName", selectedRow.materialName);
|
|
|
|
// this.$set(form, "materialName", selectedRow.materialName);
|
|
|
|
// this.$set(form, "erpMaterialId", selectedRow.erpId);
|
|
|
|
// this.$set(form, "erpMaterialId", selectedRow.erpId);
|
|
|
|
materialOpen.value = false;
|
|
|
|
// materialOpen.value = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
onMounted(() => {
|
|
|
|