This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import $ from 'jquery'; | |
import Swiper from 'swiper'; | |
import 'swiper/dist/css/swiper.min.css'; | |
$(function () { | |
var mySwiper = null; | |
// page load complete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="pug"> | |
el-table(:data="data" border) | |
el-table-column(label="批次") | |
template(scope="scope") | |
el-autocomplete(v-model="scope.row.rowTempModel.batch" :maxlength="50" style="width:100%;" | |
:fetch-suggestions="(queryString, cb) => {\ | |
searchBatchOpt(scope.row, scope.$index).then(batchs => { \ | |
let suggestions = batchs.map(batch => ({value: batch})); \ | |
queryString ? cb(suggestions.filter(suggestion => suggestion.value.indexOf(queryString) > -1)) : cb(suggestions.slice(0,6))\ | |
});\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="pug"> | |
#date-grid | |
table.date-grid | |
thead | |
th 班次\日期 | |
th(v-for="num in colNum" :key="num.$index") {{ num }} | |
tbody | |
tr(v-for="(classTime, rowIndex) in classTimeList" :key="rowIndex") | |
th {{ classTime.name }} | |
template(v-for="(cell, colIndex) in cells[rowIndex]") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<crud :data="data" :form="form" :rules="rules" :fields="mapItems" | |
:editing="editing" @open="handleOpen" @close="handleClose" | |
@create="handleCreate" @update="handleUpdate" @destroy="handleDestroy" @submit="handleSubmit"/> | |
</div> | |
</template> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<el-pagination | |
v-if="pagination.total > 10" | |
@size-change="handleSizeChange" | |
@current-change="handleCurrentChange" | |
:current-page="pagination.current" | |
:page-sizes="pagination.sizes" | |
:page-size="pagination.size" | |
layout="sizes, prev, pager, next" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { api } from './configure' | |
export const Accessory = api('accessory') | |
export const Supplier = api('supplier') | |
export const Device = api('device') | |
export const Dict = api('dict') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watch: { | |
'form.amount'(val, oldVal) { | |
if (!Number.isInteger(val)) { | |
this.$nextTick(() => { | |
this.form.amount = parseInt(val, 10) | |
}) | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import settings from 'settings' | |
export const baseUrls = new ProjectSettings(settings, [ | |
'ibasic-api', 'iqc-api' | |
]).baseUrls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { XTRequest } from './configure' | |
const IBASIC_API_BASE_URL = 'http://192.168.2.103:5555/ibasic-api' | |
export const iBaseAPI = new XTRequest(IBASIC_API_BASE_URL, ['custom', 'supplier', 'warehouse']).models | |
const api = iBaseAPI.custom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="pug"> | |
tb-wrapper(title='配方工艺明细') | |
el-table(v-loading='loading', :data='data', border stripe) | |
el-table-column(label='原料', width='200px', prop='material.materialName' show-overflow-tooltip) | |
el-table-column(label='称料顺序', width='120px', align='center') | |
template(slot-scope="scope") | |
span(v-if="!scope.row.__editable__") {{ scope.row.weightSeq }} | |
m-input-number(v-else int :max="1000" v-model="scope.row.__form__.weightSeq" style="width:96%;") | |
el-table-column(label='投料顺序', width='120px', align='center') | |
template(slot-scope="scope") |
OlderNewer