|
|
@@ -27,7 +27,6 @@
|
|
|
autoAmendPage
|
|
|
:parse-data="parseData"
|
|
|
>
|
|
|
-
|
|
|
<template v-slot:toolbar>
|
|
|
<el-button type="success">新建</el-button>
|
|
|
<el-button type="success">暂停</el-button>
|
|
|
@@ -58,42 +57,37 @@
|
|
|
|
|
|
<template v-slot:priority="{ row }">
|
|
|
<div style="display: flex">
|
|
|
- <el-input
|
|
|
- v-model="row.priority"
|
|
|
- type="number"
|
|
|
- size="mini"
|
|
|
- :min="0"
|
|
|
- :max="10"
|
|
|
- @change="priorityChange(row)"
|
|
|
- style="width: 80px"
|
|
|
- ></el-input>
|
|
|
- <el-popover
|
|
|
- placement="right"
|
|
|
- width="200"
|
|
|
- trigger="hover"
|
|
|
- content="数值越大优先级越高(0-3普通, 4-6优先, 7-10紧急)"
|
|
|
- >
|
|
|
- <div class="sort-wrap" slot="reference">
|
|
|
- <i class="el-icon-caret-top" @click="sortTop(row)"></i>
|
|
|
- <i class="el-icon-caret-bottom" @click="sortBottom(row)"></i>
|
|
|
- </div>
|
|
|
- </el-popover>
|
|
|
+ <el-input
|
|
|
+ v-model="row.priority"
|
|
|
+ type="number"
|
|
|
+ size="mini"
|
|
|
+ :min="0"
|
|
|
+ :max="10"
|
|
|
+ @change="priorityChange(row)"
|
|
|
+ style="width: 80px"
|
|
|
+ ></el-input>
|
|
|
+ <el-popover
|
|
|
+ placement="right"
|
|
|
+ width="200"
|
|
|
+ trigger="hover"
|
|
|
+ content="数值越大优先级越高(0-3普通, 4-6优先, 7-10紧急)"
|
|
|
+ >
|
|
|
+ <div class="sort-wrap" slot="reference">
|
|
|
+ <i class="el-icon-caret-top" @click="sortTop(row)"></i>
|
|
|
+ <i class="el-icon-caret-bottom" @click="sortBottom(row)"></i>
|
|
|
+ </div>
|
|
|
+ </el-popover>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:formingNum="{ row }">
|
|
|
- <span >
|
|
|
- {{ row.formingNum }} {{ row.unit }}
|
|
|
- </span>
|
|
|
+ <span> {{ row.formingNum }} {{ row.unit }} </span>
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:formingWeight="{ row }">
|
|
|
- <span >
|
|
|
- {{ row.formingNum }} {{ row.weightUnit }}
|
|
|
- </span>
|
|
|
+ <span> {{ row.formingNum }} {{ row.weightUnit }} </span>
|
|
|
</template>
|
|
|
|
|
|
-
|
|
|
<template v-slot:status="{ row }">
|
|
|
<span :class="{ 'ele-text-danger': row.status == 3 }">
|
|
|
{{ statusFormatter(row.status) }}
|
|
|
@@ -114,7 +108,7 @@
|
|
|
>
|
|
|
<template v-if="activeName != 'second'">
|
|
|
<el-link
|
|
|
- v-if="row.status == 4 "
|
|
|
+ v-if="row.status == 4"
|
|
|
type="primary"
|
|
|
:underline="false"
|
|
|
icon="el-icon-truck"
|
|
|
@@ -132,7 +126,7 @@
|
|
|
拆分
|
|
|
</el-link>
|
|
|
<el-link
|
|
|
- v-if="row.status == 4 "
|
|
|
+ v-if="row.status == 4"
|
|
|
type="primary"
|
|
|
:underline="false"
|
|
|
icon="el-icon-edit"
|
|
|
@@ -163,9 +157,7 @@
|
|
|
updatePriority
|
|
|
} from '@/api/produceOrder/index.js';
|
|
|
|
|
|
- import {
|
|
|
- fieldModel
|
|
|
-} from '@/api/produceWord/index.js';
|
|
|
+ import { fieldModel } from '@/api/produceWord/index.js';
|
|
|
import produceOrderSearch from './components/produceOrder-search.vue';
|
|
|
import createDialog from './components/createDialog.vue';
|
|
|
import unpackDialog from './components/unpackDialog.vue';
|
|
|
@@ -175,7 +167,6 @@
|
|
|
import printTg from './components/printTg';
|
|
|
import { debounce } from 'lodash';
|
|
|
|
|
|
-
|
|
|
export default {
|
|
|
components: {
|
|
|
produceOrderSearch,
|
|
|
@@ -254,7 +245,7 @@
|
|
|
prop: 'batchNo',
|
|
|
label: '批次号',
|
|
|
align: 'center',
|
|
|
- minWidth: 100,
|
|
|
+ minWidth: 100
|
|
|
},
|
|
|
|
|
|
{
|
|
|
@@ -318,7 +309,6 @@
|
|
|
align: 'center'
|
|
|
},
|
|
|
|
|
|
-
|
|
|
{
|
|
|
prop: 'priority',
|
|
|
label: '优先级',
|
|
|
@@ -405,8 +395,7 @@
|
|
|
label: '班组',
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
- },
|
|
|
-
|
|
|
+ }
|
|
|
];
|
|
|
},
|
|
|
|
|
|
@@ -414,7 +403,7 @@
|
|
|
return this.$store.state.user.info.clientEnvironmentId;
|
|
|
}
|
|
|
},
|
|
|
- created(){
|
|
|
+ created() {
|
|
|
this.getFieldModel();
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -432,7 +421,6 @@
|
|
|
},
|
|
|
/* 表格数据源 */
|
|
|
async datasource({ page, limit, where, order }) {
|
|
|
-
|
|
|
let res = await getPage({
|
|
|
...where,
|
|
|
...order,
|
|
|
@@ -471,16 +459,17 @@
|
|
|
|
|
|
/* 数据转为树形结构 */
|
|
|
parseData(data) {
|
|
|
- return {
|
|
|
+
|
|
|
+ return {
|
|
|
...data,
|
|
|
list: this.$util.toTreeData({
|
|
|
- data: data.list,
|
|
|
- count: data.total,
|
|
|
+ data: data.list,
|
|
|
+ count: data.total,
|
|
|
|
|
|
- idField: 'code',
|
|
|
- parentIdField: 'originalCode'
|
|
|
- })
|
|
|
- }
|
|
|
+ idField: 'code',
|
|
|
+ parentIdField: 'originalCode'
|
|
|
+ })
|
|
|
+ };
|
|
|
},
|
|
|
|
|
|
/* 数据转为树形结构 */
|
|
|
@@ -502,21 +491,19 @@
|
|
|
});
|
|
|
},
|
|
|
|
|
|
-
|
|
|
getFieldModel() {
|
|
|
fieldModel({ fieldModel: 't_main_category' }).then((res) => {
|
|
|
-
|
|
|
const privateColumn = [
|
|
|
- {
|
|
|
- columnKey: 'action',
|
|
|
- label: '操作',
|
|
|
- width: 250,
|
|
|
- align: 'center',
|
|
|
- resizable: false,
|
|
|
- fixed: 'right',
|
|
|
- slot: 'action',
|
|
|
- showOverflowTooltip: true
|
|
|
- }
|
|
|
+ {
|
|
|
+ columnKey: 'action',
|
|
|
+ label: '操作',
|
|
|
+ width: 250,
|
|
|
+ align: 'center',
|
|
|
+ resizable: false,
|
|
|
+ fixed: 'right',
|
|
|
+ slot: 'action',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ }
|
|
|
];
|
|
|
|
|
|
let newRes = res.map((m) => {
|