Compare commits

...

2 Commits

Author SHA1 Message Date
zzyuan 9ecb2eb3ae 员工管理手机号加密 2025-07-04 14:05:38 +08:00
zzyuan f00f3f5016 价格参数修改3 2025-07-04 14:02:57 +08:00
2 changed files with 5 additions and 1 deletions

View File

@ -505,6 +505,7 @@ export default {
this.$set(this.form,"salesMode",row.salesMode+'')
this.getDrpUnitList()
this.$set(this.form,"unitId",row.unitId)
this.$set(this.form,"salePrice",Number((row.salePrice/100).toFixed(2)))
this.$set(this.form,"unitPrice",Number((row.unitPrice/100).toFixed(2)))
this.$set(this.form,"barCode",row.barCode)
if(row.nutritionTypeId){
@ -536,7 +537,8 @@ export default {
submitForm() {
this.$refs.form.validate(valid => {
if (valid) {
this.form.unitPrice = Number(this.form.unitPrice)
this.form.salePrice = Number(this.form.salePrice);
this.form.unitPrice = Number(this.form.unitPrice);
this.$emit('submit', this.form);
}
});

View File

@ -786,6 +786,7 @@ export default {
}
console.log(this.form)
this.$set(this.form,"password",decryptWithSM4(this.form.password))
this.$set(this.form,"mobile",decryptWithSM4(this.form.mobile))
if(this.form.accessAuthorityList&&this.form.accessAuthorityList.length>0){
console.log(this.form.accessAuthorityList)
let index = this.form.accessAuthorityList.findIndex(v=>v.deviceType==3)
@ -1018,6 +1019,7 @@ export default {
...this.form
}
param.password = encryptWithSM4(this.form.password)
param.mobile = encryptWithSM4(this.form.mobile)
if (this.form.staffId != undefined) {
editKitchenStaffApi(param).then(response => {
this.$modal.msgSuccess("修改成功");