|
@@ -52,7 +52,7 @@
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
>
|
|
>
|
|
- <a-select v-decorator="['oldOrNew', {rules: [{required: true, message: '厂区不能为空'}]}]" >
|
|
|
|
|
|
+ <a-select v-decorator="['oldOrNew', {rules: [{required: true, message: '厂区不能为空'}]}]" @change="setTree">
|
|
<a-select-option
|
|
<a-select-option
|
|
v-for="(label,value) in flagMap"
|
|
v-for="(label,value) in flagMap"
|
|
:key="value"
|
|
:key="value"
|
|
@@ -62,6 +62,22 @@
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
+ <a-col :sm="20" >
|
|
|
|
+ <a-form-item
|
|
|
|
+ label="项目:"
|
|
|
|
+ :labelCol="BaseTool.Constant.labelCol"
|
|
|
|
+ :wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
|
+ >
|
|
|
|
+ <a-select v-decorator="['projectId']" placeholder="请选择">
|
|
|
|
+ <a-select-option
|
|
|
|
+ v-for="{name,id} in treeData"
|
|
|
|
+ :key="id"
|
|
|
|
+ :label="name"
|
|
|
|
+ :value="id">{{ name }}
|
|
|
|
+ </a-select-option>
|
|
|
|
+ </a-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
<a-col :sm="20" >
|
|
<a-col :sm="20" >
|
|
<a-form-item
|
|
<a-form-item
|
|
label="设备位号"
|
|
label="设备位号"
|
|
@@ -136,6 +152,7 @@ import { addPurchaseOrder2 } from '@/api/purchase/purchase-order'
|
|
import SbInfoSelectModal from './SbInfoSelectModal'
|
|
import SbInfoSelectModal from './SbInfoSelectModal'
|
|
import SpareStoreSelectModal from '@/views/store/sparestore/modules/SpareStoreSelectModalYY.vue'
|
|
import SpareStoreSelectModal from '@/views/store/sparestore/modules/SpareStoreSelectModalYY.vue'
|
|
import BomSpareStoreSelectModal from './SpareStoreSelectModalYY.vue'
|
|
import BomSpareStoreSelectModal from './SpareStoreSelectModalYY.vue'
|
|
|
|
+import { fetchSbTypeTree } from '@/api/project/project'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'BaseFillGather',
|
|
name: 'BaseFillGather',
|
|
@@ -151,6 +168,7 @@ export default {
|
|
visible: false,
|
|
visible: false,
|
|
current: 0,
|
|
current: 0,
|
|
data: [],
|
|
data: [],
|
|
|
|
+ treeData: [],
|
|
columns: [
|
|
columns: [
|
|
{
|
|
{
|
|
title: '序号',
|
|
title: '序号',
|
|
@@ -202,6 +220,7 @@ export default {
|
|
typeMap: {},
|
|
typeMap: {},
|
|
ipqcMap: [],
|
|
ipqcMap: [],
|
|
flagMap: {},
|
|
flagMap: {},
|
|
|
|
+ tokenType: 1,
|
|
model: {},
|
|
model: {},
|
|
sbIds: [],
|
|
sbIds: [],
|
|
rows: [],
|
|
rows: [],
|
|
@@ -216,6 +235,7 @@ export default {
|
|
created () {
|
|
created () {
|
|
this.flagMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.PROJECT_NEW_AND_OLD)
|
|
this.flagMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.PROJECT_NEW_AND_OLD)
|
|
this.typeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LONG_YAN_PURCHASE_TYPE)
|
|
this.typeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LONG_YAN_PURCHASE_TYPE)
|
|
|
|
+ this.setTree(1)
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
base (record) {
|
|
base (record) {
|
|
@@ -240,6 +260,15 @@ export default {
|
|
}))
|
|
}))
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ setTree (val) {
|
|
|
|
+ console.log(val)
|
|
|
|
+ fetchSbTypeTree({
|
|
|
|
+ flag: val,
|
|
|
|
+ type: 2
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ this.treeData = res.data
|
|
|
|
+ })
|
|
|
|
+ },
|
|
save () {
|
|
save () {
|
|
const params = {
|
|
const params = {
|
|
...this.params,
|
|
...this.params,
|