|
@@ -2,16 +2,19 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<BaseHeaderLayout :leftSpan="12">
|
|
|
- <template slot="left"> </template>
|
|
|
+ <template slot="left">
|
|
|
+ <ws-button type="primary" @click="weighing(3)">添加</ws-button>
|
|
|
+ </template>
|
|
|
+ <!-- <template slot="left"> </template> -->
|
|
|
<template slot="right">
|
|
|
<ws-select
|
|
|
- v-model="searchTypeText"
|
|
|
+ v-model="warehouseName"
|
|
|
placeholder=""
|
|
|
- @change="selecttaskType"
|
|
|
+ @change="warehouseNameChange"
|
|
|
:value="searchType"
|
|
|
>
|
|
|
<ws-option
|
|
|
- v-for="item in taskTypeList"
|
|
|
+ v-for="item in warehouseList"
|
|
|
:key="item.value"
|
|
|
:label="item.value"
|
|
|
:value="item.value"
|
|
@@ -21,7 +24,7 @@
|
|
|
<div></div>
|
|
|
<ws-input
|
|
|
v-model="searchKeyWord"
|
|
|
- placeholder="可按编号、车牌号查找"
|
|
|
+ placeholder="可按编号、客户名、车牌号查找"
|
|
|
clearable
|
|
|
maxlength="500"
|
|
|
type="input"
|
|
@@ -42,9 +45,9 @@
|
|
|
</template>
|
|
|
</BaseHeaderLayout>
|
|
|
<el-table
|
|
|
- :data="warehouseList"
|
|
|
+ :data="weighingList"
|
|
|
style="width: 100%; margin-top: 20px"
|
|
|
- ref="warehouseList"
|
|
|
+ ref="weighingList"
|
|
|
border
|
|
|
height="780"
|
|
|
>
|
|
@@ -54,210 +57,159 @@
|
|
|
<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 prop="contractNo" width="120" label="合同编号"></el-table-column>
|
|
|
+ <el-table-column prop="goodsName" label="货名"></el-table-column>
|
|
|
+ <el-table-column prop="carNumber" 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="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="司称员"></el-table-column>
|
|
|
+ <el-table-column prop="suqualityTestingDate" label="称重时间"></el-table-column>
|
|
|
+ <el-table-column prop="address" label="附件"></el-table-column>
|
|
|
+ <el-table-column prop="status" 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>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button @click="weighing(scope.row,1)" v-if="scope.row.status !='已质检'">毛重</el-button>
|
|
|
+ <el-button @click="weighing(scope.row,2)" v-if="scope.row.status =='已称皮重'">皮重</el-button>
|
|
|
+ <el-button @click="del(scope.row)" v-if="scope.row.status =='已称皮重'">删除</el-button>
|
|
|
+ </template>
|
|
|
</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 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'
|
|
|
+import { getweighingList, selectWarehouseSelf, delelteWeighing, } from '@/model/outboundManagement/index'
|
|
|
+
|
|
|
export default {
|
|
|
- components: {
|
|
|
-
|
|
|
- },
|
|
|
- watch: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- //分页
|
|
|
+ //分页
|
|
|
currentPage: 1,
|
|
|
pageSize: 10,
|
|
|
- deptCircularPage:{},
|
|
|
+ deptCircularPage: {},
|
|
|
deptBudgetTotal: 0,
|
|
|
paymentForm: false,
|
|
|
paymentForm1: false,
|
|
|
- warehouseList: [
|
|
|
- {
|
|
|
- contractNo: '56454',
|
|
|
- },
|
|
|
- ],
|
|
|
+ weighingList: [],
|
|
|
searchKeyWord: '',
|
|
|
searchType: [],
|
|
|
- searchTypeText: '',
|
|
|
+ warehouseName: '',
|
|
|
value1: '', //选择时间
|
|
|
- taskTypeList: [],
|
|
|
+ warehouseList: [],
|
|
|
+ warehouseId:'',
|
|
|
}
|
|
|
},
|
|
|
- activated() {},
|
|
|
+ activated() {
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
methods: {
|
|
|
- GrossWeight() {
|
|
|
- //毛重
|
|
|
- this.paymentForm = true
|
|
|
+ warehouseNameChange(e) {
|
|
|
+ // this.warehouseName = 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
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ weighing(row,num) {
|
|
|
+ console.log
|
|
|
+ this.$router.push({
|
|
|
+ path: 'weighing',
|
|
|
+ query: { typeNo: 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},
|
|
|
+ })
|
|
|
},
|
|
|
- tare() {
|
|
|
- //皮重
|
|
|
- this.paymentForm1 = true
|
|
|
+ // Reacquire() {
|
|
|
+ // //重新获取
|
|
|
+ // },
|
|
|
+ find(){
|
|
|
+ this.getList()
|
|
|
+
|
|
|
},
|
|
|
- selecttaskType() {
|
|
|
- //选择仓库改变方法
|
|
|
+ handleSizeChange(val) {
|
|
|
+ console.log(`每页 ${val} 条`)
|
|
|
+ this.pageSize = val
|
|
|
+ this.getList()
|
|
|
},
|
|
|
- Reacquire() {
|
|
|
- //重新获取
|
|
|
+ handleCurrentChange(val) {
|
|
|
+ this.currentPage = val
|
|
|
+ console.log(`当前页: ${val}`)
|
|
|
+ this.getList()
|
|
|
},
|
|
|
- commit() {
|
|
|
- //毛重保存
|
|
|
- this.$confirm('确定保存检斤信息?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
+ del(row){
|
|
|
+ this.$confirm(`检斤信息删除后不可恢复,是否确定删除?`, {
|
|
|
cancelButtonText: '取消',
|
|
|
+ confirmButtonText: '确定',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
- .then(() => {})
|
|
|
+ .then(() => {
|
|
|
+ delelteWeighing({ id: row.id })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$notify.success({
|
|
|
+ title: '成功',
|
|
|
+ message: '删除成功',
|
|
|
+ })
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ .catch((response) => {
|
|
|
+ })
|
|
|
+ })
|
|
|
.catch(() => {
|
|
|
return false
|
|
|
})
|
|
|
},
|
|
|
- submit() {//皮重保存
|
|
|
- this.$confirm('确定保存检斤信息?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
+ getList() {
|
|
|
+ selectWarehouseSelf({
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ personCharge: sessionStorage.getItem('ws-pf_staffName'),
|
|
|
})
|
|
|
- .then(() => {})
|
|
|
- .catch(() => {
|
|
|
- return false
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.warehouseList = []
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
+ this.warehouseList.push({
|
|
|
+ value: response[i].warehouseName,
|
|
|
+ warehouseId :response[i].id
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.warehouseName = this.warehouseList[0].value
|
|
|
+ this.warehouseId = this.warehouseList[0].warehouseId
|
|
|
+ })
|
|
|
+ getweighingList({
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ currentPage: this.currentPage,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ searchKeyWord: this.searchKeyWord,
|
|
|
+ warehouseName: this.warehouseName,
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ // this.$notify.success({
|
|
|
+ // title: '成功',
|
|
|
+ // message: '删除成功',
|
|
|
+ // })
|
|
|
+ this.weighingList = response.records
|
|
|
+ this.deptBudgetTotal = response.total
|
|
|
+
|
|
|
+ })
|
|
|
+ .catch((response) => {
|
|
|
+ // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
})
|
|
|
- },
|
|
|
- handleSizeChange(val) {
|
|
|
- console.log(`每页 ${val} 条`)
|
|
|
- this.pageSize = val
|
|
|
- this.getList()
|
|
|
- },
|
|
|
- handleCurrentChange(val) {
|
|
|
- this.currentPage = val
|
|
|
- console.log(`当前页: ${val}`)
|
|
|
- this.getList()
|
|
|
},
|
|
|
},
|
|
|
}
|