|
|
@@ -19,12 +19,12 @@ Page({
|
|
|
// 查询条件
|
|
|
searchContent: [{
|
|
|
code: 'makeTime',
|
|
|
- title: '近30天',
|
|
|
+ title: mixins.$t('pastThirthtyDays'),//近30天',
|
|
|
defaultValue: 5,
|
|
|
searchType: Constants.searchType.date
|
|
|
} , {
|
|
|
code: 'choose',
|
|
|
- title: '筛选',
|
|
|
+ title: mixins.$t('choose'),//'筛选',
|
|
|
searchType: Constants.searchType.pick
|
|
|
}],
|
|
|
|
|
|
@@ -39,87 +39,87 @@ Page({
|
|
|
code: 'orgName',
|
|
|
}, {
|
|
|
code: 'transferNo',
|
|
|
- title:'调整单号'
|
|
|
+ title:mixins.$t('adjustmentOrderNumber'),//'调整单号'
|
|
|
},
|
|
|
{
|
|
|
code: 'oWhName',
|
|
|
- title:'源仓库'
|
|
|
+ title: mixins.$t('owhid'),//'源仓库'
|
|
|
},
|
|
|
{
|
|
|
code: 'whName',
|
|
|
- title:'目标仓库'
|
|
|
+ title: mixins.$t('whid'),//'目标仓库'
|
|
|
},
|
|
|
{
|
|
|
code: 'oNonStdCode',
|
|
|
- title:'源批号'
|
|
|
+ title: mixins.$t('oNonStdCode'),//'源批号'
|
|
|
},
|
|
|
{
|
|
|
code: 'nonStdCode',
|
|
|
- title:'目标批号'
|
|
|
+ title: mixins.$t('nonStdCode'),//'目标批号'
|
|
|
},
|
|
|
{
|
|
|
code: 'transferDateW',
|
|
|
- title:'调整日期',
|
|
|
+ title: mixins.$t('adjustDate'),//'调整日期',
|
|
|
dataType: 'date'
|
|
|
},
|
|
|
|
|
|
{
|
|
|
code: 'remarks',
|
|
|
- title:'备注'
|
|
|
+ title: mixins.$t('remarks'),//'备注'
|
|
|
},
|
|
|
],
|
|
|
|
|
|
|
|
|
- // 列表区(脚部金额)
|
|
|
- footerAmount: { },
|
|
|
- // 列表区(脚部信息)
|
|
|
- footerInfo: [ {
|
|
|
- name: 'categoryQuantity',
|
|
|
- title: '共计'
|
|
|
- }, {
|
|
|
- name: 'tsumQuantity',
|
|
|
- title: '件'
|
|
|
- }],
|
|
|
+ // // 列表区(脚部金额)
|
|
|
+ // footerAmount: { },
|
|
|
+ // // 列表区(脚部信息)
|
|
|
+ // footerInfo: [ {
|
|
|
+ // name: 'categoryQuantity',
|
|
|
+ // title: '共计'
|
|
|
+ // }, {
|
|
|
+ // name: 'tsumQuantity',
|
|
|
+ // title: '件'
|
|
|
+ // }],
|
|
|
|
|
|
|
|
|
contentObj: {
|
|
|
- '仓库调整': [ {
|
|
|
+ [ mixins.$t('warehouseAdjustment')]: [ {//仓库调整
|
|
|
name: 'oWhName',
|
|
|
- title: '源仓库'
|
|
|
+ title: mixins.$t('owhid'),//'源仓库'
|
|
|
}, {
|
|
|
name: 'whName',
|
|
|
- title: '目标仓库'
|
|
|
+ title: mixins.$t('whid'),//'目标仓库'
|
|
|
}, {
|
|
|
name: [{
|
|
|
name: 'transferOrg',
|
|
|
title: ''
|
|
|
}, {
|
|
|
name: 'transferStaff',
|
|
|
- title: '业务员'
|
|
|
+ title: mixins.$t('staffId'),//'业务员'
|
|
|
}],
|
|
|
- title: '责任信息'
|
|
|
+ title: mixins.$t('responsibilityInformation'),//'责任信息'
|
|
|
}, {
|
|
|
name: 'transferDate',
|
|
|
- title: '调整日期'
|
|
|
+ title: mixins.$t('adjustDate'),//'调整日期',
|
|
|
}],
|
|
|
- '批次调整': [ {
|
|
|
+ [mixins.$t('batchAdjustment')]: [ {//'批次调整'
|
|
|
name: 'ononStdCode',
|
|
|
- title: '源批号'
|
|
|
+ title: mixins.$t('oNonStdCode'),//'源批号'
|
|
|
},{
|
|
|
name: 'nonStdCode',
|
|
|
- title: '目标批号'
|
|
|
+ title: mixins.$t('nonStdCode'),//'目标批号'
|
|
|
}, {
|
|
|
name: [{
|
|
|
name: 'transferOrg',
|
|
|
title: ''
|
|
|
}, {
|
|
|
name: 'transferStaff',
|
|
|
- title: '业务员'
|
|
|
+ title: mixins.$t('staffId'),//'业务员'
|
|
|
}],
|
|
|
- title: '责任信息'
|
|
|
+ title: mixins.$t('responsibilityInformation'),//'责任信息'
|
|
|
},{
|
|
|
name: 'transferDate',
|
|
|
- title: '调整日期'
|
|
|
+ title: mixins.$t('adjustDate'),//'调整日期',
|
|
|
}]
|
|
|
},
|
|
|
buttonList: [{
|
|
|
@@ -128,14 +128,14 @@ Page({
|
|
|
}],
|
|
|
// 弹出按钮
|
|
|
pupbuttonList: [{
|
|
|
- name: 'customerRefund',
|
|
|
- title: '入库办理'
|
|
|
+ name: 'editInventoryAdjustment',
|
|
|
+ title: mixins.$t('edit'),//'编辑'
|
|
|
}, {
|
|
|
- name: 'customerRefundList',
|
|
|
- title: '作废'
|
|
|
+ name: 'invaidOrder',
|
|
|
+ title: mixins.$t('invaidOrder'),//'作废'
|
|
|
} , {
|
|
|
- name: 'customerRefundList',
|
|
|
- title: '打印票据'
|
|
|
+ name: 'printedBill',
|
|
|
+ title: mixins.$t('printedBill'),//'打印票据'
|
|
|
}
|
|
|
|
|
|
],
|
|
|
@@ -145,7 +145,45 @@ Page({
|
|
|
// 主键Id
|
|
|
primaryKey: 'transferId',
|
|
|
},
|
|
|
-
|
|
|
+ /**
|
|
|
+ * @desc : (编辑)
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 王英杰
|
|
|
+ */
|
|
|
+ editInventoryAdjustment(e) {
|
|
|
+ let item = e
|
|
|
+ let id = item.transferId
|
|
|
+ // 采购入库
|
|
|
+ wx.navigateTo({
|
|
|
+ url: this.data.route.add.url,
|
|
|
+ events: {
|
|
|
+ // 回调后,在这里给页面赋值
|
|
|
+ bandData: function (e) {}
|
|
|
+ },
|
|
|
+ success: function (res) {
|
|
|
+ res.eventChannel.emit('params', {
|
|
|
+ id: id,
|
|
|
+ formMode: Constants.formMode.edit
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * @desc : 作废
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 王英杰
|
|
|
+ */
|
|
|
+ invaidOrder(e) {
|
|
|
+ let item = e
|
|
|
+ let id = item.transferId
|
|
|
+ this.excute(this.data.service, this.data.service.invalid + id, null).then(res => {
|
|
|
+ if (res.data.code == Constants.SUCESS_CODE) {
|
|
|
+ // 重新查询
|
|
|
+ this.searchData()
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
/**
|
|
|
* @desc : 查询
|
|
|
* @date : 2024/2/1 15:49
|