lincaoAddView.js 1.08 KB
Newer Older
raojiaguan committed
1 2 3
import lincaoView from '../control/lincaoView.vue'
export default {
  execute: function (bill, param) {
raojiaguan committed
4 5
    let name = GMS.$hideContainer.addComponent(lincaoView, {}, function (c) {
        const year = nros.getUser().loginDate.substring(0,4)
raojiaguan committed
6
        const unitCode = nros.getUser().loginUnit
raojiaguan committed
7 8 9 10 11 12 13 14 15 16 17
        let orgParam ={
            orgCodes:[unitCode],
            pagination: true,
            queryDataStructure: 'ALL',
        }
       let sjcode;
       GMS.$http
       .post('/org/data/get', orgParam)
          .then((res) => {
            sjcode=res.data.sjcode
       })
raojiaguan committed
18
        c.bill = bill.dom
raojiaguan committed
19
        const projectNum = bill.dom.getMasterData().getData().billCode.value
raojiaguan committed
20 21
        c.url =`http://${param.param.ipAddress}/jq/addAssociateDatas.do?unitCode=${sjcode}&type=${param.param.type}&projectNum=${projectNum}&year=${year}`
        // c.url =`http://${param.param.ipAddress}/jq/addAssociateDatas.do?unitCode=130324&type=jhltlx&projectNum=1&year=2021`
raojiaguan committed
22
        c.name = name
raojiaguan committed
23 24
        c.modalShow = true;
      })
raojiaguan committed
25 26 27
    // } else {
    //   GAMS.Common.messagePrompt('缺少参数')
    // }
raojiaguan committed
28 29
  }
}