|
@@ -0,0 +1,297 @@
|
|
|
|
+<!--检斤管理-->
|
|
|
|
+<template>
|
|
|
|
+ <div>
|
|
|
|
+ <BaseHeaderLayout :leftSpan="12">
|
|
|
|
+ <template slot="left"> </template>
|
|
|
|
+ <template slot="right">
|
|
|
|
+ <ws-select
|
|
|
|
+ v-model="searchTypeText"
|
|
|
|
+ placeholder=""
|
|
|
|
+ @change="selecttaskType"
|
|
|
|
+ :value="searchType"
|
|
|
|
+ >
|
|
|
|
+ <ws-option
|
|
|
|
+ v-for="item in taskTypeList"
|
|
|
|
+ :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;
|
|
|
|
+ position: relative;
|
|
|
|
+ top: 0px;
|
|
|
|
+ left: -8px;
|
|
|
|
+ "
|
|
|
|
+ src="../../../public/img/sousuo.png"
|
|
|
|
+ alt=""
|
|
|
|
+ /></ws-button>
|
|
|
|
+ </template>
|
|
|
|
+ </BaseHeaderLayout>
|
|
|
|
+ <el-table
|
|
|
|
+ :data="warehouseList"
|
|
|
|
+ style="width: 100%; margin-top: 20px"
|
|
|
|
+ ref="warehouseList"
|
|
|
|
+ border
|
|
|
|
+ height="780"
|
|
|
|
+ >
|
|
|
|
+ <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="contractNo"
|
|
|
|
+ width="120"
|
|
|
|
+ label="编号"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column prop="contractNo" label="客户"></el-table-column>
|
|
|
|
+ <el-table-column prop="contractNo" label="车牌号"></el-table-column>
|
|
|
|
+ <el-table-column prop="contractNo" label="货名"></el-table-column>
|
|
|
|
+ <el-table-column prop="contractNo" label="毛重(公斤)"></el-table-column>
|
|
|
|
+ <el-table-column prop="contractNo" label="皮重(公斤)"></el-table-column>
|
|
|
|
+ <el-table-column prop="contractNo" label="仓位号"></el-table-column>
|
|
|
|
+ <el-table-column prop="contractNo" label="囤位号"></el-table-column>
|
|
|
|
+ <el-table-column prop="contractNo" label="司称员"></el-table-column>
|
|
|
|
+ <el-table-column prop="contractNo" label="称重时间"></el-table-column>
|
|
|
|
+ <el-table-column prop="contractNo" label="状态"></el-table-column>
|
|
|
|
+ <el-table-column width="300" prop="contractNo1" label="操作">
|
|
|
|
+ <el-button @click="GrossWeight">毛重</el-button>
|
|
|
|
+ <el-button @click="tare">皮重</el-button>
|
|
|
|
+ <el-button @click="print">删除</el-button>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+
|
|
|
|
+ <!-- 毛重检斤 -->
|
|
|
|
+ <el-dialog width="40%" :visible.sync="paymentForm" :append-to-body="true">
|
|
|
|
+ <ws-form>
|
|
|
|
+ <div class="title">毛重检斤</div>
|
|
|
|
+ <ws-info-table>
|
|
|
|
+ <ws-form-item label="编号" prop="waterContent">
|
|
|
|
+ <ws-input placeholder="请输入编号" maxlength="100" disabled size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item label="仓位号" prop="waterContent">
|
|
|
|
+ <ws-input placeholder="请输入仓位号" maxlength="100" disabled size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item label="客户" prop="waterContent">
|
|
|
|
+ <ws-input placeholder="请输入客户" maxlength="100" disabled size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item label="囤位号" prop="waterContent">
|
|
|
|
+ <ws-input placeholder="请输入囤位号" maxlength="100" disabled size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item label="车牌号" prop="waterContent">
|
|
|
|
+ <ws-input placeholder="请输入车牌号" maxlength="100" disabled size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item label="货名" prop="waterContent">
|
|
|
|
+ <ws-input placeholder="请输入货名" maxlength="100" disabled size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item label="毛重(公斤)" prop="waterContent">
|
|
|
|
+ <ws-input placeholder="请输入毛重" maxlength="100" disabled size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <div><el-button @click="Reacquire">重新获取</el-button></div>
|
|
|
|
+ </ws-info-table>
|
|
|
|
+ <div style="text-align: center">
|
|
|
|
+ <el-button @click="paymentForm = false">取消</el-button>
|
|
|
|
+ <el-button @click="commit">保存</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </ws-form>
|
|
|
|
+ </el-dialog>
|
|
|
|
+ <!-- 皮重检斤 -->
|
|
|
|
+ <el-dialog width="40%" :visible.sync="paymentForm1" :append-to-body="true">
|
|
|
|
+ <ws-form>
|
|
|
|
+ <div class="title">皮重检斤</div>
|
|
|
|
+ <ws-info-table>
|
|
|
|
+ <ws-form-item label="编号" prop="waterContent">
|
|
|
|
+ <ws-input placeholder="请输入编号" maxlength="100" disabled size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item label="仓位号" prop="waterContent">
|
|
|
|
+ <ws-input placeholder="请输入仓位号" maxlength="100" disabled size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item label="客户" prop="waterContent">
|
|
|
|
+ <ws-input placeholder="请输入客户" maxlength="100" disabled size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item label="囤位号" prop="waterContent">
|
|
|
|
+ <ws-input placeholder="请输入囤位号" maxlength="100" disabled size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item label="车牌号" prop="waterContent">
|
|
|
|
+ <ws-input placeholder="请输入车牌号" maxlength="100" disabled size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item label="货名" prop="waterContent">
|
|
|
|
+ <ws-input placeholder="请输入货名" maxlength="100" disabled size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item
|
|
|
|
+ label="毛重(公斤)"
|
|
|
|
+ prop="waterContent"
|
|
|
|
+ class="formItem"
|
|
|
|
+ >
|
|
|
|
+ <ws-input placeholder="请输入毛重" maxlength="100" disabled size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item
|
|
|
|
+ label="皮重(公斤)"
|
|
|
|
+ prop="waterContent"
|
|
|
|
+ class="formItem"
|
|
|
|
+ >
|
|
|
|
+ <ws-input placeholder="请输入皮重" maxlength="100" size="small" />
|
|
|
|
+ <el-button @click="Reacquire">重新获取</el-button>
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item
|
|
|
|
+ label="扣杂(公斤)"
|
|
|
|
+ prop="waterContent"
|
|
|
|
+ class="formItem"
|
|
|
|
+ >
|
|
|
|
+ <ws-input placeholder="请输入扣杂" maxlength="100" size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item
|
|
|
|
+ label="净重(公斤)"
|
|
|
|
+ prop="waterContent"
|
|
|
|
+ class="formItem"
|
|
|
|
+ >
|
|
|
|
+ <ws-input placeholder="请输入净重" maxlength="100" disabled size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ </ws-info-table>
|
|
|
|
+ <div style="text-align: center">
|
|
|
|
+ <el-button @click="paymentForm1 = false">取消</el-button>
|
|
|
|
+ <el-button @click="submit">保存</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </ws-form>
|
|
|
|
+ </el-dialog>
|
|
|
|
+ <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>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+<script>
|
|
|
|
+import {} from '@/model/houseSelfCollect/index'
|
|
|
|
+export default {
|
|
|
|
+ components: {
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ watch: {},
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ //分页
|
|
|
|
+ currentPage: 1,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ deptCircularPage:{},
|
|
|
|
+ deptBudgetTotal: 0,
|
|
|
|
+ paymentForm: false,
|
|
|
|
+ paymentForm1: false,
|
|
|
|
+ warehouseList: [
|
|
|
|
+ {
|
|
|
|
+ contractNo: '56454',
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ searchKeyWord: '',
|
|
|
|
+ searchType: [],
|
|
|
|
+ searchTypeText: '',
|
|
|
|
+ value1: '', //选择时间
|
|
|
|
+ taskTypeList: [],
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ activated() {},
|
|
|
|
+ methods: {
|
|
|
|
+ GrossWeight() {
|
|
|
|
+ //毛重
|
|
|
|
+ this.paymentForm = true
|
|
|
|
+ },
|
|
|
|
+ tare() {
|
|
|
|
+ //皮重
|
|
|
|
+ this.paymentForm1 = true
|
|
|
|
+ },
|
|
|
|
+ selecttaskType() {
|
|
|
|
+ //选择仓库改变方法
|
|
|
|
+ },
|
|
|
|
+ Reacquire() {
|
|
|
|
+ //重新获取
|
|
|
|
+ },
|
|
|
|
+ commit() {
|
|
|
|
+ //毛重保存
|
|
|
|
+ this.$confirm('确定保存检斤信息?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(() => {})
|
|
|
|
+ .catch(() => {
|
|
|
|
+ return false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ submit() {//皮重保存
|
|
|
|
+ this.$confirm('确定保存检斤信息?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(() => {})
|
|
|
|
+ .catch(() => {
|
|
|
|
+ return false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ handleSizeChange(val) {
|
|
|
|
+ console.log(`每页 ${val} 条`)
|
|
|
|
+ this.pageSize = val
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
|
|
+ handleCurrentChange(val) {
|
|
|
|
+ this.currentPage = val
|
|
|
|
+ console.log(`当前页: ${val}`)
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+}
|
|
|
|
+</script>
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
+.title {
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ font-weight: 600;
|
|
|
|
+ margin: 20px;
|
|
|
|
+}
|
|
|
|
+.ws-info-table {
|
|
|
|
+ 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__content {
|
|
|
|
+ border: none;
|
|
|
|
+}
|
|
|
|
+/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;
|
|
|
|
+}
|
|
|
|
+.formItem {
|
|
|
|
+ width: 51% !important;
|
|
|
|
+}
|
|
|
|
+</style>
|