|
@@ -96,7 +96,7 @@
|
|
|
<a-select-option v-for="option in wareHouseList"
|
|
<a-select-option v-for="option in wareHouseList"
|
|
|
:key="option.autoid"
|
|
:key="option.autoid"
|
|
|
:value="option.autoid">
|
|
:value="option.autoid">
|
|
|
- {{option.warehousename}}
|
|
|
|
|
|
|
+ {{option.warehousecode}}
|
|
|
</a-select-option>
|
|
</a-select-option>
|
|
|
</a-select>
|
|
</a-select>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -124,6 +124,8 @@ import { handleDeliveryGoods, handleFormState, handleWarehouseList, handleWareho
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
import { FormState } from './interface';
|
|
import { FormState } from './interface';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
|
|
+import {ermcpInOutStockApplyReq} from "@/services/proto/warehouse";
|
|
|
|
|
+import {ERMCPAreaInOutStockApplyReq} from "@/services/proto/warehouse/interface";
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'add-spot-contract',
|
|
name: 'add-spot-contract',
|
|
@@ -143,10 +145,21 @@ export default defineComponent({
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
function submit() {
|
|
function submit() {
|
|
|
validateAction<FormState>(formRef, formState).then((param) => {
|
|
validateAction<FormState>(formRef, formState).then((param) => {
|
|
|
- // requestResultLoadingAndInfo(QueryAddUserInfoApply, reqParam, loading, OperateType === 1 ? ['保存草稿成功', '保存草稿失败:'] : ['新增客户资料成功', '新增客户资料失败:']).then(() => {
|
|
|
|
|
- // closeAction();
|
|
|
|
|
- // context.emit('refresh');
|
|
|
|
|
- // });
|
|
|
|
|
|
|
+ let reqParam: ERMCPAreaInOutStockApplyReq = {
|
|
|
|
|
+ InOutType: param.InOutType, // int32 出入库类型 - 1:采购入库 2:销售出库 3:生产入库 4:生产出库
|
|
|
|
|
+ WRStandardID: param.WRStandardID as number, // uint64 现货商品ID
|
|
|
|
|
+ // SpotGoodsModelID: param.S; // uint64 现货型号ID
|
|
|
|
|
+ SpotGoodsBrandID: param.SpotGoodsBrandID as number, // uint64 现货品牌ID
|
|
|
|
|
+ DeliveryGoodsID: param.DeliveryGoodsID as number, // uint64 现货品种ID
|
|
|
|
|
+ // SpotContractID: param.SpotContractID, // uint64 关联现货合同ID [1:采购入库 2:销售出库 ](1,2状态必填)
|
|
|
|
|
+ WarehouseInfo: param.WarehouseInfo as number, // uint64 现货仓库ID
|
|
|
|
|
+ Qty: Number(param.Qty), // double 数量
|
|
|
|
|
+ ApplyRemark: "", // string 申请备注
|
|
|
|
|
+ }
|
|
|
|
|
+ requestResultLoadingAndInfo(ermcpInOutStockApplyReq, reqParam, loading, ['出入库登记成功', '出入库登记失败:'] ).then(() => {
|
|
|
|
|
+ closeAction();
|
|
|
|
|
+ context.emit('refresh');
|
|
|
|
|
+ });
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
function closeAction() {
|
|
function closeAction() {
|