| | |
| | | HStockOrgID: { |
| | | type: [String, Number], |
| | | }, |
| | | Type: { |
| | | type: [String], |
| | | require: true |
| | | } |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | |
| | | this.getBillList() |
| | | }, |
| | | clickCard(bill, index) { |
| | | console.log('this.HBillList: ',this.HBillList); |
| | | console.log('this.HBillList: ',this.HBillList, 'index: ', index); |
| | | let retVal = {} |
| | | retVal[this.refTargetKey] = this.HBillList[0].filter(item => item.hmainid == bill.hmainid) |
| | | retVal[this.refTargetKey] = bill |
| | | this.$emit("update", { |
| | | retVal: retVal, |
| | | index: this.refTargetKey |
| | |
| | | } |
| | | |
| | | if(this.refTargetKey) { |
| | | sWhere += ` and 设备ID = ${this.refTargetKey}` |
| | | // sWhere += ` and HInterID = ${this.refTargetKey}` |
| | | } |
| | | return sWhere |
| | | }, |
| | | getBillList() { |
| | | let sWhere = this.getsWhere() |
| | | console.log('sWhere: ',sWhere); |
| | | this.HBillList = [] |
| | | this.length = 0 |
| | | this.page = 0 |
| | | this.curPage = 1 |
| | | let url = "" |
| | | if(this.Type == 'BY'){ |
| | | url = "/Sb_EquipMaintainRuleBill/GetEquipMaintainRuleListPDA" |
| | | } |
| | | else if (this.Type == 'DJ'){ |
| | | url = "/Sb_EquipDotCheckRuleBill/GetEquipDotCheckRuleListPDA" |
| | | } |
| | | else { |
| | | |
| | | } |
| | | CommonUtils.doRequest( |
| | | "/Web/GetEquipmentBillsList", { |
| | | url, { |
| | | sWhere: sWhere, |
| | | user: getUserInfo()['Czymc'], |
| | | Type: "BY" |
| | | }, |
| | | (res) => { |
| | | let { |