更新了多个视图页面及组件,包括审批流程显示方式等。
This commit is contained in:
parent
88a8efa10a
commit
6026b6bd6b
@ -91,11 +91,25 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
<div class="mt-4 mb-4">
|
<div class="mt-4 mb-4">
|
||||||
<span style="float:right">
|
<span style="float:right">
|
||||||
<el-button @click="close">取消</el-button>
|
<el-button type="primary" @click="submit">保存到账记录</el-button>
|
||||||
<el-button type="primary" @click="submit">确定</el-button>
|
<el-button @click="reset">重置</el-button>
|
||||||
|
<el-button @click="showDialog = true">全部到账</el-button>
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
|
<el-dialog title="选择到账日期" v-model="showDialog" width="550px">
|
||||||
|
<el-form-item label="到账日期" prop="invoice_phone">
|
||||||
|
<el-date-picker class="flex-1 !flex" v-model="times" clearable type="date" value-format="YYYY-MM-DD"
|
||||||
|
placeholder="选择到账日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="" prop="invoice_phone">
|
||||||
|
<el-button type="primary" @click="allSubmits">确定</el-button>
|
||||||
|
<el-button @click="showDialog.value = false">取消</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-dialog>
|
||||||
</popup>
|
</popup>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -107,6 +121,8 @@ import { apiInvliceLists, apiInvlicevAdd } from '@/api/oa_financial'
|
|||||||
import { defineEmits } from "vue"
|
import { defineEmits } from "vue"
|
||||||
const popupRef = shallowRef<InstanceType<typeof Popup>>();
|
const popupRef = shallowRef<InstanceType<typeof Popup>>();
|
||||||
const emit = defineEmits(["success", "close"]);
|
const emit = defineEmits(["success", "close"]);
|
||||||
|
const times = ref('')
|
||||||
|
const showDialog = ref(false)
|
||||||
|
|
||||||
|
|
||||||
// 表单数据
|
// 表单数据
|
||||||
@ -164,6 +180,24 @@ const submit = async () => {
|
|||||||
const close = () => {
|
const close = () => {
|
||||||
emit("success");
|
emit("success");
|
||||||
}
|
}
|
||||||
|
const reset = () => {
|
||||||
|
detail.value = [{
|
||||||
|
"amount": '',
|
||||||
|
"enter_time": "",
|
||||||
|
"remarks": ""
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
|
||||||
|
const allSubmits = async () => {
|
||||||
|
await apiInvlicevAdd(
|
||||||
|
{
|
||||||
|
invoice_id: formData.id, detail: [{ amount: formData.amount, enter_time: times.value, remarks: '' }]
|
||||||
|
}
|
||||||
|
)
|
||||||
|
emit("success");
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 显示
|
// 显示
|
||||||
|
Loading…
x
Reference in New Issue
Block a user