|
|
@@ -13,7 +13,7 @@ export function handleFormState() {
|
|
|
const formRef = ref();
|
|
|
function initFormData(): FormState {
|
|
|
return {
|
|
|
- InOutType: 3, // int32 出入库类型 - 1:采购入库 2:销售出库 3:生产入库 4:生产出库
|
|
|
+ InOutType: 7, // int32 出入库类型 - 1:采购入库 2:销售出库 3:生产入库 4:生产出库
|
|
|
WRStandardID: undefined, // uint64 现货商品ID
|
|
|
SpotGoodsBrandID: undefined, // uint64 现货品牌ID
|
|
|
DeliveryGoodsID: undefined, // uint64 现货品种ID
|
|
|
@@ -35,8 +35,8 @@ export function handleFormState() {
|
|
|
// 仓库类别
|
|
|
export function handleWarehouseType(formState: UnwrapRef<FormState>) {
|
|
|
const warehouseType = [
|
|
|
- { name: '生产入库', key: 3 },
|
|
|
- { name: '生产出库', key: 4 },
|
|
|
+ { name: '生产入库', key: 7 },
|
|
|
+ { name: '生产出库', key: 8 },
|
|
|
]
|
|
|
/**
|
|
|
*
|
|
|
@@ -44,7 +44,7 @@ export function handleWarehouseType(formState: UnwrapRef<FormState>) {
|
|
|
* @return true: 入库; false:出库
|
|
|
*/
|
|
|
function isIn(): boolean {
|
|
|
- return formState.InOutType === 3
|
|
|
+ return formState.InOutType === 7
|
|
|
}
|
|
|
function inOrOut() {
|
|
|
return isIn() ? '入库' : '出库'
|