代码备份

master
anthonywj 3 years ago
parent a6d85f5dba
commit fea1876d52

@ -16,3 +16,12 @@ export function check(data) {
data: data data: data
}); });
} }
export function deleterKey(data) {
return axios({
url: "/sale/info/deleterKey",
method: "post",
data: data
});
}

@ -96,6 +96,7 @@ export function inspectionStockOrderPDFFromTemplateFile(query) {
data: query, data: query,
}); });
} }
export function stockOrderPDFFromTemplateFile(query) { export function stockOrderPDFFromTemplateFile(query) {
return axios({ return axios({
url: "/udiwms/pdf/template/stock/order/file", url: "/udiwms/pdf/template/stock/order/file",
@ -107,5 +108,16 @@ export function stockOrderPDFFromTemplateFile(query) {
} }
export function demoPrint(query) {
return axios({
url: "/system/pdf/template/demoPrint",
method: "post",
data: query,
headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'},
responseType: 'arraybuffer', //一定要设置响应类型否则页面会是空白pdf
});
}

@ -246,6 +246,17 @@ export function updateStockOrderDetail(query) {
return axios({ return axios({
url: '/udiwms/stock/order/detail/update', url: '/udiwms/stock/order/detail/update',
method: 'post', method: 'post',
params: query data: query
}) })
} }
export function stockOrderChange(query) {
return axios({
url: "/udiwms/stock/order/change",
method: "post",
data: query
});
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

After

Width:  |  Height:  |  Size: 649 KiB

@ -434,7 +434,7 @@ export const asyncRouterMap = [
}, },
{ {
path: "thrProductsCheck", path: "thrProductsCheck",
name: "新增产品信息审核", name: "新增产品审核",
component: thrProductsCheck, component: thrProductsCheck,
meta: { meta: {
authRule: ["product/thrAddProducts"] authRule: ["product/thrAddProducts"]
@ -1006,7 +1006,7 @@ export const asyncRouterMap = [
}, },
{ {
path: "thrProductsSubmit", path: "thrProductsSubmit",
name: "新增产品信息", name: "新增配送产品",
component: thrProductsSubmit, component: thrProductsSubmit,
meta: { meta: {
authRule: ["product/thrProductsSubmit"] authRule: ["product/thrProductsSubmit"]

@ -848,6 +848,7 @@ export default {
selectLocalVisible: false, //UDI selectLocalVisible: false, //UDI
isUseDyCheck: false, isUseDyCheck: false,
lockStatusMap: {"1": "未提交", "2": "已提交", "3": "已锁定"}, lockStatusMap: {"1": "未提交", "2": "已提交", "3": "已锁定"},
loading:false,
}; };
}, },

@ -487,6 +487,10 @@ export default {
} }
this.combineQuery.thirdIds.push(row.code); this.combineQuery.thirdIds.push(row.code);
}); });
if (selectData.length == 0) {
this.$message.warning("未选择产品");
return;
}
if (selected != '') { if (selected != '') {
this.$confirm("产品编码:" + selected + "已被添加,是否继续添加", "提示", { this.$confirm("产品编码:" + selected + "已被添加,是否继续添加", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",

@ -79,7 +79,7 @@
>添加产品信息 >添加产品信息
</el-button </el-button
> >
<el-button type="primary" @click="addProductVisible=true"></el-button> <!-- <el-button type="primary" @click="addProductVisible=true"></el-button>-->
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
</el-row> </el-row>
@ -1320,7 +1320,7 @@
<el-dialog <el-dialog
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
title="新增产品信息" title="新增配送产品"
:visible.sync="addProductVisible" :visible.sync="addProductVisible"
width="85%" width="85%"
v-if="addProductVisible" v-if="addProductVisible"

@ -20,8 +20,8 @@
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="query.status" placeholder="仓库状态" clearable> <el-select v-model="query.status" placeholder="仓库状态" clearable>
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="正常" value=1></el-option> <el-option label="正常" value='1'></el-option>
<el-option label="禁用" value=0></el-option> <el-option label="禁用" value='0'></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@ -234,6 +234,7 @@
<!--添加用户弹窗--> <!--添加用户弹窗-->
<el-dialog <el-dialog
v-if="userFormVisible"
title="用户列表" title="用户列表"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
@ -680,7 +681,7 @@ const formJson = {
pid: null, pid: null,
name: null, name: null,
code: null, code: null,
status: 1, status: "1",
advanceType: false, advanceType: false,
isDefault: false, isDefault: false,
level: 1, level: 1,
@ -693,7 +694,7 @@ export default {
pid: null, pid: null,
name: null, name: null,
code: null, code: null,
status: null, status: "1",
advanceType: null, advanceType: null,
isDefault: null isDefault: null
}, },

@ -3,7 +3,7 @@
<div> <div>
<h3 class="toptitle">诏安县医院UDI自助平台</h3> <h3 class="toptitle">诏安县医院</h3>
</div> </div>
<el-form <el-form
@ -264,9 +264,9 @@
.toptitle { .toptitle {
position: absolute; position: absolute;
font-size: 60px; font-size: 55px;
color: #FFFFFF; color: #FFFFFF;
margin: 100px auto 0.5333rem 100px; margin: 50px auto 0.5333rem 50px;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
} }

@ -113,7 +113,7 @@
<el-dialog <el-dialog
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
title="新增产品信息" title="新增配送产品"
:visible.sync="addProductVisible" :visible.sync="addProductVisible"
width="85%" width="85%"
v-if="addProductVisible" v-if="addProductVisible"

@ -35,26 +35,26 @@
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>产品名称:&nbsp;</span> <span>产品编码:&nbsp;</span>
</div> </div>
<el-input <el-input
style="width: 60%" style="width: 60%"
size="small" size="small"
placeholder="请输入内容" placeholder="请输入内容"
v-model="newProductData.name" v-model="newProductData.code"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>产品标识:&nbsp;</span> <span>产品名称:&nbsp;</span>
</div> </div>
<el-input <el-input
style="width: 60%" style="width: 60%"
size="small" size="small"
placeholder="请输入内容" placeholder="请输入内容"
v-model="newProductData.code" v-model="newProductData.name"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
@ -62,63 +62,66 @@
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>注册证:&nbsp;</span> <span>规格型:&nbsp;</span>
</div> </div>
<el-input <el-input
style="width: 60%" style="width: 60%"
size="small" size="small"
placeholder="请输入内容" placeholder="请输入内容"
v-model="newProductData.registerNo" v-model="newProductData.spec"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>生产厂家:&nbsp;</span> <span>计量单位:&nbsp;</span>
</div> </div>
<el-input <el-input
style="width: 60%" style="width: 60%"
size="small" size="small"
placeholder="请输入内容" placeholder="请输入内容"
v-model="newProductData.manufactory" v-model="newProductData.measname"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>规格型号:&nbsp;</span> <span>生产厂家:&nbsp;</span>
</div> </div>
<el-input <el-input
style="width: 60%" style="width: 60%"
size="small" size="small"
placeholder="请输入内容" placeholder="请输入内容"
v-model="newProductData.spec" v-model="newProductData.manufactory"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>计量单位:&nbsp;</span> <span>注册证号:&nbsp;</span>
</div> </div>
<el-input <el-input
style="width: 60%" style="width: 60%"
size="small" size="small"
placeholder="请输入内容" placeholder="请输入内容"
v-model="newProductData.measname" v-model="newProductData.registerNo"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
@ -302,7 +305,8 @@ export default {
ybbm: null, ybbm: null,
tyshxydm: null, tyshxydm: null,
qxlb: null, qxlb: null,
cpms: null cpms: null,
thirdSys: null,
}, },
thirdSys: [], thirdSys: [],
} }
@ -311,6 +315,37 @@ export default {
methods: { methods: {
saveNewProduct() { saveNewProduct() {
this.addProductVisible = false; this.addProductVisible = false;
if (this.$isBlank(this.newProductData.thirdSys)) {
this.$message.warning("第三方系统不能为空!");
return;
}
if (this.$isBlank(this.newProductData.code)) {
this.$message.warning("产品编码为空!");
return;
}
if (this.$isBlank(this.newProductData.name)) {
this.$message.warning("产品名称不能为空!");
return;
}
if (this.$isBlank(this.newProductData.spec)) {
this.$message.warning("规格型号不能为空");
return;
}
if (this.$isBlank(this.newProductData.measname)) {
this.$message.warning("计量单位不能为空!");
return;
}
if (this.$isBlank(this.newProductData.manufactory)) {
this.$message.warning("生产厂家不能为空!");
return;
}
if (this.$isBlank(this.newProductData.registerNo)) {
this.$message.warning("注册证号不能为空!");
return;
}
if (this.newType == 1) { if (this.newType == 1) {
saveNewProduct(this.newProductData).then((res) => { saveNewProduct(this.newProductData).then((res) => {
if (res.code == 20000) { if (res.code == 20000) {
@ -356,5 +391,7 @@ export default {
</script> </script>
<style scoped> <style scoped>
.el-row {
margin-top: 10px;
}
</style> </style>

@ -21,12 +21,37 @@
placeholder="规格型号" placeholder="规格型号"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item class="query-form-item">-->
<!-- <el-input-->
<!-- v-model="filterQuery.registerNo" clearable-->
<!-- placeholder="注册/备案凭证"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input <el-select
v-model="filterQuery.registerNo" clearable v-model="filterQuery.supId"
placeholder="注册/备案凭证" filterable
></el-input> remote
clearable="true"
reserve-keyword
placeholder="配送企业"
:remote-method="findMethod"
size="mini"
:loading="loading"
>
<el-option
v-for="item in fromOptions"
:key="item.companyName"
:label="item.companyName"
:value="item.customerId"
>
<span style="float: left">{{ item.companyName }}</span>
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.checkStatus" placeholder="审核状态"> <el-select v-model="filterQuery.checkStatus" placeholder="审核状态">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
@ -35,12 +60,12 @@
<el-option label="未通过" value="3"></el-option> <el-option label="未通过" value="3"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item class="query-form-item">--> <!-- <el-form-item class="query-form-item">-->
<!-- <el-input--> <!-- <el-input-->
<!-- v-model="filterQuery.manufactory" clearable--> <!-- v-model="filterQuery.manufactory" clearable-->
<!-- placeholder="生产厂家"--> <!-- placeholder="生产厂家"-->
<!-- ></el-input>--> <!-- ></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.thirdSys" placeholder="请选择第三方系统" @change="thirdSysChange"> <el-select v-model="filterQuery.thirdSys" placeholder="请选择第三方系统" @change="thirdSysChange">
<el-option <el-option
@ -68,6 +93,7 @@
<el-table-column label="计量单位" prop="measname" show-overflow-tooltip></el-table-column> <el-table-column label="计量单位" prop="measname" show-overflow-tooltip></el-table-column>
<el-table-column label="注册/备案凭证" prop="registerNo" show-overflow-tooltip></el-table-column> <el-table-column label="注册/备案凭证" prop="registerNo" show-overflow-tooltip></el-table-column>
<el-table-column label="生产厂家" prop="manufactory" show-overflow-tooltip></el-table-column> <el-table-column label="生产厂家" prop="manufactory" show-overflow-tooltip></el-table-column>
<el-table-column label="配送企业" prop="corpName" show-overflow-tooltip></el-table-column>
<el-table-column label="审核状态" prop="checkStatus" show-overflow-tooltip> <el-table-column label="审核状态" prop="checkStatus" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
@ -130,6 +156,7 @@ import {getBasicThirdSys, filterDetailByKey} from "../../api/basic/basicThirdSys
import {selectIp} from "../../api/param/systemParamConfig"; import {selectIp} from "../../api/param/systemParamConfig";
import thrProductsDetail from "./ThrProductsDetail"; import thrProductsDetail from "./ThrProductsDetail";
import ThrProductsAdd from "@/views/thrsys/ThrProductsAdd"; import ThrProductsAdd from "@/views/thrsys/ThrProductsAdd";
import {filterCustomers} from "@/api/auth/customer";
export default { export default {
data() { data() {
@ -141,6 +168,7 @@ export default {
registerNo: null, registerNo: null,
manufactory: null, manufactory: null,
thirdSys: "", thirdSys: "",
supId:null,
page: 1, page: 1,
limit: 20, limit: 20,
}, },
@ -163,6 +191,7 @@ export default {
2: "已审核", 2: "已审核",
3: "未通过", 3: "未通过",
}, },
fromOptions: [],
curRow: null, curRow: null,
}; };
}, },
@ -325,6 +354,22 @@ export default {
this.$message.error(error.message); this.$message.error(error.message);
}) })
}, },
findMethod(query) {
console.log(query);
this.fromOptions = [];
let cQuery = {
key: query,
customerName: query,
};
filterCustomers(cQuery)
.then((response) => {
this.fromOptions = response.data.list || [];
})
.catch(() => {
this.fromOptions = [];
});
},
}, },
components: { components: {
thrProductsDetail, ThrProductsAdd thrProductsDetail, ThrProductsAdd
@ -333,6 +378,7 @@ export default {
}, },
created() { created() {
this.getBasicThirdSys(); this.getBasicThirdSys();
this.findMethod();
}, },
}; };
</script> </script>

@ -6,28 +6,28 @@
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>产品名称:&nbsp;</span> <span>产品编码:&nbsp;</span>
</div> </div>
<el-input <el-input
style="width: 60%" style="width: 60%"
:disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
:disabled="true" v-model="data.code"
v-model="data.name"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>产品标识:&nbsp;</span> <span>产品名称:&nbsp;</span>
</div> </div>
<el-input <el-input
style="width: 60%" style="width: 60%"
:disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.code" :disabled="true"
v-model="data.name"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
@ -38,65 +38,66 @@
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>注册证:&nbsp;</span> <span>规格型:&nbsp;</span>
</div> </div>
<el-input <el-input
style="width: 60%" style="width: 60%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.registerNo" v-model="data.spec"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>生产厂家:&nbsp;</span> <span>计量单位:&nbsp;</span>
</div> </div>
<el-input <el-input
style="width: 60%" style="width: 60%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="ylqxzcrbarmc" splaceholder="请输入内容"
v-model="data.manufactory" v-model="data.measname"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>规格型:&nbsp;</span> <span>注册证:&nbsp;</span>
</div> </div>
<el-input <el-input
style="width: 60%" style="width: 60%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.spec" v-model="data.registerNo"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>计量单位:&nbsp;</span> <span>生产厂家:&nbsp;</span>
</div> </div>
<el-input <el-input
style="width: 60%" style="width: 60%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="ylqxzcrbarmc"
v-model="data.measname" v-model="data.manufactory"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
@ -249,7 +250,7 @@
</template> </template>
<script> <script>
export default { export default {
name: "ThrProductsDetail", name: "ThrProductsDetail",
props: { props: {
data: { data: {
@ -257,7 +258,7 @@
required: true, required: true,
}, },
}, },
} }
</script> </script>
<style scoped> <style scoped>

@ -115,7 +115,7 @@
<el-dialog <el-dialog
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
title="新增产品信息" title="新增配送产品"
:visible.sync="addProductVisible" :visible.sync="addProductVisible"
width="85%" width="85%"
v-if="addProductVisible" v-if="addProductVisible"

@ -64,6 +64,15 @@
>模板下载 >模板下载
</el-button </el-button
> >
<el-button
type="text"
size="small"
@click="previewPdf(scope.row)"
>预览
</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -80,6 +89,7 @@
<!--表单--> <!--表单-->
<el-dialog <el-dialog
v-if="formVisible"
:title="formMap[formName]" :title="formMap[formName]"
:visible.sync="formVisible" :visible.sync="formVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
@ -192,7 +202,11 @@
<el-button slot="trigger" size="small" type="primary" :disabled="uploadDisabled">选取文件 <el-button slot="trigger" size="small" type="primary" :disabled="uploadDisabled">选取文件
</el-button> </el-button>
<!-- <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload"></el-button>--> <!-- <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload"></el-button>-->
<div slot="tip" class="el-upload__tip">只能上传 jasper 文件且不超过 2 MB</div> <div slot="tip" class="el-upload__tip" v-if="formData.path==''"> jasper 2
MB
</div>
<div slot="tip" class="el-upload__tip">{{ formData.path }}</div>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -219,7 +233,11 @@
<el-button slot="trigger" size="small" type="primary" :disabled="uploadDisabled">选取文件 <el-button slot="trigger" size="small" type="primary" :disabled="uploadDisabled">选取文件
</el-button> </el-button>
<!-- <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload"></el-button>--> <!-- <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload"></el-button>-->
<div slot="tip" class="el-upload__tip">只能上传 jrxml 文件且不超过 2 MB</div> <div slot="tip" class="el-upload__tip" v-if="formData.jrxmlPath==null"> jrxml
文件且不超过 2 MB
</div>
<div slot="tip" class="el-upload__tip">{{ formData.jrxmlPath }}</div>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -308,6 +326,7 @@ import {
import {BASE_URL, SERVER_IP} from "../../../config/app"; import {BASE_URL, SERVER_IP} from "../../../config/app";
import {authRoleAuthList} from "../../../api/auth/authRole"; import {authRoleAuthList} from "../../../api/auth/authRole";
import {saveAs} from 'file-saver'; import {saveAs} from 'file-saver';
import {demoPrint, stockOrderPDFFromTemplateFile} from "@/api/itextpdf/itextpdf";
const formJson = { const formJson = {
id: "", id: "",
@ -448,6 +467,24 @@ export default {
this.handleDownload(BASE_URL + "/udiwms/donwload/file?fileName=" + row.jrxmlPath, row.name + ".jrxml"); this.handleDownload(BASE_URL + "/udiwms/donwload/file?fileName=" + row.jrxmlPath, row.name + ".jrxml");
}, },
previewPdf(row) {
let query = {id: row.id};
demoPrint(query).then((response) => {
//pdfurl
const binaryData = [];
binaryData.push(response);
//blob
let url = window.URL.createObjectURL(
new Blob(binaryData, {type: "application/pdf"})
);
this.loading = false;
window.open(url);//pdf
}).catch(() => {
this.loading = false;
});
},
handleDownload(url, name) { handleDownload(url, name) {
this.getBlob(url).then(blob => { this.getBlob(url).then(blob => {
saveAs(blob, name); saveAs(blob, name);
@ -554,6 +591,8 @@ export default {
this.formVisible = true; this.formVisible = true;
this.formData = JSON.parse(JSON.stringify(formJson)); this.formData = JSON.parse(JSON.stringify(formJson));
this.fileList = []; this.fileList = [];
this.jrxmlFileList = [];
if (row !== null) { if (row !== null) {
this.formData = Object.assign({}, row); this.formData = Object.assign({}, row);
this.formData.module = row.module + ""; this.formData.module = row.module + "";
@ -561,6 +600,8 @@ export default {
this.index = index; this.index = index;
this.formName = "update"; this.formName = "update";
this.uploadDisabled = true; this.uploadDisabled = true;
// this.fileList.push(this.formData.path);
// this.jrxmlFileList.push(this.formData.jrxmlPath)
}, },

@ -4,6 +4,7 @@
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.isCheck" placeholder="审核状态"> <el-select v-model="filterQuery.isCheck" placeholder="审核状态">
<el-option label="全部" value=""></el-option>
<el-option label="未审核" value="0"></el-option> <el-option label="未审核" value="0"></el-option>
<el-option label="已审核" value="1"></el-option> <el-option label="已审核" value="1"></el-option>
<el-option label="未通过" value="2"></el-option> <el-option label="未通过" value="2"></el-option>
@ -33,6 +34,11 @@
prop="remark" prop="remark"
></el-table-column> ></el-table-column>
<el-table-column
label="申请人"
prop="companyName"
></el-table-column>
<el-table-column label="审核状态" prop="isCheck" width="120"> <el-table-column label="审核状态" prop="isCheck" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ checkFlag[scope.row.isCheck] }}</span> <span>{{ checkFlag[scope.row.isCheck] }}</span>
@ -49,6 +55,24 @@
>审核 >审核
</el-button </el-button
> >
<el-button
type="text"
size="small"
@click.native.stop="editDialog(scope.row)"
>编辑
</el-button
>
<el-button
type="text"
size="small"
@click.native.stop="deleteDialog(scope.row)"
>删除
</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -60,12 +84,86 @@
width="30%" width="30%"
center center
> >
<span slot="footer" class="dialog-footer"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="6">
<div class="ao-text">
<span>IMEI</span>
</div>
</el-col>
<el-col :span="12">
<el-input
size="small"
placeholder=""
v-model="checkQuery.imei"
disabled
></el-input>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 10px">
<el-col :span="6">
<div class="ao-text">
<span>登记说明</span>
</div>
</el-col>
<el-col :span="12">
<el-input
size="small"
placeholder=""
v-model="checkQuery.remark"
></el-input>
</el-col>
</el-row>
<span slot="footer" class="dialog-footer" style="margin-top: 40px">
<el-button @click="centerDialogVisible = false">取消</el-button> <el-button @click="centerDialogVisible = false">取消</el-button>
<el-button type="primary" @click="passRegister"></el-button> <el-button type="primary" @click="passRegister"></el-button>
<el-button type="primary" @click="noPassRegister"></el-button> <el-button type="primary" @click="noPassRegister"></el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog
title="编辑"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="editDialogVisible"
width="30%"
center
>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="6">
<div class="ao-text">
<span>IMEI</span>
</div>
</el-col>
<el-col :span="12">
<el-input
size="small"
placeholder=""
v-model="checkQuery.imei"
disabled
></el-input>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 10px">
<el-col :span="6">
<div class="ao-text">
<span>登记说明</span>
</div>
</el-col>
<el-col :span="12">
<el-input
size="small"
placeholder=""
v-model="checkQuery.remark"
></el-input>
</el-col>
</el-row>
<span slot="footer" class="dialog-footer" style="margin-top: 40px">
<el-button @click="editDialogVisible = false">取消</el-button>
<el-button type="primary" @click="confirmEdit"></el-button>
</span>
</el-dialog>
<el-pagination <el-pagination
:page-size="filterQuery.limit" :page-size="filterQuery.limit"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
@ -76,13 +174,13 @@
</template> </template>
<script> <script>
import {registerList, check} from "../../api/auth/deviceCheck"; import {registerList, check, deleterKey} from "../../api/auth/deviceCheck";
export default { export default {
data() { data() {
return { return {
filterQuery: { filterQuery: {
isCheck: "0", isCheck: "",
page: 1, page: 1,
limit: 20, limit: 20,
}, },
@ -99,6 +197,11 @@ export default {
addDialogVisible: false, addDialogVisible: false,
centerDialogVisible: false, centerDialogVisible: false,
check: "", check: "",
checkQuery: {
imei: null,
remark: null,
},
editDialogVisible: false,
}; };
}, },
@ -132,7 +235,10 @@ export default {
this.total = 0; this.total = 0;
}); });
}, },
editDialog(row) {
this.checkQuery = row;
this.editDialogVisible = true;
},
cancelDialog() { cancelDialog() {
this.addDialogVisible = false; this.addDialogVisible = false;
}, },
@ -170,20 +276,38 @@ export default {
}); });
}, },
checkDialog(row) { checkDialog(row) {
this.checkQuery = row;
this.checkQuery = {
id: row.id + "",
isCheck: 1,
};
console.log(
this.check + "---" + row.roles + "---" + this.checkQuery.roles
);
this.centerDialogVisible = true; this.centerDialogVisible = true;
}, },
confirmEdit() {
this.ch
this.checkRegister();
},
deleteDialog(row) {
let query = {
id: row.id,
}
deleterKey(query)
.then((response) => {
if (response.code === 20000) {
this.getList();
this.$message({
type: "success",
message: "删除成功!",
});
} else {
this.$message.warning("删除失败");
this.loading = false;
}
})
.catch(() => {
});
},
passRegister() { passRegister() {
this.checkQuery.isCheck = 1;
this.checkRegister(); this.checkRegister();
this.centerDialogVisible = false; this.centerDialogVisible = false;
}, },

@ -638,11 +638,16 @@ export default {
methods: { methods: {
onSubmit(formName) { onSubmit(formName) {
// this.formVisible = true; // this.formVisible = true;
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
// if (!this.checkCompanyNameStatus && this.registerConfigMap.companyCheckStatus) { if (this.registerConfigMap.companyCheckStatus) {
// return this.$message.error(''); if (this.$isBlank(this.inputQuery.companyName)) {
// } this.$message.error('企业名称不能为空');
return;
}
}
this.loading = true; this.loading = true;
register(this.inputQuery).then((response) => { register(this.inputQuery).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {

@ -0,0 +1,347 @@
<template>
<div>
<el-form :model="formData" :rules="formRules" ref="dataForm">
<el-button-group style="display: flex;margin: -40px 0 20px 80%; height: 35px">
<el-button
type="primary"
@click.native="submit('0')"
>生成单据
</el-button
>
</el-button-group>
<el-row :gutter="20">
<el-col :span="3">
<div class="ao-text">
<span>入库单号</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="corpOrderId">
<el-input v-model="formData.corpOrderId" auto-complete="off"
:disabled="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="3">
<div class="ao-text">
<span>单据时间</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="actDate">
<el-date-picker
v-model="formData.actDate"
type="datetime"
placeholder="日期"
:disabled="true"
style="width: 100%; "
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="3">
<div class="ao-text">
<span>单据类型</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item class="query-form-item" prop="billType">
<el-select v-model="formData.action" placeholder="请选择单据类型"
@change="actionChange">
<el-option
v-for="item in busTypes"
:key="item.name"
:label="item.name"
:value="item.action">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="3">
<div class="ao-text">
<span>当前仓库</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="locStorageCode">
<!--<el-select v-model="formData.billType" style="width: 100%" placeholder="业务类型" :disabled="true">-->
<!--<el-option label="送货单" value="deliveryNote"></el-option>-->
<!--</el-select>-->
<el-select v-model="formData.locStorageCode" placeholder="当前仓库信息" @change="locCHange">
<el-option
v-for="item in storageList"
:key="item.name"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="3">
<div class="ao-text">
<span>往来信息</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item class="query-form-item" prop="fromCorp"
v-if="curAction.corpType ==0 || curAction.corpType == 3 || (curAction.corpType == 2 && !curAction.genUnit)">
<el-select
v-model="formData.fromCorp"
filterable
remote
clearable="true"
reserve-keyword
placeholder="请输入往来单位"
:remote-method="findMethod"
:loading="loading"
@change="unitChange"
>
<el-option
v-for="item in fromOptions"
:key="item.name"
:label="item.name"
:value="item"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item class="query-form-item" prop="fromCorp"
v-if="curAction.corpType ==1">
<el-select
v-model="formData.fromCorp"
filterable
remote
clearable="true"
reserve-keyword
placeholder="请输入仓库信息"
:remote-method="findStorageMethod"
:loading="loading"
@change="storageChange"
>
<el-option
v-for="item in fromStorageOptions"
:key="item.value"
:label="item.code"
:value="item">
<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-form-item class="query-form-item" prop="fromCorp"
v-if="curAction.corpType ==2 && curAction.genUnit">
<el-input v-model="formData.fromCorp" auto-complete="off"
clearable
placeholder="请输入病人住院号"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</template>
<script>
import {filterAllByLoc, filterAllByUser} from "@/api/basic/invWarehouse";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import {parseTime} from "@/filtres";
import {getLocalJoinByUser} from "@/api/basic/busLocalType";
import {submitOrderWeb} from "@/api/warehouse/order";
import {stockOrderChange} from "@/api/warehouse/stockOrder";
export default {
name: "DialogcChangeNewOrder",
props: {
closeDialog: {
type: Function,
required: true,
},
curRow: {
type: Object,
required: true,
},
},
data() {
return {
formData: {
corpOrderId: "",
code: "",
actor: "",
fromCorpId: "",
fromCorp: null,
fromType: 2,
actDate: new Date(),
action: null,
locStorageCode: null,
},
fromStorageOptions: [],
curAction: {
corpType: 0,
genUnit: false,
},
busTypes: [],
fromOptions: [],
}
},
methods: {
submit() {
if (this.$isBlank(this.formData.action)) {
this.$message.warning("请选择单据类型!");
return;
}
if (this.$isBlank(this.formData.locStorageCode)) {
this.$message.error('当前仓库不能为空');
return;
}
if (this.$isBlank(this.formData.fromCorp)) {
this.$message.error('当前往来单位不能为空');
return;
}
let tQuery = {
stockOrderId: this.curRow.id,
locStorageCode: this.formData.locStorageCode,
action: this.formData.action,
fromCorp: this.formData.fromCorp,
fromCorpId: this.formData.fromCorpId,
}
stockOrderChange(tQuery)
.then((response) => {
console.log(response)
if (response.code === 20000) {
this.$message.success("提交成功");
this.closeDialog();
} else {
this.$message.error(response.message);
}
this.loading = false;
});
},
locCHange() {
this.findStorageMethod();
},
findStorageMethod(query) {
if (this.formData.locStorageCode == null)
return;
this.fromStorageOptions = [];
let cQuery = {
locInvCode: this.formData.locStorageCode,
};
filterAllByLoc(cQuery)
.then((response) => {
this.fromStorageOptions = response.data || [];
})
.catch(() => {
});
},
findMethod(query) {
console.log(query);
this.fromOptions = [];
let cQuery = {
key: query,
corpType: null,
outType: null,
};
if (this.curAction.corpType == 3) {//
cQuery.corpType = 4;
this.formData.fromCorpId = this.curAction.defaultUnit;
} else if (this.curAction.corpType == 2)//
{
cQuery.corpType = 4;
cQuery.outType = 2;
} else if (this.curAction.corpType == 0) {
cQuery.corpType = 2;
} else return;
getBasicUnitMaintains(cQuery)
.then((response) => {
this.loading = false;
this.fromOptions = response.data.page.list || [];
if (this.curAction.corpType == 3) {
for (let i = 0; i < this.fromOptions.length; i++) {
if (this.fromOptions[i].erpId == this.formData.fromCorpId) {
this.formData.fromCorp = this.fromOptions[i].name;
}
}
}
})
.catch(() => {
this.loading = false;
});
},
storageChange(row) {
this.formData.fromCorpId = row.code;
this.formData.fromCorp = row.name;
},
unitChange(row) {
console.log(row);
this.formData.fromCorpId = row.erpId;
this.formData.fromCorp = row.name;
},
actionChange(item) {
this.curAction = this.getActionItem(item);
// this.formData.locStorageCode = this.curAction.storageCode;
this.findMethod();
},
getBusType() {
let query = {
enabled: true,
};
getLocalJoinByUser(query)
.then((response) => {
this.busTypes = response.data.list || [];
this.filterQuery.billAction = this.busTypes[0].action;
})
.catch(() => {
});
},
getStorage() {
this.storageList = [];
filterAllByUser()
.then((response) => {
this.storageList = response.data || [];
})
.catch(() => {
});
},
},
created() {
if (this.$isBlank(this.formData.corpOrderId)) {
let date = new Date();
this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10);
}
this.getBusType();
this.getStorage();
}
}
</script>
<style scoped>
</style>

@ -58,10 +58,12 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item class="query-form-item" prop="billType"> <el-form-item class="query-form-item" prop="billType">
<el-select v-model="formData.action" placeholder="请选择单据类型" <el-select v-model="formData.action" placeholder="请选择单据类型"
:disabled="corpOrderIdDisabled"
@change="actionChange"> @change="actionChange">
<el-option <el-option
v-for="item in busTypes" v-for="item in busTypes"
:key="item.name" :key="item.name"
:label="item.name" :label="item.name"
:value="item.action"> :value="item.action">
<span style="float: left">{{ item.name }}</span> <span style="float: left">{{ item.name }}</span>
@ -81,10 +83,12 @@
<!--<el-select v-model="formData.billType" style="width: 100%" placeholder="业务类型" :disabled="true">--> <!--<el-select v-model="formData.billType" style="width: 100%" placeholder="业务类型" :disabled="true">-->
<!--<el-option label="送货单" value="deliveryNote"></el-option>--> <!--<el-option label="送货单" value="deliveryNote"></el-option>-->
<!--</el-select>--> <!--</el-select>-->
<el-select v-model="formData.locStorageCode" placeholder="当前仓库信息" @change="locCHange"> <el-select v-model="formData.locStorageCode" placeholder="当前仓库信息" @change="locCHange"
:disabled="corpOrderIdDisabled">
<el-option <el-option
v-for="item in storageList" v-for="item in storageList"
:key="item.name" :key="item.name"
:label="item.name" :label="item.name"
:value="item.code"> :value="item.code">
<span style="float: left">{{ item.name }}</span> <span style="float: left">{{ item.name }}</span>
@ -105,7 +109,8 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item class="query-form-item" prop="fromCorp" <el-form-item class="query-form-item" prop="fromCorp"
v-if="curAction.corpType ==0 || curAction.corpType == 3 || (curAction.corpType == 2 && !curAction.genUnit)"> v-if="curAction.corpType ==0 || curAction.corpType == 3 || (curAction.corpType == 2 && !curAction.genUnit)"
>
<el-select <el-select
v-model="formData.fromCorp" v-model="formData.fromCorp"
filterable filterable
@ -115,6 +120,7 @@
placeholder="请输入往来单位" placeholder="请输入往来单位"
:remote-method="findMethod" :remote-method="findMethod"
:loading="loading" :loading="loading"
:disabled="corpOrderIdDisabled"
@change="unitChange" @change="unitChange"
> >
<el-option <el-option
@ -128,7 +134,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item" prop="fromCorp" <el-form-item class="query-form-item" prop="fromCorp"
v-if="curAction.corpType ==1"> v-if="curAction.corpType ==1"
>
<el-select <el-select
v-model="formData.fromCorp" v-model="formData.fromCorp"
filterable filterable
@ -137,7 +144,7 @@
reserve-keyword reserve-keyword
placeholder="请输入仓库信息" placeholder="请输入仓库信息"
:remote-method="findStorageMethod" :remote-method="findStorageMethod"
:loading="loading" :loading="loading" :disabled="corpOrderIdDisabled"
@change="storageChange" @change="storageChange"
> >
<el-option <el-option
@ -154,6 +161,7 @@
v-if="curAction.corpType ==2 && curAction.genUnit"> v-if="curAction.corpType ==2 && curAction.genUnit">
<el-input v-model="formData.fromCorp" auto-complete="off" <el-input v-model="formData.fromCorp" auto-complete="off"
clearable clearable
:disabled="corpOrderIdDisabled"
placeholder="请输入病人住院号" placeholder="请输入病人住院号"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -238,19 +246,21 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="scope.row.relId != null "
@click.native.stop="bindRl(scope.row)" @click.native.stop="bindRl(scope.row)"
>选择产品 >选择产品
</el-button </el-button
> >
<!-- :disabled="scope.row.relId != null "-->
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled=" scope.row.supId !=null"
@click.native.stop="handleUnitClick(scope.row)" @click.native.stop="handleUnitClick(scope.row)"
>选择供应商 >选择供应商
</el-button </el-button
> >
<!-- :disabled=" scope.row.supId !=null"-->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -481,7 +491,6 @@ export default {
this.$refs.inputRef.focus(); this.$refs.inputRef.focus();
this.getCodeList(); this.getCodeList();
} else { } else {
this.corpOrderIdDisabled = true;
if (response.code == 502) { if (response.code == 502) {
this.curRow = response.data; this.curRow = response.data;
this.idQuery.id = this.curRow.orderId; this.idQuery.id = this.curRow.orderId;

@ -68,8 +68,10 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="formData.billType" placeholder="请选择单据类型" @change="actionChange" <el-select v-model="formData.billType" placeholder="请选择单据类型" @change="actionChange"
:disabled="corpOrderIdDisabled"
clearable> clearable>
<el-option <el-option
v-for="item in busTypes" v-for="item in busTypes"
:key="item.name" :key="item.name"
:label="item.name" :label="item.name"
@ -93,8 +95,10 @@
<!--<el-select v-model="formData.billType" style="width: 100%" placeholder="业务类型" :disabled="true">--> <!--<el-select v-model="formData.billType" style="width: 100%" placeholder="业务类型" :disabled="true">-->
<!--<el-option label="送货单" value="deliveryNote"></el-option>--> <!--<el-option label="送货单" value="deliveryNote"></el-option>-->
<!--</el-select>--> <!--</el-select>-->
<el-select v-model="formData.locStorageCode" placeholder="当前仓库信息" clearable> <el-select v-model="formData.locStorageCode" placeholder="当前仓库信息" clearable
:disabled="corpOrderIdDisabled">
<el-option <el-option
v-for="item in storageList" v-for="item in storageList"
:key="item.name" :key="item.name"
:label="item.name" :label="item.name"
@ -178,11 +182,11 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="scope.row.relId != null "
@click.native.stop="bindRl(scope.row)" @click.native.stop="bindRl(scope.row)"
>选择产品 >选择产品
</el-button </el-button
> >
<!-- :disabled="scope.row.relId != null "-->
<!-- <el-button--> <!-- <el-button-->
<!-- type="text"--> <!-- type="text"-->
<!-- size="small"--> <!-- size="small"-->

@ -52,7 +52,7 @@
<el-table-column label="操作" fixed="right" width="250"> <el-table-column label="操作" fixed="right" width="250">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button--> <!-- <el-button-->
<!-- type="text"--> <!-- type="text"-->
<!-- size="small"--> <!-- size="small"-->
<!-- @click.native.stop="deleteCode(scope.$index, scope.row)"--> <!-- @click.native.stop="deleteCode(scope.$index, scope.row)"-->
@ -62,19 +62,19 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="scope.row.relId != null "
@click.native.stop="bindRl(scope.row)" @click.native.stop="bindRl(scope.row)"
>选择产品 >选择产品
</el-button </el-button
> >
<!-- :disabled="scope.row.relId != null "-->
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled=" scope.row.supId !=null"
@click.native.stop="handleUnitClick(scope.row)" @click.native.stop="handleUnitClick(scope.row)"
>选择供应商 >选择供应商
</el-button </el-button
> >
<!-- :disabled=" scope.row.supId !=null"-->
</template> </template>
</el-table-column> </el-table-column>

@ -47,7 +47,7 @@
</el-form-item> </el-form-item>
<!-- <el-form-item class="query-form-item">--> <!-- <el-form-item class="query-form-item">-->
<!-- <el-select v-model="listQuery.thirdSys" placeholder="请选择第三方系统" @change="thirdSysChange">--> <!-- <el-select v-model="listQuery.thirdSys" placeholder="请选择第三方系统" @change="thirdSysChange">-->
<!-- <el-option--> <!-- <el-option-->
<!-- v-for="item in thirdSys"--> <!-- v-for="item in thirdSys"-->
@ -116,6 +116,52 @@
</div> </div>
</el-card> </el-card>
<el-dialog
v-if="storageVisible"
title="请选择当前仓库"
:close-on-click-modal="false"
:close-on-press-escape="false"
append-to-body
:visible.sync="storageVisible">
<el-table
:data="storageList"
style="width: 100%;margin-bottom: 20px;"
row-key="id"
highlight-current-row>
<el-table-column
prop="code"
label="仓库编码"
width="120"
>
</el-table-column>
<el-table-column
prop="name"
label="仓库名称"
width="250"
>
</el-table-column>
<el-table-column label="操作" fixed="right">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click.native.stop="selectStorage(scope.row)"
>选择
</el-button
>
</template>
</el-table-column>
</el-table>
</el-dialog>
</div> </div>
</template> </template>
@ -125,6 +171,7 @@ import {getBussinessType} from "../../api/basic/bussinessType";
import {getLocalJoinBusType} from "../../api/basic/busLocalType"; import {getLocalJoinBusType} from "../../api/basic/busLocalType";
import store from "../../store"; import store from "../../store";
import {getOriginBusType} from "@/api/basic/busOriginType"; import {getOriginBusType} from "@/api/basic/busOriginType";
import {filterAllByUser} from "@/api/basic/invWarehouse";
export default { export default {
name: "closeDialog", name: "closeDialog",
@ -156,17 +203,19 @@ export default {
erpName: "", erpName: "",
keys: [], keys: [],
}, },
storageVisible: false,
dataList: [], dataList: [],
pageTotal: 1, pageTotal: 1,
total: 1, total: 1,
currentRow: null, currentRow: null,
curLocInv: null,
loading: false, loading: false,
multipleUdiSelection: [], multipleUdiSelection: [],
thirdSys: [], thirdSys: [],
thirdSysFk: null, thirdSysFk: null,
busTypes: [], busTypes: [],
originTypes: [], originTypes: [],
storageList: [],
actDateRange: [], actDateRange: [],
pickerOptions: { pickerOptions: {
shortcuts: [ shortcuts: [
@ -261,8 +310,12 @@ export default {
if (this.$isBlank(this.currentRow.id)) { if (this.$isBlank(this.currentRow.id)) {
return; return;
} }
if (this.curLocInv == null) {
this.storageVisible = true;
} else {
let tQuery = { let tQuery = {
id: this.currentRow.id id: this.currentRow.id,
locStorageCode: this.curLocInv,
} }
addStockOrder(tQuery) addStockOrder(tQuery)
.then((response) => { .then((response) => {
@ -274,6 +327,25 @@ export default {
}) })
.catch(() => { .catch(() => {
}); });
}
},
selectStorage(row) {
this.curLocInv = row.code;
let tQuery = {
id: this.currentRow.id,
locStorageCode: this.curLocInv,
}
addStockOrder(tQuery)
.then((response) => {
if (response.code === 20000) {
this.storageVisible = false;
this.closeDialog();
} else {
this.$message.error(response.message);
}
})
.catch(() => {
});
}, },
handleSelectionUdiChange(val) { handleSelectionUdiChange(val) {
@ -300,9 +372,22 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getStorage(event) {
this.storageList = [];
filterAllByUser()
.then((response) => {
this.storageList = response.data || [];
if (this.storageList.length == 1) {
this.curLocInv = this.storageList[0].code;
}
})
.catch(() => {
});
},
}, },
created() { created() {
this.getBusType(); this.getBusType();
this.getStorage();
}, },
}; };
</script> </script>

@ -519,7 +519,7 @@ import stockOrderNewSelectProduct from "./stockOrderNewSelectProduct";
import {getBasicUnitMaintains, getBasicUnitMaintains2} from "../../api/basic/basicUnitMaintain"; import {getBasicUnitMaintains, getBasicUnitMaintains2} from "../../api/basic/basicUnitMaintain";
import {getBussinessType} from "../../api/basic/bussinessType"; import {getBussinessType} from "../../api/basic/bussinessType";
import {getLocalBusType, getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType"; import {getLocalBusType, getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType";
import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse"; import {filterAll, filterAllByLoc, filterAllByUser} from "@/api/basic/invWarehouse";
import dialogInvProduct from "../inventory/DialogInvProduct" import dialogInvProduct from "../inventory/DialogInvProduct"
export default { export default {
@ -726,11 +726,13 @@ export default {
}, },
findStorageMethod(query) { findStorageMethod(query) {
console.log(query); console.log(query);
if (this.formData.locStorageCode == null)
return;
this.fromStorageOptions = []; this.fromStorageOptions = [];
let cQuery = { let cQuery = {
key: query, locInvCode: this.formData.locStorageCode,
}; };
filterAllByUser(cQuery) filterAllByLoc(cQuery)
.then((response) => { .then((response) => {
let temp = response.data || []; let temp = response.data || [];
for (let i = 0; i < temp.length; i++) { for (let i = 0; i < temp.length; i++) {
@ -1291,6 +1293,7 @@ export default {
this.formData.locStorageCode = item; this.formData.locStorageCode = item;
this.$forceUpdate(); this.$forceUpdate();
this.getBusType(item); this.getBusType(item);
this.findStorageMethod();
} }
}, },
filters: {}, filters: {},

@ -107,7 +107,7 @@
<!-- {{ scope.row.type | typeFilterName }}--> <!-- {{ scope.row.type | typeFilterName }}-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column label="操作" fixed="right" width="120"> <el-table-column label="操作" fixed="right" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button--> <!-- <el-button-->
<!-- type="text"--> <!-- type="text"-->
@ -116,21 +116,32 @@
<!-- >码详情--> <!-- >码详情-->
<!-- </el-button--> <!-- </el-button-->
<!-- >--> <!-- >-->
<!-- <el-button--> <el-button
<!-- type="text"--> type="text"
<!-- size="small"--> size="small"
<!-- @click.native="printOrder(scope.row)"--> @click.native="printOrder(scope.row)"
<!-- v-if="haveDistributionVisible"-->
<!-- >打印订单--> >打印
<!-- </el-button--> </el-button
<!-- >--> >
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click.native="handleDetailForm(scope.$index, scope.row)" @click.native="handleDetailForm(scope.$index, scope.row)"
>编辑 >发票
</el-button </el-button
> >
<el-button
type="text"
size="small"
@click.native="generOrder(scope.row)"
>生成单据
</el-button
>
<!-- v-if="haveDistributionVisible"-->
<div v-if="scope.row.enableSupplementOrder"> <div v-if="scope.row.enableSupplementOrder">
<el-button <el-button
type="text" type="text"
@ -291,6 +302,22 @@
</el-dialog> </el-dialog>
<el-dialog
title="根据当前单据生成新单据"
:visible.sync="stockChangeVisible"
width="60%"
v-if="stockChangeVisible"
@close='closeDialog'
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<DialogcChangeNewOrder
:closeDialog="closeDialog"
:curRow="curRow"
></DialogcChangeNewOrder>
</el-dialog>
</div> </div>
</template> </template>
@ -306,6 +333,7 @@ import {
import stockOrderDistribution from "./stockOrderDistribution"; import stockOrderDistribution from "./stockOrderDistribution";
import stockOrderQRCodeDetail from "./stockOrderQRCodeDetail"; import stockOrderQRCodeDetail from "./stockOrderQRCodeDetail";
import stockQRCodeExport from "./stockQRCodeExport"; import stockQRCodeExport from "./stockQRCodeExport";
import DialogcChangeNewOrder from "./DialogcChangeNewOrder";
import draggable from "vuedraggable"; import draggable from "vuedraggable";
import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} from "../../api/itextpdf/itextpdf"; import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} from "../../api/itextpdf/itextpdf";
import store from "../../store"; import store from "../../store";
@ -379,12 +407,14 @@ export default {
isSp: store.getters.customerId, isSp: store.getters.customerId,
detailFormVisible: false, detailFormVisible: false,
stockOrderEditVisible: false, stockOrderEditVisible: false,
stockChangeVisible: false,
detailFormData: {}, detailFormData: {},
detailFormLoading: false, detailFormLoading: false,
haveDistributionVisible: true, haveDistributionVisible: true,
qrcodeDetailVisible: false, qrcodeDetailVisible: false,
qrcodeExportVisible: false, qrcodeExportVisible: false,
actDateRange: [], actDateRange: [],
curRow: null,
pickerOptions: { pickerOptions: {
shortcuts: [ shortcuts: [
{ {
@ -467,6 +497,12 @@ export default {
} }
}) })
}, },
generOrder(row) {
this.stockChangeVisible = true;
this.curRow = row;
},
changeFun(row) { changeFun(row) {
let _this = this; let _this = this;
_this.multipId = []; //ID _this.multipId = []; //ID
@ -573,6 +609,8 @@ export default {
}, },
closeDialog(type) { closeDialog(type) {
this.distributionVisible = false; this.distributionVisible = false;
this.stockChangeVisible = false;
this.getList(); this.getList();
if (this.$isNotBlank(type)) { if (this.$isNotBlank(type)) {
this.detailList = []; this.detailList = [];
@ -587,12 +625,16 @@ export default {
} }
}, },
printOrder(row) { printOrder(row) {
let tQuery = {queryId: row.id,} let tQuery = {
queryId: row.id,
moduleId: 4,
}
this.loading = true; this.loading = true;
inspectionStockOrderPDFFromTemplateFile(tQuery).then((response) => { inspectionStockOrderPDFFromTemplateFile(tQuery).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
tQuery = { tQuery = {
id: row.id, id: row.id,
moduleId: 4,
} }
stockOrderPDFFromTemplateFile(tQuery).then((response) => { stockOrderPDFFromTemplateFile(tQuery).then((response) => {
//pdfurl //pdfurl
@ -825,7 +867,7 @@ export default {
stockOrderDistribution, stockOrderDistribution,
stockOrderQRCodeDetail, stockOrderQRCodeDetail,
stockQRCodeExport, stockQRCodeExport,
StockOrderEdit StockOrderEdit, DialogcChangeNewOrder
}, },
filters: { filters: {
statusFilterType(status) { statusFilterType(status) {

@ -702,13 +702,14 @@ export default {
printOrder(row) { printOrder(row) {
let tQuery = { let tQuery = {
queryId: row.id, queryId: row.id,
moduleId: 5,
} }
this.loading = true; this.loading = true;
inspectionStockOrderPDFFromTemplateFile(tQuery).then((response) => { inspectionStockOrderPDFFromTemplateFile(tQuery).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
tQuery = { tQuery = {
id: row.id, id: row.id,
moduleId: 5,
orderName: "配货单", orderName: "配货单",
} }
stockOrderPDFFromTemplateFile(tQuery).then((response) => { stockOrderPDFFromTemplateFile(tQuery).then((response) => {

@ -145,11 +145,11 @@
</el-card> </el-card>
<el-card class="el-card"> <el-card class="el-card">
<!-- <el-row style="margin-bottom: 20px;">--> <!-- <el-row style="margin-bottom: 20px;">-->
<!-- <el-button type="primary" @click="batchSetParams(null,'salesListNo')"></el-button>--> <!-- <el-button type="primary" @click="batchSetParams(null,'salesListNo')"></el-button>-->
<!-- <el-button type="primary" @click="batchSetParams(null, 'firstSalesInvNo')">批量设置销售发票第一票</el-button>--> <!-- <el-button type="primary" @click="batchSetParams(null, 'firstSalesInvNo')">批量设置销售发票第一票</el-button>-->
<!-- <el-button type="primary" @click="batchSetParams(null, 'secSalesInvNo')">批量设置销售发票第二票</el-button>--> <!-- <el-button type="primary" @click="batchSetParams(null, 'secSalesInvNo')">批量设置销售发票第二票</el-button>-->
<!-- </el-row>--> <!-- </el-row>-->
<el-table v-loading="detailLoading" <el-table v-loading="detailLoading"
:data="detailList" :data="detailList"
@ -619,7 +619,7 @@ export default {
this.currentCheckIndex = index; this.currentCheckIndex = index;
console.log(this.currentCheckIndex) console.log(this.currentCheckIndex)
}, },
handleSave (index, row) { handleSave(index, row) {
this.currentCheckIndex = -1; this.currentCheckIndex = -1;
updateStockOrderDetail(row).then((res) => { updateStockOrderDetail(row).then((res) => {
@ -752,7 +752,7 @@ export default {
printOrder(row) { printOrder(row) {
let tQuery = { let tQuery = {
queryId: row.id, queryId: row.id,
moduleId: 2,
} }
this.loading = true; this.loading = true;
inspectionStockOrderPDFFromTemplateFile(tQuery).then((response) => { inspectionStockOrderPDFFromTemplateFile(tQuery).then((response) => {
@ -760,6 +760,7 @@ export default {
tQuery = { tQuery = {
id: row.id, id: row.id,
orderName: "送货单", orderName: "送货单",
moduleId: 2,
} }
stockOrderPDFFromTemplateFile(tQuery).then((response) => { stockOrderPDFFromTemplateFile(tQuery).then((response) => {
//pdfurl //pdfurl

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save