Commit 3bc8e6c5 by qiaoyanqi

没用的删除了

parent 9d65e0a0
......@@ -36,9 +36,7 @@ export default {
});
}
});
}
} else {
GMS.$hideContainer.$Message.error('缺少参数');
}
......@@ -131,21 +129,13 @@ export default {
executeApproval: function(bill, param) {
if (param.param.actions) {
let saveParam = {
actions: param.param.actions,
// afterAction: "",
// confirmTitle: "",
// customSaveAction: "",
// noCheckCardDepressPeriod: true,
// noCheckSubTable: true,
// viewName: ""
actions: param.param.actions
}
bill.executeServerAction(saveParam, function (code, data) {
if (code === 200) {
this.approval(bill, param);
// bill.setControlsSate(param["_control_name_"], "loading", false)
} else {
bill.setControlsSate(param["_control_name_"], "enable", true)
// bill.setControlsSate(param["_control_name_"], "loading", false)
GMS.$hideContainer.$message.error("操作异常请联系管理员");
}
}.bind(this));
......@@ -164,8 +154,6 @@ export default {
return
}
bill.setControlsSate(param["_control_name_"], "enable", true)
// console.log('审批成功');
bill.setControlsSate(param["_control_name_"], "loading", false)
GMS.$hideContainer.$Message.success('审批成功!')
GMS.vbus.$emit('change-form-state', { state: 'readOnly'})
......
import Bridge from '../components-control/util/bridge'
export default {
execute: function (bill, param) {
if (
......
import customSelect from '../control/CustomerSelect.vue';
export default {
execute: function (bill, param) {
if (param) {
console.log('param', param)
GMS.$hideContainer.addComponent(customSelect, {}, async function (c) {
const getExtrCondition = async (filterFieldObj) => {
let extrConditions = []
for (const key in filterFieldObj) {
let extrConditionObj = { name: filterFieldObj[key] }
let value = bill.getMasterData().getValue(key)
extrConditionObj.values = await getExtrConditionObjValue(value)
extrConditionObj.type = getExtrConditionObjType(value)
extrConditions.push(extrConditionObj)
}
return extrConditions
}
const getExtrConditionObjType = (val) => {
const type = typeof val
const reg = new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
if (Object.prototype.toString.call(val) === '[object Object]') {
const value = val.code
const type = typeof value
return type.toUpperCase()
} else if (Object.prototype.toString.call(val) === '[object Date]') {
return 'DATE'
} else if (type === 'number' || type === 'boolean') {
return type.toUpperCase()
} else if (reg.test(val)) {
return 'UUID'
} else {
return type.toUpperCase()
}
}
const getExtrConditionObjValue = async (val) => {
if (Object.prototype.toString.call(val) === '[object Object]') {
if (val._type) {
const tableName = val._type.split('.').length > 0 ? val._type.split('.')[1] : val._type
const postData = {
pagination: false,
tableName: tableName,
searchKey: "",
queryDataStructure: "ALL",
queryChildrenType: "ALL_CHILDREN_WITH_SELF",
code: val.code,
authType: "ACCESS",
versionDate: "",
expression: "",
}
const {data} = await GMS.$http.post(`/baseData/data/list`, postData)
const node = data.rows[0]
const value = node.objectcode? node.objectcode: val.code
return value
} else {
return val.objectcode? val.objectcode: val.code
}
} else {
return val
}
}
c.bill = bill
const actionParam = param.param
c.field = actionParam.field
c.baseDataFields = actionParam.field.baseDataFields
c.templateName = actionParam.templateName
c.tableName = actionParam.tableName
c.extrCondition = await getExtrCondition(actionParam.field.filterField)
c.isDrawer = true
c.drawerShow = true
c.actionParam = actionParam
// let isSub = actionParam.tableName.split('.').length
let isSub = false
c.isSub = isSub === 1
})
} else {
GAMS.Common.messagePrompt('缺少参数');
}
},
}
\ No newline at end of file
......@@ -12,12 +12,8 @@ export default {
})
},
billDeleted(bill, param) {
let postData = {
data: bill.getBuillData()
};
let id = bill.getMasterData().getValue('id');
let url = `/rbc/bill/action/deleted/${bill.getBillDefine()}/${id} `
//let url = `/rbc/bill/action/executed/${bill.getBillDefine()}/bill.Basic.delete?currentDataId=${id}`;
let url = `/rbc/bill/action/deleted/${bill.getBillDefine()}/${id}`;
GMS.$http.post(url).then((data) => {
if (data.status == 200 && data.data.code == 0) {
GMS.$hideContainer.$Modal.remove();
......
export default {
execute: function (bill, param) {
const curbill = bill.dom || bill
// bill.deleteSubData(param.param.tableName,bill.getSubFocus(),true)
const imageTable = curbill.getSubData(param.param.tableName)
const imageTableObj = imageTable[curbill.getSubFocus()]
const imageId = imageTableObj.getValue('imageId')
......
......@@ -2,17 +2,9 @@ import ImageViewModal from '../../../../@rbc/invoice/src/components/image-view-m
export default {
execute: function (bill, param) {
const curbill = bill.dom || bill
// const billCode = 'e7bb5a4e-9028-4475-9164-a268725a7faa'
GMS.$hideContainer.addComponent(ImageViewModal, {}, function (c) {
c.imageTableName = param.param.tableName
c.bill = curbill
})
// if (param) {
// GMS.$hideContainer.addComponent(ImageViewModal, {}, function (c) {
// c.billId = bill.getMasterData().getValue('id');
// })
// } else {
// GAMS.Common.messagePrompt('缺少参数')
// }
}
}
\ No newline at end of file
......@@ -2,9 +2,6 @@ export default {
execute: function (bill, param) {
if (param) {
let buidData = bill.getBuillData();
// GMS.$hideContainer.$router.push({
// path: "/editBillForm/" + param.param.viewName + "/" + buidData.id
// });
GMS.vbus.$emit('openEditBillForm', buidData,param);
}
}
......
......@@ -17,7 +17,8 @@ export default {
.then((res) => {
let blob = new Blob([res.data], {
type: "application/pdf;charset=utf-8",
}); let downloadElement = document.createElement("a");
});
let downloadElement = document.createElement("a");
let href = window.URL.createObjectURL(blob); //创建下载的链接
downloadElement.href = href;
window.open(href)
......
......@@ -69,7 +69,6 @@ export default {
});
},
submitExecute(bill, param){
if (bill) {
bill.setControlsSate(param["_control_name_"], 'enable', false)
let postData = {
......
......@@ -12,7 +12,7 @@
export function actionIgnoreField(bill) {
let action = bill.curForm.content.actions;
if (action && action.length > 0) {
let obj = action.find(v=>v.execute =='customerSelectAction')//引用申请单动作
let obj = action.find(v=>v.execute == 'customerSelectAction')//引用申请单动作
let str =''
if(obj && obj.param && obj.param.field){
str += Object.keys(obj.param.field).join();
......
import mcon from './mcon';
import emcon from './emcon';
import './styles/common/normalize.less'
import Vue from 'vue';
import { Popover } from 'element-ui';
Vue.use(Popover)
export default {
install: function(){
GMS.getContext().getCollector().addElements(mcon); // 收集所有配置文件
GMS.getContext().getEmconCollector().addElements(emcon); //收集清单配置文件
}
};
};
......@@ -15,3 +15,4 @@ textarea {
display: flex;
align-items: center;
}
//element 样式修改
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