|
@@ -1,408 +1,447 @@
|
|
<!--检斤管理-->
|
|
<!--检斤管理-->
|
|
<template>
|
|
<template>
|
|
- <div>
|
|
|
|
- <BaseHeaderLayout :leftSpan="16">
|
|
|
|
- <template slot="left"> </template>
|
|
|
|
- <template slot="right">
|
|
|
|
- <ws-select v-model="warehouseName" placeholder="" @change="warehouseNameChange" :value="searchType"
|
|
|
|
- style="margin: 0 10px">
|
|
|
|
- <ws-option v-for="item in warehouseList" :key="item.value" :label="item.value" :value="item.value"
|
|
|
|
- style="color: #8890b1" />
|
|
|
|
- </ws-select>
|
|
|
|
- <div></div>
|
|
|
|
- <ws-input v-model="searchKeyWord" placeholder="可按编号、客户名、车牌号查找" clearable maxlength="500" type="input">
|
|
|
|
- </ws-input>
|
|
|
|
- <ws-button class="find" type="primary" @click="find()"><img width="16" height="16" style="
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <BaseHeaderLayout :leftSpan="16">
|
|
|
|
+ <template slot="left">
|
|
|
|
+ <ws-button type="primary" @click="print('',1)"
|
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionWeight.print`">批量打印
|
|
|
|
+ </ws-button>
|
|
|
|
+ </template>
|
|
|
|
+ <template slot="right">
|
|
|
|
+ <ws-select v-model="warehouseName" placeholder="" @change="warehouseNameChange" :value="searchType"
|
|
|
|
+ style="margin: 0 10px">
|
|
|
|
+ <ws-option v-for="item in warehouseList" :key="item.value" :label="item.value" :value="item.value"
|
|
|
|
+ style="color: #8890b1" />
|
|
|
|
+ </ws-select>
|
|
|
|
+ <div></div>
|
|
|
|
+ <ws-input v-model="searchKeyWord" placeholder="可按编号、客户名、车牌号查找" clearable maxlength="500" type="input">
|
|
|
|
+ </ws-input>
|
|
|
|
+ <ws-button class="find" type="primary" @click="find()"><img width="16" height="16" style="
|
|
vertical-align: text-top;
|
|
vertical-align: text-top;
|
|
position: relative;
|
|
position: relative;
|
|
top: 0px;
|
|
top: 0px;
|
|
" src="../../../public/img/sousuo.png" alt="" /></ws-button>
|
|
" src="../../../public/img/sousuo.png" alt="" /></ws-button>
|
|
- </template>
|
|
|
|
- </BaseHeaderLayout>
|
|
|
|
- <el-table :data="weighingList" style="width: 100%; margin-top: 20px" ref="weighingList" border height="600">
|
|
|
|
- <el-table-column type="index" label="序号" width="50">
|
|
|
|
- <template scope="scope">
|
|
|
|
- <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
|
|
- <span v-else>{{ scope.$index + 1 }}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="number" width="150" 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="grossWeight" label="毛重(公斤)"></el-table-column>
|
|
|
|
- <el-table-column prop="tare" label="皮重(公斤)"></el-table-column>
|
|
|
|
- <el-table-column prop="buckleMiscellaneous" label="扣杂"></el-table-column>
|
|
|
|
- <el-table-column prop="netWeight" 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="司称员">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <div v-if="scope.row.secretaryWeigher == scope.row.skinInspector">{{scope.row.skinInspector}}</div>
|
|
|
|
- <div v-else>{{scope.row.secretaryWeigher}}<span
|
|
|
|
- v-if="scope.row.skinInspector">,{{scope.row.skinInspector}}</span></div>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="suqualityTestingDate" label="称重时间" width="90">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <div v-if="
|
|
|
|
|
|
+ </template>
|
|
|
|
+ </BaseHeaderLayout>
|
|
|
|
+ <el-table :data="weighingList" style="width: 100%; margin-top: 20px" ref="weighingList" border height="600"
|
|
|
|
+ @row-click="handleRowClick" @selection-change="handleSelectionChange">
|
|
|
|
+ <el-table-column :selectable="selectInit" type="selection" width="55"></el-table-column>
|
|
|
|
+ <el-table-column type="index" label="序号" width="50">
|
|
|
|
+ <template scope="scope">
|
|
|
|
+ <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
|
|
+ <span v-else>{{ scope.$index + 1 }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="number" width="150" 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="grossWeight" label="毛重(公斤)"></el-table-column>
|
|
|
|
+ <el-table-column prop="tare" label="皮重(公斤)"></el-table-column>
|
|
|
|
+ <el-table-column prop="buckleMiscellaneous" label="扣杂"></el-table-column>
|
|
|
|
+ <el-table-column prop="netWeight" 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="司称员">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div v-if="scope.row.secretaryWeigher == scope.row.skinInspector">{{scope.row.skinInspector}}</div>
|
|
|
|
+ <div v-else>{{scope.row.secretaryWeigher}}<span
|
|
|
|
+ v-if="scope.row.skinInspector">,{{scope.row.skinInspector}}</span></div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="suqualityTestingDate" label="称重时间" width="90">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div v-if="
|
|
scope.row.status == '已称毛重'
|
|
scope.row.status == '已称毛重'
|
|
"> {{scope.row.grossDate}}</div>
|
|
"> {{scope.row.grossDate}}</div>
|
|
- <div v-if="
|
|
|
|
|
|
+ <div v-if="
|
|
scope.row.status == '已称皮重'
|
|
scope.row.status == '已称皮重'
|
|
"> {{scope.row.tareDate}}</div>
|
|
"> {{scope.row.tareDate}}</div>
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <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 == '已质检' "
|
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionWeight.mao`">毛重</el-button>
|
|
|
|
- <!-- scope.row.paymentManagement.status == '待结算' && -->
|
|
|
|
- <el-button :disabled="scope.row.allow == 2" @click="weightCheck(scope.row, 2)"
|
|
|
|
- v-if=" (scope.row.status == '已称毛重' || scope.row.status == '已称皮重') "
|
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionWeight.weight`">皮重</el-button>
|
|
|
|
- <el-button @click="print(scope.row)" v-if="scope.row.status == '已称皮重' ||scope.row.status == '已称毛重'"
|
|
|
|
- v-hasPermission="`acquisitionManagement.acquisitionWeight.print`">打印</el-button>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
- <div style="text-align: center;margin-top:20px">
|
|
|
|
- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
|
- :current-page="currentPage" :page-size="deptCircularPage.pageSize"
|
|
|
|
- layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal">
|
|
|
|
- </el-pagination>
|
|
|
|
- </div>
|
|
|
|
- <el-dialog width="70%" class="table-content" center :visible.sync="isShowPrint" title="粮食检斤单">
|
|
|
|
- <weightCheckPrint :tableData="dialogData"></weightCheckPrint>
|
|
|
|
- <div style="text-align:center">
|
|
|
|
- <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>
|
|
|
|
- </el-dialog>
|
|
|
|
- </div>
|
|
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <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 == '已质检' "
|
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionWeight.mao`">毛重</el-button>
|
|
|
|
+ <!-- scope.row.paymentManagement.status == '待结算' && -->
|
|
|
|
+ <el-button :disabled="scope.row.allow == 2" @click="weightCheck(scope.row, 2)"
|
|
|
|
+ v-if=" (scope.row.status == '已称毛重' || scope.row.status == '已称皮重') "
|
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionWeight.weight`">皮重</el-button>
|
|
|
|
+ <el-button @click="print(scope.row)" v-if="scope.row.status == '已称皮重' ||scope.row.status == '已称毛重'"
|
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionWeight.print`">打印</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ <div style="text-align: center;margin-top:20px">
|
|
|
|
+ <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
|
|
+ :page-size="deptCircularPage.pageSize" layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
+ :total="deptBudgetTotal">
|
|
|
|
+ </el-pagination>
|
|
|
|
+ </div>
|
|
|
|
+ <el-dialog width="70%" class="table-content" center :visible.sync="isShowPrint" title="粮食检斤单">
|
|
|
|
+ <weightCheckPrint :tableData="dialogData"></weightCheckPrint>
|
|
|
|
+ <div style="text-align:center">
|
|
|
|
+ <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>
|
|
|
|
+ </el-dialog>
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
- import {
|
|
|
|
- getweighingList,
|
|
|
|
- selectWarehouseSelf,
|
|
|
|
- getPrint
|
|
|
|
- } from '@/model/houseSelfCollect/index'
|
|
|
|
- import weightCheckPrint from './component/weightCheckPrint.vue'
|
|
|
|
|
|
+ import {
|
|
|
|
+ getweighingList,
|
|
|
|
+ selectWarehouseSelf,
|
|
|
|
+ getPrint
|
|
|
|
+ } from '@/model/houseSelfCollect/index'
|
|
|
|
+ import weightCheckPrint from './component/weightCheckPrint.vue'
|
|
|
|
|
|
- export default {
|
|
|
|
- components: {
|
|
|
|
- weightCheckPrint
|
|
|
|
- },
|
|
|
|
- watch: {},
|
|
|
|
- data() {
|
|
|
|
- return {
|
|
|
|
- //分页
|
|
|
|
- currentPage: 1,
|
|
|
|
- pageSize: 10,
|
|
|
|
- deptCircularPage: {},
|
|
|
|
- deptBudgetTotal: 0,
|
|
|
|
- paymentForm: false,
|
|
|
|
- paymentForm1: false,
|
|
|
|
- weighingList: [],
|
|
|
|
- searchKeyWord: '',
|
|
|
|
- searchType: [],
|
|
|
|
- warehouseName: '',
|
|
|
|
- value1: '', //选择时间
|
|
|
|
- warehouseList: [],
|
|
|
|
- warehouseId: '',
|
|
|
|
- cangid: '',
|
|
|
|
- monitorUrl1: '',
|
|
|
|
- monitorUrl2: '',
|
|
|
|
- isShowPrint: false, //打印弹出
|
|
|
|
- dialogData: {
|
|
|
|
- qualityInspectionManagement: {},
|
|
|
|
- },
|
|
|
|
- purchasePriceList: [],
|
|
|
|
- allowEdit: '0',
|
|
|
|
- disabled: false
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- activated() {
|
|
|
|
- this.selectWarehouse()
|
|
|
|
|
|
+ export default {
|
|
|
|
+ components: {
|
|
|
|
+ weightCheckPrint
|
|
|
|
+ },
|
|
|
|
+ watch: {},
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ //分页
|
|
|
|
+ currentPage: 1,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ deptCircularPage: {},
|
|
|
|
+ deptBudgetTotal: 0,
|
|
|
|
+ paymentForm: false,
|
|
|
|
+ paymentForm1: false,
|
|
|
|
+ weighingList: [],
|
|
|
|
+ searchKeyWord: '',
|
|
|
|
+ searchType: [],
|
|
|
|
+ warehouseName: '',
|
|
|
|
+ value1: '', //选择时间
|
|
|
|
+ warehouseList: [],
|
|
|
|
+ warehouseId: '',
|
|
|
|
+ cangid: '',
|
|
|
|
+ monitorUrl1: '',
|
|
|
|
+ monitorUrl2: '',
|
|
|
|
+ isShowPrint: false, //打印弹出
|
|
|
|
+ dialogData: {
|
|
|
|
+ qualityInspectionManagement: {},
|
|
|
|
+ },
|
|
|
|
+ purchasePriceList: [],
|
|
|
|
+ allowEdit: '0',
|
|
|
|
+ disabled: false,
|
|
|
|
+ isShowPrintType: false,
|
|
|
|
+ modification: [],
|
|
|
|
+ jjSelectPrintList: [],
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ activated() {
|
|
|
|
+ this.selectWarehouse()
|
|
|
|
|
|
- },
|
|
|
|
- methods: {
|
|
|
|
- printSmall() {
|
|
|
|
- window.open('../../../../static/weightCheck.html?type=1&tableData=' + JSON.stringify(this.dialogData))
|
|
|
|
- },
|
|
|
|
- printBig() {
|
|
|
|
- window.open('../../../../static/weightCheck.html?type=2&tableData=' + JSON.stringify(this.dialogData))
|
|
|
|
- },
|
|
|
|
- print(row) {
|
|
|
|
- getPrint({
|
|
|
|
- id: row.id
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.dialogData = response
|
|
|
|
- this.isShowPrint = true
|
|
|
|
- })
|
|
|
|
- .catch((response) => {
|
|
|
|
- // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- warehouseNameChange(e) {
|
|
|
|
- // this.warehouseName = e
|
|
|
|
- for (let i = 0; i < this.warehouseList.length; i++) {
|
|
|
|
- if (this.warehouseList[i].value == e) {
|
|
|
|
- this.warehouseId = this.warehouseList[i].warehouseId
|
|
|
|
- this.cangid = this.warehouseList[i].warehouseId
|
|
|
|
- this.allowEdit = this.warehouseList[i].allowEdit
|
|
|
|
- this.WAREHOUSE[2].payname = this.warehouseList[i].value
|
|
|
|
- this.common.name = this.warehouseList[i].value
|
|
|
|
- this.monitorUrl1 = this.warehouseList[i].monitorUrl1
|
|
|
|
- this.monitorUrl2 = this.warehouseList[i].monitorUrl2
|
|
|
|
- sessionStorage.setItem('ck', e)
|
|
|
|
- sessionStorage.setItem('houseSelfCollect_house1', JSON.stringify(this.warehouseList[i]))
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- this.getList()
|
|
|
|
- },
|
|
|
|
- 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,
|
|
|
|
- monitorUrl1: this.monitorUrl1,
|
|
|
|
- monitorUrl2: this.monitorUrl2,
|
|
|
|
- allowEdit: this.allowEdit,
|
|
|
|
- cangid: this.cangid,
|
|
|
|
- warehouseName:this.warehouseName,
|
|
|
|
- paramType: row.qualityInspectionManagement.paramType
|
|
|
|
- },
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- find() {
|
|
|
|
- this.getList()
|
|
|
|
- },
|
|
|
|
- handleSizeChange(val) {
|
|
|
|
- console.log(`每页 ${val} 条`)
|
|
|
|
- this.pageSize = val
|
|
|
|
- this.getList()
|
|
|
|
- },
|
|
|
|
- handleCurrentChange(val) {
|
|
|
|
- this.currentPage = val
|
|
|
|
- console.log(`当前页: ${val}`)
|
|
|
|
- this.getList()
|
|
|
|
- },
|
|
|
|
- selectWarehouse() {
|
|
|
|
- let _wareHouse = sessionStorage.getItem('houseSelfCollect_house1')
|
|
|
|
- _wareHouse = JSON.parse(_wareHouse)
|
|
|
|
- selectWarehouseSelf({
|
|
|
|
- compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.warehouseList = []
|
|
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ handleRowClick(row) {},
|
|
|
|
+ handleSelectionChange(val) {
|
|
|
|
+ this.modification = val
|
|
|
|
+ },
|
|
|
|
+ printSmall() {
|
|
|
|
+ window.open('../../../../static/weightCheck.html?type=1&tableData=' + JSON.stringify(this.dialogData))
|
|
|
|
+ },
|
|
|
|
+ printBig(type) {
|
|
|
|
+ if (type == 1) {
|
|
|
|
+ sessionStorage.setItem('selectPrint_jjSelectPrintList', JSON.stringify(this.jjSelectPrintList))
|
|
|
|
+ window.open('../../../../static/weightCheck.html?type=2')
|
|
|
|
+ } else {
|
|
|
|
|
|
- for (let i = 0; i < response.length; i++) {
|
|
|
|
- this.warehouseList.push({
|
|
|
|
- value: response[i].warehouseName,
|
|
|
|
- warehouseId: response[i].id,
|
|
|
|
- allowEdit: response[i].allowEdit,
|
|
|
|
- monitorUrl1: response[i].monitorUrl1,
|
|
|
|
- monitorUrl2: response[i].monitorUrl2,
|
|
|
|
- id: response[i].id,
|
|
|
|
- warehouseNo:response[i].commonWarehouseNo
|
|
|
|
- })
|
|
|
|
- if (_wareHouse) {
|
|
|
|
- this.cangid = _wareHouse.id
|
|
|
|
- this.warehouseName = _wareHouse.value
|
|
|
|
- this.common.name = _wareHouse.value
|
|
|
|
- this.warehouseId = _wareHouse.id
|
|
|
|
- this.warehouseNo = _wareHouse.warehouseNo
|
|
|
|
- this.monitorUrl1 = _wareHouse.monitorUrl1
|
|
|
|
- this.allowEdit = _wareHouse.allowEdit
|
|
|
|
- this.monitorUrl2 = _wareHouse.monitorUrl2
|
|
|
|
- } else {
|
|
|
|
- if (this.cangid && this.cangid == response[i].id) {
|
|
|
|
- this.warehouseName = response[i].warehouseName
|
|
|
|
- this.allowEdit = response[i].allowEdit
|
|
|
|
- this.common.name = response[i].warehouseName
|
|
|
|
- this.warehouseId = response[i].id
|
|
|
|
- this.warehouseNo = response[i].commonWarehouseNo
|
|
|
|
- this.monitorUrl1 = response[i].monitorUrl1
|
|
|
|
- this.monitorUrl2 = response[i].monitorUrl2
|
|
|
|
- }
|
|
|
|
|
|
+ window.open('../../../../static/weightCheck.html?type=2&tableData=' + JSON.stringify(this.dialogData))
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ print(row, type) {
|
|
|
|
+ if (type == 1) {
|
|
|
|
+ let index1 = 0;
|
|
|
|
+ for (let i = 0; i < this.modification.length; i++) {
|
|
|
|
+ getPrint({
|
|
|
|
+ id: this.modification[i].id
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ index1++;
|
|
|
|
+ this.jjSelectPrintList.push(response)
|
|
|
|
+ if (index1 == this.modification.length) {
|
|
|
|
+ this.printBig(1)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch((response) => {
|
|
|
|
+ // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ getPrint({
|
|
|
|
+ id: row.id
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.dialogData = response
|
|
|
|
+ this.isShowPrint = true
|
|
|
|
+ })
|
|
|
|
+ .catch((response) => {
|
|
|
|
+ // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
|
|
- if (this.warehouseList.length > 0 && !this.cangid) {
|
|
|
|
- this.warehouseName = this.warehouseList[0].value
|
|
|
|
- this.allowEdit = this.warehouseList[0].allowEdit
|
|
|
|
- this.cangid = this.warehouseList[0].warehouseId
|
|
|
|
- this.warehouseId = this.warehouseList[0].warehouseId
|
|
|
|
- this.WAREHOUSE[1].payname = this.warehouseList[0].value
|
|
|
|
- this.common.name = this.warehouseList[0].value
|
|
|
|
- this.monitorUrl1 = this.warehouseList[0].monitorUrl1
|
|
|
|
- this.monitorUrl2 = this.warehouseList[0].monitorUrl2
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- sessionStorage.setItem('ck', this.common.name)
|
|
|
|
- console.log(this.warehouseList)
|
|
|
|
- this.getList()
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- getList() {
|
|
|
|
- getweighingList({
|
|
|
|
- compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
- currentPage: this.currentPage,
|
|
|
|
- pageSize: this.pageSize,
|
|
|
|
- searchKeyWord: this.searchKeyWord,
|
|
|
|
- warehouseName: this.warehouseName,
|
|
|
|
- managementType: 1
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- for (let i = 0; i < response.records.length; i++) {
|
|
|
|
- if (response.records[i].paymentManagement) {
|
|
|
|
- if (response.records[i].paymentManagement.approveStatus || response.records[i]
|
|
|
|
- .paymentManagement.status != '待结算') {
|
|
|
|
- response.records[i].allow = 2
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- response.records[i].allow = 1
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- this.weighingList = response.records
|
|
|
|
- this.common.commonWeighingList = response.records
|
|
|
|
- this.deptBudgetTotal = response.total
|
|
|
|
- })
|
|
|
|
- .catch((response) => {
|
|
|
|
- // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ warehouseNameChange(e) {
|
|
|
|
+ // this.warehouseName = e
|
|
|
|
+ for (let i = 0; i < this.warehouseList.length; i++) {
|
|
|
|
+ if (this.warehouseList[i].value == e) {
|
|
|
|
+ this.warehouseId = this.warehouseList[i].warehouseId
|
|
|
|
+ this.cangid = this.warehouseList[i].warehouseId
|
|
|
|
+ this.allowEdit = this.warehouseList[i].allowEdit
|
|
|
|
+ this.WAREHOUSE[2].payname = this.warehouseList[i].value
|
|
|
|
+ this.common.name = this.warehouseList[i].value
|
|
|
|
+ this.monitorUrl1 = this.warehouseList[i].monitorUrl1
|
|
|
|
+ this.monitorUrl2 = this.warehouseList[i].monitorUrl2
|
|
|
|
+ sessionStorage.setItem('ck', e)
|
|
|
|
+ sessionStorage.setItem('houseSelfCollect_house1', JSON.stringify(this.warehouseList[i]))
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
|
|
+ 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,
|
|
|
|
+ monitorUrl1: this.monitorUrl1,
|
|
|
|
+ monitorUrl2: this.monitorUrl2,
|
|
|
|
+ allowEdit: this.allowEdit,
|
|
|
|
+ cangid: this.cangid,
|
|
|
|
+ warehouseName: this.warehouseName,
|
|
|
|
+ paramType: row.qualityInspectionManagement.paramType
|
|
|
|
+ },
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ find() {
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
|
|
+ handleSizeChange(val) {
|
|
|
|
+ console.log(`每页 ${val} 条`)
|
|
|
|
+ this.pageSize = val
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
|
|
+ handleCurrentChange(val) {
|
|
|
|
+ this.currentPage = val
|
|
|
|
+ console.log(`当前页: ${val}`)
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
|
|
+ selectWarehouse() {
|
|
|
|
+ let _wareHouse = sessionStorage.getItem('houseSelfCollect_house1')
|
|
|
|
+ _wareHouse = JSON.parse(_wareHouse)
|
|
|
|
+ selectWarehouseSelf({
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.warehouseList = []
|
|
|
|
+
|
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
|
+ this.warehouseList.push({
|
|
|
|
+ value: response[i].warehouseName,
|
|
|
|
+ warehouseId: response[i].id,
|
|
|
|
+ allowEdit: response[i].allowEdit,
|
|
|
|
+ monitorUrl1: response[i].monitorUrl1,
|
|
|
|
+ monitorUrl2: response[i].monitorUrl2,
|
|
|
|
+ id: response[i].id,
|
|
|
|
+ warehouseNo: response[i].commonWarehouseNo
|
|
|
|
+ })
|
|
|
|
+ if (_wareHouse) {
|
|
|
|
+ this.cangid = _wareHouse.id
|
|
|
|
+ this.warehouseName = _wareHouse.value
|
|
|
|
+ this.common.name = _wareHouse.value
|
|
|
|
+ this.warehouseId = _wareHouse.id
|
|
|
|
+ this.warehouseNo = _wareHouse.warehouseNo
|
|
|
|
+ this.monitorUrl1 = _wareHouse.monitorUrl1
|
|
|
|
+ this.allowEdit = _wareHouse.allowEdit
|
|
|
|
+ this.monitorUrl2 = _wareHouse.monitorUrl2
|
|
|
|
+ } else {
|
|
|
|
+ if (this.cangid && this.cangid == response[i].id) {
|
|
|
|
+ this.warehouseName = response[i].warehouseName
|
|
|
|
+ this.allowEdit = response[i].allowEdit
|
|
|
|
+ this.common.name = response[i].warehouseName
|
|
|
|
+ this.warehouseId = response[i].id
|
|
|
|
+ this.warehouseNo = response[i].commonWarehouseNo
|
|
|
|
+ this.monitorUrl1 = response[i].monitorUrl1
|
|
|
|
+ this.monitorUrl2 = response[i].monitorUrl2
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (this.warehouseList.length > 0 && !this.cangid) {
|
|
|
|
+ this.warehouseName = this.warehouseList[0].value
|
|
|
|
+ this.allowEdit = this.warehouseList[0].allowEdit
|
|
|
|
+ this.cangid = this.warehouseList[0].warehouseId
|
|
|
|
+ this.warehouseId = this.warehouseList[0].warehouseId
|
|
|
|
+ this.WAREHOUSE[1].payname = this.warehouseList[0].value
|
|
|
|
+ this.common.name = this.warehouseList[0].value
|
|
|
|
+ this.monitorUrl1 = this.warehouseList[0].monitorUrl1
|
|
|
|
+ this.monitorUrl2 = this.warehouseList[0].monitorUrl2
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ sessionStorage.setItem('ck', this.common.name)
|
|
|
|
+ console.log(this.warehouseList)
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ getList() {
|
|
|
|
+ getweighingList({
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ currentPage: this.currentPage,
|
|
|
|
+ pageSize: this.pageSize,
|
|
|
|
+ searchKeyWord: this.searchKeyWord,
|
|
|
|
+ warehouseName: this.warehouseName,
|
|
|
|
+ managementType: 1
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ for (let i = 0; i < response.records.length; i++) {
|
|
|
|
+ if (response.records[i].paymentManagement) {
|
|
|
|
+ if (response.records[i].paymentManagement.approveStatus || response.records[i]
|
|
|
|
+ .paymentManagement.status != '待结算') {
|
|
|
|
+ response.records[i].allow = 2
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ response.records[i].allow = 1
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.weighingList = response.records
|
|
|
|
+ this.common.commonWeighingList = response.records
|
|
|
|
+ this.deptBudgetTotal = response.total
|
|
|
|
+ })
|
|
|
|
+ .catch((response) => {
|
|
|
|
+ // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
- .title {
|
|
|
|
- font-size: 20px;
|
|
|
|
- font-weight: 600;
|
|
|
|
- margin: 20px;
|
|
|
|
- }
|
|
|
|
|
|
+ .title {
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ font-weight: 600;
|
|
|
|
+ margin: 20px;
|
|
|
|
+ }
|
|
|
|
|
|
- .ws-info-table {
|
|
|
|
- border: none;
|
|
|
|
- }
|
|
|
|
|
|
+ .ws-info-table {
|
|
|
|
+ border: none;
|
|
|
|
+ }
|
|
|
|
|
|
- .ws-info-table .el-form-item {
|
|
|
|
- width: 50%;
|
|
|
|
- border: none;
|
|
|
|
- }
|
|
|
|
|
|
+ .ws-info-table .el-form-item {
|
|
|
|
+ width: 50%;
|
|
|
|
+ border: none;
|
|
|
|
+ }
|
|
|
|
|
|
- /deep/.ws-info-table .el-form-item .el-form-item__label {
|
|
|
|
- width: 30%;
|
|
|
|
- text-align: center;
|
|
|
|
- background: #ffffff;
|
|
|
|
- color: #8890b1;
|
|
|
|
- }
|
|
|
|
|
|
+ /deep/.ws-info-table .el-form-item .el-form-item__label {
|
|
|
|
+ width: 30%;
|
|
|
|
+ text-align: center;
|
|
|
|
+ background: #ffffff;
|
|
|
|
+ color: #8890b1;
|
|
|
|
+ }
|
|
|
|
|
|
- /deep/.ws-info-table .el-form-item .el-form-item__content {
|
|
|
|
- border: none;
|
|
|
|
- }
|
|
|
|
|
|
+ /deep/.ws-info-table .el-form-item .el-form-item__content {
|
|
|
|
+ border: none;
|
|
|
|
+ }
|
|
|
|
|
|
- /deep/.el-table .el-table__header .cell,
|
|
|
|
- .el-table .el-table__body .cell {
|
|
|
|
- text-align: center;
|
|
|
|
- }
|
|
|
|
|
|
+ /deep/.el-table .el-table__header .cell,
|
|
|
|
+ .el-table .el-table__body .cell {
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
|
|
- /deep/.el-table--enable-row-transition .el-table__body td {
|
|
|
|
- text-align: center;
|
|
|
|
- }
|
|
|
|
|
|
+ /deep/.el-table--enable-row-transition .el-table__body td {
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
|
|
- .formItem {
|
|
|
|
- width: 51% !important;
|
|
|
|
- }
|
|
|
|
|
|
+ .formItem {
|
|
|
|
+ width: 51% !important;
|
|
|
|
+ }
|
|
|
|
|
|
- /deep/.el-dialog__title {
|
|
|
|
- font-size: 24px !important;
|
|
|
|
- }
|
|
|
|
|
|
+ /deep/.el-dialog__title {
|
|
|
|
+ font-size: 24px !important;
|
|
|
|
+ }
|
|
|
|
|
|
- /deep/.el-dialog__header {
|
|
|
|
- text-align: center !important;
|
|
|
|
- padding: 10px 0 !important;
|
|
|
|
- height: auto !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;
|
|
|
|
- }
|
|
|
|
|
|
+ .number {
|
|
|
|
+ text-align: right;
|
|
|
|
+ margin: 0 0 10px 0;
|
|
|
|
+ }
|
|
|
|
|
|
- table,
|
|
|
|
- table tr th,
|
|
|
|
- table tr td {
|
|
|
|
- border: 2px solid #333333;
|
|
|
|
- padding: 5px 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;
|
|
|
|
- }
|
|
|
|
|
|
+ table {
|
|
|
|
+ width: 100%;
|
|
|
|
+ min-height: 25px;
|
|
|
|
+ line-height: 25px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ border-collapse: collapse;
|
|
|
|
+ border: 3px solid #333333;
|
|
|
|
+ }
|
|
|
|
|
|
- .col-bgc {
|
|
|
|
- background: #f6f7fb;
|
|
|
|
- }
|
|
|
|
|
|
+ .col-bgc {
|
|
|
|
+ background: #f6f7fb;
|
|
|
|
+ }
|
|
|
|
|
|
- .bottom-row1 {
|
|
|
|
- display: flex;
|
|
|
|
- margin: 10px 0;
|
|
|
|
- }
|
|
|
|
|
|
+ .bottom-row1 {
|
|
|
|
+ display: flex;
|
|
|
|
+ margin: 10px 0;
|
|
|
|
+ }
|
|
|
|
|
|
- .bottom-row2 {
|
|
|
|
- display: flex;
|
|
|
|
- margin: 10px 0;
|
|
|
|
|
|
+ .bottom-row2 {
|
|
|
|
+ display: flex;
|
|
|
|
+ margin: 10px 0;
|
|
|
|
|
|
- .left {
|
|
|
|
- img {
|
|
|
|
- width: 41px;
|
|
|
|
- height: 41px;
|
|
|
|
- margin-right: 118px;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ .left {
|
|
|
|
+ img {
|
|
|
|
+ width: 41px;
|
|
|
|
+ height: 41px;
|
|
|
|
+ margin-right: 118px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
- .config {
|
|
|
|
- margin-top: 20px;
|
|
|
|
- margin-right: 240px;
|
|
|
|
- }
|
|
|
|
|
|
+ .config {
|
|
|
|
+ margin-top: 20px;
|
|
|
|
+ margin-right: 240px;
|
|
|
|
+ }
|
|
|
|
|
|
- .autograph {
|
|
|
|
- margin-top: 20px;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ .autograph {
|
|
|
|
+ margin-top: 20px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
- .bottom-row3 {
|
|
|
|
- margin: 10px 0;
|
|
|
|
- }
|
|
|
|
|
|
+ .bottom-row3 {
|
|
|
|
+ margin: 10px 0;
|
|
|
|
+ }
|
|
|
|
|
|
- .bottom-row4 {
|
|
|
|
- margin-top: 50px;
|
|
|
|
- text-align: center;
|
|
|
|
- }
|
|
|
|
|
|
+ .bottom-row4 {
|
|
|
|
+ margin-top: 50px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|