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

yangwl
wws 1 year ago
parent 5b6d692dd8
commit ab8d0add7b

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

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

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

Loading…
Cancel
Save