|
@@ -54,15 +54,11 @@
|
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="number"
|
|
|
- width="120"
|
|
|
- label="编号"
|
|
|
- ></el-table-column>
|
|
|
+ <el-table-column prop="number" width="120" label="编号"></el-table-column>
|
|
|
<el-table-column prop="customer" label="客户"></el-table-column>
|
|
|
<el-table-column prop="carNumber" label="车牌号"></el-table-column>
|
|
|
<el-table-column prop="goodsName" label="货名"></el-table-column>
|
|
|
- <el-table-column prop="type" label="类型"></el-table-column>
|
|
|
+ <el-table-column prop="type" label="类型"></el-table-column>
|
|
|
<el-table-column
|
|
|
prop="grossWeight"
|
|
|
label="毛重(公斤)"
|
|
@@ -70,7 +66,11 @@
|
|
|
<el-table-column prop="tare" label="皮重(公斤)"></el-table-column>
|
|
|
<el-table-column prop="binNumber" label="仓位号"></el-table-column>
|
|
|
<el-table-column prop="storageNumber" label="囤位号"></el-table-column>
|
|
|
- <el-table-column prop="secretaryWeigher" label="司称员"></el-table-column>
|
|
|
+ <el-table-column prop="secretaryWeigher" label="司称员">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.secretaryWeigher}}{{scope.row.skinInspector}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="suqualityTestingDate"
|
|
|
label="称重时间"
|
|
@@ -78,10 +78,23 @@
|
|
|
<el-table-column prop="status" label="状态"></el-table-column>
|
|
|
<el-table-column width="300" prop="contractNo1" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
-
|
|
|
- <el-button @click="weightCheck(scope.row,1)" v-if="(scope.row.status !='已称皮重'&& scope.row.status =='已质检')">毛重</el-button>
|
|
|
- <el-button @click="weightCheck(scope.row,2)" v-if="scope.row.status =='已称毛重' || scope.row.status =='已称皮重'">皮重</el-button>
|
|
|
- <el-button @click="print" v-if="scope.row.status =='已称皮重'">打印</el-button>
|
|
|
+ <el-button
|
|
|
+ @click="weightCheck(scope.row, 1)"
|
|
|
+ v-if="
|
|
|
+ scope.row.status == '已称毛重' || scope.row.status == '已质检'
|
|
|
+ "
|
|
|
+ >毛重</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ @click="weightCheck(scope.row, 2)"
|
|
|
+ v-if="
|
|
|
+ scope.row.status == '已称毛重' || scope.row.status == '已称皮重'
|
|
|
+ "
|
|
|
+ >皮重</el-button
|
|
|
+ >
|
|
|
+ <el-button @click="print(scope.row)" v-if="scope.row.status == '已称皮重'"
|
|
|
+ >打印</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -96,10 +109,110 @@
|
|
|
>
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ width="70%"
|
|
|
+ class="table-content"
|
|
|
+ center
|
|
|
+ :visible.sync="isShowPrint"
|
|
|
+ title="粮食检斤单"
|
|
|
+ id="dialog"
|
|
|
+ >
|
|
|
+ <div class="number">{{dialogData.number}}</div>
|
|
|
+ <table class="table">
|
|
|
+
|
|
|
+ <tr class="row">
|
|
|
+ <td class="row col-bgc">客户姓名</td>
|
|
|
+ <td colspan="2">{{dialogData.customer}}</td>
|
|
|
+ <td class="row col-bgc">客户电话</td>
|
|
|
+ <td>{{dialogData.customerPhone}}</td>
|
|
|
+ <td class="row col-bgc">车牌号</td>
|
|
|
+ <td colspan="2">{{dialogData.carNumber}}</td>
|
|
|
+
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <td class="row col-bgc">收货单位</td>
|
|
|
+ <td colspan="2">{{dialogData.compName}}</td>
|
|
|
+ <td class="row col-bgc">联系人</td>
|
|
|
+ <td>{{dialogData.person}}</td>
|
|
|
+ <td class="row col-bgc"> 联系电话</td>
|
|
|
+ <td colspan="2">{{dialogData.personPhone}}</td>
|
|
|
+
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <td class="row col-bgc">货名</td>
|
|
|
+ <td>{{dialogData.goodsName}}</td>
|
|
|
+ <td class="row col-bgc">类型</td>
|
|
|
+ <td>{{dialogData.type}}</td>
|
|
|
+ <td class="row col-bgc">容重(克/升)</td>
|
|
|
+ <td>{{dialogData.qualityInspectionManagement.bulkDensity}}</td>
|
|
|
+ <td class="row col-bgc"> 不完整粒(%)</td>
|
|
|
+ <td class="row "> {{dialogData.qualityInspectionManagement.imperfectGrain}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <td class="row col-bgc">等级</td>
|
|
|
+ <td>{{dialogData.qualityInspectionManagement.grade}}</td>
|
|
|
+ <td class="row col-bgc">水分(%)</td>
|
|
|
+ <td>{{dialogData.qualityInspectionManagement.waterContent}}</td>
|
|
|
+ <td class="row col-bgc"> 热损伤(%)</td>
|
|
|
+ <td>{{dialogData.qualityInspectionManagement.jiaorenli}}</td>
|
|
|
+ <td colspan="2" class="row col-bgc">质检 {{dialogData.qualityInspectionManagement.suqualityTestingDate}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <td class="row col-bgc">杂质(%)</td>
|
|
|
+ <td>{{dialogData.qualityInspectionManagement.impurity}}</td>
|
|
|
+ <td class="row col-bgc">霉变粒(%)</td>
|
|
|
+ <td>{{dialogData.qualityInspectionManagement.mildewGrain}}</td>
|
|
|
+ <td class="row col-bgc">扣杂(公斤)</td>
|
|
|
+ <td>{{dialogData.buckleMiscellaneous}}</td>
|
|
|
+ <td class="row col-bgc">净重(公斤)</td>
|
|
|
+ <td>{{dialogData.netWeight}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <td class="row col-bgc">毛重(公斤)</td>
|
|
|
+ <td>{{dialogData.grossWeight}}</td>
|
|
|
+ <td class="row col-bgc">皮重(公斤)</td>
|
|
|
+ <td>{{dialogData.tare}}</td>
|
|
|
+ <td colspan="4"></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="row">
|
|
|
+ <td colspan="2" class="row col-bgc">毛重检斤时间</td>
|
|
|
+ <td colspan="2">{{dialogData.grossDate}}</td>
|
|
|
+ <td colspan="2" class="row col-bgc">皮重检斤时间</td>
|
|
|
+ <td colspan="2">{{dialogData.tareDate}}</td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ </table>
|
|
|
+ <div class="bottom">
|
|
|
+ <div class="bottom-row1">
|
|
|
+ <div>毛检:{{dialogData.secretaryWeigher}}</div>
|
|
|
+ <!-- <div>{{ }}</div> -->
|
|
|
+ <div style="margin-left:60px">皮检:{{ dialogData.skinInspector}}</div>
|
|
|
+ <!-- <div>{{ }}</div> -->
|
|
|
+ </div>
|
|
|
+ <div class="bottom-row2">
|
|
|
+ <div class="left">
|
|
|
+ <img src="../../../public/img/add.png" alt="" />
|
|
|
+ </div>
|
|
|
+ <div class="config">收货单位签名或盖章:</div>
|
|
|
+ <div class="autograph">客户签名:</div>
|
|
|
+ </div>
|
|
|
+ <div class="bottom-row3">扫一扫</div>
|
|
|
+ <div class="bottom-row4">
|
|
|
+ <el-button type="primary" @click="isShowPrint = false">关闭</el-button>
|
|
|
+ <el-button type="primary" @click="printSmall">打印小票</el-button>
|
|
|
+ <el-button type="primary" @click="printBig">打印单据</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { getweighingList, selectWarehouseSelf } from '@/model/houseSelfCollect/index'
|
|
|
+import {
|
|
|
+ getweighingList,
|
|
|
+ selectWarehouseSelf,
|
|
|
+ getPrint
|
|
|
+} from '@/model/houseSelfCollect/index'
|
|
|
|
|
|
export default {
|
|
|
components: {},
|
|
@@ -119,46 +232,81 @@ export default {
|
|
|
warehouseName: '',
|
|
|
value1: '', //选择时间
|
|
|
warehouseList: [],
|
|
|
- warehouseId:"",
|
|
|
+ warehouseId: '',
|
|
|
+ isShowPrint:false,//打印弹出
|
|
|
+ dialogData:{
|
|
|
+ qualityInspectionManagement:{},
|
|
|
+ },
|
|
|
+ purchasePriceList:[],
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ print(row) {
|
|
|
+ getPrint({
|
|
|
+ id:row.id
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.dialogData = response
|
|
|
+ this.isShowPrint = true
|
|
|
+ console.log(this.dialogData)
|
|
|
+ })
|
|
|
+ .catch((response) => {
|
|
|
+ // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
+ })
|
|
|
+ },
|
|
|
+ printSmall(){
|
|
|
+ window.location.href =
|
|
|
+ '../../../static/weightCheck.html?type=1&dialogData=' +
|
|
|
+ JSON.stringify(this.dialogData)
|
|
|
+ },
|
|
|
+ printBig(){
|
|
|
+ window.location.href =
|
|
|
+ '../../../static/weightCheck.html?type=2&dialogData=' +
|
|
|
+ JSON.stringify(this.dialogData)
|
|
|
+ },
|
|
|
warehouseNameChange(e) {
|
|
|
// this.warehouseName = e
|
|
|
- console.log(this.warehouseList )
|
|
|
- for(let i = 0 ; i < this.warehouseList.length ; i++){
|
|
|
- if(this.warehouseList[i].value == e){
|
|
|
+ console.log(this.warehouseList)
|
|
|
+ for (let i = 0; i < this.warehouseList.length; i++) {
|
|
|
+ if (this.warehouseList[i].value == e) {
|
|
|
this.warehouseId = this.warehouseList[i].warehouseId
|
|
|
+ this.purchasePriceList = this.warehouseList[i].warehouseList
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
},
|
|
|
- weightCheck(row,num) {
|
|
|
+ weightCheck(row, num) {
|
|
|
this.$router.push({
|
|
|
path: 'weightCheck',
|
|
|
- query: { tpyeNo: num ,id:row.id,number:row.number,binNumber:row.binNumber,customer:row.customer,storageNumber:row.storageNumber,carNumber:row.carNumber,goodsName:row.goodsName,grossWeight:row.grossWeight,tare:row.tare,netWeight:row.netWeight,relationId:row.relationId,warehouseId:this.warehouseId},
|
|
|
+ query: {
|
|
|
+ tpyeNo: num,
|
|
|
+ id: row.id,
|
|
|
+ number: row.number,
|
|
|
+ binNumber: row.binNumber,
|
|
|
+ customer: row.customer,
|
|
|
+ storageNumber: row.storageNumber,
|
|
|
+ carNumber: row.carNumber,
|
|
|
+ goodsName: row.goodsName,
|
|
|
+ grossWeight: row.grossWeight,
|
|
|
+ tare: row.tare,
|
|
|
+ netWeight: row.netWeight,
|
|
|
+ relationId: row.relationId,
|
|
|
+ warehouseId: this.warehouseId,
|
|
|
+ purchasePriceList: this.purchasePriceList
|
|
|
+ },
|
|
|
})
|
|
|
},
|
|
|
// Reacquire() {
|
|
|
// //重新获取
|
|
|
// },
|
|
|
- find(){
|
|
|
+ find() {
|
|
|
this.getList()
|
|
|
-
|
|
|
},
|
|
|
|
|
|
- print() {
|
|
|
- let newstr = document.getElementById('print').innerHTML
|
|
|
- let oldstr = document.body.innerHTML
|
|
|
- document.body.innerHTML = newstr
|
|
|
- window.print()
|
|
|
- document.body.innerHTML = oldstr
|
|
|
- // window.location.reload()
|
|
|
- this.$router.push({ path: 'paymentManagement' })
|
|
|
- },
|
|
|
+
|
|
|
handleSizeChange(val) {
|
|
|
console.log(`每页 ${val} 条`)
|
|
|
this.pageSize = val
|
|
@@ -180,11 +328,13 @@ export default {
|
|
|
for (let i = 0; i < response.length; i++) {
|
|
|
this.warehouseList.push({
|
|
|
value: response[i].warehouseName,
|
|
|
- warehouseId :response[i].id
|
|
|
+ warehouseId: response[i].id,
|
|
|
+ warehouseList:response[i].purchasePriceList
|
|
|
})
|
|
|
}
|
|
|
- this.warehouseName = this.warehouseList[0].value
|
|
|
+ this.warehouseName = this.warehouseList[0].value
|
|
|
this.warehouseId = this.warehouseList[0].warehouseId
|
|
|
+ this.purchasePriceList = this.warehouseList[0].warehouseList
|
|
|
})
|
|
|
getweighingList({
|
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
@@ -199,9 +349,8 @@ export default {
|
|
|
// title: '成功',
|
|
|
// message: '删除成功',
|
|
|
// })
|
|
|
- this.weighingList = response.records
|
|
|
+ this.weighingList = response.records
|
|
|
this.deptBudgetTotal = response.total
|
|
|
-
|
|
|
})
|
|
|
.catch((response) => {
|
|
|
// EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
@@ -242,4 +391,69 @@ export default {
|
|
|
.formItem {
|
|
|
width: 51% !important;
|
|
|
}
|
|
|
+/deep/.el-dialog__title {
|
|
|
+ font-size: 24px !important;
|
|
|
+}
|
|
|
+/deep/.el-dialog__header {
|
|
|
+ text-align: center !important;
|
|
|
+ padding: 10px 0 !important;
|
|
|
+ height: auto !important;
|
|
|
+}
|
|
|
+.number {
|
|
|
+ text-align: right;
|
|
|
+ margin: 0 0 10px 0;
|
|
|
+}
|
|
|
+table,
|
|
|
+table tr th,
|
|
|
+table tr td {
|
|
|
+ border: 2px solid #333333;
|
|
|
+ padding: 5px 0;
|
|
|
+}
|
|
|
+
|
|
|
+table {
|
|
|
+ width: 100%;
|
|
|
+ min-height: 25px;
|
|
|
+ line-height: 25px;
|
|
|
+ text-align: center;
|
|
|
+ border-collapse: collapse;
|
|
|
+ border: 3px solid #333333;
|
|
|
+}
|
|
|
+.col-bgc {
|
|
|
+ background: #f6f7fb;
|
|
|
+}
|
|
|
+.bottom-row1 {
|
|
|
+ display: flex;
|
|
|
+ // justify-content: space-between;
|
|
|
+ margin: 10px 0;
|
|
|
+}
|
|
|
+
|
|
|
+.bottom-row2 {
|
|
|
+ display: flex;
|
|
|
+ margin: 10px 0;
|
|
|
+
|
|
|
+ .left {
|
|
|
+ img {
|
|
|
+ width: 41px;
|
|
|
+ height: 41px;
|
|
|
+ margin-right: 118px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .config {
|
|
|
+ margin-top: 20px;
|
|
|
+ margin-right: 240px;
|
|
|
+ }
|
|
|
+ .autograph{
|
|
|
+ margin-top: 20px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.bottom-row3 {
|
|
|
+ margin: 10px 0;
|
|
|
+}
|
|
|
+
|
|
|
+.bottom-row4 {
|
|
|
+ margin-top: 50px;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
</style>
|