{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web\\src\\components\\dialog\\ContractInfoDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\components\\dialog\\ContractInfoDialog.vue","mtime":1687722694082},{"path":"D:\\jenkins\\workspace\\xypm-web\\babel.config.js","mtime":1675214572901},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport _toConsumableArray from \"D:/jenkins/workspace/xypm-web/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport req from '@/request.js';\nimport basicData from '@/api/basicData.js';\nimport utils from '@/hotent-ui-util.js';\nexport default {\n  name: 'ContractInfoDialog',\n  components: {},\n  props: {\n    single: {\n      type: Boolean,\n      default: false\n    }\n    // projectId:''\n  },\n  data: function data() {\n    return {\n      dialogVisible: false,\n      pageResult: {\n        page: 1,\n        pageSize: 20,\n        total: 0\n      },\n      data: [],\n      activeRow: {},\n      selectedId: null,\n      projectId: ''\n      // pid:''\n    };\n  },\n\n  // watch:{\n  //   projectId:{\n  //     immediate:true,\n  //     handler(newval,oldval){\n  //       console.log(newval,oldval)\n  //       this.pid=newval\n  //     }\n  //   }\n  // },\n  methods: {\n    rowClick: function rowClick(row) {\n      this.activeRow = row.contract;\n      this.selectedId = row.contract.id;\n    },\n    open: function open(id) {\n      this.dialogVisible = true;\n      this.projectId = id;\n      // this.$nextTick(()=>{\n      //     this.$refs.htTable.load()\n      // })\n    },\n    handleOK: function handleOK() {\n      var selectRow = utils.deepClone(this.activeRow);\n      console.log(selectRow);\n      this.$emit('handleContract', selectRow);\n      this.selectedId = null;\n      this.dialogVisible = false;\n      this.activeRow = {};\n    },\n    loadData: function loadData(param, cb) {\n      var _this = this;\n      var projectId = [{\n        group: 'advance',\n        operation: 'LIKE',\n        parentGroup: '',\n        property: 'project_id_',\n        relation: 'AND',\n        value: this.projectId\n      }];\n      if (param.querys) {\n        param.querys = [].concat(projectId, _toConsumableArray(param.querys));\n      } else {\n        param.querys = projectId;\n      }\n      param.querys && param.querys.forEach(function (item) {\n        if (item.property == 'contract.name') {\n          item.property = 'bc.name_';\n        } else if (item.property == 'contract.contractNumber') {\n          item.property = 'bc.contract_number_';\n        }\n      });\n      this.$http.post('${cqxy}/biz/contract/v1/page', param).then(function (resp) {\n        var response = resp.data.value;\n        _this.data = response.rows;\n        _this.pageResult = {\n          page: response.page,\n          pageSize: response.pageSize,\n          total: response.total\n        };\n      }, function (error) {\n        reject(error);\n      }).finally(function () {\n        if (cb) {\n          cb();\n        }\n      });\n    },\n    closeDialog: function closeDialog() {\n      this.dialogVisible = false;\n      this.activeRow = {};\n    }\n  }\n};",null]}