|
@@ -89,6 +89,12 @@ const formConfig = reactive([
|
|
|
readonly: true,
|
|
|
},
|
|
|
{
|
|
|
+ type: "upload",
|
|
|
+ label: proxy.t("forward.processDrawing"),
|
|
|
+ prop: "fileList",
|
|
|
+ showUpload: false,
|
|
|
+ },
|
|
|
+ {
|
|
|
type: "input",
|
|
|
itemType: "text",
|
|
|
label: proxy.t("receive.previousProcess"),
|
|
@@ -163,9 +169,24 @@ const otherBtnClick = () => {
|
|
|
);
|
|
|
};
|
|
|
const getDetails = () => {
|
|
|
- proxy.post("/productionTask/detail", { id: route.query.id }).then(
|
|
|
+ proxy.post("/productionTaskDetail/detail", { id: route.query.id }).then(
|
|
|
(res) => {
|
|
|
- console.log(res, "ada");
|
|
|
+ if (res.data && res.data.productionTaskDetailRecordList.length > 0) {
|
|
|
+ let id = res.data.productionTaskDetailRecordList[0].id;
|
|
|
+ proxy
|
|
|
+ .post("/fileInfo/getList", { businessIdList: [id] })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data && res.data[id].length > 0) {
|
|
|
+ formData.data.fileList = res.data[id].map((item) => {
|
|
|
+ return {
|
|
|
+ raw: item,
|
|
|
+ name: item.fileName,
|
|
|
+ url: item.fileUrl,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
(err) => {
|
|
|
return showFailToast(err.message);
|
|
@@ -175,7 +196,8 @@ const getDetails = () => {
|
|
|
onMounted(() => {
|
|
|
if (route.query.id) {
|
|
|
formData.data = { ...route.query };
|
|
|
- if (!formData.data.productionProcessesName) {
|
|
|
+ getDetails();
|
|
|
+ if (!formData.data.personLiableId) {
|
|
|
formOption.otherBtn = false;
|
|
|
}
|
|
|
}
|