|
@@ -31,7 +31,7 @@
|
|
|
</span>
|
|
|
<span>
|
|
|
{{ $t("btOrder.orderStatus") }}:
|
|
|
- <el-select v-model="queryParams.orderStatus">
|
|
|
+ <el-select v-model="queryParams.model.orderStatus">
|
|
|
<el-option
|
|
|
v-for="item in statusOptions"
|
|
|
:key="item.value"
|
|
@@ -82,7 +82,7 @@
|
|
|
prop="orderGoodsId"
|
|
|
width="">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ scope.row.deviceName }}</span>
|
|
|
+ <span>{{ scope.row.equCom }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column :label="$t('btOrder.orderMemberName')" :show-overflow-tooltip="true" align="center"
|
|
@@ -124,15 +124,14 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column :label="$t('btOrder.orderStatus')" :show-overflow-tooltip="true" align="center"
|
|
|
|
|
|
- prop="orderStatus" width="80px">
|
|
|
+ prop="goodsCateStatus" width="80px">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.orderStatus == '0' ? $t("btOrder.status.wzf") : '' }}
|
|
|
- {{ scope.row.orderStatus == '1' ? $t("btOrder.status.yzf") : '' }}
|
|
|
- {{ scope.row.orderStatus == '2' ? $t("btOrder.status.yqx") : '' }}
|
|
|
- {{ scope.row.orderStatus == '3' ? $t("btOrder.status.ywc") : '' }}
|
|
|
- {{ scope.row.orderStatus == '4' ? $t("btOrder.status.yc") : '' }}
|
|
|
- {{ scope.row.orderStatus == '5' ? $t("btOrder.status.zrtk") : '' }}
|
|
|
-
|
|
|
+ {{ scope.row.orderStatus === '0' ? $t("btOrder.status.wzf") : '' }}
|
|
|
+ {{ scope.row.orderStatus === '1' ? $t("btOrder.status.yzf") : '' }}
|
|
|
+ {{ scope.row.orderStatus === '2' ? $t("btOrder.status.yqx") : '' }}
|
|
|
+ {{ scope.row.orderStatus === '3' ? $t("btOrder.status.scwc") : '' }}
|
|
|
+ {{ scope.row.orderStatus === '4' ? $t("btOrder.status.yc") : '' }}
|
|
|
+ {{ scope.row.orderStatus === '5' ? $t("btOrder.status.zrtk") : '' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -175,17 +174,15 @@ export default {
|
|
|
components: {Pagination, OrderEdit, OrderImport, orderDetail},
|
|
|
filters: {},
|
|
|
props: {
|
|
|
- resourceId: {
|
|
|
- type: String,
|
|
|
- default: ''
|
|
|
- }
|
|
|
+ resourceId: {
|
|
|
+ type:String,
|
|
|
+ default:''
|
|
|
+ }
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- statusFilter: [{text: '待支付', value: '1'}, {text: '待生产', value: '2'}, {text: '待取', value: '3'}, {
|
|
|
- text: '已完成',
|
|
|
- value: '4'
|
|
|
- }, {text: '已取消', value: '5'}],
|
|
|
+ statusFilter: [{text: '未支付', value: '0'}, {text: '已支付', value: '1'},{text: '已取消', value: '2'}, {text: '生产完成', value: '3'}, {
|
|
|
+ text: '异常', value: '4'}, {text: '转入退款', value: '5'}],
|
|
|
// :filters="[{ text: $t('common.status.valid'), value: '1' },{ text: $t('common.status.invalid'), value: '0' }]"
|
|
|
|
|
|
|
|
@@ -199,20 +196,23 @@ export default {
|
|
|
type: "orderDetail"
|
|
|
},
|
|
|
statusOptions: [{
|
|
|
+ value: '0',
|
|
|
+ label: '未支付'
|
|
|
+ },{
|
|
|
value: '1',
|
|
|
- label: '待支付'
|
|
|
+ label: '已支付'
|
|
|
}, {
|
|
|
value: '2',
|
|
|
- label: '待生产'
|
|
|
+ label: '已取消'
|
|
|
}, {
|
|
|
value: '3',
|
|
|
- label: '待取'
|
|
|
+ label: '生产完成'
|
|
|
}, {
|
|
|
value: '4',
|
|
|
- label: '已完成'
|
|
|
+ label: '异常'
|
|
|
}, {
|
|
|
value: '5',
|
|
|
- label: '已取消'
|
|
|
+ label: '转入退款'
|
|
|
}],
|
|
|
// 预览
|
|
|
preview: {
|
|
@@ -239,7 +239,14 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
- watch: {},
|
|
|
+ watch: {
|
|
|
+ resourceId: {
|
|
|
+ handler(val, oldVal) {
|
|
|
+ // 加载列表数据
|
|
|
+ this.fetch()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
mounted() {
|
|
|
this.fetch();
|
|
|
|
|
@@ -264,7 +271,7 @@ export default {
|
|
|
this.selection = selection;
|
|
|
},
|
|
|
search() {
|
|
|
- this.queryParams.model.orderEquId = this.resourceId
|
|
|
+ this.queryParams.model.orderEquId = this.resourceId
|
|
|
this.fetch({
|
|
|
...this.queryParams
|
|
|
});
|
|
@@ -381,8 +388,10 @@ export default {
|
|
|
|
|
|
this.queryParams.current = params.current ? params.current : this.queryParams.current;
|
|
|
this.queryParams.size = params.size ? params.size : this.queryParams.size;
|
|
|
- this.queryParams.model.orderEquId = this.resourceId
|
|
|
- orderApi.page(this.queryParams).then(response => {
|
|
|
+
|
|
|
+ this.queryParams.model.orderEquId = this.resourceId
|
|
|
+
|
|
|
+ orderApi.page(this.queryParams).then(response => {
|
|
|
const res = response.data;
|
|
|
if (res.isSuccess) {
|
|
|
this.tableData = res.data;
|