| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <template>
- <div>
- <div class="basic-details-title border-none">
- <span class="border-span">计划配置</span>
- </div>
- <el-descriptions
- :label-style="labelStyle"
- :contentStyle="contentStyle"
- title=""
- :column="4"
- size="medium"
- border
- >
- <el-descriptions-item>
- <template slot="label">固定提前期</template>
- {{ idata.fixLeadTime }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template slot="label">变动提前期</template>
- {{ idata.changeLeadTime }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template slot="label">检验提前期</template>
- {{ idata.checkLeadTime }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template slot="label">累计提前期</template>
- {{ idata.cumLeadTime }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template slot="label">提前期单位</template>
- {{ idata.unit }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template slot="label">订货间隔期</template>
- {{ idata.orderIntervalTime ? idata.orderIntervalTime + '/' : null
- }}{{ idata.orderIntervalUnit }}
- </el-descriptions-item>
- </el-descriptions>
- </div>
- </template>
- <script>
- import { getDetailInfo } from '@/api/material/list';
- import { getUserPage } from '@/api/system/organization';
- import { sysDict } from '@/utils/sys';
- export default {
- data() {
- return {
- labelStyle: {
- width: '200px'
- },
- contentStyle: {
- width: '400px'
- },
- idata: {}
- };
- },
- methods: {
- async getDetailInfoAugr(data) {
- this.idata = {
- ...data,
- orderIntervalUnit: await sysDict(
- '提前期单位',
- data.orderIntervalUnit
- ),
- unit: await sysDict('提前期单位', data.unit)
- };
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- .baseinfo-container {
- background-color: #fff;
- padding: 0px 20px 20px;
- .content {
- padding: 0 20px;
- }
- .basic-details-title {
- font-size: 16px;
- margin: 15px 0;
- }
- .upload-container {
- display: flex;
- .img-box {
- width: 280px;
- height: 342px;
- border: 1px solid rgba(215, 215, 215, 1);
- display: flex;
- justify-content: center;
- align-items: center;
- img {
- max-width: 100%;
- }
- }
- .file-list {
- margin-left: 50px;
- flex: 1;
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- justify-items: baseline;
- align-content: flex-start;
- .file-box {
- width: 30%;
- margin-bottom: 20px;
- height: 57px;
- text-align: center;
- line-height: 55px;
- border: 1px solid #1890ff;
- color: #1890ff;
- cursor: pointer;
- &.disabled {
- cursor: not-allowed;
- border-color: rgba(215, 215, 215, 1);
- color: rgba(215, 215, 215, 1);
- }
- }
- }
- }
- }
- </style>
|