|
@@ -31,25 +31,28 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:priority="{ row }">
|
|
<template v-slot:priority="{ row }">
|
|
|
- <el-input
|
|
|
|
|
- v-model="row.priority"
|
|
|
|
|
- type="number"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- :min="0"
|
|
|
|
|
- :max="10"
|
|
|
|
|
- @change="priorityChange(row)"
|
|
|
|
|
- ></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 style="display: flex">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="row.priority"
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ :min="0"
|
|
|
|
|
+ :max="10"
|
|
|
|
|
+ @change="priorityChange(row)"
|
|
|
|
|
+ style="width: 100px"
|
|
|
|
|
+ ></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>
|
|
|
|
|
|
|
|
<template v-slot:productSumWeight="{ row }">
|
|
<template v-slot:productSumWeight="{ row }">
|
|
@@ -57,12 +60,9 @@
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 操作列 -->
|
|
<!-- 操作列 -->
|
|
|
<template v-slot:action="{ row }">
|
|
<template v-slot:action="{ row }">
|
|
|
- <template >
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <template>
|
|
|
<el-link
|
|
<el-link
|
|
|
- v-if="row.orderSource != 1"
|
|
|
|
|
|
|
+ v-if="row.orderSource != 1"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
@@ -71,9 +71,8 @@
|
|
|
修改
|
|
修改
|
|
|
</el-link>
|
|
</el-link>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
|
- v-if="row.orderSource != 1"
|
|
|
|
|
|
|
+ v-if="row.orderSource != 1"
|
|
|
class="ele-action"
|
|
class="ele-action"
|
|
|
title="确定要删除此销售订单吗?"
|
|
title="确定要删除此销售订单吗?"
|
|
|
@confirm="remove(row)"
|
|
@confirm="remove(row)"
|
|
@@ -92,9 +91,6 @@
|
|
|
<order-detail @refresh="reload" ref="detailDialog"> </order-detail>
|
|
<order-detail @refresh="reload" ref="detailDialog"> </order-detail>
|
|
|
<!-- 创建订单 -->
|
|
<!-- 创建订单 -->
|
|
|
<create-order ref="createDialog" @refresh="reload"> </create-order>
|
|
<create-order ref="createDialog" @refresh="reload"> </create-order>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -102,7 +98,7 @@
|
|
|
import OrderSearch from './components/order-search.vue';
|
|
import OrderSearch from './components/order-search.vue';
|
|
|
import OrderDetail from './components/order-detail.vue';
|
|
import OrderDetail from './components/order-detail.vue';
|
|
|
import CreateOrder from './components/create-order.vue';
|
|
import CreateOrder from './components/create-order.vue';
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
import {
|
|
import {
|
|
|
getPageList,
|
|
getPageList,
|
|
|
deleteOrder,
|
|
deleteOrder,
|
|
@@ -118,7 +114,6 @@
|
|
|
OrderSearch,
|
|
OrderSearch,
|
|
|
OrderDetail,
|
|
OrderDetail,
|
|
|
CreateOrder
|
|
CreateOrder
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -159,7 +154,8 @@
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
minWidth: 150,
|
|
minWidth: 150,
|
|
|
- slot: 'code'
|
|
|
|
|
|
|
+ slot: 'code',
|
|
|
|
|
+ sortable: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: 'lineNumber',
|
|
prop: 'lineNumber',
|
|
@@ -214,7 +210,7 @@
|
|
|
prop: 'priority',
|
|
prop: 'priority',
|
|
|
label: '优先级',
|
|
label: '优先级',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- minWidth: 120,
|
|
|
|
|
|
|
+ minWidth: 140,
|
|
|
slot: 'priority',
|
|
slot: 'priority',
|
|
|
sortable: 'custom'
|
|
sortable: 'custom'
|
|
|
},
|
|
},
|
|
@@ -227,14 +223,13 @@
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: 'contractNum',
|
|
prop: 'contractNum',
|
|
|
- label: this.clientEnvironmentId == '4' ? '交付数量' : '合同数量' ,
|
|
|
|
|
- align: 'center',
|
|
|
|
|
-
|
|
|
|
|
|
|
+ label: this.clientEnvironmentId == '4' ? '交付数量' : '合同数量',
|
|
|
|
|
+ align: 'center'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: 'lackNum',
|
|
prop: 'lackNum',
|
|
|
label: '欠交数量',
|
|
label: '欠交数量',
|
|
|
- align: 'center',
|
|
|
|
|
|
|
+ align: 'center'
|
|
|
},
|
|
},
|
|
|
// {
|
|
// {
|
|
|
// prop: 'moCount',
|
|
// prop: 'moCount',
|
|
@@ -346,8 +341,6 @@
|
|
|
methods: {
|
|
methods: {
|
|
|
getFieldModel() {
|
|
getFieldModel() {
|
|
|
fieldModel({ fieldModel: 't_main_category' }).then((res) => {
|
|
fieldModel({ fieldModel: 't_main_category' }).then((res) => {
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
const privateColumn = [];
|
|
const privateColumn = [];
|
|
|
if (this.activeName == 'first') {
|
|
if (this.activeName == 'first') {
|
|
|
privateColumn.push({
|
|
privateColumn.push({
|
|
@@ -364,17 +357,17 @@
|
|
|
privateColumn = [];
|
|
privateColumn = [];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- let newRes = res.map(m => {
|
|
|
|
|
|
|
+ let newRes = res.map((m) => {
|
|
|
return {
|
|
return {
|
|
|
prop: 'extField.' + m.prop,
|
|
prop: 'extField.' + m.prop,
|
|
|
label: m.label,
|
|
label: m.label,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ };
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
this.newColumns = [...this.columns, ...newRes, ...privateColumn];
|
|
this.newColumns = [...this.columns, ...newRes, ...privateColumn];
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -414,7 +407,6 @@
|
|
|
this.$refs.createDialog.open(row);
|
|
this.$refs.createDialog.open(row);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
-
|
|
|
|
|
remove(row) {
|
|
remove(row) {
|
|
|
deleteOrder([row.id]).then((res) => {
|
|
deleteOrder([row.id]).then((res) => {
|
|
|
this.$message.success(res);
|
|
this.$message.success(res);
|