|
@@ -6,34 +6,70 @@
|
|
<ws-button type="primary" @click="inspectInfo(1)">添加</ws-button>
|
|
<ws-button type="primary" @click="inspectInfo(1)">添加</ws-button>
|
|
</template>
|
|
</template>
|
|
<template slot="right">
|
|
<template slot="right">
|
|
- <ws-select v-model="warehouseName" placeholder="" @change="warehouseNameChange" :value="searchType">
|
|
|
|
- <ws-option v-for="item in warehouseList" :key="item.value" :label="item.value" :value="item.value"
|
|
|
|
- style="color: #8890b1" />
|
|
|
|
|
|
+ <ws-select
|
|
|
|
+ v-model="warehouseName"
|
|
|
|
+ placeholder=""
|
|
|
|
+ @change="warehouseNameChange"
|
|
|
|
+ :value="searchType"
|
|
|
|
+ >
|
|
|
|
+ <ws-option
|
|
|
|
+ v-for="item in warehouseList"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.value"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ style="color: #8890b1"
|
|
|
|
+ />
|
|
</ws-select>
|
|
</ws-select>
|
|
<div></div>
|
|
<div></div>
|
|
- <ws-input v-model="searchKeyWord" placeholder="可按编号、客户名、车牌号查找" clearable maxlength="500" type="input">
|
|
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="searchKeyWord"
|
|
|
|
+ placeholder="可按编号、客户名、车牌号查找"
|
|
|
|
+ clearable
|
|
|
|
+ maxlength="500"
|
|
|
|
+ type="input"
|
|
|
|
+ >
|
|
</ws-input>
|
|
</ws-input>
|
|
- <ws-button class="find" type="primary" @click="find()"><img width="16" height="16" style="
|
|
|
|
|
|
+ <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;
|
|
left: -8px;
|
|
left: -8px;
|
|
- " src="../../../public/img/sousuo.png" alt="" /></ws-button>
|
|
|
|
|
|
+ "
|
|
|
|
+ src="../../../public/img/sousuo.png"
|
|
|
|
+ alt=""
|
|
|
|
+ /></ws-button>
|
|
</template>
|
|
</template>
|
|
</BaseHeaderLayout>
|
|
</BaseHeaderLayout>
|
|
- <el-table :data="inspect" style="width: 100%; margin-top: 20px" ref="inspect" border height="780">
|
|
|
|
|
|
+ <el-table
|
|
|
|
+ :data="inspect"
|
|
|
|
+ style="width: 100%; margin-top: 20px"
|
|
|
|
+ ref="inspect"
|
|
|
|
+ border
|
|
|
|
+ height="780"
|
|
|
|
+ >
|
|
<el-table-column type="index" label="序号" width="50">
|
|
<el-table-column type="index" label="序号" width="50">
|
|
<template scope="scope">
|
|
<template scope="scope">
|
|
<span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
<span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="qualityNo" width="120" label="编号"></el-table-column>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="qualityNo"
|
|
|
|
+ width="120"
|
|
|
|
+ label="编号"
|
|
|
|
+ ></el-table-column>
|
|
<el-table-column prop="customerName" label="客户"></el-table-column>
|
|
<el-table-column prop="customerName" label="客户"></el-table-column>
|
|
<el-table-column prop="carNumber" 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="goodsName" label="货名"></el-table-column>
|
|
<el-table-column prop="waterContent" label="水分(%)"></el-table-column>
|
|
<el-table-column prop="waterContent" label="水分(%)"></el-table-column>
|
|
- <el-table-column prop="tidalGrainPrice" label="净重单价(元/公斤)"></el-table-column>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="tidalGrainPrice"
|
|
|
|
+ label="净重单价(元/公斤)"
|
|
|
|
+ ></el-table-column>
|
|
<el-table-column prop="binNumber" label="仓位号"></el-table-column>
|
|
<el-table-column prop="binNumber" label="仓位号"></el-table-column>
|
|
<el-table-column prop="storageTagNo" label="囤位号"></el-table-column>
|
|
<el-table-column prop="storageTagNo" label="囤位号"></el-table-column>
|
|
<el-table-column prop="qualityInspector" label="质检员"></el-table-column>
|
|
<el-table-column prop="qualityInspector" label="质检员"></el-table-column>
|
|
@@ -48,62 +84,68 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <el-dialog width="70%" class="table-content" center :visible.sync="isShowPrint" title="粮食质检单">
|
|
|
|
- <div class="number">{{printData.qualityNo}}</div>
|
|
|
|
- <table class="table">
|
|
|
|
- <tr class="row">
|
|
|
|
- <td class="col col-bgc">客户姓名</td>
|
|
|
|
- <td class="col" colspan="2">{{printData.customerName}}</td>
|
|
|
|
- <td class="col col-bgc">客户电话</td>
|
|
|
|
- <td class="col" colspan="2">{{printData.customerPhone}}</td>
|
|
|
|
- <td class="col col-bgc">车牌号</td>
|
|
|
|
- <td class="col">{{printData.carNumber}}</td>
|
|
|
|
- </tr>
|
|
|
|
- <tr class="row">
|
|
|
|
- <td class="col col-bgc">收货单位</td>
|
|
|
|
- <td class="col" colspan="2">{{printData.receivingUnit}}</td>
|
|
|
|
- <td class="col col-bgc">联系人</td>
|
|
|
|
- <td class="col" colspan="2">{{printData.contacts}}</td>
|
|
|
|
- <td class="col col-bgc">联系电话</td>
|
|
|
|
- <td class="col">{{printData.contactsPhone}}</td>
|
|
|
|
- </tr>
|
|
|
|
- <tr class="row">
|
|
|
|
- <td class="col col-bgc">货名</td>
|
|
|
|
- <td class="col">{{printData.goodsName}}</td>
|
|
|
|
- <td class="col col-bgc">类型</td>
|
|
|
|
- <td class="col">{{printData.customerName}}</td>
|
|
|
|
- <td class="col col-bgc">容量(克/升)</td>
|
|
|
|
- <td class="col">{{printData.bulkDensity}}</td>
|
|
|
|
- <td class="col col-bgc">不完整粒(%)</td>
|
|
|
|
- <td class="col">{{printData.imperfectGrain}}</td>
|
|
|
|
- </tr>
|
|
|
|
- <tr class="row">
|
|
|
|
- <td class="col col-bgc">等级</td>
|
|
|
|
- <td class="col">{{printData.grade}}</td>
|
|
|
|
- <td class="col col-bgc">水分(%)</td>
|
|
|
|
- <td class="col">{{printData.waterContent}}</td>
|
|
|
|
- <td class="col col-bgc">热损伤(%)</td>
|
|
|
|
- <td class="col">{{printData.jiaorenli}}</td>
|
|
|
|
- <td class="col col-bgc">单价(元/公斤)</td>
|
|
|
|
- <td class="col">{{printData.tidalGrainPrice}}</td>
|
|
|
|
- </tr>
|
|
|
|
- <tr class="row">
|
|
|
|
- <td class="col col-bgc">杂质(%)</td>
|
|
|
|
- <td class="col">{{printData.impurity}}</td>
|
|
|
|
- <td class="col col-bgc">霉变粒(%)</td>
|
|
|
|
- <td class="col">{{printData.mildewGrain}}</td>
|
|
|
|
- <td class="col col-bgc" colspan="2">购粮性质</td>
|
|
|
|
- <td class="col" colspan="2">{{printData.customerName}}</td>
|
|
|
|
- </tr>
|
|
|
|
- </table>
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ width="70%"
|
|
|
|
+ class="table-content"
|
|
|
|
+ center
|
|
|
|
+ :visible.sync="isShowPrint"
|
|
|
|
+ title="粮食质检单"
|
|
|
|
+ >
|
|
|
|
+ <div class="number">{{ printData.qualityNo }}</div>
|
|
|
|
+ <table class="table">
|
|
|
|
+ <tr class="row">
|
|
|
|
+ <td class="col col-bgc">客户姓名</td>
|
|
|
|
+ <td class="col" colspan="2">{{ printData.customerName }}</td>
|
|
|
|
+ <td class="col col-bgc">客户电话</td>
|
|
|
|
+ <td class="col" colspan="2">{{ printData.customerPhone }}</td>
|
|
|
|
+ <td class="col col-bgc">车牌号</td>
|
|
|
|
+ <td class="col">{{ printData.carNumber }}</td>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr class="row">
|
|
|
|
+ <td class="col col-bgc">收货单位</td>
|
|
|
|
+ <td class="col" colspan="2">{{ printData.receivingUnit }}</td>
|
|
|
|
+ <td class="col col-bgc">联系人</td>
|
|
|
|
+ <td class="col" colspan="2">{{ printData.contacts }}</td>
|
|
|
|
+ <td class="col col-bgc">联系电话</td>
|
|
|
|
+ <td class="col">{{ printData.contactsPhone }}</td>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr class="row">
|
|
|
|
+ <td class="col col-bgc">货名</td>
|
|
|
|
+ <td class="col">{{ printData.goodsName }}</td>
|
|
|
|
+ <td class="col col-bgc">类型</td>
|
|
|
|
+ <td class="col">{{ printData.customerName }}</td>
|
|
|
|
+ <td class="col col-bgc">容量(克/升)</td>
|
|
|
|
+ <td class="col">{{ printData.bulkDensity }}</td>
|
|
|
|
+ <td class="col col-bgc">不完整粒(%)</td>
|
|
|
|
+ <td class="col">{{ printData.imperfectGrain }}</td>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr class="row">
|
|
|
|
+ <td class="col col-bgc">等级</td>
|
|
|
|
+ <td class="col">{{ printData.grade }}</td>
|
|
|
|
+ <td class="col col-bgc">水分(%)</td>
|
|
|
|
+ <td class="col">{{ printData.waterContent }}</td>
|
|
|
|
+ <td class="col col-bgc">热损伤(%)</td>
|
|
|
|
+ <td class="col">{{ printData.jiaorenli }}</td>
|
|
|
|
+ <td class="col col-bgc">单价(元/公斤)</td>
|
|
|
|
+ <td class="col">{{ printData.tidalGrainPrice }}</td>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr class="row">
|
|
|
|
+ <td class="col col-bgc">杂质(%)</td>
|
|
|
|
+ <td class="col">{{ printData.impurity }}</td>
|
|
|
|
+ <td class="col col-bgc">霉变粒(%)</td>
|
|
|
|
+ <td class="col">{{ printData.mildewGrain }}</td>
|
|
|
|
+ <td class="col col-bgc" colspan="2">购粮性质</td>
|
|
|
|
+ <td class="col" colspan="2">{{ printData.customerName }}</td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
<div class="bottom">
|
|
<div class="bottom">
|
|
<div class="bottom-row1">
|
|
<div class="bottom-row1">
|
|
- <div>质检:{{printData.qualityInspector}}</div>
|
|
|
|
- <div>{{printData.qualityDate}}</div>
|
|
|
|
|
|
+ <div>质检:{{ printData.qualityInspector }}</div>
|
|
|
|
+ <div>{{ printData.qualityDate }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="bottom-row2">
|
|
<div class="bottom-row2">
|
|
<div class="left">
|
|
<div class="left">
|
|
- <img src="../../../public/img/add.png" alt="">
|
|
|
|
|
|
+ <img src="../../../public/img/add.png" alt="" />
|
|
</div>
|
|
</div>
|
|
<div class="config">收货单位签名或盖章</div>
|
|
<div class="config">收货单位签名或盖章</div>
|
|
<div class="">客户签名</div>
|
|
<div class="">客户签名</div>
|
|
@@ -114,285 +156,311 @@
|
|
<el-button type="primary" @click="printSmall">打印小票</el-button>
|
|
<el-button type="primary" @click="printSmall">打印小票</el-button>
|
|
<el-button type="primary" @click="printBig">打印单据</el-button>
|
|
<el-button type="primary" @click="printBig">打印单据</el-button>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<div style="text-align: center">
|
|
<div style="text-align: center">
|
|
- <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
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
|
+ :current-page="currentPage"
|
|
|
|
+ :page-size="deptCircularPage.pageSize"
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
+ :total="deptBudgetTotal"
|
|
|
|
+ >
|
|
</el-pagination>
|
|
</el-pagination>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
- import {
|
|
|
|
- selectWarehouseSelf,
|
|
|
|
- getinspectList,
|
|
|
|
- getinspectDelete,
|
|
|
|
- getinspectLook
|
|
|
|
- } from '@/model/houseSelfCollect/index'
|
|
|
|
|
|
+import {
|
|
|
|
+ selectWarehouseSelf,
|
|
|
|
+ getinspectList,
|
|
|
|
+ getinspectDelete,
|
|
|
|
+ getinspectLook,
|
|
|
|
+} from '@/model/houseSelfCollect/index'
|
|
|
|
|
|
- export default {
|
|
|
|
- components: {},
|
|
|
|
- watch: {},
|
|
|
|
- data() {
|
|
|
|
- return {
|
|
|
|
- //分页
|
|
|
|
- currentPage: 1,
|
|
|
|
- pageSize: 10,
|
|
|
|
- deptCircularPage: {},
|
|
|
|
- deptBudgetTotal: 0,
|
|
|
|
|
|
+export default {
|
|
|
|
+ components: {},
|
|
|
|
+ watch: {},
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ //分页
|
|
|
|
+ currentPage: 1,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ deptCircularPage: {},
|
|
|
|
+ deptBudgetTotal: 0,
|
|
|
|
|
|
- searchKeyWord: '',
|
|
|
|
- taskTypeList: [],
|
|
|
|
- searchType: 0,
|
|
|
|
- warehouseName: '',
|
|
|
|
- inspect: [],
|
|
|
|
- warehouseList: [],
|
|
|
|
- cangid: '', //仓库id
|
|
|
|
- warehouseCount: "",
|
|
|
|
- warehouseNo: "",
|
|
|
|
- isShowPrint: false,
|
|
|
|
- printData:{}
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- activated() {
|
|
|
|
|
|
+ searchKeyWord: '',
|
|
|
|
+ taskTypeList: [],
|
|
|
|
+ searchType: 0,
|
|
|
|
+ warehouseName: '',
|
|
|
|
+ inspect: [],
|
|
|
|
+ warehouseList: [],
|
|
|
|
+ cangid: "", //仓库id
|
|
|
|
+ warehouseCount: "",
|
|
|
|
+ warehouseNo: "",
|
|
|
|
+ isShowPrint: false,
|
|
|
|
+ printData: {},
|
|
|
|
+ deductWeight:"",//扣重比
|
|
|
|
+ saleLimit:"",
|
|
|
|
+ purchasePriceList:[]
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ activated() {
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ find() {
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
- methods: {
|
|
|
|
- find() {
|
|
|
|
- this.getList()
|
|
|
|
- },
|
|
|
|
- inspectInfo(row, index) {
|
|
|
|
- //添加,编辑,查看
|
|
|
|
- this.$router.push({
|
|
|
|
- path: 'inspectInfo',
|
|
|
|
- query: {
|
|
|
|
- type: index,
|
|
|
|
- cangid: this.cangid,
|
|
|
|
|
|
+ inspectInfo(row, index) {
|
|
|
|
+ //添加,编辑,查看
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: 'inspectInfo',
|
|
|
|
+ query: {
|
|
|
|
+ type: index,
|
|
|
|
+ cangid: this.cangid,
|
|
|
|
+ id: row.id,
|
|
|
|
+ warehouseName: this.warehouseName,
|
|
|
|
+ count: this.warehouseCount,
|
|
|
|
+ warehouseNo: this.warehouseNo,
|
|
|
|
+ purchasePriceList:this.purchasePriceList
|
|
|
|
+ },
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ warehouseNameChange(e) {
|
|
|
|
+ console.log(this.warehouseList)
|
|
|
|
+ for(let i = 0 ; i < this.warehouseList.length; i++){
|
|
|
|
+ if(this.warehouseList[i].value == e){
|
|
|
|
+ this.warehouseName = this.warehouseList[i].value
|
|
|
|
+ this.warehouseCount = this.warehouseList[i].count
|
|
|
|
+ this.warehouseNo = this.warehouseList[i].No
|
|
|
|
+ this.cangid = this.warehouseList[i].id
|
|
|
|
+ this.purchasePriceList = this.warehouseList[i].purchasePriceList
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ del(row) {
|
|
|
|
+ //删除
|
|
|
|
+ this.$confirm('确定删除质检信息?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ getinspectDelete({
|
|
id: row.id,
|
|
id: row.id,
|
|
- warehouseName: this.warehouseName,
|
|
|
|
- count: this.warehouseCount,
|
|
|
|
- warehouseNo: this.warehouseNo
|
|
|
|
- },
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- warehouseNameChange(e) {
|
|
|
|
- console.log(e, "eeeeeeeeeeeeeeeeee")
|
|
|
|
- },
|
|
|
|
- del(row) {
|
|
|
|
- //删除
|
|
|
|
- this.$confirm('确定删除质检信息?', '提示', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- .then(() => {
|
|
|
|
- getinspectDelete({
|
|
|
|
- id: row.id
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.$notify.success({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '删除成功',
|
|
|
|
- })
|
|
|
|
- this.getList()
|
|
|
|
- })
|
|
|
|
- .catch((response) => {
|
|
|
|
- // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- .catch(() => {
|
|
|
|
- return false
|
|
|
|
})
|
|
})
|
|
- },
|
|
|
|
- handleSizeChange(val) {
|
|
|
|
- console.log(`每页 ${val} 条`)
|
|
|
|
- this.pageSize = val
|
|
|
|
- this.getList()
|
|
|
|
- },
|
|
|
|
- handleCurrentChange(val) {
|
|
|
|
- this.currentPage = val
|
|
|
|
- console.log(`当前页: ${val}`)
|
|
|
|
- this.getList()
|
|
|
|
- },
|
|
|
|
- getList() {
|
|
|
|
- selectWarehouseSelf({
|
|
|
|
- compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
- personCharge: sessionStorage.getItem('ws-pf_staffName'),
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.warehouseList = []
|
|
|
|
- for (let i = 0; i < response.length; i++) {
|
|
|
|
- this.warehouseList.push({
|
|
|
|
- // valueKey: i,
|
|
|
|
- value: response[i].warehouseName,
|
|
|
|
- id: response[i].id,
|
|
|
|
- count: response[i].count
|
|
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$notify.success({
|
|
|
|
+ title: '成功',
|
|
|
|
+ message: '删除成功',
|
|
})
|
|
})
|
|
- }
|
|
|
|
- this.warehouseName = response[0].warehouseName
|
|
|
|
- this.warehouseCount = response[0].count
|
|
|
|
- this.warehouseNo = response[0].commonWarehouseNo
|
|
|
|
- this.cangid = response[0].id
|
|
|
|
- })
|
|
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
|
|
+ .catch((response) => {
|
|
|
|
+ // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ return false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ handleSizeChange(val) {
|
|
|
|
+ console.log(`每页 ${val} 条`)
|
|
|
|
+ this.pageSize = val
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
|
|
+ handleCurrentChange(val) {
|
|
|
|
+ this.currentPage = val
|
|
|
|
+ console.log(`当前页: ${val}`)
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
|
|
+ getList() {
|
|
|
|
+ selectWarehouseSelf({
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ personCharge: sessionStorage.getItem('ws-pf_staffName'),
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.warehouseList = []
|
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
|
+ this.warehouseList.push({
|
|
|
|
+ value: response[i].warehouseName,
|
|
|
|
+ id: response[i].id,
|
|
|
|
+ count: response[i].count,
|
|
|
|
+ purchasePriceList: response[i].purchasePriceList,
|
|
|
|
+ No:response[i].commonWarehouseNo
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ if(this.warehouseList.length > 0){
|
|
|
|
+ this.warehouseName = this.warehouseList[0].value
|
|
|
|
+ this.warehouseCount = this.warehouseList[0].count
|
|
|
|
+ this.warehouseNo = this.warehouseList[0].No
|
|
|
|
+ this.cangid = this.warehouseList[0].id
|
|
|
|
+ this.purchasePriceList = this.warehouseList[0].purchasePriceList
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
|
|
- getinspectList({
|
|
|
|
- compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
- currentPage: this.currentPage,
|
|
|
|
- pageSize: this.pageSize,
|
|
|
|
- searchKeyWord: this.searchKeyWord,
|
|
|
|
- warehouseName: this.warehouseName,
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- // for (let i = 0; i < response.length; i++) {
|
|
|
|
- // this.warehouseList.push({
|
|
|
|
- // valueKey: i,
|
|
|
|
- // value: response[i].warehouseName,
|
|
|
|
- // id:response[i].id
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
- // this.searchTypeText = response[0].warehouseName
|
|
|
|
- // this.id = response[0].id
|
|
|
|
- // console.log(response)
|
|
|
|
- this.inspect = response.records
|
|
|
|
- this.deptBudgetTotal = response.total
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- print(row) {
|
|
|
|
- getinspectLook({
|
|
|
|
- id: row.id
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.isShowPrint = true
|
|
|
|
- this.printData = response
|
|
|
|
- // window.location.href="../../../static/inspection.html?dataList="+JSON.stringify(response)
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- printSmall() {
|
|
|
|
- window.location.href = "../../../static/inspection.html?type=1&dataList=" + JSON.stringify(this.printData)
|
|
|
|
- },
|
|
|
|
- printBig() {
|
|
|
|
- window.location.href = "../../../static/inspection.html?type=2&dataList=" + JSON.stringify(this.printData)
|
|
|
|
- },
|
|
|
|
|
|
+ getinspectList({
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ currentPage: this.currentPage,
|
|
|
|
+ pageSize: this.pageSize,
|
|
|
|
+ searchKeyWord: this.searchKeyWord,
|
|
|
|
+ warehouseName: this.warehouseName,
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ // for (let i = 0; i < response.length; i++) {
|
|
|
|
+ // this.warehouseList.push({
|
|
|
|
+ // valueKey: i,
|
|
|
|
+ // value: response[i].warehouseName,
|
|
|
|
+ // id:response[i].id
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ // this.searchTypeText = response[0].warehouseName
|
|
|
|
+ // this.id = response[0].id
|
|
|
|
+ // console.log(response)
|
|
|
|
+ this.inspect = response.records
|
|
|
|
+ this.deptBudgetTotal = response.total
|
|
|
|
+ })
|
|
},
|
|
},
|
|
- }
|
|
|
|
|
|
+ print(row) {
|
|
|
|
+ getinspectLook({
|
|
|
|
+ id: row.id,
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.isShowPrint = true
|
|
|
|
+ this.printData = response
|
|
|
|
+ // window.location.href="../../../static/inspection.html?dataList="+JSON.stringify(response)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ printSmall() {
|
|
|
|
+ window.location.href =
|
|
|
|
+ '../../../static/inspection.html?type=1&dataList=' +
|
|
|
|
+ JSON.stringify(this.printData)
|
|
|
|
+ },
|
|
|
|
+ printBig() {
|
|
|
|
+ window.location.href =
|
|
|
|
+ '../../../static/inspection.html?type=2&dataList=' +
|
|
|
|
+ JSON.stringify(this.printData)
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
- /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;
|
|
|
|
+}
|
|
|
|
|
|
- /deep/.el-dialog__title {
|
|
|
|
- font-size: 24px !important;
|
|
|
|
- }
|
|
|
|
|
|
+/deep/.el-dialog__title {
|
|
|
|
+ font-size: 24px !important;
|
|
|
|
+}
|
|
|
|
|
|
- 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;
|
|
|
|
+}
|
|
|
|
|
|
- .title {
|
|
|
|
- font-size: 20px;
|
|
|
|
- font-weight: 600;
|
|
|
|
- margin: 20px 0 0 20px;
|
|
|
|
- }
|
|
|
|
|
|
+.title {
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ font-weight: 600;
|
|
|
|
+ margin: 20px 0 0 20px;
|
|
|
|
+}
|
|
|
|
|
|
- .tit {
|
|
|
|
- font-size: 16px;
|
|
|
|
- font-weight: 600;
|
|
|
|
- margin: 20px;
|
|
|
|
- }
|
|
|
|
|
|
+.tit {
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ 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;
|
|
|
|
+}
|
|
|
|
|
|
- .number {
|
|
|
|
- text-align: right;
|
|
|
|
- margin: 0 0 10px 0;
|
|
|
|
- }
|
|
|
|
|
|
+.number {
|
|
|
|
+ text-align: right;
|
|
|
|
+ margin: 0 0 10px 0;
|
|
|
|
+}
|
|
|
|
|
|
- .col-bgc {
|
|
|
|
- background: #f6f7fb;
|
|
|
|
- }
|
|
|
|
|
|
+.col-bgc {
|
|
|
|
+ background: #f6f7fb;
|
|
|
|
+}
|
|
|
|
|
|
- .bottom-row1 {
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: space-between;
|
|
|
|
- margin: 10px 0;
|
|
|
|
- }
|
|
|
|
|
|
+.bottom-row1 {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ 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;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .config {
|
|
|
|
- margin-right: 240px;
|
|
|
|
|
|
+ .left {
|
|
|
|
+ img {
|
|
|
|
+ width: 41px;
|
|
|
|
+ height: 41px;
|
|
|
|
+ margin-right: 118px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- .bottom-row3 {
|
|
|
|
- margin: 10px 0;
|
|
|
|
|
|
+ .config {
|
|
|
|
+ margin-right: 240px;
|
|
}
|
|
}
|
|
|
|
+}
|
|
|
|
|
|
- .bottom-row4 {
|
|
|
|
- margin-top: 50px;
|
|
|
|
- text-align: center;
|
|
|
|
- }
|
|
|
|
|
|
+.bottom-row3 {
|
|
|
|
+ margin: 10px 0;
|
|
|
|
+}
|
|
|
|
|
|
- /deep/.el-dialog__body {
|
|
|
|
- padding: 20px !important;
|
|
|
|
- }
|
|
|
|
|
|
+.bottom-row4 {
|
|
|
|
+ margin-top: 50px;
|
|
|
|
+ text-align: center;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/deep/.el-dialog__body {
|
|
|
|
+ padding: 20px !important;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|