|
|
|
@ -82,7 +82,11 @@
|
|
|
|
|
:content="item.waybillNumber ? item.waybillNumber : '运单号'" |
|
|
|
|
placement="top" |
|
|
|
|
> |
|
|
|
|
<el-input v-model="item.waybillNumber" placeholder="请输入运单号" @change="ChangePackageInfo(item.packageCode, index)" /> |
|
|
|
|
<el-input |
|
|
|
|
v-model="item.waybillNumber" |
|
|
|
|
placeholder="请输入运单号" |
|
|
|
|
@change="ChangePackageInfo(item.packageCode, index)" |
|
|
|
|
/> |
|
|
|
|
</el-tooltip> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
@ -258,6 +262,7 @@
|
|
|
|
|
filterable |
|
|
|
|
multiple |
|
|
|
|
placeholder="请选择处理方" |
|
|
|
|
@change="Processingrelease" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in warehouseData" |
|
|
|
@ -390,7 +395,7 @@
|
|
|
|
|
</el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
|
</el-form> |
|
|
|
|
<el-tabs type="border-card" class="el_Processingresults"> |
|
|
|
|
<el-tabs type="border-card" class="el_Processingresults" v-if="ProcessingreleaseState"> |
|
|
|
|
<el-tab-pane label="处理结果"> |
|
|
|
|
<div class="selector"> |
|
|
|
|
<el-select |
|
|
|
@ -583,8 +588,7 @@
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script setup> |
|
|
|
|
import { ElMessage } from 'element-plus'; |
|
|
|
|
import { ElMessageBox } from 'element-plus'; |
|
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'; |
|
|
|
|
import { useRouter, useRoute } from 'vue-router'; |
|
|
|
|
import { useStore } from 'vuex'; |
|
|
|
|
const $store = useStore(); |
|
|
|
@ -628,6 +632,7 @@ const fleeingState = ref(false); //窜货件数弹窗
|
|
|
|
|
const ShortageList = ref([]); //少货件数 |
|
|
|
|
const fleeingList = ref([]); //窜货件数 |
|
|
|
|
const valueStrictly = ref(); |
|
|
|
|
const ProcessingreleaseState=ref(false)//是否可以填写处理结果 |
|
|
|
|
const routerID = ref(null); //路由参数ID |
|
|
|
|
const routerState = ref(''); //路由状态 |
|
|
|
|
const personResponsibleList = ref([]); //责任人列表 |
|
|
|
@ -643,7 +648,7 @@ const amplifyurl = ref(''); //当前点击的图片
|
|
|
|
|
const amplifysrcList = ref([]); //图片循环列表 |
|
|
|
|
const ProcessingList = ref([]); //处理结果已经选择的列表 |
|
|
|
|
const Paymentmethod = ref([]); //支付方式 |
|
|
|
|
|
|
|
|
|
const Mydata=ref();//当前登录人信息 |
|
|
|
|
const PackageInfo = ref([ |
|
|
|
|
//包件信息 |
|
|
|
|
{ packageCode: '', orderCode: '', waybillNumber: '', brandName: '', state: false }, |
|
|
|
@ -759,6 +764,8 @@ const onLoad = () => {
|
|
|
|
|
// DeliveryTrainnumber(); //获取司机 |
|
|
|
|
console.log($route.query.id, '页面初始化'); |
|
|
|
|
routerState.value = $route.query.routerState; |
|
|
|
|
Mydata.value=JSON.parse(localStorage.getItem('my_data'));//记录本地登录 |
|
|
|
|
console.log(Mydata.value,'记录本地登录'); |
|
|
|
|
updateDictionary(IndexException.value, 'pc_work_order'); //异常类型 |
|
|
|
|
updateDictionary(DiscoveringNodes.value, 'pc_discovery_node'); //发现环节 |
|
|
|
|
handle(); //处理方和责任方信息 |
|
|
|
@ -987,9 +994,11 @@ const ResponsibilityRemoval = val => {
|
|
|
|
|
}; |
|
|
|
|
// 顶部标签切换 |
|
|
|
|
const TopChange = val => { |
|
|
|
|
PackageInfo.value=[{ packageCode: '', orderCode: '', waybillNumber: '', brandName: '', state: false },]//重置包件信息 |
|
|
|
|
Indexform.value={};//重置表单 |
|
|
|
|
|
|
|
|
|
PackageInfo.value = [ |
|
|
|
|
{ packageCode: '', orderCode: '', waybillNumber: '', brandName: '', state: false }, |
|
|
|
|
]; //重置包件信息 |
|
|
|
|
Indexform.value = {}; //重置表单 |
|
|
|
|
|
|
|
|
|
if (val == 0) { |
|
|
|
|
identifying.value = 1; |
|
|
|
|
} else { |
|
|
|
@ -1152,6 +1161,8 @@ const ConfirmForm = () => {
|
|
|
|
|
brandName: item.brandName ? item.brandName : null, //品牌 |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
// 运单号拼接 |
|
|
|
|
DataSubmit.waybillNumber = PackageInfo.value.map(item => item.waybillNumber).join(','); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// DataSubmit['packageEntityList'].push({ |
|
|
|
@ -1300,7 +1311,7 @@ const ConfirmForm = () => {
|
|
|
|
|
console.log(DataSubmit, '处理好的数据'); |
|
|
|
|
// 提交表单信息stringify |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$_submit(DataSubmit) |
|
|
|
|
.then(res => { |
|
|
|
@ -1418,6 +1429,18 @@ const moneyBtnB = () => {
|
|
|
|
|
} |
|
|
|
|
fleeingState.value = true; //开启弹窗输入 |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 是否显示处理结果 |
|
|
|
|
const Processingrelease = ()=>{ |
|
|
|
|
if(Indexform.value.processor.length ==1 && Mydata.value.id==Indexform.value.processor[0] ){ |
|
|
|
|
ProcessingreleaseState.value = true;//显示处理放 |
|
|
|
|
}else{ |
|
|
|
|
ProcessingreleaseState.value = false;//关闭处理方 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 统计包件个数 |
|
|
|
|
const Statistics = () => { |
|
|
|
|
// 订单统计包件个数 |
|
|
|
@ -1428,7 +1451,7 @@ const Statistics = () => {
|
|
|
|
|
NumberPackages.value++; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
// 零担统计包件个数 |
|
|
|
|
NumberPackages.value = 0; |
|
|
|
|
PackageInfo.value.map(res => { |
|
|
|
@ -1442,14 +1465,13 @@ const Statistics = () => {
|
|
|
|
|
|
|
|
|
|
// 查询包件信息自动回显 |
|
|
|
|
const ChangePackageInfo = (val, index) => { |
|
|
|
|
if(identifying.value == '2'){ |
|
|
|
|
if (identifying.value == '2') { |
|
|
|
|
Statistics(); //调用统计包件信息 |
|
|
|
|
return |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!val) { |
|
|
|
|
if (NumberPackages.value > 1) { |
|
|
|
|
if (!val) { |
|
|
|
|
PackageInfo.value[index].orderCode = ''; //订单自编码 |
|
|
|
|
PackageInfo.value[index].waybillNumber = ''; //运单号 |
|
|
|
|
PackageInfo.value[index].orderId = ''; //运单号 |
|
|
|
@ -1462,7 +1484,11 @@ const ChangePackageInfo = (val, index) => {
|
|
|
|
|
return; |
|
|
|
|
// 如果输入框里面没有值就不请求 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(!val){ |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
Statistics(); //调用统计包件信息 |
|
|
|
|
let data = { |
|
|
|
|
packageCode: val, |
|
|
|
@ -1470,8 +1496,29 @@ const ChangePackageInfo = (val, index) => {
|
|
|
|
|
$_getAbnormalPackage(data).then(res => { |
|
|
|
|
console.log(res, '包件信息'); |
|
|
|
|
console.log(res.data.data, '包件信息'); |
|
|
|
|
|
|
|
|
|
if (res.data.data.length) { |
|
|
|
|
const packageData = res.data.data[0]; |
|
|
|
|
if (NumberPackages.value > 1) { |
|
|
|
|
let mallName = PackageInfo.value.find(item => item.mallName); |
|
|
|
|
if (mallName != packageData.mallName) { |
|
|
|
|
ElMessageBox.confirm('请选择运单商场一致的包条码!', 'Warning', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
type: 'warning', |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
return; |
|
|
|
|
}) |
|
|
|
|
.catch(() => { |
|
|
|
|
ElMessage({ |
|
|
|
|
type: 'info', |
|
|
|
|
message: '请重新输入新包条码', |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// 如果已经有一条数据了,后面运单商场必须和后面的一样 |
|
|
|
|
console.log(packageData, '获取的第一个参数'); |
|
|
|
|
PackageInfo.value[index].orderCode = packageData.orderCode; //订单自编码 |
|
|
|
|
PackageInfo.value[index].waybillNumber = packageData.waybillNumber; //运单号 |
|
|
|
@ -1479,9 +1526,6 @@ const ChangePackageInfo = (val, index) => {
|
|
|
|
|
PackageInfo.value[index].brandName = packageData.brandName; //品牌 |
|
|
|
|
PackageInfo.value[index].state = false; //状态 |
|
|
|
|
|
|
|
|
|
console.log(packageData, '处理的包件参数'); |
|
|
|
|
console.log(Indexform.value.firsts, '一级品'); |
|
|
|
|
console.log(Indexform.value.second, '二 级品'); |
|
|
|
|
const results = res.data.data.filter(item => { |
|
|
|
|
return item.workOrderId && item.workOrderNumber; |
|
|
|
|
}); |
|
|
|
@ -1496,7 +1540,9 @@ const ChangePackageInfo = (val, index) => {
|
|
|
|
|
Indexform.value.first = packageData.firsts; //一级品 |
|
|
|
|
Indexform.value.secondary = packageData.second; //二级品 |
|
|
|
|
Indexform.value.waybillMall = packageData.mallName; //客户名称(运单商场) |
|
|
|
|
Indexform.value.typeServiceName = packageData.typeServiceName; //合作模式 |
|
|
|
|
Indexform.value.typeServiceName = packageData.typeServiceName |
|
|
|
|
? packageData.typeServiceName |
|
|
|
|
: '暂未查询到'; //合作模式 |
|
|
|
|
} |
|
|
|
|
// packageCode; //包件码 |
|
|
|
|
// //订单自编码 |
|
|
|
|