|
@@ -318,7 +318,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { getDetail, getGoodsList, addData, editData, checkDealerList, checkMaterialList, getWarehouseList } from "@/api/supply/reserve";
|
|
|
|
|
|
+import { getDetail, getGoodsList, addData, editData, checkDealerList, checkMaterialList, getWarehouseList ,getListStock} from "@/api/supply/reserve";
|
|
import { getDictList } from '@/api/common'
|
|
import { getDictList } from '@/api/common'
|
|
|
|
|
|
let that
|
|
let that
|
|
@@ -392,6 +392,7 @@ export default {
|
|
|
|
|
|
async created() {
|
|
async created() {
|
|
await this.getWarehouseList();
|
|
await this.getWarehouseList();
|
|
|
|
+ // await this.getListStock()
|
|
if(this.listItem) {
|
|
if(this.listItem) {
|
|
this.getDetail();
|
|
this.getDetail();
|
|
}else {
|
|
}else {
|
|
@@ -401,6 +402,11 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getListStock(){
|
|
|
|
+ getListStock({customerId:JSON.parse(localStorage.getItem("supply_user")).customerId}).then(res=>{
|
|
|
|
+ console.log(res,'123');
|
|
|
|
+ })
|
|
|
|
+ },
|
|
getDate() {
|
|
getDate() {
|
|
var date = new Date();
|
|
var date = new Date();
|
|
var seperator1 = "-";
|
|
var seperator1 = "-";
|