|
@@ -1,33 +1,21 @@
|
|
<template>
|
|
<template>
|
|
<zj-tab-page ref="tabPage" :defaultActives="[{ key: 'list', label: $route.meta.title + '-列表', essential: true }]">
|
|
<zj-tab-page ref="tabPage" :defaultActives="[{ key: 'list', label: $route.meta.title + '-列表', essential: true }]">
|
|
<template slot-scope="{ activeKey, data }">
|
|
<template slot-scope="{ activeKey, data }">
|
|
- <div
|
|
|
|
- :style="{
|
|
|
|
- width: '100%',
|
|
|
|
- height: activeKey == 'list' ? '100%' : '0px',
|
|
|
|
- overflow: 'hidden'
|
|
|
|
- }"
|
|
|
|
- >
|
|
|
|
- <template-page
|
|
|
|
- ref="pageRef"
|
|
|
|
- :get-list="getList"
|
|
|
|
- :table-attributes="tableAttributes"
|
|
|
|
- :table-events="tableEvents"
|
|
|
|
- :options-evens-group="optionsEvensGroup"
|
|
|
|
- :moreParameters="moreParameters"
|
|
|
|
- :column-parsing="columnParsing"
|
|
|
|
- :exportList="exportList"
|
|
|
|
- :operation="operation()"
|
|
|
|
- >
|
|
|
|
|
|
+ <div :style="{
|
|
|
|
+ width: '100%',
|
|
|
|
+ height: activeKey == 'list' ? '100%' : '0px',
|
|
|
|
+ overflow: 'hidden'
|
|
|
|
+ }">
|
|
|
|
+ <template-page ref="pageRef" :get-list="getList" :table-attributes="tableAttributes" :table-events="tableEvents"
|
|
|
|
+ :options-evens-group="optionsEvensGroup" :moreParameters="moreParameters" :column-parsing="columnParsing"
|
|
|
|
+ :exportList="exportList" :operation="operation()">
|
|
</template-page>
|
|
</template-page>
|
|
</div>
|
|
</div>
|
|
<div v-if="~['add', 'edit'].indexOf(activeKey)" style="box-sizing: border-box; padding: 16px">
|
|
<div v-if="~['add', 'edit'].indexOf(activeKey)" style="box-sizing: border-box; padding: 16px">
|
|
<zj-form-container ref="formRef" :form-data="formData" :form-attributes="{ size: 'mini' }">
|
|
<zj-form-container ref="formRef" :form-data="formData" :form-attributes="{ size: 'mini' }">
|
|
<zj-form-module title="" label-width="100px" :form-data="formData" :form-items="formItems">
|
|
<zj-form-module title="" label-width="100px" :form-data="formData" :form-items="formItems">
|
|
- <div
|
|
|
|
- slot="internal-bottom"
|
|
|
|
- style="text-align: right; margin-bottom: 20px; box-sizing: border-box; padding-right: 10px"
|
|
|
|
- >
|
|
|
|
|
|
+ <div slot="internal-bottom"
|
|
|
|
+ style="text-align: right; margin-bottom: 20px; box-sizing: border-box; padding-right: 10px">
|
|
<el-button size="mini" @click="data.removeTab()">取消</el-button>
|
|
<el-button size="mini" @click="data.removeTab()">取消</el-button>
|
|
<el-button size="mini" type="primary" @click="queding(data.removeTab)">确定</el-button>
|
|
<el-button size="mini" type="primary" @click="queding(data.removeTab)">确定</el-button>
|
|
</div>
|
|
</div>
|
|
@@ -82,6 +70,7 @@ export default {
|
|
unit: '',
|
|
unit: '',
|
|
isVirtyual: '',
|
|
isVirtyual: '',
|
|
remark: '',
|
|
remark: '',
|
|
|
|
+ factoryNo: "",
|
|
items: []
|
|
items: []
|
|
},
|
|
},
|
|
isEditIndex: -1,
|
|
isEditIndex: -1,
|
|
@@ -252,6 +241,19 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ name: 'el-input',
|
|
|
|
+ md: 6,
|
|
|
|
+ attributes: {
|
|
|
|
+ disabled: false,
|
|
|
|
+ placeholder: '请输入'
|
|
|
|
+ },
|
|
|
|
+ formItemAttributes: {
|
|
|
|
+ label: '厂物料编码',
|
|
|
|
+ prop: 'factoryNo',
|
|
|
|
+ rules: []
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
md: 6,
|
|
md: 6,
|
|
name: 'el-radio',
|
|
name: 'el-radio',
|
|
options: [
|
|
options: [
|