|
@@ -17,6 +17,7 @@
|
|
|
class="button"
|
|
|
size="mini"
|
|
|
type="primary"
|
|
|
+ :disabled="type==='check'"
|
|
|
v-if="type !== 'detail' && type !== 'audit'"
|
|
|
@click="handleSelectWarehouseEntryBatch"
|
|
|
>选择</el-button
|
|
@@ -112,6 +113,7 @@
|
|
|
<el-button
|
|
|
v-if="type !== 'audit' && type !== 'detail'"
|
|
|
type="primary"
|
|
|
+ :disabled="type==='check'"
|
|
|
@click="saveGoodsExchangeAddForm"
|
|
|
>添加
|
|
|
</el-button>
|
|
@@ -214,6 +216,10 @@ export default {
|
|
|
this.id=this.$route.params.id
|
|
|
this.warehouse_id=this.$route.params.warehouse_id
|
|
|
this.code = this.$route.params.code;
|
|
|
+ this.type=this.$route.params.type
|
|
|
+ if(this.type==='check'){
|
|
|
+ this.GET_goodsExchangeAddDetail();
|
|
|
+ }
|
|
|
this.GET_WarehouseList();
|
|
|
this.GET_DeptList();
|
|
|
this.outType();
|
|
@@ -240,7 +246,6 @@ export default {
|
|
|
}
|
|
|
if (this.$route.params.id) {
|
|
|
this.id = this.$route.params.id;
|
|
|
- this.GET_goodsExchangeAddDetail();
|
|
|
}
|
|
|
this.GET_AdministratorList();
|
|
|
},
|
|
@@ -417,16 +422,9 @@ export default {
|
|
|
/** 获取详情页面数据 */
|
|
|
GET_goodsExchangeAddDetail() {
|
|
|
this.$nextTick(() => {
|
|
|
- /* API_GoodsExchange.getGoodsWarehouseOut(this.id).then((response) => {
|
|
|
- this.goodsExchangeAddForm = response;
|
|
|
- this.GET_WarehouseList({ dept_id: response.warehouse_id });
|
|
|
- this.goodsExchangeAddForm.change_time = Math.floor(
|
|
|
- this.goodsExchangeAddForm.change_time * 1000
|
|
|
- );
|
|
|
- this.goodsExchangeAddForm.distribution_name = response.staff_name;
|
|
|
- this.goodsExchangeAddForm.product_list =
|
|
|
- response.product_list;
|
|
|
- }); */
|
|
|
+ API_GoodsLend.getInfo({id:this.warehouse_id}).then(res=>{
|
|
|
+ console.log(res);
|
|
|
+ })
|
|
|
});
|
|
|
},
|
|
|
},
|