|
@@ -1,55 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
- <el-dialog
|
|
|
|
- :title="upload.title"
|
|
|
|
- :visible.sync="upload.open"
|
|
|
|
- width="400px"
|
|
|
|
- append-to-body
|
|
|
|
- >
|
|
|
|
- <el-upload
|
|
|
|
- ref="upload"
|
|
|
|
- :limit="1"
|
|
|
|
- accept=".xlsx, .xls"
|
|
|
|
- :headers="upload.headers"
|
|
|
|
- :action="
|
|
|
|
- upload.url +
|
|
|
|
- '?updateSupport=' +
|
|
|
|
- upload.updateSupport +
|
|
|
|
- '&tableName=' +
|
|
|
|
- tableName +
|
|
|
|
- '&sqlKey=' +
|
|
|
|
- tableKey
|
|
|
|
- "
|
|
|
|
- v-loading="upload.isUploading"
|
|
|
|
- :disabled="upload.isUploading"
|
|
|
|
- :on-progress="handleFileUploadProgress"
|
|
|
|
- :on-success="handleFileSuccess"
|
|
|
|
- :auto-upload="false"
|
|
|
|
- :onChange="handleChange"
|
|
|
|
- drag
|
|
|
|
- >
|
|
|
|
- <i class="el-icon-upload"></i>
|
|
|
|
- <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
|
|
|
- <div class="el-upload__tip text-center" slot="tip">
|
|
|
|
- <!-- <div class="el-upload__tip" slot="tip">-->
|
|
|
|
- <!-- <el-checkbox v-model="upload.updateSupport"/>-->
|
|
|
|
- <!-- 是否更新已经存在的用户数据-->
|
|
|
|
- <!-- </div>-->
|
|
|
|
- <span>仅允许导入xls、xlsx格式文件。</span>
|
|
|
|
- <el-link
|
|
|
|
- type="primary"
|
|
|
|
- :underline="false"
|
|
|
|
- style="font-size: 12px; vertical-align: baseline"
|
|
|
|
- @click="importTemplate"
|
|
|
|
- >下载模板
|
|
|
|
- </el-link>
|
|
|
|
- </div>
|
|
|
|
- </el-upload>
|
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
|
- <el-button type="primary" @click="submitFileForm">确 定</el-button>
|
|
|
|
- <el-button @click="upload.open = false">取 消</el-button>
|
|
|
|
- </div>
|
|
|
|
- </el-dialog>
|
|
|
|
|
|
+ <!--头部查询表单-->
|
|
<Queryfrom
|
|
<Queryfrom
|
|
:form-vals="templateInfo.where"
|
|
:form-vals="templateInfo.where"
|
|
:statisticList="statisticList"
|
|
:statisticList="statisticList"
|
|
@@ -58,6 +9,7 @@
|
|
@getList="getList"
|
|
@getList="getList"
|
|
ref="mychild"
|
|
ref="mychild"
|
|
/>
|
|
/>
|
|
|
|
+ <!--头部新增按钮-->
|
|
<el-row :gutter="10" class="mb8">
|
|
<el-row :gutter="10" class="mb8">
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
@@ -117,6 +69,7 @@
|
|
@queryTable="pageList"
|
|
@queryTable="pageList"
|
|
></right-toolbar>
|
|
></right-toolbar>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ <!--表格-->
|
|
<el-table
|
|
<el-table
|
|
v-loading="loading"
|
|
v-loading="loading"
|
|
:data="tableList"
|
|
:data="tableList"
|
|
@@ -234,6 +187,7 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
|
|
+ <!--分页器-->
|
|
<pagination
|
|
<pagination
|
|
v-show="total > 0"
|
|
v-show="total > 0"
|
|
:total="total"
|
|
:total="total"
|
|
@@ -241,6 +195,7 @@
|
|
:limit.sync="queryParams.pageSize"
|
|
:limit.sync="queryParams.pageSize"
|
|
@pagination="pageList"
|
|
@pagination="pageList"
|
|
/>
|
|
/>
|
|
|
|
+
|
|
<!-- k-form-build 组件渲染弹窗-->
|
|
<!-- k-form-build 组件渲染弹窗-->
|
|
<el-dialog :title="title" :visible.sync="kOpen" append-to-body>
|
|
<el-dialog :title="title" :visible.sync="kOpen" append-to-body>
|
|
<k-form-build
|
|
<k-form-build
|
|
@@ -258,6 +213,7 @@
|
|
<el-button @click="kCancel">取 消</el-button>
|
|
<el-button @click="kCancel">取 消</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+
|
|
<!-- 添加或修改销售出库单:- 过磅记录生成数据对话框 -->
|
|
<!-- 添加或修改销售出库单:- 过磅记录生成数据对话框 -->
|
|
<el-dialog title="打印" :visible.sync="open" append-to-body>
|
|
<el-dialog title="打印" :visible.sync="open" append-to-body>
|
|
<el-form
|
|
<el-form
|
|
@@ -325,8 +281,9 @@
|
|
<el-button type="primary" @click="btnComfirm">确 定</el-button>
|
|
<el-button type="primary" @click="btnComfirm">确 定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+
|
|
<!-- print -->
|
|
<!-- print -->
|
|
- <div id="printDom"></div>
|
|
|
|
|
|
+ <div id="printDom" style="width: 160px;height:160px"></div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -429,8 +386,6 @@ export default {
|
|
// remark: "", //备注
|
|
// remark: "", //备注
|
|
// },
|
|
// },
|
|
],
|
|
],
|
|
- rules: {},
|
|
|
|
-
|
|
|
|
// end
|
|
// end
|
|
// 绑定按钮dialog
|
|
// 绑定按钮dialog
|
|
btnDialogVisible: false,
|
|
btnDialogVisible: false,
|
|
@@ -558,7 +513,7 @@ export default {
|
|
let payLoad = {
|
|
let payLoad = {
|
|
isEnablePaging: false,
|
|
isEnablePaging: false,
|
|
basicMap: {
|
|
basicMap: {
|
|
- tableName: "materiel_code",
|
|
|
|
|
|
+ tableName: "materiel",
|
|
},
|
|
},
|
|
queryMap: {
|
|
queryMap: {
|
|
materiel_code: purchaseMaterielId,
|
|
materiel_code: purchaseMaterielId,
|
|
@@ -581,19 +536,21 @@ export default {
|
|
let allPringtData = [];
|
|
let allPringtData = [];
|
|
for (let i = 0; i < Number(this.printForm.num); i++) {
|
|
for (let i = 0; i < Number(this.printForm.num); i++) {
|
|
allPringtData.push({
|
|
allPringtData.push({
|
|
- codeData: {
|
|
|
|
- ...printData,
|
|
|
|
- no: i + 1,
|
|
|
|
- },
|
|
|
|
|
|
+ codeData: printData.serialNumber+"@"+ printData.materielId+"@"+printData.materielName+"@"+printData.units+"@"+printData.specificationModel+"@"+(i+1),
|
|
showMsg: [
|
|
showMsg: [
|
|
{
|
|
{
|
|
- label: "序号",
|
|
|
|
- value: i + 1,
|
|
|
|
|
|
+ label: "编号",
|
|
|
|
+ value: printData.materielId,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: "母粒名称",
|
|
|
|
|
|
+ label: "名称",
|
|
value: labelRes.msg,
|
|
value: labelRes.msg,
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ label: "序号",
|
|
|
|
+ value: i + 1,
|
|
|
|
+ },
|
|
|
|
+
|
|
],
|
|
],
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -705,11 +662,12 @@ export default {
|
|
},
|
|
},
|
|
//审计新增
|
|
//审计新增
|
|
async addHandler() {
|
|
async addHandler() {
|
|
- this.isEdit = false;
|
|
|
|
- await this.getDropDownData();
|
|
|
|
- this.resetFormData();
|
|
|
|
- this.title = "新增审计单";
|
|
|
|
- this.open = true;
|
|
|
|
|
|
+ alert("新增采购单")
|
|
|
|
+ //this.isEdit = false;
|
|
|
|
+ //await this.getDropDownData();
|
|
|
|
+ //this.resetFormData();
|
|
|
|
+ //this.title = "新增审计单";
|
|
|
|
+ //this.open = true;
|
|
},
|
|
},
|
|
// 获取下拉框数据
|
|
// 获取下拉框数据
|
|
async getDropDownData() {
|
|
async getDropDownData() {
|