修改耗材问题

This commit is contained in:
duan
2024-11-01 16:36:14 +08:00
parent 5e4022f85c
commit dc1ff9ba43
4 changed files with 38 additions and 28 deletions

View File

@@ -63,8 +63,9 @@
},
})
const currentInstance = getCurrentInstance()
function sumbit() {
if(!datas.form.purveyorName||!datas.form.purveyorTelephone||!datas.form.address){
if (!datas.form.purveyorName || !datas.form.purveyorTelephone || !datas.form.address) {
currentInstance.ctx.$refs.uToastRef.show({
message: "请填写必填项",
type: 'default',
@@ -72,7 +73,16 @@
return
}
tbShopPurveyorpost(datas.form).then(res => {
go.back()
currentInstance.ctx.$refs.uToastRef.show({
message: "添加成功",
type: 'default',
})
setTimeout(() => {
// go.to('PAGES_SUPPLIER')pageConsumables/supplier
// uni.redirectTo({url: '/pageConsumables/supplier'})
go.back()
// uni.redirectTo({url: '/pageConsumables/supplier'})
}, 1000)
})
}
</script>
@@ -140,6 +150,7 @@
.bottombutton {
margin-top: 84rpx;
padding: 0 24rpx;
>button {
width: 530rpx;
height: 80rpx;