yxh
3 天以前 5743e533414c608a12f9323f17a7c86721c7f54c
src/views/project/travelexpenseapply/edit.vue
@@ -63,7 +63,7 @@
                </el-col>
                <el-col :span="7">
                    <el-form-item label="申请日期" prop="applyTime">
                        <el-date-picker style="width: 100%" v-model="form.applyTime" type="date"
                        <el-date-picker style="width: 100%" v-model="form.applyTime" type="date" format="yyyy-MM-dd"
                            value-format="yyyy-MM-dd HH:mm:ss" placeholder="申请日期">
                        </el-date-picker>
                    </el-form-item>
@@ -101,7 +101,7 @@
                    <el-table-column prop="starttime" slot="" label="出发日期" fixed align="center" width="150">
                        <template slot-scope="scope">
                            <el-date-picker clearable size="small" style="width: 100%" v-model="scope.row.starttime"
                                type="date" value-format="yyyy-MM-dd HH:mm:ss" placeholder="出发日期"
                                type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss" placeholder="出发日期"
                                @change="getStandard(scope.row)">
                            </el-date-picker>
                        </template>
@@ -115,7 +115,7 @@
                    <el-table-column prop="endtime" slot="" label="到达日期" align="center" width="150" fixed>
                        <template slot-scope="scope">
                            <el-date-picker clearable size="small" style="width: 100%" v-model="scope.row.endtime"
                                type="date" value-format="yyyy-MM-dd HH:mm:ss" placeholder="到达日期">
                                type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss" placeholder="到达日期">
                            </el-date-picker>
                        </template>
                    </el-table-column>
@@ -382,17 +382,19 @@
    },
    methods: {
        handleUploadError() { },
        // 下载文件
        // 预览/下载文件
        downFile(item) {
            const ext = String(item.name || '').split('.').pop().toLowerCase();
            if (['pdf', 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp'].includes(ext)) {
                this.$previewFile([{ name: item.name, url: item.url }]);
                return;
            }
            const url = process.env.VUE_APP_BASE_API + item.url
            var a = document.createElement('a');
            var event = new MouseEvent('click');
            a.download = item.name;
            a.href = url;
            a.dispatchEvent(event);
        },
        remove(file) {