|
|
@@ -1,7 +1,15 @@
|
|
|
+/*******************************************************************************
|
|
|
+ * Copyright(c) 2022 dongke All rights reserved. / Confidential
|
|
|
+ * 类的信息:
|
|
|
+ * 1.程序名称:选品
|
|
|
+ * 编辑履历:
|
|
|
+ * 作者 日期 版本 修改内容
|
|
|
+ * 于继渤 2024-1-23 1.00 选品
|
|
|
+ *******************************************************************************/
|
|
|
const mixins = require('@/mixins/index.js')
|
|
|
-const api = require('@/utils/api.js');
|
|
|
+import Dialog from '@/dist/dialog/dialog.js';
|
|
|
+import { toThousandCents } from '@/utils/common';
|
|
|
const config = require('@/config/config.js');
|
|
|
-const Constants = require('@/utils/Constants');
|
|
|
const util = require('@/utils/util.js')
|
|
|
const app = getApp()
|
|
|
Page({
|
|
|
@@ -10,286 +18,358 @@ Page({
|
|
|
* 页面的初始数据
|
|
|
*/
|
|
|
data: {
|
|
|
- tableData: [],
|
|
|
- showSearch: false,
|
|
|
- initSearchFlag: true,
|
|
|
- buttonSaveList: [
|
|
|
- { code: 'add', title: mixins.$t('costCheck'), },
|
|
|
- ],
|
|
|
- contentSaveList: [{
|
|
|
- code: 'flag',
|
|
|
- title: mixins.$t("allChoose"),
|
|
|
- type: 'checkbox'
|
|
|
- },],
|
|
|
- cardList: ['main'],
|
|
|
- refreshByAdd:true,
|
|
|
- contentObj: {
|
|
|
- main: [
|
|
|
- { code: 'intoType', name: 'intoType', type: 'chooseAndStr', required: true, title: mixins.$t('intType'), urlKey: 'chooseIntType' },
|
|
|
- { code: 'supName', type: 'str', required: false, title: mixins.$t('supplier') },
|
|
|
- { code: 'enterWhDate', name: 'enterWhDate', type: 'dateDay', required: false },
|
|
|
- { code: 'createTime', name: 'createTime', type: 'dateDay', required: false },
|
|
|
- { code: 'staffId', name: 'staffName', type: 'choose', required: false, title: mixins.$t('staffId'), urlKey: 'chooseStaff' },
|
|
|
- { code: 'orgId', name: 'orgName', type: 'choose', required: false, title: mixins.$t('orgTwo'), urlKey: 'chooseOrg' }
|
|
|
- ]
|
|
|
- },
|
|
|
- // 查询条件
|
|
|
- searchContent: [{
|
|
|
- code: 'intoDate',
|
|
|
- title: mixins.$t('currentMonth'),//本月',
|
|
|
- defaultValue: 2,
|
|
|
- searchType: Constants.searchType.date
|
|
|
- },
|
|
|
- {
|
|
|
- code: 'staff',
|
|
|
- title: mixins.$t("staffId"),
|
|
|
- dropType: 'staff'
|
|
|
- },
|
|
|
- {
|
|
|
- code: 'org',
|
|
|
- title: mixins.$t("orgId"),
|
|
|
- dropType: 'org'
|
|
|
- },
|
|
|
- {
|
|
|
- code: 'choose',
|
|
|
- title: mixins.$t('choose'),//'筛选',
|
|
|
- searchType: Constants.searchType.pick
|
|
|
+ imageUrl: config.image_url + '/static/img/',
|
|
|
+ routeObjName: 'goodsSku',
|
|
|
+ dataItem: '{}',
|
|
|
+ formData: '{}',
|
|
|
+ choosedGoodsList: [],
|
|
|
+ commonService: app.globalData['commonService'],
|
|
|
+ inboundItemService: app.globalData['inboundItemService'],
|
|
|
+ typeList: [{
|
|
|
+ brandName: '全部品牌'
|
|
|
}],
|
|
|
- // 查询条件-筛选
|
|
|
- pullMenuList: [
|
|
|
- {
|
|
|
- code: 'intoStatus',
|
|
|
- pullType: 'mSelect',
|
|
|
- typeName: 'intoStatus'
|
|
|
- },
|
|
|
- {
|
|
|
- code: 'staffName',
|
|
|
- },
|
|
|
- {
|
|
|
- code: 'orgName',
|
|
|
- },
|
|
|
- {
|
|
|
- code: 'supName',
|
|
|
- },
|
|
|
- {
|
|
|
- code: 'intoDate',
|
|
|
- dataType: 'date'
|
|
|
- },
|
|
|
- {
|
|
|
- code: 'viewNoCostDocuments',
|
|
|
- dataType: 'checkbox'
|
|
|
- },
|
|
|
- ],
|
|
|
- statusImage: 'verified.png',
|
|
|
- // 内容一定
|
|
|
- content: [
|
|
|
- {
|
|
|
- left: { tag: 'brandName', title: 'skuModel', type: 'title' },
|
|
|
- },
|
|
|
- {
|
|
|
- left: { name: 'skuName', },
|
|
|
- },
|
|
|
- {
|
|
|
- left: { name: 'priceInto', type: 'price' },
|
|
|
- right: { name: 'intoQty', type: 'qty' }
|
|
|
- },
|
|
|
- {
|
|
|
- left: { name: 'nonStdCode', title: '色号:' },
|
|
|
- right: { name: 'whName' },
|
|
|
+ brandId: null,
|
|
|
+ active: 0,
|
|
|
+ // 确定按钮
|
|
|
+ buttonList: [{
|
|
|
+ name: 'confirm',
|
|
|
+ title: '保存'
|
|
|
+ }],
|
|
|
+ dateDefault: {
|
|
|
+ text: '本月',
|
|
|
+ value: 3
|
|
|
+ },
|
|
|
+ contentList: [],
|
|
|
+ createtimeShow: false,
|
|
|
+ backFlag: false,
|
|
|
+ navigateBackFlag: true,
|
|
|
+ topTitle: '1.本功能只更新选定时间内没成本价格的商品;2.核对对应单据成本'
|
|
|
+ },
|
|
|
|
|
|
+ /**
|
|
|
+ * @desc : 日期组件后的回调
|
|
|
+ * @author : 周兴
|
|
|
+ * @date : 2024/1/26 12:16
|
|
|
+ */
|
|
|
+ dateCommit(e) {
|
|
|
+ console.log('日期组件后的回调')
|
|
|
+ let data = e.detail.date
|
|
|
+ let code = e.detail.code
|
|
|
+ let formData = JSON.parse(this.data.formData)
|
|
|
+ formData['intoDateStart'] = data[0]
|
|
|
+ formData['intoDateEnd'] = data[1]
|
|
|
+ let dateDefault = e.detail.dateDefault
|
|
|
+ this.setData({
|
|
|
+ defaultValue: {
|
|
|
+ value: dateDefault.value,
|
|
|
+ text: dateDefault.text
|
|
|
},
|
|
|
- {
|
|
|
- left: { name: 'skuSpec', title: '规格:' },
|
|
|
- right: { name: 'seriesName', title: '系列:' },
|
|
|
- }
|
|
|
- ],
|
|
|
- contentObjList: {
|
|
|
- '已核对':
|
|
|
- [
|
|
|
- {
|
|
|
- left: { tag: 'brandName', title: 'skuModel', type: 'title' },
|
|
|
- },
|
|
|
- {
|
|
|
- left: { name: 'skuName', },
|
|
|
- },
|
|
|
- {
|
|
|
- left: { name: 'costPrice', type: 'price' },
|
|
|
- right: { name: 'intoQty', type: 'qty' }
|
|
|
- },
|
|
|
- {
|
|
|
- left: { name: 'nonStdCode', title: '色号:' },
|
|
|
- right: { name: 'whName' },
|
|
|
+ // createtimeShow: false
|
|
|
+ })
|
|
|
|
|
|
- },
|
|
|
- {
|
|
|
- left: { name: 'skuSpec', title: '规格:' },
|
|
|
- right: { name: 'seriesName', title: '系列:' },
|
|
|
- }
|
|
|
- ],
|
|
|
- '未核对':
|
|
|
- [
|
|
|
- {
|
|
|
- left: { tag: 'brandName', title: 'skuModel', type: 'title' },
|
|
|
- },
|
|
|
- {
|
|
|
- left: { name: 'skuName', },
|
|
|
- },
|
|
|
- {
|
|
|
- left: { name: 'priceInto', type: 'price' },
|
|
|
- right: { name: 'intoQty', type: 'qty' }
|
|
|
- },
|
|
|
- {
|
|
|
- left: { name: 'nonStdCode', title: '色号:' },
|
|
|
- right: { name: 'whName' },
|
|
|
+ this.setData({
|
|
|
+ formData: JSON.stringify(formData),
|
|
|
+ })
|
|
|
+ // 调取查询
|
|
|
+ this.doSearch();
|
|
|
+ if (!this.data.createtimeShow) {
|
|
|
|
|
|
- },
|
|
|
- {
|
|
|
- left: { name: 'skuSpec', title: '规格:' },
|
|
|
- right: { name: 'seriesName', title: '系列:' },
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- // 路由
|
|
|
- routeObjName: 'inboundItem',
|
|
|
- },
|
|
|
+ }
|
|
|
|
|
|
+ },
|
|
|
/**
|
|
|
- * @desc : 全选
|
|
|
- * @date : 2024/2/1 15:49
|
|
|
- * @author : 于继渤
|
|
|
- */
|
|
|
- allChoose(e) {
|
|
|
- let btnFormData = this.data.btnFormData ? JSON.parse(this.data.btnFormData) : ''
|
|
|
- let tableData = this.data.tableData
|
|
|
- tableData.forEach(res => {
|
|
|
- res.checked = btnFormData.flag
|
|
|
- })
|
|
|
+ * @desc : 打开日期
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 于继渤
|
|
|
+ */
|
|
|
+ openCreatetime() {
|
|
|
this.setData({
|
|
|
- tableData: tableData
|
|
|
+ createtimeShow: !this.data.createtimeShow
|
|
|
+ })
|
|
|
+ },
|
|
|
+ openTitle() {
|
|
|
+ let that = this
|
|
|
+ Dialog.alert({
|
|
|
+ message: that.data.topTitle,
|
|
|
+ theme: 'round-button',
|
|
|
+ confirmButtonText: '知道了'
|
|
|
+ }).then(() => {
|
|
|
+ // on close
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 反回
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 于继渤
|
|
|
+ */
|
|
|
+ onClickLeft() {
|
|
|
+ wx.navigateBack({
|
|
|
+ data: 1
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
- * @desc : 选择事件
|
|
|
- * @date : 2024/2/1 15:49
|
|
|
- * @author : 于继渤
|
|
|
- */
|
|
|
- listChoose(e) {
|
|
|
+ * @desc : 删除已选
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 于继渤
|
|
|
+ */
|
|
|
+ delChoosedGoodsItem(e) {
|
|
|
+ let index = e.currentTarget.dataset.index
|
|
|
+ let choosedGoodsList = this.data.choosedGoodsList
|
|
|
let tableData = this.data.tableData
|
|
|
- tableData[e.detail.index].checked = e.detail.checked
|
|
|
+ tableData[choosedGoodsList[index]['tableDataIndex']]['isFlgCostCheck'] = false
|
|
|
+ choosedGoodsList.splice(index, 1)
|
|
|
this.setData({
|
|
|
+ choosedGoodsList: choosedGoodsList,
|
|
|
tableData: tableData
|
|
|
})
|
|
|
},
|
|
|
/**
|
|
|
- * @desc : 核对成本跳转
|
|
|
- * @date : 2024/2/1 15:49
|
|
|
- * @author : 于继渤
|
|
|
- */
|
|
|
- toAdd() {
|
|
|
+ * @desc : 补录
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 于继渤
|
|
|
+ */
|
|
|
+ addItem(e) {
|
|
|
+ let choosedGoodsList = this.data.choosedGoodsList
|
|
|
let tableData = this.data.tableData
|
|
|
- let chooseList = []
|
|
|
- chooseList = tableData.filter(res => {
|
|
|
- return res.checked
|
|
|
- })
|
|
|
- if (chooseList.length == 0) {
|
|
|
- util.showToast('请选择一条数据');
|
|
|
+ let item = e.currentTarget.dataset.item
|
|
|
+ let index = e.currentTarget.dataset.index
|
|
|
+ if (tableData[index]['isFlgCostCheck']) {
|
|
|
+ //已经点击补录 无法再次点击
|
|
|
return
|
|
|
}
|
|
|
- let this_ = this
|
|
|
- wx.navigateTo({
|
|
|
- url: this.data.route.add.url,
|
|
|
- events: {
|
|
|
- // 回调后
|
|
|
- bindData: function (data) {
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
- },
|
|
|
- success: function (res) {
|
|
|
- // 通过eventChannel向被打开页面传送数据 TODO 测试例子url是写死的,实际中,需要从route中读取
|
|
|
- res.eventChannel.emit('params', {
|
|
|
- chooseList: chooseList
|
|
|
- })
|
|
|
- }
|
|
|
+ if (tableData[index].costPrice == 0) {
|
|
|
+ //成本价未修改 等于0 无法点击
|
|
|
+ return
|
|
|
+ }
|
|
|
+ tableData[index]['isFlgCostCheck'] = true
|
|
|
+ item.tableDataIndex = index
|
|
|
+ choosedGoodsList.push(item)
|
|
|
+ this.setData({
|
|
|
+ tableData: tableData,
|
|
|
+ choosedGoodsList: choosedGoodsList
|
|
|
})
|
|
|
},
|
|
|
- onShow(){
|
|
|
- this.searchData()
|
|
|
- },
|
|
|
+
|
|
|
/**
|
|
|
- * @desc : 选择数据源
|
|
|
- * @date : 2024/2/1 15:49
|
|
|
- * @author : 于继渤
|
|
|
- */
|
|
|
- chooseData(e) {
|
|
|
- let formData = JSON.parse(this.data.formData)
|
|
|
- let code = e.detail.code
|
|
|
- let data = e.detail.data.data
|
|
|
- if (code == "staffId") { //员工
|
|
|
- formData.staffId = data.id
|
|
|
- formData.staffName = data.name
|
|
|
- }
|
|
|
- if (code == "orgId") { //部门
|
|
|
- formData.orgId = data.id
|
|
|
- formData.orgName = data.name
|
|
|
- }
|
|
|
- if (code == "intoType") { //部门
|
|
|
- formData.intoType = data.name
|
|
|
+ * @desc : 列表成本输入
|
|
|
+ * @date : 2024/7/2 15:49
|
|
|
+ * @author : 于继渤
|
|
|
+ */
|
|
|
+ changeNumberTableBlur(e) {
|
|
|
+ console.log(e)
|
|
|
+ let inputValue = e.detail.value ? Number(e.detail.value) : 0
|
|
|
+ let index = e.currentTarget.dataset.index
|
|
|
+ let tableData = this.data.tableData
|
|
|
+ tableData[index].costPrice = inputValue
|
|
|
+ if (tableData[index].itemList && tableData[index].itemList.length > 0) {
|
|
|
+ tableData[index].itemList.forEach(res => {
|
|
|
+ res.costPrice = inputValue
|
|
|
+ res.costAmt = Number(res.intoQty * res.costPrice)
|
|
|
+ })
|
|
|
}
|
|
|
this.setData({
|
|
|
- formData: JSON.stringify(formData)
|
|
|
+ tableData: tableData
|
|
|
})
|
|
|
},
|
|
|
/**
|
|
|
- * @desc : 查询
|
|
|
- * @date : 2024/2/1 15:49
|
|
|
- * @author : 于继渤
|
|
|
- */
|
|
|
- doSearch() {
|
|
|
- let formData = JSON.parse(this.data.formData)
|
|
|
- if (!formData.intoType) {
|
|
|
- util.showToast('请输入/选择入库类型');
|
|
|
- return
|
|
|
+ * @desc : 已选入库成本输入
|
|
|
+ * @date : 2024/7/2 15:49
|
|
|
+ * @author : 于继渤
|
|
|
+ */
|
|
|
+ changeNumberBlur(e) {
|
|
|
+ let inputValue = e.detail.value ? Number(e.detail.value) : 0
|
|
|
+ let index = e.currentTarget.dataset.index
|
|
|
+ let choosedGoodsList = this.data.choosedGoodsList
|
|
|
+ choosedGoodsList[index].costPrice = inputValue
|
|
|
+ if (choosedGoodsList[index].itemList && choosedGoodsList[index].itemList.length > 0) {
|
|
|
+ choosedGoodsList[index].itemList.forEach(res => {
|
|
|
+ res.costPrice = inputValue
|
|
|
+ res.costAmt = Number(res.intoQty * res.costPrice)
|
|
|
+ })
|
|
|
}
|
|
|
this.setData({
|
|
|
- btnFormData: JSON.stringify({ flag: false }),
|
|
|
- showSearch: false
|
|
|
+ choosedGoodsList: choosedGoodsList
|
|
|
})
|
|
|
- // 重新查询
|
|
|
- this.searchData()
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
- * @desc : 重置
|
|
|
- * @date : 2024/2/1 15:49
|
|
|
- * @author : 于继渤
|
|
|
- */
|
|
|
- resetting() {
|
|
|
+ * @desc : 左侧分类切换
|
|
|
+ * @author : 于继渤
|
|
|
+ * @date : 2024/1/23 9:16
|
|
|
+ */
|
|
|
+ changeSidebar(e) {
|
|
|
+ let index = e.detail
|
|
|
+ let typeList = this.data.typeList
|
|
|
this.setData({
|
|
|
- formData: null
|
|
|
+ brandId: typeList[index].brandId
|
|
|
})
|
|
|
+ this.searchData()
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * @desc : 查询
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 于继渤
|
|
|
+ */
|
|
|
+ doSearch() {
|
|
|
+ this.searchData()
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
- * @desc : 设置查询参数
|
|
|
- * @date : 2024年3月8日
|
|
|
- * @author : 于继渤
|
|
|
- */
|
|
|
+ * @desc : 设置查询参数
|
|
|
+ * @author : 于继渤
|
|
|
+ * @date : 2024/1/23 9:16
|
|
|
+ */
|
|
|
setSearchParams(params) {
|
|
|
- if(params.intoDateStart.indexOf('/') != -1){
|
|
|
- params.intoDateStart = params.intoDateStart.replace(/\//g, '-')
|
|
|
- params.intoDateEnd = params.intoDateEnd.replace(/\//g, '-')
|
|
|
- }
|
|
|
- return params;
|
|
|
+ let formData = JSON.parse(this.data.formData)
|
|
|
+ params.intoDateStart = formData.intoDateStart ? formData.intoDateStart : null
|
|
|
+ params.intoDateEnd = formData.intoDateEnd ? formData.intoDateEnd : null
|
|
|
+ params.brandId = this.data.brandId ? this.data.brandId : null
|
|
|
+ return params
|
|
|
},
|
|
|
/**
|
|
|
- * @desc : 加载数据
|
|
|
+ * @desc : 查询
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
* @author : 于继渤
|
|
|
- * @date : 2024/1/23 9:16
|
|
|
*/
|
|
|
getData(params) {
|
|
|
+ return this.excute(this.data.inboundItemService, this.data.inboundItemService.selectCostCheckList, params);
|
|
|
+ },
|
|
|
|
|
|
- return this.excute(this.data.service, this.data.service.selectCostCheck, params);
|
|
|
+ /**
|
|
|
+ * @desc : 处理返回数据
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 于继渤
|
|
|
+ */
|
|
|
+ handleSearchData(tableData) {
|
|
|
+ console.log('处理返回数据', tableData)
|
|
|
+ if (tableData && tableData.length > 0) {
|
|
|
+ tableData.forEach(res => {
|
|
|
+ //处理具体明细
|
|
|
+ if (res.itemList) {
|
|
|
+ res.itemList = JSON.parse(res.itemList.value)
|
|
|
+ }
|
|
|
+
|
|
|
+ if (res.skuImages && res.skuImages.length > 0) {
|
|
|
+ res.skuImages.forEach(item => {
|
|
|
+ item.url = config.image_url + item.path
|
|
|
+ });
|
|
|
+ res.imagesUrl = res.skuImages[0].url
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ this.setData({
|
|
|
+ tableData: tableData
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 获取品牌
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 姜永辉
|
|
|
+ */
|
|
|
+ getGoodsBrandNoPage() {
|
|
|
+ return this.excute(this.data.commonService, this.data.commonService.getGoodsBrandNoPage, {}).then(res => {
|
|
|
+ this.setData({
|
|
|
+ typeList: this.data.typeList.concat(res.data.data)
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * @desc : 顶部切换
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 于继渤
|
|
|
+ */
|
|
|
+ changeTag(e) {
|
|
|
+ this.setData({
|
|
|
+ active: e.detail.index
|
|
|
+ })
|
|
|
+ },
|
|
|
+ selectedProduct(e) {
|
|
|
+ this.setData({
|
|
|
+ active: e.currentTarget.dataset.active
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 设置保存参数
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 于继渤
|
|
|
+ */
|
|
|
+ setParams(params) {
|
|
|
+ params = []
|
|
|
+ let choosedGoodsList = this.data.choosedGoodsList
|
|
|
+ if (choosedGoodsList.length == 0) {
|
|
|
+ // 是否弹出询问框
|
|
|
+ Dialog.alert({
|
|
|
+ message: '至少选择一条数据',
|
|
|
+ }).then(() => {
|
|
|
+ }).catch(() => {
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ //设置参数
|
|
|
+ let saveList = []
|
|
|
+ choosedGoodsList.forEach(res => {
|
|
|
+ if (res.itemList && res.itemList.length > 0) {
|
|
|
+ res.itemList.forEach(it => {
|
|
|
+ saveList.push(it)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ params = saveList
|
|
|
+ return params
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * @desc : 保存数据服务
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 于继渤
|
|
|
+ */
|
|
|
+ saveData() {
|
|
|
+ return this.excute(this.data.inboundItemService, this.data.inboundItemService.costCheckOk, this.data.params);
|
|
|
+ },
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 处理保存后续事件
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 于继渤
|
|
|
+ */
|
|
|
+ handleSaveData() {
|
|
|
+ //清空数据
|
|
|
+ this.setData({
|
|
|
+ choosedGoodsList: []
|
|
|
+ })
|
|
|
+ this.searchData()
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * @desc : 初始化
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 于继渤
|
|
|
+ */
|
|
|
+ onLoad() {
|
|
|
+ this.getGoodsBrandNoPage()
|
|
|
+ let _this = this;
|
|
|
+ wx.getSystemInfo({
|
|
|
+ success: function (res) {
|
|
|
+ _this.setData({
|
|
|
+ gradeCode: app.globalData.company.gradeCode,
|
|
|
+ windowHeight: res.windowHeight,
|
|
|
+ windowWidth: res.windowWidth
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
})
|