订单管理模块(订单导出-文件名称)

yangwl
wws 1 year ago
parent 5b6d692dd8
commit ab8d0add7b

@ -571,13 +571,13 @@ export default {
methods: { methods: {
/** 导入按钮操作 */ /** 导入按钮操作 */
handleImport() { handleImport() {
this.upload.title = "订单信息导入"; // todo this.upload.title = "订单信息导入";
this.upload.open = true; this.upload.open = true;
}, },
/** 下载模板操作 */ /** 下载模板操作 */
importTemplate() { importTemplate() {
this.download('/plan/order/importTemplate', { this.download('/plan/order/importTemplate', {
}, `stu_base_template_${new Date().getTime()}.xlsx`) // todo }, `order_example_template_${new Date().getTime()}.xlsx`)
}, },
// //
handleFileUploadProgress(event, file, fileList) { handleFileUploadProgress(event, file, fileList) {
@ -599,7 +599,7 @@ export default {
handleExport() { handleExport() {
this.download('/plan/order/export', { this.download('/plan/order/export', {
...this.queryParams ...this.queryParams
}, `user_${new Date().getTime()}.xlsx`) }, `order_${new Date().getTime()}.xlsx`)
}, },
/** 拆分按钮操作 */ /** 拆分按钮操作 */
splitBtn(row) { splitBtn(row) {

@ -12,10 +12,20 @@
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<!-- <el-form-item label="同步状态">-->
<!-- <el-select v-model="queryParams.syncFlag" placeholder="请选择同步状态">-->
<!-- <el-option label="已同步" value="Y"></el-option>-->
<!-- <el-option label="未同步" value="N"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<el-form-item label="同步状态"> <el-form-item label="同步状态">
<el-select v-model="queryParams.syncFlag" placeholder="请选择同步状态"> <el-select v-model="queryParams.syncFlag" placeholder="请选择同步状态" clearable>
<el-option label="已同步" value="1"></el-option> <el-option
<el-option label="未同步" value="0"></el-option> v-for="dict in dict.type.sys_yes_no"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@ -82,7 +92,11 @@
<span>{{ parseTime(scope.row.planTime, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.planTime, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="已同步" align="center" prop="syncFlag"/> <el-table-column label="已同步" align="center" prop="syncFlag">
<template slot-scope="scope">
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.syncFlag"/>
</template>
</el-table-column>
<el-table-column label="创建人" align="center" prop="createBy"/> <el-table-column label="创建人" align="center" prop="createBy"/>
<el-table-column label="创建时间" align="center" prop="createTime" width="180"> <el-table-column label="创建时间" align="center" prop="createTime" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
@ -358,6 +372,7 @@ import moment from 'moment'
export default { export default {
name: 'Plan', name: 'Plan',
dicts: ['sys_yes_no'],
data() { data() {
return { return {
// 湿list // 湿list

@ -168,8 +168,12 @@
<dict-tag :options="dict.type.workorder_type" :value="scope.row.status"/> <dict-tag :options="dict.type.workorder_type" :value="scope.row.status"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center" prop="remark" /> <!-- <el-table-column label="备注" align="center" prop="remark" />-->
<el-table-column label="产品类型" align="center" prop="prodType" /> <el-table-column label="产品类型" align="center" prop="prodType" >
<template slot-scope="scope">
<dict-tag :options="dict.type.product_type" :value="scope.row.prodType"/>
</template>
</el-table-column>
</el-table> </el-table>
<pagination <pagination
@ -321,7 +325,7 @@ import moment from 'moment';
import { getprodLineShift } from '@/api/plan/order' import { getprodLineShift } from '@/api/plan/order'
export default { export default {
name: "Workorder", name: "Workorder",
dicts: ['workorder_type'], dicts: ['product_type','workorder_type'],
data() { data() {
return { return {
// form // form

Loading…
Cancel
Save