index.js 456 Bytes
Newer Older
1 2
import Api from '~/service/Api';
import Utils from '~/utils';
3 4

export default {
5
  async processTrndoc(trndocRequest) {
6
    const loading = this.loading('正在请求数据')
李少勇 committed
7
    let objtyp = trndocRequest.rec.objtyp;
8
    let rtnmsg = await Api.post(`/service/${ objtyp.toLowerCase() }/docpan/assertTrndoc`, trndocRequest);
9
    if (rtnmsg.respCode == SUCCESS) {
李少勇 committed
10
      this.copyValueFromVoData(this.model.docpan, rtnmsg.data)
11
    }
12 13
    loading.close();
  }
14
}