|
@@ -326,20 +326,58 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
+ <el-tab-pane label="副产品或焦炭超重允许出厂" name="seventh">
|
|
|
+ <div class="admin2">
|
|
|
+ <div class="carrier from">
|
|
|
+ <el-form
|
|
|
+ :inline="true"
|
|
|
+ class="demo-form-inline"
|
|
|
+ label-width="80px"
|
|
|
+ >
|
|
|
+ <el-form-item label="车牌号:">
|
|
|
+ <el-autocomplete
|
|
|
+ class="inline-input"
|
|
|
+ v-model="capacityName"
|
|
|
+ :fetch-suggestions="querySearchCapacity"
|
|
|
+ placeholder="车牌号"
|
|
|
+ :trigger-on-focus="false"
|
|
|
+ @select="handleSelectCapacity"
|
|
|
+ >
|
|
|
+ <template slot-scope="{ item }">
|
|
|
+ <div class="name">{{ item.capacityNumber }}</div>
|
|
|
+ </template>
|
|
|
+ </el-autocomplete>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <div class="poundNo from">
|
|
|
+ <span class="text">运输订单号:</span>
|
|
|
+ <el-input v-model="orderNumber" disabled></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="button_box">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="updateCanwork"
|
|
|
+ :disabled="disabled"
|
|
|
+ >确认</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
|
</template>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { toDateString, toDateNo } from "../app.js";
|
|
|
+import { toDateString, toDateNo } from '../app.js'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
orderNumber: null,
|
|
|
first: true,
|
|
|
second: true,
|
|
|
- activeName: "first",
|
|
|
+ activeName: 'first',
|
|
|
capacityName: null,
|
|
|
stateCapacity: null,
|
|
|
materialList: [],
|
|
@@ -364,127 +402,130 @@ export default {
|
|
|
gatePostList: [],
|
|
|
enFactoryGatepost: null,
|
|
|
gatePostId: null
|
|
|
- };
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
- this.value1 = new Date();
|
|
|
- this.value2 = new Date();
|
|
|
+ this.value1 = new Date()
|
|
|
+ this.value2 = new Date()
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.information();
|
|
|
+ this.information()
|
|
|
},
|
|
|
methods: {
|
|
|
+ updateCanwork() {
|
|
|
+ console.log(this.capacityName)
|
|
|
+ },
|
|
|
onchangeGatepost(value) {
|
|
|
- console.log(value);
|
|
|
+ console.log(value)
|
|
|
this.gatePostList.forEach(e => {
|
|
|
if (e.gatepostName == value) {
|
|
|
- this.gatePostId = e.gatePostId;
|
|
|
+ this.gatePostId = e.gatePostId
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
},
|
|
|
enFactoryResultByPDA() {
|
|
|
let map = {
|
|
|
- orderNumber: this.orderNumber + " ",
|
|
|
+ orderNumber: this.orderNumber + ' ',
|
|
|
gatepostId: this.gatePostId
|
|
|
- };
|
|
|
- this.axios.post("");
|
|
|
+ }
|
|
|
+ this.axios.post('')
|
|
|
},
|
|
|
allowEnfactoryClick() {},
|
|
|
queueClick() {
|
|
|
this.axios
|
|
|
- .post("/api/v1/qms/addQueueResult?vno=" + this.capacityName + "_")
|
|
|
+ .post('/api/v1/qms/addQueueResult?vno=' + this.capacityName + '_')
|
|
|
.then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
- this.$message.success("操作成功");
|
|
|
- this.$router.go(0);
|
|
|
+ this.$message.success('操作成功')
|
|
|
+ this.$router.go(0)
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
},
|
|
|
deleteMoreResult() {
|
|
|
- console.log(this.orderNumber);
|
|
|
+ console.log(this.orderNumber)
|
|
|
this.axios
|
|
|
- .post("/api/v1/bp/deleteErrorResult?orderNumber=" + this.orderNumber)
|
|
|
+ .post('/api/v1/bp/deleteErrorResult?orderNumber=' + this.orderNumber)
|
|
|
.then(res => {
|
|
|
- if (res.data.code == "200") {
|
|
|
- this.$message.success("删除成功");
|
|
|
+ if (res.data.code == '200') {
|
|
|
+ this.$message.success('删除成功')
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
},
|
|
|
updateLineSqe() {
|
|
|
let map = {
|
|
|
orderId: this.orderId,
|
|
|
orderLineSqe: this.lineQuence
|
|
|
- };
|
|
|
- this.axios.post("/api/v1/uc/updateLineSqe", map).then(res => {
|
|
|
- console.log(res.data);
|
|
|
- if (res.data.code == "200") {
|
|
|
- this.$message.success("修改路段顺序号成功");
|
|
|
- this.$router.go(0);
|
|
|
+ }
|
|
|
+ this.axios.post('/api/v1/uc/updateLineSqe', map).then(res => {
|
|
|
+ console.log(res.data)
|
|
|
+ if (res.data.code == '200') {
|
|
|
+ this.$message.success('修改路段顺序号成功')
|
|
|
+ this.$router.go(0)
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
},
|
|
|
oninput() {},
|
|
|
onchange() {
|
|
|
if (this.switchValue) {
|
|
|
- this.first = true;
|
|
|
- this.second = true;
|
|
|
+ this.first = true
|
|
|
+ this.second = true
|
|
|
} else {
|
|
|
- this.second = false;
|
|
|
+ this.second = false
|
|
|
}
|
|
|
},
|
|
|
onchange1() {
|
|
|
- console.log(this.truckCalFirst);
|
|
|
+ console.log(this.truckCalFirst)
|
|
|
this.truckCalFirstList.forEach(e => {
|
|
|
if (this.truckCalFirst == e.value) {
|
|
|
- this.truckCalFirstNum = e.label;
|
|
|
+ this.truckCalFirstNum = e.label
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
},
|
|
|
onchange2() {
|
|
|
this.truckCalSecondList.forEach(e => {
|
|
|
if (this.truckCalSecond == e.value) {
|
|
|
- this.truckCalSecondNum = e.label;
|
|
|
+ this.truckCalSecondNum = e.label
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
},
|
|
|
//运力弹出层
|
|
|
handleSelectCapacity(item) {
|
|
|
- this.capacityId = item.capacityId;
|
|
|
- this.capacityName = item.capacityNumber;
|
|
|
+ this.capacityId = item.capacityId
|
|
|
+ this.capacityName = item.capacityNumber
|
|
|
this.axios
|
|
|
- .get("/api/v1/uc/getOrderNumber?capacityId=" + this.capacityId)
|
|
|
+ .get('/api/v1/uc/getOrderNumber?capacityId=' + this.capacityId)
|
|
|
.then(res => {
|
|
|
- if (res.data.code == "200") {
|
|
|
- this.orderId = res.data.data.orderId;
|
|
|
- this.orderNumber = res.data.data.orderNumber;
|
|
|
+ if (res.data.code == '200') {
|
|
|
+ this.orderId = res.data.data.orderId
|
|
|
+ this.orderNumber = res.data.data.orderNumber
|
|
|
this.axios
|
|
|
- .get("/api/v1/uc/getMaterialIdByOrderId?orderId=" + this.orderId)
|
|
|
+ .get('/api/v1/uc/getMaterialIdByOrderId?orderId=' + this.orderId)
|
|
|
.then(res => {
|
|
|
- if (res.data.code == "200") {
|
|
|
- this.materialList = res.data.data;
|
|
|
+ if (res.data.code == '200') {
|
|
|
+ this.materialList = res.data.data
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
},
|
|
|
//以下是运力边输边查搜索
|
|
|
querySearchCapacity(queryString, cb) {
|
|
|
if (queryString.length < 3) {
|
|
|
- return;
|
|
|
+ return
|
|
|
}
|
|
|
this.axios
|
|
|
- .get("/api/v1/uc/getCapacityNumber?index=" + queryString)
|
|
|
+ .get('/api/v1/uc/getCapacityNumber?index=' + queryString)
|
|
|
.then(res => {
|
|
|
- if (res.data.code == "200") {
|
|
|
- var restaurantsCarrier = res.data.data;
|
|
|
- console.log(restaurantsCarrier, "restaurantsCarrier");
|
|
|
+ if (res.data.code == '200') {
|
|
|
+ var restaurantsCarrier = res.data.data
|
|
|
+ console.log(restaurantsCarrier, 'restaurantsCarrier')
|
|
|
var results = queryString
|
|
|
? restaurantsCarrier.filter(this.createFilterCarrier(queryString))
|
|
|
- : restaurantsCarrier;
|
|
|
+ : restaurantsCarrier
|
|
|
// 调用 callback 返回建议列表的数据
|
|
|
- cb(results);
|
|
|
+ cb(results)
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
},
|
|
|
createFilterCarrier(queryString) {
|
|
|
return restaurantsCarrier => {
|
|
@@ -492,22 +533,22 @@ export default {
|
|
|
restaurantsCarrier.capacityNumber
|
|
|
.toLowerCase()
|
|
|
.indexOf(queryString.toLowerCase()) > -1
|
|
|
- );
|
|
|
- };
|
|
|
+ )
|
|
|
+ }
|
|
|
},
|
|
|
//以上是承运商边输边查搜索
|
|
|
information() {
|
|
|
- this.axios.get("/api/v1/uc/getAllCalculateMes").then(res => {
|
|
|
- this.truckCalFirstList = res.data;
|
|
|
- this.truckCalSecondList = res.data;
|
|
|
- });
|
|
|
- this.axios.get("/api/v1/uc/getAllGatepost").then(res => {
|
|
|
- console.log(res);
|
|
|
- this.gatePostList = res.data;
|
|
|
- });
|
|
|
+ this.axios.get('/api/v1/uc/getAllCalculateMes').then(res => {
|
|
|
+ this.truckCalFirstList = res.data
|
|
|
+ this.truckCalSecondList = res.data
|
|
|
+ })
|
|
|
+ this.axios.get('/api/v1/uc/getAllGatepost').then(res => {
|
|
|
+ console.log(res)
|
|
|
+ this.gatePostList = res.data
|
|
|
+ })
|
|
|
},
|
|
|
onClickConfirm() {
|
|
|
- this.poundNo = "jlbl" + toDateNo(new Date());
|
|
|
+ this.poundNo = 'jlbl' + toDateNo(new Date())
|
|
|
if (this.switchValue) {
|
|
|
if (
|
|
|
this.orderNumber == null ||
|
|
@@ -519,8 +560,8 @@ export default {
|
|
|
this.value2 == null ||
|
|
|
this.materialId == null
|
|
|
) {
|
|
|
- this.$message.warning("请填写所有值!!!");
|
|
|
- return;
|
|
|
+ this.$message.warning('请填写所有值!!!')
|
|
|
+ return
|
|
|
}
|
|
|
} else {
|
|
|
if (
|
|
@@ -530,63 +571,63 @@ export default {
|
|
|
this.value1 == null ||
|
|
|
this.materialId == null
|
|
|
) {
|
|
|
- this.$message.warning("请填写所有值!!!");
|
|
|
- return;
|
|
|
+ this.$message.warning('请填写所有值!!!')
|
|
|
+ return
|
|
|
}
|
|
|
}
|
|
|
let mapFirst = {
|
|
|
orderNumber: this.orderNumber,
|
|
|
resultTareCalculateNumber: this.truckCalFirstNum,
|
|
|
- resultTareWeight: this.firstWeight + "",
|
|
|
+ resultTareWeight: this.firstWeight + '',
|
|
|
resultTareWeightTime: toDateString(this.value1),
|
|
|
resultPoundNo: this.poundNo,
|
|
|
- materialId: this.materialId + ""
|
|
|
- };
|
|
|
+ materialId: this.materialId + ''
|
|
|
+ }
|
|
|
//如果首次大于二次,那么是先毛后皮,首次放在毛重上面,二次放在皮重上面
|
|
|
if (this.firstWeight >= this.secondWeight) {
|
|
|
var mapSecond = {
|
|
|
orderNumber: this.orderNumber,
|
|
|
resultTareCalculateNumber: this.truckCalSecondNum,
|
|
|
resultCrossCalculateNumber: this.truckCalFirstNum,
|
|
|
- resultTareWeight: this.secondWeight + "",
|
|
|
- resultCrossWeight: this.firstWeight + "",
|
|
|
+ resultTareWeight: this.secondWeight + '',
|
|
|
+ resultCrossWeight: this.firstWeight + '',
|
|
|
resultNetWeight:
|
|
|
- Math.abs(this.firstWeight - this.secondWeight).toFixed(2) + "",
|
|
|
+ Math.abs(this.firstWeight - this.secondWeight).toFixed(2) + '',
|
|
|
resultTareWeightTime: toDateString(this.value2),
|
|
|
resultCrossWeightTime: toDateString(this.value1),
|
|
|
resultPoundNo: this.poundNo,
|
|
|
- materialId: this.materialId + ""
|
|
|
- };
|
|
|
+ materialId: this.materialId + ''
|
|
|
+ }
|
|
|
} else {
|
|
|
//如果首次小于二次,那么是先皮后毛,首次放在皮重上面,二次放在毛重上面
|
|
|
var mapSecond = {
|
|
|
orderNumber: this.orderNumber,
|
|
|
resultTareCalculateNumber: this.truckCalFirstNum,
|
|
|
resultCrossCalculateNumber: this.truckCalSecondNum,
|
|
|
- resultTareWeight: this.firstWeight + "",
|
|
|
- resultCrossWeight: this.secondWeight + "",
|
|
|
+ resultTareWeight: this.firstWeight + '',
|
|
|
+ resultCrossWeight: this.secondWeight + '',
|
|
|
resultNetWeight:
|
|
|
- Math.abs(this.secondWeight - this.firstWeight).toFixed(2) + "",
|
|
|
+ Math.abs(this.secondWeight - this.firstWeight).toFixed(2) + '',
|
|
|
resultTareWeightTime: toDateString(this.value1),
|
|
|
resultCrossWeightTime: toDateString(this.value2),
|
|
|
resultPoundNo: this.poundNo,
|
|
|
- materialId: this.materialId + ""
|
|
|
- };
|
|
|
+ materialId: this.materialId + ''
|
|
|
+ }
|
|
|
}
|
|
|
- var arr = [];
|
|
|
+ var arr = []
|
|
|
if (this.switchValue) {
|
|
|
- arr.push(mapSecond);
|
|
|
+ arr.push(mapSecond)
|
|
|
} else {
|
|
|
- arr.push(mapFirst);
|
|
|
+ arr.push(mapFirst)
|
|
|
}
|
|
|
- this.axios.post("/api/v1/uc/recordingWeightResult", arr).then(res => {
|
|
|
- this.$message.success("补录计量实绩成功");
|
|
|
- this.$router.go(0);
|
|
|
- });
|
|
|
+ this.axios.post('/api/v1/uc/recordingWeightResult', arr).then(res => {
|
|
|
+ this.$message.success('补录计量实绩成功')
|
|
|
+ this.$router.go(0)
|
|
|
+ })
|
|
|
},
|
|
|
onClickCancel() {}
|
|
|
}
|
|
|
-};
|
|
|
+}
|
|
|
</script>
|
|
|
<style lang="scss">
|
|
|
.admin {
|