注册备案证号为空问题

dev
anthonywj 2 years ago
parent f0c24f83c6
commit c913a1554c

@ -140,7 +140,10 @@
<el-form :model="form"> <el-form :model="form">
<el-form-item label="" prop="isGive"> <el-form-item label="" prop="isGive">
<el-radio-group v-model="currentCert"> <el-radio-group v-model="currentCert">
<el-radio style="width: 100%; margin-top: 10px;" :label="item" :key="item" v-for="item in certList">{{ item }}</el-radio> <el-radio style="width: 100%; margin-top: 10px;" :label="item" :key="item" v-for="item in certList">{{
item
}}
</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -170,6 +173,7 @@
import {addBizProduct} from "@/api/inout/orderDetailCode"; import {addBizProduct} from "@/api/inout/orderDetailCode";
import {filterCompanyProductRelevance} from "@/api/basic/udiRlSuptRelevance"; import {filterCompanyProductRelevance} from "@/api/basic/udiRlSuptRelevance";
import udiRlDetailDialog from "../purchase/purApply/purUdiRlDetailDialog"; import udiRlDetailDialog from "../purchase/purApply/purUdiRlDetailDialog";
import {isBlank} from "@/utils/strUtil";
export default { export default {
name: "stockOrderNewSelectProduct",// name: "stockOrderNewSelectProduct",//
@ -282,7 +286,7 @@ export default {
return; return;
} }
let str = this.currentRow.zczbhhzbapzbh; let str = this.currentRow.zczbhhzbapzbh;
if (this.str.search(",") != -1) { if (!isBlank(str) && str.search(",") != -1) {
this.currentCert = null; this.currentCert = null;
this.certList = str.split(','); this.certList = str.split(',');
this.dialogFormVisible = true; this.dialogFormVisible = true;

@ -142,7 +142,10 @@
<el-form :model="form"> <el-form :model="form">
<el-form-item label="" prop="isGive"> <el-form-item label="" prop="isGive">
<el-radio-group v-model="currentCert"> <el-radio-group v-model="currentCert">
<el-radio style="width: 100%; margin-top: 10px;" :label="item" :key="item" v-for="item in certList">{{ item }}</el-radio> <el-radio style="width: 100%; margin-top: 10px;" :label="item" :key="item" v-for="item in certList">{{
item
}}
</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -159,6 +162,7 @@
import {getStockOrderDetailInstrumentById, stockOrderDetailFilterProduct} from "../../../api/inout/stockOrder"; import {getStockOrderDetailInstrumentById, stockOrderDetailFilterProduct} from "../../../api/inout/stockOrder";
import store from "../../../store"; import store from "../../../store";
import udiRlDetailDialog from "./../../"; import udiRlDetailDialog from "./../../";
import {isBlank} from "@/utils/strUtil";
export default { export default {
name: "stockOrderNewSelectProduct", name: "stockOrderNewSelectProduct",
@ -302,11 +306,11 @@ export default {
this.loading = true; this.loading = true;
this.listQuery.customerId = store.getters.customerId; this.listQuery.customerId = store.getters.customerId;
if(this.listQuery.customerId==110 && this.data.formData!=null && this.data.formData!=undefined){ if (this.listQuery.customerId == 110 && this.data.formData != null && this.data.formData != undefined) {
this.listQuery.companyName=this.data.formData.corpName this.listQuery.companyName = this.data.formData.corpName
} }
if(this.listQuery.customerId!=110 && this.data!=null && this.data!=undefined){ if (this.listQuery.customerId != 110 && this.data != null && this.data != undefined) {
this.listQuery.companyName=this.data.corpName this.listQuery.companyName = this.data.corpName
} }
stockOrderDetailFilterProduct(this.listQuery) stockOrderDetailFilterProduct(this.listQuery)
@ -348,7 +352,7 @@ export default {
} }
let str = this.multipleSelection.zczbhhzbapzbh; let str = this.multipleSelection.zczbhhzbapzbh;
if (str.search(",") != -1) { if (!isBlank(str) && str.search(",") != -1) {
this.currentCert = null; this.currentCert = null;
this.certList = str.split(','); this.certList = str.split(',');
this.dialogFormVisible = true; this.dialogFormVisible = true;
@ -360,12 +364,12 @@ export default {
combine() { combine() {
this.loading = true; this.loading = true;
let tQuery = { let tQuery = {
productId:this.multipleSelection.rlId, productId: this.multipleSelection.rlId,
productName:this.multipleSelection.cpmctymc, productName: this.multipleSelection.cpmctymc,
count:1, count: 1,
orderIdFk:this.pId, orderIdFk: this.pId,
supId:this.multipleSelection.customerId, supId: this.multipleSelection.customerId,
zczbhhzbapzbh:this.multipleSelection.zczbhhzbapzbh zczbhhzbapzbh: this.multipleSelection.zczbhhzbapzbh
}; };
addPlanDetail(tQuery).then((response) => { addPlanDetail(tQuery).then((response) => {
this.loading = false; this.loading = false;

@ -137,6 +137,7 @@ import {filterCompanyProductRelevance} from "../../../api/basic/udiRlSuptRelevan
import store from "../../../store"; import store from "../../../store";
import {addOrderDetail} from "@/api/purchase/purOrder" import {addOrderDetail} from "@/api/purchase/purOrder"
import udiRlDetailDialog from "./../../purchase/purApply/purUdiRlDetailDialog"; import udiRlDetailDialog from "./../../purchase/purApply/purUdiRlDetailDialog";
import {isBlank} from "@/utils/strUtil";
export default { export default {
name: "stockOrderNewSelectProduct", name: "stockOrderNewSelectProduct",
@ -339,7 +340,7 @@ export default {
} }
} }
let str = this.multipleSelection.zczbhhzbapzbh; let str = this.multipleSelection.zczbhhzbapzbh;
if (str.search(",") != -1) { if (!isBlank(str) && str.search(",") != -1) {
this.currentCert = null; this.currentCert = null;
this.certList = str.split(','); this.certList = str.split(',');
this.dialogFormVisible = true; this.dialogFormVisible = true;

@ -122,6 +122,7 @@ import {filterCompanyProductRelevance} from "../../../api/basic/udiRlSuptRelevan
import store from "../../../store"; import store from "../../../store";
import {addPlanDetail} from "@/api/purchase/purPlan" import {addPlanDetail} from "@/api/purchase/purPlan"
import udiRlDetailDialog from "./../../purchase/purApply/purUdiRlDetailDialog"; import udiRlDetailDialog from "./../../purchase/purApply/purUdiRlDetailDialog";
import {isBlank} from "@/utils/strUtil";
export default { export default {
name: "stockOrderNewSelectProduct", name: "stockOrderNewSelectProduct",
@ -314,7 +315,7 @@ export default {
} }
} }
let str = this.multipleSelection.zczbhhzbapzbh; let str = this.multipleSelection.zczbhhzbapzbh;
if (str.search(",") != -1) { if (!isBlank(str) && str.search(",") != -1) {
this.currentCert = null; this.currentCert = null;
this.certList = str.split(','); this.certList = str.split(',');
this.dialogFormVisible = true; this.dialogFormVisible = true;

@ -142,7 +142,10 @@
<el-form :model="form"> <el-form :model="form">
<el-form-item label="" prop="isGive"> <el-form-item label="" prop="isGive">
<el-radio-group v-model="currentCert"> <el-radio-group v-model="currentCert">
<el-radio style="width: 100%; margin-top: 10px;" :label="item" :key="item" v-for="item in certList">{{ item }}</el-radio> <el-radio style="width: 100%; margin-top: 10px;" :label="item" :key="item" v-for="item in certList">{{
item
}}
</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -160,6 +163,7 @@ import {getStockOrderDetailInstrumentById, stockOrderDetailFilterProduct} from "
import store from "../../../store"; import store from "../../../store";
import udiRlDetailDialog from "./../../"; import udiRlDetailDialog from "./../../";
import {addApplyDetail} from "@/api/purchase/purApply"; import {addApplyDetail} from "@/api/purchase/purApply";
import {isBlank} from "@/utils/strUtil";
export default { export default {
name: "stockOrderNewSelectProduct", name: "stockOrderNewSelectProduct",
@ -303,11 +307,11 @@ export default {
this.loading = true; this.loading = true;
this.listQuery.customerId = store.getters.customerId; this.listQuery.customerId = store.getters.customerId;
if(this.listQuery.customerId==110 && this.data.formData!=null && this.data.formData!=undefined){ if (this.listQuery.customerId == 110 && this.data.formData != null && this.data.formData != undefined) {
this.listQuery.companyName=this.data.formData.corpName this.listQuery.companyName = this.data.formData.corpName
} }
if(this.listQuery.customerId!=110 && this.data!=null && this.data!=undefined){ if (this.listQuery.customerId != 110 && this.data != null && this.data != undefined) {
this.listQuery.companyName=this.data.corpName this.listQuery.companyName = this.data.corpName
} }
stockOrderDetailFilterProduct(this.listQuery) stockOrderDetailFilterProduct(this.listQuery)
@ -349,7 +353,7 @@ export default {
} }
let str = this.multipleSelection.zczbhhzbapzbh; let str = this.multipleSelection.zczbhhzbapzbh;
if (str.search(",") != -1) { if (!isBlank(str) && str.search(",") != -1) {
this.currentCert = null; this.currentCert = null;
this.certList = str.split(','); this.certList = str.split(',');
this.dialogFormVisible = true; this.dialogFormVisible = true;
@ -361,12 +365,12 @@ export default {
combine() { combine() {
this.loading = true; this.loading = true;
let tQuery = { let tQuery = {
productId:this.multipleSelection.rlId, productId: this.multipleSelection.rlId,
productName:this.multipleSelection.cpmctymc, productName: this.multipleSelection.cpmctymc,
count:1, count: 1,
orderIdFk:this.pId, orderIdFk: this.pId,
supId:this.multipleSelection.customerId, supId: this.multipleSelection.customerId,
zczbhhzbapzbh:this.multipleSelection.zczbhhzbapzbh zczbhhzbapzbh: this.multipleSelection.zczbhhzbapzbh
}; };
addPlanDetail(tQuery).then((response) => { addPlanDetail(tQuery).then((response) => {
this.loading = false; this.loading = false;

Loading…
Cancel
Save