|
@@ -2,7 +2,7 @@
|
2
|
2
|
<div>
|
3
|
3
|
<div style="display: flex;align-items: center;justify-content: space-between;margin-bottom:10px;">
|
4
|
4
|
<div>
|
5
|
|
- <el-select v-model="inventory_status" size="small" placeholder="请选择">
|
|
5
|
+ <el-select v-model="inventory_status" size="small" placeholder="请选择" @change="changeInventory">
|
6
|
6
|
<el-option
|
7
|
7
|
v-for="item in inventoryList"
|
8
|
8
|
:key="item.id"
|
|
@@ -15,7 +15,7 @@
|
15
|
15
|
style="width: 200px;margin-left:10px;"
|
16
|
16
|
class="filter-item"
|
17
|
17
|
v-model.trim="searchKey"
|
18
|
|
- placeholder=""
|
|
18
|
+ placeholder="请输入单据编号或操作人姓名"
|
19
|
19
|
/>
|
20
|
20
|
<el-button
|
21
|
21
|
size="small"
|
|
@@ -26,6 +26,7 @@
|
26
|
26
|
>搜索</el-button
|
27
|
27
|
>
|
28
|
28
|
<el-date-picker
|
|
29
|
+ @change="changeStartTime"
|
29
|
30
|
size="small"
|
30
|
31
|
v-model="start_time"
|
31
|
32
|
type="date"
|
|
@@ -37,7 +38,8 @@
|
37
|
38
|
v-model="end_time"
|
38
|
39
|
type="date"
|
39
|
40
|
style="margin-left:5px;width:140px;"
|
40
|
|
- placeholder="选择日期">
|
|
41
|
+ placeholder="选择日期"
|
|
42
|
+ @change="changeEndTime">
|
41
|
43
|
</el-date-picker>
|
42
|
44
|
</div>
|
43
|
45
|
<div>
|
|
@@ -414,28 +416,19 @@
|
414
|
416
|
<el-form-item label="盘点数量:">
|
415
|
417
|
<el-input v-model="form.count" style="width:200px" :disabled="true"></el-input>
|
416
|
418
|
</el-form-item>
|
417
|
|
- <el-form-item label="库存数量:" :disabled="true">
|
418
|
|
- <el-input v-model="form.total" style="width:200px"></el-input>
|
|
419
|
+ <el-form-item label="库存数量:">
|
|
420
|
+ <el-input v-model="form.total" style="width:200px" :disabled="true"></el-input>
|
419
|
421
|
</el-form-item>
|
420
|
422
|
<el-form-item label="校对数量:">
|
421
|
423
|
<el-input v-model="form.proof_count" style="width:200px"></el-input>
|
422
|
424
|
</el-form-item>
|
423
|
425
|
</el-col>
|
424
|
426
|
</el-row>
|
425
|
|
- <el-row>
|
426
|
|
- <el-col>
|
427
|
|
- <el-form-item label="备注:">
|
428
|
|
- <div style="display:flex;">
|
429
|
|
- <el-input v-model="form.remark" style="width:200px"></el-input>
|
430
|
|
- </div>
|
431
|
|
- </el-form-item>
|
432
|
|
- </el-col>
|
433
|
|
- </el-row>
|
434
|
427
|
</el-form>
|
435
|
428
|
</span>
|
436
|
429
|
<span slot="footer" class="dialog-footer">
|
437
|
430
|
<el-button @click="proofPriceDialogVisible = false">取 消</el-button>
|
438
|
|
- <el-button type="primary" @click="modifyInventory">保存</el-button>
|
|
431
|
+ <el-button type="primary" @click="proofInventory">保存</el-button>
|
439
|
432
|
</span>
|
440
|
433
|
</el-dialog>
|
441
|
434
|
</div>
|
|
@@ -443,7 +436,7 @@
|
443
|
436
|
|
444
|
437
|
<script>
|
445
|
438
|
import { uParseTime } from '@/utils/tools'
|
446
|
|
-import { postSearchGoodWarehouseList,saveInventory,getInventoryList,SaveCheckedInventory,getInventoryDetail,modifyInventory,deleteInventory,getStockBatchNumber,getGoodWarehouseList } from "@/api/stock"
|
|
439
|
+import { postSearchGoodWarehouseList,saveInventory,getInventoryList,SaveCheckedInventory,getInventoryDetail,modifyInventory,deleteInventory,getStockBatchNumber,getGoodWarehouseList,proofInventory } from "@/api/stock"
|
447
|
440
|
export default {
|
448
|
441
|
name: "inventory",
|
449
|
442
|
data() {
|
|
@@ -664,6 +657,7 @@ export default {
|
664
|
657
|
page:this.page,
|
665
|
658
|
limit:this.limit,
|
666
|
659
|
}
|
|
660
|
+ console.log("parasm",params)
|
667
|
661
|
getInventoryList(params).then(response=>{
|
668
|
662
|
if(response.data.state ==1 ){
|
669
|
663
|
var list = response.data.data.list
|
|
@@ -755,6 +749,8 @@ export default {
|
755
|
749
|
this.form.count = detail.count
|
756
|
750
|
this.form.remark = detail.remark
|
757
|
751
|
this.form.total = detail.total
|
|
752
|
+ this.form.warehousing_info_id = detail.warehousing_info_id
|
|
753
|
+ this.form.good_id = detail.good_id
|
758
|
754
|
this.id = detail.id
|
759
|
755
|
this.proofPriceDialogVisible = true
|
760
|
756
|
|
|
@@ -871,6 +867,40 @@ export default {
|
871
|
867
|
console.log("list23232",list)
|
872
|
868
|
}
|
873
|
869
|
})
|
|
870
|
+ },
|
|
871
|
+ proofInventory(){
|
|
872
|
+ var params = {
|
|
873
|
+ id:this.id,
|
|
874
|
+ good_id:this.form.good_id,
|
|
875
|
+ warehousing_info_id:this.form.warehousing_info_id,
|
|
876
|
+ proof_count:parseInt(this.form.proof_count),
|
|
877
|
+ total:parseInt(this.form.total)
|
|
878
|
+ }
|
|
879
|
+ console.log("parasm",params)
|
|
880
|
+ proofInventory(params).then(response=>{
|
|
881
|
+ if(response.data.state == 1){
|
|
882
|
+ var info = response.data.data.info
|
|
883
|
+ this.$message.success("保存成功!")
|
|
884
|
+ this.proofPriceDialogVisible = false
|
|
885
|
+ this.form.good_name = ""
|
|
886
|
+ this.form.specification_name = ""
|
|
887
|
+ this.form.proof_count = ""
|
|
888
|
+ this.form.total = ""
|
|
889
|
+ this.form.good_id = ""
|
|
890
|
+ this.getlist()
|
|
891
|
+ }
|
|
892
|
+ })
|
|
893
|
+ },
|
|
894
|
+ changeInventory(){
|
|
895
|
+ this.getlist()
|
|
896
|
+ },
|
|
897
|
+ changeStartTime(val){
|
|
898
|
+ this.start_time = this.getTime(val)
|
|
899
|
+ this.getlist()
|
|
900
|
+ },
|
|
901
|
+ changeEndTime(val){
|
|
902
|
+ this.end_time = this.getTime(val)
|
|
903
|
+ this.getlist()
|
874
|
904
|
}
|
875
|
905
|
},
|
876
|
906
|
created(){
|