|
@@ -1,7 +1,6 @@
|
|
|
// package-basic-data/pages/test/add/add.js
|
|
// package-basic-data/pages/test/add/add.js
|
|
|
const mixins = require('@/mixins/index.js')
|
|
const mixins = require('@/mixins/index.js')
|
|
|
const utils = require('@/utils/util');
|
|
const utils = require('@/utils/util');
|
|
|
-import Dialog from '@/dist/dialog/dialog.js';
|
|
|
|
|
const app = getApp()
|
|
const app = getApp()
|
|
|
const Constants = require('@/utils/Constants');
|
|
const Constants = require('@/utils/Constants');
|
|
|
Page({
|
|
Page({
|
|
@@ -10,7 +9,7 @@ Page({
|
|
|
* 页面的初始数据
|
|
* 页面的初始数据
|
|
|
*/
|
|
*/
|
|
|
data: {
|
|
data: {
|
|
|
- controlFlags:{choosewhFlag:true,chooseWhByUserDefault:true,choosewhReadonly:false,paramsByWhId:true,sourcePage:'inventory-adjustment'},
|
|
|
|
|
|
|
+ controlFlags: { choosewhFlag: true, chooseWhByUserDefault: true, choosewhReadonly: false, paramsByWhId: true, sourcePage: 'inventory-adjustment' },
|
|
|
draftFlag: false,
|
|
draftFlag: false,
|
|
|
purIdArray: '', //来源单id
|
|
purIdArray: '', //来源单id
|
|
|
// 弹出按钮
|
|
// 弹出按钮
|
|
@@ -29,99 +28,100 @@ Page({
|
|
|
rightCode: 'invQty'
|
|
rightCode: 'invQty'
|
|
|
}],
|
|
}],
|
|
|
popContent: [{
|
|
popContent: [{
|
|
|
- code: 'itemQty',
|
|
|
|
|
- type: 'step',
|
|
|
|
|
- title: mixins.$t('countedQuantity'), //'数量',
|
|
|
|
|
- required: true
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ code: 'itemQty',
|
|
|
|
|
+ type: 'step',
|
|
|
|
|
+ title: mixins.$t('countedQuantity'), //'数量',
|
|
|
|
|
+ required: true
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
- {
|
|
|
|
|
- code: 'oWhId',
|
|
|
|
|
- name: 'oWhName',
|
|
|
|
|
- title: '源库区', //'盘亏原因',
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'oWhId',
|
|
|
|
|
+ name: 'oWhName',
|
|
|
|
|
+ title: '源库区', //'盘亏原因',
|
|
|
|
|
+ type: 'choose',
|
|
|
|
|
+ urlKey: 'selectInventorySku'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'whId',
|
|
|
|
|
+ name: 'whName',
|
|
|
|
|
+ title: '目标库区', //'盘亏原因',
|
|
|
|
|
+ type: 'choose',
|
|
|
|
|
+ urlKey: 'chooseWh'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'nonStdCode',
|
|
|
|
|
+ title: mixins.$t("goodsBatch"), //'商品批次',
|
|
|
|
|
+ type: 'str',
|
|
|
|
|
+ readonly: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'oNonStdCode',
|
|
|
|
|
+ name: 'oNonStdName',
|
|
|
|
|
+ title: '源批号', // '仓库',
|
|
|
|
|
+ type: 'str',
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'nonStdCode',
|
|
|
|
|
+ name: 'nonStdName',
|
|
|
|
|
+ title: '目标批号', //'盘亏原因',
|
|
|
|
|
+ type: 'str',
|
|
|
|
|
+ urlKey: 'openingReason'
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ ],
|
|
|
|
|
+
|
|
|
|
|
+ cardList: [{
|
|
|
|
|
+ name: 'main',
|
|
|
|
|
+ title: mixins.$t("inventoryInformation"), //'盘点信息
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: 'items',
|
|
|
|
|
+ title: mixins.$t("goodsDetail"), //'商品明细',
|
|
|
|
|
+ info: '(' + mixins.$t("warehousingProcessing") + ')',
|
|
|
|
|
+ color: '#E4002B',
|
|
|
|
|
+ displayNum: 2
|
|
|
|
|
+ }, {
|
|
|
|
|
+ name: 'other',
|
|
|
|
|
+ title: mixins.$t("otherInfo"), // '其他信息'
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+ contentObj: {
|
|
|
|
|
+ main: [{
|
|
|
|
|
+ code: 'transferType',
|
|
|
|
|
+ name: 'transferTypeName',
|
|
|
|
|
+ title: "调整类型", //mixins.$t("inventoryEmployees"),
|
|
|
|
|
+ type: 'choose',
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ clearItemFlag:true,
|
|
|
|
|
+ urlKey: 'chooseAdjustmentType',
|
|
|
|
|
+ }, {
|
|
|
|
|
+ code: 'staffId',
|
|
|
|
|
+ name: 'staffName',
|
|
|
|
|
+ title: '责任人', //'盘点员工',
|
|
|
|
|
+ type: 'choose',
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ urlKey: 'chooseStaff'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ code: 'orgId',
|
|
|
|
|
+ name: 'orgName',
|
|
|
|
|
+ title: '部门', //'盘点部门',
|
|
|
type: 'choose',
|
|
type: 'choose',
|
|
|
- urlKey: 'selectInventorySku'
|
|
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ urlKey: 'chooseOrg'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
code: 'whId',
|
|
code: 'whId',
|
|
|
name: 'whName',
|
|
name: 'whName',
|
|
|
- title: '目标库区', //'盘亏原因',
|
|
|
|
|
type: 'choose',
|
|
type: 'choose',
|
|
|
|
|
+ title: "目标仓库", //'盘点仓库'
|
|
|
urlKey: 'chooseWh'
|
|
urlKey: 'chooseWh'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
code: 'nonStdCode',
|
|
code: 'nonStdCode',
|
|
|
- title: mixins.$t("goodsBatch"), //'商品批次',
|
|
|
|
|
- type: 'str',
|
|
|
|
|
- readonly: true,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- code: 'oNonStdCode',
|
|
|
|
|
- name: 'oNonStdName',
|
|
|
|
|
- title: '源批号', // '仓库',
|
|
|
|
|
- type: 'str',
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- code: 'nonStdCode',
|
|
|
|
|
name: 'nonStdName',
|
|
name: 'nonStdName',
|
|
|
- title: '目标批号', //'盘亏原因',
|
|
|
|
|
type: 'str',
|
|
type: 'str',
|
|
|
- urlKey: 'openingReason'
|
|
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
- ],
|
|
|
|
|
-
|
|
|
|
|
- cardList: [{
|
|
|
|
|
- name: 'main',
|
|
|
|
|
- title: mixins.$t("inventoryInformation"), //'盘点信息
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: 'items',
|
|
|
|
|
- title: mixins.$t("goodsDetail"), //'商品明细',
|
|
|
|
|
- info: '(' + mixins.$t("warehousingProcessing") + ')',
|
|
|
|
|
- color: '#E4002B',
|
|
|
|
|
- displayNum: 2
|
|
|
|
|
- }, {
|
|
|
|
|
- name: 'other',
|
|
|
|
|
- title: mixins.$t("otherInfo"), // '其他信息'
|
|
|
|
|
|
|
+ title: "目标批号", //'盘点仓库'
|
|
|
}
|
|
}
|
|
|
- ],
|
|
|
|
|
- contentObj: {
|
|
|
|
|
- main: [{
|
|
|
|
|
- code: 'transferType',
|
|
|
|
|
- name: 'transferTypeName',
|
|
|
|
|
- title: "调整类型", //mixins.$t("inventoryEmployees"),
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- required: true,
|
|
|
|
|
- urlKey: 'chooseAdjustmentType',
|
|
|
|
|
- }, {
|
|
|
|
|
- code: 'staffId',
|
|
|
|
|
- name: 'staffName',
|
|
|
|
|
- title: '责任人', //'盘点员工',
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- required: true,
|
|
|
|
|
- urlKey: 'chooseStaff'
|
|
|
|
|
- }, {
|
|
|
|
|
- code: 'orgId',
|
|
|
|
|
- name: 'orgName',
|
|
|
|
|
- title: '部门', //'盘点部门',
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- required: true,
|
|
|
|
|
- urlKey: 'chooseOrg'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- code: 'whId',
|
|
|
|
|
- name: 'whName',
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- title: "目标仓库", //'盘点仓库'
|
|
|
|
|
- urlKey: 'chooseWh'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- code: 'nonStdCode',
|
|
|
|
|
- name: 'nonStdName',
|
|
|
|
|
- type: 'str',
|
|
|
|
|
- title: "目标批号", //'盘点仓库'
|
|
|
|
|
- }
|
|
|
|
|
],
|
|
],
|
|
|
items: [],
|
|
items: [],
|
|
|
other: [{
|
|
other: [{
|
|
@@ -137,7 +137,6 @@ Page({
|
|
|
},
|
|
},
|
|
|
// 路由
|
|
// 路由
|
|
|
routeObjName: 'inventoryAdjustment',
|
|
routeObjName: 'inventoryAdjustment',
|
|
|
-
|
|
|
|
|
// inboundProcessingService: app.globalData['inboundProcessingService'],
|
|
// inboundProcessingService: app.globalData['inboundProcessingService'],
|
|
|
},
|
|
},
|
|
|
/*
|
|
/*
|
|
@@ -159,22 +158,18 @@ Page({
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
/*
|
|
/*
|
|
|
* @desc : 绑定数据
|
|
* @desc : 绑定数据
|
|
|
* @author : 王英杰
|
|
* @author : 王英杰
|
|
|
* @date : 2024年3月12日
|
|
* @date : 2024年3月12日
|
|
|
*/
|
|
*/
|
|
|
chooseData(e) {
|
|
chooseData(e) {
|
|
|
-
|
|
|
|
|
- console.log("t", e, this.data.formData);
|
|
|
|
|
let formData = JSON.parse(this.data.formData)
|
|
let formData = JSON.parse(this.data.formData)
|
|
|
let code = e.detail.code
|
|
let code = e.detail.code
|
|
|
let data = e.detail.data.data
|
|
let data = e.detail.data.data
|
|
|
if (code == "transferType") { //调整类型
|
|
if (code == "transferType") { //调整类型
|
|
|
formData.transferType = data.id
|
|
formData.transferType = data.id
|
|
|
formData.transferTypeName = data.name
|
|
formData.transferTypeName = data.name
|
|
|
-
|
|
|
|
|
this.switchTransferType(formData.transferType)
|
|
this.switchTransferType(formData.transferType)
|
|
|
}
|
|
}
|
|
|
if (code == "staffId") { //员工
|
|
if (code == "staffId") { //员工
|
|
@@ -189,7 +184,6 @@ Page({
|
|
|
formData.whId = data.id
|
|
formData.whId = data.id
|
|
|
formData.whName = data.name
|
|
formData.whName = data.name
|
|
|
|
|
|
|
|
-
|
|
|
|
|
if (formData.goodsList) {
|
|
if (formData.goodsList) {
|
|
|
formData.goodsList.forEach(element => { //总单的目标仓库 作为一个总开关 直接改变 所以品的仓库
|
|
formData.goodsList.forEach(element => { //总单的目标仓库 作为一个总开关 直接改变 所以品的仓库
|
|
|
element.whId = data.id
|
|
element.whId = data.id
|
|
@@ -212,34 +206,35 @@ Page({
|
|
|
this.setData({
|
|
this.setData({
|
|
|
contentObj: {
|
|
contentObj: {
|
|
|
main: [{
|
|
main: [{
|
|
|
- code: 'transferType',
|
|
|
|
|
- name: 'transferTypeName',
|
|
|
|
|
- title: "调整类型", //mixins.$t("inventoryEmployees"),
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- required: true,
|
|
|
|
|
- urlKey: 'chooseAdjustmentType',
|
|
|
|
|
- }, {
|
|
|
|
|
- code: 'staffId',
|
|
|
|
|
- name: 'staffName',
|
|
|
|
|
- title: '责任人', //'盘点员工',
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- required: true,
|
|
|
|
|
- urlKey: 'chooseStaff'
|
|
|
|
|
- }, {
|
|
|
|
|
- code: 'orgId',
|
|
|
|
|
- name: 'orgName',
|
|
|
|
|
- title: '部门', //'盘点部门',
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- required: true,
|
|
|
|
|
- urlKey: 'chooseOrg'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- code: 'whId',
|
|
|
|
|
- name: 'whName',
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- title: "目标仓库", //'盘点仓库'
|
|
|
|
|
- urlKey: 'chooseWh'
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ code: 'transferType',
|
|
|
|
|
+ name: 'transferTypeName',
|
|
|
|
|
+ title: "调整类型", //mixins.$t("inventoryEmployees"),
|
|
|
|
|
+ type: 'choose',
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ clearItemFlag:true,
|
|
|
|
|
+ urlKey: 'chooseAdjustmentType',
|
|
|
|
|
+ }, {
|
|
|
|
|
+ code: 'staffId',
|
|
|
|
|
+ name: 'staffName',
|
|
|
|
|
+ title: '责任人', //'盘点员工',
|
|
|
|
|
+ type: 'choose',
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ urlKey: 'chooseStaff'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ code: 'orgId',
|
|
|
|
|
+ name: 'orgName',
|
|
|
|
|
+ title: '部门', //'盘点部门',
|
|
|
|
|
+ type: 'choose',
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ urlKey: 'chooseOrg'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'whId',
|
|
|
|
|
+ name: 'whName',
|
|
|
|
|
+ type: 'choose',
|
|
|
|
|
+ title: "目标仓库", //'盘点仓库'
|
|
|
|
|
+ urlKey: 'chooseWh'
|
|
|
|
|
+ },
|
|
|
],
|
|
],
|
|
|
items: [],
|
|
items: [],
|
|
|
other: [{
|
|
other: [{
|
|
@@ -254,32 +249,32 @@ Page({
|
|
|
}]
|
|
}]
|
|
|
},
|
|
},
|
|
|
popContent: [{
|
|
popContent: [{
|
|
|
- code: 'itemQty',
|
|
|
|
|
- type: 'step',
|
|
|
|
|
- title: mixins.$t('countedQuantity'), //'数量',
|
|
|
|
|
- required: true
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ code: 'itemQty',
|
|
|
|
|
+ type: 'step',
|
|
|
|
|
+ title: mixins.$t('countedQuantity'), //'数量',
|
|
|
|
|
+ required: true
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
- {
|
|
|
|
|
- code: 'oWhId',
|
|
|
|
|
- name: 'oWhName',
|
|
|
|
|
- title: '源库区', //'盘亏原因',
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- urlKey: 'selectInventorySku'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- code: 'whId',
|
|
|
|
|
- name: 'whName',
|
|
|
|
|
- title: '目标库区', //'盘亏原因',
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- urlKey: 'chooseWh'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- code: 'nonStdCode',
|
|
|
|
|
- title: mixins.$t("goodsBatch"), //'商品批次',
|
|
|
|
|
- type: 'str',
|
|
|
|
|
- readonly: true,
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'oWhId',
|
|
|
|
|
+ name: 'oWhName',
|
|
|
|
|
+ title: '源库区', //'盘亏原因',
|
|
|
|
|
+ type: 'choose',
|
|
|
|
|
+ urlKey: 'selectInventorySku'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'whId',
|
|
|
|
|
+ name: 'whName',
|
|
|
|
|
+ title: '目标库区', //'盘亏原因',
|
|
|
|
|
+ type: 'choose',
|
|
|
|
|
+ urlKey: 'chooseWh'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'nonStdCode',
|
|
|
|
|
+ title: mixins.$t("goodsBatch"), //'商品批次',
|
|
|
|
|
+ type: 'str',
|
|
|
|
|
+ readonly: true,
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
|
|
|
|
|
],
|
|
],
|
|
@@ -288,33 +283,34 @@ Page({
|
|
|
this.setData({
|
|
this.setData({
|
|
|
contentObj: {
|
|
contentObj: {
|
|
|
main: [{
|
|
main: [{
|
|
|
- code: 'transferType',
|
|
|
|
|
- name: 'transferTypeName',
|
|
|
|
|
- title: "调整类型", //mixins.$t("inventoryEmployees"),
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- required: true,
|
|
|
|
|
- urlKey: 'chooseAdjustmentType',
|
|
|
|
|
- }, {
|
|
|
|
|
- code: 'staffId',
|
|
|
|
|
- name: 'staffName',
|
|
|
|
|
- title: '责任人', //'盘点员工',
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- required: true,
|
|
|
|
|
- urlKey: 'chooseStaff'
|
|
|
|
|
- }, {
|
|
|
|
|
- code: 'orgId',
|
|
|
|
|
- name: 'orgName',
|
|
|
|
|
- title: '部门', //'盘点部门',
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- required: true,
|
|
|
|
|
- urlKey: 'chooseOrg'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- code: 'nonStdCode',
|
|
|
|
|
- name: 'nonStdName',
|
|
|
|
|
- type: 'str',
|
|
|
|
|
- title: "目标批号", //'盘点仓库'
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ code: 'transferType',
|
|
|
|
|
+ name: 'transferTypeName',
|
|
|
|
|
+ title: "调整类型", //mixins.$t("inventoryEmployees"),
|
|
|
|
|
+ type: 'choose',
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ clearItemFlag:true,
|
|
|
|
|
+ urlKey: 'chooseAdjustmentType',
|
|
|
|
|
+ }, {
|
|
|
|
|
+ code: 'staffId',
|
|
|
|
|
+ name: 'staffName',
|
|
|
|
|
+ title: '责任人', //'盘点员工',
|
|
|
|
|
+ type: 'choose',
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ urlKey: 'chooseStaff'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ code: 'orgId',
|
|
|
|
|
+ name: 'orgName',
|
|
|
|
|
+ title: '部门', //'盘点部门',
|
|
|
|
|
+ type: 'choose',
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ urlKey: 'chooseOrg'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'nonStdCode',
|
|
|
|
|
+ name: 'nonStdName',
|
|
|
|
|
+ type: 'str',
|
|
|
|
|
+ title: "目标批号", //'盘点仓库'
|
|
|
|
|
+ }
|
|
|
],
|
|
],
|
|
|
items: [],
|
|
items: [],
|
|
|
other: [{
|
|
other: [{
|
|
@@ -329,25 +325,25 @@ Page({
|
|
|
}]
|
|
}]
|
|
|
},
|
|
},
|
|
|
popContent: [{
|
|
popContent: [{
|
|
|
- code: 'itemQty',
|
|
|
|
|
- type: 'step',
|
|
|
|
|
- title: mixins.$t('countedQuantity'), //'数量',
|
|
|
|
|
- required: true
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ code: 'itemQty',
|
|
|
|
|
+ type: 'step',
|
|
|
|
|
+ title: mixins.$t('countedQuantity'), //'数量',
|
|
|
|
|
+ required: true
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
- {
|
|
|
|
|
- code: 'oNonStdCode',
|
|
|
|
|
- name: 'oNonStdName',
|
|
|
|
|
- title: '源批号', // '仓库',
|
|
|
|
|
- type: 'str',
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- code: 'nonStdCode',
|
|
|
|
|
- name: 'nonStdName',
|
|
|
|
|
- title: '目标批号', //'盘亏原因',
|
|
|
|
|
- type: 'str',
|
|
|
|
|
- urlKey: 'openingReason'
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'oNonStdCode',
|
|
|
|
|
+ name: 'oNonStdName',
|
|
|
|
|
+ title: '源批号', // '仓库',
|
|
|
|
|
+ type: 'str',
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'nonStdCode',
|
|
|
|
|
+ name: 'nonStdName',
|
|
|
|
|
+ title: '目标批号', //'盘亏原因',
|
|
|
|
|
+ type: 'str',
|
|
|
|
|
+ urlKey: 'openingReason'
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
],
|
|
],
|
|
|
})
|
|
})
|
|
@@ -404,30 +400,30 @@ Page({
|
|
|
setParams(params) {
|
|
setParams(params) {
|
|
|
let formData = JSON.parse(this.data.formData)
|
|
let formData = JSON.parse(this.data.formData)
|
|
|
params.staffId = formData.staffId
|
|
params.staffId = formData.staffId
|
|
|
- params.orgId = formData.orgId
|
|
|
|
|
|
|
+ params.orgId = formData.orgId
|
|
|
params.transferType = formData.transferType
|
|
params.transferType = formData.transferType
|
|
|
params.makeStaff = app.globalData.user.staffId
|
|
params.makeStaff = app.globalData.user.staffId
|
|
|
params.remarks = formData.remarks
|
|
params.remarks = formData.remarks
|
|
|
- params.oWhId = formData.oWhId||''
|
|
|
|
|
|
|
+ params.oWhId = formData.oWhId || ''
|
|
|
params.whId = formData.whId
|
|
params.whId = formData.whId
|
|
|
- params.oNonStdCode = formData.oNonStdCode||''
|
|
|
|
|
|
|
+ params.oNonStdCode = formData.oNonStdCode || ''
|
|
|
params.nonStdCode = formData.nonStdCode
|
|
params.nonStdCode = formData.nonStdCode
|
|
|
|
|
|
|
|
let itemList = []
|
|
let itemList = []
|
|
|
formData.goodsList.forEach((element, index) => {
|
|
formData.goodsList.forEach((element, index) => {
|
|
|
let item = {}
|
|
let item = {}
|
|
|
- item.itemIndex = index
|
|
|
|
|
- item.transferQty = element.itemQty
|
|
|
|
|
- item.oWhId = element.oWhId||''
|
|
|
|
|
- item.whId = element.whId||''
|
|
|
|
|
- item.oNonStdCode = element.oNonStdCode||''
|
|
|
|
|
- item.nonStdCode = element.nonStdCode||''
|
|
|
|
|
- item.skuId = element.skuId||''
|
|
|
|
|
- item.oInvId = element.invId||''
|
|
|
|
|
|
|
+ item.itemIndex = index
|
|
|
|
|
+ item.transferQty = element.itemQty
|
|
|
|
|
+ item.oWhId = element.oWhId || ''
|
|
|
|
|
+ item.whId = element.whId || ''
|
|
|
|
|
+ item.oNonStdCode = element.oNonStdCode || ''
|
|
|
|
|
+ item.nonStdCode = element.nonStdCode || ''
|
|
|
|
|
+ item.skuId = element.skuId || ''
|
|
|
|
|
+ item.oInvId = element.invId || ''
|
|
|
// item.priceInto = element.priceInto||''
|
|
// item.priceInto = element.priceInto||''
|
|
|
// item.intoingAmt = element.intoingAmt||''
|
|
// item.intoingAmt = element.intoingAmt||''
|
|
|
itemList.push(item)
|
|
itemList.push(item)
|
|
|
- });
|
|
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
params.itemList = itemList
|
|
params.itemList = itemList
|
|
|
return params;
|
|
return params;
|
|
@@ -518,7 +514,6 @@ Page({
|
|
|
this.setData({
|
|
this.setData({
|
|
|
formData: JSON.stringify(formData)
|
|
formData: JSON.stringify(formData)
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* @desc : 按钮点击事件回调
|
|
* @desc : 按钮点击事件回调
|
|
@@ -526,7 +521,7 @@ Page({
|
|
|
* @author : 王英杰
|
|
* @author : 王英杰
|
|
|
*/
|
|
*/
|
|
|
open(e) {
|
|
open(e) {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
console.log('ee', e);
|
|
console.log('ee', e);
|
|
|
let that = this
|
|
let that = this
|
|
|
let code = e.detail.name
|
|
let code = e.detail.name
|