| | |
| | | new ListVue({ |
| | | el: "#vbody", |
| | | data: { |
| | | dataname: "fee_guide_settle_execute", |
| | | dataname: "fee_task_execute", |
| | | title: "执行单", |
| | | orderby: "", |
| | | filterfieldClick: {}, |
| | |
| | | notclick_val: "",//不可点击的值,1、是数组["11","22"];2、以“;”分隔的字符串"111;222" |
| | | notclick_bindfield: [],//当该字段值等于指定字段值时不可点击["filterfield": "111"] |
| | | onclick: function(obj) {//数据值点击事件 |
| | | var sceneCode_ = "browse"; |
| | | //如果是创建人且是录入状态或退回状态则是编辑状态 |
| | | if (obj.row.creator_id == window.top.vue.userinfo.id && (obj.row.state_code == "Input" || obj.row.state_code == "input" || obj.row.state_code == "Rejected")) { |
| | | sceneCode_ = "edit"; |
| | | } |
| | | |
| | | var config = { |
| | | totab: true, //true: 以Tab导航的方式打开 |
| | | width: "1100px", |
| | | height: "520px", |
| | | icon: "icon-product", |
| | | text: "商业信息 " + (obj.row.name ? obj.row.name : ""), |
| | | id: "customer_edit_browse" + obj.row.id,//totab: true时需设置,用于判断是否已打开此页面 |
| | | url: "module/md/page/customer/page/customer_edit.html", |
| | | data: obj.row, |
| | | delta: {closeCode:"1"}, |
| | | sceneCode: sceneCode_,//"refuseedit",//"approval", //"add"//"browse", |
| | | callback: function(obj, callback) { |
| | | me.onQuery(); |
| | | if (callback) { |
| | | callback(); |
| | | } |
| | | } |
| | | }; |
| | | me.doPopupByPublic(config); |
| | | me.editData("browse", obj.row); |
| | | }, |
| | | }, |
| | | }, |
| | |
| | | var me = this; |
| | | me.selectedrow = obj.row; |
| | | }, |
| | | |
| | | editData(sceneCode) { |
| | | addData() { |
| | | this.editData("add", {}); |
| | | }, |
| | | editData(sceneCode, row) { |
| | | var me = this; |
| | | var row = me.selectedrow; |
| | | if(!row){ |
| | | if(sceneCode == "edit" && !row){ |
| | | Root.message({ |
| | | type: 'warning', |
| | | message: '请选择一条数据' |
| | |
| | | width: "900px", |
| | | height: "500px", |
| | | icon: "icon-product", |
| | | text: "数量单编辑", |
| | | id: "popup_edit_fee_qty" + sceneCode + row.id,//totab: true时需设置,用于判断是否已打开此页面 |
| | | url: "module/fee/page/popup/popup_edit_fee_qty.html", |
| | | text: "执行单编辑", |
| | | id: "popup_edit_fee_execute" + sceneCode + row.id,//totab: true时需设置,用于判断是否已打开此页面 |
| | | url: "module/fee/page/popup/popup_edit_fee_execute.html", |
| | | data: row, |
| | | delta: {}, |
| | | sceneCode: sceneCode,//"refuseedit",//"approval", //"add"//"browse", |
| | |
| | | |
| | | <div :class="page_title == 'right' ? 'h_page_button_left' : 'h_page_button_right'"> |
| | | <el-button-group style="margin-left: 3px;"> |
| | | <el-button :disabled="!(selectedrow.id)" @click="editData('edit') " :icon="buttonsconfig.alter.icon":icon="buttonsconfig.alter.icon">{{buttonsconfig.alter.name}}</el-button> |
| | | <el-button @click="addData() " :icon="buttonsconfig.add.icon">{{buttonsconfig.add.name}}</el-button> |
| | | <el-button :disabled="!(selectedrow.id)" @click="editData('edit', selectedrow) " :icon="buttonsconfig.alter.icon">{{buttonsconfig.alter.name}}</el-button> |
| | | </el-button-group> |
| | | |
| | | <el-button v-show="cbuttons_r.export ? cbuttons_r.export : false" @click="onDownload" :icon="buttonsconfig.export.icon">{{buttonsconfig.export.name}}</el-button> |