|
@@ -130,13 +130,14 @@
|
|
|
<span style="color: #E6A23C; margin-left: 10px">· 非制造商</span>
|
|
<span style="color: #E6A23C; margin-left: 10px">· 非制造商</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
- <el-row>
|
|
|
|
|
|
|
+ <el-row v-for="(item1,index) in dynamicTableColumnsCount" :key="index">
|
|
|
<el-col :span="6" v-for="(item,i) in dynamicTableColumns" :key="i">
|
|
<el-col :span="6" v-for="(item,i) in dynamicTableColumns" :key="i">
|
|
|
- <el-form-item :label="item.label" :class="isManuf(item.IsManuf)">
|
|
|
|
|
|
|
+ <el-form-item v-if="index > 0 && i < index * 4 && i > index * 4 - 5" :label="item.label" :class="isManuf(item.IsManuf)">
|
|
|
<el-switch v-model="formData[item.prop]" active-value="1" inactive-value="0"></el-switch>
|
|
<el-switch v-model="formData[item.prop]" active-value="1" inactive-value="0"></el-switch>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
+
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
<el-dialog title="物资类业务列表" :visible.sync="goodsDialog" top="5vh">
|
|
<el-dialog title="物资类业务列表" :visible.sync="goodsDialog" top="5vh">
|
|
@@ -259,6 +260,7 @@
|
|
|
ModifiedBy: '',
|
|
ModifiedBy: '',
|
|
|
},
|
|
},
|
|
|
dynamicTableColumns: [],
|
|
dynamicTableColumns: [],
|
|
|
|
|
+ dynamicTableColumnsCount: [],
|
|
|
checkList: []
|
|
checkList: []
|
|
|
//下拉选择项
|
|
//下拉选择项
|
|
|
//wellNoOptions: [],
|
|
//wellNoOptions: [],
|
|
@@ -293,6 +295,8 @@
|
|
|
setapi.initGoodTableHeader(this.$axios).then(res => {
|
|
setapi.initGoodTableHeader(this.$axios).then(res => {
|
|
|
|
|
|
|
|
this.dynamicTableColumns = res.data.items
|
|
this.dynamicTableColumns = res.data.items
|
|
|
|
|
+ let count = Math.ceil(this.dynamicTableColumns.length/4) // (向上取整)
|
|
|
|
|
+ this.dynamicTableColumnsCount = this.dynamicTableColumns.slice(0,count + 1)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
selectgood () {
|
|
selectgood () {
|