|
@@ -94,7 +94,7 @@ export default defineComponent({
|
|
|
formRef.value
|
|
formRef.value
|
|
|
.validate()
|
|
.validate()
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
- // const param = toRaw(formState);
|
|
|
|
|
|
|
+ loading.value = true;
|
|
|
const { middlegoodsid, goodsunitid, relatedgoodsid, evaluateratio, qtydecimalplace, relatedgoodstype, goodsgroupid, remark } = props.selctedMG.mg;
|
|
const { middlegoodsid, goodsunitid, relatedgoodsid, evaluateratio, qtydecimalplace, relatedgoodstype, goodsgroupid, remark } = props.selctedMG.mg;
|
|
|
const param: ErmsMiddelGoodsEditReq = {
|
|
const param: ErmsMiddelGoodsEditReq = {
|
|
|
middlegoodsid, // uint64 套保品种ID
|
|
middlegoodsid, // uint64 套保品种ID
|
|
@@ -111,15 +111,14 @@ export default defineComponent({
|
|
|
};
|
|
};
|
|
|
ermsMiddelGoodsEdit(param)
|
|
ermsMiddelGoodsEdit(param)
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
|
|
+ message.success('修改成功!');
|
|
|
cancel();
|
|
cancel();
|
|
|
context.emit('refresh', true);
|
|
context.emit('refresh', true);
|
|
|
})
|
|
})
|
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
|
- console.log('err', err);
|
|
|
|
|
-
|
|
|
|
|
message.error(err);
|
|
message.error(err);
|
|
|
- });
|
|
|
|
|
- console.log('param', param);
|
|
|
|
|
|
|
+ })
|
|
|
|
|
+ .finally(() => (loading.value = false));
|
|
|
})
|
|
})
|
|
|
.catch((error: any) => {
|
|
.catch((error: any) => {
|
|
|
console.log('error', error);
|
|
console.log('error', error);
|