新购三方签名
This commit is contained in:
parent
5633a14764
commit
5bf14644a8
|
|
@ -224,7 +224,7 @@
|
||||||
/>
|
/>
|
||||||
<el-table-column label="验收情况" align="center">
|
<el-table-column label="验收情况" align="center">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="采购数量"
|
label="到货数量"
|
||||||
align="center"
|
align="center"
|
||||||
prop="purchaseNum"
|
prop="purchaseNum"
|
||||||
/>
|
/>
|
||||||
|
|
@ -257,15 +257,23 @@
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div class="item" style="width: 33%">
|
<div class="item" style="width: 33%">
|
||||||
<div>
|
<div >
|
||||||
<span>供应科:{{printData.supplyDept}}</span>
|
<span>供应科:{{printData.supplyDept}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item" style="width: 33%">
|
<!-- <div class="item" style="width: 33%">
|
||||||
<div>
|
<div>
|
||||||
<span>生产技术科:{{printData.productionTechDept}}</span>
|
<span>生产技术科:{{printData.productionTechDept}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
</div> -->
|
||||||
|
<div class="item" style="width: 33%">
|
||||||
|
<div>
|
||||||
|
<span>生产技术科:</span>
|
||||||
|
<el-select v-model="printData.productionTechDept" placeholder="请选择生产技术科">
|
||||||
|
<el-option v-for="item in productionTechDeptOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item" style="width: 33%">
|
<div class="item" style="width: 33%">
|
||||||
|
|
@ -329,6 +337,11 @@ import { passAll,rejectAll } from '@/api/part/partAccept';
|
||||||
openPrint: false,
|
openPrint: false,
|
||||||
printData: {},
|
printData: {},
|
||||||
printTableData: [],
|
printTableData: [],
|
||||||
|
productionTechDeptOptions: [
|
||||||
|
{ value: '0', label: '张三' },
|
||||||
|
{ value: '1', label: '李四' },
|
||||||
|
{ value: '2', label: '王五' },
|
||||||
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
|
||||||
|
|
@ -332,10 +332,18 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item" style="width: 33%">
|
<!-- <div class="item" style="width: 33%">
|
||||||
<div>
|
<div>
|
||||||
<span>生产技术科:</span>
|
<span>生产技术科:</span>
|
||||||
</div>
|
</div>
|
||||||
|
</div> -->
|
||||||
|
<div class="item" style="width: 33%">
|
||||||
|
<div>
|
||||||
|
<span>生产技术科:</span>
|
||||||
|
<el-select v-model="printData.productionTechDept" placeholder="请选择生产技术科">
|
||||||
|
<el-option v-for="item in productionTechDeptOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item" style="width: 33%">
|
<div class="item" style="width: 33%">
|
||||||
|
|
@ -426,6 +434,12 @@ export default {
|
||||||
printTableData: [],
|
printTableData: [],
|
||||||
// 供应商
|
// 供应商
|
||||||
supplierStr: "",
|
supplierStr: "",
|
||||||
|
|
||||||
|
productionTechDeptOptions: [
|
||||||
|
{ value: '0', label: '张三' },
|
||||||
|
{ value: '1', label: '李四' },
|
||||||
|
{ value: '2', label: '王五' },
|
||||||
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
|
||||||
|
|
@ -402,7 +402,7 @@ export default {
|
||||||
console.log(param);
|
console.log(param);
|
||||||
acceptInnerVerifyer(param).then((response) => {
|
acceptInnerVerifyer(param).then((response) => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$modal.msgSuccess("操作成功");
|
this.$modal.msgSuccess(response.msg);
|
||||||
this.confirmShow = false;
|
this.confirmShow = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
this.$refs.multipleTable.clearSelection();
|
this.$refs.multipleTable.clearSelection();
|
||||||
|
|
|
||||||
|
|
@ -133,67 +133,83 @@
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- 验收单弹窗 -->
|
<!-- 验收单弹窗 -->
|
||||||
<el-dialog :title="title" :visible.sync="openPrint" width="1100px" append-to-body>
|
<el-dialog :title="title" :visible.sync="openPrint" width="1100px" append-to-body>
|
||||||
<div style="height: 500px; overflow-y: scroll">
|
<div style="height: 500px; overflow-y: scroll">
|
||||||
<vue-easy-print tableShow ref="remarksPrintRef" class="print">
|
<vue-easy-print tableShow ref="remarksPrintRef" class="print">
|
||||||
<div class="title" style="text-align: center; font-weight: 600; font-size: 16px">
|
<div class="title" style="text-align: center;font-weight: 600;font-size: 16px;">
|
||||||
机具设备到货验收单
|
机具设备到货验收单
|
||||||
</div>
|
</div>
|
||||||
<div class="info" style="margin-top: 10px; display: flex; flex-wrap: wrap">
|
<div class="info" style="margin-top: 10px; display: flex; flex-wrap: wrap">
|
||||||
<div class="item" style="width: 100%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
<div class="item" style="width: 100%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
||||||
<span>单据编号:</span>
|
<span>单据编号:{{printData.code}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
<div
|
||||||
<span>生产厂家(供应商):</span>
|
class="item"
|
||||||
</div>
|
style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
||||||
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
<span>生产厂家(供应商):{{printData.supplierName}}</span>
|
||||||
<span>到货日期:</span>
|
</div>
|
||||||
</div>
|
<div
|
||||||
</div>
|
class="item"
|
||||||
<el-table :data="printTableData" class="table" style="margin-top: 20px; width: 1000px; padding-bottom: 1px" border>
|
style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
||||||
<!--<el-table-column type="selection" width="55" align="center" />-->
|
<span>到货日期:{{printData.arrivalDate}}</span>
|
||||||
<el-table-column label="序号" align="center" type="index" row="2" />
|
</div>
|
||||||
<el-table-column label="物资名称" align="center" prop="machine" />
|
</div>
|
||||||
<el-table-column label="规格型号" align="center" prop="specifica" />
|
<el-table :data="printTableData" class="table" style="margin-top: 20px;width: 1000px;padding-bottom: 1px;" border>
|
||||||
<el-table-column label="单位" align="center" prop="unitName" />
|
<!-- <el-table-column type="selection" width="55" align="center" />-->
|
||||||
<el-table-column label="配送信息" align="center">
|
<el-table-column label="序号" align="center" type="index" row="2" />
|
||||||
<el-table-column label="到货数量" align="center" prop="purchaseNum"/>
|
<el-table-column label="物资名称" align="center" prop="maTypeName"/>
|
||||||
<el-table-column label="验收结论" align="center" prop="purchaseNum"/>
|
<el-table-column label="规格型号" align="center" prop="typeName"/>
|
||||||
<el-table-column label="质保质量" align="center">
|
<el-table-column label="单位" align="center" prop="unitName"/>
|
||||||
<el-table-column label="实收份数" align="center" prop="purchaseNum"/>
|
<el-table-column label="配送信息" align="center">
|
||||||
<el-table-column label="符合要求" align="center" prop="purchaseNum"/>
|
<el-table-column label="采购数量" align="center" prop="purchaseNum"/>
|
||||||
</el-table-column>
|
<el-table-column label="验收结论" align="center" prop="checkResult"/>
|
||||||
</el-table-column>
|
<el-table-column label="质保质量" align="center">
|
||||||
<el-table-column label="备注" align="center" prop="unitName"/>
|
<el-table-column label="实收份数" align="center" prop="checkNum"/>
|
||||||
</el-table>
|
<el-table-column label="符合要求" align="center"/>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="备注" align="center" prop="remark"/>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
<div class="fillIn" style="margin-top: 20px;display: flex;justify-content: space-between;">
|
<div class="fillIn" style="margin-top: 20px;display: flex;justify-content: space-between;" >
|
||||||
<div class="item" style="width: 33%">
|
<div class="item" style="width: 33%;display: flex;align-items: center;">
|
||||||
<div>
|
<div style="width: 25%;">供应科:</div>
|
||||||
<span>供应科:</span>
|
<div style="width: 75%;display: flex;align-items: center;flex-wrap: wrap;" v-if="printData.gySignUrl">
|
||||||
</div>
|
<div v-for="(sign, index) in printData.gySignUrl" :key="index" style="width: 35%;margin-left: 5px;">
|
||||||
</div>
|
<img :src="sign.signUrl" :class="sign.signType=='0' ? 'image-type':'sign-type'" alt="">
|
||||||
<div class="item" style="width: 33%">
|
</div>
|
||||||
<div>
|
</div>
|
||||||
<span>生产技术科:</span>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="item" style="width: 33%">
|
|
||||||
<div>
|
|
||||||
<span>库管班:</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</vue-easy-print>
|
<div class="item" style="width: 33%;display: flex;align-items: center;">
|
||||||
</div>
|
<div style="width: 30%;">生产技术科:</div>
|
||||||
|
<div style="width: 70%;display: flex;align-items: center;flex-wrap: wrap;" v-if="printData.scSignUrl">
|
||||||
|
<div v-for="(sign, index) in printData.scSignUrl" :key="index" style="width: 35%;margin-left: 5px;">
|
||||||
|
<img :src="sign.signUrl" :class="sign.signType=='0' ? 'image-type':'sign-type'" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width: 33%;display: flex;align-items: center;">
|
||||||
|
<div style="width: 25%;">库管班:</div>
|
||||||
|
<div style="width: 75%;display: flex;align-items: center;flex-wrap: wrap;" v-if="printData.kgSignUrl">
|
||||||
|
<div v-for="(sign, index) in printData.kgSignUrl" :key="index" style="width: 35%;margin-left: 5px;">
|
||||||
|
<img :src="sign.signUrl" :class="sign.signType=='0' ? 'image-type':'sign-type'" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- <div>
|
||||||
|
<span>库管班:{{printData.warehouseTeam}}</span>
|
||||||
|
</div> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</vue-easy-print>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div slot="footer" class="dialog-footer" style="text-align: center">
|
<div slot="footer" class="dialog-footer" style="text-align: center">
|
||||||
<el-button type="primary" @click="print">打 印</el-button>
|
<el-button type="primary" @click="print">打 印</el-button>
|
||||||
<el-button @click="openPrint = false">关 闭</el-button>
|
<el-button @click="openPrint = false">关 闭</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 通知弹窗 -->
|
<!-- 通知弹窗 -->
|
||||||
<el-dialog :title="title" :visible.sync="showPeople" width="800px" append-to-body @close="cancel">
|
<el-dialog :title="title" :visible.sync="showPeople" width="800px" append-to-body @close="cancel">
|
||||||
|
|
@ -263,7 +279,7 @@ import {
|
||||||
bmNoticeInfo,
|
bmNoticeInfo,
|
||||||
delPeople,
|
delPeople,
|
||||||
} from "@/api/purchase/goodsArrived";
|
} from "@/api/purchase/goodsArrived";
|
||||||
|
import {getPurchaseCheckFormByTaskId } from "@/api/purchase/goodsAccept";
|
||||||
export default {
|
export default {
|
||||||
name: "Home",
|
name: "Home",
|
||||||
dicts: ["purchase_task_status"],
|
dicts: ["purchase_task_status"],
|
||||||
|
|
@ -547,25 +563,25 @@ export default {
|
||||||
|
|
||||||
//获取验收单数据
|
//获取验收单数据
|
||||||
getPrintTable(taskId) {
|
getPrintTable(taskId) {
|
||||||
getAcceptanceForm({ taskId: taskId }).then((response) => {
|
getPurchaseCheckFormByTaskId(taskId).then((response) => {
|
||||||
this.printData = response.data;
|
this.printData = response.data;
|
||||||
this.printTableData = response.data.checkDetailsList;
|
this.printTableData = response.data.materialList;
|
||||||
|
|
||||||
let supplierList = [];
|
// let supplierList = [];
|
||||||
this.printTableData.forEach((e) => {
|
// this.printTableData.forEach((e) => {
|
||||||
if (e.supplier) {
|
// if (e.supplier) {
|
||||||
supplierList.push(e.supplier);
|
// supplierList.push(e.supplier);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
supplierList = [...new Set(supplierList)];
|
// supplierList = [...new Set(supplierList)];
|
||||||
|
|
||||||
this.supplierStr = supplierList.join(",");
|
// this.supplierStr = supplierList.join(",");
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//查看验收单
|
//查看验收单
|
||||||
handlePrint(row) {
|
handlePrint(row) {
|
||||||
// this.query.taskId = row.taskId
|
// this.query.taskId = row.taskId
|
||||||
// this.getPrintTable(row.taskId)
|
this.getPrintTable(row.taskId)
|
||||||
this.openPrint = true;
|
this.openPrint = true;
|
||||||
this.title = "机具设备到货验收单";
|
this.title = "机具设备到货验收单";
|
||||||
},
|
},
|
||||||
|
|
@ -613,6 +629,20 @@ export default {
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.image-type {
|
||||||
|
/* 旋转图片 */
|
||||||
|
transform: rotate(-90deg);
|
||||||
|
/* 确保旋转后的图片不会超出容器 */
|
||||||
|
max-width: 100%;
|
||||||
|
/* 保持图片的宽高比 */
|
||||||
|
width: 40px;
|
||||||
|
height: 80px;
|
||||||
|
}
|
||||||
|
.sign-type{
|
||||||
|
width: 80px;
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
::v-deep.el-table .fixed-width .el-button--mini {
|
::v-deep.el-table .fixed-width .el-button--mini {
|
||||||
width: 70px !important;
|
width: 70px !important;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue