|
@@ -118,13 +118,13 @@ const formConfig = reactive([
|
|
prop: "productionProcessesName",
|
|
prop: "productionProcessesName",
|
|
readonly: true,
|
|
readonly: true,
|
|
},
|
|
},
|
|
- {
|
|
|
|
- type: "input",
|
|
|
|
- itemType: "text",
|
|
|
|
- label: proxy.t("receive.previousProcess"),
|
|
|
|
- prop: "previousProcessesName",
|
|
|
|
- readonly: true,
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // type: "input",
|
|
|
|
+ // itemType: "text",
|
|
|
|
+ // label: proxy.t("receive.previousProcess"),
|
|
|
|
+ // prop: "previousProcessesName",
|
|
|
|
+ // readonly: true,
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
type: "picker",
|
|
type: "picker",
|
|
itemType: "datePicker",
|
|
itemType: "datePicker",
|
|
@@ -222,18 +222,45 @@ const otherBtnClick = () => {
|
|
);
|
|
);
|
|
};
|
|
};
|
|
const getDetails = () => {
|
|
const getDetails = () => {
|
|
- proxy.post("/productionTaskDetail/detail", { id: route.query.id }).then(
|
|
|
|
- (res) => {
|
|
|
|
- if (
|
|
|
|
- res.data.productionTaskDetailRecordList &&
|
|
|
|
- res.data.productionTaskDetailRecordList.length > 0
|
|
|
|
- ) {
|
|
|
|
- let id = res.data.previousProcessesRecordId;
|
|
|
|
|
|
+ proxy
|
|
|
|
+ .post("/productionTaskDetail/detail", {
|
|
|
|
+ id: route.query.id,
|
|
|
|
+ taskProgressId: route.query.taskProgressId,
|
|
|
|
+ })
|
|
|
|
+ .then(
|
|
|
|
+ (res) => {
|
|
|
|
+ if (
|
|
|
|
+ res.data.productionTaskDetailRecordList &&
|
|
|
|
+ res.data.productionTaskDetailRecordList.length > 0
|
|
|
|
+ ) {
|
|
|
|
+ let id = res.data.previousProcessesRecordId;
|
|
|
|
+ proxy
|
|
|
|
+ .post("/fileInfo/getList", { businessIdList: [id] })
|
|
|
|
+ .then((res) => {
|
|
|
|
+ if (res.data[id] && res.data[id].length > 0) {
|
|
|
|
+ formData.data.fileList = res.data[id].map((item) => {
|
|
|
|
+ return {
|
|
|
|
+ raw: item,
|
|
|
|
+ name: item.fileName,
|
|
|
|
+ url: item.fileUrl,
|
|
|
|
+ };
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
proxy
|
|
proxy
|
|
- .post("/fileInfo/getList", { businessIdList: [id] })
|
|
|
|
- .then((res) => {
|
|
|
|
- if (res.data[id] && res.data[id].length > 0) {
|
|
|
|
- formData.data.fileList = res.data[id].map((item) => {
|
|
|
|
|
|
+ .post("/fileInfo/getList", {
|
|
|
|
+ businessIdList: [res.data.productionProcessesId],
|
|
|
|
+ })
|
|
|
|
+ .then((resOne) => {
|
|
|
|
+ if (
|
|
|
|
+ resOne.data[res.data.productionProcessesId] &&
|
|
|
|
+ resOne.data[res.data.productionProcessesId].length > 0
|
|
|
|
+ ) {
|
|
|
|
+ formData.data.fileListTwo = resOne.data[
|
|
|
|
+ res.data.productionProcessesId
|
|
|
|
+ ].map((item) => {
|
|
return {
|
|
return {
|
|
raw: item,
|
|
raw: item,
|
|
name: item.fileName,
|
|
name: item.fileName,
|
|
@@ -242,55 +269,33 @@ const getDetails = () => {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- }
|
|
|
|
-
|
|
|
|
- proxy
|
|
|
|
- .post("/fileInfo/getList", {
|
|
|
|
- businessIdList: [res.data.productionProcessesId],
|
|
|
|
- })
|
|
|
|
- .then((resOne) => {
|
|
|
|
- if (
|
|
|
|
- resOne.data[res.data.productionProcessesId] &&
|
|
|
|
- resOne.data[res.data.productionProcessesId].length > 0
|
|
|
|
- ) {
|
|
|
|
- formData.data.fileListTwo = resOne.data[
|
|
|
|
- res.data.productionProcessesId
|
|
|
|
- ].map((item) => {
|
|
|
|
- return {
|
|
|
|
- raw: item,
|
|
|
|
- name: item.fileName,
|
|
|
|
- url: item.fileUrl,
|
|
|
|
- };
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
|
|
- proxy
|
|
|
|
- .post("/fileInfo/getList", {
|
|
|
|
- businessIdList: [res.data.workOrderId],
|
|
|
|
- fileType: 1,
|
|
|
|
- })
|
|
|
|
- .then((resOne) => {
|
|
|
|
- if (
|
|
|
|
- resOne.data[res.data.workOrderId] &&
|
|
|
|
- resOne.data[res.data.workOrderId].length > 0
|
|
|
|
- ) {
|
|
|
|
- formData.data.fileListThree = resOne.data[res.data.workOrderId].map(
|
|
|
|
- (item) => {
|
|
|
|
|
|
+ proxy
|
|
|
|
+ .post("/fileInfo/getList", {
|
|
|
|
+ businessIdList: [res.data.workOrderId],
|
|
|
|
+ fileType: 1,
|
|
|
|
+ })
|
|
|
|
+ .then((resOne) => {
|
|
|
|
+ if (
|
|
|
|
+ resOne.data[res.data.workOrderId] &&
|
|
|
|
+ resOne.data[res.data.workOrderId].length > 0
|
|
|
|
+ ) {
|
|
|
|
+ formData.data.fileListThree = resOne.data[
|
|
|
|
+ res.data.workOrderId
|
|
|
|
+ ].map((item) => {
|
|
return {
|
|
return {
|
|
raw: item,
|
|
raw: item,
|
|
name: item.fileName,
|
|
name: item.fileName,
|
|
url: item.fileUrl,
|
|
url: item.fileUrl,
|
|
};
|
|
};
|
|
- }
|
|
|
|
- );
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- (err) => {
|
|
|
|
- return showFailToast(err.message);
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ (err) => {
|
|
|
|
+ return showFailToast(err.message);
|
|
|
|
+ }
|
|
|
|
+ );
|
|
};
|
|
};
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
if (route.query.id) {
|
|
if (route.query.id) {
|