|
@@ -55,7 +55,7 @@
|
|
|
</u-radio-group>
|
|
</u-radio-group>
|
|
|
<text v-else>{{getButtChange(form.baoGaoLeiXing,reportTypeList)}}</text>
|
|
<text v-else>{{getButtChange(form.baoGaoLeiXing,reportTypeList)}}</text>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
- <u-form-item label="出报告要求" prop="name">
|
|
|
|
|
|
|
+ <u-form-item label="出报告要求" prop="chuJuBaoGaoYaoQiu">
|
|
|
<u-radio-group v-model="form.chuJuBaoGaoYaoQiu" v-if="type != 'detail'" @change="getMultiple()">
|
|
<u-radio-group v-model="form.chuJuBaoGaoYaoQiu" v-if="type != 'detail'" @change="getMultiple()">
|
|
|
<u-radio v-for="(item, index) in reportRequireList" :key="index" :name="item.name">
|
|
<u-radio v-for="(item, index) in reportRequireList" :key="index" :name="item.name">
|
|
|
{{item.name}}
|
|
{{item.name}}
|
|
@@ -376,6 +376,16 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
|
|
+ //获取账号id
|
|
|
|
|
+ let info = uni.getStorageSync(USER_INFO)
|
|
|
|
|
+ if (info.employee.id) {
|
|
|
|
|
+ this.userid = info.employee.id || ''
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (options.baoGaoBianZhi) {
|
|
|
|
|
+ this.baoGaoBianZhi = options.baoGaoBianZhi
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
let administrator = uni.getStorageSync('administrator')
|
|
let administrator = uni.getStorageSync('administrator')
|
|
|
this.administrator = administrator
|
|
this.administrator = administrator
|
|
|
this.getInit()
|
|
this.getInit()
|
|
@@ -383,9 +393,8 @@
|
|
|
if (administrator) {
|
|
if (administrator) {
|
|
|
this.getAdministrator()
|
|
this.getAdministrator()
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
if ((administrator && options.id) || !administrator) {
|
|
if ((administrator && options.id) || !administrator) {
|
|
|
- this.getDataHetong(options.id)
|
|
|
|
|
|
|
+ this.getDataHetong(options.id, this.baoGaoBianZhi)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//一开始查合同 如果修改或者明细 传option.id
|
|
//一开始查合同 如果修改或者明细 传option.id
|
|
@@ -475,11 +484,7 @@
|
|
|
},
|
|
},
|
|
|
//初始化
|
|
//初始化
|
|
|
getInit() {
|
|
getInit() {
|
|
|
- //获取账号id
|
|
|
|
|
let info = uni.getStorageSync(USER_INFO)
|
|
let info = uni.getStorageSync(USER_INFO)
|
|
|
- if (info.employee.id) {
|
|
|
|
|
- this.userid = info.employee.id || ''
|
|
|
|
|
- }
|
|
|
|
|
if (info.org !== null) {
|
|
if (info.org !== null) {
|
|
|
this.orgId = info.org.id || ''
|
|
this.orgId = info.org.id || ''
|
|
|
}
|
|
}
|
|
@@ -594,6 +599,7 @@
|
|
|
let form = service.getForm(result)
|
|
let form = service.getForm(result)
|
|
|
this.form = form
|
|
this.form = form
|
|
|
|
|
|
|
|
|
|
+
|
|
|
if (result.chu_ju_bao_gao_ya == '特急') {
|
|
if (result.chu_ju_bao_gao_ya == '特急') {
|
|
|
this.total = parseFloat(result.zong_jia_) / 1.5
|
|
this.total = parseFloat(result.zong_jia_) / 1.5
|
|
|
} else if (result.chu_ju_bao_gao_ya == '加急') {
|
|
} else if (result.chu_ju_bao_gao_ya == '加急') {
|
|
@@ -659,11 +665,21 @@
|
|
|
if (!this.administrator) {
|
|
if (!this.administrator) {
|
|
|
userId = info.user.id
|
|
userId = info.user.id
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!userId) {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ let sql = ``
|
|
|
// let sql =
|
|
// let sql =
|
|
|
// `select tb.*,ty.ke_hu_ming_cheng_ as ke_hu_dang_wei from t_bjd tb,t_yxkh ty where tb.ke_hu_ming_cheng_ = ty.id_ and tb.zhuang_tai_='生效中' and tb.shi_fou_guo_shen_ = '已完成'`
|
|
// `select tb.*,ty.ke_hu_ming_cheng_ as ke_hu_dang_wei from t_bjd tb,t_yxkh ty where tb.ke_hu_ming_cheng_ = ty.id_ and tb.zhuang_tai_='生效中' and tb.shi_fou_guo_shen_ = '已完成'`
|
|
|
|
|
|
|
|
- let sql =
|
|
|
|
|
|
|
+
|
|
|
|
|
+ sql =
|
|
|
`select tb.*,ty.ke_hu_ming_cheng_ as ke_hu_dang_wei from t_bjd tb,t_yxkh ty where tb.ke_hu_ming_cheng_ = ty.id_ and tb.ke_hu_zhang_hao_ ='${userId}' and tb.zhuang_tai_='生效中' and tb.shi_fou_guo_shen_ = '已完成'`
|
|
`select tb.*,ty.ke_hu_ming_cheng_ as ke_hu_dang_wei from t_bjd tb,t_yxkh ty where tb.ke_hu_ming_cheng_ = ty.id_ and tb.ke_hu_zhang_hao_ ='${userId}' and tb.zhuang_tai_='生效中' and tb.shi_fou_guo_shen_ = '已完成'`
|
|
|
|
|
+
|
|
|
|
|
+ // if (this.administrator && this.type == '') {
|
|
|
|
|
+ // sql =
|
|
|
|
|
+ // `select tb.*,ty.ke_hu_ming_cheng_ as ke_hu_dang_wei from t_bjd tb,t_yxkh ty where tb.ke_hu_ming_cheng_ = ty.id_ and tb.zhuang_tai_='生效中' and tb.shi_fou_guo_shen_ = '已完成'`
|
|
|
|
|
+ // }
|
|
|
let requestData = this.$sig(sql)
|
|
let requestData = this.$sig(sql)
|
|
|
this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {
|
|
this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {
|
|
|
if (res.data.state == 200) {
|
|
if (res.data.state == 200) {
|
|
@@ -700,7 +716,7 @@
|
|
|
//从合同中选择付款方式
|
|
//从合同中选择付款方式
|
|
|
if (e != '') {
|
|
if (e != '') {
|
|
|
let data = this.hetongList.find((item, index) => item.id_ == e)
|
|
let data = this.hetongList.find((item, index) => item.id_ == e)
|
|
|
- if (type == '') {
|
|
|
|
|
|
|
+ if (!type) {
|
|
|
this.form.weiTuoDanLaiYuan = data.wei_tuo_dan_lai_y || ''
|
|
this.form.weiTuoDanLaiYuan = data.wei_tuo_dan_lai_y || ''
|
|
|
this.form.weiTuoHeTong = data.he_tong_lei_xing_ || ''
|
|
this.form.weiTuoHeTong = data.he_tong_lei_xing_ || ''
|
|
|
this.form.fuKuanFangShi = data.fu_kuan_fang_shi_ || ''
|
|
this.form.fuKuanFangShi = data.fu_kuan_fang_shi_ || ''
|
|
@@ -711,7 +727,6 @@
|
|
|
this.form.weiTuoFangMingChe = data.ke_hu_dang_wei || ''
|
|
this.form.weiTuoFangMingChe = data.ke_hu_dang_wei || ''
|
|
|
this.form.heTongBianHao = data.he_tong_bian_hao_ || ''
|
|
this.form.heTongBianHao = data.he_tong_bian_hao_ || ''
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
this.getJiance(e, type, weiTouId)
|
|
this.getJiance(e, type, weiTouId)
|
|
|
this.getTaoCanList(data.xuan_ze_tao_can_)
|
|
this.getTaoCanList(data.xuan_ze_tao_can_)
|
|
|
}
|
|
}
|
|
@@ -750,8 +765,8 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
result.forEach((item, index) => {
|
|
result.forEach((item, index) => {
|
|
|
|
|
+ item.zhe_hou_jia_ge_ = (parseFloat(item.zhe_hou_jia_ge_)).toFixed(2)
|
|
|
this.$set(item, 'checked', false)
|
|
this.$set(item, 'checked', false)
|
|
|
})
|
|
})
|
|
|
this.jianCeList = result
|
|
this.jianCeList = result
|
|
@@ -848,6 +863,7 @@
|
|
|
} else {
|
|
} else {
|
|
|
this.form.zongJia = total
|
|
this.form.zongJia = total
|
|
|
}
|
|
}
|
|
|
|
|
+ this.form.zongJia = (this.form.zongJia).toFixed(2)
|
|
|
},
|
|
},
|
|
|
//特急 加急 常规
|
|
//特急 加急 常规
|
|
|
getMultiple() {
|
|
getMultiple() {
|
|
@@ -980,6 +996,9 @@
|
|
|
if (this.form.biaoQianTuPianJudge == '否') {
|
|
if (this.form.biaoQianTuPianJudge == '否') {
|
|
|
this.form.biaoQianTuPian = '否'
|
|
this.form.biaoQianTuPian = '否'
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!this.administrator) {
|
|
|
|
|
+ this.form.baoGaoBianZhiYuan = this.userid
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
this.form.lhypb.forEach((item, index) => {
|
|
this.form.lhypb.forEach((item, index) => {
|
|
|
if (this.buttonFlagNum === '3') {
|
|
if (this.buttonFlagNum === '3') {
|
|
@@ -1314,6 +1333,7 @@
|
|
|
let data = meth.getMjypbSin(res, this.jianCeList, this.taoCanList)
|
|
let data = meth.getMjypbSin(res, this.jianCeList, this.taoCanList)
|
|
|
this.lhypbShow = true
|
|
this.lhypbShow = true
|
|
|
this.lhypbIndexData = 'add'
|
|
this.lhypbIndexData = 'add'
|
|
|
|
|
+ this.itemType = true
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.$refs.lhypbMessage.getInit(data)
|
|
this.$refs.lhypbMessage.getInit(data)
|
|
|
})
|
|
})
|
|
@@ -1326,6 +1346,7 @@
|
|
|
} else {
|
|
} else {
|
|
|
this.itemType = true
|
|
this.itemType = true
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log(type)
|
|
|
this.lhypbIndexData = type
|
|
this.lhypbIndexData = type
|
|
|
this.lhypbShow = true
|
|
this.lhypbShow = true
|
|
|
|
|
|