Merge remote-tracking branch 'origin/dev_ksck' into dev_ksck

dev_ksck2.0
chenhc 1 year ago
commit d37972bc83

@ -5,7 +5,7 @@ VUE_APP_TITLE = UDI管理系统
ENV = 'development'
# 开发环境
VUE_APP_BASE_API = 'http://192.168.0.166:9991'
VUE_APP_BASE_API = 'http://127.0.0.1:9991'
VUE_APP_SYNC_API ="http://127.0.0.1:10001"

@ -27,7 +27,7 @@ ENV = 'production'
# 平潭正式
# VUE_APP_BASE_API = 'http://55.55.0.62:9150/UDI_WMS_MC/'
VUE_APP_BASE_API = 'http://55.55.0.62:9150/UDI_WMS_MC/'
# 漳州中医院
# VUE_APP_BASE_API = 'http://192.168.240.119:9150/UDI_WMS_MC/'
@ -41,7 +41,7 @@ ENV = 'production'
# 长泰医院
VUE_APP_BASE_API = 'http://192.168.6.189:9150/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://192.168.6.189:9150/UDI_WMS_MC/'
# 三明大田医院
# VUE_APP_BASE_API = 'http://172.20.124.4:9150/UDI_WMS_MC/'

@ -15,7 +15,7 @@
<el-option label="客户" value="1"></el-option>
<el-option label="供应商" value="2"></el-option>
<el-option label="内部科室" value="3"></el-option>
<!-- <el-option label="特殊科室" value="3"></el-option>-->
<!-- <el-option label="特殊科室" value="3"></el-option>-->
<el-option label="特殊往来" value="4"></el-option>
</el-select>
</el-form-item>

@ -373,6 +373,10 @@ export default {
}
,
created() {
this.filterQuery.name = this.$route.query.cpmctymc;
if (this.filterQuery.name != null) {
this.getList()
}
this.getList();
}
}

@ -42,158 +42,159 @@
size="mini"
label-width="100px"
>
<!-- <el-row>-->
<!-- <el-col :span="18">-->
<!-- <el-form-item class="query-form-item" label="UDI码:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.udiCode"-->
<!-- style="width: 97%"-->
<!-- placeholder="请扫描或输入UDI码"-->
<!-- clearable="true"-->
<!-- @keyup.enter.native="keyup_submit($event)"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="最小销售标识:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.unionCode"-->
<!-- placeholder="请输入最小销售标识"-->
<!-- style="width: 90%"-->
<!-- clearable="true"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="物资名称:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.cpmctymc"-->
<!-- placeholder="请输入物资名称"-->
<!-- clearable="true"-->
<!-- style="width: 90%"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="规格型号:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.ggxh"-->
<!-- placeholder="请输入规格型号"-->
<!-- clearable="true"-->
<!-- style="width: 90%"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="对照条件:">-->
<!-- <el-select-->
<!-- v-model="filterQuery.filterType"-->
<!-- placeholder="请选择过滤对照条件"-->
<!-- style="width: 90%"-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="item in filterList"-->
<!-- :key="item.filterType"-->
<!-- :label="item.sysName"-->
<!-- :value="item.filterType"-->
<!-- >-->
<!-- <span style="float: left">{{ item.sysName }}</span>-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="注册备案人:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.ylqxzcrbarmc"-->
<!-- placeholder="请输入注册备案人"-->
<!-- style="width: 90%"-->
<!-- clearable="true"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="第三方编码:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.thrPiId"-->
<!-- placeholder="请输入第三方主系统编码"-->
<!-- style="width: 90%"-->
<!-- clearable="true"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="集采状态:">-->
<!-- <el-select-->
<!-- v-model="filterQuery.groupBuy"-->
<!-- placeholder="请选择集采状态"-->
<!-- clearable-->
<!-- style="width: 90%"-->
<!-- >-->
<!-- <el-option label="全部" value=""></el-option>-->
<!-- <el-option label="集采" value="true"></el-option>-->
<!-- <el-option label="非集采" value="false"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="可配送状态:">-->
<!-- <el-select-->
<!-- v-model="filterQuery.dispatch"-->
<!-- placeholder="请选择可配送状态"-->
<!-- clearable-->
<!-- style="width: 90%"-->
<!-- >-->
<!-- <el-option label="全部" value=""></el-option>-->
<!-- <el-option label="可配送" value="true"></el-option>-->
<!-- <el-option label="不可配送" value="false"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="注册/备案号:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.zczbhhzbapzbh"-->
<!-- placeholder="请输入注册/备案号"-->
<!-- style="width: 90%"-->
<!-- clearable="true"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="生产企业:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.manufactory"-->
<!-- placeholder="请输入生产企业"-->
<!-- style="width: 90%"-->
<!-- clearable="true"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="是否在用:">-->
<!-- <el-select-->
<!-- v-model="filterQuery.isDisable"-->
<!-- placeholder="请选择是否在用"-->
<!-- clearable-->
<!-- style="width: 90%"-->
<!-- >-->
<!-- <el-option label="在用" value="false"></el-option>-->
<!-- <el-option label="停用" value="true"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row>-->
<!-- <el-col :span="18">-->
<!-- <el-form-item class="query-form-item" label="UDI码:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.udiCode"-->
<!-- style="width: 97%"-->
<!-- placeholder="请扫描或输入UDI码"-->
<!-- clearable="true"-->
<!-- @keyup.enter.native="keyup_submit($event)"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="最小销售标识:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.unionCode"-->
<!-- placeholder="请输入最小销售标识"-->
<!-- style="width: 90%"-->
<!-- clearable="true"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="物资名称:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.cpmctymc"-->
<!-- placeholder="请输入物资名称"-->
<!-- clearable="true"-->
<!-- style="width: 90%"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="规格型号:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.ggxh"-->
<!-- placeholder="请输入规格型号"-->
<!-- clearable="true"-->
<!-- style="width: 90%"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="对照条件:">-->
<!-- <el-select-->
<!-- v-model="filterQuery.filterType"-->
<!-- placeholder="请选择过滤对照条件"-->
<!-- style="width: 90%"-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="item in filterList"-->
<!-- :key="item.filterType"-->
<!-- :label="item.sysName"-->
<!-- :value="item.filterType"-->
<!-- >-->
<!-- <span style="float: left">{{ item.sysName }}</span>-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="注册备案人:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.ylqxzcrbarmc"-->
<!-- placeholder="请输入注册备案人"-->
<!-- style="width: 90%"-->
<!-- clearable="true"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="第三方编码:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.thrPiId"-->
<!-- placeholder="请输入第三方主系统编码"-->
<!-- style="width: 90%"-->
<!-- clearable="true"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="集采状态:">-->
<!-- <el-select-->
<!-- v-model="filterQuery.groupBuy"-->
<!-- placeholder="请选择集采状态"-->
<!-- clearable-->
<!-- style="width: 90%"-->
<!-- >-->
<!-- <el-option label="全部" value=""></el-option>-->
<!-- <el-option label="集采" value="true"></el-option>-->
<!-- <el-option label="非集采" value="false"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="可配送状态:">-->
<!-- <el-select-->
<!-- v-model="filterQuery.dispatch"-->
<!-- placeholder="请选择可配送状态"-->
<!-- clearable-->
<!-- style="width: 90%"-->
<!-- >-->
<!-- <el-option label="全部" value=""></el-option>-->
<!-- <el-option label="可配送" value="true"></el-option>-->
<!-- <el-option label="不可配送" value="false"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="注册/备案号:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.zczbhhzbapzbh"-->
<!-- placeholder="请输入注册/备案号"-->
<!-- style="width: 90%"-->
<!-- clearable="true"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="生产企业:">-->
<!-- <el-input-->
<!-- v-model="filterQuery.manufactory"-->
<!-- placeholder="请输入生产企业"-->
<!-- style="width: 90%"-->
<!-- clearable="true"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="是否在用:">-->
<!-- <el-select-->
<!-- v-model="filterQuery.isDisable"-->
<!-- placeholder="请选择是否在用"-->
<!-- clearable-->
<!-- style="width: 90%"-->
<!-- >-->
<!-- <el-option label="在用" value="false"></el-option>-->
<!-- <el-option label="停用" value="true"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList" >
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id">
<template v-for="(item, index) in queryList">
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`" :key="item.id">
<el-input
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
@ -202,7 +203,8 @@
clearable
></el-input>
</el-form-item>
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`">
<el-select v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
@ -215,7 +217,8 @@
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`">
<el-select
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
@ -232,7 +235,8 @@
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`">
<el-date-picker
v-model="dateRange"
:style="`width:${item.width+'px'}`"
@ -245,7 +249,8 @@
:default-time="['00:00:00', '23:59:59']"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`">
<el-date-picker
v-model="filterQuery[item.columnName]"
:style="`width:${item.width+'px'}`"
@ -314,211 +319,211 @@
key="1"
@selection-change="(row) => executeFuc(row,'0',tableObj.handleChangeFuc)"
>
<!-- <el-table-column label="序号" type="index"></el-table-column>-->
<!-- <el-table-column-->
<!-- label="最小销售产品标识"-->
<!-- prop="nameCode"-->
<!-- width="140"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="主系统编码"-->
<!-- prop="mainId"-->
<!-- width="120"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="物资名称"-->
<!-- prop="cpmctymc"-->
<!-- width="160"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="规格型号"-->
<!-- prop="ggxh"-->
<!-- width="160"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="商品名称"-->
<!-- prop="spmc"-->
<!-- width="160"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:spmc')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="商品条码"-->
<!-- prop="sptm"-->
<!-- width="160"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:sptm')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="医保编码"-->
<!-- prop="ybbm"-->
<!-- width="160"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:ybbm')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="计量单位"-->
<!-- prop="measname"-->
<!-- width="160"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:measname')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="注册/备案号"-->
<!-- prop="zczbhhzbapzbh"-->
<!-- width="160"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="注册/备案人"-->
<!-- prop="ylqxzcrbarmc"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle1"-->
<!-- prop="basicPrductRemak1"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak1')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle2"-->
<!-- prop="basicPrductRemak2"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak2')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle3"-->
<!-- prop="basicPrductRemak3"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak3')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle4"-->
<!-- prop="basicPrductRemak4"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak4')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle5"-->
<!-- prop="basicPrductRemak5"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak5')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle6"-->
<!-- prop="basicPrductRemak6"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak6')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle7"-->
<!-- prop="basicPrductRemak7"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak7')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle8"-->
<!-- prop="hslbName"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak8')"-->
<!-- >-->
<!-- &lt;!&ndash; <template slot-scope="scope">&ndash;&gt;-->
<!-- &lt;!&ndash; {{ getHsflMethod(scope.row.basicPrductRemak8) }}&ndash;&gt;-->
<!-- &lt;!&ndash; </template>&ndash;&gt;-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="是否在用"-->
<!-- prop="isDisable"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- >-->
<!-- <template slot-scope="scope">-->
<!-- <el-tag :type="scope.row.isDisable | isDisableFilterType">-->
<!-- {{ isDisableMap[scope.row.isDisable] }}-->
<!-- </el-tag>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="集采状态"-->
<!-- prop="groupBuy"-->
<!-- width="120"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:groupBuy')"-->
<!-- >-->
<!-- <template slot-scope="scope">-->
<!-- <el-tag :type="scope.row.groupBuy | statusFilterType">-->
<!-- {{ groupBuyMap[scope.row.groupBuy] }}-->
<!-- </el-tag>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="可配送状态"-->
<!-- prop="dispatch"-->
<!-- width="120"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:dispatch')"-->
<!-- >-->
<!-- <template slot-scope="scope">-->
<!-- <el-tag :type="scope.row.dispatch | statusFilterType">-->
<!-- {{ dispatchMap[scope.row.dispatch] }}-->
<!-- </el-tag>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column width="180" label="操作" fixed="right">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small" v-if="vueRouteSource==1"-->
<!-- :disabled="scope.row.originUuid != null"-->
<!-- @click.native.stop="intentSelectUdi(scope.row)"-->
<!-- >关联DI-->
<!-- </el-button>-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click.native.stop="handleModifyClick(scope.row)"-->
<!-- >详情-->
<!-- </el-button>-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small" v-if="vueRouteSource==1"-->
<!-- @click.native.stop="diEdit(scope.row)"-->
<!-- >编辑-->
<!-- </el-button>-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small" v-if="vueRouteSource==1"-->
<!-- @click.native.stop="deleteDialog(scope.row)"-->
<!-- >删除-->
<!-- </el-button>-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small" v-if="vueRouteSource==2"-->
<!-- @click.native.stop="uploadThird(scope.row)"-->
<!-- >上传-->
<!-- </el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="序号" type="index"></el-table-column>-->
<!-- <el-table-column-->
<!-- label="最小销售产品标识"-->
<!-- prop="nameCode"-->
<!-- width="140"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="主系统编码"-->
<!-- prop="mainId"-->
<!-- width="120"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="物资名称"-->
<!-- prop="cpmctymc"-->
<!-- width="160"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="规格型号"-->
<!-- prop="ggxh"-->
<!-- width="160"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="商品名称"-->
<!-- prop="spmc"-->
<!-- width="160"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:spmc')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="商品条码"-->
<!-- prop="sptm"-->
<!-- width="160"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:sptm')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="医保编码"-->
<!-- prop="ybbm"-->
<!-- width="160"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:ybbm')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="计量单位"-->
<!-- prop="measname"-->
<!-- width="160"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:measname')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="注册/备案号"-->
<!-- prop="zczbhhzbapzbh"-->
<!-- width="160"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="注册/备案人"-->
<!-- prop="ylqxzcrbarmc"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle1"-->
<!-- prop="basicPrductRemak1"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak1')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle2"-->
<!-- prop="basicPrductRemak2"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak2')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle3"-->
<!-- prop="basicPrductRemak3"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak3')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle4"-->
<!-- prop="basicPrductRemak4"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak4')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle5"-->
<!-- prop="basicPrductRemak5"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak5')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle6"-->
<!-- prop="basicPrductRemak6"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak6')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle7"-->
<!-- prop="basicPrductRemak7"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak7')"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- :label="productRemarkSet.remarkTitle8"-->
<!-- prop="hslbName"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:basicPrductRemak8')"-->
<!-- >-->
<!-- &lt;!&ndash; <template slot-scope="scope">&ndash;&gt;-->
<!-- &lt;!&ndash; {{ getHsflMethod(scope.row.basicPrductRemak8) }}&ndash;&gt;-->
<!-- &lt;!&ndash; </template>&ndash;&gt;-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="是否在用"-->
<!-- prop="isDisable"-->
<!-- width="180"-->
<!-- show-overflow-tooltip-->
<!-- >-->
<!-- <template slot-scope="scope">-->
<!-- <el-tag :type="scope.row.isDisable | isDisableFilterType">-->
<!-- {{ isDisableMap[scope.row.isDisable] }}-->
<!-- </el-tag>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="集采状态"-->
<!-- prop="groupBuy"-->
<!-- width="120"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:groupBuy')"-->
<!-- >-->
<!-- <template slot-scope="scope">-->
<!-- <el-tag :type="scope.row.groupBuy | statusFilterType">-->
<!-- {{ groupBuyMap[scope.row.groupBuy] }}-->
<!-- </el-tag>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="可配送状态"-->
<!-- prop="dispatch"-->
<!-- width="120"-->
<!-- show-overflow-tooltip-->
<!-- v-if="$auth.hasPermi('basic:dispatch')"-->
<!-- >-->
<!-- <template slot-scope="scope">-->
<!-- <el-tag :type="scope.row.dispatch | statusFilterType">-->
<!-- {{ dispatchMap[scope.row.dispatch] }}-->
<!-- </el-tag>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column width="180" label="操作" fixed="right">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small" v-if="vueRouteSource==1"-->
<!-- :disabled="scope.row.originUuid != null"-->
<!-- @click.native.stop="intentSelectUdi(scope.row)"-->
<!-- >关联DI-->
<!-- </el-button>-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click.native.stop="handleModifyClick(scope.row)"-->
<!-- >详情-->
<!-- </el-button>-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small" v-if="vueRouteSource==1"-->
<!-- @click.native.stop="diEdit(scope.row)"-->
<!-- >编辑-->
<!-- </el-button>-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small" v-if="vueRouteSource==1"-->
<!-- @click.native.stop="deleteDialog(scope.row)"-->
<!-- >删除-->
<!-- </el-button>-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small" v-if="vueRouteSource==2"-->
<!-- @click.native.stop="uploadThird(scope.row)"-->
<!-- >上传-->
<!-- </el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
<template v-for="(item, index) in tableHeader">
<el-table-column
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
@ -538,7 +543,7 @@
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<template slot-scope="scope">
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
</template>
</el-table-column>
@ -551,8 +556,10 @@
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{
item.lableRuleObj[scope.row[item.columnName]]
}}</span>
</template>
</el-table-column>
<el-table-column
@ -564,9 +571,12 @@
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-tag :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
<span>{{ item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName] }}</span>
<template slot-scope="scope">
<el-tag
:type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
<span>{{
item.lableRuleObj ? item.lableRuleObj[scope.row[item.columnName]] : scope.row[item.columnName]
}}</span>
</el-tag>
</template>
</el-table-column>
@ -601,7 +611,9 @@
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{
scope.row[item.columnName]
}}</span>
</template>
</el-table-column>
@ -1885,7 +1897,7 @@ export default {
sysList: [],
filterList: [],
options: {
getSysFilter:[]
getSysFilter: []
},
total: 0,
thirdNo: "",
@ -1985,7 +1997,7 @@ export default {
hideSearch() {
this.showSearch = !this.showSearch;
},
keyup_submit(_this,event) {
keyup_submit(_this, event) {
_this.filterQuery.page = 1;
_this.getList();
event.target.select();
@ -2065,7 +2077,7 @@ export default {
});
},
deleteDialog(_this,rowId) {
deleteDialog(_this, rowId) {
_this.$confirm("此操作将永久删除该产品信息, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
@ -2201,7 +2213,7 @@ export default {
});
});
},
intentSelectUdi(_this,val) {
intentSelectUdi(_this, val) {
_this.relId = val.id;
_this.isImportUdi = true;
_this.isImport = true;
@ -2221,7 +2233,7 @@ export default {
this.selectLocalVisible = true;
},
handleSelectionChange(_this,val) {
handleSelectionChange(_this, val) {
_this.multipleSelection = val;
},
@ -2234,7 +2246,7 @@ export default {
this.filterQuery.page = val.page;
this.getList();
},
handleModifyClick(_this,row) {
handleModifyClick(_this, row) {
_this.uuid = row.uuid;
_this.relId = row.id;
_this.isImport = false;
@ -2261,7 +2273,7 @@ export default {
},
uploadMsg(_this,row) {
uploadMsg(_this, row) {
_this.$alert(row.uploadMsg, '上传', {
confirmButtonText: '确定',
callback: action => {
@ -2274,7 +2286,7 @@ export default {
},
uploadThird(_this,row) {
uploadThird(_this, row) {
_this.$confirm('确定上传至第三方系统?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@ -2340,7 +2352,7 @@ export default {
}
},
getSysFilter(_this,query) {
getSysFilter(_this, query) {
sysFilterOptimize()
.then((response) => {
_this.loading = false;
@ -2361,7 +2373,7 @@ export default {
this.editSingleFormat.nameCode = temp.nameCode;
this.editSingleDiDialogVisible = true;
},
diEdit(_this,row) {
diEdit(_this, row) {
_this.uuid = row.uuid;
_this.relId = row.id;
_this.isImport = false;
@ -2487,11 +2499,11 @@ export default {
this.loading = false;
});
},
executeFuc(row,type,clickFuc,value){
return executeFuc(this,row,type,clickFuc,value);
executeFuc(row, type, clickFuc, value) {
return executeFuc(this, row, type, clickFuc, value);
},
executeEval(row,expression,defaultRet){
if(expression){
executeEval(row, expression, defaultRet) {
if (expression) {
return eval(expression);
}
return defaultRet;
@ -2516,8 +2528,9 @@ export default {
// if (this.isChoose != null)
// this.isSelect = this.isChoose;
this.vueRouteSource = this.$route.query.vueRouteSource;
this.findBasicProductSet();
getHead("product","1").then((re) => {
getHead("product", "1").then((re) => {
//
this.tableObj = re.data;
this.tableHeader = re.data.tableList;
@ -2527,7 +2540,13 @@ export default {
});
this.getTerrList();
// this.selectSysParam();
this.getSysFilter(this,"");
this.getSysFilter(this, "");
this.filterQuery.cpmctymc = this.$route.query.cpmctymc;
if (this.filterQuery.cpmctymc != null) {
this.getList()
}
},
};
</script>

@ -1,10 +1,11 @@
<template>
<div>
<el-card>
<el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" label-width="120px">
<el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" label-width="120px">
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList" >
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id">
<template v-for="(item, index) in queryList">
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`" :key="item.id">
<el-input
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
@ -13,7 +14,8 @@
clearable
></el-input>
</el-form-item>
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`">
<el-select v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
@ -26,7 +28,8 @@
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`">
<el-select
v-model="filterQuery[`${item.columnName}`]"
:placeholder="item.columnDesc"
@ -43,7 +46,8 @@
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`">
<el-date-picker
v-model="dateRange"
:style="`width:${item.width+'px'}`"
@ -56,7 +60,8 @@
:default-time="['00:00:00', '23:59:59']"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`">
<el-date-picker
v-model="filterQuery[item.columnName]"
:style="`width:${item.width+'px'}`"
@ -69,86 +74,86 @@
</template>
</el-row>
<!-- <el-row>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="供应商:">-->
<!-- <el-select-->
<!-- v-model="filterQuery.unitFk"-->
<!-- style="width: 90%"-->
<!-- filterable-->
<!-- remote-->
<!-- clearable="true"-->
<!-- reserve-keyword-->
<!-- placeholder="请选择供应商"-->
<!-- :remote-method="findMethod"-->
<!-- :loading="loading"-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="item in fromOptions"-->
<!-- :key="item.name"-->
<!-- :label="item.name"-->
<!-- :value="item.erpId"-->
<!-- >-->
<!-- <span style="float: left">{{ item.name }}</span>-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="物资编码:">-->
<!-- <el-input v-model="filterQuery.unionCode" style="width: 90%" placeholder="请输入DI/医保编码/商品条码"-->
<!-- clearable="true"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="物资名称:">-->
<!-- <el-input v-model="filterQuery.cpmctymc" style="width: 90%" placeholder="请输入物资名称"-->
<!-- clearable="true"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="规格型号:">-->
<!-- <el-input v-model="filterQuery.ggxh" style="width: 90%" placeholder="请输入规格型号" clearable="true"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="对照条件:">-->
<!-- <el-select v-model="filterQuery.filterType" style="width: 90%" placeholder="请选择过滤对照条件">-->
<!-- <el-option-->
<!-- v-for="item in filterList"-->
<!-- :key="item.filterType"-->
<!-- :label="item.sysName"-->
<!-- :value="item.filterType">-->
<!-- <span style="float: left">{{ item.sysName }}</span>-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="生产企业:">-->
<!-- <el-input v-model="filterQuery.ylqxzcrbarmc" style="width: 90%" placeholder="请输入生产企业/注册备案人"-->
<!-- clearable="true"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="第三方物资编码:">-->
<!-- <el-input v-model="filterQuery.thrPiId" style="width: 90%" placeholder="请输入第三方物资编码"-->
<!-- clearable="true"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="状态:" v-if="isSpCombine">-->
<!-- <el-select v-model="filterQuery.lockStatus" style="width: 90%" placeholder="状态">-->
<!-- <el-option label="全部" value=""></el-option>-->
<!-- <el-option label="未提交" value="1"></el-option>-->
<!-- <el-option label="已提交" value="2"></el-option>-->
<!-- <el-option label="已锁定" value="3"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="供应商:">-->
<!-- <el-select-->
<!-- v-model="filterQuery.unitFk"-->
<!-- style="width: 90%"-->
<!-- filterable-->
<!-- remote-->
<!-- clearable="true"-->
<!-- reserve-keyword-->
<!-- placeholder="请选择供应商"-->
<!-- :remote-method="findMethod"-->
<!-- :loading="loading"-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="item in fromOptions"-->
<!-- :key="item.name"-->
<!-- :label="item.name"-->
<!-- :value="item.erpId"-->
<!-- >-->
<!-- <span style="float: left">{{ item.name }}</span>-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="物资编码:">-->
<!-- <el-input v-model="filterQuery.unionCode" style="width: 90%" placeholder="请输入DI/医保编码/商品条码"-->
<!-- clearable="true"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="物资名称:">-->
<!-- <el-input v-model="filterQuery.cpmctymc" style="width: 90%" placeholder="请输入物资名称"-->
<!-- clearable="true"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="规格型号:">-->
<!-- <el-input v-model="filterQuery.ggxh" style="width: 90%" placeholder="请输入规格型号" clearable="true"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="对照条件:">-->
<!-- <el-select v-model="filterQuery.filterType" style="width: 90%" placeholder="请选择过滤对照条件">-->
<!-- <el-option-->
<!-- v-for="item in filterList"-->
<!-- :key="item.filterType"-->
<!-- :label="item.sysName"-->
<!-- :value="item.filterType">-->
<!-- <span style="float: left">{{ item.sysName }}</span>-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="生产企业:">-->
<!-- <el-input v-model="filterQuery.ylqxzcrbarmc" style="width: 90%" placeholder="请输入生产企业/注册备案人"-->
<!-- clearable="true"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="第三方物资编码:">-->
<!-- <el-input v-model="filterQuery.thrPiId" style="width: 90%" placeholder="请输入第三方物资编码"-->
<!-- clearable="true"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="状态:" v-if="isSpCombine">-->
<!-- <el-select v-model="filterQuery.lockStatus" style="width: 90%" placeholder="状态">-->
<!-- <el-option label="全部" value=""></el-option>-->
<!-- <el-option label="未提交" value="1"></el-option>-->
<!-- <el-option label="已提交" value="2"></el-option>-->
<!-- <el-option label="已锁定" value="3"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
</el-form>
@ -185,7 +190,7 @@
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<template slot-scope="scope">
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
</template>
</el-table-column>
@ -198,8 +203,10 @@
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{
item.lableRuleObj[scope.row[item.columnName]]
}}</span>
</template>
</el-table-column>
<el-table-column
@ -211,9 +218,12 @@
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-tag :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
<span>{{ item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName] }}</span>
<template slot-scope="scope">
<el-tag
:type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
<span>{{
item.lableRuleObj ? item.lableRuleObj[scope.row[item.columnName]] : scope.row[item.columnName]
}}</span>
</el-tag>
</template>
</el-table-column>
@ -248,40 +258,42 @@
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{
scope.row[item.columnName]
}}</span>
</template>
</el-table-column>
</template>
<!-- <el-table-column type="selection" width="55"></el-table-column>-->
<!-- <el-table-column label="序号" type="index"></el-table-column>-->
<!-- <el-table-column label="供应商" prop="companyName" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="最小销售产品标识" prop="nameCode" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="主系统物资编码" prop="mainId" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="生产企业" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="物资名称" prop="cpmctymc" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="注册/备案号" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="价格" prop="price" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="物资分类" prop="classifyName" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column-->
<!-- v-if="isSpCombine"-->
<!-- label="状态"-->
<!-- prop="lockStatus"-->
<!-- width="80"-->
<!-- show-overflow-tooltip-->
<!-- >-->
<!-- <template slot-scope="scope">-->
<!-- {{ lockStatusMap[scope.row.lockStatus] }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column width="120" label="操作">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button type="text" @click.native.stop="handleModifyClick(scope.row)">详情</el-button>-->
<!-- <el-button type="text" @click.native.stop="handleDeleteClick(scope.row.id)">移除</el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column type="selection" width="55"></el-table-column>-->
<!-- <el-table-column label="序号" type="index"></el-table-column>-->
<!-- <el-table-column label="供应商" prop="companyName" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="最小销售产品标识" prop="nameCode" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="主系统物资编码" prop="mainId" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="生产企业" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="物资名称" prop="cpmctymc" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="注册/备案号" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="价格" prop="price" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="物资分类" prop="classifyName" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column-->
<!-- v-if="isSpCombine"-->
<!-- label="状态"-->
<!-- prop="lockStatus"-->
<!-- width="80"-->
<!-- show-overflow-tooltip-->
<!-- >-->
<!-- <template slot-scope="scope">-->
<!-- {{ lockStatusMap[scope.row.lockStatus] }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column width="120" label="操作">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button type="text" @click.native.stop="handleModifyClick(scope.row)">详情</el-button>-->
<!-- <el-button type="text" @click.native.stop="handleDeleteClick(scope.row.id)">移除</el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
</el-table>
<el-dialog
@ -336,7 +348,7 @@ import {
updateErpProduct,
uploadSmp,
thirdSysDetail,
removeRl, sysFilter,sysFilterOptimize, spcombie, lockStatus
removeRl, sysFilter, sysFilterOptimize, spcombie, lockStatus
} from "@/api/basic/udiRelevance";
import {selectSysParamByKey} from "@/api/param/systemParamConfig";
import {filterByUuid, filterCompany} from "@/api/basic/udiInfo";
@ -393,12 +405,12 @@ export default {
sysList: [],
filterList: [],
options: {
findMethod:[],
getSysFilter:[],
findMethod: [],
getSysFilter: [],
},
queryList:[],
tableHeader:[],
fromList:[],
queryList: [],
tableHeader: [],
fromList: [],
total: 0,
thirdNo: "",
uuid: "111",
@ -621,7 +633,7 @@ export default {
},
handleSelectionChange(_this,val) {
handleSelectionChange(_this, val) {
_this.multipleSelection = val;
},
cancelDialog() {
@ -631,7 +643,7 @@ export default {
this.filterQuery.page = val.page;
this.getList();
},
handleModifyClick(_this,row) {
handleModifyClick(_this, row) {
_this.uuid = row.uuid;
_this.relId = row.rlId;
_this.isImport = false;
@ -648,7 +660,7 @@ export default {
};
_this.checked = row.isUseDy == 1;
},
handleDeleteClick(_this,rowId){
handleDeleteClick(_this, row) {
_this.$confirm("此操作将删除该供应商器械信息, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
@ -656,7 +668,7 @@ export default {
})
.then(() => {
let dQuery = {
id: rowId,
id: row.id,
};
deleteCompanyProductRelevance(dQuery)
.then((response) => {
@ -684,7 +696,7 @@ export default {
selectData.forEach((row) => {
postQuery.ids.push(row.rlId);
});
if(postQuery.ids.length<=0){
if (postQuery.ids.length <= 0) {
this.$message.error("请先选择产品!");
return
}
@ -727,7 +739,7 @@ export default {
this.sysList = [];
});
},
getSysFilter(_this,query) {
getSysFilter(_this, query) {
sysFilterOptimize()
.then((response) => {
_this.loading = false;
@ -832,7 +844,7 @@ export default {
});
},
findMethod(_this,query) {
findMethod(_this, query) {
let cQuery = {
key: query,
corpType: 2,
@ -849,11 +861,11 @@ export default {
_this.options.findMethod = [];
});
},
executeFuc(row,type,clickFuc,value){
return executeFuc(this,row,type,clickFuc,value);
executeFuc(row, type, clickFuc, value) {
return executeFuc(this, row, type, clickFuc, value);
},
executeEval(row,expression,defaultRet){
if(expression){
executeEval(row, expression, defaultRet) {
if (expression) {
return eval(expression);
}
return defaultRet;
@ -872,7 +884,7 @@ export default {
}
,
created() {
getHead("udiInfoManageSp","1").then((re) => {
getHead("udiInfoManageSp", "1").then((re) => {
//
this.tableObj = re.data;
this.tableHeader = re.data.tableList;
@ -881,8 +893,8 @@ export default {
this.getList()
});
this.selectSysParam();
this.getSysFilter(this,"");
this.findMethod(this,"");
this.getSysFilter(this, "");
this.findMethod(this, "");
}
,
}

@ -68,7 +68,7 @@
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row="false" border
@current-change="handleChange"
ref="multipleTable">
<el-table-column label width="45" v-if="type=3">
<el-table-column label width="45" v-if="type==3 ">
<template slot-scope="scope">
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
</template>
@ -190,7 +190,6 @@ export default {
supId: null,
page: 1,
limit: 10,
invCode: this.invQueryData.targetInvCode,
};
this.getList();
},
@ -213,9 +212,11 @@ export default {
getList() {
this.loading = true;
this.filterQuery.invCode = this.invQueryData.invCode;
if (this.type == 1) {
this.filterQuery.invCode = this.invQueryData.targetInvCode;
} else
this.filterQuery.invCode = this.invQueryData.invCode;
this.filterQuery.filterNoInv = 1;
//
if (this.invQueryData.advanceType == 3) {
getInvPreProductStock(this.filterQuery)
@ -388,7 +389,6 @@ export default {
,
created() {
this.findBasicProductSet();
this.filterQuery.invCode = this.invQueryData.targetInvCode;
//
this.getList();
}

@ -4,7 +4,7 @@
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="24">
<el-form-item label="单据类型:" label-width="120px">
<el-select style="width: 80%;" v-model="thirdBuyForm.name" placeholder="单据类型">
<el-select style="width: 80%;" v-model="thirdBuyForm.name" placeholder="单据类型" @change="actionChange">
<el-option
v-for="item in bussinessTypeList"
:key="item.action"
@ -42,6 +42,34 @@
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="24" class="el-col">
<el-form-item label-width="120px" label="往来单位:">
<el-select
v-model="thirdBuyForm.fromCorp"
filterable
remote
clearable
reserve-keyword
style="width: 80%"
placeholder="请输入往来信息"
:remote-method="findMethod"
>
<el-option
v-for="item in fromOptions"
:key="item.erpId"
:label="item.name"
:value="item.erpId"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="24" class="el-col">
<el-form-item label-width="120px" label="接口地址:">
@ -54,6 +82,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="24" class="el-col">
<el-form-item label-width="120px" label="备注:">
@ -71,15 +100,16 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click.native="closeDialog( editGeOrderParamVisible = !editGeOrderParamVisible)"
>取消
</el-button
>
<el-button
type="primary"
@click.native="addBussinessTypeData()"
>提交
</el-button>
<el-button @click.native="closeDialog( editGeOrderParamVisible = !editGeOrderParamVisible)"
>取消
</el-button
>
</div>
</div>
@ -90,6 +120,7 @@ import {getOriginBusType} from "@/api/basic/busOriginType";
import {filterForThirdSys} from "@/api/basic/busType";
import {isBlank} from "@/utils/strUtil";
import {saveBusTypes} from "@/api/thrsys/basicThirdSys";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
export default {
name: "DialogEditBusDown",
@ -102,11 +133,18 @@ export default {
type: Function,
required: true,
},
type: {
type: Object,
required: true,
}
},
data() {
return {
bussinessTypeList: [],
thridBusFilter: [],
loading: false,
fromOptions: [],
curAction: {},
}
},
@ -134,10 +172,10 @@ export default {
this.$message.error("单据类型不能为空!")
return;
}
if (isBlank(this.thirdBuyForm.thirdBuyCode)) {
this.$message.error("第三方单据类型不能为空!");
return;
}
// if (isBlank(this.thirdBuyForm.thirdBuyCode)) {
// this.$message.error("");
// return;
// }
if (!isBlank(this.thirdBuyForm.remark)) {
if (this.thirdBuyForm.remark.length > 200) {
@ -148,8 +186,6 @@ export default {
if (this.getOrdersEditBtnVisible) {
this.editGeOrderParamVisible = false;
} else {
this.bussinessTypeFormVisible = false;
}
//
@ -169,12 +205,45 @@ export default {
}).catch((error) => {
this.$message.error(error.message);
})
},
actionChange(item) {
for (let i = 0; i < this.bussinessTypeList.length; i++) {
if (this.bussinessTypeList[i].name == item) {
this.curAction = this.bussinessTypeList[i]
}
}
},
//
findMethod(query) {
this.fromOptions = []
let cQuery = {
key: query,
corpType: this.curAction.corpType,
outType: null,
page: 1,
limit: 20
}
getBasicUnitMaintains(cQuery)
.then((response) => {
this.loading = false
this.fromOptions = response.data.list || []
})
.catch(() => {
this.loading = false
})
}
},
created() {
this.getBussinessType();
this.remoteMethod();
this.findMethod(this.thirdBuyForm.name);
}
}
</script>

@ -154,7 +154,6 @@
<el-table-column label="第三方单据类型" prop="thirdBuyName"></el-table-column>
<el-table-column label="接口地址" prop="url" width="400" show-overflow-tooltip></el-table-column>
<el-table-column label="备注" prop="remark" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" width="200" prop="price">
<template slot-scope="scope">
<el-button v-if="submitOrderVisible"
@ -205,6 +204,7 @@
width="45%"
>
<DialogEditBusDown :thirdBuyForm="thirdBuyForm"
:type="orderType"
:closeDialog="closeDialog"></DialogEditBusDown>
</el-dialog>
@ -321,7 +321,9 @@ export default {
thridBusFilter: [],
thirdSysDetailList: [],
selectInterfaceList: [],
currentRow: null
currentRow: null,
orderType: 1,//,
typeId: null,
};
},
@ -374,6 +376,25 @@ export default {
this.addBussinessTypeBtnVisible = true;
this.getOrdersEditBtnVisible = true;
this.submitOrderVisible = false;
this.orderType = 1;
} else if (row.key === "invSfOrderUrl") {
this.addBussinessTypeBtnVisible = true;
this.getOrdersEditBtnVisible = true;
this.submitOrderVisible = false;
this.orderType = 2;
this.typeId = 3;
} else if (row.key === "invPhOrderUrl") {
this.addBussinessTypeBtnVisible = true;
this.getOrdersEditBtnVisible = true;
this.submitOrderVisible = false;
this.orderType = 2;
this.typeId = 4;
} else if (row.key === "invGhOrderUrl") {
this.addBussinessTypeBtnVisible = true;
this.getOrdersEditBtnVisible = true;
this.submitOrderVisible = false;
this.orderType = 2;
this.typeId = 5;
} else {
this.addBussinessTypeBtnVisible = false;
}
@ -425,6 +446,12 @@ export default {
query.type = 1;
} else if (row.key == "orderSubmitUrl") {
query.type = 2;
} else if (row.key == "invSfOrderUrl") {
query.type = 3;
} else if (row.key == "invPhOrderUrl") {
query.type = 4;
} else if (row.key == "invGhOrderUrl") {
query.type = 5;
} else {
this.busTypeList = [];
return;
@ -547,7 +574,7 @@ export default {
id: null,
code: null,
name: null,
type: 1,
type: this.typeId,
url: null,
thirdSys: this.thirdSysFk,
remark: null

@ -66,7 +66,7 @@
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="getList"></el-button>
<el-button type="primary" icon="el-icon-search" @click="dlThrInvOrder"></el-button>
<el-button type="primary" icon="el-icon-download" @click="dlThrInvOrder"></el-button>
</el-button-group>
</div>
@ -76,8 +76,8 @@
<el-table-column label="序号" type="index" width="60"></el-table-column>
<el-table-column label="单据号" prop="billNo"></el-table-column>
<el-table-column label="单据时间" prop="billDate"></el-table-column>
<el-table-column label="出入库类型" prop="mainAction"></el-table-column>
<el-table-column label="第三方单据类型" prop="billType"></el-table-column>
<el-table-column label="单据类型" prop="billTypeName"></el-table-column>
<el-table-column label="仓库" prop="invName"></el-table-column>
<el-table-column label="外部系统" prop="thirdSysFk"></el-table-column>
<!-- <el-table-column label="单据状态" prop="status"></el-table-column>-->
<el-table-column
@ -101,11 +101,9 @@
</template>
</el-table-column>
<el-table-column label="操作" width="160">
<el-table-column label="操作" width="160" fixed="right">
<template slot-scope="scope">
<el-button type="text" @click.native.stop="deleteDialog(scope.row)"
>删除
</el-button>
<el-button v-show="scope.row.status == 0 && (scope.row.exMsg === null || scope.row.exMsg === '')"
type="text" @click.native.stop="generateBill(scope.row)" STYLE="color:rgb(0,0,255)"
>生成单据
@ -118,6 +116,9 @@
@click.native.stop="refreshBill(scope.row)"
>更新
</el-button>
<el-button type="text" @click.native.stop="deleteDialog(scope.row)"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
@ -153,14 +154,15 @@
<el-table-column label="患者编码" prop="sickerCode"></el-table-column>
<el-table-column label="患者名称" prop="sickerName"></el-table-column>
<el-table-column label="操作" width="160">
<el-table-column label="操作" width="160" fixed="right">
<template slot-scope="scope">
<el-button type="text" v-if="scope.row.relId==null" @click.native.stop="jump(scope.row)"
>处理
</el-button>
<el-button type="text" @click.native.stop="deleteDetailDialog(scope.row)"
>删除
</el-button>
<el-button type="text" v-if="scope.row.relId==null" @click.native.stop="jump()"
>处理
</el-button>
</template>
</el-table-column>
</el-table>
@ -517,11 +519,11 @@ export default {
this.getList();
}
},
jump() {
jump(row) {
if (this.jumpSkProject == 1) {
this.$router.push('/thirdSys/destiny/skProject')
this.$router.push('/thirdSys/destiny/skProject?cpmctymc=' + row.cpmctymc)
} else {
this.$router.push('/basic/product/maintain?vueRouteSource=1')
this.$router.push('/basic/product/maintain?vueRouteSource=1&cpmctymc=' + row.cpmctymc)
}
},
changRed({row}) {
@ -535,6 +537,11 @@ export default {
* 手动下载第三方收费出入库明细
*/
dlThrInvOrder() {
if (this.actDateRange != null) {
this.filterQuery.startDate = this.actDateRange[0];
this.filterQuery.endDate = this.actDateRange[1];
}
this.$confirm("是否确定下载日期范围为:[" + this.filterQuery.startDate + "---" + this.filterQuery.endDate + "]的出入库明细?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",

@ -59,32 +59,34 @@
</el-col>
</el-row>
<el-row type="flex">
<el-form-item
prop="fromCorp"
label="往来信息:"
>
<el-select
v-model="generateOrderDate.fromCorp"
filterable
remote
clearable
reserve-keyword
style="width: 90%"
placeholder="请输入往来信息"
:remote-method="findMethod"
:loading="loading"
:disabled="corpOrderIdDisabled"
<el-col :span="11">
<el-form-item
prop="fromCorp"
label="往来信息:"
>
<el-option
v-for="item in fromOptions"
:key="item.erpId"
:label="item.name"
:value="item.erpId"
<el-select
v-model="generateOrderDate.fromCorp"
filterable
remote
clearable
reserve-keyword
style="width: 90%"
placeholder="请输入往来信息"
:remote-method="findMethod"
:loading="loading"
:disabled="corpOrderIdDisabled"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
<el-option
v-for="item in fromOptions"
:key="item.erpId"
:label="item.name"
:value="item.erpId"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<div style="text-align: center; margin-bottom: 10px;">
@ -96,11 +98,11 @@
</template>
<script>
import { generateOrder,generateGhOrder } from '@/api/thrsys/thrInvOrder'
import { findByFrom, findInvByUser } from '../../../api/system/invSubWarehouse'
import { parseTime } from '../../../utils/coTools'
import { findByInvUser, getBusTypeList } from '@/api/basic/busType'
import { getBasicUnitMaintains } from '../../../api/basic/basicUnitMaintain'
import {generateOrder, generateGhOrder} from '@/api/thrsys/thrInvOrder'
import {findByFrom, findInvByUser} from '../../../api/system/invSubWarehouse'
import {parseTime} from '../../../utils/coTools'
import {findByInvUser, getBusTypeList} from '@/api/basic/busType'
import {getBasicUnitMaintains} from '../../../api/basic/basicUnitMaintain'
export default {
name: 'thrInvOrderGenerate',
@ -153,14 +155,15 @@ export default {
genUnit: false,
checkWebNew: null,
mainAction: null
}
},
loading: false,
}
},
methods: {
//
generateOrder() {
if (this.sourceType === 1 || this.sourceType === 2 ){
if (this.sourceType === 1 || this.sourceType === 2) {
generateOrder(this.generateOrderDate).then((res) => {
if (res.code == 20000) {
this.$message.success('生成成功!')
@ -173,7 +176,7 @@ export default {
}).catch((error) => {
this.$message.error(error.message)
})
}else if (this.sourceType === 3){
} else if (this.sourceType === 3) {
generateGhOrder(this.generateOrderDate).then((res) => {
if (res.code == 20000) {
this.$message.success('生成成功!')
@ -235,14 +238,15 @@ export default {
this.findMethod()
},
//,
getBusTypeByInv() {
getBusTypeByInv(key) {
let query = {
code: this.generateOrderDate.invCode,
editType: 2 //
action: key,//
}
findByInvUser(query)
.then((response) => {
this.busTypeOptions = response.data || []
this.curAction = this.getActionItem(this.generateOrderDate.action)
})
.catch(() => {
})
@ -257,14 +261,18 @@ export default {
},
//
findMethod(query) {
debugger
this.fromOptions = []
let cQuery = {
key: query,
corpType: 4,
corpType: this.curAction.corpType,
outType: null,
page: 1,
limit: 20
}
if (this.curAction.corpType == 0) {
cQuery.corpType = null;
}
getBasicUnitMaintains(cQuery)
.then((response) => {
this.loading = false
@ -287,12 +295,14 @@ export default {
date,
'{y}-{m}-{d} {h}:{i}:{s}'
)
this.generateOrderDate.corpOrderId =
parseTime(date, '{y}{m}{d}{h}{i}{s}') +
Math.ceil(Math.random() * 89 + 10)
this.generateOrderDate.deptCode = this.$store.getters.deptCode
this.generateOrderDate.invCode = this.$store.getters.locInvCode
this.generateOrderDate.action = this.generateOrderDate.billType;
this.getBusTypeByInv(this.generateOrderDate.billType);
this.findInvListByUser()
this.findMethod(this.generateOrderDate.fromCorp)
}
}

Loading…
Cancel
Save