|
@@ -59,7 +59,12 @@
|
|
|
tableType="STATION"
|
|
|
@selected-sure="onSelectedStationFinish"
|
|
|
/>
|
|
|
-
|
|
|
+ <CommonTable
|
|
|
+ ref="userRef"
|
|
|
+ tableTitle="员工选择"
|
|
|
+ tableType="USERS"
|
|
|
+ @selected-sure="onUserSelectedFinish"
|
|
|
+ />
|
|
|
<ExcelUpload ref="uploadRef" @finished="uploadFinished" />
|
|
|
</div>
|
|
|
</template>
|
|
@@ -90,6 +95,7 @@ const binding = (row) => {
|
|
|
productionLineRef.value.startSelect();
|
|
|
}
|
|
|
};
|
|
|
+const userRef=ref(null);
|
|
|
const openEdit = (row) =>{
|
|
|
crudRef.value && crudRef.value.rowEdit(row,null);
|
|
|
}
|
|
@@ -157,6 +163,10 @@ const importExcelData = () => {
|
|
|
uploadRef.value.show("/api/v1/plan/order/import");
|
|
|
}
|
|
|
};
|
|
|
+
|
|
|
+const onUserSelectedFinish=(selectedValue)=>{
|
|
|
+ form.value.manager=selectedValue.userName;
|
|
|
+}
|
|
|
const formData = ref({});
|
|
|
// 设置表格列或者其他自定义的option
|
|
|
option.value = Object.assign(option.value, {
|
|
@@ -197,12 +207,8 @@ option.value = Object.assign(option.value, {
|
|
|
trigger: "blur",
|
|
|
},
|
|
|
],
|
|
|
- type: "select",
|
|
|
- dicUrl: import.meta.env.VITE_APP_BASE_API + "/api/v1/sys/user/list",
|
|
|
- dicMethod: "post",
|
|
|
- props: {
|
|
|
- label: "userName", // 下拉菜单显示的字段
|
|
|
- value: "userName", // 下拉菜单值的字段
|
|
|
+ click: ({ value, column }) => {
|
|
|
+ userRef.value.startSelect();
|
|
|
},
|
|
|
},
|
|
|
{
|