|
@@ -83,10 +83,10 @@
|
|
<ws-input v-else v-model="weighingList.inOutTaskNo" placeholder="自动获取,不可编辑" maxlength="100"
|
|
<ws-input v-else v-model="weighingList.inOutTaskNo" placeholder="自动获取,不可编辑" maxlength="100"
|
|
disabled size="small" />
|
|
disabled size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- <ws-form-item label="业务编号" span="1" prop="number">
|
|
|
|
|
|
+ <!-- <ws-form-item label="业务编号" span="1" prop="number">
|
|
<ws-input v-model="weighingList.number" placeholder="自动获取,不可编辑" maxlength="100" disabled
|
|
<ws-input v-model="weighingList.number" placeholder="自动获取,不可编辑" maxlength="100" disabled
|
|
size="small" />
|
|
size="small" />
|
|
- </ws-form-item>
|
|
|
|
|
|
+ </ws-form-item> -->
|
|
<ws-form-item label="合同编号" span="1" prop="contractNo" v-show="inWarehouseType == 1"
|
|
<ws-form-item label="合同编号" span="1" prop="contractNo" v-show="inWarehouseType == 1"
|
|
v-if="weighingList.contractNo && tpyeNo == 1">
|
|
v-if="weighingList.contractNo && tpyeNo == 1">
|
|
<ws-input v-model="weighingList.contractNo" placeholder="自动获取,不可编辑" maxlength="100" disabled
|
|
<ws-input v-model="weighingList.contractNo" placeholder="自动获取,不可编辑" maxlength="100" disabled
|
|
@@ -140,8 +140,8 @@
|
|
weighingList.outType == '汽运' ||
|
|
weighingList.outType == '汽运' ||
|
|
weighingList.outType == '集装箱船'
|
|
weighingList.outType == '集装箱船'
|
|
">
|
|
">
|
|
- <ws-input v-if="!carstatus || carjudge" v-model="weighingList.carNo"
|
|
|
|
- placeholder="请输入车牌号" maxlength="7" size="small" />
|
|
|
|
|
|
+ <ws-input v-if="!carstatus || carjudge" v-model="weighingList.carNo" placeholder="请输入车牌号"
|
|
|
|
+ maxlength="7" size="small" />
|
|
<el-select v-else filterable clearable v-model="weighingList.carNo" placeholder="请选择车牌号"
|
|
<el-select v-else filterable clearable v-model="weighingList.carNo" placeholder="请选择车牌号"
|
|
class="typeselect" @change="carChange">
|
|
class="typeselect" @change="carChange">
|
|
<el-option v-for="item in options2" :key="item.constKey"
|
|
<el-option v-for="item in options2" :key="item.constKey"
|
|
@@ -153,38 +153,33 @@
|
|
weighingList.outType == '汽运' ||
|
|
weighingList.outType == '汽运' ||
|
|
weighingList.outType == '集装箱船'
|
|
weighingList.outType == '集装箱船'
|
|
">
|
|
">
|
|
- <ws-input v-model="weighingList.boxNo" placeholder="请输入箱号"
|
|
|
|
- maxlength="20" size="small" />
|
|
|
|
|
|
+ <ws-input v-model="weighingList.boxNo" placeholder="请输入箱号" maxlength="20" size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="封号-1" span="1" prop="titleNo" v-if="
|
|
<ws-form-item label="封号-1" span="1" prop="titleNo" v-if="
|
|
weighingList.outType == '汽运' ||
|
|
weighingList.outType == '汽运' ||
|
|
weighingList.outType == '集装箱船'
|
|
weighingList.outType == '集装箱船'
|
|
">
|
|
">
|
|
- <ws-input v-model="weighingList.titleNo" placeholder="请输入封号"
|
|
|
|
- maxlength="20" size="small" />
|
|
|
|
|
|
+ <ws-input v-model="weighingList.titleNo" placeholder="请输入封号" maxlength="20" size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="箱号-2" span="1" prop="boxNoOther" v-if="
|
|
<ws-form-item label="箱号-2" span="1" prop="boxNoOther" v-if="
|
|
weighingList.outType == '汽运' ||
|
|
weighingList.outType == '汽运' ||
|
|
weighingList.outType == '集装箱船'
|
|
weighingList.outType == '集装箱船'
|
|
">
|
|
">
|
|
- <ws-input v-model="weighingList.boxNoOther" placeholder="请输入箱号"
|
|
|
|
- maxlength="20" size="small" />
|
|
|
|
|
|
+ <ws-input v-model="weighingList.boxNoOther" placeholder="请输入箱号" maxlength="20" size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
-
|
|
|
|
|
|
+
|
|
<ws-form-item label="封号-2" span="1" prop="titleNoOther" v-if="
|
|
<ws-form-item label="封号-2" span="1" prop="titleNoOther" v-if="
|
|
weighingList.outType == '汽运' ||
|
|
weighingList.outType == '汽运' ||
|
|
weighingList.outType == '集装箱船'
|
|
weighingList.outType == '集装箱船'
|
|
">
|
|
">
|
|
- <ws-input v-model="weighingList.titleNoOther" placeholder="请输入封号"
|
|
|
|
- maxlength="20" size="small" />
|
|
|
|
|
|
+ <ws-input v-model="weighingList.titleNoOther" placeholder="请输入封号" maxlength="20" size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="车厢号-1" span="1" prop="wingNumber" v-if="weighingList.outType == '火运'">
|
|
<ws-form-item label="车厢号-1" span="1" prop="wingNumber" v-if="weighingList.outType == '火运'">
|
|
- <ws-input v-model="weighingList.wingNumber" placeholder="请输入车厢号"
|
|
|
|
- maxlength="20" size="small" />
|
|
|
|
|
|
+ <ws-input v-model="weighingList.wingNumber" placeholder="请输入车厢号" maxlength="20" size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="车厢号-2" span="1" prop="wingNumberOther" v-if="weighingList.outType == '火运'">
|
|
<ws-form-item label="车厢号-2" span="1" prop="wingNumberOther" v-if="weighingList.outType == '火运'">
|
|
- <ws-input v-model="weighingList.wingNumberOther" placeholder="请输入车厢号"
|
|
|
|
- maxlength="20" size="small" />
|
|
|
|
|
|
+ <ws-input v-model="weighingList.wingNumberOther" placeholder="请输入车厢号" maxlength="20"
|
|
|
|
+ size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="船名" span="1" prop="shipName" v-if="weighingList.outType == '散船'">
|
|
<ws-form-item label="船名" span="1" prop="shipName" v-if="weighingList.outType == '散船'">
|
|
<ws-input v-model="weighingList.shipName" placeholder="请输入船名" maxlength="20" size="small" />
|
|
<ws-input v-model="weighingList.shipName" placeholder="请输入船名" maxlength="20" size="small" />
|
|
@@ -262,8 +257,8 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<div class="list-info">
|
|
<div class="list-info">
|
|
- <div style="justify-content: space-between" class="flex">
|
|
|
|
- <div>
|
|
|
|
|
|
+ <div style="justify-content: space-between;" class="flex">
|
|
|
|
+ <div style="min-width:146px;">
|
|
<el-button v-if="tpyeNo == 1" @click="add" type="primary">新增</el-button>
|
|
<el-button v-if="tpyeNo == 1" @click="add" type="primary">新增</el-button>
|
|
<el-button v-if="tpyeNo == 1" @click="deletelist" type="danger">删除</el-button>
|
|
<el-button v-if="tpyeNo == 1" @click="deletelist" type="danger">删除</el-button>
|
|
<el-button v-if="tpyeNo == 2" @click="statustypechangelist(3)"
|
|
<el-button v-if="tpyeNo == 2" @click="statustypechangelist(3)"
|
|
@@ -295,12 +290,10 @@
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
- <el-dialog width="70%" class="title_css" center :visible.sync="isShowPrint" title="出库检斤单" @opened="opendBtn"
|
|
|
|
- @close="closeDialog" :close-on-click-modal="false">
|
|
|
|
|
|
+ <!-- @opened="opendBtn" -->
|
|
|
|
+ <el-dialog width="70%" class="title_css" center :visible.sync="isShowPrint" title="出库检斤单" @close="closeDialog"
|
|
|
|
+ :close-on-click-modal="false">
|
|
<weightCheckPrint :tableData="inspect" ref="saveImg"></weightCheckPrint>
|
|
<weightCheckPrint :tableData="inspect" ref="saveImg"></weightCheckPrint>
|
|
<div style="text-align: center">
|
|
<div style="text-align: center">
|
|
<el-button type="primary" @click="closePrint">关闭</el-button>
|
|
<el-button type="primary" @click="closePrint">关闭</el-button>
|
|
@@ -321,6 +314,7 @@
|
|
getweighingList,
|
|
getweighingList,
|
|
selectWarehouseSelf,
|
|
selectWarehouseSelf,
|
|
delelteWeighing,
|
|
delelteWeighing,
|
|
|
|
+ newSubmit
|
|
} from '@/model/outboundManagement/index'
|
|
} from '@/model/outboundManagement/index'
|
|
import {
|
|
import {
|
|
pullDown,
|
|
pullDown,
|
|
@@ -366,7 +360,11 @@
|
|
monitorUrl2: '',
|
|
monitorUrl2: '',
|
|
index: 0,
|
|
index: 0,
|
|
inspect: {},
|
|
inspect: {},
|
|
- stocks:[{warehouseName:'',weight:'',cost:''}],
|
|
|
|
|
|
+ stocks: [{
|
|
|
|
+ warehouseName: '',
|
|
|
|
+ weight: '',
|
|
|
|
+ cost: ''
|
|
|
|
+ }],
|
|
id: 0,
|
|
id: 0,
|
|
options2: [],
|
|
options2: [],
|
|
isSelectType: false,
|
|
isSelectType: false,
|
|
@@ -464,11 +462,14 @@
|
|
},
|
|
},
|
|
activated() {},
|
|
activated() {},
|
|
methods: {
|
|
methods: {
|
|
- addstocks(index){
|
|
|
|
- this.stocks.push({warehouseName:'',cost:''})
|
|
|
|
|
|
+ addstocks(index) {
|
|
|
|
+ this.stocks.push({
|
|
|
|
+ warehouseName: '',
|
|
|
|
+ cost: ''
|
|
|
|
+ })
|
|
},
|
|
},
|
|
- delstocks(index){
|
|
|
|
- this.stocks.splice(index,1)
|
|
|
|
|
|
+ delstocks(index) {
|
|
|
|
+ this.stocks.splice(index, 1)
|
|
},
|
|
},
|
|
refreshClick(type) {
|
|
refreshClick(type) {
|
|
let that = this
|
|
let that = this
|
|
@@ -481,7 +482,7 @@
|
|
warehouseName: that.warehouseName,
|
|
warehouseName: that.warehouseName,
|
|
managementType: 3,
|
|
managementType: 3,
|
|
statusType: that.statusType,
|
|
statusType: that.statusType,
|
|
- // loadingstatus: 1,
|
|
|
|
|
|
+ // loadingstatus: 1,
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -522,7 +523,7 @@
|
|
warehouseName: that.warehouseName,
|
|
warehouseName: that.warehouseName,
|
|
managementType: 3,
|
|
managementType: 3,
|
|
statusType: that.statusType,
|
|
statusType: that.statusType,
|
|
- loadingstatus: 1,
|
|
|
|
|
|
+ loadingstatus: 1,
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -976,12 +977,12 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (!this.weighingList.binNumber) {
|
|
if (!this.weighingList.binNumber) {
|
|
- this.$message({
|
|
|
|
- message: '仓位号不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '仓位号不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (this.tpyeNo == 1) {
|
|
if (this.tpyeNo == 1) {
|
|
if (!this.weighingList.tare) {
|
|
if (!this.weighingList.tare) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -1048,17 +1049,16 @@
|
|
.then(() => {
|
|
.then(() => {
|
|
this.weighingList.inOutFlag = 1
|
|
this.weighingList.inOutFlag = 1
|
|
this.weighingList.statusFlag = 3
|
|
this.weighingList.statusFlag = 3
|
|
- if (this.weighingList.grossWeight) {
|
|
|
|
- this.weighingList.grossWeight = this.weighingList.grossWeight / 1000
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (this.weighingList.netWeight) {
|
|
|
|
- this.weighingList.netWeight = this.weighingList.netWeight / 1000
|
|
|
|
- }
|
|
|
|
- this.weighingList.tare = this.weighingList.tare / 1000
|
|
|
|
- if (this.weighingList.buckleMiscellaneous) {
|
|
|
|
- this.weighingList.buckleMiscellaneous = this.weighingList.buckleMiscellaneous / 1000
|
|
|
|
- }
|
|
|
|
|
|
+ // if (this.weighingList.grossWeight) {
|
|
|
|
+ // this.weighingList.grossWeight = this.weighingList.grossWeight / 1000
|
|
|
|
+ // }
|
|
|
|
+ // if (this.weighingList.netWeight) {
|
|
|
|
+ // this.weighingList.netWeight = this.weighingList.netWeight / 1000
|
|
|
|
+ // }
|
|
|
|
+ // this.weighingList.tare = this.weighingList.tare / 1000
|
|
|
|
+ // if (this.weighingList.buckleMiscellaneous) {
|
|
|
|
+ // this.weighingList.buckleMiscellaneous = this.weighingList.buckleMiscellaneous / 1000
|
|
|
|
+ // }
|
|
if (this.tpyeNo == 1) {
|
|
if (this.tpyeNo == 1) {
|
|
// this.weighingList.serviceManagementType=2
|
|
// this.weighingList.serviceManagementType=2
|
|
this.weighingList.statusFlag = 1
|
|
this.weighingList.statusFlag = 1
|
|
@@ -1067,106 +1067,88 @@
|
|
this.weighingList.baseId = this.warehouseId
|
|
this.weighingList.baseId = this.warehouseId
|
|
this.weighingList.skinInspector =
|
|
this.weighingList.skinInspector =
|
|
localStorage.getItem('ws-pf_staffName')
|
|
localStorage.getItem('ws-pf_staffName')
|
|
- if (this.weighingList.id) {
|
|
|
|
- var weighingList1 = JSON.parse(JSON.stringify(this.weighingList))//为了解除双向绑定问题,不影响this.weighingList的数据
|
|
|
|
|
|
+ if (this.weighingList.id) { //修改皮重
|
|
|
|
+ var weighingList1 = JSON.parse(JSON.stringify(this.weighingList)) //为了解除双向绑定问题,不影响this.weighingList的数据
|
|
weighingList1.id = this.weighingList.warehouseInOutId
|
|
weighingList1.id = this.weighingList.warehouseInOutId
|
|
weighingList1.warehouseInOutDetail.id = this.weighingList.inOutDetailId
|
|
weighingList1.warehouseInOutDetail.id = this.weighingList.inOutDetailId
|
|
- addstorageputList(weighingList1)
|
|
|
|
|
|
+ weighingList1.weighingManagement = this.weighingList
|
|
|
|
+ if (weighingList1.tare) {//为了解决出入库与检斤单位不一致(出入库单位吨,检斤公斤)
|
|
|
|
+ weighingList1.tare = weighingList1.tare / 1000
|
|
|
|
+ }
|
|
|
|
+ if (weighingList1.netWeight) {
|
|
|
|
+ weighingList1.netWeight = weighingList1.netWeight / 1000
|
|
|
|
+ }
|
|
|
|
+ newSubmit(weighingList1)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
- this.weighingList.tare = this.weighingList.tare * 1000
|
|
|
|
- this.weighingList.warehouseInOutId = response
|
|
|
|
- tareEdit(this.weighingList)
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- getweighing({
|
|
|
|
- id: this.weighingList.id
|
|
|
|
- })
|
|
|
|
- .toPromise().then((response) => {
|
|
|
|
- if (this.reader) {
|
|
|
|
- this.reader.cancel()
|
|
|
|
- }
|
|
|
|
- this.$notify({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '提交成功',
|
|
|
|
- type: 'success',
|
|
|
|
- })
|
|
|
|
- this.getList()
|
|
|
|
- this.weighingList = response
|
|
|
|
- this.warehouseCount = Number(this.warehouseCount) + 1
|
|
|
|
- this.warehouseCount1 = Number(this.warehouseCount1) + 1
|
|
|
|
- this.inspect = JSON.parse(
|
|
|
|
- JSON.stringify(this.weighingLis)
|
|
|
|
- )
|
|
|
|
- this.isShowPrint = true
|
|
|
|
- this.weighingList = {
|
|
|
|
- grossWeight: 0,
|
|
|
|
- tare: 0,
|
|
|
|
- tips: '',
|
|
|
|
- // contractNo:'',
|
|
|
|
- // inOutTaskNo:'',
|
|
|
|
- buckleMiscellaneous: 0,
|
|
|
|
- netWeight: 0,
|
|
|
|
- receivableWeighingFee: '',
|
|
|
|
- warehouseInOutDetail: {
|
|
|
|
- grade: '',
|
|
|
|
- imperfectGrain: '',
|
|
|
|
- impurity: '',
|
|
|
|
- jiaorenli: '',
|
|
|
|
- bulkDensity: '',
|
|
|
|
- mildewGrain: '',
|
|
|
|
- },
|
|
|
|
- qualityInspectionManagement: {
|
|
|
|
- boxNo: '暂无',
|
|
|
|
- boxNoOther: '暂无',
|
|
|
|
- titleNo: '暂无',
|
|
|
|
- titleNoOther: '暂无',
|
|
|
|
- },
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ getweighing({
|
|
|
|
+ id: this.weighingList.id
|
|
|
|
+ })
|
|
|
|
+ .toPromise().then((response) => {
|
|
|
|
+ if (this.reader) {
|
|
|
|
+ this.reader.cancel()
|
|
|
|
+ }
|
|
|
|
+ this.$notify({
|
|
|
|
+ title: '成功',
|
|
|
|
+ message: '提交成功',
|
|
|
|
+ type: 'success',
|
|
|
|
+ })
|
|
|
|
+ this.getList()
|
|
|
|
+ this.weighingList = response
|
|
|
|
+ // this.warehouseCount = Number(this.warehouseCount) + 1
|
|
|
|
+ // this.warehouseCount1 = Number(this.warehouseCount1) + 1
|
|
|
|
+ this.inspect = JSON.parse(
|
|
|
|
+ JSON.stringify(this.weighingList)
|
|
|
|
+ )
|
|
|
|
+ this.isShowPrint = true
|
|
|
|
+ this.weighingList = {
|
|
|
|
+ grossWeight: 0,
|
|
|
|
+ tare: 0,
|
|
|
|
+ tips: '',
|
|
|
|
+ // contractNo:'',
|
|
|
|
+ // inOutTaskNo:'',
|
|
|
|
+ buckleMiscellaneous: 0,
|
|
|
|
+ netWeight: 0,
|
|
|
|
+ receivableWeighingFee: '',
|
|
|
|
+ warehouseInOutDetail: {
|
|
|
|
+ grade: '',
|
|
|
|
+ imperfectGrain: '',
|
|
|
|
+ impurity: '',
|
|
|
|
+ jiaorenli: '',
|
|
|
|
+ bulkDensity: '',
|
|
|
|
+ mildewGrain: '',
|
|
|
|
+ },
|
|
|
|
+ qualityInspectionManagement: {
|
|
|
|
+ boxNo: '暂无',
|
|
|
|
+ boxNoOther: '暂无',
|
|
|
|
+ titleNo: '暂无',
|
|
|
|
+ titleNoOther: '暂无',
|
|
|
|
+ },
|
|
|
|
+ }
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- .catch((response) => {
|
|
|
|
- this.$notify.warning(response)
|
|
|
|
- if (this.weighingList.grossWeight) {
|
|
|
|
- this.weighingList.grossWeight = this.weighingList.grossWeight * 1000
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (this.weighingList.netWeight) {
|
|
|
|
- this.weighingList.netWeight = this.weighingList.netWeight * 1000
|
|
|
|
- }
|
|
|
|
- this.weighingList.tare = this.weighingList.tare * 1000
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
|
|
+ } else { //新增皮检信息
|
|
this.weighingList.relationId = this.relationId
|
|
this.weighingList.relationId = this.relationId
|
|
this.weighingList.warehouseId = this.warehouseId
|
|
this.weighingList.warehouseId = this.warehouseId
|
|
this.weighingList.baseId = this.warehouseId
|
|
this.weighingList.baseId = this.warehouseId
|
|
- var weighingList1 = JSON.parse(JSON.stringify(this.weighingList))//为了解除双向绑定问题,不影响this.weighingList的数据
|
|
|
|
|
|
+ this.weighingList.warehouseNo = this.warehouseNo
|
|
|
|
+ var weighingList1 = JSON.parse(JSON.stringify(this.weighingList)) //为了解除双向绑定问题,不影响this.weighingList的数据
|
|
weighingList1.id = this.weighingList.warehouseInOutId
|
|
weighingList1.id = this.weighingList.warehouseInOutId
|
|
weighingList1.warehouseInOutDetail.id = this.weighingList.inOutDetailId
|
|
weighingList1.warehouseInOutDetail.id = this.weighingList.inOutDetailId
|
|
- console.log(weighingList1)
|
|
|
|
- addstorageputList(weighingList1)
|
|
|
|
|
|
+ weighingList1.weighingManagement = this.weighingList
|
|
|
|
+ if (weighingList1.tare) {//为了解决出入库与检斤单位不一致(出入库单位吨,检斤公斤)
|
|
|
|
+ weighingList1.tare = weighingList1.tare / 1000
|
|
|
|
+ }
|
|
|
|
+ if (weighingList1.netWeight) {
|
|
|
|
+ weighingList1.netWeight = weighingList1.netWeight / 1000
|
|
|
|
+ }
|
|
|
|
+ newSubmit(weighingList1)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
- this.weighingList.tare = this.weighingList.tare * 1000
|
|
|
|
- this.weighingList.warehouseInOutId = response
|
|
|
|
- tareAdd(this.weighingList)
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- getweighing({
|
|
|
|
- id: response
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.weighingList = response
|
|
|
|
- this.warehouseCount = Number(this.warehouseCount) + 1
|
|
|
|
- this.warehouseCount1 = Number(this.warehouseCount1) + 1
|
|
|
|
- this.inspect = JSON.parse(
|
|
|
|
- JSON.stringify(this.weighingList)
|
|
|
|
- )
|
|
|
|
- this.isShowPrint = true
|
|
|
|
- })
|
|
|
|
-
|
|
|
|
|
|
+ getweighing({
|
|
|
|
+ id: response
|
|
|
|
+ })
|
|
|
|
+ .toPromise().then((response) => {
|
|
if (this.reader) {
|
|
if (this.reader) {
|
|
this.reader.cancel()
|
|
this.reader.cancel()
|
|
}
|
|
}
|
|
@@ -1176,6 +1158,13 @@
|
|
type: 'success',
|
|
type: 'success',
|
|
})
|
|
})
|
|
this.getList()
|
|
this.getList()
|
|
|
|
+ this.weighingList = response
|
|
|
|
+ // this.warehouseCount = Number(this.warehouseCount) + 1
|
|
|
|
+ // this.warehouseCount1 = Number(this.warehouseCount1) + 1
|
|
|
|
+ this.inspect = JSON.parse(
|
|
|
|
+ JSON.stringify(this.weighingList)
|
|
|
|
+ )
|
|
|
|
+ this.isShowPrint = true
|
|
this.weighingList = {
|
|
this.weighingList = {
|
|
grossWeight: 0,
|
|
grossWeight: 0,
|
|
tare: 0,
|
|
tare: 0,
|
|
@@ -1200,125 +1189,152 @@
|
|
titleNoOther: '暂无',
|
|
titleNoOther: '暂无',
|
|
},
|
|
},
|
|
}
|
|
}
|
|
- // if (this.reader) {
|
|
|
|
- // this.reader.cancel()
|
|
|
|
- // }
|
|
|
|
- // this.$notify.success({
|
|
|
|
- // title: '成功',
|
|
|
|
- // message: '提交成功',
|
|
|
|
- // })
|
|
|
|
- // this.isShowPrint=true
|
|
|
|
- // this.weighingList.grossWeight=this.weighingList.grossWeight*1000
|
|
|
|
- // this.weighingList.tare=this.weighingList.tare*1000
|
|
|
|
- // this.weighingList.netWeight=this.weighingList.netWeight*1000
|
|
|
|
- // this.weighingList.buckleMiscellaneous=this.weighingList.buckleMiscellaneous*1000
|
|
|
|
- // this.inspect=JSON.parse(JSON.stringify(this.weighingList))
|
|
|
|
- // this.weighingList= {
|
|
|
|
- // grossWeight: 0,
|
|
|
|
- // tare: 0,
|
|
|
|
- // tips:'',
|
|
|
|
- // // contractNo:'',
|
|
|
|
- // // inOutTaskNo:'',
|
|
|
|
- // buckleMiscellaneous: 0,
|
|
|
|
- // netWeight: 0,
|
|
|
|
- // receivableWeighingFee: '',
|
|
|
|
- // warehouseInOutDetail: {
|
|
|
|
- // grade:'',
|
|
|
|
- // imperfectGrain:'',
|
|
|
|
- // impurity:'',
|
|
|
|
- // jiaorenli:'',
|
|
|
|
- // bulkDensity:'',
|
|
|
|
- // mildewGrain:'',
|
|
|
|
- // },
|
|
|
|
- // qualityInspectionManagement: {
|
|
|
|
- // boxNo: "暂无",
|
|
|
|
- // boxNoOther: "暂无",
|
|
|
|
- // titleNo: "暂无",
|
|
|
|
- // titleNoOther: "暂无",
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- .catch((response) => {})
|
|
|
|
}
|
|
}
|
|
} else if (this.tpyeNo == 2) {
|
|
} else if (this.tpyeNo == 2) {
|
|
this.weighingList.secretaryWeigher =
|
|
this.weighingList.secretaryWeigher =
|
|
localStorage.getItem('ws-pf_staffName')
|
|
localStorage.getItem('ws-pf_staffName')
|
|
this.weighingList.warehouseId = this.warehouseId
|
|
this.weighingList.warehouseId = this.warehouseId
|
|
this.weighingList.baseId = this.warehouseId
|
|
this.weighingList.baseId = this.warehouseId
|
|
- var weighingList1 = JSON.parse(JSON.stringify(this.weighingList))//为了解除双向绑定问题,不影响this.weighingList的数据
|
|
|
|
|
|
+ var weighingList1 = JSON.parse(JSON.stringify(this.weighingList)) //为了解除双向绑定问题,不影响this.weighingList的数据
|
|
weighingList1.id = this.weighingList.warehouseInOutId
|
|
weighingList1.id = this.weighingList.warehouseInOutId
|
|
weighingList1.warehouseInOutDetail.id = this.weighingList.inOutDetailId
|
|
weighingList1.warehouseInOutDetail.id = this.weighingList.inOutDetailId
|
|
- console.log(weighingList1)
|
|
|
|
- addstorageputList(weighingList1)
|
|
|
|
|
|
+ weighingList1.weighingManagement = this.weighingList
|
|
|
|
+ if (weighingList1.grossWeight) {//为了解决出入库与检斤单位不一致(出入库单位吨,检斤公斤)
|
|
|
|
+ weighingList1.grossWeight = weighingList1.grossWeight / 1000
|
|
|
|
+ }
|
|
|
|
+ if (weighingList1.netWeight) {
|
|
|
|
+ weighingList1.netWeight = weighingList1.netWeight / 1000
|
|
|
|
+ }
|
|
|
|
+ if (weighingList1.tare) {
|
|
|
|
+ weighingList1.tare = weighingList1.tare / 1000
|
|
|
|
+ }
|
|
|
|
+ newSubmit(weighingList1)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
- this.weighingList.grossWeight =
|
|
|
|
- this.weighingList.grossWeight * 1000
|
|
|
|
- this.weighingList.tare = this.weighingList.tare * 1000
|
|
|
|
- this.weighingList.netWeight =
|
|
|
|
- this.weighingList.netWeight * 1000
|
|
|
|
- this.weighingList.buckleMiscellaneous =
|
|
|
|
- this.weighingList.buckleMiscellaneous * 1000
|
|
|
|
- this.weighingList.warehouseInOutId = response
|
|
|
|
- grossWeight(this.weighingList)
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- getweighing({
|
|
|
|
- id: response
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.weighingList = response
|
|
|
|
- this.inspect = JSON.parse(
|
|
|
|
- JSON.stringify(this.weighingList)
|
|
|
|
- )
|
|
|
|
- this.isShowPrint = true
|
|
|
|
- })
|
|
|
|
- if (this.reader) {
|
|
|
|
- this.reader.cancel()
|
|
|
|
- }
|
|
|
|
- // this.$notify.success({
|
|
|
|
- // title: '成功',
|
|
|
|
- // message: '提交成功',
|
|
|
|
- // })
|
|
|
|
- this.$notify({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '提交成功',
|
|
|
|
- type: 'success',
|
|
|
|
- })
|
|
|
|
- this.inspect = JSON.parse(JSON.stringify(this.weighingList))
|
|
|
|
-
|
|
|
|
|
|
+ getweighing({
|
|
|
|
+ id: response
|
|
|
|
+ })
|
|
|
|
+ .toPromise().then((response) => {
|
|
|
|
+ this.weighingList = response
|
|
|
|
+ this.inspect = JSON.parse(
|
|
|
|
+ JSON.stringify(this.weighingList)
|
|
|
|
+ )
|
|
this.isShowPrint = true
|
|
this.isShowPrint = true
|
|
- this.weighingList = {
|
|
|
|
- grossWeight: 0,
|
|
|
|
- selfLoading: 0,
|
|
|
|
- tare: 0,
|
|
|
|
- tips: '',
|
|
|
|
- // contractNo:'',
|
|
|
|
- // inOutTaskNo:'',
|
|
|
|
- buckleMiscellaneous: 0,
|
|
|
|
- netWeight: 0,
|
|
|
|
- receivableWeighingFee: '',
|
|
|
|
- warehouseInOutDetail: {
|
|
|
|
- grade: '',
|
|
|
|
- imperfectGrain: '',
|
|
|
|
- impurity: '',
|
|
|
|
- jiaorenli: '',
|
|
|
|
- bulkDensity: '',
|
|
|
|
- mildewGrain: '',
|
|
|
|
- },
|
|
|
|
- qualityInspectionManagement: {
|
|
|
|
- boxNo: '暂无',
|
|
|
|
- boxNoOther: '暂无',
|
|
|
|
- titleNo: '暂无',
|
|
|
|
- titleNoOther: '暂无',
|
|
|
|
- },
|
|
|
|
- }
|
|
|
|
- this.getList()
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
|
|
+ if (this.reader) {
|
|
|
|
+ this.reader.cancel()
|
|
|
|
+ }
|
|
|
|
+ // this.$notify.success({
|
|
|
|
+ // title: '成功',
|
|
|
|
+ // message: '提交成功',
|
|
|
|
+ // })
|
|
|
|
+ this.$notify({
|
|
|
|
+ title: '成功',
|
|
|
|
+ message: '提交成功',
|
|
|
|
+ type: 'success',
|
|
|
|
+ })
|
|
|
|
+ this.inspect = JSON.parse(JSON.stringify(this.weighingList))
|
|
|
|
+
|
|
|
|
+ this.isShowPrint = true
|
|
|
|
+ this.weighingList = {
|
|
|
|
+ grossWeight: 0,
|
|
|
|
+ selfLoading: 0,
|
|
|
|
+ tare: 0,
|
|
|
|
+ tips: '',
|
|
|
|
+ // contractNo:'',
|
|
|
|
+ // inOutTaskNo:'',
|
|
|
|
+ buckleMiscellaneous: 0,
|
|
|
|
+ netWeight: 0,
|
|
|
|
+ receivableWeighingFee: '',
|
|
|
|
+ warehouseInOutDetail: {
|
|
|
|
+ grade: '',
|
|
|
|
+ imperfectGrain: '',
|
|
|
|
+ impurity: '',
|
|
|
|
+ jiaorenli: '',
|
|
|
|
+ bulkDensity: '',
|
|
|
|
+ mildewGrain: '',
|
|
|
|
+ },
|
|
|
|
+ qualityInspectionManagement: {
|
|
|
|
+ boxNo: '暂无',
|
|
|
|
+ boxNoOther: '暂无',
|
|
|
|
+ titleNo: '暂无',
|
|
|
|
+ titleNoOther: '暂无',
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+ this.getList()
|
|
})
|
|
})
|
|
- .catch((response) => {})
|
|
|
|
|
|
+ // addstorageputList(weighingList1)
|
|
|
|
+ // .toPromise()
|
|
|
|
+ // .then((response) => {
|
|
|
|
+ // this.weighingList.grossWeight =
|
|
|
|
+ // this.weighingList.grossWeight * 1000
|
|
|
|
+ // this.weighingList.tare = this.weighingList.tare * 1000
|
|
|
|
+ // this.weighingList.netWeight =
|
|
|
|
+ // this.weighingList.netWeight * 1000
|
|
|
|
+ // this.weighingList.buckleMiscellaneous =
|
|
|
|
+ // this.weighingList.buckleMiscellaneous * 1000
|
|
|
|
+ // this.weighingList.warehouseInOutId = response
|
|
|
|
+ // grossWeight(this.weighingList)
|
|
|
|
+ // .toPromise()
|
|
|
|
+ // .then((response) => {
|
|
|
|
+ // getweighing({
|
|
|
|
+ // id: response
|
|
|
|
+ // })
|
|
|
|
+ // .toPromise()
|
|
|
|
+ // .then((response) => {
|
|
|
|
+ // this.weighingList = response
|
|
|
|
+ // this.inspect = JSON.parse(
|
|
|
|
+ // JSON.stringify(this.weighingList)
|
|
|
|
+ // )
|
|
|
|
+ // this.isShowPrint = true
|
|
|
|
+ // })
|
|
|
|
+ // if (this.reader) {
|
|
|
|
+ // this.reader.cancel()
|
|
|
|
+ // }
|
|
|
|
+ // // this.$notify.success({
|
|
|
|
+ // // title: '成功',
|
|
|
|
+ // // message: '提交成功',
|
|
|
|
+ // // })
|
|
|
|
+ // this.$notify({
|
|
|
|
+ // title: '成功',
|
|
|
|
+ // message: '提交成功',
|
|
|
|
+ // type: 'success',
|
|
|
|
+ // })
|
|
|
|
+ // this.inspect = JSON.parse(JSON.stringify(this.weighingList))
|
|
|
|
+
|
|
|
|
+ // this.isShowPrint = true
|
|
|
|
+ // this.weighingList = {
|
|
|
|
+ // grossWeight: 0,
|
|
|
|
+ // selfLoading: 0,
|
|
|
|
+ // tare: 0,
|
|
|
|
+ // tips: '',
|
|
|
|
+ // // contractNo:'',
|
|
|
|
+ // // inOutTaskNo:'',
|
|
|
|
+ // buckleMiscellaneous: 0,
|
|
|
|
+ // netWeight: 0,
|
|
|
|
+ // receivableWeighingFee: '',
|
|
|
|
+ // warehouseInOutDetail: {
|
|
|
|
+ // grade: '',
|
|
|
|
+ // imperfectGrain: '',
|
|
|
|
+ // impurity: '',
|
|
|
|
+ // jiaorenli: '',
|
|
|
|
+ // bulkDensity: '',
|
|
|
|
+ // mildewGrain: '',
|
|
|
|
+ // },
|
|
|
|
+ // qualityInspectionManagement: {
|
|
|
|
+ // boxNo: '暂无',
|
|
|
|
+ // boxNoOther: '暂无',
|
|
|
|
+ // titleNo: '暂无',
|
|
|
|
+ // titleNoOther: '暂无',
|
|
|
|
+ // },
|
|
|
|
+ // }
|
|
|
|
+ // this.getList()
|
|
|
|
+ // })
|
|
|
|
+ // })
|
|
|
|
+ // .catch((response) => {})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
@@ -1609,10 +1625,10 @@
|
|
for (let i = 0; i < this.taskNolist.length; i++) {
|
|
for (let i = 0; i < this.taskNolist.length; i++) {
|
|
if (this.taskNolist[i].inOutTaskNo == e) {
|
|
if (this.taskNolist[i].inOutTaskNo == e) {
|
|
// this.weighingList.number = this.taskNolist[i].inOutTaskNo
|
|
// this.weighingList.number = this.taskNolist[i].inOutTaskNo
|
|
- this.warehouseCount = '000' + (Number(this.warehouseCount) + 1)
|
|
|
|
- this.weighingList.number = 'XSCK' + this.getTime() + this.warehouseNo + this.warehouseCount.substring(this.warehouseCount.length - 4)
|
|
|
|
- this.weighingList.goodsName = this.taskNolist[i].goodsName
|
|
|
|
- this.weighingList.tips = this.taskNolist[i].businessDescribe
|
|
|
|
|
|
+ // this.warehouseCount = '000' + (Number(this.warehouseCount) + 1)
|
|
|
|
+ this.weighingList.numberLetter = 'XSCK'
|
|
|
|
+ this.weighingList.goodsName = this.taskNolist[i].goodsName
|
|
|
|
+ this.weighingList.tips = this.taskNolist[i].businessDescribe
|
|
var data = this.taskNolist[i]
|
|
var data = this.taskNolist[i]
|
|
if (this.taskNolist[i].contractNo) {
|
|
if (this.taskNolist[i].contractNo) {
|
|
// console.log(this.taskNolist[i])
|
|
// console.log(this.taskNolist[i])
|
|
@@ -1636,7 +1652,7 @@
|
|
this.weighingList.inOutType = this.outContractNo[i].inOutType
|
|
this.weighingList.inOutType = this.outContractNo[i].inOutType
|
|
if (this.outContractNo[i].inOutType == '销售出库') {
|
|
if (this.outContractNo[i].inOutType == '销售出库') {
|
|
this.warehouseCount = '000' + (Number(this.warehouseCount) + 1)
|
|
this.warehouseCount = '000' + (Number(this.warehouseCount) + 1)
|
|
- this.weighingList.number = 'XSCK' + this.getTime() + this.warehouseNo + this.warehouseCount.substring(this.warehouseCount.length - 4)
|
|
|
|
|
|
+ this.weighingList.numberLetter = 'XSCK'
|
|
this.weighingList.buyer = this.outContractNo[i].buyer
|
|
this.weighingList.buyer = this.outContractNo[i].buyer
|
|
this.weighingList.seller = localStorage.getItem('ws-pf_compName')
|
|
this.weighingList.seller = localStorage.getItem('ws-pf_compName')
|
|
if (!this.outContractNo[i].unitContractPrice) {
|
|
if (!this.outContractNo[i].unitContractPrice) {
|
|
@@ -1652,18 +1668,14 @@
|
|
this.weighingList.inOutTypeKey = 1
|
|
this.weighingList.inOutTypeKey = 1
|
|
} else if (this.outContractNo[i].inOutType == '移库出库') {
|
|
} else if (this.outContractNo[i].inOutType == '移库出库') {
|
|
this.warehouseCount = '000' + (Number(this.warehouseCount) + 1)
|
|
this.warehouseCount = '000' + (Number(this.warehouseCount) + 1)
|
|
- this.weighingList.number =
|
|
|
|
- 'YKCK' +
|
|
|
|
- this.getTime() +
|
|
|
|
- this.warehouseNo +
|
|
|
|
- this.warehouseCount.substring(this.warehouseCount.length - 4)
|
|
|
|
|
|
+ this.weighingList.numberLetter = 'YKCK'
|
|
|
|
+
|
|
this.weighingList.buyer = this.outContractNo[i].receiveWarehouse
|
|
this.weighingList.buyer = this.outContractNo[i].receiveWarehouse
|
|
this.weighingList.seller = this.outContractNo[i].sendWarehouse
|
|
this.weighingList.seller = this.outContractNo[i].sendWarehouse
|
|
this.weighingList.goodsName = data.goodsName
|
|
this.weighingList.goodsName = data.goodsName
|
|
this.weighingList.goodsNameKey = data.goodsNameKey
|
|
this.weighingList.goodsNameKey = data.goodsNameKey
|
|
this.weighingList.grade = data.grade
|
|
this.weighingList.grade = data.grade
|
|
if (this.outContractNo[i].unitContractPrice) {
|
|
if (this.outContractNo[i].unitContractPrice) {
|
|
-
|
|
|
|
this.weighingList.tips =
|
|
this.weighingList.tips =
|
|
'入货库' +
|
|
'入货库' +
|
|
data.receiveWarehouse +
|
|
data.receiveWarehouse +
|
|
@@ -1775,7 +1787,7 @@
|
|
.then((response) => {
|
|
.then((response) => {
|
|
this.outContractNo = response
|
|
this.outContractNo = response
|
|
})
|
|
})
|
|
- // this.refreshClick(1)
|
|
|
|
|
|
+ // this.refreshClick(1)
|
|
getweighingList({
|
|
getweighingList({
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
@@ -1960,23 +1972,30 @@
|
|
text-align: center;
|
|
text-align: center;
|
|
margin: 20px auto;
|
|
margin: 20px auto;
|
|
}
|
|
}
|
|
-.stocks{
|
|
|
|
- position: relative;
|
|
|
|
- /deep/.el-select>.el-input {
|
|
|
|
- display: inline-block;
|
|
|
|
-}
|
|
|
|
-/deep/>.el-input{
|
|
|
|
- width:33.3333%;
|
|
|
|
-}
|
|
|
|
-.add,.del{
|
|
|
|
- position:absolute;
|
|
|
|
- right:-16px;
|
|
|
|
- transform: translateY(20%);
|
|
|
|
-}
|
|
|
|
-.del{
|
|
|
|
- right:-40px;
|
|
|
|
-}
|
|
|
|
-}
|
|
|
|
|
|
+
|
|
|
|
+ .stocks {
|
|
|
|
+ position: relative;
|
|
|
|
+
|
|
|
|
+ /deep/.el-select>.el-input {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /deep/>.el-input {
|
|
|
|
+ width: 33.3333%;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .add,
|
|
|
|
+ .del {
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: -16px;
|
|
|
|
+ transform: translateY(20%);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .del {
|
|
|
|
+ right: -40px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
.butCss {
|
|
.butCss {
|
|
opacity: 0;
|
|
opacity: 0;
|
|
color: #000;
|
|
color: #000;
|
|
@@ -2004,7 +2023,7 @@
|
|
text-align: right;
|
|
text-align: right;
|
|
padding: 0 10px 0 20px;
|
|
padding: 0 10px 0 20px;
|
|
border-radius: 10px;
|
|
border-radius: 10px;
|
|
- margin: 0 20px 20px 20px;
|
|
|
|
|
|
+ margin: 0 20px 20px 21px;
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 140px;
|
|
top: 140px;
|
|
width: 465px;
|
|
width: 465px;
|
|
@@ -2079,4 +2098,4 @@
|
|
/deep/.title_css .el-dialog__header {
|
|
/deep/.title_css .el-dialog__header {
|
|
text-align: center !important;
|
|
text-align: center !important;
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|