|
|
@@ -120,6 +120,12 @@
|
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['inventory:goods:remove']"
|
|
|
>删除</el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-date"
|
|
|
+ @click="goodsTrack(scope.row.goodsCode)"
|
|
|
+ >出入库轨迹</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -184,15 +190,31 @@
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+
|
|
|
+ <el-dialog title="物品出入库轨迹" :visible.sync="trackOpen" width="500px" append-to-body>
|
|
|
+ <el-table
|
|
|
+ :data="billsDetailsData"
|
|
|
+ style="width: 100%">
|
|
|
+ <el-table-column prop="createTime" label="时间" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="billsId" label="关联单据id" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="goodsStatus" label="状态" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.inventory_goods_status" :value="scope.row.goodsStatus"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {listGoods, addGoods, getGoods,updateGoods,delGoods} from "@/api/inventory/goods"
|
|
|
+import {selectByGoodsCode} from "@/api/inventory/bills"
|
|
|
|
|
|
export default {
|
|
|
name: "Goods",
|
|
|
- dicts: ['inventory_goods_status', 'inventory_goods_type','inventory_ware_house'],
|
|
|
+ dicts: ['inventory_goods_status', 'inventory_goods_type','inventory_ware_house','inventory_bills_type'],
|
|
|
data() {
|
|
|
return {
|
|
|
// 遮罩层
|
|
|
@@ -230,13 +252,22 @@ export default {
|
|
|
},
|
|
|
lastKeyPressTime: 0,
|
|
|
manualInputThreshold: 300, // 毫秒,手动输入的时间间隔阈值
|
|
|
- expectedCharacters: '1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ', // 预期的字符集
|
|
|
+ expectedCharacters: '1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ', // 预期的字符集
|
|
|
+ trackOpen: false,
|
|
|
+ billsDetailsData: []
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ goodsTrack(goodsCode) {
|
|
|
+ selectByGoodsCode(goodsCode).then(resp => {
|
|
|
+ console.log(resp)
|
|
|
+ this.billsDetailsData = resp.data
|
|
|
+ this.trackOpen = true
|
|
|
+ })
|
|
|
+ },
|
|
|
/** 查询物品列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|