|
@@ -88,6 +88,15 @@
|
|
|
<div class="form-content">{{ formData.remark || '-' }}</div>
|
|
|
</div>
|
|
|
<div v-if="isrenew">
|
|
|
+ <div style="margin-bottom: 8px; font-weight: bold;">续借时间(天)</div>
|
|
|
+ <input
|
|
|
+ v-model.number="renewal_days"
|
|
|
+ type="number"
|
|
|
+ min="1"
|
|
|
+ placeholder="请输入续借天数"
|
|
|
+ style="width: 100%; border: 1px solid #dcdfe6; padding: 8px; box-sizing: border-box;"
|
|
|
+ />
|
|
|
+
|
|
|
<div style="margin-bottom: 8px; font-weight: bold;">续借理由</div>
|
|
|
<textarea
|
|
|
v-model="return_remark"
|
|
@@ -132,6 +141,8 @@ const dialogVisible = ref(false);
|
|
|
const formData = ref<any>({});
|
|
|
|
|
|
const return_remark = ref('')
|
|
|
+const renewal_days = ref(1)
|
|
|
+
|
|
|
|
|
|
watch(
|
|
|
() => props.visible,
|
|
@@ -195,8 +206,9 @@ async function handlerenew(){
|
|
|
const item = filteredItems.value[i]
|
|
|
|
|
|
const payload = {
|
|
|
- device: item.device,
|
|
|
- quantity: item.quantity,
|
|
|
+ // device: item.device,
|
|
|
+ // quantity: item.quantity,
|
|
|
+ renewal_days:renewal_days.value,
|
|
|
return_remark: return_remark.value,
|
|
|
id: formData.value.id
|
|
|
}
|