物料增加按钮-推送电力电子、箱变、精密物料
This commit is contained in:
parent
855c0405c2
commit
9c2c4f7484
|
|
@ -15,6 +15,7 @@ const {NCTooltip} = base;
|
||||||
export default function (props, id) {
|
export default function (props, id) {
|
||||||
let _this = this;
|
let _this = this;
|
||||||
let {initImages, initImagesrc, initImgList, curPageIndex} = this.state;
|
let {initImages, initImagesrc, initImgList, curPageIndex} = this.state;
|
||||||
|
let pks = [];
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case 'Add':
|
case 'Add':
|
||||||
ajax({
|
ajax({
|
||||||
|
|
@ -655,17 +656,35 @@ export default function (props, id) {
|
||||||
enctype: 1
|
enctype: 1
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'pushtoqms':
|
case 'dldztomes':
|
||||||
pk = this.props.form.getFormItemsValue(formid, 'pk_material');
|
pk = this.props.form.getFormItemsValue(formid, 'pk_material');
|
||||||
|
pks.push(pk.value)
|
||||||
ajax({
|
ajax({
|
||||||
url: "/nccloud/uapbd/material/pushtoqms.do",
|
url: "/nccloud/uapbd/material/pushtodldzmes.do",
|
||||||
data: {
|
data: {
|
||||||
pk_material: pk.value
|
pks: pks
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
this.onButtonClick(props, 'Refresh');
|
this.onButtonClick(props, 'Refresh');
|
||||||
toast({
|
toast({
|
||||||
content: "推送启源qms成功",
|
content: "推送成功",
|
||||||
|
color: 'success'
|
||||||
|
});/* 国际化处理: 操作成功*/
|
||||||
|
}
|
||||||
|
})
|
||||||
|
break;
|
||||||
|
case 'pushtoqms':
|
||||||
|
pk = this.props.form.getFormItemsValue(formid, 'pk_material');
|
||||||
|
pks.push(pk.value)
|
||||||
|
ajax({
|
||||||
|
url: "/nccloud/uapbd/material/pushtoqms.do",
|
||||||
|
data: {
|
||||||
|
pks: pks
|
||||||
|
},
|
||||||
|
success: (res) => {
|
||||||
|
this.onButtonClick(props, 'Refresh');
|
||||||
|
toast({
|
||||||
|
content: "推送成功",
|
||||||
color: 'success'
|
color: 'success'
|
||||||
});/* 国际化处理: 操作成功*/
|
});/* 国际化处理: 操作成功*/
|
||||||
}
|
}
|
||||||
|
|
@ -673,15 +692,16 @@ export default function (props, id) {
|
||||||
break;
|
break;
|
||||||
case 'pushtojmqy':
|
case 'pushtojmqy':
|
||||||
pk = this.props.form.getFormItemsValue(formid, 'pk_material');
|
pk = this.props.form.getFormItemsValue(formid, 'pk_material');
|
||||||
|
pks.push(pk.value)
|
||||||
ajax({
|
ajax({
|
||||||
url: "/nccloud/uapbd/material/pushtojmqy.do",
|
url: "/nccloud/uapbd/material/pushtojmqy.do",
|
||||||
data: {
|
data: {
|
||||||
pks: pk.value
|
pks: pks
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
this.onButtonClick(props, 'Refresh');
|
this.onButtonClick(props, 'Refresh');
|
||||||
toast({
|
toast({
|
||||||
content: "推送启源成功",
|
content: "推送成功",
|
||||||
color: 'success'
|
color: 'success'
|
||||||
});/* 国际化处理: 操作成功*/
|
});/* 国际化处理: 操作成功*/
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue