修改追溯

This commit is contained in:
jsy_zjg 2025-02-13 10:29:22 +08:00
parent 8b6af70e74
commit 3aac9f556c
3 changed files with 37 additions and 104 deletions

View File

@ -45,9 +45,6 @@
{{ item.deviceCode }}{{ item.deviceTypeName }}
</view>
</view>
<!-- <view style="margin-right: 5px;">
<u-button type="success" text="删除" @click="deleteDetail(item)" />
</view> -->
</view>
<u-gap height="1" bgColor="#D2D2D2"></u-gap>
</view>
@ -192,15 +189,17 @@
},
//
deleteDetail(item) {
let index = this.dataList.findIndex(x => x.deviceId == item.deviceId);
if (index != -1) {
this.dataList.splice(index, 1);
}
if (this.type == "edit") {
//id
deleteDeviceBillWms(item.billDetailId)
.then(res => {})
}
plugin.modal.confirm("确定删除吗?").then(res => {
let index = this.dataList.findIndex(x => x.deviceId == item.deviceId);
if (index != -1) {
this.dataList.splice(index, 1);
}
if (this.type == "edit") {
//id
deleteDeviceBillWms(item.billDetailId)
.then(res => {})
}
})
},
onStorageInSelect(e) {
this.briefForm.storageInId = e.id

View File

@ -10,11 +10,6 @@
<uni-section title="基础信息" type="line">
<u--form labelPosition="left" :model="briefForm" :rules="rules" ref="form">
<u-line color="#D2D2D2"></u-line>
<!-- <u-form-item class="form-item" label="签收单号" prop="sourceBillCode" labelWidth="100px" required>
<u--input style="background: white" v-model="briefForm.sourceBillCode" border="none" disabled
placeholder="请选择签收单号" suffixIcon="arrow-right" class="custom-input"
@click="onselectBillCode"></u--input>
</u-form-item> -->
<u-form-item label="退回仓库" prop="storageInName" required>
<u--input @click="showStorageIn=true" v-model="briefForm.storageInName" border="none" disabled
placeholder="请选择退回仓库" suffixIcon="arrow-right"></u--input>
@ -199,15 +194,17 @@
},
//
deleteDetail(item) {
let index = this.dataList.findIndex(x => x.deviceId == item.deviceId);
if (index != -1) {
this.dataList.splice(index, 1);
}
if (this.type == "edit") {
//id
deleteDeviceBillWms(item.billDetailId)
.then(res => {})
}
plugin.modal.confirm("确定删除吗?").then(res => {
let index = this.dataList.findIndex(x => x.deviceId == item.deviceId);
if (index != -1) {
this.dataList.splice(index, 1);
}
if (this.type == "edit") {
//id
deleteDeviceBillWms(item.billDetailId)
.then(res => {})
}
})
},
onStorageInSelect(e) {
this.briefForm.storageInId = e.id
@ -286,12 +283,6 @@
}
})
},
//
onselectBillCode: function() {
uni.navigateTo({
url: '/pages/retrace/selectDeviceBill?billTypeId=2002'
});
},
//nfc
getDeviceInfo(code) {
let query = {};
@ -405,32 +396,5 @@
margin: 0px 20px;
}
}
// .item-container {
// margin: 10px 10px;
// background-color: white;
// padding-bottom: 10px;
// border-radius: 10px;
// box-shadow: 1px 1px 2px 2px rgba(0, 0, 0, 0.05);
// }
// .flex-text {
// display: flex;
// align-items: center;
// .flex-text-one {
// color: #939393;
// font-weight: bold;
// }
// }
// .data {
// margin: 10px 20px !important;
// width: 100%;
// .uni-col {
// margin-bottom: 5px;
// }
// }
}
</style>

View File

@ -10,11 +10,6 @@
<uni-section title="基础信息" type="line">
<u--form labelPosition="left" :model="briefForm" :rules="rules" ref="form">
<u-line color="#D2D2D2"></u-line>
<!-- <u-form-item class="form-item" label="调货单号" prop="billCode" labelWidth="100px" required>
<u--input style="background: white" v-model="briefForm.billCode" border="none" disabled
placeholder="请选择签收单号" suffixIcon="arrow-right" class="custom-input"
@click="onselectBillCode"></u--input>
</u-form-item> -->
<u-form-item label="调货仓库" prop="storageOutName" required>
<u--input @click="showStorageOut=true" v-model="briefForm.storageOutName" border="none" disabled
placeholder="请选择调货仓库" suffixIcon="arrow-right"></u--input>
@ -106,10 +101,10 @@
addType: 1,
showDeviceModal: false,
showStorageIn: false,
showStorageOut:false,
showStorageOut: false,
showDevicePda: false,
storageInData: [],
storageOutData:[],
storageOutData: [],
devicePdaData: [],
deviceInfoData: {
deviceCode: null
@ -193,7 +188,7 @@
this.briefForm = {
billId: null,
billTypeId: 2005,
billCode:null,
billCode: null,
storageInId: null,
storageInName: null,
devicePdaId: null,
@ -216,21 +211,23 @@
},
//
deleteDetail(item) {
let index = this.dataList.findIndex(x => x.deviceId == item.deviceId);
if (index != -1) {
this.dataList.splice(index, 1);
}
if (this.type == "edit") {
//id
deleteDeviceBillWms(item.billDetailId)
.then(res => {})
}
plugin.modal.confirm("确定删除吗?").then(res => {
let index = this.dataList.findIndex(x => x.deviceId == item.deviceId);
if (index != -1) {
this.dataList.splice(index, 1);
}
if (this.type == "edit") {
//id
deleteDeviceBillWms(item.billDetailId)
.then(res => {})
}
})
},
onStorageInSelect(e) {
this.briefForm.storageInId = e.id
this.briefForm.storageInName = e.name
},
onStorageOutSelect(e){
onStorageOutSelect(e) {
this.briefForm.storageOutId = e.id
this.briefForm.storageOutName = e.name
},
@ -438,32 +435,5 @@
margin: 0px 20px;
}
}
// .item-container {
// margin: 10px 10px;
// background-color: white;
// padding-bottom: 10px;
// border-radius: 10px;
// box-shadow: 1px 1px 2px 2px rgba(0, 0, 0, 0.05);
// }
// .flex-text {
// display: flex;
// align-items: center;
// .flex-text-one {
// color: #939393;
// font-weight: bold;
// }
// }
// .data {
// margin: 10px 20px !important;
// width: 100%;
// .uni-col {
// margin-bottom: 5px;
// }
// }
}
</style>