Commit 2113ca89 by fengjiansheng

fix(@gms/gms-plugin-billexpand): 增加保存失败提示信息 YBXCP-515

parent 5137c026
......@@ -28,7 +28,7 @@ export default {
// }
bill.runFormulaCheckData(param, function (msg) {
if (msg.length == 0) {
if (msg.length === 0) {
let postData = {
actions: "bill.Basic.save"
}
......@@ -40,8 +40,12 @@ export default {
console.log('data',data)
if (code === 200) {
const id = data.content.billData.id
GMS.vbus.$emit('change-form-state', { state: 'readOnly', billId: id })
GMS.vbus.$Message.success("保存成功");
if (data.code !== 0) {
GMS.vbus.$Message.error("保存失败,详细信息:" + data.message);
}else{
GMS.vbus.$emit('change-form-state', { state: 'readOnly', billId: id });
GMS.vbus.$Message.success("保存成功");
}
} else if (code === 201) {
GMS.vbus.$Message.error(data.message);
} else if (code === 202) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment