修改耗材问题
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user