|
@@ -35,33 +35,34 @@ Page({
|
|
|
// 动态的
|
|
// 动态的
|
|
|
cardList: [],
|
|
cardList: [],
|
|
|
contentObj: {},
|
|
contentObj: {},
|
|
|
- popContent: [{
|
|
|
|
|
- code: 'outingQty',
|
|
|
|
|
- type: 'step',
|
|
|
|
|
- title: mixins.$t('count'),
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- code: 'whId',
|
|
|
|
|
- name: 'whName',
|
|
|
|
|
- title: mixins.$t('warehouseId'),
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- urlKey: 'openingInventory'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- code: 'skuSpec',
|
|
|
|
|
- title: mixins.$t('goodSpec'),
|
|
|
|
|
- type: 'str',
|
|
|
|
|
- readonly: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- code: 'nonStdCode',
|
|
|
|
|
- title: mixins.$t('goodsBatch'),
|
|
|
|
|
- type: 'str',
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ popContent: [
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'outingQty',
|
|
|
|
|
+ type: 'step',
|
|
|
|
|
+ title: mixins.$t('count'),
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'whId',
|
|
|
|
|
+ name: 'whName',
|
|
|
|
|
+ title: mixins.$t('warehouseId'),
|
|
|
|
|
+ type: 'choose',
|
|
|
|
|
+ urlKey: 'openingInventory'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'skuSpec',
|
|
|
|
|
+ title: mixins.$t('goodSpec'),
|
|
|
|
|
+ type: 'str',
|
|
|
|
|
+ readonly: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 'nonStdCode',
|
|
|
|
|
+ title: mixins.$t('goodsBatch'),
|
|
|
|
|
+ type: 'str',
|
|
|
|
|
+ },
|
|
|
],
|
|
],
|
|
|
-
|
|
|
|
|
- cardContentList: [
|
|
|
|
|
- { code: 'whId', name: 'whName', title: '库区', type: 'choose', }],
|
|
|
|
|
|
|
+ titpsFlag: true,
|
|
|
|
|
+ cardContentList: [{ code: 'whId', name: 'whName', title: mixins.$t('warehouseId'), type: 'choose', }],
|
|
|
|
|
+ popupTopObj: [{ leftTitle: '库存量', leftCode: 'usableQty', rightTitle: '可售量', rightCode: 'invQty' }],
|
|
|
|
|
|
|
|
// 路由
|
|
// 路由
|
|
|
routeObjName: 'outbound',
|
|
routeObjName: 'outbound',
|
|
@@ -126,13 +127,13 @@ Page({
|
|
|
data.outObject = (data.supId != null) ? data.supId : data.cusId
|
|
data.outObject = (data.supId != null) ? data.supId : data.cusId
|
|
|
data.outObjectName = (data.supplierName != null) ? data.supplierName : data.cusName
|
|
data.outObjectName = (data.supplierName != null) ? data.supplierName : data.cusName
|
|
|
}
|
|
}
|
|
|
- // 出库状态-已出库
|
|
|
|
|
- if (data.outStatus == Constants.outStatus.outBounded) {
|
|
|
|
|
|
|
+ // 出库状态-待出库
|
|
|
|
|
+ if (data.outStatus == Constants.outStatus.outBounding) {
|
|
|
//查询采购订单表 未出库的 详细
|
|
//查询采购订单表 未出库的 详细
|
|
|
this.setData({
|
|
this.setData({
|
|
|
buttonList: [{
|
|
buttonList: [{
|
|
|
name: 'merge',
|
|
name: 'merge',
|
|
|
- title: mixins.$t("close")
|
|
|
|
|
|
|
+ title: mixins.$t("outProcessing")
|
|
|
}],
|
|
}],
|
|
|
})
|
|
})
|
|
|
sumitemAmt = Number(data.outingAmt)
|
|
sumitemAmt = Number(data.outingAmt)
|
|
@@ -141,7 +142,7 @@ Page({
|
|
|
this.setData({
|
|
this.setData({
|
|
|
buttonList: [{
|
|
buttonList: [{
|
|
|
name: 'merge',
|
|
name: 'merge',
|
|
|
- title: mixins.$t("outProcessing")
|
|
|
|
|
|
|
+ title: mixins.$t("close")
|
|
|
}],
|
|
}],
|
|
|
})
|
|
})
|
|
|
sumitemAmt = Number(data.outAmt)
|
|
sumitemAmt = Number(data.outAmt)
|
|
@@ -157,7 +158,7 @@ Page({
|
|
|
card.info = "(" + mixins.$t("checkouted") + ")"
|
|
card.info = "(" + mixins.$t("checkouted") + ")"
|
|
|
card.color = "#1B365D"
|
|
card.color = "#1B365D"
|
|
|
}
|
|
}
|
|
|
- card.itemAmt = sumitemAmt
|
|
|
|
|
|
|
+ card.itemAmt = sumitemAmt
|
|
|
// 出库状态-已出库
|
|
// 出库状态-已出库
|
|
|
if (data.outStatus == Constants.outStatus.outBounded) {
|
|
if (data.outStatus == Constants.outStatus.outBounded) {
|
|
|
card.outQty = sumitemquantity
|
|
card.outQty = sumitemquantity
|
|
@@ -352,7 +353,6 @@ Page({
|
|
|
flgEdit: true
|
|
flgEdit: true
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
let contentObj = {}
|
|
let contentObj = {}
|
|
|
let cardList = []
|
|
let cardList = []
|
|
|
// 销售出库
|
|
// 销售出库
|
|
@@ -360,43 +360,39 @@ Page({
|
|
|
wx.setNavigationBarTitle({
|
|
wx.setNavigationBarTitle({
|
|
|
title: mixins.$t('saleOutBound'),
|
|
title: mixins.$t('saleOutBound'),
|
|
|
})
|
|
})
|
|
|
- cardList = [{
|
|
|
|
|
- name: 'main',
|
|
|
|
|
- title: mixins.$t('serviceInfo'),
|
|
|
|
|
- }, {
|
|
|
|
|
- name: 'items',
|
|
|
|
|
- title: mixins.$t('goodsDetail'),
|
|
|
|
|
- chooseGoodsFlag: '',
|
|
|
|
|
- itemAmt: '',
|
|
|
|
|
- displayNum: 2
|
|
|
|
|
- }, {
|
|
|
|
|
- name: 'other',
|
|
|
|
|
- title: mixins.$t('otherInfo')
|
|
|
|
|
- }]
|
|
|
|
|
|
|
+ cardList = [
|
|
|
|
|
+ {
|
|
|
|
|
+ name: 'main',
|
|
|
|
|
+ title: mixins.$t('customerInformation'),
|
|
|
|
|
+ },
|
|
|
|
|
+ { name: 'relation' },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: 'items',
|
|
|
|
|
+ title: mixins.$t('goodsDetail'),
|
|
|
|
|
+ chooseGoodsFlag: '',
|
|
|
|
|
+ itemAmt: '',
|
|
|
|
|
+ displayNum: 2
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: 'other',
|
|
|
|
|
+ title: mixins.$t('otherInfo')
|
|
|
|
|
+ }]
|
|
|
contentObj = {
|
|
contentObj = {
|
|
|
main: [
|
|
main: [
|
|
|
- {
|
|
|
|
|
- code: 'serviceType',
|
|
|
|
|
- name: 'serviceTypeName',
|
|
|
|
|
- title: mixins.$t('serviceType'),
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- urlKey: 'chooseStaff'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- code: 'deliverId',
|
|
|
|
|
- name: 'deliverName',
|
|
|
|
|
- title: mixins.$t('deliverMan'),
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- urlKey: 'chooseStaff'
|
|
|
|
|
- }, {
|
|
|
|
|
- code: 'installId',
|
|
|
|
|
- name: 'installName',
|
|
|
|
|
- title: mixins.$t('installMan'),
|
|
|
|
|
- type: 'choose',
|
|
|
|
|
- urlKey: 'chooseStaff'
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ { code: 'cusName', type: 'str', readonly: true, required: false, title: mixins.$t('customerName') },
|
|
|
|
|
+ { code: 'cusPhone', type: 'str', readonly: true, required: false, title: mixins.$t('cusPhone') },
|
|
|
|
|
+ { code: 'addressFull', type: 'str', readonly: true, required: false, title: mixins.$t('addressFull') },
|
|
|
|
|
+ { code: 'addressNo', type: 'str', readonly: true, required: false, title: mixins.$t('addressNo') },
|
|
|
|
|
+ { code: 'channelName', type: 'str', readonly: true, required: false, title: mixins.$t('saleChannel') },
|
|
|
|
|
+ { code: 'cusFromName', type: 'str', readonly: true, required: false, title: mixins.$t('customerSource') },
|
|
|
|
|
|
|
|
],
|
|
],
|
|
|
|
|
+ relation: [{
|
|
|
|
|
+ code: 'fromNo',
|
|
|
|
|
+ type: 'str',
|
|
|
|
|
+ title: mixins.$t("sourceOrder"),//'关联源单'
|
|
|
|
|
+ readonly: true,
|
|
|
|
|
+ }],
|
|
|
items: [{
|
|
items: [{
|
|
|
code: 'sumQuantity',
|
|
code: 'sumQuantity',
|
|
|
name: 'collectName',
|
|
name: 'collectName',
|
|
@@ -408,16 +404,12 @@ Page({
|
|
|
type: 'number',
|
|
type: 'number',
|
|
|
title: mixins.$t('totalAmount'),
|
|
title: mixins.$t('totalAmount'),
|
|
|
}],
|
|
}],
|
|
|
-
|
|
|
|
|
- other: [{
|
|
|
|
|
- code: 'remarks',
|
|
|
|
|
- type: 'textarea',
|
|
|
|
|
- title: mixins.$t('remarks'),
|
|
|
|
|
- }, {
|
|
|
|
|
- code: 'file',
|
|
|
|
|
- type: 'uploader',
|
|
|
|
|
- title: mixins.$t('uploader')
|
|
|
|
|
- }]
|
|
|
|
|
|
|
+ other: [
|
|
|
|
|
+ { code: 'contractNo', type: 'textarea', title: mixins.$t("contractNumber"), readonly: false },
|
|
|
|
|
+ { code: 'deliveryDate', type: 'date', required: false, title: mixins.$t("delivery_Time"), required: true },
|
|
|
|
|
+ { code: 'remarks', type: 'textarea', title: mixins.$t("remarks"), readonly: false },
|
|
|
|
|
+ { code: 'file', type: 'uploader', title: mixins.$t("uploader") }
|
|
|
|
|
+ ]
|
|
|
}
|
|
}
|
|
|
this.setData({
|
|
this.setData({
|
|
|
contentObj,
|
|
contentObj,
|
|
@@ -581,15 +573,15 @@ Page({
|
|
|
|
|
|
|
|
if (this.data.item.outStatus == Constants.outStatus.outBounding) {
|
|
if (this.data.item.outStatus == Constants.outStatus.outBounding) {
|
|
|
this.setData({
|
|
this.setData({
|
|
|
- quantityCol: 'outingQty',
|
|
|
|
|
- sumQuantityCol: 'outingQty',
|
|
|
|
|
|
|
+ quantityCol: 'outingQty',
|
|
|
|
|
+ sumQuantityCol: 'outingQty',
|
|
|
})
|
|
})
|
|
|
- } else {
|
|
|
|
|
|
|
+ } else {
|
|
|
this.setData({
|
|
this.setData({
|
|
|
- quantityCol: 'outQty',
|
|
|
|
|
- sumQuantityCol: 'outQty',
|
|
|
|
|
|
|
+ quantityCol: 'outQty',
|
|
|
|
|
+ sumQuantityCol: 'outQty',
|
|
|
})
|
|
})
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|