代码备份

prod
anthonywj 2 years ago
parent f7bcb8cc85
commit 4ff95bab94

@ -128,8 +128,12 @@
<el-table-column label="生产企业" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" width="150">
<template slot-scope="scope">
<el-button type="text" size="small" :disabled="scope.row.index === selectedIndex" @click.stop="true" @click.native="rowChange(scope.row)">编辑</el-button>
<el-button type="text" size="small" @click.stop="true" @click.native="deleteCodeArray(scope.$index, scope.row)">删除</el-button>
<el-button type="text" size="small" :disabled="scope.row.index === selectedIndex" @click.stop="true"
@click.native="rowChange(scope.row)">编辑
</el-button>
<el-button type="text" size="small" @click.stop="true"
@click.native="deleteCodeArray(scope.$index, scope.row)">删除
</el-button>
</template>
</el-table-column>
</el-table>
@ -158,7 +162,7 @@
<script>
import {getBusChange} from "@/api/basic/busTypeChange";
import {inserThrOrderWeb, updateReceive, updateReceiveDetail,delReceiveDetail} from "@/api/thrsys/thrOrderReceive";
import {inserThrOrderWeb, updateReceive, updateReceiveDetail, delReceiveDetail} from "@/api/thrsys/thrOrderReceive";
import {filterSubByInv, findByFrom, findInvByUser} from "@/api/system/invSubWarehouse";
import dialogInvProduct from "../DialogSelectInvProduct";
import {getOrderDetail} from "@/api/inout/receiveOrder";
@ -195,9 +199,10 @@ export default {
formData: {
invCode: null,
targetInvCode: null,
billNo: null,
billDate: "",
billType: "",
billType: "HCLY",
},
formRules: {
billDate: [
@ -322,7 +327,6 @@ export default {
}
}
}
if (status === '0') {
@ -343,7 +347,7 @@ export default {
type: "warning",
}).then(() => {
this.submitFunction(status);
this.loading=false
this.loading = false
}).catch(() => {
this.loading = false;
});
@ -376,7 +380,7 @@ export default {
},
selectProductFunction(event) {
if(this.formData.targetInvCode==null){
if (this.formData.targetInvCode == null) {
this.$message.error("往来信息为空!");
return;
}
@ -387,7 +391,7 @@ export default {
},
closeDialogC2(rData) {
this.selectInvProductVisible = false;
this.formData.billNo=rData;
this.formData.billNo = rData;
this.getOrderDetailList();
},
@ -400,10 +404,10 @@ export default {
},
tableCountChange(row) {
if (this.$isNotBlank(row)) {
updateReceiveDetail(row).then(res=>{
if (res.code==20000){
updateReceiveDetail(row).then(res => {
if (res.code == 20000) {
this.loading = false;
}else{
} else {
this.$message.error(res.message);
}
@ -489,7 +493,7 @@ export default {
},
created() {
if (this.$isNotBlank(this.idQuery.id)) {
this.editType=true;
this.editType = true;
this.query.limit = 100;
this.query.orderIdFk = this.idQuery.id;
this.formData = this.idQuery.formData;
@ -498,13 +502,13 @@ export default {
this.getOrderDetailList();
} else {
this.editType=false;
this.editType = false;
this.formData = {
invCode: this.$store.getters.locInvCode,
targetInvCode: null,
billType: "HCLY",
billNo: null,
billDate: "",
billType: "",
};
this.orderEditor = false;
}

@ -11,7 +11,7 @@
<el-card style="margin-top: -5px;">
<el-row>
<el-col :span="11">
<el-form-item label="单据号:" prop="billNo" >
<el-form-item label="单据号:" prop="billNo">
<el-input v-model="formData.billNo" style="width: 90%" auto-complete="off" :disabled="true"></el-input>
</el-form-item>
</el-col>
@ -59,7 +59,8 @@
<el-row style="margin-top: -10px">
<el-col :span="11">
<el-form-item label="申购科室:" prop="locStorageCode">
<el-select v-model="formData.targetInvCode" placeholder="当前分库信息" @change="setWarehouseName" style="width: 90%" clearable>
<el-select v-model="formData.targetInvCode" placeholder="当前分库信息" @change="setWarehouseName"
style="width: 90%" clearable>
<el-option
v-for="item in subInvList"
:key="item.name"
@ -73,14 +74,16 @@
</el-col>
<el-col :span="11">
<el-form-item label="申购说明:" prop="billNo">
<el-input v-model="formData.remark" auto-complete="off" style="width: 90%" type="textarea" autosize></el-input>
<el-input v-model="formData.remark" auto-complete="off" style="width: 90%" type="textarea"
autosize></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row style="margin-top: -10px" v-show="formData.status==4">
<el-col :span="11">
<el-form-item label="拒绝原因:">
<el-input v-model="formData.auditRemark" auto-complete="off" style="width: 90%" :disabled="true"></el-input>
<el-input v-model="formData.auditRemark" auto-complete="off" style="width: 90%"
:disabled="true"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -97,7 +100,8 @@
</el-button-group>
</el-row>
<el-table v-loading="loading" :data="codeArray" style="width: 100%;" :row-class-name="tableRowClassName" border highlight-current-row max-height="300" height="300" ref="multipleTable">
<el-table v-loading="loading" :data="codeArray" style="width: 100%;" :row-class-name="tableRowClassName" border
highlight-current-row max-height="300" height="300" ref="multipleTable">
<el-table-column label="序号" type="index" width="50"></el-table-column>
<el-table-column label="产品通用名" prop="productName" show-overflow-tooltip></el-table-column>
<el-table-column label="规格型号" prop="spec" show-overflow-tooltip></el-table-column>
@ -119,8 +123,12 @@
<el-table-column label="医疗器械注册人" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" width="120">
<template slot-scope="scope">
<el-button type="text" size="small" :disabled="scope.row.index === selectedIndex" @click.stop="true" @click.native="rowChange(scope.row)">编辑</el-button>
<el-button type="text" size="small" @click.stop="true" @click.native="deleteCodeArray(scope.$index, scope.row)">删除</el-button>
<el-button type="text" size="small" :disabled="scope.row.index === selectedIndex" @click.stop="true"
@click.native="rowChange(scope.row)">编辑
</el-button>
<el-button type="text" size="small" @click.stop="true"
@click.native="deleteCodeArray(scope.$index, scope.row)">删除
</el-button>
</template>
</el-table-column>
</el-table>
@ -207,6 +215,7 @@ export default {
limit: 10,
},
formData: {
billType: "CPSG",
id: null,
billNo: null,
billDate: "",
@ -236,7 +245,7 @@ export default {
2: "普通采购",
},
orderEditor: true,
selectApplyVisible:false,
selectApplyVisible: false,
sOptions: [],
sValue: [],
sList: [],
@ -272,16 +281,16 @@ export default {
}
if (status === '2') {
if(this.formData.billDate=="" || this.formData.billDate==null){
if (this.formData.billDate == "" || this.formData.billDate == null) {
return this.$message.error("单据日期不能为空!");
}
if(this.formData.targetInvCode=="" || this.formData.targetInvCode==null){
if (this.formData.targetInvCode == "" || this.formData.targetInvCode == null) {
return this.$message.error("采购科室不能为空!");
}
if(this.formData.emergency=="" || this.formData.emergency==null){
if (this.formData.emergency == "" || this.formData.emergency == null) {
return this.$message.error("紧急程度不能为空!");
}
if(this.formData.arrivalTime=="" || this.formData.arrivalTime==null){
if (this.formData.arrivalTime == "" || this.formData.arrivalTime == null) {
return this.$message.error("到货时间不能为空!");
}
@ -311,11 +320,11 @@ export default {
submitFunction(status) {
let tMessage = status === '1' ? '保存' : '提交';
this.loading = true;
this.formData.id=this.pId;
this.formData.invCode=this.$store.getters.locInvCode
this.formData.deptCode=this.$store.getters.locDeptCode
this.formData.id = this.pId;
this.formData.invCode = this.$store.getters.locInvCode
this.formData.deptCode = this.$store.getters.locDeptCode
let tQuery = {
type:1,
type: 1,
editStatus: status,
purApplyEntity: this.formData,
subErpOrders: this.codeArray,
@ -334,16 +343,16 @@ export default {
this.loading = false;
})
},
setWarehouseName(obj){
this.formData.targetDeptCode= this.subInvList.find(item => item.code == obj).parentId;
setWarehouseName(obj) {
this.formData.targetDeptCode = this.subInvList.find(item => item.code == obj).parentId;
},
selectProductFunction() {
this.selectProductVisible = true;
//idid
if(this.pId==null){
if (this.pId == null) {
addApplyId().then(response => {
if (response.code === 20000) {
this.pId=response.data
this.pId = response.data
}
}).catch(() => {
this.loading = false;
@ -354,10 +363,10 @@ export default {
closeDialogC2(rData) {
this.selectProductVisible = false;
this.selectApplyVisible = false;
this.query={
orderIdFk:rData
this.query = {
orderIdFk: rData
}
this.pId=rData;
this.pId = rData;
listApplyDetail(this.query) //
.then((response) => {
console.log(response)
@ -397,10 +406,10 @@ export default {
selectApply() {
this.selectApplyVisible = true;
//idid
if(this.pId==null){
if (this.pId == null) {
addApplyId().then(response => {
if (response.code === 20000) {
this.pId=response.data
this.pId = response.data
}
}).catch(() => {
this.loading = false;
@ -463,11 +472,10 @@ export default {
},
findSubInvs() {
this.subInvList = [];
let query = {
filter:3
filter: 3
};
filterSubByInv(query)
.then((response) => {
@ -491,7 +499,7 @@ export default {
created() {
if (this.$isNotBlank(this.idQuery.id)) {
this.query.limit = 100;
this.pId=this.idQuery.id;
this.pId = this.idQuery.id;
this.query.orderIdFk = this.idQuery.id;
this.formData = this.idQuery.formData;
this.orderEditor = true;
@ -503,6 +511,7 @@ export default {
billNo: null,
billDate: "",
remark: "",
billType: "CPSG",
deptCode: null,
locStorageCode: null,
invWarehouseCode: null,

@ -212,6 +212,7 @@ export default {
billNo: null,
billDate: "",
remark: "",
billType: "CGDD",
deptCode: null,
locStorageCode: null,
invWarehouseCode: null,
@ -281,10 +282,10 @@ export default {
if (this.formData.invCode == "" || this.formData.invCode == null) {
return this.$message.error("采购仓库不能为空!");
}
if(this.formData.emergency=="" || this.formData.emergency==null){
if (this.formData.emergency == "" || this.formData.emergency == null) {
return this.$message.error("紧急程度不能为空!");
}
if(this.formData.arrivalTime=="" || this.formData.arrivalTime==null){
if (this.formData.arrivalTime == "" || this.formData.arrivalTime == null) {
return this.$message.error("到货时间不能为空!");
}
for (let i = 0; i < this.codeArray.length; i++) {
@ -500,6 +501,7 @@ export default {
billNo: null,
billDate: "",
remark: "",
billType: "CGDD",
deptCode: null,
incCode: null,
};

@ -212,6 +212,7 @@ export default {
billNo: null,
billDate: "",
remark: "",
billType: "CGJH",
deptCode: null,
locStorageCode: null,
invWarehouseCode: null,
@ -281,10 +282,10 @@ export default {
if (this.formData.invCode == "" || this.formData.invCode == null) {
return this.$message.error("采购仓库不能为空!");
}
if(this.formData.emergency=="" || this.formData.emergency==null){
if (this.formData.emergency == "" || this.formData.emergency == null) {
return this.$message.error("紧急程度不能为空!");
}
if(this.formData.arrivalTime=="" || this.formData.arrivalTime==null){
if (this.formData.arrivalTime == "" || this.formData.arrivalTime == null) {
return this.$message.error("到货时间不能为空!");
}
for (let i = 0; i < this.codeArray.length; i++) {
@ -499,6 +500,7 @@ export default {
billNo: null,
billDate: "",
remark: "",
billType: "CGJH",
deptCode: null,
incCode: null,
};

@ -98,20 +98,19 @@
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
运行参数
</template>
<el-checkbox v-model="configQuery.entrustAction" :disabled="configQuery.downstreamEnable">
</el-checkbox>
</el-descriptions-item>
<!-- <el-descriptions-item>-->
<!-- <template slot="label">-->
<!-- 运行参数-->
<!-- </template>-->
<!-- <el-checkbox v-model="configQuery.entrustAction" :disabled="configQuery.downstreamEnable">-->
<!-- </el-checkbox>-->
<!-- </el-descriptions-item>-->
<el-descriptions-item>
<template slot="label">
单据类型
</template>
<el-checkbox v-model="configQuery.typeBus" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.typeScan" :disabled="configQuery.downstreamEnable">
</el-checkbox>
<el-checkbox v-model="configQuery.typeScan" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.typeThird" :disabled="configQuery.downstreamEnable">
</el-checkbox>
</el-descriptions-item>
@ -120,10 +119,11 @@
<template slot="label">
基础信息
</template>
<el-checkbox v-model="configQuery.basicProducts" :disabled="configQuery.downstreamEnable">
</el-checkbox>
<el-checkbox v-model="configQuery.basicCorp" :disabled="configQuery.downstreamEnable">
</el-checkbox>
<!-- <el-checkbox v-model="configQuery.basicProducts" :disabled="configQuery.downstreamEnable">-->
<!-- </el-checkbox>-->
<!-- <el-checkbox v-model="configQuery.basicCorp" :disabled="configQuery.downstreamEnable">-->
<!-- </el-checkbox>-->
<el-checkbox v-model="configQuery.basicDept" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.basicInv" :disabled="configQuery.downstreamEnable"></el-checkbox>
<el-checkbox v-model="configQuery.sysUser" :disabled="configQuery.downstreamEnable"></el-checkbox>
</el-descriptions-item>
@ -148,17 +148,17 @@
<!-- <el-checkbox v-model="configQuery.dbDiProducts">DI</el-checkbox>-->
<!-- </el-descriptions-item>-->
<el-descriptions-item>
<template slot="label">
首营资质证书
</template>
<el-checkbox v-model="configQuery.companyCert" :disabled="configQuery.downstreamEnable">
</el-checkbox>
<el-checkbox v-model="configQuery.manufacturerCert" :disabled="configQuery.downstreamEnable">
</el-checkbox>
<el-checkbox v-model="configQuery.productCert" :disabled="configQuery.downstreamEnable">
</el-checkbox>
</el-descriptions-item>
<!-- <el-descriptions-item>-->
<!-- <template slot="label">-->
<!-- 首营资质证书-->
<!-- </template>-->
<!-- <el-checkbox v-model="configQuery.companyCert" :disabled="configQuery.downstreamEnable">-->
<!-- </el-checkbox>-->
<!-- <el-checkbox v-model="configQuery.manufacturerCert" :disabled="configQuery.downstreamEnable">-->
<!-- </el-checkbox>-->
<!-- <el-checkbox v-model="configQuery.productCert" :disabled="configQuery.downstreamEnable">-->
<!-- </el-checkbox>-->
<!-- </el-descriptions-item>-->
</el-descriptions>
<el-descriptions class="margin-top" title="上传至UDI自助平台扫码单据" :column="1" :size="100"
@ -250,10 +250,9 @@
<el-table-column width="250" label="单据状态">
<template slot-scope="scope">
<el-select v-model="scope.row.orderStatus" placeholder="请选择单据状态">
<el-option label="待校验" :value=3>待校验</el-option>
<el-option label="待核对" :value=5>待核对</el-option>
<el-option label="待审核" :value=10>待审核</el-option>
<el-option label="已审核" :value=7>已审核</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>
</template>
</el-table-column>
@ -395,7 +394,7 @@ export default {
companyCert: null,
manufacturerCert: null,
productCert: null,
basicDept: null,
},
checkedBusTypes: [],

Loading…
Cancel
Save