9/25 优化1.0

yanshishuju
wangwei 12 months ago
parent 4da4427ccf
commit d3ae6838a6

@ -38,5 +38,11 @@ export function delUserBindWork(query) {
}); });
} }
export function getUserWorkByWorkplaceCode(query) {
return axios({
url: '/udiwms/sysWorkplace/getUserWorkByWorkplaceCode',
method: 'get',
params: query
})
}

@ -505,7 +505,6 @@ export default {
}, },
workDetail(row) { workDetail(row) {
console.log("woshishhss",row)
this.formData = row this.formData = row
this.addWorkplaceDialogVisible = true this.addWorkplaceDialogVisible = true
}, },

@ -545,6 +545,7 @@ import {
delDrugLevel, delDrugLevel,
updateLevelDrug, calculateDistCount, calculateUseCount updateLevelDrug, calculateDistCount, calculateUseCount
} from '@/api/basic/product/drugUdiinfos' } from '@/api/basic/product/drugUdiinfos'
import {isBlank} from "@/utils/strUtil";
import { import {
getYbDrugDetail, removeRl, thirdSysDetail getYbDrugDetail, removeRl, thirdSysDetail
@ -605,6 +606,7 @@ export default {
status: false, status: false,
relId: null, relId: null,
drugLevelLists: [], drugLevelLists: [],
productId:null,
useLevelDi: null, useLevelDi: null,
distributeLevelDi: null, distributeLevelDi: null,
@ -834,15 +836,16 @@ export default {
// //
levelSave(row) { levelSave(row) {
if (row.nameCode == null) { console.log("djdjdjjd",row)
if (isBlank(row.nameCode)) {
this.$message.error('层级标识不能为空') this.$message.error('层级标识不能为空')
return return
} }
if (row.packLevel == null) { if (isBlank(row.packLevel)) {
this.$message.error('包装级别不能为空') this.$message.error('包装级别不能为空')
return return
} }
if (row.packUnit == null) { if (isBlank(row.packUnit)) {
this.$message.error('层级单位不能为空') this.$message.error('层级单位不能为空')
return return
} }
@ -854,7 +857,8 @@ export default {
bhxjcpbm: row.bhxjcpbm, bhxjcpbm: row.bhxjcpbm,
bhxjsl: row.bhxjsl, bhxjsl: row.bhxjsl,
relId: this.newProductData.id, relId: this.newProductData.id,
uuid: this.newProductData.uuid uuid: this.newProductData.uuid,
productId:this.newProductData.productId
} }
updateLevelDrug(editQuery).then(res => { updateLevelDrug(editQuery).then(res => {
this.saveLoading = false this.saveLoading = false
@ -885,6 +889,7 @@ export default {
rowDisabled: false, rowDisabled: false,
isUpDisabled: true isUpDisabled: true
}) })
this.newProductData.productId = null
this.selectedIndex = this.detailList.length - 1 this.selectedIndex = this.detailList.length - 1
this.isSave = false this.isSave = false
}, },

@ -409,7 +409,7 @@ export default {
}; };
this.actDateRange = []; this.actDateRange = [];
// this.getList(); this.getList();
}, },
onSubmit(_this) { onSubmit(_this) {
if (_this == null) if (_this == null)

@ -37,7 +37,7 @@
<el-table-column type="index" label="序号"></el-table-column> <el-table-column type="index" label="序号"></el-table-column>
<el-table-column label="工位编码" prop="workplaceId"></el-table-column> <el-table-column label="工位编码" prop="workplaceId"></el-table-column>
<el-table-column label="工位名称" prop="workplaceName"></el-table-column> <el-table-column label="工位名称" prop="workplaceName"></el-table-column>
<el-table-column label="所属仓库" prop="invName"></el-table-column> <!--<el-table-column label="所属仓库" prop="invName"></el-table-column>-->
<el-table-column label="备注" prop="remake"></el-table-column> <el-table-column label="备注" prop="remake"></el-table-column>
</el-table> </el-table>
</el-card> </el-card>

@ -54,7 +54,7 @@
<script> <script>
import {listPage} from "@/api/basic/workPlace/sysWorkplaceManage.js"; import {listPage} from "@/api/basic/workPlace/sysWorkplaceManage.js";
import QRCode from 'qrcodejs2' import QRCode from 'qrcodejs2'
import { getUserBindWork } from '@/api/basic/collectPoint/userWorkplace' import { getUserBindWork, getUserWorkByWorkplaceCode } from '@/api/basic/collectPoint/userWorkplace'
export default { export default {
name: 'fieldOperation', name: 'fieldOperation',
@ -64,6 +64,7 @@ export default {
workKey: '', workKey: '',
workplaceStatus: 1, workplaceStatus: 1,
userId: this.$store.getters.adminId, userId: this.$store.getters.adminId,
workplaceCode:'',
// invCode: this.$store.getters.locInvCode, // invCode: this.$store.getters.locInvCode,
page: 1, page: 1,
limit: 200 limit: 200
@ -91,9 +92,20 @@ export default {
}); });
}, },
handleClick(index) { handleClick(index) {
let query = {
userId: this.$store.getters.adminId,
workplaceCode: this.stationList[index].workplaceId,
}
getUserWorkByWorkplaceCode(query).then(res => {
if (res.code == 20000){
let url = window.location.origin + `/UDI_WMS_NEW#/tagCodeBlank?workplaceId=` + this.stationList[index].workplaceId let url = window.location.origin + `/UDI_WMS_NEW#/tagCodeBlank?workplaceId=` + this.stationList[index].workplaceId
// this.$router.push( workplaceId) // this.$router.push( workplaceId)
window.open(url, '_blank'); window.open(url, '_blank');
}else {
this.$message.error(res.message)
}
}).catch(() => {})
}, },
getStationList() { getStationList() {
getUserBindWork(this.query).then(res => { getUserBindWork(this.query).then(res => {

Loading…
Cancel
Save