소스 검색

物资-配合移动端调整

huangguoce 1 일 전
부모
커밋
77e5467d99
2개의 변경된 파일12개의 추가작업 그리고 6개의 파일을 삭제
  1. 8 4
      src/views/psiManagement/loss/LossList.vue
  2. 4 2
      src/views/psiManagement/purchase/PurchaseForm.vue

+ 8 - 4
src/views/psiManagement/loss/LossList.vue

@@ -374,7 +374,7 @@ export default {
 					this.refreshList();
 					return;
 				}
-				this.todo(row);
+				this.todo(row, "4");
 			});
 		},
 		examine(row) {
@@ -384,17 +384,21 @@ export default {
 					this.refreshList();
 					return;
 				}
-				this.todo(row);
+				this.todo(row, "2");
 			});
 		},
-		todo(row) {
+		todo(row, status) {
+			let formReadOnly = true
+			if (status === "4") {
+				formReadOnly = false
+			}
 			taskService.getTaskDefInfo({ taskId: row.taskId }).then(data => {
 				this.$router.push({
 					path: "/flowable/task/TaskForm",
 					query: {
 						...pick(data, "formType", "formUrl", "procDefKey", "taskDefKey", "procInsId", "procDefId", "taskId", "status", "title", "businessId"),
 						isShow: false,
-						formReadOnly: true,
+						formReadOnly: formReadOnly,
 						formTitle: `${data.taskName}`,
 						cUser: false,
 						title: `审批【${data.taskName || ""}】`,

+ 4 - 2
src/views/psiManagement/purchase/PurchaseForm.vue

@@ -105,8 +105,10 @@
 								<!--              <el-input @change="ifSameValue" v-model="scope.row.tradeName"></el-input>-->
 								<vxe-pulldown ref="xDown1" transfer>
 									<template #default>
-										<vxe-input v-model="scope.row.tradeName" placeholder="请输入商品名称" maxlength="64"
-											@focus="focusEvent1(scope.row)" @input="keyupEvent1(scope.row)"></vxe-input>
+										<vxe-input v-model="scope.row.tradeName"
+											:disabled="status === 'audit' || status === 'taskFormDetail'"
+											placeholder="请输入商品名称" maxlength="64" @focus="focusEvent1(scope.row)"
+											@input="keyupEvent1(scope.row)"></vxe-input>
 									</template>
 									<template #dropdown>
 										<div class="my-dropdown1">