| | |
| | | |
| | | old_agm_record_product_obj: {}, |
| | | old_agm_record_province_obj: {}, |
| | | tab3tableFields: [], // 授权医院指标的字段 |
| | | isTarget: true, |
| | | }, |
| | | created() { |
| | | this.popupParames = clone(Root.popupParames); |
| | |
| | | f.inputtype = "date"; |
| | | f.required = false; |
| | | f.width = "150"; |
| | | |
| | | } |
| | | else { |
| | | f.inputtype = "span"; |
| | |
| | | f.isshow = "T"; |
| | | } |
| | | |
| | | // 授权医院是否包含指标设置 |
| | | if (tab.code == "tab3" && me.formData.category_id) { |
| | | let category_id_length_ = me.formData.category_id.length; |
| | | if (me.options_categoryobj[me.formData.category_id[category_id_length_ - 1]]) { |
| | | let category_ = me.options_categoryobj[me.formData.category_id[category_id_length_ - 1]]; |
| | | if (category_.name.indexOf('底价') != -1 || category_.name.indexOf('佣金') != -1) { |
| | | me.isTarget = false; |
| | | //如果是底价或佣金的没有指标录入 |
| | | console.log("设置是否存在指标字段"); |
| | | if (f.field.indexOf('amt_') != -1 || f.field.indexOf('qty_') != -1) { |
| | | f.isshow = "F"; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (tab.code == "tab3") { |
| | | me.tab3tableFields.push(clone(f)); |
| | | } |
| | | |
| | | tableFields_.push(clone(f)); |
| | | |
| | | }) |
| | | tab.tableFields = clone(tableFields_); |
| | | tab.tableData = clone(datas[tab.dataname]); |
| | |
| | | delta: { |
| | | agreementdata: this.formData, |
| | | options_product: options_product_, |
| | | productobj_map: clone(me.productobj_map) |
| | | productobj_map: clone(me.productobj_map), |
| | | isTarget: this.isTarget |
| | | }, |
| | | sceneCode: sceneCode,//"refuseedit",//"approval", //"add"//"browse", |
| | | callback: function(popupobj, callback) { |
| | |
| | | row_.category_name = selectoption.name; |
| | | // 获取协议类型对应的模板 |
| | | me.getTemplateByCategoryId(selectoption.id); |
| | | |
| | | me.setTabModuleByCategory(selectoption); |
| | | } |
| | | |
| | | me.formData = clone(row_); |
| | |
| | | } |
| | | }) |
| | | }, |
| | | setTabModuleByCategory(category) { |
| | | /* |
| | | tab.tableFields = clone(tableFields_); |
| | | tab.tableData = clone(datas[tab.dataname]); |
| | | } |
| | | |
| | | this.TabObjMap[tab.code] = clone(tab); |
| | | me.selectTabObj = clone(me.TabObjMap["tab3"]); |
| | | tab3tableFields |
| | | */ |
| | | var me = this; |
| | | // 授权医院是否包含指标设置 |
| | | var tableFields_ = [] |
| | | this.isTarget = true; |
| | | if (category.id) { |
| | | this.tab3tableFields.map(f=>{ |
| | | if (category.name.indexOf('底价') != -1 || category.name.indexOf('佣金') != -1) { |
| | | this.isTarget = false; |
| | | //如果是底价或佣金的没有指标录入 |
| | | console.log("设置是否存在指标字段"); |
| | | if (f.field.indexOf('amt_') != -1 || f.field.indexOf('qty_') != -1) { |
| | | f.isshow = "F"; |
| | | } |
| | | } |
| | | else { |
| | | if (f.field.indexOf('amt_') != -1 || f.field.indexOf('qty_') != -1) { |
| | | f.isshow = "T"; |
| | | } |
| | | } |
| | | }) |
| | | tableFields_ = clone(this.tab3tableFields); |
| | | } |
| | | var TabObjMap_ = clone(this.TabObjMap["tab3"]); |
| | | TabObjMap_.tableFields = tableFields_ |
| | | this.TabObjMap["tab3"] = clone(TabObjMap_); |
| | | if (this.activeTabName == 'tab3') { |
| | | this.isRefresh = false; |
| | | this.selectTabObj = {} |
| | | this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 |
| | | this.selectTabObj = clone(this.TabObjMap["tab3"]); |
| | | this.isRefresh = true; |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | openAccount(sceneCode, obj, callback) { |
| | | var me = this; |
| | | var data_ = {}; |
| | |
| | | }) |
| | | } |
| | | |
| | | if (me.TabObjMap["tab2"].tableData.length) { |
| | | account_hospital_ = clone(me.TabObjMap["tab2"].tableData); |
| | | } |
| | | // if (me.TabObjMap["tab2"].tableData.length) { |
| | | // account_hospital_ = clone(me.TabObjMap["tab2"].tableData); |
| | | // } |
| | | |
| | | if (me.TabObjMap["tab3"].tableData.length) { |
| | | target_dealer_ = clone(me.TabObjMap["tab3"].tableData); |
| | | } |
| | | |
| | | if (me.TabObjMap["tab4"].tableData.length) { |
| | | price_policy_ = clone(me.TabObjMap["tab4"].tableData); |
| | | } |
| | | if (me.TabObjMap["tab6"].tableData.length) { |
| | | gift_policy_ = clone(me.TabObjMap["tab6"].tableData); |
| | | } |
| | | if (me.TabObjMap["tab7"].tableData.length) { |
| | | rate_policy_ = clone(me.TabObjMap["tab7"].tableData); |
| | | } |
| | | // if (me.TabObjMap["tab4"].tableData.length) { |
| | | // price_policy_ = clone(me.TabObjMap["tab4"].tableData); |
| | | // } |
| | | // if (me.TabObjMap["tab6"].tableData.length) { |
| | | // gift_policy_ = clone(me.TabObjMap["tab6"].tableData); |
| | | // } |
| | | // if (me.TabObjMap["tab7"].tableData.length) { |
| | | // rate_policy_ = clone(me.TabObjMap["tab7"].tableData); |
| | | // } |
| | | |
| | | let param = { |
| | | dataname: me.dataname, |