feat: 优化供应商审核页面
This commit is contained in:
parent
95c52117cc
commit
965291e30c
|
|
@ -8,7 +8,7 @@
|
||||||
<uni-easyinput v-model="form.name" placeholder="请输入供应商名称" :disabled="mode=='show'"/>
|
<uni-easyinput v-model="form.name" placeholder="请输入供应商名称" :disabled="mode=='show'"/>
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="物料分类" required>
|
<uni-forms-item label="物料分类" required>
|
||||||
<uni-easyinput v-model="form.material_type" placeholder="请输入物料分类" :disabled="mode=='show'"/>
|
<uni-easyinput v-model="form.material_cate" placeholder="请输入物料分类" :disabled="mode=='show'"/>
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="物料名称" required>
|
<uni-forms-item label="物料名称" required>
|
||||||
<uni-easyinput v-model="form.material_name" placeholder="请输入物料名称" :disabled="mode=='show'"/>
|
<uni-easyinput v-model="form.material_name" placeholder="请输入物料名称" :disabled="mode=='show'"/>
|
||||||
|
|
@ -25,9 +25,9 @@
|
||||||
</uni-forms>
|
</uni-forms>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<view class="footer_fixed">
|
<view class="footer_fixed">
|
||||||
<button v-if="mode=='edit'" size="mini" @click="handleDel" :loading="saveLoading" :disabled="saveLoading" type="warn">
|
<!-- <button v-if="mode=='edit'" size="mini" @click="handleDel" :loading="saveLoading" :disabled="saveLoading" type="warn">
|
||||||
删除
|
删除
|
||||||
</button>
|
</button> -->
|
||||||
<ticketd_b v-if="form.ticket_" :t_id="form.id" :ticket_="form.ticket_"
|
<ticketd_b v-if="form.ticket_" :t_id="form.id" :ticket_="form.ticket_"
|
||||||
:ticket_data="ticket_data" @success="()=>{uni.navigateBack()}" ref="ticketd_b"></ticketd_b>
|
:ticket_data="ticket_data" @success="()=>{uni.navigateBack()}" ref="ticketd_b"></ticketd_b>
|
||||||
<button v-else size="mini" @click="handleSave" :loading="saveLoading" :disabled="saveLoading" type="primary">
|
<button v-else size="mini" @click="handleSave" :loading="saveLoading" :disabled="saveLoading" type="primary">
|
||||||
|
|
@ -89,21 +89,25 @@ import xtUpload from "@/components/xtUpload.vue"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
uploadSuccess(type, e){
|
handleSave(){
|
||||||
console.log('type', type, e);
|
|
||||||
console.log('form.material_type',this.form.material_type)
|
|
||||||
},
|
|
||||||
progress(e){
|
|
||||||
console.log(e)
|
|
||||||
},
|
|
||||||
async handleSave(id){
|
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$refs.customForm.validate().then(res => {
|
that.$refs.customForm.validate().then(res => {
|
||||||
|
that.saveLoading = true;
|
||||||
|
that.$api.supplierauditCreate(that.form).then(res => {
|
||||||
|
that.saveLoading = false;
|
||||||
|
uni.showToast({
|
||||||
|
title: '提交成功',
|
||||||
|
icon: 'success'
|
||||||
|
});
|
||||||
|
uni.navigateBack()
|
||||||
|
}).catch(e=>{
|
||||||
|
that.saveLoading = false;
|
||||||
|
console.log('err', err);
|
||||||
|
})
|
||||||
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log('err', err);
|
console.log('err', err);
|
||||||
})
|
})
|
||||||
let res = await that.$api.supplierauditCreate(that.form)
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue