Commit 14b16fa4 by 李伟康

Merge branch 'SAAS+V5.7.4' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into SAAS+V5.7.4
2 parents 0d4372ad 1703721b
...@@ -729,10 +729,11 @@ export const afterSaleStatusList = [ ...@@ -729,10 +729,11 @@ export const afterSaleStatusList = [
export const invouceType = [ export const invouceType = [
{ confId: 0, confName: "待签收" }, { confId: 0, confName: "待签收" },
{ confId: 1, confName: "未入库" }, { confId: 1, confName: "已签收(未入库)" },
{ confId: 2, confName: "已入库" }, { confId: 2, confName: "已入库" },
{ confId: 3, confName: "部分入库" }, { confId: 3, confName: "部分入库" },
]; ];
// 服务商管理 采购模式 // 服务商管理 采购模式
export const procureModeList = [ export const procureModeList = [
{ confId: 1, confName: "直营" }, { confId: 1, confName: "直营" },
...@@ -936,7 +937,7 @@ export const downloadReportManage_reportType = [ ...@@ -936,7 +937,7 @@ export const downloadReportManage_reportType = [
{ {
confId: "BIAnalysisReport", confId: "BIAnalysisReport",
confValue: "BI数据分析表", confValue: "BI数据分析表",
} },
]; ];
// 下载报表 业务类型 // 下载报表 业务类型
......
...@@ -147,6 +147,7 @@ ...@@ -147,6 +147,7 @@
? pickerOption[item.pickerOptions] ? pickerOption[item.pickerOptions]
: undefined : undefined
" "
:placeholder="item.placeholder"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
:style="{ width: item.width || '100%' }" :style="{ width: item.width || '100%' }"
...@@ -170,6 +171,7 @@ import { ...@@ -170,6 +171,7 @@ import {
rangePickerOptions_oneYearNoFuture, rangePickerOptions_oneYearNoFuture,
rangePickertwoMonthOptions, rangePickertwoMonthOptions,
rangePickertwoMonthOptionsWithCurrentLimit, rangePickertwoMonthOptionsWithCurrentLimit,
stockQueryDatePickerOptions,
todayEndPickerOptions, todayEndPickerOptions,
yesterdayPicker, yesterdayPicker,
} from "@/common/format"; } from "@/common/format";
...@@ -219,6 +221,7 @@ export default { ...@@ -219,6 +221,7 @@ export default {
rangePickertwoMonthOptionsWithCurrentLimit, rangePickertwoMonthOptionsWithCurrentLimit,
rangePickerOptions_lastOneYear, rangePickerOptions_lastOneYear,
rangePickerOptions_oneYearNoFuture, rangePickerOptions_oneYearNoFuture,
stockQueryDatePickerOptions,
}, },
}; };
}, },
......
// 订单状态 // 订单状态
export const defaultStatusOptions = [ export const defaultStatusOptions = [
{ {
id: 1, id: 1,
label: "运营审核" label: "运营审核",
}, },
{ {
id: 8, id: 8,
label: "商务审核" label: "商务审核",
}, },
{ {
id: 2, id: 2,
label: "总监审核" label: "总监审核",
}, },
{ {
id: 3, id: 3,
label: "已取消" label: "已取消",
}, },
{ {
id: 4, id: 4,
label: "已驳回" label: "已驳回",
}, },
{ {
id: 5, id: 5,
label: "已审核" label: "已审核",
} },
// { // {
// id: 6, // id: 6,
// label: "已审核" // label: "已审核"
// }, // },
// { // {
// id: 7, // id: 7,
// label: "已驳回" // label: "已驳回"
// } // }
] ];
export const defaultStatusOptionsForTable = [ export const defaultStatusOptionsForTable = [
{ {
id: 1, id: 1,
label: "运营审核" label: "运营审核",
}, },
{ {
id: 8, id: 8,
label: "商务审核" label: "商务审核",
}, },
{ {
id: 2, id: 2,
label: "总监审核" label: "总监审核",
}, },
{ {
id: 3, id: 3,
label: "已取消" label: "已取消",
}, },
{ {
id: 4, id: 4,
label: "已驳回" label: "已驳回",
}, },
{ {
id: 5, id: 5,
label: "已审核" label: "已审核",
}, },
{ {
id: 6, id: 6,
label: "已驳回" label: "已驳回",
}, },
{ {
id: 7, id: 7,
label: "已驳回" label: "已驳回",
}, },
{ {
id: 9, id: 9,
label: "已驳回" label: "已驳回",
} },
] ];
// 运营审核筛选条件 // 运营审核筛选条件
export const operate_statusOptions = [ export const operate_statusOptions = [
{ {
id: 1, id: 1,
label: "待审核" label: "待审核",
}, },
{ {
id: 2, id: 2,
label: "已审核" label: "已审核",
}, },
{ {
id: 4, id: 4,
label: "已驳回" label: "已驳回",
} },
] ];
// 运营审核列表展示 // 运营审核列表展示
export const operate_statusOptions_table = [ export const operate_statusOptions_table = [
{ {
id: 1, id: 1,
label: "待审核" label: "待审核",
}, },
{ {
id: 2, id: 2,
label: "已审核" label: "已审核",
}, },
{ {
id: 4, id: 4,
label: "已驳回" label: "已驳回",
}, },
{ {
id: 5, id: 5,
label: "已审核" label: "已审核",
}, },
{ {
id: 6, id: 6,
label: "已驳回" label: "已驳回",
}, },
{ {
id: 7, id: 7,
label: "已驳回" label: "已驳回",
}, },
{ {
id: 8, id: 8,
label: "已审核" label: "已审核",
}, },
{ {
id: 9, id: 9,
label: "已驳回" label: "已驳回",
} },
] ];
// 商务审核筛选条件 // 商务审核筛选条件
export const business_statusOptions = [ export const business_statusOptions = [
{ {
id: 8, id: 8,
label: "待审核" label: "待审核",
}, },
{ {
id: 5, id: 5,
label: "已审核" label: "已审核",
}, },
{ {
id: 6, id: 6,
label: "已驳回" label: "已驳回",
} },
] ];
// 商务审核列表展示 // 商务审核列表展示
export const business_statusOptions_table = [ export const business_statusOptions_table = [
{ {
id: 8, id: 8,
label: "待审核" label: "待审核",
}, },
{ {
id: 5, id: 5,
label: "已审核" label: "已审核",
}, },
{ {
id: 6, id: 6,
label: "已驳回" label: "已驳回",
}, },
{ {
id: 7, id: 7,
label: "已驳回" label: "已驳回",
} },
] ];
// 总监审核筛选条件 // 总监审核筛选条件
export const director_statusOptions = [ export const director_statusOptions = [
{ {
id: 2, id: 2,
label: "待审核" label: "待审核",
}, },
{ {
id: 5, id: 5,
label: "已审核" label: "已审核",
}, },
{ {
id: 6, id: 6,
label: "已驳回" label: "已驳回",
} },
] ];
// 总监审核列表展示 // 总监审核列表展示
export const director_statusOptions_table = [ export const director_statusOptions_table = [
{ {
id: 2, id: 2,
label: "待审核" label: "待审核",
}, },
{ {
id: 5, id: 5,
label: "已审核" label: "已审核",
}, },
{ {
id: 6, id: 6,
label: "已驳回" label: "已驳回",
}, },
{ {
id: 7, id: 7,
label: "已驳回" label: "已驳回",
}, },
{ {
id: 8, id: 8,
label: "已审核" label: "已审核",
}, },
{ {
id: 9, id: 9,
label: "已驳回" label: "已驳回",
} },
] ];
// 发货状态 // 发货状态
export const defaultDeliveryStatusOptions = [ export const defaultDeliveryStatusOptions = [
{ {
id: 1, id: 1,
label: "未发货" label: "未发货",
}, },
{ {
id: 2, id: 2,
label: "全部发货" label: "全部发货",
}, },
{ {
id: 3, id: 3,
label: "部分发货" label: "部分发货",
}, },
{ {
id: 4, id: 4,
label: "结束发货" label: "结束发货",
} },
] ];
// 入库状态 // 入库状态
export const defaultPutStatusOptions = [ export const defaultPutStatusOptions = [
{ {
id: 1, id: 1,
label: "未入库" label: "未入库",
}, },
{ {
id: 2, id: 2,
label: "全部入库" label: "全部入库",
}, },
{ {
id: 3, id: 3,
label: "部分入库" label: "部分入库",
} },
] ];
// 发货模式 // 发货模式
export const purchasingPatternOptions = [ export const purchasingPatternOptions = [
{ {
id: 1, id: 1,
label: "直营" label: "直营",
}, },
{ {
id: 2, id: 2,
label: "批发" label: "批发",
}, },
{ {
id: 3, id: 3,
label: "代销" label: "代销",
} },
] ];
// export const severSelectOptionsLabel = { // export const severSelectOptionsLabel = {
// 1: "下单时间倒序排序", // 1: "下单时间倒序排序",
// 2: "按收入比例", // 2: "按收入比例",
...@@ -264,41 +264,45 @@ export const purchasingPatternOptions = [ ...@@ -264,41 +264,45 @@ export const purchasingPatternOptions = [
// 采购类型 // 采购类型
export const purchaseTypeList = [ export const purchaseTypeList = [
{ {
id: 1, id: 1,
label: "商城采购" label: "商城采购",
}, },
{ {
id: 2, id: 2,
label: "自采入库" label: "自采入库",
} },
] ];
// 分配状态 // 分配状态
export const distributionStatusOptions = [ export const distributionStatusOptions = [
{ {
id: 0, id: 0,
label: "未分配" label: "未分配",
}, },
{ {
id: 1, id: 1,
label: "已分配" label: "已分配",
} },
] ];
// 驳回节点选项 // 驳回节点选项
export const rejectNodeOptions = [ export const rejectNodeOptions = [
{ {
id: 3, id: 3,
label: "商务审核" label: "商务审核",
}, },
{ {
id: 2, id: 2,
label: "运营审核" label: "运营审核",
}, },
{ {
id: 1, id: 1,
label: "采购商户" label: "采购商户",
} },
] ];
export const signStatusType = [
{ confId: 0, confName: "待签收" },
{ confId: 2, confName: "已签收" },
{ confId: 1, confName: "部分签收" },
];
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
deliveryDate: "", deliveryDate: "",
orderCode: this.$route.params.orderCode || "", orderCode: this.$route.params.orderCode || "",
merchantName: "", merchantName: "",
putStatus: "", putStatusList: [],
}, },
searchFormSearch: {}, searchFormSearch: {},
showFormData: [ showFormData: [
...@@ -167,8 +167,9 @@ export default { ...@@ -167,8 +167,9 @@ export default {
}, },
{ {
label: "状态", label: "状态",
name: "putStatus", name: "putStatusList",
type: "select", type: "select",
multiple: true,
optionList: [], optionList: [],
optionId: "confId", optionId: "confId",
optionLabel: "confName", optionLabel: "confName",
...@@ -309,7 +310,8 @@ export default { ...@@ -309,7 +310,8 @@ export default {
...mapActions("d2admin/user", ["actionSetDownloadList"]), ...mapActions("d2admin/user", ["actionSetDownloadList"]),
async getBaseData() { async getBaseData() {
this.getOptionsList(); this.getOptionsList(this, "showFormData", true, "shippingWarehouseName");
this.getOptionsList(this, "showFormData", false, "putStatusList");
}, },
getShippingWarehouseList() { getShippingWarehouseList() {
getShipWarehousePage({ currentPage: 1, pageSize: 999 }) getShipWarehousePage({ currentPage: 1, pageSize: 999 })
...@@ -343,27 +345,54 @@ export default { ...@@ -343,27 +345,54 @@ export default {
}); });
}, },
getOptionsList() { getOptionsList(that, formName, hasAll = true, refreshSigle) {
this.showFormData.forEach((item, index) => { if (refreshSigle) {
if (item.type === "select") { let item = that[formName].find(k => k.name == refreshSigle);
let index = that[formName].findIndex(k => k.name == refreshSigle);
console.log(item, index);
that.$set(
that[formName][index],
"optionList",
deepClone(that.baseData[item.optionsName]),
);
if (
hasAll
&& that.baseData[item.optionsName].length
&& that.baseData[item.optionsName][0][
that[formName][index].optionLabel
] !== "全部"
) {
const temp = {};
temp[that[formName][index].optionId] = "";
temp[that[formName][index].optionLabel] = "全部";
that[formName][index].optionList.unshift(temp);
}
} else {
that[formName].forEach((item, index) => {
if ( if (
this.baseData[item.optionsName].length item.type === "select"
&& this.baseData[item.optionsName][0][ && that.baseData[item.optionsName]?.length
this.showFormData[index].optionLabel
] !== "全部"
) { ) {
const temp = {}; that.$set(
temp[this.showFormData[index].optionId] = ""; that[formName][index],
temp[this.showFormData[index].optionLabel] = "全部"; "optionList",
this.baseData[item.optionsName].unshift(temp); deepClone(that.baseData[item.optionsName]),
);
if (
hasAll
&& that.baseData[item.optionsName].length
&& that.baseData[item.optionsName][0][
that[formName][index].optionLabel
] !== "全部"
) {
const temp = {};
temp[that[formName][index].optionId] = "";
temp[that[formName][index].optionLabel] = "全部";
that[formName][index].optionList.unshift(temp);
}
} }
this.$set( });
this.showFormData[index], }
"optionList",
this.baseData[item.optionsName],
);
}
});
}, },
handleSearch() { handleSearch() {
...@@ -376,7 +405,7 @@ export default { ...@@ -376,7 +405,7 @@ export default {
deliveryDate: "", deliveryDate: "",
orderCode: "", orderCode: "",
merchantName: "", merchantName: "",
putStatus: "", putStatusList: [],
shippingWarehouseName: "全部", shippingWarehouseName: "全部",
}; };
this.$refs.recordTable.refreshTable(); this.$refs.recordTable.refreshTable();
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
</template> </template>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header> <d2-table-header>
<span style="margin-right: 10px"> <span style="margin-right: 10px">
<auth-button category="Button" :show-btn-ids="['9090407']" /> <auth-button category="Button" :show-btn-ids="['9090407']" />
</span> </span>
...@@ -42,6 +43,18 @@ ...@@ -42,6 +43,18 @@
@searchChange="searchChange" @searchChange="searchChange"
@selectionTable="handleSelectionTable" @selectionTable="handleSelectionTable"
@setTableFinishFun="setTableFinishFun"> @setTableFinishFun="setTableFinishFun">
<template #uploadFileUrls="scope">
<div v-if="scope.scope.uploadFileUrl">
<el-image fit="fill"
:preview-src-list="scope.scope.uploadFileUrls.split(',')"
:src="scope.scope.uploadFileUrls.split(',')[0]"
style="width: 36px; height: 36px;">
</el-image>
</div>
<div v-else>
--
</div>
</template>
<template #upgradeGoodsName="scope"> <template #upgradeGoodsName="scope">
<div> <div>
<img v-if="scope.scope.refundStatus == 'Y'" <img v-if="scope.scope.refundStatus == 'Y'"
...@@ -364,6 +377,7 @@ import { ...@@ -364,6 +377,7 @@ import {
distributionStatusOptions, distributionStatusOptions,
purchasingPatternOptions, purchasingPatternOptions,
rejectNodeOptions, rejectNodeOptions,
signStatusType,
} from "./constant"; } from "./constant";
// import { limitPrice } from '@/common/format' // import { limitPrice } from '@/common/format'
export default { export default {
...@@ -375,6 +389,11 @@ export default { ...@@ -375,6 +389,11 @@ export default {
}, },
data() { data() {
return { return {
picOptions: {
width: "138px",
height: "54px",
isClose: false,
},
editVisible: false, editVisible: false,
editTableList: [], editTableList: [],
allocateVisible: false, allocateVisible: false,
...@@ -537,6 +556,7 @@ export default { ...@@ -537,6 +556,7 @@ export default {
reviewedTimeStr: "", reviewedTimeStr: "",
shipper: "", shipper: "",
deliveryDateStr: "", deliveryDateStr: "",
signStatusList: [],
}, },
tableSearchForm: {}, tableSearchForm: {},
tableData: [], tableData: [],
...@@ -647,6 +667,16 @@ export default { ...@@ -647,6 +667,16 @@ export default {
isClear: true, isClear: true,
// pickerOptions: "rangePickerOptions" // pickerOptions: "rangePickerOptions"
}, },
{
label: "签收状态",
name: "signStatusList",
type: "select",
multiple: true,
optionList: [],
optionId: "confId",
optionLabel: "confName",
optionsName: "signStatusType",
},
], ],
selectedList: [], selectedList: [],
getListApi: getPurchaseOrderShipmentList, getListApi: getPurchaseOrderShipmentList,
...@@ -796,6 +826,25 @@ export default { ...@@ -796,6 +826,25 @@ export default {
}, },
}, },
{ {
label: "签收状态",
prop: "deliveryStatus",
formatter: (cellValue) => {
// 1:未发货,2全部发货,3部分发货,4结束发货
return (
signStatusType.find(
item => item.confId == cellValue.signStatus,
)?.confName || "-"
);
},
className: (cellValue) => {
return {
2: "greenSpot",
1: "yellowSpot",
0: "redSpot",
}[cellValue.signStatus];
},
},
{
label: "订单状态", label: "订单状态",
prop: "status", prop: "status",
formatter: (cellValue) => { formatter: (cellValue) => {
...@@ -819,6 +868,12 @@ export default { ...@@ -819,6 +868,12 @@ export default {
}, },
}, },
{ {
label: "凭证",
prop: "uploadFileUrls",
width: "138px",
addHtml: "uploadFileUrls",
},
{
label: "审核人", label: "审核人",
prop: "reviewedBy", prop: "reviewedBy",
formatter: (cellValue) => { formatter: (cellValue) => {
...@@ -869,6 +924,7 @@ export default { ...@@ -869,6 +924,7 @@ export default {
distributionStatusOptions: deepClone(distributionStatusOptions), distributionStatusOptions: deepClone(distributionStatusOptions),
rejectNodeOptions: deepClone(rejectNodeOptions), rejectNodeOptions: deepClone(rejectNodeOptions),
goodsTypeList: [], goodsTypeList: [],
signStatusType: deepClone(signStatusType),
}, },
paramsObj: {}, paramsObj: {},
dialogData: { dialogData: {
...@@ -907,7 +963,10 @@ export default { ...@@ -907,7 +963,10 @@ export default {
mounted() { mounted() {
this.getCategory(); this.getCategory();
this.getOptionsList("showFormData");
this.getOptionsList("showFormData", true, "deliveryStatus");
this.getOptionsList("showFormData", true, "distributionStatus");
this.getOptionsList("showFormData", false, "signStatusList");
}, },
methods: { methods: {
...@@ -941,7 +1000,8 @@ export default { ...@@ -941,7 +1000,8 @@ export default {
// 获取全部类目 屏蔽服务商自建类目 // 获取全部类目 屏蔽服务商自建类目
getAllCategory({ categoryTypeList: this.selfBuildGoodsType, pageSize: 9999, currentPage: 1 }).then((res) => { getAllCategory({ categoryTypeList: this.selfBuildGoodsType, pageSize: 9999, currentPage: 1 }).then((res) => {
this.baseData.goodsTypeList = res?.list || []; this.baseData.goodsTypeList = res?.list || [];
this.getOptionsList("showFormData"); // this.getOptionsList("showFormData");
this.getOptionsList("showFormData", true, "goodsType");
}); });
}, },
deliveryNumberInput(event, index) { deliveryNumberInput(event, index) {
...@@ -1453,4 +1513,14 @@ export default { ...@@ -1453,4 +1513,14 @@ export default {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
} }
.uploadFileUrl-preview {
width: 138px;
height: 54px;
::v-deep .photo-activity {
width: 100%;
height: 100%;
object-fit: contain;
position: static !important;
}
}
</style> </style>
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: "出入库时间", label: "出入库时间",
prop: "flowTime", prop: "operateTime",
width: 150, width: 150,
}, },
{ {
...@@ -234,6 +234,11 @@ export default { ...@@ -234,6 +234,11 @@ export default {
label: "操作人", label: "操作人",
prop: "operator", prop: "operator",
}, },
{
label: "操作时间",
prop: "flowTime",
width: 150,
},
], ],
}, },
// 基本数据 // 基本数据
......
...@@ -216,10 +216,10 @@ export default { ...@@ -216,10 +216,10 @@ export default {
tableOption: true, tableOption: true,
tableColumns: [{ tableColumns: [{
label: "出库时间", label: "出库时间",
prop: "reduceDate", prop: "createdDate",
width: "150px", width: "150px",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.reduceDate ? Util.dateFormate(cellValue.reduceDate, "YYYY-MM-DD HH:mm:ss") : ""; return cellValue.createdDate ? Util.dateFormate(cellValue.createdDate, "YYYY-MM-DD HH:mm:ss") : "";
}, },
}, { }, {
label: "商品名称", label: "商品名称",
...@@ -309,6 +309,13 @@ export default { ...@@ -309,6 +309,13 @@ export default {
prop: "updatedUserName", prop: "updatedUserName",
width: "100px", width: "100px",
}, { }, {
label: "操作时间",
prop: "reduceDate",
width: 150,
formatter: (cellValue) => {
return cellValue.reduceDate ? Util.dateFormate(cellValue.reduceDate, "YYYY-MM-DD HH:mm:ss") : "";
},
}, {
label: "最后操作时间", label: "最后操作时间",
prop: "updatedDate", prop: "updatedDate",
width: "150px", width: "150px",
......
<!-- 库存明细弹窗 --> <!-- 库存明细弹窗 -->
<template> <template>
<d2-dialog title="库存明细" :is-visible="dialogVisible" class="stockMonthDailog" width="40%" :no-cancel="true" <d2-dialog btn-ok-label="关闭"
btn-ok-label="关闭" @closeDialog="handleClose" @confirmDialog="handleClose"> class="stockMonthDailog"
<div> :is-visible="dialogVisible"
<div class="d2-container-content"> :no-cancel="true"
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchForm" :table-params="tableParams"> title="库存明细"
</d2-table> width="40%"
</div> @closeDialog="handleClose"
</div> @confirmDialog="handleClose">
</d2-dialog> <div>
<div class="d2-container-content">
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchForm"
:table-params="tableParams">
</d2-table>
</div>
</div>
</d2-dialog>
</template> </template>
<script> <script>
import { mapActions, mapState } from 'vuex' import { merchantShopGoodsStockPage } from "@api/stockManage";
import { merchantShopGoodsStockPage } from '@api/stockManage' import { mapActions, mapState } from "vuex";
import { baseConfig } from '@/main' import { baseConfig } from "@/main";
export default { export default {
name: 'StockDetailDialog', name: "StockDetailDialog",
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: baseConfig.membraneTypeList,
searchForm: {
upgradeGoodsId: '',
yqMerchantId: ''
},
getListApi: merchantShopGoodsStockPage,
tableData: [],
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
// tableOption: false,
tableColumns: [
{
label: '门店',
prop: 'merchantName',
width: '200px'
},
{
label: '当前库存',
prop: 'stock',
// width: ''
formatter: (cellValue) => {
return (cellValue.stock || cellValue.stock == 0) ? parseFloat(cellValue.stock).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-'
}
},
{
label: '膜卷号',
prop: 'filmRollNo',
formatter: (cellValue) => {
return cellValue?.filmRollNo || '-'
}
}
]
}
}
},
props: { props: {
visible: { visible: {
type: Boolean, type: Boolean,
default: false default: false,
}, },
recordInfo: { recordInfo: {
type: Object, type: Object,
default: () => { } default: () => { },
} },
}, },
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: baseConfig.membraneTypeList,
searchForm: {
upgradeGoodsId: "",
yqMerchantId: "",
},
getListApi: merchantShopGoodsStockPage,
tableData: [],
tableParams: {
btnId: new Date().getTime() + Number.parseInt(Math.random() * 1000),
listName: "list",
// tableOption: false,
tableColumns: [
{
label: "门店",
prop: "merchantName",
width: "200px",
},
{
label: "当前库存",
prop: "stock",
// width: ''
formatter: (cellValue) => {
return (cellValue.stock || cellValue.stock == 0) ? Number.parseFloat(cellValue.stock).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? "米" : "件") : "-";
},
},
{
label: "膜卷号",
prop: "filmRollNo",
formatter: (cellValue) => {
return cellValue?.filmRollNo || "-";
},
},
],
},
};
},
computed: { computed: {
dialogVisible: { dialogVisible: {
get() { get() {
return this.visible return this.visible;
}, },
set(val) { set(val) {
this.$emit('update:visible', val) this.$emit("update:visible", val);
} },
} },
}, },
mounted() { mounted() {
if (this.recordInfo) { if (this.recordInfo) {
this.searchForm.yqMerchantId = this.recordInfo.yqMerchantId this.searchForm.yqMerchantId = this.recordInfo.yqMerchantId;
this.searchForm.upgradeGoodsId = this.recordInfo.upgradeGoodsId this.searchForm.upgradeGoodsId = this.recordInfo.upgradeGoodsId;
} this.searchForm.queryDate = this.recordInfo.queryDate ? this.recordInfo.queryDate : "";
}, }
},
methods: { methods: {
...mapActions({ ...mapActions({
get: 'd2admin/base/get', get: "d2admin/base/get",
close: 'd2admin/page/close' close: "d2admin/page/close",
}), }),
// beforeSearchFn() { // beforeSearchFn() {
// return new Promise(resolve => { // return new Promise(resolve => {
// this.searchFormSearch = deepClone(this.searchForm) // this.searchFormSearch = deepClone(this.searchForm)
// resolve() // resolve()
// }) // })
// }, // },
chooseYear() { chooseYear() {
this.getList() this.getList();
}, },
// getList() { // getList() {
// var params = deepClone(this.searchForm) // var params = deepClone(this.searchForm)
// getReportByGoods(params).then(res => { // getReportByGoods(params).then(res => {
// this.tableData = res // this.tableData = res
// }) // })
// }, // },
handleClose() { handleClose() {
// this.$emit('dialogClose') // this.$emit('dialogClose')
this.dialogVisible = false this.dialogVisible = false;
} },
}
}
},
};
</script> </script>
<style scoped> <style scoped>
.count-txt { .count-txt {
font-weight: 700; font-weight: 700;
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.stockMonthDailog .el-dialog { .stockMonthDailog .el-dialog {
margin-top: 20vh !important; margin-top: 20vh !important;
min-width: 700px; min-width: 700px;
} }
.stockMonthDailog .btn-tips img { .stockMonthDailog .btn-tips img {
width: 18px; width: 18px;
height: 15px; height: 15px;
margin-right: 9px; margin-right: 9px;
vertical-align: bottom; vertical-align: bottom;
} }
.stockMonthDailog .btn-tips { .stockMonthDailog .btn-tips {
display: inline-block; display: inline-block;
font-size: 12px; font-size: 12px;
height: 14px; height: 14px;
line-height: 14px; line-height: 14px;
background-color: #fff2e5; background-color: #fff2e5;
color: #999999; color: #999999;
margin-right: 24px; margin-right: 24px;
padding: 6.5px 10px; padding: 6.5px 10px;
} }
.show-search { .show-search {
margin-left: -65px; margin-left: -65px;
} }
</style> </style>
...@@ -88,6 +88,7 @@ export default { ...@@ -88,6 +88,7 @@ export default {
yqMerchantId: "", yqMerchantId: "",
goodsType: "", goodsType: "",
goodsSeries: "", goodsSeries: "",
queryDate: "",
}, },
searchFormSearch: {}, searchFormSearch: {},
searchSelectObj: { searchSelectObj: {
...@@ -136,6 +137,14 @@ export default { ...@@ -136,6 +137,14 @@ export default {
type: "input", type: "input",
maxlength: "20", maxlength: "20",
isClear: true, isClear: true,
}, {
label: "选择日期",
name: "queryDate",
type: "datePicker",
dateType: "date",
isClear: true,
placeholder: "请选择",
pickerOptions: "stockQueryDatePickerOptions",
}], }],
getListApi: getMerchantGoodsStockMonthReport, getListApi: getMerchantGoodsStockMonthReport,
tableParams: { tableParams: {
...@@ -252,6 +261,9 @@ export default { ...@@ -252,6 +261,9 @@ export default {
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve) => { return new Promise((resolve) => {
this.searchFormSearch = deepClone(this.searchForm); this.searchFormSearch = deepClone(this.searchForm);
if (this.searchFormSearch.queryDate) {
this.searchFormSearch.queryDate = Util.dateFormate(this.searchFormSearch.queryDate, "YYYY-MM-DD") + " 23:59:59";
}
this.searchFormSearch.dataMonth = Util.dateFormate(new Date(), "YYYY-MM"); this.searchFormSearch.dataMonth = Util.dateFormate(new Date(), "YYYY-MM");
resolve(); resolve();
...@@ -282,6 +294,7 @@ export default { ...@@ -282,6 +294,7 @@ export default {
yqMerchantId: "", yqMerchantId: "",
goodsType: "", goodsType: "",
goodsSeries: "", goodsSeries: "",
queryDate: "",
}; };
this.$refs.recordTable.refreshTable(); this.$refs.recordTable.refreshTable();
this.stockMonthReportCount(); this.stockMonthReportCount();
...@@ -328,7 +341,10 @@ export default { ...@@ -328,7 +341,10 @@ export default {
}, },
handleDetail(row) { handleDetail(row) {
this.recordInfo = row; this.recordInfo = row;
console.log(row, "row"); this.recordInfo = {
...this.recordInfo,
queryDate: this.searchForm.queryDate ? Util.dateFormate(this.searchForm.queryDate, "YYYY-MM-DD") + " 23:59:59" : "",
};
this.stockDetailDialogVisible = true; this.stockDetailDialogVisible = true;
}, },
dialogClose(flag) { dialogClose(flag) {
......
<!-- 运营管理 --> <!-- 运营管理 -->
<template> <template>
<div class="list-wrap"> <div class="list-wrap">
<div class="header" slot="header"> <div slot="header" class="header">
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane <el-tab-pane v-for="(item, index) in tabPaneList"
v-for="(item, index) in tabPaneList" :key="index"
:label="item.label" :label="item.label"
:name="item.name" :name="item.name">
:key="index" </el-tab-pane>
> </el-tabs>
</el-tab-pane> <components :is="tabName" :scene-type="activeName"></components>
</el-tabs> </div>
<components :is="tabName" :scene-type="activeName"></components>
</div> </div>
</div>
</template> </template>
<script> <script>
import contract from "./components/contract/index.vue" import contract from "./components/contract/index.vue";
import sunshine from "./components/sunshine/index.vue" import sunshine from "./components/sunshine/index.vue";
export default { export default {
components: { components: {
contract, Contract: contract,
sunshine Sunshine: sunshine,
}, },
data() { data() {
return { return {
activeName: "0", activeName: "0",
tabPaneList: [ tabPaneList: [
{ {
label: "合同管理", label: "合同管理",
name: "0" name: "0",
}, },
{ {
label: "阳光激励", label: "阳光激励",
name: "1" name: "1",
} },
], ],
tabName: "contract" tabName: "contract",
} };
}, },
mounted() { watch: {},
if (this.$route.params.tabPane) { mounted() {
this.activeName = this.$route.params.tabPane if (this.$route.params.tabPane) {
this.tabName = this.$route.params.tabLabel this.activeName = this.$route.params.tabPane;
} this.tabName = this.$route.params.tabLabel;
}, }
watch: {}, },
methods: { methods: {
handleClick() { handleClick() {
const arr = { const arr = {
0: "contract", 0: "contract",
1: "sunshine" 1: "sunshine",
} };
this.tabName = arr[+this.activeName] this.tabName = arr[+this.activeName];
} },
} },
} };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.list-wrap { .list-wrap {
padding: 0 26px 0 20px; padding: 0 26px 0 20px;
.header { .header {
::v-deep .el-tabs__header { ::v-deep .el-tabs__header {
margin: 0; margin: 0;
.el-tabs__nav-wrap { .el-tabs__nav-wrap {
padding: 0 20px; padding: 0 20px;
} }
.el-tabs__nav-wrap { .el-tabs__nav-wrap {
height: 54px; height: 54px;
line-height: 54px; line-height: 54px;
font-size: 16px; font-size: 16px;
} }
} }
} }
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!