|
@@ -41,12 +41,9 @@
|
|
|
<!-- 新增、修改、删除、复制 -->
|
|
|
<el-col :span="1.5">
|
|
|
<el-button-group>
|
|
|
- <!-- <el-button :size="size" @click="handleInster">新增</el-button> -->
|
|
|
<el-button :size="size" @click="handleBasicEdit"
|
|
|
>修改</el-button
|
|
|
>
|
|
|
- <!-- <el-button :size="size" @click="handleDel">删除</el-button> -->
|
|
|
- <!-- <el-button :size="size" @click="handleCopy">复制</el-button> -->
|
|
|
</el-button-group>
|
|
|
</el-col>
|
|
|
|
|
@@ -140,7 +137,6 @@
|
|
|
|
|
|
<div class="md-content" :key="basicData.value.id">
|
|
|
<el-form :inline="true" label-position="right" :model="basicData.value">
|
|
|
- <!-- <el-form-item label="所属组织"></el-form-item> -->
|
|
|
<el-form-item label="物料编码">
|
|
|
<el-input
|
|
|
v-model="basicData.value.code"
|
|
@@ -162,7 +158,6 @@
|
|
|
size="mini"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
- <!-- <el-form-item label="版本号"></el-form-item> -->
|
|
|
</el-form>
|
|
|
|
|
|
<dr-tabs :tabList="detailsTabs" :handleTabClick="handleMainTabClick">
|
|
@@ -733,10 +728,6 @@
|
|
|
<div slot="empty"></div>
|
|
|
</el-select>
|
|
|
|
|
|
- <!-- <el-select size="mini" v-else-if="mt.attribute == 'select' && mt.dictId" placeholder="请选择"
|
|
|
- :disabled="!(materialType.isEdit && mt.edit)" v-model="scope.row[mt.prop]" :key="scope.row[mt.prop]">
|
|
|
- <el-option v-if="mt.dictId" v-for="d in mt.dictId" :key="d.dictValue" :label="d.dictLabel"
|
|
|
- :value="d.dictValue"></el-option></el-select> -->
|
|
|
|
|
|
<!-- 其他类型 -->
|
|
|
<el-input
|
|
@@ -785,7 +776,6 @@
|
|
|
<el-button :size="size" @click="handleOtherEdit('form')"
|
|
|
>修改</el-button
|
|
|
>
|
|
|
- <!-- <el-button :size="size" @click="handleOtherDel">删除</el-button> -->
|
|
|
</el-button-group>
|
|
|
<el-button-group>
|
|
|
<el-button :size="size" @click="handleOtherRefresh"
|
|
@@ -1311,27 +1301,6 @@ export default {
|
|
|
// path: `/basic/material/basicFile`,
|
|
|
// });
|
|
|
},
|
|
|
- // 附件按钮
|
|
|
- handleFile() {
|
|
|
- console.log("附件按钮");
|
|
|
- },
|
|
|
- // 改变分页情况
|
|
|
- handleChangePage(type) {
|
|
|
- switch (type) {
|
|
|
- case "first":
|
|
|
- console.log("第一页");
|
|
|
- break;
|
|
|
- case "pre":
|
|
|
- console.log("上一页");
|
|
|
- break;
|
|
|
- case "next":
|
|
|
- console.log("下一页");
|
|
|
- break;
|
|
|
- case "end":
|
|
|
- console.log("最后页");
|
|
|
- break;
|
|
|
- }
|
|
|
- },
|
|
|
// 切换主信息标签
|
|
|
handleMainTabClick(e) {
|
|
|
this.activeMainTab = detailsTabs[e.index].code;
|
|
@@ -1344,7 +1313,6 @@ export default {
|
|
|
},
|
|
|
// 切换副表信息
|
|
|
handleViceTabClick(e) {
|
|
|
- // console.log(this.basicMessage[e.index], '切换标签');
|
|
|
this.activeViceTab = this.basicMessage[e.index].code;
|
|
|
|
|
|
switch (this.activeViceTab) {
|
|
@@ -1384,7 +1352,6 @@ export default {
|
|
|
let activeTab = this.detailsTabs.filter(
|
|
|
(item) => item.code == this.activeMainTab
|
|
|
)[0];
|
|
|
- console.log(activeTab, "activeTab");
|
|
|
this.otherDeatils.title = activeTab.label;
|
|
|
|
|
|
this.getOtherListDetails(activeTab.code, this.otherDeatils.queryKey);
|
|
@@ -1491,54 +1458,6 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- // 添加参照中的label
|
|
|
- // handleAddReferLabel(dataName) {
|
|
|
- // let _this = this;
|
|
|
- // this[dataName].form.map(item => {
|
|
|
- // // 查参照
|
|
|
- // if (item.apiUrl && item.apiUrl != '') {
|
|
|
-
|
|
|
- // let param = {};
|
|
|
-
|
|
|
- // if (item.relevance && item.relevance != '') {
|
|
|
- // let reList = item.relevance.split(',');
|
|
|
- // console.log(reList, 'reList-------------------');
|
|
|
- // reList.forEach(i => {
|
|
|
- // param[i] = this.basicData.value[i]
|
|
|
- // })
|
|
|
- // console.log(param, 'param/////////////////////////');
|
|
|
- // }
|
|
|
-
|
|
|
- // _this.getExecuteMethods(item.apiUrl, param, (data) => {
|
|
|
- // let { tableBody } = data;
|
|
|
-
|
|
|
- // // 维护物料类别 --- 属于列表中获取label
|
|
|
- // if (dataName == 'materialType') {
|
|
|
-
|
|
|
- // _this[dataName].value.length && (_this[dataName].value = _this[dataName].value.map(d => {
|
|
|
-
|
|
|
- // let Blabel = tableBody.filter((t) => t.id == d[item.prop])[0];
|
|
|
- // console.log(Blabel, 'Blabel``````````````````````````');
|
|
|
- // d[`${item.prop}Label`] = (Blabel && Blabel.name) || Blabel || '';
|
|
|
- // return d;
|
|
|
- // }))
|
|
|
-
|
|
|
- // } else {
|
|
|
-
|
|
|
- // let Blabel = tableBody.filter((t) => t.id == _this[dataName].value[item.prop])[0];
|
|
|
- // console.log(Blabel, 'Blabel``````````````````````````');
|
|
|
- // _this[dataName].value[`${item.prop}Label`] = (Blabel && Blabel.name) || Blabel || '';
|
|
|
- // }
|
|
|
-
|
|
|
- // // this.count++;
|
|
|
- // this.loading = false;
|
|
|
- // console.log(_this[dataName].value, `${dataName}//////////////////////`);
|
|
|
- // })
|
|
|
- // }
|
|
|
- // })
|
|
|
- // this.materialType.loading = false;
|
|
|
-
|
|
|
- // },
|
|
|
|
|
|
// 查询财务信息列表
|
|
|
async getFinanceList(materialId) {
|
|
@@ -2021,16 +1940,6 @@ export default {
|
|
|
// })
|
|
|
console.log(this.detailsTabs, "this.detailsTabs ");
|
|
|
},
|
|
|
- // 删除
|
|
|
- handleDel() {
|
|
|
- console.log("删除----基本信息");
|
|
|
- },
|
|
|
- // 复制
|
|
|
- handleCopy() {
|
|
|
- console.log("复制");
|
|
|
- },
|
|
|
- //查询
|
|
|
- handleQuery() {},
|
|
|
// 刷新
|
|
|
handleRefresh() {
|
|
|
console.log("刷新");
|
|
@@ -2039,15 +1948,6 @@ export default {
|
|
|
this.$refs.medcineRef.clearValidate();
|
|
|
this.handleRest();
|
|
|
},
|
|
|
- // 过滤
|
|
|
- handleFilter(e) {
|
|
|
- console.log(e, "过滤");
|
|
|
- },
|
|
|
- filterCondition(type) {
|
|
|
- return {
|
|
|
- type,
|
|
|
- };
|
|
|
- },
|
|
|
// 维护物料类别
|
|
|
handleMaterialType() {
|
|
|
console.log("维护物料类别");
|
|
@@ -2127,9 +2027,6 @@ export default {
|
|
|
// 保存修改
|
|
|
handleSave() {
|
|
|
console.log("保存修改");
|
|
|
- // this.$refs['basicMessageRef'].validate(async (valid) => {
|
|
|
-
|
|
|
- // if (valid) {
|
|
|
this.loading = true;
|
|
|
// 普通保存修改
|
|
|
this.updateButtonGroup &&
|
|
@@ -2144,16 +2041,7 @@ export default {
|
|
|
this.maintainNewVersion = false;
|
|
|
this.handleRefresh();
|
|
|
});
|
|
|
- // } else {
|
|
|
- // this.$notify.error({
|
|
|
- // title: '错误',
|
|
|
- // message: '存在必填项未填写!'
|
|
|
- // });
|
|
|
-
|
|
|
- // console.log('error submit!!');
|
|
|
- // return false;
|
|
|
- // }
|
|
|
- // })
|
|
|
+
|
|
|
},
|
|
|
// 物料类别列表选中
|
|
|
handleSelectionType(list) {
|
|
@@ -2339,10 +2227,6 @@ export default {
|
|
|
handleCollapseChange(val) {
|
|
|
console.log(val, "折叠菜单改变");
|
|
|
},
|
|
|
- // 更新导入
|
|
|
- handleUpdateImport() {
|
|
|
- console.log("更新导入");
|
|
|
- },
|
|
|
// 确认弹窗操作
|
|
|
async handleComfirmOption() {
|
|
|
console.log("确认弹窗操作");
|
|
@@ -2536,7 +2420,6 @@ export default {
|
|
|
},
|
|
|
// 取消-关闭参照弹窗
|
|
|
handleConcalRefer() {
|
|
|
- console.log("关闭参照弹窗");
|
|
|
this.MoreDataDialog.show = false;
|
|
|
this.MoreDataDialog.key = "";
|
|
|
},
|