|
@@ -76,7 +76,7 @@ export const createCrudOptions = function ({ crudExpose ,approvalDialogRef}: Cre
|
|
|
// console.log("click", context);
|
|
|
// alert(context);
|
|
|
try{
|
|
|
- approvalDialogRef.value.open(row);
|
|
|
+ approvalDialogRef.value.openApprovalDialog(row);
|
|
|
// BorrowingReview(context.row.id,'approve','同意借用');
|
|
|
// ElMessage.success('审批通过');
|
|
|
}catch(err){
|
|
@@ -124,7 +124,7 @@ export const createCrudOptions = function ({ crudExpose ,approvalDialogRef}: Cre
|
|
|
form: {
|
|
|
show: false,
|
|
|
component: { placeholder: '请输入借用性质' },
|
|
|
- rules: [{ required: false, message: '请输入借用编号' }],
|
|
|
+ rules: [{ required: false, message: '请输入借用性质' }],
|
|
|
},
|
|
|
},
|
|
|
"borrower_info.user_code": {
|
|
@@ -134,8 +134,8 @@ export const createCrudOptions = function ({ crudExpose ,approvalDialogRef}: Cre
|
|
|
column: { minWidth: 120 },
|
|
|
form: {
|
|
|
show: false,
|
|
|
- component: { placeholder: '请输入借用性质' },
|
|
|
- rules: [{ required: false, message: '请输入借用编号' }],
|
|
|
+ component: { placeholder: '请输入学号/工号' },
|
|
|
+ rules: [{ required: false, message: '请输入学号/工号' }],
|
|
|
},
|
|
|
},
|
|
|
"borrower_info.name": {
|
|
@@ -145,25 +145,21 @@ export const createCrudOptions = function ({ crudExpose ,approvalDialogRef}: Cre
|
|
|
column: { minWidth: 120 },
|
|
|
form: {
|
|
|
show: false,
|
|
|
- component: { placeholder: '请输入借用性质' },
|
|
|
- rules: [{ required: false, message: '请输入借用编号' }],
|
|
|
+ component: { placeholder: '请输入借用人' },
|
|
|
+ rules: [{ required: false, message: '请输入借用人' }],
|
|
|
},
|
|
|
},
|
|
|
- "borrower_info.id": {
|
|
|
- title: '联系电话',
|
|
|
+ emergency_phone: {
|
|
|
+ title: '联系方式',
|
|
|
search: { show: false },
|
|
|
- type: 'dict-select',
|
|
|
+ type: 'input',
|
|
|
column: {
|
|
|
minWidth: 120
|
|
|
},
|
|
|
- dict: dict({
|
|
|
- url: "/api/system/app_user/",
|
|
|
- value: 'id',
|
|
|
- label: 'mobile' }),
|
|
|
form: {
|
|
|
show: false,
|
|
|
- component: { placeholder: '请输入联系电话' },
|
|
|
- rules: [{ required: false, message: '请输入借用编号' }],
|
|
|
+ component: { placeholder: '请输入联系方式' },
|
|
|
+ rules: [{ required: false, message: '请输入联系方式' }],
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -174,8 +170,8 @@ export const createCrudOptions = function ({ crudExpose ,approvalDialogRef}: Cre
|
|
|
column: { minWidth: 120 },
|
|
|
form: {
|
|
|
show: false,
|
|
|
- component: { placeholder: '请输入借用性质' },
|
|
|
- rules: [{ required: false, message: '请输入借用编号' }],
|
|
|
+ component: { placeholder: '请输入个人/团队' },
|
|
|
+ rules: [{ required: false, message: '请输入个人/团队' }],
|
|
|
},
|
|
|
},
|
|
|
expected_start_time: {
|
|
@@ -185,8 +181,8 @@ export const createCrudOptions = function ({ crudExpose ,approvalDialogRef}: Cre
|
|
|
column: { minWidth: 120 },
|
|
|
form: {
|
|
|
show: false,
|
|
|
- component: { placeholder: '请输入借用性质' },
|
|
|
- rules: [{ required: false, message: '请输入借用编号' }],
|
|
|
+ component: { placeholder: '请输入创建时间' },
|
|
|
+ rules: [{ required: false, message: '请输入创建时间' }],
|
|
|
},
|
|
|
},
|
|
|
expected_end_time: {
|
|
@@ -196,8 +192,8 @@ export const createCrudOptions = function ({ crudExpose ,approvalDialogRef}: Cre
|
|
|
column: { minWidth: 120 },
|
|
|
form: {
|
|
|
show: false,
|
|
|
- component: { placeholder: '请输入借用性质' },
|
|
|
- rules: [{ required: false, message: '请输入借用编号' }],
|
|
|
+ component: { placeholder: '请输入预计归还时间' },
|
|
|
+ rules: [{ required: false, message: '请输入预计归还时间' }],
|
|
|
},
|
|
|
},
|
|
|
status_label: {
|
|
@@ -207,8 +203,8 @@ export const createCrudOptions = function ({ crudExpose ,approvalDialogRef}: Cre
|
|
|
column: { minWidth: 120 },
|
|
|
form: {
|
|
|
show: false,
|
|
|
- component: { placeholder: '请输入借用性质' },
|
|
|
- rules: [{ required: false, message: '请输入借用编号' }],
|
|
|
+ component: { placeholder: '请输入当前状态' },
|
|
|
+ rules: [{ required: false, message: '请输入当前状态' }],
|
|
|
},
|
|
|
},
|
|
|
status: {
|
|
@@ -218,8 +214,8 @@ export const createCrudOptions = function ({ crudExpose ,approvalDialogRef}: Cre
|
|
|
column: { minWidth: 120 },
|
|
|
form: {
|
|
|
show: false,
|
|
|
- component: { placeholder: '请输入借用性质' },
|
|
|
- rules: [{ required: false, message: '请输入借用编号' }],
|
|
|
+ component: { placeholder: '请输入当前审批人' },
|
|
|
+ rules: [{ required: false, message: '请输入当前审批人' }],
|
|
|
},
|
|
|
},
|
|
|
return_location: {
|
|
@@ -229,8 +225,8 @@ export const createCrudOptions = function ({ crudExpose ,approvalDialogRef}: Cre
|
|
|
column: { minWidth: 120 },
|
|
|
form: {
|
|
|
show: false,
|
|
|
- component: { placeholder: '请输入借用性质' },
|
|
|
- rules: [{ required: false, message: '请输入借用编号' }],
|
|
|
+ component: { placeholder: '请输入存放仓库' },
|
|
|
+ rules: [{ required: false, message: '请输入存放仓库' }],
|
|
|
},
|
|
|
},
|
|
|
|