|
|
|
|
2601
|
for(let i = 0; i < this.prescriptions.length; i++){
|
2601
|
for(let i = 0; i < this.prescriptions.length; i++){
|
2602
|
for(let b = 0; b < this.prescriptions[i].advices.length; b++){
|
2602
|
for(let b = 0; b < this.prescriptions[i].advices.length; b++){
|
2603
|
if(this.prescriptions[i].advices[b].advice_id == 0) {
|
2603
|
if(this.prescriptions[i].advices[b].advice_id == 0) {
|
2604
|
- this.judgmentsDrugStock(this.prescriptions[i].advices[b].drug.bby01, this.prescriptions[i].advices[b].drug.bbx01,this.prescriptions[i].advices[b].drug_name,this.prescriptions[i].advices[b].prescribing_number)
|
|
|
|
|
2604
|
+ this.judgmentsDrugStock(this.prescriptions[i].advices[b].drug.bby01, this.prescriptions[i].advices[b].drug.bbx01,this.prescriptions[i].advices[b].drug_name,this.prescriptions[i].advices[b].prescribing_number,isLoading)
|
2605
|
}
|
2605
|
}
|
2606
|
}
|
2606
|
}
|
2607
|
}
|
2607
|
}
|
|
|
|
|
2611
|
for(let b = 0; b < this.prescriptions[i].project.length; b++){
|
2611
|
for(let b = 0; b < this.prescriptions[i].project.length; b++){
|
2612
|
if(this.prescriptions[i].project[b].type == 3){
|
2612
|
if(this.prescriptions[i].project[b].type == 3){
|
2613
|
if(this.prescriptions[i].project[b].id == 0) {
|
2613
|
if(this.prescriptions[i].project[b].id == 0) {
|
2614
|
- this.judgmentsGoodStock(this.prescriptions[i].project[b].good_info.bby01, this.prescriptions[i].project[b].good_info.bbx01,this.prescriptions[i].project[b].good_info.good_name,this.prescriptions[i].project[b].good_info.specification_name,this.prescriptions[i].project[b].total)
|
|
|
|
|
2614
|
+ this.judgmentsGoodStock(this.prescriptions[i].project[b].good_info.bby01, this.prescriptions[i].project[b].good_info.bbx01,this.prescriptions[i].project[b].good_info.good_name,this.prescriptions[i].project[b].good_info.specification_name,this.prescriptions[i].project[b].total,isLoading)
|
2615
|
}
|
2615
|
}
|
2616
|
}
|
2616
|
}
|
2617
|
}
|
2617
|
}
|
|
|
|
|
3149
|
}
|
3149
|
}
|
3150
|
}
|
3150
|
}
|
3151
|
}
|
3151
|
}
|
3152
|
- },judgmentsDrugStock(bby01, bbx01,name,count){
|
|
|
|
|
3152
|
+ },judgmentsDrugStock(bby01, bbx01,name,count,isLoading){
|
3153
|
for (let i = 0; i < this.zuobiao_drug.length; i++) {
|
3153
|
for (let i = 0; i < this.zuobiao_drug.length; i++) {
|
3154
|
if (this.zuobiao_drug[i].bby01 == bby01) {
|
3154
|
if (this.zuobiao_drug[i].bby01 == bby01) {
|
3155
|
if (this.zuobiao_drug[i].sysl < parseInt(count)){
|
3155
|
if (this.zuobiao_drug[i].sysl < parseInt(count)){
|
3156
|
this.$message.error(name + "库存不足,无法保存")
|
3156
|
this.$message.error(name + "库存不足,无法保存")
|
|
|
3157
|
+ isLoading = false
|
3157
|
return
|
3158
|
return
|
3158
|
}
|
3159
|
}
|
3159
|
}
|
3160
|
}
|
3160
|
}
|
3161
|
}
|
3161
|
|
3162
|
|
3162
|
- },judgmentsGoodStock(bby01, bbx01,name,specification_name,count){
|
|
|
|
|
3163
|
+ },judgmentsGoodStock(bby01, bbx01,name,specification_name,count,isLoading){
|
3163
|
for (let i = 0; i < this.zuobiao_project.length; i++) {
|
3164
|
for (let i = 0; i < this.zuobiao_project.length; i++) {
|
3164
|
if (this.zuobiao_project[i].bbx01 == bbx01 && this.zuobiao_project[i].bby06 == specification_name) {
|
3165
|
if (this.zuobiao_project[i].bbx01 == bbx01 && this.zuobiao_project[i].bby06 == specification_name) {
|
3165
|
if (this.zuobiao_project[i].lsqty < parseInt(count)){
|
3166
|
if (this.zuobiao_project[i].lsqty < parseInt(count)){
|
3166
|
this.$message.error(name + "库存不足,无法保存")
|
3167
|
this.$message.error(name + "库存不足,无法保存")
|
|
|
3168
|
+ isLoading = false
|
|
|
3169
|
+
|
3167
|
return
|
3170
|
return
|
3168
|
}
|
3171
|
}
|
3169
|
}
|
3172
|
}
|