|
...
|
...
|
@@ -36,14 +36,8 @@ |
|
|
|
|
|
|
|
<!-- 操作按钮区域 -->
|
|
|
|
<div class="table-operator">
|
|
|
|
<!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
|
|
|
|
<a-button type="primary" icon="download" @click="handleExportXls('贸易库存表')">导出</a-button>
|
|
|
|
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
|
|
|
<a-button type="primary" icon="import">导入</a-button>
|
|
|
|
</a-upload> -->
|
|
|
|
<a-button @click="handleInventoryIn" type="primary" >入库记录</a-button>
|
|
|
|
<a-button @click="handleInventoryOut" type="primary" >出库记录</a-button>
|
|
|
|
<a-button @click="handleInventoryDefective" type="primary" >不良品库</a-button>
|
|
|
|
<a-upload
|
|
|
|
name="file"
|
|
|
|
:showUploadList="false"
|
|
...
|
...
|
@@ -54,8 +48,6 @@ |
|
|
|
>
|
|
|
|
<a-button type="primary" icon="import">更新BOH</a-button>
|
|
|
|
</a-upload>
|
|
|
|
<!-- 高级查询区域 -->
|
|
|
|
<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> -->
|
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
|
|
<a-menu slot="overlay">
|
|
|
|
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
|
...
|
...
|
@@ -185,7 +177,7 @@ |
|
|
|
<j-form-container :disabled="formDisabled">
|
|
|
|
<a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
|
|
|
|
<a-row>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-model-item label="物料编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialCode">
|
|
|
|
<a-input
|
|
|
|
v-model="model.materialCode"
|
|
...
|
...
|
@@ -194,117 +186,63 @@ |
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="合同/订单号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hth">
|
|
|
|
<a-input-search
|
|
|
|
v-model="model.hth"
|
|
|
|
placeholder="请输入合同/订单号"
|
|
|
|
@search="searchHth"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<!-- <a-col :span="1">-->
|
|
|
|
<!-- <a >查询</a>-->
|
|
|
|
<!-- </a-col>-->
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="物料长描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialReview">
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-model-item label="物料长描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialDescription">
|
|
|
|
<a-input
|
|
|
|
v-model="model.materialReview"
|
|
|
|
v-model="model.materialDescription"
|
|
|
|
placeholder="请输入物料长描述"
|
|
|
|
disabled="disabled"
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="物流单号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wldh">
|
|
|
|
<a-input
|
|
|
|
v-model="model.wldh"
|
|
|
|
placeholder="请输入物流单号"
|
|
|
|
disabled="disabled"
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="unit">
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="measurementUnit">
|
|
|
|
<a-input
|
|
|
|
v-model="model.unit"
|
|
|
|
v-model="model.measurementUnit"
|
|
|
|
placeholder="请输入单位"
|
|
|
|
disabled="disabled"
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="供货商名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="cs">
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-model-item label="品牌" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="brand">
|
|
|
|
<a-input
|
|
|
|
v-model="model.cs"
|
|
|
|
placeholder="请输入供货商名称"
|
|
|
|
v-model="model.brand"
|
|
|
|
placeholder="请输入品牌"
|
|
|
|
disabled="disabled"
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="品牌" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="brand">
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-model-item label="供货商名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="supplierName">
|
|
|
|
<a-input
|
|
|
|
v-model="model.brand"
|
|
|
|
placeholder="请输入品牌"
|
|
|
|
disabled="disabled"
|
|
|
|
v-model="model.supplierName"
|
|
|
|
placeholder="请输入供货商名称"
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="仓库" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="warehouse">
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-model-item label="入库储位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="warehouse">
|
|
|
|
<a-input
|
|
|
|
v-model="model.warehouse"
|
|
|
|
placeholder="请输入仓库"
|
|
|
|
|
|
|
|
placeholder="请输入入库储位"
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="入库数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rksl">
|
|
|
|
<a-input
|
|
|
|
v-model="model.rksl"
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-model-item label="入库数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="inventoryQuantity">
|
|
|
|
<a-input-number :min="0"
|
|
|
|
:parser="limitNumber" :precision="0" :formatter="limitNumber"
|
|
|
|
v-model="model.inventoryQuantity"
|
|
|
|
placeholder="请输入入库数量"
|
|
|
|
|
|
|
|
></a-input>
|
|
|
|
></a-input-number>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="采购员" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="operator">
|
|
|
|
<a-input
|
|
|
|
v-model="model.operator"
|
|
|
|
placeholder="请输入采购员"
|
|
|
|
|
|
|
|
></a-input>
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-model-item label="入库时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="operTime">
|
|
|
|
<j-date placeholder="请选择入库时间" v-model="model.operTime" style="width: 100%" />
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<!-- <a-col :span="12">-->
|
|
|
|
<!-- <a-form-model-item label="不良品数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="blpsl">-->
|
|
|
|
<!-- <a-input type="number"-->
|
|
|
|
<!-- v-model="model.blpsl"-->
|
|
|
|
<!-- placeholder="请输入不良品数量"-->
|
|
|
|
|
|
|
|
<!-- ></a-input>-->
|
|
|
|
<!-- </a-form-model-item>-->
|
|
|
|
<!-- </a-col>-->
|
|
|
|
|
|
|
|
<!-- <a-col :span="12">-->
|
|
|
|
<!-- <a-form-model-item label="异常原因" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="iszt">-->
|
|
|
|
<!-- <a-select-->
|
|
|
|
<!-- ref="select"-->
|
|
|
|
<!-- v-model:value="model.ycyy"-->
|
|
|
|
<!-- >-->
|
|
|
|
<!-- <a-select-option value="1">来料不良</a-select-option>-->
|
|
|
|
<!-- <a-select-option value="2">货损</a-select-option>-->
|
|
|
|
<!-- <a-select-option value="3">来料少件</a-select-option>-->
|
|
|
|
<!-- <a-select-option value="4">发错货</a-select-option>-->
|
|
|
|
<!-- </a-select>-->
|
|
|
|
<!-- </a-form-model-item>-->
|
|
|
|
<!-- </a-col>-->
|
|
|
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
</a-form-model>
|
|
...
|
...
|
@@ -333,7 +271,7 @@ |
|
|
|
<j-form-container :disabled="formDisabled">
|
|
|
|
<a-form-model ref="form" :model="model2" :rules="validatorOutRules" slot="detail">
|
|
|
|
<a-row>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-model-item label="物料编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialCode">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.materialCode"
|
|
...
|
...
|
@@ -342,54 +280,25 @@ |
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="供应商合同号/订单号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="expressDeliveryNumber">
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-model-item label="物料长描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialDescription">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.expressDeliveryNumber"
|
|
|
|
placeholder="请输入供应商合同号/订单号"
|
|
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="物料长描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialReview">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.materialReview"
|
|
|
|
v-model="model2.materialDescription"
|
|
|
|
placeholder="请输入物料长描述"
|
|
|
|
disabled="disabled"
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="中标合同编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="deliveryContractNumber">
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="measurementUnit">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.deliveryContractNumber"
|
|
|
|
placeholder="请输入中标合同编号"
|
|
|
|
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="unit">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.unit"
|
|
|
|
v-model="model2.measurementUnit"
|
|
|
|
placeholder="请输入单位"
|
|
|
|
disabled="disabled"
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="需求单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="demandUnit">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.demandUnit"
|
|
|
|
placeholder="请输入需求单位"
|
|
|
|
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-model-item label="品牌" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="brand">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.brand"
|
|
...
|
...
|
@@ -398,36 +307,40 @@ |
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="仓库" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="warehouse">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.warehouse"
|
|
|
|
placeholder="请输入仓库"
|
|
|
|
|
|
|
|
></a-input>
|
|
|
|
<a-col :span="24" >
|
|
|
|
<a-form-model-item label="出货分公司" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="company">
|
|
|
|
<a-input v-model="model.company" placeholder="请输入出货分公司"></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-col :span="24" >
|
|
|
|
<a-form-model-item label="出货工作令" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="workOrder">
|
|
|
|
<a-input v-model="model.workOrder" placeholder="请输入出货工作令"></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="24" >
|
|
|
|
<a-form-model-item label="出货厂家" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="shippingManufacturer">
|
|
|
|
<a-input v-model="model.shippingManufacturer" placeholder="请输入出货厂家"></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="24" >
|
|
|
|
<a-form-model-item label="出货储位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="warehouse">
|
|
|
|
<a-input v-model="model.warehouse" placeholder="请输入出货储位"></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-model-item label="出库时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="operTime">
|
|
|
|
<j-date placeholder="请选择出库时间" v-model="model.operTime" style="width: 100%" />
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-model-item label="出库数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="outboundQuantity">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.outboundQuantity"
|
|
|
|
placeholder="请输入出库数量"
|
|
|
|
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="销售员" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="salesman">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.salesman"
|
|
|
|
placeholder="请输入销售员"
|
|
|
|
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
</a-form-model>
|
|
|
|
</j-form-container>
|
|
|
|
</a-spin>
|
|
...
|
...
|
@@ -585,11 +498,11 @@ |
|
|
|
align:"center",
|
|
|
|
dataIndex: 'actualInventory'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'在途数量',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'quantityInTransit'
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// title:'在途数量',
|
|
|
|
// align:"center",
|
|
|
|
// dataIndex: 'quantityInTransit'
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title:'总数量',
|
|
|
|
// align:"center",
|
|
...
|
...
|
@@ -610,27 +523,27 @@ |
|
|
|
// align:"center",
|
|
|
|
// dataIndex: 'totalPrice'
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
title:'首次入库时间',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'firstStorageTime',
|
|
|
|
customRender:function (text) {
|
|
|
|
return !text?"":(text.length>10?text.substr(0,10):text)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'最后一次出库时间',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'lastOutboundTime',
|
|
|
|
customRender:function (text) {
|
|
|
|
return !text?"":(text.length>10?text.substr(0,10):text)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'在库天数',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'daysInStock'
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// title:'首次入库时间',
|
|
|
|
// align:"center",
|
|
|
|
// dataIndex: 'firstStorageTime',
|
|
|
|
// customRender:function (text) {
|
|
|
|
// return !text?"":(text.length>10?text.substr(0,10):text)
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title:'最后一次出库时间',
|
|
|
|
// align:"center",
|
|
|
|
// dataIndex: 'lastOutboundTime',
|
|
|
|
// customRender:function (text) {
|
|
|
|
// return !text?"":(text.length>10?text.substr(0,10):text)
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title:'在库天数',
|
|
|
|
// align:"center",
|
|
|
|
// dataIndex: 'daysInStock'
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
title: '操作',
|
|
|
|
dataIndex: 'action',
|
|
...
|
...
|
@@ -643,7 +556,8 @@ |
|
|
|
url: {
|
|
|
|
out: '/trade/tblTradeInventory/out',
|
|
|
|
searchHth: '/trade/tblTradeBidSub/queryHtInfoByHthAndWlbm',
|
|
|
|
store: '/trade/tblTradeInventory/add',
|
|
|
|
// store: '/trade/tblTradeInventory/add',//旧
|
|
|
|
store: '/trade/tblTradeInventoryIn/addTradeInventory',
|
|
|
|
list: "/trade/tblTradeInventory/list",
|
|
|
|
delete: "/trade/tblTradeInventory/delete",
|
|
|
|
deleteBatch: "/trade/tblTradeInventory/deleteBatch",
|
|
...
|
...
|
@@ -652,7 +566,7 @@ |
|
|
|
importExcelUrlBoh: 'trade/tblTradeInventory/importExcelBoh',
|
|
|
|
updateBoh: '/trade/tblTradeInventory/updateBoh'
|
|
|
|
|
|
|
|
},
|
|
|
|
} ,
|
|
|
|
dictOptions:{},
|
|
|
|
superFieldList:[],
|
|
|
|
model: {
|
|
...
|
...
|
@@ -661,7 +575,6 @@ |
|
|
|
blpsl: 0,
|
|
|
|
},
|
|
|
|
model2: {
|
|
|
|
|
|
|
|
},
|
|
|
|
materialCode:'',
|
|
|
|
materialReview:'',
|
|
...
|
...
|
@@ -692,25 +605,25 @@ |
|
|
|
hth: [{ required: true, message: '请输入合同/订单号!' },],
|
|
|
|
materialReview: [{ required: true, message: '请输入物料长描述!' },],
|
|
|
|
wldh: [{ required: true, message: '请输入物流单号!' },],
|
|
|
|
unit: [{ required: true, message: '请输入单位!' },],
|
|
|
|
measurementUnit: [{ required: true, message: '请输入单位!' },],
|
|
|
|
// iszt: [{ required: true, message: '请选择是否在途!' },],
|
|
|
|
cs: [{ required: true, message: '请输入供货商名称!' },],
|
|
|
|
supplierName: [{ required: true, message: '请输入供货商名称!' },],
|
|
|
|
brand: [{ required: true, message: '请输入品牌!' },],
|
|
|
|
warehouse: [{ required: true, message: '请输入仓库!' },],
|
|
|
|
rksl: [{ required: true, message: '请输入入库数量!' },],
|
|
|
|
inventoryQuantity: [{ required: true, message: '请输入入库数量!' },],
|
|
|
|
operator: [{ required: true, message: '请输入采购员!' },],
|
|
|
|
},
|
|
|
|
validatorOutRules: {
|
|
|
|
materialCode: [{ required: true, message: '请输入物料编码!' },],
|
|
|
|
// materialCode: [{ required: true, message: '请输入物料编码!' },],
|
|
|
|
expressDeliveryNumber: [{ required: true, message: '请输入供应商合同号/订单号!' },],
|
|
|
|
materialReview: [{ required: true, message: '请输入物料长描述!' },],
|
|
|
|
// materialReview: [{ required: true, message: '请输入物料长描述!' },],
|
|
|
|
deliveryContractNumber: [{ required: true, message: '请输入中标合同编号!' },],
|
|
|
|
unit: [{ required: true, message: '请输入单位!' },],
|
|
|
|
demandUnit: [{ required: true, message: '请输入需求单位!' },],
|
|
|
|
brand: [{ required: true, message: '请输入品牌!' },],
|
|
|
|
warehouse: [{ required: true, message: '请输入仓库!' },],
|
|
|
|
// workOrder: [{ required: true, message: '请输入工作令!' },],
|
|
|
|
outboundQuantity: [{ required: true, message: '请输入出库数量!' },],
|
|
|
|
salesman: [{ required: true, message: '请输入销售员!' },],
|
|
|
|
operTime: [{ required: true, message: '请输入出货时间!' },],
|
|
|
|
},
|
|
|
|
purchaseId: '',
|
|
|
|
|
|
...
|
...
|
@@ -742,6 +655,15 @@ |
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
limitNumber(value) {
|
|
|
|
if (typeof value === 'string') {
|
|
|
|
return !isNaN(Number(value)) ? value.replace(/\./g, '') : 0
|
|
|
|
} else if (typeof value === 'number') {
|
|
|
|
return !isNaN(value) ? String(value).replace(/\./g, '') : 0
|
|
|
|
} else {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
searchHth(){
|
|
|
|
getAction(this.url.searchHth,{
|
|
|
|
hth: this.model.hth,
|
|
...
|
...
|
@@ -770,33 +692,34 @@ |
|
|
|
handleInventoryDefective(){
|
|
|
|
this.visibleDefective = true;
|
|
|
|
},
|
|
|
|
updateInventoryBoh(recode){
|
|
|
|
console.log("..............",recode)
|
|
|
|
updateInventoryBoh(record){
|
|
|
|
console.log("..............",record)
|
|
|
|
this.model2= {}
|
|
|
|
this.model2 = recode;
|
|
|
|
this.model2.materialDescription = recode.materialReview;
|
|
|
|
this.model2 = record;
|
|
|
|
this.model2.materialDescription = record.materialReview;
|
|
|
|
this.visibleBoh = true;
|
|
|
|
},
|
|
|
|
handleInventoryInfo(recode){
|
|
|
|
this.materialCode = recode.materialCode;
|
|
|
|
handleInventoryInfo(record){
|
|
|
|
this.materialCode = record.materialCode;
|
|
|
|
this.visibleInfo = true;
|
|
|
|
},
|
|
|
|
handleInventoryInfoIn(recode){
|
|
|
|
handleInventoryInfoIn(record){
|
|
|
|
this.model = {}
|
|
|
|
console.log(recode)
|
|
|
|
this.model.materialCode = recode.materialCode;
|
|
|
|
this.model.materialReview = recode.materialReview;
|
|
|
|
this.model.unit = recode.unit;
|
|
|
|
this.model.brand = recode.brand;
|
|
|
|
console.log(record)
|
|
|
|
this.model = record
|
|
|
|
// this.model.materialCode = record.materialCode;
|
|
|
|
this.model.materialDescription = record.materialReview;
|
|
|
|
this.model.measurementUnit = record.unit;
|
|
|
|
// this.model.brand = record.brand;
|
|
|
|
this.visibleInfoIn = true;
|
|
|
|
},
|
|
|
|
handleInventoryInfoOut(recode){
|
|
|
|
handleInventoryInfoOut(record){
|
|
|
|
this.model2= {}
|
|
|
|
console.log("..............",recode)
|
|
|
|
this.model2.materialCode = recode.materialCode;
|
|
|
|
this.model2.materialReview = recode.materialReview;
|
|
|
|
this.model2.unit = recode.unit;
|
|
|
|
this.model2.brand = recode.brand;
|
|
|
|
console.log("..............",record)
|
|
|
|
this.model2.materialCode = record.materialCode;
|
|
|
|
this.model2.materialDescription = record.materialReview;
|
|
|
|
this.model2.measurementUnit = record.unit;
|
|
|
|
this.model2.brand = record.brand;
|
|
|
|
this.visibleInfoOut = true;
|
|
|
|
},
|
|
|
|
handleCancel(){
|
|
...
|
...
|
@@ -855,19 +778,8 @@ |
|
|
|
handleOkInfoIn(){
|
|
|
|
this.$refs.form.validate((valid) => {
|
|
|
|
if (valid){
|
|
|
|
postAction(this.url.store,{
|
|
|
|
materialCode: this.model.materialCode, //物料编码
|
|
|
|
materialDescription: this.model.materialReview, //长描述
|
|
|
|
measurementUnit: this.model.unit, //单位
|
|
|
|
brand: this.model.brand,//品牌
|
|
|
|
hth: this.model.hth, //合同号
|
|
|
|
wldh: this.model.wldh, //物流单号
|
|
|
|
warehouse: this.model.warehouse, //仓库
|
|
|
|
operator: this.model.operator, //采购员
|
|
|
|
rksl: this.model.rksl, //入库数量
|
|
|
|
cs: this.model.cs, //厂商
|
|
|
|
purchaseId: this.purchaseId //订单id
|
|
|
|
}).then(res=>{
|
|
|
|
postAction(this.url.store,this.model
|
|
|
|
).then(res=>{
|
|
|
|
this.reSeach();
|
|
|
|
if (res.success){
|
|
|
|
this.$message.success("提交成功")
|
...
|
...
|
|