tupian
This commit is contained in:
@@ -35,10 +35,10 @@ const _sfc_main = {
|
||||
});
|
||||
const show = common_vendor.ref(false);
|
||||
const value1 = common_vendor.ref(Date.now());
|
||||
const selectedDate = common_vendor.ref("");
|
||||
common_vendor.ref("");
|
||||
const cateId = common_vendor.ref("");
|
||||
const cateList = common_vendor.ref([]);
|
||||
const selectedUserName = common_vendor.ref("");
|
||||
const fetchDeptUsers = async () => {
|
||||
try {
|
||||
const res = await request_api.getDepartmentPersonUsers();
|
||||
@@ -170,7 +170,7 @@ const _sfc_main = {
|
||||
} catch (error) {
|
||||
console.error("提交整改失败:", error);
|
||||
common_vendor.index.showToast({
|
||||
title: "请求失败",
|
||||
title: "您不是整改人员",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
@@ -186,9 +186,10 @@ const _sfc_main = {
|
||||
const selectItem = (item) => {
|
||||
console.log("选择的整改人员:", item);
|
||||
cateId.value = item.id;
|
||||
selectedUserName.value = item.name;
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.o(($event) => formData.rectifyPlan = $event),
|
||||
b: common_vendor.p({
|
||||
placeholder: "请输入内容",
|
||||
@@ -211,33 +212,33 @@ const _sfc_main = {
|
||||
type: "number",
|
||||
modelValue: formData.actualCost
|
||||
}),
|
||||
i: common_vendor.t(selectedDate.value || "请选择日期"),
|
||||
j: common_vendor.n(selectedDate.value ? "" : "text-gray"),
|
||||
k: common_vendor.o(($event) => show.value = true),
|
||||
l: common_vendor.o(($event) => value1.value = $event),
|
||||
m: common_vendor.p({
|
||||
i: common_vendor.o(($event) => value1.value = $event),
|
||||
j: common_vendor.p({
|
||||
hasInput: true,
|
||||
show: show.value,
|
||||
mode: "date",
|
||||
modelValue: value1.value
|
||||
}),
|
||||
n: common_vendor.o(selectItem),
|
||||
o: common_vendor.o(($event) => cateId.value = $event),
|
||||
p: common_vendor.p({
|
||||
label: "整改人员",
|
||||
k: selectedUserName.value
|
||||
}, selectedUserName.value ? {
|
||||
l: common_vendor.t(selectedUserName.value)
|
||||
} : {}, {
|
||||
m: common_vendor.o(selectItem),
|
||||
n: common_vendor.o(($event) => cateId.value = $event),
|
||||
o: common_vendor.p({
|
||||
options: cateList.value,
|
||||
current: cateId.value
|
||||
}),
|
||||
q: common_vendor.o(afterRead),
|
||||
r: common_vendor.o(deletePic),
|
||||
s: common_vendor.p({
|
||||
p: common_vendor.o(afterRead),
|
||||
q: common_vendor.o(deletePic),
|
||||
r: common_vendor.p({
|
||||
fileList: fileList1.value,
|
||||
name: "1",
|
||||
multiple: true,
|
||||
maxCount: 10
|
||||
}),
|
||||
t: common_vendor.o(handleSubmit)
|
||||
};
|
||||
s: common_vendor.o(handleSubmit)
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user