|
|
@@ -23,6 +23,7 @@ Page({
|
|
|
tableData: [],
|
|
|
flgDefaultItem:[],
|
|
|
tableDataTemp: [],
|
|
|
+ backFlag:true,
|
|
|
buttonSaveList: [{ code: 'add', title: mixins.$t('save'), width: '120rpx',}],
|
|
|
},
|
|
|
/**
|
|
|
@@ -80,9 +81,9 @@ Page({
|
|
|
* @date : 2024/1/23 9:16
|
|
|
*/
|
|
|
getData(params) {
|
|
|
- if (this.data.formType == mixins.$t('warehouseSys')) { //仓库档案
|
|
|
+ if (this.data.formType === mixins.$t('warehouseSys')) { //仓库档案
|
|
|
return this.excute(this.data.warehouseService, this.data.warehouseService.selectByCond, params);
|
|
|
- } else if (this.data.formType == mixins.$t('saleChannelSys')) { //销售渠道
|
|
|
+ } else if (this.data.formType === mixins.$t('saleChannelSys')) { //销售渠道
|
|
|
return this.excute(this.data.saleChannelService, this.data.saleChannelService.selectByCond, params);
|
|
|
} else {
|
|
|
//基础数据接口
|
|
|
@@ -104,9 +105,9 @@ Page({
|
|
|
let tableDataIds = []
|
|
|
let displayNo = 0 //序号
|
|
|
tableData.forEach(res => {
|
|
|
- if (this.data.formType == mixins.$t('warehouse')) { //仓库档案
|
|
|
+ if (this.data.formType === mixins.$t('warehouseSys')) { //仓库档案
|
|
|
tableDataIds.push({ id: res.whId, displayNo: displayNo += 1 })
|
|
|
- } else if (this.data.formType == mixins.$t('saleChannel')) { //销售渠道
|
|
|
+ } else if (this.data.formType === mixins.$t('saleChannelSys')) { //销售渠道
|
|
|
tableDataIds.push({ id: res.channelId, displayNo: displayNo += 1 })
|
|
|
} else { //基础资料
|
|
|
tableDataIds.push({ id: res.dataId, displayNo: displayNo += 1 })
|
|
|
@@ -122,9 +123,9 @@ Page({
|
|
|
* @date : 2024/1/23 9:16
|
|
|
*/
|
|
|
saveData() {
|
|
|
- if (this.data.formType == mixins.$t('warehouse')) { //仓库档案
|
|
|
+ if (this.data.formType === mixins.$t('warehouseSys')) { //仓库档案
|
|
|
return this.excute(this.data.warehouseService, this.data.warehouseService.updateBatchWarehouseDisplayNo, this.data.params);
|
|
|
- } else if (this.data.formType == mixins.$t('saleChannel')) { //销售渠道
|
|
|
+ } else if (this.data.formType === mixins.$t('saleChannelSys')) { //销售渠道
|
|
|
return this.excute(this.data.saleChannelService, this.data.saleChannelService.updateBatchSaleChannelDisplayNo, this.data.params);
|
|
|
} else {
|
|
|
//基础数据接口
|