|
|
@ -2,123 +2,238 @@
|
|
|
|
<el-card class="el-card">
|
|
|
|
<el-card class="el-card">
|
|
|
|
<el-form :model="newProductData" size="mini" label-width="150px">
|
|
|
|
<el-form :model="newProductData" size="mini" label-width="150px">
|
|
|
|
<div style="margin-bottom: 20px">
|
|
|
|
<div style="margin-bottom: 20px">
|
|
|
|
<el-row>
|
|
|
|
<!-- <el-row>-->
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<!-- <el-col :span="12" class="el-col">-->
|
|
|
|
<el-form-item label="第三方系统:">
|
|
|
|
<!-- <el-form-item label="第三方系统:">-->
|
|
|
|
<el-select
|
|
|
|
<!-- <el-select-->
|
|
|
|
style="width: 90%"
|
|
|
|
<!-- style="width: 90%"-->
|
|
|
|
v-model="newProductData.thirdSysFk" placeholder="请选择第三方系统"
|
|
|
|
<!-- v-model="newProductData.thirdSysFk" placeholder="请选择第三方系统"-->
|
|
|
|
>
|
|
|
|
<!-- >-->
|
|
|
|
<el-option
|
|
|
|
<!-- <el-option-->
|
|
|
|
v-for="item in thirdSys"
|
|
|
|
<!-- v-for="item in thirdSys"-->
|
|
|
|
:key="item.value"
|
|
|
|
<!-- :key="item.value"-->
|
|
|
|
:label="item.thirdName"
|
|
|
|
<!-- :label="item.thirdName"-->
|
|
|
|
:value="item.thirdId">
|
|
|
|
<!-- :value="item.thirdId">-->
|
|
|
|
<span style="float: left">{{ item.thirdName }}</span>
|
|
|
|
<!-- <span style="float: left">{{ item.thirdName }}</span>-->
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{
|
|
|
|
<!-- <span style="float: right; color: #8492a6; font-size: 13px">{{-->
|
|
|
|
item.thirdId
|
|
|
|
<!-- item.thirdId-->
|
|
|
|
}}</span>
|
|
|
|
<!-- }}</span>-->
|
|
|
|
</el-option>
|
|
|
|
<!-- </el-option>-->
|
|
|
|
</el-select>
|
|
|
|
<!-- </el-select>-->
|
|
|
|
</el-form-item>
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
</el-col>
|
|
|
|
<!-- </el-col>-->
|
|
|
|
</el-row>
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<!-- <el-col :span="12" class="el-col">-->
|
|
|
|
<el-form-item label="产品编码:">
|
|
|
|
<!-- <el-form-item label="产品编码:">-->
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.code"></el-input>
|
|
|
|
<!-- <el-input style="width: 90%" size="small" placeholder="请输入内容"-->
|
|
|
|
</el-form-item>
|
|
|
|
<!-- v-model.trim="newProductData.code"></el-input>-->
|
|
|
|
</el-col>
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="产品名称:">
|
|
|
|
<el-form-item label="产品名称:">
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.name"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
v-model.trim="newProductData.name"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="规格型号:">
|
|
|
|
<el-form-item label="规格型号:">
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.spec"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
v-model.trim="newProductData.spec"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="计量单位:">
|
|
|
|
<el-form-item label="计量单位:">
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.measname"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
v-model.trim="newProductData.measname"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="生产企业:">
|
|
|
|
<el-form-item label="生产企业:">
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.manufactory"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
v-model.trim="newProductData.manufactory"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="注册证号:">
|
|
|
|
<el-form-item label="注册证号:">
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.registerNo"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
v-model.trim="newProductData.registerNo"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="医疗器械注册人:">
|
|
|
|
<el-form-item label="医疗器械注册人:">
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.ylqxzcrbarmc"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
v-model.trim="newProductData.ylqxzcrbarmc"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="注册人英文名称:">
|
|
|
|
<el-form-item label="注册人英文名称:">
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.ylqxzcrbarywmc"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
v-model.trim="newProductData.ylqxzcrbarywmc"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="产品类别:">
|
|
|
|
<el-form-item label="产品类别:">
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.cplb"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
v-model.trim="newProductData.cplb"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="分类编码:">
|
|
|
|
<el-form-item label="分类编码:">
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.flbm"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
v-model.trim="newProductData.flbm"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="商品条码:">
|
|
|
|
<el-form-item label="商品条码:">
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.sptm"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
v-model.trim="newProductData.sptm"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="医保编码:">
|
|
|
|
<el-form-item label="医保编码:">
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.ybbm"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
v-model.trim="newProductData.ybbm"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="统一社会信用号:">
|
|
|
|
<el-form-item label="统一社会信用号:">
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.tyshxydm"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
v-model.trim="newProductData.tyshxydm"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="器械类别:">
|
|
|
|
<el-form-item label="器械类别:">
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容" v-model.trim="newProductData.qxlb"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
v-model.trim="newProductData.qxlb"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="产品价格:">
|
|
|
|
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
v-model.trim="newProductData.price"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable1">
|
|
|
|
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle1+':'">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
|
|
|
v-model="newProductData.basicPrductRemak1"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable2">
|
|
|
|
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle2+':'">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
|
|
|
v-model="newProductData.basicPrductRemak2"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable3">
|
|
|
|
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle3+':'">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
|
|
|
v-model="newProductData.basicPrductRemak3"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable4">
|
|
|
|
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle4+':'">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
|
|
|
v-model="newProductData.basicPrductRemak4"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable5">
|
|
|
|
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle5+':'">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
|
|
|
v-model="newProductData.basicPrductRemak5"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable6">
|
|
|
|
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle6+':'">
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
v-model="newProductData.basicPrductRemak6"
|
|
|
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option label="扣费" value="1"></el-option>
|
|
|
|
|
|
|
|
<el-option label="不扣费" value="0"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable7">
|
|
|
|
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle7+':'">
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
v-model="newProductData.basicPrductRemak7"
|
|
|
|
|
|
|
|
filterable
|
|
|
|
|
|
|
|
remote
|
|
|
|
|
|
|
|
clearable="true"
|
|
|
|
|
|
|
|
reserve-keyword
|
|
|
|
|
|
|
|
placeholder="请选择物资类别"
|
|
|
|
|
|
|
|
:remote-method="findThrTypeMethod"
|
|
|
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in thrTypeOptions"
|
|
|
|
|
|
|
|
:key="item.code"
|
|
|
|
|
|
|
|
:label="item.name"
|
|
|
|
|
|
|
|
:value="item.code"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12" v-if="productRemarkSet.remarkEnable8">
|
|
|
|
|
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle8+':'">
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
v-model="newProductData.basicPrductRemak8"
|
|
|
|
|
|
|
|
filterable
|
|
|
|
|
|
|
|
remote
|
|
|
|
|
|
|
|
clearable="true"
|
|
|
|
|
|
|
|
reserve-keyword
|
|
|
|
|
|
|
|
placeholder="请选择物价类别"
|
|
|
|
|
|
|
|
:remote-method="findHsflMethod"
|
|
|
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in hsflOptions"
|
|
|
|
|
|
|
|
:key="item.hsbm"
|
|
|
|
|
|
|
|
:label="item.hsmc"
|
|
|
|
|
|
|
|
:value="item.hsbm"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<span style="float: left">{{ item.hsmc }}</span>
|
|
|
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.hsbm }}</span>
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="23" class="el-col" style="margin-top: 12px">
|
|
|
|
<el-col :span="23" class="el-col" style="margin-top: 12px">
|
|
|
|
<el-form-item label="产品描述:">
|
|
|
|
<el-form-item label="产品描述:">
|
|
|
|
<el-input style="width: 100%" type="textarea" size="mini" rows="4" placeholder="请输入内容" v-model.trim="newProductData.cpms"></el-input>
|
|
|
|
<el-input style="width: 100%" type="textarea" size="mini" rows="4" placeholder="请输入内容"
|
|
|
|
|
|
|
|
v-model.trim="newProductData.cpms"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
@ -138,6 +253,8 @@ import {saveNewProduct} from "@/api/thrsys/thrProducts";
|
|
|
|
|
|
|
|
|
|
|
|
import {getBasicThirdSys} from "@/api/basic/basicThirdSys";
|
|
|
|
import {getBasicThirdSys} from "@/api/basic/basicThirdSys";
|
|
|
|
import {addProduct} from "@/api/thrsys/thrProductsAdd";
|
|
|
|
import {addProduct} from "@/api/thrsys/thrProductsAdd";
|
|
|
|
|
|
|
|
import {getHslbs, getThrProductType} from "@/api/thrsys/thrHsfl";
|
|
|
|
|
|
|
|
import {finProductSet} from "@/api/param/systemParamConfig";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "ThrProductsAdd",
|
|
|
|
name: "ThrProductsAdd",
|
|
|
@ -174,20 +291,32 @@ export default {
|
|
|
|
cpdls: null
|
|
|
|
cpdls: null
|
|
|
|
},
|
|
|
|
},
|
|
|
|
thirdSys: [],
|
|
|
|
thirdSys: [],
|
|
|
|
|
|
|
|
hsflOptions: [],
|
|
|
|
|
|
|
|
thrTypeOptions: [],
|
|
|
|
|
|
|
|
productRemarkSet: {
|
|
|
|
|
|
|
|
remarkTitle1: "备注字段1",
|
|
|
|
|
|
|
|
remarkTitle2: "备注字段2",
|
|
|
|
|
|
|
|
remarkTitle3: "备注字段3",
|
|
|
|
|
|
|
|
remarkTitle4: "备注字段4",
|
|
|
|
|
|
|
|
remarkTitle5: "备注字段5",
|
|
|
|
|
|
|
|
remarkTitle6: "备注字段6",
|
|
|
|
|
|
|
|
remarkTitle7: "备注字段7",
|
|
|
|
|
|
|
|
remarkTitle8: "备注字段8",
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
saveNewProduct() {
|
|
|
|
saveNewProduct() {
|
|
|
|
this.addProductVisible = false;
|
|
|
|
this.addProductVisible = false;
|
|
|
|
if (this.$isBlank(this.newProductData.thirdSysFk)) {
|
|
|
|
// if (this.$isBlank(this.newProductData.thirdSysFk)) {
|
|
|
|
this.$message.warning("第三方系统不能为空!");
|
|
|
|
// this.$message.warning("第三方系统不能为空!");
|
|
|
|
return;
|
|
|
|
// return;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
if (this.$isBlank(this.newProductData.code)) {
|
|
|
|
// if (this.$isBlank(this.newProductData.code)) {
|
|
|
|
this.$message.warning("产品编码为空!");
|
|
|
|
// this.$message.warning("产品编码为空!");
|
|
|
|
return;
|
|
|
|
// return;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
if (this.$isBlank(this.newProductData.name)) {
|
|
|
|
if (this.$isBlank(this.newProductData.name)) {
|
|
|
|
this.$message.warning("产品名称不能为空!");
|
|
|
|
this.$message.warning("产品名称不能为空!");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -252,8 +381,48 @@ export default {
|
|
|
|
this.list = [];
|
|
|
|
this.list = [];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
findHsflMethod(query) {
|
|
|
|
|
|
|
|
this.hsflOptions = [];
|
|
|
|
|
|
|
|
let cQuery = {
|
|
|
|
|
|
|
|
key: query,
|
|
|
|
|
|
|
|
page: 1,
|
|
|
|
|
|
|
|
limit: 20
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
getHslbs(cQuery)
|
|
|
|
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
this.hsflOptions = response.data.list || [];
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
findThrTypeMethod(query) {
|
|
|
|
|
|
|
|
this.thrTypeOptions = [];
|
|
|
|
|
|
|
|
let cQuery = {
|
|
|
|
|
|
|
|
key: query,
|
|
|
|
|
|
|
|
page: 1,
|
|
|
|
|
|
|
|
limit: 20
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
getThrProductType(cQuery)
|
|
|
|
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
this.thrTypeOptions = response.data.list || [];
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
findBasicProductSet() {
|
|
|
|
|
|
|
|
finProductSet().then((response) => {
|
|
|
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
|
|
|
this.productRemarkSet = response.data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
|
|
|
|
this.findBasicProductSet();
|
|
|
|
this.getBasicThirdSys();
|
|
|
|
this.getBasicThirdSys();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|