|
@@ -116,7 +116,7 @@
|
|
|
<el-link
|
|
<el-link
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
- @click="openEdit('view',row)"
|
|
|
|
|
|
|
+ @click="openEdit('view', row)"
|
|
|
>
|
|
>
|
|
|
{{ row.goodsName }}</el-link
|
|
{{ row.goodsName }}</el-link
|
|
|
>
|
|
>
|
|
@@ -147,8 +147,8 @@
|
|
|
<!-- 操作列 -->
|
|
<!-- 操作列 -->
|
|
|
<template v-slot:action="{ row }">
|
|
<template v-slot:action="{ row }">
|
|
|
<el-link
|
|
<el-link
|
|
|
- @click="editGoodsStatus(row)"
|
|
|
|
|
- v-if="row.goodsStatus == 0"
|
|
|
|
|
|
|
+ @click="submit(row)"
|
|
|
|
|
+ v-if="row.goodsStatus == 0&&[0,3].includes(row.approvalStatus)"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
icon="el-icon-sort-up"
|
|
icon="el-icon-sort-up"
|
|
@@ -168,7 +168,7 @@
|
|
|
@click="openEditGoodsInfo(row)"
|
|
@click="openEditGoodsInfo(row)"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
- v-if="row.goodsStatus == 0"
|
|
|
|
|
|
|
+ v-if="row.goodsStatus == 0&&[0,3].includes(row.approvalStatus)"
|
|
|
>
|
|
>
|
|
|
修改
|
|
修改
|
|
|
</el-link>
|
|
</el-link>
|
|
@@ -176,7 +176,7 @@
|
|
|
class="ele-action"
|
|
class="ele-action"
|
|
|
title="确定要删除此信息吗?"
|
|
title="确定要删除此信息吗?"
|
|
|
@confirm="commitBtn([row.id])"
|
|
@confirm="commitBtn([row.id])"
|
|
|
- v-if="row.goodsStatus == 0"
|
|
|
|
|
|
|
+ v-if="row.goodsStatus == 0&&[0,3].includes(row.approvalStatus)"
|
|
|
>
|
|
>
|
|
|
<template v-slot:reference>
|
|
<template v-slot:reference>
|
|
|
<el-link type="danger" :underline="false"> 删除 </el-link>
|
|
<el-link type="danger" :underline="false"> 删除 </el-link>
|
|
@@ -187,7 +187,13 @@
|
|
|
</template>
|
|
</template>
|
|
|
</ele-split-layout>
|
|
</ele-split-layout>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
-
|
|
|
|
|
|
|
+ <process-submit-dialog
|
|
|
|
|
+ :isNotNeedProcess="false"
|
|
|
|
|
+ :processSubmitDialogFlag.sync="processSubmitDialogFlag"
|
|
|
|
|
+ v-if="processSubmitDialogFlag"
|
|
|
|
|
+ ref="processSubmitDialogRef"
|
|
|
|
|
+ @reload="reload"
|
|
|
|
|
+ ></process-submit-dialog>
|
|
|
<AddDialog ref="addContactDialogRef" @done="reload"></AddDialog>
|
|
<AddDialog ref="addContactDialogRef" @done="reload"></AddDialog>
|
|
|
<EditPriceDialog ref="editPriceDialogRef" @done="reload"> </EditPriceDialog>
|
|
<EditPriceDialog ref="editPriceDialogRef" @done="reload"> </EditPriceDialog>
|
|
|
<HistoricalpriceDialog
|
|
<HistoricalpriceDialog
|
|
@@ -206,6 +212,8 @@
|
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
|
import { getList, del, offOnSheft } from '@/api/goodsManage/index';
|
|
import { getList, del, offOnSheft } from '@/api/goodsManage/index';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
|
|
+ import processSubmitDialog from '@/BIZComponents/processSubmitDialog/processSubmitDialog.vue';
|
|
|
|
|
+ import { reviewStatus } from '@/enum/dict';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [tabMixins, dictMixins],
|
|
mixins: [tabMixins, dictMixins],
|
|
@@ -214,12 +222,13 @@
|
|
|
PriceSearch,
|
|
PriceSearch,
|
|
|
AddDialog,
|
|
AddDialog,
|
|
|
EditPriceDialog,
|
|
EditPriceDialog,
|
|
|
- HistoricalpriceDialog
|
|
|
|
|
|
|
+ HistoricalpriceDialog,processSubmitDialog
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
locationUrl: window.location.origin,
|
|
locationUrl: window.location.origin,
|
|
|
loading: false,
|
|
loading: false,
|
|
|
|
|
+ processSubmitDialogFlag:false,
|
|
|
cacheKeyUrl: 'eos-01283c34-commodityManagement-commodityPriceList',
|
|
cacheKeyUrl: 'eos-01283c34-commodityManagement-commodityPriceList',
|
|
|
// 表格列配置
|
|
// 表格列配置
|
|
|
columns: [
|
|
columns: [
|
|
@@ -228,8 +237,8 @@
|
|
|
type: 'selection',
|
|
type: 'selection',
|
|
|
columnKey: 'selection',
|
|
columnKey: 'selection',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- selectable:(row)=>{
|
|
|
|
|
- return row.goodsStatus==0
|
|
|
|
|
|
|
+ selectable: (row) => {
|
|
|
|
|
+ return row.goodsStatus == 0;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -266,9 +275,10 @@
|
|
|
prop: 'goodsName',
|
|
prop: 'goodsName',
|
|
|
label: '商品名称',
|
|
label: '商品名称',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- slot:'goodsName',
|
|
|
|
|
|
|
+ slot: 'goodsName',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
- width: 180
|
|
|
|
|
|
|
+ minWidth: 180
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: 'categoryLevelName',
|
|
prop: 'categoryLevelName',
|
|
@@ -282,7 +292,7 @@
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
label: '产品名称',
|
|
label: '产品名称',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
- width: 180
|
|
|
|
|
|
|
+ minWidth: 180
|
|
|
},
|
|
},
|
|
|
// {
|
|
// {
|
|
|
// prop: '产品编码',
|
|
// prop: '产品编码',
|
|
@@ -331,6 +341,7 @@
|
|
|
{
|
|
{
|
|
|
prop: 'goodsStatus',
|
|
prop: 'goodsStatus',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
|
|
+ width: 150,
|
|
|
label: '状态',
|
|
label: '状态',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row, column) => {
|
|
formatter: (row, column) => {
|
|
@@ -341,6 +352,16 @@
|
|
|
: '';
|
|
: '';
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'approvalStatus',
|
|
|
|
|
+ label: '审核状态',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ minWidth: 100,
|
|
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
|
|
+ return reviewStatus[_row.approvalStatus];
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
prop: 'createTime',
|
|
prop: 'createTime',
|
|
|
label: '创建时间',
|
|
label: '创建时间',
|
|
@@ -415,6 +436,24 @@
|
|
|
this.$refs.editPriceDialogRef.$refs.form &&
|
|
this.$refs.editPriceDialogRef.$refs.form &&
|
|
|
this.$refs.editPriceDialogRef.$refs.form.clearValidate();
|
|
this.$refs.editPriceDialogRef.$refs.form.clearValidate();
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ async submit(res) {
|
|
|
|
|
+ this.processSubmitDialogFlag=true
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ businessId: res.id,
|
|
|
|
|
+ businessKey: 'goods_manage_priceOffOnSheft_on',
|
|
|
|
|
+ formCreateUserId: res.createUserId,
|
|
|
|
|
+ variables: {
|
|
|
|
|
+ businessCode: res.goodsCode,
|
|
|
|
|
+ businessName: res.goodsName,
|
|
|
|
|
+ businessType: res.categoryLevelName
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
+ this.$refs.processSubmitDialogRef.init(params);
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
//上架下架操作
|
|
//上架下架操作
|
|
|
editGoodsStatus(row) {
|
|
editGoodsStatus(row) {
|
|
|
const data = {
|
|
const data = {
|
|
@@ -440,7 +479,7 @@
|
|
|
this.commitBtn();
|
|
this.commitBtn();
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- commitBtn(id ) {
|
|
|
|
|
|
|
+ commitBtn(id) {
|
|
|
const dataId = id || this.selection.map((v) => v.id);
|
|
const dataId = id || this.selection.map((v) => v.id);
|
|
|
del(dataId)
|
|
del(dataId)
|
|
|
.then((res) => {
|
|
.then((res) => {
|