|
|
@@ -46,6 +46,15 @@
|
|
|
@click="overbookingFn(urlParameter)"
|
|
|
>去下单</van-button
|
|
|
>
|
|
|
+ <van-button
|
|
|
+ type="info"
|
|
|
+ style="background: rgb(0, 87, 186); color: #fff; margin: 10px; border-radius: 5px"
|
|
|
+ size="small"
|
|
|
+ plain
|
|
|
+ class="centerBtn"
|
|
|
+ @click="wuliaoLog(urlParameter)"
|
|
|
+ >物料历史</van-button
|
|
|
+ >
|
|
|
<van-button
|
|
|
type="info"
|
|
|
style="
|
|
|
@@ -110,6 +119,20 @@
|
|
|
</div>
|
|
|
</van-dialog>
|
|
|
<div id="allmap"></div>
|
|
|
+ <!-- 物料历史列表 -->
|
|
|
+ <el-dialog
|
|
|
+ :visible.sync="wuliaoTable"
|
|
|
+ width="90%"
|
|
|
+ :append-to-body="true"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ @close="wuliaoTableClose"
|
|
|
+ custom-class="wuliaoTable">
|
|
|
+ <el-table :data="wuliaoList" border style="width: 100%">
|
|
|
+ <el-table-column label="物料名称" prop="materialDataName" />
|
|
|
+ <el-table-column label="发放时间" prop="issuerTime" />
|
|
|
+ <el-table-column label="发放数量" prop="inventoryNum" />
|
|
|
+ </el-table>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -122,6 +145,7 @@ import {
|
|
|
suishenbangStoreSale,
|
|
|
stopVisit,
|
|
|
buryingPoint,
|
|
|
+ getMaterialHistory,
|
|
|
} from '@/api/index';
|
|
|
import axios from 'axios';
|
|
|
import { saveVisitsParams, getOrderUrlByStoreId } from '@/api/inventory';
|
|
|
@@ -173,6 +197,8 @@ export default {
|
|
|
id: '89',
|
|
|
startTime: null,
|
|
|
timeN: null,
|
|
|
+ wuliaoTable: false,
|
|
|
+ wuliaoList: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -676,6 +702,24 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
+ // 物料历史
|
|
|
+ wuliaoLog() {
|
|
|
+ this.toastLoading(0, '加载中...', true);
|
|
|
+ getMaterialHistory({ storeId: this.storeId })
|
|
|
+ .then((res) => {
|
|
|
+ this.toastLoading().clear();
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
+ this.wuliaoList = res.data;
|
|
|
+ this.wuliaoTable = true;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.toastLoading().clear();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ wuliaoTableClose() {
|
|
|
+ this.wuliaoTable = false;
|
|
|
+ },
|
|
|
},
|
|
|
destroyed() {
|
|
|
this.timeN = null;
|